This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Seatalk input, MacArthur HAT and rpi5. Options?
#1
Hello everyone,

In my boat I have the ST60+ wind instruments that have a seatalk1 output that I would like to read it using the MacArthur HAT. The official announcement is that Seatalk input does not work with the Raspberry pi 5 because of some gpio change. My questions are:

1. Is the seatalk input something that will never work with the RPI5 due to hardware limitations, or it's something that is just not implemented yet?
2. If it's never going to be fixed, do you have any suggestions on how to read the seatalk input? I see two options, using a raspberry pi 4 instead, or using some external seatalk -> NMEA0183 or usb. Though the latter one is very expensive and I would try to avoid.
3. Other options?

Thanks in advance,
George
Van de Stadt - Spirit 28
Reply
#2
I'm pretty happy with my SeaTalk->NMEA converter.from YakBitz. They have a wired and a USB version. Both are $69(aus) delivered. https://www.yakbitz.com/Default.aspx
Reply
#3
There are no hardware limitations on Raspberry 5, even Raspberry 3 can bit banging any GPIO at 4800 baud. The current limitation of the Raspberry 5 is the software. The hardware architecture changed a lot on Raspberry 5 and the pigpio library no longer works on it. This library was the only one capable of bit banging 4800 baud 9bit and there are no plans to update it.

I have been doing some testing with current and active libraries, but none are ready for this. I want to do one last test before throwing in the towel.  I am pretty sure this will work, but we may need help here.

I want to try libgpiod - gpiomon. It has nanosecond granularity and allows for biases, edges, and even buffering, so I think it can work. Any help is welcome.
Reply
#4
There are a few options discussed in this thread.

Seems like gpiozero is the "recommended" way forward, and the documentation seems to imply it can do bit banging.
https://gpiozero.readthedocs.io/en/stable/api_pins.html

I'm not an expert, but hopefully this helps?
Reply
#5
(2024-03-21, 01:56 PM)Sailoog Wrote: There are no hardware limitations on Raspberry 5, even Raspberry 3 can bit banging any GPIO at 4800 baud. The current limitation of the Raspberry 5 is the software. The hardware architecture changed a lot on Raspberry 5 and the pigpio library no longer works on it. This library was the only one capable of bit banging 4800 baud 9bit and there are no plans to update it.

I have been doing some testing with current and active libraries, but none are ready for this. I want to do one last test before throwing in the towel.  I am pretty sure this will work, but we may need help here.

I want to try libgpiod - gpiomon. It has nanosecond granularity and allows for biases, edges, and even buffering, so I think it can work. Any help is welcome.

Hi Sailloog,

That's good to hear (that it's not a hardware issue) because I'd really like to use the HAT instead of an external solution.
I can definitely offer help, I am a software engineer myself as my day job, eEspecially if it's python/javascript. Hardware I do as a hobby. If you can give me some pointers or specific things I can do to help you, maybe some links to docs/github repo, I can get to it.

Thanks!

(2024-03-20, 11:44 PM)abarrow Wrote: I'm pretty happy with my SeaTalk->NMEA converter.from YakBitz.  They have a wired and a USB version. Both are $69(aus) delivered. https://www.yakbitz.com/Default.aspx
That is a good alternative yeah, if all shit hits the fan with the rpi5 and gpios. 69$ for shipping to europe is quite good. Thanks I'll keep it in mind

(2024-03-21, 02:58 PM)TVR Wrote: There are a few options discussed in this thread.

Seems like gpiozero is the "recommended" way forward, and the documentation seems to imply it can do bit banging.
https://gpiozero.readthedocs.io/en/stable/api_pins.html

I'm not an expert, but hopefully this helps?
Yes appending to what sailoog mentioned since the GPIOs software is the culprit it makes a lot of sense to work towards a rpi5 specific solution. That's a good starting point thanks.
Reply
#6
OK, thanks. This is the background of the problem in case someone can help:

The most important reference is this one where seatalk1 is explained: http://www.thomasknauf.de/seatalk.htm

In part 1 is the explanation of the serial protocol and it is the important one. In part 2 are the datagrams but that is already read by the Signal K server. In part 3 is the electrical part that is already solved by the MacArthur HAT.

Currently we are using pigpio to read serial data at 4800 bauds and 9bit. This is the python script embedded into Signak k: https://github.com/SignalK/signalk-serve...seatalk.js

Basically what we need is to replicate what pigpio does: https://github.com/joan2937/pigpio
Reply
#7
(2024-03-21, 06:04 PM)Sailoog Wrote: OK, thanks. This is the background of the problem in case someone can help:

The most important reference is this one where seatalk1 is explained: http://www.thomasknauf.de/seatalk.htm

In part 1 is the explanation of the serial protocol and it is the important one. In part 2 are the datagrams but that is already read by the Signal K server. In part 3 is the electrical part that is already solved by the MacArthur HAT.

Currently we are using pigpio to read serial data at 4800 bauds and 9bit. This is the python script embedded into Signak k: https://github.com/SignalK/signalk-serve...seatalk.js

Basically what we need is to replicate what pigpio does: https://github.com/joan2937/pigpio

Alright I think I have enough info. I will check what I can do.
Van de Stadt - Spirit 28
Reply
#8
(2024-03-20, 07:47 PM)gpatsiaouras Wrote: 2. If it's never going to be fixed, do you have any suggestions on how to read the seatalk input? I see two options, using a raspberry pi 4 instead, or using some external seatalk -> NMEA0183 or usb. Though the latter one is very expensive and I would try to avoid.

Thanks in advance,
George

I have the same "issue" as gpatsiaouras, I need Setalk to work with the RPI5 and MacArthur HAT, don't want an external converter due to more stuff that can break an draw power (but they seams to do the job).

Any timeframe when we can expect the GPIO library to work with the RPI5?
If it's far away I guess I go with a RPI4... Or???

Thanks for all the work everybody is doing, love it!
Reply
#9
Hey GuteLappen, it's good that you replied to this post. I haven't posted an update since my last message because there are basically no news. I thought I'd have time to work on it, but I have a newborn baby that I completely underestimated on how much it will suck my free time. But I do have some winter plans on that subject.

My boat is currently on the hard for repairs and it will spend the whole winter out, so plenty of time for some projects! I am thinking of adding some 4G/5G connectivity, which if that is the case then I can give access to sailoog (or other party that knows what they are doing) to use my boat, with the Raymarine ON and connected to the seatalk input, as a testing platform. I will send an update when that happens.

Furthermore, I am also in the same level as you that I don't want to get an external converter and also don't want to buy a rpi4 just for this issue. But I thought of getting the yakbitz converter since it's cheap to use UNTIL it's fixed. Probably will do that if it's not fixed by April next year.
Van de Stadt - Spirit 28
Reply
#10
(2024-08-20, 03:29 PM)gpatsiaouras Wrote: Hey GuteLappen, it's good that you replied to this post. I haven't posted an update since my last message because there are basically no news. I thought I'd have time to work on it, but I have a newborn baby that I completely underestimated on how much it will suck my free time. But I do have some winter plans on that subject.

My boat is currently on the hard for repairs and it will spend the whole winter out, so plenty of time for some projects! I am thinking of adding some 4G/5G connectivity, which if that is the case then I can give access to sailoog (or other party that knows what they are doing) to use my boat, with the Raymarine ON and connected to the seatalk input, as a testing platform. I will send an update when that happens.

Furthermore, I am also in the same level as you that I don't want to get an external converter and also don't want to buy a rpi4 just for this issue. But I thought of getting the yakbitz converter since it's cheap to use UNTIL it's fixed. Probably will do that if it's not fixed by April next year.

Congratts to the baby Smile
Do I understand this correctly, that the MacArthur HAT Seatalk1 will not work with the RPI5 until you have the time to look in to it? No one else that can help? Fragile.
I'm not complaining, just trying to understand how this works.
Reply


Forum Jump:


Users browsing this thread: 8 Guest(s)