OpenMarine

Full Version: Seatalk1 to NMEA0183 with Arduino
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
FYI sk server NMEA 0183 parser can decode STALK sentences that carry the raw Seatalk data, so you don’t need to do any per sentence conversions if you have a sk server already running.
Do you have any code you'd like to share? I'm still struggling with this.
(2020-06-11, 06:11 PM)richardonaboat Wrote: [ -> ]
(2020-05-14, 03:25 PM)abarrow Wrote: [ -> ]it appears that someone has already done a 9bit version of SoftwareSerial for ESP. https://github.com/ionini/espsoftwareserial

espsoftwareserial works well for me on my web based autopilot controller. Set up 8bit Mark/space parity. Parity bit will be mark for command bytes. Call readParity to check.

Could you share some of your code ?
(2020-06-11, 07:45 PM)olewsaa Wrote: [ -> ]
(2020-06-11, 06:11 PM)richardonaboat Wrote: [ -> ]
(2020-05-14, 03:25 PM)abarrow Wrote: [ -> ]it appears that someone has already done a 9bit version of SoftwareSerial for ESP. https://github.com/ionini/espsoftwareserial

espsoftwareserial works well for me on my web based autopilot controller. Set up 8bit Mark/space parity. Parity bit will be mark for command bytes. Call readParity to check.

Could you share some of your code ?

I have put the code onto github (I hope - I'm new to this app)[/url]

[url=https://github.com/richardJG/APRemote]APRemote control


It asumes that your Seatalk 1 interface inverts the signal otherwise change true to false in the software serial initialization

mySerial.begin(4800, SWSERIAL_8S1, RX_IN, TX_OUT, true, 256, 256);

Processing Seatalk takes place in the readST function.
Awesome! Thank you so much.
Just to let you know, I was finally able to get your code to compile in PlatformIO. The web page comes up great - I haven't had a chance to test it on a working SeaTalk network yet. Thanks so much for sharing.
Pages: 1 2