2020-05-13, 09:38 PM
(2020-05-13, 03:03 PM)PaddyB Wrote:(2020-05-13, 08:08 AM)olewsaa Wrote: I am also working on this, I want to use a ESP8266 module NodeMCU 12-E to convert the ST1 to SignalK and send it wireless to the SignalK server.
So far I ahve not figured out how to use the SoftwareSerial in 9 bit mode. The SoftwareSerial works nicely in normal 8 bit mode. It should be doable to flip
it into 9 bit mode (it's software !) and decoding the ST1 messages is already documented.
Today I'm using a ST1 to USB-NMEA, but I really want to get rid of the cabels.
Ole
Interesting. Today I've got the hardware uarts 1 & 2 seeming to work solid on an esp32 with micropython but they won't do 9 bit. Not sure if there's a software serial for micropython, google came up with talk of uS timing problems. PyBoards do 9 bit hardware, it says...
https://docs.micropython.org/en/latest/library/machine.UART.html
The esp32 is a far more capable board, dual core processor etc (in addition to much more). The modified serial libraray out there could probably be converted to run
on esp32 with its two UARTs. I still think that to modify the SoftwareSerial library should be the simplest, as this is purely done in software. If you program in Python and
not in Arduino C it might be a bit different. I you succeed I'll be happy to use Python.
Ole
Ole W. Saastad
web : https://www.homelinux.no https://algol.homelinux.no
https://github.com/olewsaa/Yacht-computer
twitter : olewsaa
web : https://www.homelinux.no https://algol.homelinux.no
https://github.com/olewsaa/Yacht-computer
twitter : olewsaa