hatlabs / SH-ESP32-nmea2000-gateway

An Actisense NGT-1 compatible NMEA 2000 USB gateway for the SH-ESP32
Apache License 2.0
31 stars 9 forks source link

Gateway hangs when n2k traffic goes both ways #6

Open hans-martijn opened 2 years ago

hans-martijn commented 2 years ago

I have my gateway connected to a raspberry pi 4 (4GB) with signalk. Receiving N2K data goes perfect, but if I try to send data back (AIS for instance) the gateway crashes and hangs. Is this a known issue or should I use the gateway only to send or receive data?

Hans

mairas commented 2 years ago

It should definitely work as a regular bidirectional gateway. I would need a bit more information about your setup and symptoms to investigate the issue.

hans-martijn commented 2 years ago

Hello Matti,

I ordered the gateway last winter in your shop. I assembled everything, and connected it on one side to a nmea2000 tank volume meter for three tanks, and on the other side to a raspberry pi 4, with raspberry os bullseye (up to date) and signalk.

The other things connected through signalk are a nmea0183 AIS system and a pypilot. On another raspberry pi 4 I have OpenCPN installed, which I wanted to use with two screens, as I have to steering stands on my sailboat, one inside and one outside. The inside one is easy, I connected a 12V screen to it, and that works. For outside, it's kind of difficult finding a waterproof screen, as they are almost as expensive as a plotter, so I wanted to test what would happen if I made signalk send AIS info to nmea2000. Every time I try to send information to nmea2000, the gateway hangs after about 10 minutes. I have to pull the usb cable to restart, disable the n2k stream and then it works flawlessly again.

moorrege commented 2 years ago

Hi, I can confirm the same behaviour with my Setup. It stopped directly after sending one sentence( count on display) Raspberry/Signal-K I solved it for this season by disable the „transmit“ from Signal-K to NMEA2000. Dennis