Closed rolandvs closed 6 years ago
Hi,
When you read the firmware version of your Pysense, what value do you get?
pysense.__version__
reports 1.0.2
@rolandvs that's not what I meant... Can you call the .read_fw_version()
from the pysense library and see what it returns? I think you have an old firmware on your Pysense...
The read_fw-version
returned 1
and I reprogrammed the pysense
and pytrack
boards to version 0.0.4
. The code seems to be working now as expected. Thanks!
(in the mean time I almost finished decoding $GNMRC instead of $GNGLL to get date/time to set the RTC when GPS is available).
Dear,
I have a
loPy (1.7.7.b1)
with aPysense
board. I changed thesense.py
example intomain.py
with a few changes. Nothing special. However after running it, it will crash/stop.There is no I2C error but reading (
peeking
) the battery voltage is generating the problem.Rebooting it by ctrl-C, ctrl-D let it tells me that the
Pysense
board cannot be found. Looking at the code the problem seems to be in the init part and theread_battery_voltage
part of the code. Disabling the ADC init code and not using the py_read_battery_voltage() anymore keeps everything running.Only de-powering the unit completely (no battery/no USB) will "recognise" the board again, but any use of the read_battery_voltage will raise an exception again.