bareboat-necessities / bbn-nmea200-m5atom

N2K esp32 Arduino sketches for M5Atom with can CA-IS3050G based on https://github.com/ttlappalainen/ https://github.com/hatlabs/ https://github.com/AK-Homberger works
GNU General Public License v3.0
5 stars 0 forks source link

M5stack tough compatibility? #4

Open oxbown opened 1 year ago

oxbown commented 1 year ago

Could be the code ported to M5Stack and bbn-m5stack-tough ??

There is a version of UDP com with Signalk

mgrouch commented 1 year ago

Sure. But as far as I know SignalK devs do not recommend using UDP with SignalK as it’s poorly tested

mgrouch commented 1 year ago

As far as porting m5atom stuff to m5stack it’s super easy. Only instead of m5atom CAN extension board, it would makes sense to use CAN unit (which is same thing just packaged differently)

oxbown commented 1 year ago

Sure. But as far as I know SignalK devs do not recommend using UDP with SignalK as it’s poorly tested

Could be the best option to use AsyncTCP to send data to SignalK. Here an example...

ReactESP and AsyncTCP are compatible?

mgrouch commented 1 year ago

If you want n2k data into SignalK via m5stack tough. you need can module for it. you can take usb-gw code here (atom version) modify include from m5atom to m5tough modify PIN numbers for can tx/rx. and remove code for led blinking cause m5tough has display instead of a led.

in SignalK you will add NMEA 2000 connection to usb as canboat-js.

Gateway code already uses ReactESP. So no need for AsyncTCP.

NMEA 2000 -> esp32 -> usb -> (via nmea2000 canboatjs) SignalK

that’s what usb gateway code already doing.