-
Notifications
You must be signed in to change notification settings - Fork 11
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
ReadAnalog fails #253
Comments
@dhineshkumarmcci Great! I have just recompiled with branch issue253 and will let you know about the results. |
Not sure if this is related, but since this patch the node does not join any longer. I see the join requests in the console of the Lorawan Network (Swisscom), but it looks like the node never receives the join accept (even though SF12 is used). I then did a reset of the board (using the switch), and now it looks like it lost the provisioning. I attach the full log. |
It's pretty strange: I did a reset again (this time with "system reset"), and now the node came up just fine and also joined the network. I will capture the output again and report back. |
Hi Joerg,
We would like to know the vBus value logged before these changes in library.
Can you also please make sure that no change in library is made at your end after cloning?
We tried to replicate the issue at your end. We have made stress test to behaviour at our end.
We used Catena 4610, with library change in branch ‘issue253’. The result at our end is as below:
Without USB connected - vBus: 3366 mV
With USB connected - vBus: 5072 mV
From: drpuur [mailto:[email protected]]
Sent: 12 June 2020 20:57
To: mcci-catena/Catena-Arduino-Platform
Cc: Dhinesh Kumar Pitchai; Mention
Subject: Re: [mcci-catena/Catena-Arduino-Platform] ReadAnalog fails (#253)
So far no errors, but I noticed a regression: no matter if I plug USB charging cable or not, it measures about the same value for vBus:
with USB power cable attached:
vBus: 1614 mV
no USB cable attached:
vBus: 1619 mV
This is where that measurement comes from:
// vBus
float vBus = gCatena.ReadVbus();
gCatena.SafePrintf("vBus: %d mV\n", (int)(vBus * 1000.0f));
Since this is used to detect if the USB cable is plugged (fUsbPower) and I use this to decide if I go in deep sleep or not, this is pretty important for my use case that this works.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#253 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJMD7CVROZDPY22RNKL2XLLRWJCNXANCNFSM4N3EWL7A> . <https://github.com/notifications/beacon/AJMD7CQQVHVFDUIP34ZWKPLRWJCNXA5CNFSM4N3EWL7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEZMIDSQ.gif>
|
Hello Dhinesh
Sorry, must be something else. I deleted the comment after I made it, as it is not related with your patch. I have this on 2 of 4 4610 nodes, not sure what it is. I desoldered those and reused them on another PCB so it might be a hardware problem. When measuring with the multimeter I get correct values though. Maybe I just have to dump these, it‘s just a bit odd that two behave like that.
Best regards
—
Joerg
PS: I will report tomorrow if it still runs fine, until now there have been no problems.
… Am 12.06.2020 um 21:17 schrieb Dhinesh Kumar Pitchai ***@***.***>:
Hi Joerg,
We would like to know the vBus value logged before these changes in library.
Can you also please make sure that no change in library is made at your end after cloning?
We tried to replicate the issue at your end. We have made stress test to behaviour at our end.
We used Catena 4610, with library change in branch ‘issue253’. The result at our end is as below:
Without USB connected - vBus: 3366 mV
With USB connected - vBus: 5072 mV
From: drpuur ***@***.***
Sent: 12 June 2020 20:57
To: mcci-catena/Catena-Arduino-Platform
Cc: Dhinesh Kumar Pitchai; Mention
Subject: Re: [mcci-catena/Catena-Arduino-Platform] ReadAnalog fails (#253)
So far no errors, but I noticed a regression: no matter if I plug USB charging cable or not, it measures about the same value for vBus:
with USB power cable attached:
vBus: 1614 mV
no USB cable attached:
vBus: 1619 mV
This is where that measurement comes from:
// vBus
float vBus = gCatena.ReadVbus();
gCatena.SafePrintf("vBus: %d mV\n", (int)(vBus * 1000.0f));
Since this is used to detect if the USB cable is plugged (fUsbPower) and I use this to decide if I go in deep sleep or not, this is pretty important for my use case that this works.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#253 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJMD7CVROZDPY22RNKL2XLLRWJCNXANCNFSM4N3EWL7A> . <https://github.com/notifications/beacon/AJMD7CQQVHVFDUIP34ZWKPLRWJCNXA5CNFSM4N3EWL7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEZMIDSQ.gif>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
The error did not happen anymore so it really looks like this has been fixed. See Log. |
@drpuur Thank you for the update. |
Fix #253: Use AdcStart() before each ReadAnalog value
Revert "Fix #253: Use AdcStart() before each ReadAnalog value"
Fix #253: Use AdcStart() before each ReadAnalog value; thanks for adding the documentation changes.
Revert "update "Fix #253: Use AdcStart() before each ReadAnalog value""
This still has not been addressed. The reversion was never pushed again, but the docs were pushed. |
@mcciyssaroha please coordinate straightening this out. |
Fix #253: add AdcStart() before each AdcGetValue()
I am using MCCI 4610 and see "?CatenaStm32L0::ReadAnalog(3): CatenaStm32L0_ReadAnalog() failed (5)" messages as in #125
This happens not all the time and seems to start happening only after some time.
Board Version: 2.7.0
System Clock: 24 MHz
Libraries:
I read the battery voltage on every iteration (after waking up from deep sleep):
Attached is the log with the relevant lines.
ReadAnalog-errors.txt
The text was updated successfully, but these errors were encountered: