(2026-07-05, 12:35 PM)sybdezeiler Wrote: (2026-07-05, 10:14 AM)seandepagnier Wrote: What is the specific question other than me being slow to ship orders?
Sean,
no worries about the delivery! Still enough to be done in the meanwhile.
As far as the arduino/rpi issue concerns:
So far I saw communication in the autopilot interface for about 5 seconds and after that none.
Short flashing of 'arduino' and 'sync' and something about the battery.
On the arduino I have the motor.ino loaded.
Connection is USB A-USBB. /dev/ttyACM0 with an alias I created. In the beginning I had the connection added to signalK as well, but got device busy errors and read somewhere that only the serial connection with an alias for Pypilot had to be added. Stuck at that point. Checked some permissions on serial devices and also the presence of the device alias in serialports.
Maybe you have some hints for further investigations?
Some more info on the issue:
When stopping pypilot and only running pypilot_servo the logging seems ok without errors like:
nmea probe ('/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_751313139323512101B1-if00', 38400)
nmea probe ('/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_751313139323512101B1-if00', 4800)
servo probe ('/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_751313139323512101B1-if00', 38400) 3852.181802421
nmea probe ('/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_751313139323512101B1-if00', 38400)
nmea probe ('/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_751313139323512101B1-if00', 4800)
servo probe ('/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_751313139323512101B1-if00', 38400) 3876.781888054
servo probe ('/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_751313139323512101B1-if00', 38400) 3891.181868387
when using the openplotter interface and set IMU only still no errors
however when enabling autopilot next logging lines appear:
failed to open ('/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_751313139323512101B1-if00', 38400) for nmea data [Errno 16] could not open port /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_751313139323512101B1-if00: [Errno 16] Device or resource busy: '/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_751313139323512101B1-if00'
nmea probe ('/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_751313139323512101B1-if00', 4800)
failed to open ('/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_751313139323512101B1-if00', 4800) for nmea data [Errno 16] could not open port /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_751313139323512101B1-if00: [Errno 16] Device or resource busy: '/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_751313139323512101B1-if00'
server add socket ('127.0.0.1', 35024) 4025.043571157
I don't understand this.
some dmesg lines:
dmesg -w:
486.682911] usb 1-1.3: USB disconnect, device number 3
[ 527.860370] usb 1-1.3: new full-speed USB device number 4 using xhci_hcd
[ 527.963341] usb 1-1.3: New USB device found, idVendor=2341, idProduct=0042, bcdDevice= 0.01
[ 527.963358] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[ 527.963362] usb 1-1.3: Manufacturer: Arduino (
www.arduino.cc)
[ 527.963366] usb 1-1.3: SerialNumber: 751313139323512101B1
[ 527.968760] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device
Then I wrote an arduino sketch and a py script to check communication and that's working fine between rpi and arduino USB connection. The builtin led on the arduino blinks on receiving a message from the rpi and replies with "yes here is the arduino"
So my conclusion is that serial usb connection is ok, but pypilot code does something that I don't understand. My knowledge stops there.
Please advise.