Data Sheet

XBridge2
XBridge2 is firmware code for a Pololu Wixel, and additional circuitry, that can make the
wixel act as a bridge between a Dexcom G4 Transmitter and a smart phone using Bluetooth
4.0 (BLE). It requires that the Wixel be connected to a HM-10 BLE module, using the design
originally put together by Stephen Black for his XDrip system as a minimum. There is a
minor hardware modification required in order to receive the bridge battery voltage for
monitoring in the app, and a modification to the wiring that allows the HM-1x to be powered
down with the wixel low power mode, and powered up when the wixel wakes. Please see
the Circuit diagrams below.
NOTE: This wixel app can be used with a classic xDrip-wixel wiring, but you will not have
the full battery saving features the code can provide. The xBridge2 code will automatically
detect if you are using a classic xDrip-wixel circuit, and automatically detect your HM-1x
module baud rate.
Acknowledgements
The original code, engineering and decoding of the Dexcom data packet was done by Adrien
de Croy, whithout whom this project would not be possible.
The inspiration to continue came from Lorelei Lane, Jason Calabrese, and others of the
Nightscout community and foundation.
The original XDrip circuit upon which this work is based was engineered by Stephen Black,
who also created the XDrip app.
The battery monitoring circuit was designed by Chris Botelho.
The method of powering down and powering up the HM-10 module was engineered by
Gabor Szakacs.
Also, I wish to acknowledge the work of “lumos” and “slasi” of the Pololu Wixel forum for their
work in Sleeping the wixel and radio correctly. I have made copious use of “slasi”’s
radio_mac library, and used some of the code in “lumos”’ sleep library in the xBridge wixel
code.
Overview
As the name suggests, this device acts purely as a bridge between the Dexcom G4
Transmitter and a Bluetooth Low Energy capable device, such as a mobile phone or tablet.
It retransmits the data obtained from a Dexcom G4 transmitter packet. It DOES NOT
ALTER OR RECALCULATE that data. It performs no math or translation of the raw data in
the packet to an estimated Blood Glucose value.
It should be noted that only three pieces of data are retransmitted from the Dexcom G4.
These are the two 32bit values representing blood glucose data, and an 8 bit value
representing the battery condition in the G4 transmitter.
It adds information about the XBridge battery, as a percentage of remaining capacity, and
the Dexcom G4 Transmitter ID that it is filtering on.

Summary of content (24 pages)