This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyPilot doesn't work after upgrade
#41
(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
Reply
#42
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.
Reply
#43
(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
Reply
#44
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)