Forums > Windsurfing   Gps and Speed talk

Another DIY GPS logger approach

Reply
Created by rp6conrad > 9 months ago, 2 May 2021
DONNERWETTER
WA, 11 posts
30 Nov 2023 3:33AM
Thumbs Up

Select to expand quote
shannon19 said..

DONNERWETTER said..

- Whenever I turn the T5 off and on again, I seem to have to upload the .bin file again? Is that normal? Is it possible to have it stored on the SD and "autoupload" on a reset?



If you loaded the OTA firmware and then used that to load jans software if the board losses power it drops the soft ware out of memory. It must write it to a volatile memory.

You can write jans software to the non volatile memory as well the same way as the OTA program and then it will survive a power loss.


Yes, I used the OTAWebupdater to load Jans Software. Unfortunately, I dont really understand how I can upload the Jans software the same way as the OTAWebupdater. I can only open Sketches in the Arduino IDE. Can you give me a hint?

rp6conrad
364 posts
30 Nov 2023 4:50AM
Thumbs Up

@DONNERWETTER : Good to hear that the charging seems to work now. If you still have a issue with uploading the bin file, can you tell us how exactly you flashed the T5 board the first time ?
Windows 10 system ?
First flashed the OTA sketch with the Arduino IDE ? (which version, which ino sketch ?) or with the Flash tool from Espressif ?
Uploading the correct ESP - bin file (Rtos5.80B74.bin for the T5 213B74 version) ?
Greetings, Jan.

DONNERWETTER
WA, 11 posts
30 Nov 2023 5:20AM
Thumbs Up

Select to expand quote
rp6conrad said..
@DONNERWETTER : Good to hear that the charging seems to work now. If you still have a issue with uploading the bin file, can you tell us how exactly you flashed the T5 board the first time ?
Windows 10 system ?
First flashed the OTA sketch with the Arduino IDE ? (which version, which ino sketch ?) or with the Flash tool from Espressif ?
Uploading the correct ESP - bin file (Rtos5.80B74.bin for the T5 213B74 version) ?
Greetings, Jan.


Hi Jan,
Windows 10 Version Arduino IDE 1.8.19, I used the OTAWebupdater from the examples as Sketch.Yes, also using the right bin, Rtos5.80B74.bin for the T5 213B74 version.Also, I just tried flashing with Espressif, this did not work at all, the board did not boot anymore. To be fair, I could not find the older version of Expressif and I used the latest one (3.9.5), even though you mentioned in your manual that there might be problems.

rp6conrad
364 posts
30 Nov 2023 3:51PM
Thumbs Up

Select to expand quote
DONNERWETTER said..

rp6conrad said..
@DONNERWETTER : Good to hear that the charging seems to work now. If you still have a issue with uploading the bin file, can you tell us how exactly you flashed the T5 board the first time ?
Windows 10 system ?
First flashed the OTA sketch with the Arduino IDE ? (which version, which ino sketch ?) or with the Flash tool from Espressif ?
Uploading the correct ESP - bin file (Rtos5.80B74.bin for the T5 213B74 version) ?
Greetings, Jan.



Hi Jan,
Windows 10 Version Arduino IDE 1.8.19, I used the OTAWebupdater from the examples as Sketch.Yes, also using the right bin, Rtos5.80B74.bin for the T5 213B74 version.Also, I just tried flashing with Espressif, this did not work at all, the board did not boot anymore. To be fair, I could not find the older version of Expressif and I used the latest one (3.9.5), even though you mentioned in your manual that there might be problems.


Can you check these settings in the Arduino IDE ?




shannon19
QLD, 104 posts
30 Nov 2023 10:26PM
Thumbs Up

Select to expand quote
DONNERWETTER said..

shannon19 said..


DONNERWETTER said..

- Whenever I turn the T5 off and on again, I seem to have to upload the .bin file again? Is that normal? Is it possible to have it stored on the SD and "autoupload" on a reset?




If you loaded the OTA firmware and then used that to load jans software if the board losses power it drops the soft ware out of memory. It must write it to a volatile memory.

You can write jans software to the non volatile memory as well the same way as the OTA program and then it will survive a power loss.



Yes, I used the OTAWebupdater to load Jans Software. Unfortunately, I dont really understand how I can upload the Jans software the same way as the OTAWebupdater. I can only open Sketches in the Arduino IDE. Can you give me a hint?


Yeah I had the same problem but I was using Linux. I ended up getting a friend to flash the board for me with windows and the Espressif program.

Someone on here did have command line code to flash the board but the message has been lost on my account sorry.

decrepit
WA, 12764 posts
30 Nov 2023 9:50PM
Thumbs Up

Select to expand quote
shannon19 said.. Yeah I had the same problem but I was using Linux. I ended up getting a friend to flash the board for me with windows and the Espressif program.

Someone on here did have command line code to flash the board but the message has been lost on my account sorry.


And you passed it onto me, and I still have this, hope it helps. Although it does look complicated, good luck -----

Sharons instructions on Manjarro #####= My stuff


I think i have got the Arduino 1.8.19 development environment working on Manjaro Linux. I followed this walk through. i didn't have to install any kernel drivers as i think the have been mainlined.

randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-mac-and-linux-instructions/

in step 2 i selected ESP32 Dev Module.

It came up with a couple of errors before working. I googled the and found a couple of terminal commands to solve the problem.

the first error i got was
ModuleNotFoundError: No module named 'serial'

I had to install pip.
sudo pacman -Syu python-pip
#### sudo apt install python3-venv python3-pip
then install pyserial.
pip3 install pyserial

###### WARNING: The scripts pyserial-miniterm and pyserial-ports are installed in '/home/decrepit/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
###### after compiling arduino OTA
exec: "python": executable file not found in $PATH
Compilation error: exec: "python": executable file not found in $PATH


the second error was
A fatal error occurred: Could not open /dev/ttyACM0, the port doesn't exist

I had to change permissions on the port. (It looks like this command didn't survive a reboot so need to run it every time.)
sudo chmod a+rw /dev/ttyACM0

the WIFI scan worked after i did this. I'll try and flash the board in the morning.


#### Arduino: 1.8.19 (Linux), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

Sketch uses 768462 bytes (58%) of program storage space. Maximum is 1310720 bytes.
Global variables use 40776 bytes (12%) of dynamic memory, leaving 286904 bytes for local variables. Maximum is 327680 bytes.
Traceback (most recent call last):
esptool.py v3.0-dev
File "/app/lib/python3.10/site-packages/serial/serialposix.py", line 322, in open
Serial port /dev/ttyACM0
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
PermissionError: [Errno 13] Permission denied: '/dev/ttyACM0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/decrepit/.arduino15/packages/esp32/tools/esptool_py/3.0.0/esptool.py", line 3682, in
_main()
File "/home/decrepit/.arduino15/packages/esp32/tools/esptool_py/3.0.0/esptool.py", line 3675, in _main
main()
File "/home/decrepit/.arduino15/packages/esp32/tools/esptool_py/3.0.0/esptool.py", line 3329, in main
esp = chip_class(each_port, initial_baud, args.trace)
File "/home/decrepit/.arduino15/packages/esp32/tools/esptool_py/3.0.0/esptool.py", line 263, in __init__
self._port = serial.serial_for_url(port)
File "/app/lib/python3.10/site-packages/serial/__init__.py", line 90, in serial_for_url
instance.open()
File "/app/lib/python3.10/site-packages/serial/serialposix.py", line 325, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'
the selected serial port serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'
does not exist or your board is not connected


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

enabled PSRAM, ran sudo chmod a+rw /dev/ttyACM0

Arduino: 1.8.19 (Linux), Board: "ESP32 Dev Module, Enabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

rp6conrad
364 posts
30 Nov 2023 10:22PM
Thumbs Up

Select to expand quote
DONNERWETTER said..
Yes, I used the OTAWebupdater to load Jans Software. Unfortunately, I dont really understand how I can upload the Jans software the same way as the OTAWebupdater. I can only open Sketches in the Arduino IDE. Can you give me a hint?

The manual is indeed not 100% clear how to proceed from there, so I did a update from the manual :
docs.google.com/document/d/1XJD6BV1Xay4nXo0cDuo_IOtxC_f1LyG7DE7X6KGlAB0/edit?usp=sharing
Hope this helps !

DONNERWETTER
WA, 11 posts
1 Dec 2023 3:28AM
Thumbs Up

Select to expand quote
rp6conrad said..

DONNERWETTER said..


rp6conrad said..
@DONNERWETTER : Good to hear that the charging seems to work now. If you still have a issue with uploading the bin file, can you tell us how exactly you flashed the T5 board the first time ?
Windows 10 system ?
First flashed the OTA sketch with the Arduino IDE ? (which version, which ino sketch ?) or with the Flash tool from Espressif ?
Uploading the correct ESP - bin file (Rtos5.80B74.bin for the T5 213B74 version) ?
Greetings, Jan.




Hi Jan,
Windows 10 Version Arduino IDE 1.8.19, I used the OTAWebupdater from the examples as Sketch.Yes, also using the right bin, Rtos5.80B74.bin for the T5 213B74 version.Also, I just tried flashing with Espressif, this did not work at all, the board did not boot anymore. To be fair, I could not find the older version of Expressif and I used the latest one (3.9.5), even though you mentioned in your manual that there might be problems.



Can you check these settings in the Arduino IDE ?





Its the same settings, but I have some more options here:




DONNERWETTER
WA, 11 posts
1 Dec 2023 3:34AM
Thumbs Up

Select to expand quote
rp6conrad said..


DONNERWETTER said..
Yes, I used the OTAWebupdater to load Jans Software. Unfortunately, I dont really understand how I can upload the Jans software the same way as the OTAWebupdater. I can only open Sketches in the Arduino IDE. Can you give me a hint?



The manual is indeed not 100% clear how to proceed from there, so I did a update from the manual :
docs.google.com/document/d/1XJD6BV1Xay4nXo0cDuo_IOtxC_f1LyG7DE7X6KGlAB0/edit?usp=sharing
Hope this helps !



Sorry for my blindness, but I can't find what has been updated. Can you point me to the right section?
Just to be clear: I can load your software with the OTAWebupdater and it works fine, I already recorded a GPS file. But as soon as the battery runs out (which happens quite quickly in my case), the board boots the OTAWebupdater, but not your software.

rp6conrad
364 posts
1 Dec 2023 3:49AM
Thumbs Up

docs.google.com/document/d/1XJD6BV1Xay4nXo0cDuo_IOtxC_f1LyG7DE7X6KGlAB0/edit?usp=sharing
Page 9, 10, 11 describes more in detail how to proceed after uploading OTAWebupdater.ino to the T5 board.
Let me know if you still have problems.

Greetings, Jan.

DONNERWETTER
WA, 11 posts
1 Dec 2023 4:25AM
Thumbs Up

Select to expand quote
rp6conrad said..
docs.google.com/document/d/1XJD6BV1Xay4nXo0cDuo_IOtxC_f1LyG7DE7X6KGlAB0/edit?usp=sharing
Page 9, 10, 11 describes more in detail how to proceed after uploading OTAWebupdater.ino to the T5 board.
Let me know if you still have problems.

Greetings, Jan.


Thanks, I probably didn't notice the change as I already was doing it like it is described now. I just tried again with Expressiv, and it seems to flash correctly (I had to launch it as administrator, otherwise I would get some errors), but then it still does not seem to boot up. Did I choose the correct files (I noticed in the manual the third file has a different naming than the files for the different boards)?




DONNERWETTER
WA, 11 posts
1 Dec 2023 4:30AM
Thumbs Up

Ok, I think I needed to press the "Reset" Button after flashing with Expressiv. Now it seems to work.

rp6conrad
364 posts
1 Dec 2023 5:00AM
Thumbs Up

Select to expand quote
DONNERWETTER said..
Ok, I think I needed to press the "Reset" Button after flashing with Expressiv. Now it seems to work.


Exactly ! I downloaded the Espressif flash tool V3.9.5 and I could flash the T5 board with this version. But after flashing, you have to push the small reset button, or power it up again !
If you insert a empty SD-card, then boot again, and then push the GPIO39 button for 2 seconds when the counter on the screen is running, the T5 will act as a Wifi acces point with the name ESP32AP. You can login with "password". Then go with your browser to the give IP adress 192.168.4.1 and you have acces to the webserver and the configuration !

Greetings, Jan.

decrepit
WA, 12764 posts
6 Dec 2023 12:50PM
Thumbs Up

I've just had that, "server index not found" problem trying to update Waricle's device.
I've managed to solve this in the past, but with Waricle looking over my shoulder, I failed miserably.

So if somebody can tell me the solution, I'll file it away somewhere for future reference

rp6conrad
364 posts
6 Dec 2023 4:39PM
Thumbs Up

Is the device connected to your own Wifi network ? Update is not possible in "AP-mode" because the update function need acces to the internet.
Greetings, Jan.

boardsurfr
WA, 2454 posts
7 Dec 2023 1:37AM
Thumbs Up

Select to expand quote
rp6conrad said..
Is the device connected to your own Wifi network ? Update is not possible in "AP-mode" because the update function need acces to the internet.
Greetings, Jan.


Is that still the case? This should be fixable by including the Javascript libraries used in the firmware. I did see references about this when I first ran into the "no updates in AP mode" issue, but unfortunately did not bookmark them.

decrepit
WA, 12764 posts
7 Dec 2023 8:10AM
Thumbs Up

Thanks Jan, that's what we were trying to do. I guess we could have put my config file in waricle's device temporarily, to get us over that problem.

Alhop
WA, 46 posts
11 Dec 2023 11:10AM
Thumbs Up

Anyone have an issue where when you turn off after a session the screen has grey all over it and the numbers are hard to read ? Once it resets it goes away so no big problem but seems the 'off routine' might need a tweak or I did something wrong during the build. Running 5.75 at the moment.

Will get a picture next time it does it.

cheers
Al

decrepit
WA, 12764 posts
11 Dec 2023 5:04PM
Thumbs Up

When I turn mine off, the display looks fine, no idea what's happening to yours.
There is a n issue while it's on though, if the sun gets on the ribbon cable area, it will cause the display to fade. I doubt there's a connection to you're problem though, I think the unit needs to be running for that to happen

boardsurfr
WA, 2454 posts
11 Dec 2023 10:20PM
Thumbs Up

Select to expand quote
Alhop said..
Anyone have an issue where when you turn off after a session the screen has grey all over it and the numbers are hard to read ? Once it resets it goes away so no big problem but seems the 'off routine' might need a tweak or I did something wrong during the build. Running 5.75 at the moment.


That has nothing to do with the off routine. It happens when you leave the display exposed to the sun. Just put the GPS in in the shade after turning it off.

PacoRaapNL
145 posts
31 Dec 2023 11:11PM
Thumbs Up

Good day guys.
New to this forum not new to windsurfing.
First meter on the water are from 1979 on a Dufour Wing.
In 2003 I stopped but 2023 I regained interest and now are fully equipped again.

I stumbled on the GPS-speed project of Jan and thought during the winter a nice project.
So I ordered a Lilygo T5 epaper from the Dutch TinyTronics website.
I installed the latest Arduino IDE 2.0.2 and the latest ESP32 DEV board manager library.
After installing the 5.80.bin file the board reboots and I can enter the webserver.
However after a power reboot or RST the webserver can not be reached anymore and only the ESP32 can be found.I have been under guidance of Jan the past week but he is also scratching his head what goes wrong.

So my question is to you guys.
Did anyone used the 2.0.2m IDE with latest ESP32 DEV board manager library 2.0.11.
If so does the discribed problem shows up?

Jan is using an older 1.6 ESP32 library with 2.0.2 IDE and that seems to work fine.
But it is not possible to downgrade (as far as my knowledge goes) from 2.x to 1.6 ESP32 board library.

Jan suspect that after the upload of the 5.80.bin the old file is not overwritten when there is a power cycle.
So the new file is in the RAM but not written to the ROM.

I already purchased 2 new boards thinking the first one was broken, but that is not the case.

Paco Raap (Netherlands)

decrepit
WA, 12764 posts
31 Dec 2023 11:18PM
Thumbs Up

Sorry Paco, I can't help, that's a real PITA! Hope somebody here can help you.

PacoRaapNL
145 posts
1 Jan 2024 2:13AM
Thumbs Up

Jan did a last resort proposal to use the 1.06 board library by using a json url file which shows all previous libraries in de ESP32 board manager. I cant place pictures yet here as newbie.

With the 1.06 version and the 2.0.2 IDE now after a reboot the webserver is shown.
Also the Putty logged into the comport shows correct backgraound commands like sleep and wake up.

Thanks Jan for the assistance the past week.

We knew it was something small and it was firework to end this year 2023 with this troubleshooting.
See you all next year.

Paco

PacoRaapNL
145 posts
1 Jan 2024 4:45PM
Thumbs Up

Did any body used USB-C waterproof connectors from Aliexpress.
nl.aliexpress.com/item/1005005886128185.html?spm=a2g0o.cart.0.0.11c061d7bIHC0U&mp=1&gatewayAdapt=glo2nld
They come in 2 and 4 wires. This to take out the wireless charger electronics.
Sorry cant yet add url links or photos.

Paco

rp6conrad
364 posts
1 Jan 2024 5:49PM
Thumbs Up

Select to expand quote
PacoRaapNL said..
Jan did a last resort proposal to use the 1.06 board library by using a json url file which shows all previous libraries in de ESP32 board manager. I cant place pictures yet here as newbie.

With the 1.06 version and the 2.0.2 IDE now after a reboot the webserver is shown.
Also the Putty logged into the comport shows correct backgraound commands like sleep and wake up.

Thanks Jan for the assistance the past week.

We knew it was something small and it was firework to end this year 2023 with this troubleshooting.
See you all next year.

Paco


The building manual is corrected with this latest info (Use ESP32 1.06 librarys) : docs.google.com/document/d/1XJD6BV1Xay4nXo0cDuo_IOtxC_f1LyG7DE7X6KGlAB0/edit?usp=sharing
No experience with the USB watersealed connectors, but could be working.
Greetings, Jan.

decrepit
WA, 12764 posts
1 Jan 2024 8:49PM
Thumbs Up

The connectors may be waterproof, but how corrosion resistant are they?

Both Locosys and Motion, have had problems in the past, with bad connections to external water proof sockets.

PacoRaapNL
145 posts
2 Jan 2024 8:19PM
Thumbs Up

Thank you Decrepit.

Now I have 3 Liligo's I have to do something with them.. :-)

One will become a minimal size logger only version to be tested and to be used in waterproof small pouch/bag which I use for my car key on my brest. No idea if we will have enough sats but otherwise I can reuse it for a full package version.

One will be a full view package version with a modified 3D printed version from Freeze.

The last one I keep as spare.... :-) just in case.


Question for Freeze did you use the 3M tape in for example 10mm witdh and made them up as one glue layer?
Or did you bougth and used a large 80x80mm 3M BHV piece cut to the correct size just like an one part seal?

Paco

Rolz
QLD, 169 posts
3 Jan 2024 10:48AM
Thumbs Up

Select to expand quote
PacoRaapNL said..
Jan did a last resort proposal to use the 1.06 board library by using a json url file which shows all previous libraries in de ESP32 board manager. I cant place pictures yet here as newbie.

With the 1.06 version and the 2.0.2 IDE now after a reboot the webserver is shown.
Also the Putty logged into the comport shows correct backgraound commands like sleep and wake up.

Thanks Jan for the assistance the past week.

We knew it was something small and it was firework to end this year 2023 with this troubleshooting.
See you all next year.

Paco


out of interest what happened when you use the flash download tool?www.espressif.com/en/support/download/other-tools

PacoRaapNL
145 posts
3 Jan 2024 3:25PM
Thumbs Up

Select to expand quote
Rolz said..

PacoRaapNL said..
Jan did a last resort proposal to use the 1.06 board library by using a json url file which shows all previous libraries in de ESP32 board manager. I cant place pictures yet here as newbie.

With the 1.06 version and the 2.0.2 IDE now after a reboot the webserver is shown.
Also the Putty logged into the comport shows correct backgraound commands like sleep and wake up.

Thanks Jan for the assistance the past week.

We knew it was something small and it was firework to end this year 2023 with this troubleshooting.
See you all next year.

Paco



out of interest what happened when you use the flash download tool?www.espressif.com/en/support/download/other-tools


Rolz, I tried that too, but to no avail.
Will test with the spare board when time allows again with the current knowledge the 1.06 ESP32 board library is the key in the current Arduino IDE upload.

Paco

rp6conrad
364 posts
3 Jan 2024 4:39PM
Thumbs Up

Select to expand quote
Rolz said..

PacoRaapNL said..
Jan did a last resort proposal to use the 1.06 board library by using a json url file which shows all previous libraries in de ESP32 board manager. I cant place pictures yet here as newbie.

With the 1.06 version and the 2.0.2 IDE now after a reboot the webserver is shown.
Also the Putty logged into the comport shows correct backgraound commands like sleep and wake up.

Thanks Jan for the assistance the past week.

We knew it was something small and it was firework to end this year 2023 with this troubleshooting.
See you all next year.

Paco



out of interest what happened when you use the flash download tool?www.espressif.com/en/support/download/other-tools


The first attempt was with the Arduino IDE 2.2 + ESP32 V2.01 library, loading the OTA Webupdate example. Then uploading the ESP SW 5.80 over OTA. At first, seems to run, but after reboot / powercycle, the Arduino OTA Webupdate example boot again !
Then the second attempt with the Espressif tool gives the same behaviour ! It looks that the Espressif tool does not complete erase the flash, as the same problem did raise again.
Only the attempt with Arduino IDE 2.2 + ESP32 V1.06 did fix the problem.
@ Paco : correct me if I am wrong.
Greetings, Jan



Subscribe
Reply

Forums > Windsurfing   Gps and Speed talk


"Another DIY GPS logger approach" started by rp6conrad