New firmware release for Pytrack and Pysense version 0.0.8
-
Hello everyone,
We have released a new firmware for Pytrack and Pysense that can:
- wakeup the PIC on the INT pin (RC1 - P9 - G16), the setup is done using the method setup_int_pin_wake_up()
- when *py board was awaken the approximate remaining time of the sleep can be found out using the method get_sleep_remaining().
As usual, you can get the firmware from here: https://docs.pycom.io/chapter/pytrackpysense/installation/firmware.html
For an example of the newest features, please take a look at the example python script from here: https://github.com/pycom/pycom-libraries/blob/master/examples/accelerometer_wake/main.py
Please note that the python librariespytrack.py
andpysense.py
were factorized withpycoproc.py
.Also the pinouts were modified to show PIC RC0 and RC1 pins: https://docs.pycom.io/chapter/datasheets/downloads/pysense-pinout.pdf and https://docs.pycom.io/chapter/datasheets/downloads/pytrack-pinout.pdf.
Have a nice day,
Catalin
-
Hi @mongkol, so you have this error every time you try to update? Or just once in a while? I would suspect the PC USB port to be the problem, you could:
- change the USB-microUSB cable
- use the PC direct USB port, not thru a USB hub;
- remove other USB peripherals from PC
The firmware update packages are sent over DFU protocol, which runs over USB bulk transfer channel, it might happen that the CRC of a package was wrong (or delayed).
-
I got this message below . I don't sure my pysense or pysense_0.0.8.dfu or something error
Pls suggest me.
Thank in advance.
-
Hi @catalin ,
Thanks for the help. It works now !
-
@tanmoy_dutta
Afik, pycoproc.py have to reside in a directory where python is searching. These are: directory of pytrack.py, /flash and /flash/lib.Because in pytrack.py there is the next line, and pycoproc has to be searched for:
from pycoproc import Pycoproc
-
@catalin
Hi Catalin,
I put the required libs in this fashion -/flash/lib/L76GNSS.py
/flash/lib/LIS2HH12.py
/flash/lib/pytrack.py
/flash/lib/mqtt.py
/flash/lib/pycoproc/pycoproc.pyDo the pycoproc.py and pytrack.py files need to reside on the same path level ?
-
Are you sure pycoproc.py is also in /flash/lib directory (next to pytrack.py)?
rst:0x10 (RTCWDT_RTC_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff9028,len:8 load:0x3fff9030,len:1076 load:0x4009fa00,len:0 ho 12 tail 0 room 4 load:0x4009fa00,len:15380 entry 0x400a0720 MicroPython v1.8.6-849-g0af003a4 on 2017-11-24; LoPy with ESP32 Type "help()" for more information. >>> from pytrack import Pytrack >>> >>> import uos >>> >>> uos.getcwd() '/flash' >>> uos.listdir('lib') ['pycoproc.py', 'pytrack.py'] >>> py = Pytrack()
-
@catalin
Firmware successfully upgraded for LoPy, Pytrack and Pysense.
After loading the factorized pytrack.py and pycoproc.py, cannot load/initialize the Pytrack module ->>> from pytrack import Pytrack Traceback (most recent call last): File "", line 1, in File "/flash/lib/pytrack.py", line 5, in TypeError: cannot create 'module' instances
-
@catalin Thanks for your help!
It`s done and works fine again!
-
Aaah, @han, there is the error on the last line, you don't have the pytrack_0.0.8.dfu file in the same directory as dfu-util-static.exe.
No such file or directory: Could not open file pytrack_0.0.8.dfu for reading
-
Hi @han,
I've just done the update on Pytrack, on a Win7 machine.
Just to make sure the instructions are correct:
- power on the pytrack keeping Reset button pressed, and install Zadig libusbk driver (within 7 secs)
- power on again the Pytrack board keeping Reset button pressed and execute dfu-util-static.exe command (within 7 secs)
- for another update, the Zadig libusbk doesn't need to be re-installed, so just the 2nd step has to be done
I hope it will work for you!
-
Hi Catalin,
I am trying to upgrade the firmware of my Pytrack, but that does not going well.
The Libusbk driver is installed well with the Zadig tool. USB ID is 04D8 F014.
Now i have some struggles with the command prompt action.I bring the Pytrack in dfu mode en run the command. What then appears is this.
Do you know what i am doing wrongt in these steps?