bareboat-necessities/lysmarine_gen

Build a version of BBN Marine OS for m5stack CoreMP135

Closed this issue · 15 comments

Build a version of BBN Marine OS for m5stack CoreMP135

CoreMP135 Is arm based computer 4GB RAM and with many interfaces two CAN bus for NMEA 2000,
RS 485 for NMEA 0183,
Uart for pypilot motor controller, i2c for IMU.

It has 2” color touchscreen. Good for LVGL GUI.

So building some headless BBN Marine OS for it
sounds like a good idea.

It could run SignalK, gpsd, pypilot, AvNav, NodeRed, possibly HomeAssistant, mopidy, etc

And instruments like in BBN for m5stack tough
using LVGL framebuffer on CoreMP135 touchscreen.

I’ve asked about state of the Debian OS image development for CoreMP135 on m5stack forums

https://community.m5stack.com/topic/6478/coremp135-debian-image/24?_=1719934536704

ideas on auto expanding root partition on first boot

https://raspberrypi.stackexchange.com/questions/138601/autoexpand-partition-after-first-boot

Applications library for coremp135

https://github.com/m5stack/M5Stack_Linux_Libs

What doesn't work

  • needs BBN launcher (static web page can do)
  • SignalK binds only to ipv6
  • Doesn't auto expand root filesystem on SD card on first boot (there is a script provided though)
  • Doesn’t reboot on reboot command line
  • Test can interfaces
  • Test with pypilot motor controller via UART
  • Test RS 485, (with NMEA 0183)
  • Port https://github.com/bareboat-necessities/bbn-m5stack-tough as framebuffer app
  • Write some kind of app for bilge and voltage alarms to be sent via WhatsApp
  • Preset PyPilot to open USART6 (port C)
  • Preset SignalK (or PyPilot) to open RS-485 (USART3)

USB errors might be due to USB3.0 hub plugged into USB2.0 port


Confirmed: The errors where due to USB3 hub in USB2 port

Update

What doesn't work

  • Doesn’t reboot on reboot command line ('reboot -f' works)
  • Test can interfaces
  • Test with pypilot motor controller via UART (/dev/ttySTM0)
  • Test RS 485, (with NMEA 0183) /dev/ttySTM3
  • Port https://github.com/bareboat-necessities/bbn-m5stack-tough as framebuffer app
  • Write some kind of app for bilge and voltage alarms to be sent via WhatsApp
  • Turn of built-in LCD screen after a timeout to save power

Update

Todo list:

  • Test can interfaces
  • Test with pypilot motor controller via UART (/dev/ttySTM0)
  • Test RS 485, (with NMEA 0183) /dev/ttySTM3
  • Turn of built-in LCD screen after a timeout to save power

For releases past first version:

nmea 2000 and pypilot motor controller are now working plug-n-play.

Update

Todo list:

  • Documentation updates

For releases past first version:

Done.

Issues will be reported individually