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
Motor Controller Not Found
#5
(2022-12-22, 04:00 PM)seandepagnier Wrote: if you see "bind_failed"   it means another instance of pypilot is running.

First verify the serial port:
ls -l /dev/serial0

it should point to /dev/ttyAMA0

Next stop pypilot:
sudo service pypilot stop


Now try running on the console pypilot_servo, and check the results.    You may need to add /dev/ttyAMA0 to the list of serial ports pypilot can use.

Hi Sean 

Thanks for taking the time to look at this.  Probably when I last ran the servo diagnostic, I may have already been runnnig the service directly on the pi then tried the servo cmd from SSH. Anyhow having made sure no Pypilot service was running this is still the output :

pi@openplotter:~/openplotter-pypilot $ pypilot_servo
pypilot Servo
world magnetic model not available
nmea process 1988
listening on port 20220 for nmea connections
gps process 1990
loading servo calibration /home/pi/.pypilot/servocalibration
WARNING: using default servo calibration!!
serialprobe removing gps device /dev/serial/by-id/usb-u-blox_AG_-_www.u-blox.com_u-blox_GNSS_receiver-if00
pypilotServer process 1992
server setup has 4 pipes
zeroconf addresses ['127.0.0.1', '192.168.1.86', '10.10.10.1'] 3
gps filter process 1991
gpsd connected
GPSD devices ['/dev/ttyACM0']
sensor found gps gpsd /dev/ttyACM0 Thu Dec 22 20:29:37 2022
servo probe ('/dev/ttyAMA0', 38400) 249.440488942
signalk process 1989
signalkread token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiI2ZjkxNDlhNy0xMTAzLTRlNmQtODc1NC03ODcwMjRkNDM1NjQiLCJpYXQiOjE2NzE1MTQ5MjksImV4cCI6MTcwMzA3MjUyOX0.KeRv5Sl2Wn4Hl7NZPL1G1rrMdgc5mvaR9yIpMvrutYo
signalk server found 127.0.0.1:3000
signalk server found 192.168.1.86:3000
signalk found ws://192.168.1.86:3000/signalk/v1/stream?subscribe=none
signalk connected to ws://192.168.1.86:3000/signalk/v1/stream?subscribe=none
servo probe ('/dev/ttyAMA0', 38400) 263.763158924
failed to open servo on: ('/dev/ttyAMA0', 38400) [Errno 16] could not open port /dev/ttyAMA0: [Errno 16] Device or resource busy: '/dev/ttyAMA0'
servo probe ('/dev/ttyAMA0', 38400) 273.963329599
failed to open servo on: ('/dev/ttyAMA0', 38400) [Errno 16] could not open port /dev/ttyAMA0: [Errno 16] Device or resource busy: '/dev/ttyAMA0'
^CProcess Process-5:
Process Process-2:
Traceback (most recent call last):
  File "/usr/local/bin/pypilot_servo", line 33, in <module>
Traceback (most recent call last):
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.9/dist-packages/pypilot/server.py", line 411, in run
    time.sleep(st)
KeyboardInterrupt
    sys.exit(load_entry_point('pypilot==0.36', 'console_scripts', 'pypilot_servo')())
  File "/usr/local/lib/python3.9/dist-packages/pypilot/servo.py", line 820, in main
    time.sleep(dt)
KeyboardInterrupt
Traceback (most recent call last):
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.9/dist-packages/pypilot/signalk.py", line 261, in process
    self.poll(1)
  File "/usr/local/lib/python3.9/dist-packages/pypilot/signalk.py", line 288, in poll
    self.client.poll(timeout)
  File "/usr/local/lib/python3.9/dist-packages/pypilot/client.py", line 277, in poll
    events = self.poller.poll(int(1000 * timeout))
KeyboardInterrupt

In the end I'm not so much interested with this working with openplotter. 

I just ideally want a working instance of Pypilot. 

So if installing it on a clean RPI image would work better, then happy to do that. Ive seen you have a tinypilot that works on a Pi ZeroW, but they are hard to find these days in Nz.

Anyhow, I've tried so many different options with the serial ports that I'm gradually making things worse, and might be time to start from scratch with a clean install again?
Reply


Messages In This Thread
Motor Controller Not Found - by Redline - 2022-12-21, 10:23 PM
RE: Motor Controller Not Found - by Redline - 2022-12-22, 01:52 AM
RE: Motor Controller Not Found - by Redline - 2022-12-22, 06:34 AM
RE: Motor Controller Not Found - by seandepagnier - 2022-12-22, 04:00 PM
RE: Motor Controller Not Found - by Redline - 2022-12-22, 09:32 PM
RE: Motor Controller Not Found - by Gennady - 2022-12-28, 03:26 AM
RE: Motor Controller Not Found - by Redline - 2022-12-23, 12:23 AM
RE: Motor Controller Not Found - by seandepagnier - 2022-12-23, 02:28 PM
RE: Motor Controller Not Found - by ironman - 2022-12-23, 07:30 PM
RE: Motor Controller Not Found - by Redline - 2022-12-24, 04:50 AM
RE: Motor Controller Not Found - by seandepagnier - 2022-12-25, 10:09 PM
RE: Motor Controller Not Found - by Redline - 2023-01-04, 10:03 AM
RE: Motor Controller Not Found - by seandepagnier - 2023-01-04, 02:36 PM
RE: Motor Controller Not Found - by Redline - 2023-01-05, 04:30 AM
RE: Motor Controller Not Found - by seandepagnier - 2023-01-05, 06:49 PM
RE: Motor Controller Not Found - by Kennyboy - 2023-04-28, 08:48 PM
RE: Motor Controller Not Found - by ironman - 2023-04-29, 08:00 AM
RE: Motor Controller Not Found - by Kennyboy - 2023-05-26, 02:34 PM
RE: Motor Controller Not Found - by seandepagnier - 2023-05-27, 04:36 AM
RE: Motor Controller Not Found - by Kennyboy - 2023-05-27, 06:47 PM
RE: Motor Controller Not Found - by Kennyboy - 2023-09-01, 07:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)