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

xBridge Gets one reading then fails - Sleep seems to happen even when disabled. #37

Open
old-square-eyes opened this issue Feb 11, 2018 · 9 comments

Comments

@old-square-eyes
Copy link

old-square-eyes commented Feb 11, 2018

I'm having a hard time getting readings. I've tried a stock Galaxy S8 Nougat, and Lineage Nougat on S5.

I have sleep_ble off to improve BT performance, but it seems to sleep anyway. xDrip+ gets one reading and then nothing after that. I power cycled after a clean 2.4.7f flash.

I'm using a HM17 with @WanaGo's motherboard. Dexcom G4 receiver is happily receiving data.

xBridge v2.47f
dex_tx_id: 6553988 (680C4)
initialised: 0, sleep_ble: 0, dont_ignore_ble_state: 1, xBridge_hardware: 1, sen                            d_debug: 1, do_leds: 1
dex_tx_id_set: 1, got_packet: 1
battery_capacity: 0
current ms: 250032
254002 - packet waiting
254002 - send pkt
254003 - send_data  (17)
254003 - send_data blocked on uart1 input
Sending: ▒p▒a▒▒d
Response: 254019 - waiting for ack
264034 - packet waiting
264035 - send pkt
264035 - send_data  (17)
264035 - send_data blocked on uart1 input
Sending: ▒p▒a▒▒d
Response: 264051 - waiting for ack
274067 - packet waiting
274067 - send pkt
274067 - send_data  (17)
274067 - send_data blocked on uart1 input
Sending: ▒p▒a▒▒d
Response: 274084 - waiting for ack
284099 - packet waiting
284099 - send pkt
284099 - send_data  (17)
284100 - send_data blocked on uart1 input
Sending: ▒p▒a▒▒d
Response: 284116 - waiting for ack
294131 - packet waiting
294131 - send pkt
294131 - send_data  (17)
294132 - send_data blocked on uart1 input
Sending: ▒p▒a▒▒d
Response: 294148 - waiting for ack
304163 - packet waiting
304163 - send pkt
304164 - send_data  (17)
304164 - send_data blocked on uart1 input
Sending: ▒p▒a▒▒d
Response: 304180 - waiting for ack
314195 - packet waiting
314196 - send pkt
314196 - send_data  (17)
314196 - send_data blocked on uart1 input
Sending: ▒p▒a▒▒d
Response: 314212 - waiting for ack
324227 - packet waiting
324228 - send pkt
324228 - send_data  (17)
324228 - send_data blocked on uart1 input
Sending: ▒p▒a▒▒d
Response: 324244 - waiting for ack
334260 - packet waiting
334260 - send pkt
334260 - send_data  (17)
334260 - send_data blocked on uart1 input
Sending: ▒p▒a▒▒d
Response: 334277 - waiting for ack
344292 - packet waiting
344292 - send pkt
344292 - send_data  (17)
344293 - send_data blocked on uart1 input
Sending: ▒p▒a▒▒d
Response: 344309 - waiting for ack
354324 - No ACK received
354825 - sleeping for 260
354825 - sleep_time_ms is 130000, this_sleep_time is 9110
@old-square-eyes old-square-eyes changed the title xBridge Gets One reading then fails xBridge Gets one reading then fails - Sleep seems to happen even when disabled. Feb 11, 2018
@old-square-eyes
Copy link
Author

OK I disconnected Putty and the data USB and seem to have gotten my second and third packets and was able to calibrate. Seems that something goes wonky on the serial com when left connected.

@old-square-eyes
Copy link
Author

old-square-eyes commented Feb 12, 2018

Nope. Worked fine for a few hours then 30 minutes missed readings. Power cycle brought it back online. Not sure I can capture the debug output without breaking it too. Now I can't even connect. really not sure what's happening.

@old-square-eyes
Copy link
Author

old-square-eyes commented Feb 13, 2018

Bask on the S5 now. I get a recurring xDrip+ log "SetSerialDataToTransmitterRawData: TXID wrong. Expected 6553988 but got 0"

@old-square-eyes
Copy link
Author

old-square-eyes commented Feb 13, 2018

I got a call on my other (non xBridge) mobile, which was paired to a BT speaker. This broke the BT connection and I suddenly got a packet on my dev xBridge phone, and every packet after. It's such a coincidence but maybe my main phone was blocking my dev phone from pairing properly with the xBridge. I had it connected a couple of days ago, but had gracefully "forgot" the bridge before switching it out.

@jstevensog
Copy link
Owner

jstevensog commented Feb 13, 2018 via email

@jstevensog
Copy link
Owner

jstevensog commented Feb 13, 2018 via email

@jstevensog
Copy link
Owner

jstevensog commented Feb 13, 2018 via email

@old-square-eyes
Copy link
Author

old-square-eyes commented Apr 2, 2018

I've been using my G4 again and this error SetSerialDataToTransmitterRawData: TXID wrong. Expected 6553988 but got 0 has come up again in xDrip. No amount of pairing/unpairing seemed to fix it. Connecting seemed fine, but it seemed as if the TXID packet was being rejected. I only use one G4 transmitter so it's only ever the same ID. In the end I had to re-flash the Wixel. I had previously unpaired it and turned off all BT in the area, but it was extremely stubborn.

@jstevensog
Copy link
Owner

jstevensog commented Apr 3, 2018 via email

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