Posts: 42
Threads: 3
Joined: Nov 2019
Reputation:
4
2020-08-05, 07:13 PM
(This post was last modified: 2020-08-05, 08:50 PM by flybob.)
I had the same issue a few weeks back, solved by reinstall of MCS app.
It broke when I updated Moitessier HAT and crashed a lot of i2c stuff...
Thomas;
Would you expect the Seatalk1 input to work better with a PullUp connected to it?
I'm not sure what's on the MCS board so would it make a difference you beleive?
Also since you completed the magic with ST1 input, are you considering making an output as well?
Jeanneau Sun Odyssey 42.2 - All Openplottered and hooked up on online.
Posts: 181
Threads: 4
Joined: May 2018
Reputation:
28
Hi flybob,
this issue cant be solve by reinstall the MCS App. Its an linux issue in the raspberry firmware.
I have testet now many st1 devices without any issues. You find the wiring in the st1 git folder. You can try to use a 10KOhm Resistor in series to the MCS Input.
At the Moment i have not planed an output because there is no software site availible at the Moment. The Hardware is easy, but you need a script witch translate all the sentences....
Posts: 42
Threads: 3
Joined: Nov 2019
Reputation:
4
(2020-08-06, 08:11 AM)glowntiger Wrote: Hi flybob,
this issue cant be solve by reinstall the MCS App. Its an linux issue in the raspberry firmware.
I have testet now many st1 devices without any issues. You find the wiring in the st1 git folder. You can try to use a 10KOhm Resistor in series to the MCS Input.
At the Moment i have not planed an output because there is no software site availible at the Moment. The Hardware is easy, but you need a script witch translate all the sentences....
I'm thinking about $STALK sentences only, into ST1. So not creating all the sentences but enable other scripts to create $STALK that are created into ST1.
That way it would be possible for many available scripts to communicate.
Example:
https://opencpn.org/wiki/dokuwiki/doku.p...ilot_rm_pi
Jeanneau Sun Odyssey 42.2 - All Openplottered and hooked up on online.
Posts: 42
Threads: 3
Joined: Nov 2019
Reputation:
4
Thanks again for a great product Thomas!
You mentioned a while ago that the hardware part for having a ST1 output was the easy part, can you share your ideas on that?
Developing a script that translates $STALK diagrams would be quite easy from my part - so please share your thoughts on the HW side.
There is quite a bit of work done already regarding the general diagram conversions as well.
https://blog.arribasail.com/2015/08/seat...duino.html
https://bitbucket.org/scruzin/seatalk/src/master/
Jeanneau Sun Odyssey 42.2 - All Openplottered and hooked up on online.
Posts: 42
Threads: 3
Joined: Nov 2019
Reputation:
4
Ok,
I'm looking at Marco Bergmans code and wondering if it can help, as he manages sending (but not generic $STALK though), using only regular GPIO.
https://github.com/marcobergman/
Code:
def write_seatalk (xx, yy):
# thanks to http://www.thomasknauf.de/seatalk.htm
with serial.Serial() as ser:
ser.baudrate = 4800
ser.port = '/dev/serial0'
ser.stopbits=serial.STOPBITS_ONE
ser.bytesize=serial.EIGHTBITS
ser.open()
ser.parity = serial.PARITY_MARK
ser.write(b'\x86')
ser.parity = serial.PARITY_SPACE
ser.write(b'\x11' + chr(int(xx, 16)) + chr(int(yy, 16)))
ser.close()
Jeanneau Sun Odyssey 42.2 - All Openplottered and hooked up on online.