OpenMarine
PyPilot doesn't work after upgrade - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18)
+--- Thread: PyPilot doesn't work after upgrade (/showthread.php?tid=1493)

Pages: 1 2 3 4 5


RE: PyPilot doesn't work after upgrade - DjelaliTricks - 2019-11-14

(2019-11-14, 05:04 PM)seandepagnier Wrote: Try booting the tinypilot, and let us see /var/log/pypilot/current.   Don't run pypilot manually since it automatically is started at boot.
If the servo is not detected on /dev/ttyAMA0 (make sure motor controller is powered)  then try disconnecting power to the motor controller and try with a usb cable.   If this works, then you know the controller works but communication is bad.   Otherwise likely the controller has a problem.

My log file looks 


Quote:2019-06-11_20:01:17.91984 servo lost connection
2019-06-11_20:01:17.91987 no pyudev module! will scan usb devices every probe! No module named six
2019-06-11_20:01:17.91995 device /dev/ttyAMA0
2019-06-11_20:01:17.91998 failed to open servo on: (u'/dev/ttyAMA0', 38400) [Errno 16] could not open port /dev/ttyAMA0: [Errno 16] Device or resource busy: '/dev/ttyA$

and with USB connection :

Quote:2019-06-11_20:14:54.24032 arduino servo found on [u'/dev/ttyAMA0', 38400]
2019-06-11_20:14:54.24038 serialprobe success: /home/tc/.pypilot/servodevice [u'/dev/ttyAMA0', 38400]
2019-06-11_20:14:54.24046 device /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
2019-06-11_20:14:54.24052 nmea serial probe timeout ('/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0', 38400)
2019-06-11_20:14:54.24063 nmea serial probe timeout ('/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0', 4800)

File remastered in attachment...

I just have RPi and motor controler, no NMEA device connected


RE: PyPilot doesn't work after upgrade - seandepagnier - 2019-11-14

This line you posted:
Code:
2019-06-11_20:14:54.24032 arduino servo found on [u'/dev/ttyAMA0', 38400]

indicates that the motor controller is working.


RE: PyPilot doesn't work after upgrade - DjelaliTricks - 2019-11-15

(2019-11-14, 09:00 PM)seandepagnier Wrote: This line you posted:
Code:
2019-06-11_20:14:54.24032 arduino servo found on [u'/dev/ttyAMA0', 38400]

indicates that the motor controller is working.

So it means the issue comes from communication betwen arduino and RPi and pypilot should work in USB connection.

Will try to found where the connection is lots and if USB working when back to the boat...

Thanks,

Robin


RE: PyPilot doesn't work after upgrade - seandepagnier - 2019-11-16

That line indicated it found the controller on /dev/ttyAMA0 which is not a usb port. It is the hardware serial port of the gpio pin header.

This is the normal port to use. It has the lowest latency and best reliability which is why I don't usually use a usb serial port for the motor controller.