Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dexcom transmission #45

Open
danpowell88 opened this issue Mar 27, 2016 · 2 comments
Open

Dexcom transmission #45

danpowell88 opened this issue Mar 27, 2016 · 2 comments

Comments

@danpowell88
Copy link

How is the dexcom transmitter sending its values over the air, ant/bluetooth etc? Is there any guidance on frequencies etc

@ijustlovemath
Copy link

It's written as a serial packet over the Wixel's UART bus:
https://github.com/StephenBlackWasAlreadyTaken/wixel-xDrip/blob/master/apps/dexdrip/dexdrip.c#L253-L263

You can hook up the Wixel to a computer via USB and listen for the incoming packets using any basic serial terminal. The frequencies/radio scanning are all handled by the Wixel's microcontroller in this function: https://github.com/StephenBlackWasAlreadyTaken/wixel-xDrip/blob/master/apps/dexdrip/dexdrip.c#L421

Specifically, the call to the Wixel's API is made here: https://github.com/StephenBlackWasAlreadyTaken/wixel-xDrip/blob/master/apps/dexdrip/dexdrip.c#L440

After this, the packet is formatted into the struct defined near the top and printed over UART.

If you're wondering how it scans for the packet, that's done in the get_packet() function: https://github.com/StephenBlackWasAlreadyTaken/wixel-xDrip/blob/master/apps/dexdrip/dexdrip.c#L476-L496

@danpowell88
Copy link
Author

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants