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

No simple recovering from sudden missing signals #26

Open
ghost opened this issue Jul 2, 2017 · 9 comments
Open

No simple recovering from sudden missing signals #26

ghost opened this issue Jul 2, 2017 · 9 comments

Comments

@ghost
Copy link

ghost commented Jul 2, 2017

Hi Steven

I would really appreciate some feedback on further debugging of
the issue described below.

I have two rigs, say ROK and RnotOK that were build back in 2015. We
have used ROK on a daily basis for 2 years and it has worked without
problems at all. THANKS!!!

The RnotOK was build as a spare rig and I have only used it for some minor
tests during this period so it was not until recently I found that it
actually shows issues with missing signals like those others have reported
both here and in xdrip threads. Thus, I went from thinking I had a spare
rig to a situation where I need to get the spare working in case I will
need it one day.

Here are a short summary of the tests and findings I have done thus far:

  1. The RnotOK will work absolutely fine for a longer period, i.e. more
    than 24 hours. Then suddenly is start to loose signals consistently and
    there is nothing simple that will bring it back on track and catch another
    signal. The only thing that will make it function again is to:

a) take off battery power to RnotOK ensuring that the wixel is
disconnected from any possible power sources
b) reset the wixel by wiring P2_2 to 3V3 and then plug it into USB
c) reload the xbridge2.wxl onto the wixel
d) forget device on the phone
e) scan for bt
f) then signals are back within 5-10 minutes and consistently so for
at least 24H.

In order to exclude various sources to this problem I have used two
phones, say P1 and P2, and done several experiments

My conclusion is that we can exclude the usual suspects

  1. This is not a without-of-range related problem.
  2. This is not a phone related problem, i.e.
    a. Both phones treat RnotOK and ROK the same way, i.e. both
    works like a charm for ROK (P1 in years and P2 in weeks)
    and both fails to get signal for RnotOK after having worked
    fine for a period exceeding 24H but never reached 72H (I
    did not forget to charge the battery :)).
    b. different OS versions treat both RnotOK and ROK consistently, i.e.
    phone1 runs 5.1 whereas phone2 runs 6.0.1
  3. This is not a xdrip-version related problem, i.e. tried both
    xdrip plus and the old xdrip beta and both versions works fine
    and consistently with ROK and fails the same way for RnotOK.
  4. This does not seem to be a Bridge2 wxl version issue either. I
    have tried both the latest 2.47 and an older 2.33 version.
  5. It is not a transmitter issue, during all the tests conducted I
    have had two dexcom receivers and the ROK working without problems.

Potential remaining sources to the issues

  1. I guess (but don't see how I can exclude this completely) that it's
    not a wiring problem either since then I wouldn't expect that I should
    be able to bring RnotOK back to good mode again, cf. procedure above,
    and get good consistent results for a longer period of time (say 24H).

  2. The wixel itself is broken somehow but it takes a special cases to trigger
    the issue.

  3. The BT module is broken somehow (I use HM11 both on ROK and RnotOK) but
    again it takes a special cases to trigger the issue. It should be noted
    that the rig and the phone stays connected and 'restart collection' does
    have an impact on the rig, i.e. version 2.33 have yellow LED turned on
    consistently once the issue begins and 'restart collection' will turn it
    off for a short period of time but then it re-enters the situation where
    we have yellow LED turned on (not blinking).

  4. The logic in the xBridge2 code (even in the latest version 2.47) is incomplete
    somehow in the sense that we can reach stages that the code cannot recover
    from and where a complete RESET as described above is required to get it
    back on track.

  5. ?????

I would be most grateful for any kind of feedback on this and especially ideas
on what I could try to pinpoint the issue further. Thank you so much in advance,

Cheers, Jacob

@jweismann
Copy link

It should be mentioned that for version 2.47 of the xbridge2 code, there is no yellow LED
turned on when the problem arise. Also Connection status become: 'Not connected' and
restart collector does not change this, i.e. it seems that the phone and the rig become
totally disconnected for version 2.47 but not for 2.33. Maybe this would be useful
information to you.

Thanks, Jacob

@savek-cc
Copy link
Collaborator

savek-cc commented Jul 2, 2017

@nan4kam one possibility could be a fragile RX/TX/Pwr wire from wixel to hm11 on the RnotOK. So if you shake it at the wrong moment, the data exchanged between wixel and hm11 goes bad and it's unable to recover?

@jweismann
Copy link

Thanks, savek-cc. I did re-inspect but none of them appear fragile.

And an update: I decided to build a third rig (my last wixel) to see if I could reproduce the problem. This time with HM10 since I had no more hm11 spares nor did I have a spare battery so I reused the one from RNotOK and believe it not, I can reproduce the problem with a new wixel, a new hm10 and a new recharger but the same battery so I now suspect that the battery constitutes the fragile part. Thus, will try to order some new batteries in the nearest future and see if both spare rigs then start to function properly.

Cheers, Jacob

@jstevensog
Copy link
Owner

jstevensog commented Jul 17, 2017 via email

@jweismann
Copy link

Hi Steven

No worries. I tried v2.33 on ROK and I tried both V2.33 and v2.47 on RnotOK. With ROK, I have no problems. With RnotOK, I see the same issues with V2.33 and V2.47 but now that you bring it up, it once reproduced itself quicker on V2.47 (i.e. after a few hours only) but only once. I have done the test several times both with 2.33 and 2.47 and the problem is indeed reproducible with both.

I build a third rig (installed v2.33 on that), RmaybeOK, to see if I could reproduce problems with that and at first I had problems but found that they related to a fragile battery (Murphy's law). Then I did the tests again with a new battery and RmaybeOK has worked for more than a week now so I now have a spare rig again and feel more comfortable.

For RmaybeOK, I used the same charger and the same working battery as I used for RnotOK but I used a new HM10 and a new wixel.

I suspect that it's my wixel on RnotOK that is unreliable. I can still communicate with HM11 on RnotOK when it enters the state of no return and that's why I tend to believe that the wixel is broken.

Thanks again for your suggestions and your great contributions on this project.

Cheers, Jacob

@Empyyy
Copy link

Empyyy commented Aug 25, 2017

Hello everyone. Thank you Steven for your great job.
I'll add some information about this problem. For the past 1.5 years I am builded about 200 xDrip's for my friends. All of this based on identically hardware and packed in the same cases. About past half a year I'm used 2.46 firmware. And I have the 2 same problems on all of it:

  1. When the signal is missing some of xbridges can find it within 10 minutes. But some of it cannot get the data pocket from transmitter until I reboot the xbridge and it gets the measurement within 5 minutes.
  2. Some of xbridges (about 5-10%) having constantly missing signal. When i replacing it with the new Wixel it gets working well. So the problem may be in wixel board. But 5-10% of defect is too much!

All of this problems occur when the xbridge in the 0-4m range from transmitter.
Please tell me if I can help you for debugging. I have big experience in building this device.
Best regards

@jstevensog
Copy link
Owner

jstevensog commented Aug 25, 2017 via email

@Empyyy
Copy link

Empyyy commented Aug 26, 2017

Thank for your answer.

  1. Yes, wixels are waiting for the pockets. It can wait for a long time (upward 10 minutes). Then it usually gets the data pocket from transmitter. But if I reboot the system it gets the pocket within 5 minutes.
  2. I'm using this one https://www.aliexpress.com/item/HM-10-cc2541-4-0-BLE-bluetooth-to-uart-transceiver-Module-Central-Peripheral-switching-iBeacon-AirLocate/32460585727.html?spm=a2g0s.9042311.0.0.lMNrN7

@jstevensog
Copy link
Owner

jstevensog commented Aug 26, 2017 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

4 participants