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:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pypilot on openplotter 3
#13
I reran the install with regard to the serial interface:
  • On a clean 32-bit Openplotter 3.0 image on a raspberry 3b+, there is only a ttyAMA0 interface; serial1 points to it. 
  • When serial port is enabled in raspi-config, and serial console disabled, ttyS0 is added and serial0 points to it.
  • When openplotter-pypilot has done its 'enable hardware serial' thing, serial0 and serial1 are swapped, and hciuart is disabled.

That means it does not matter, and it is not necessary, to enable the serial port in raspi-config manually; you have to do it through openplotter-pypilot anyway. I believe this was different in the previous version of openplotter/raspbian, when the raspi-config actions were enough to make pypilot access the serial. Still, this is no problem for the rollout to openplotter, but it needs to be part of the release notes / install instructions, otherwise it might confuse those who are new to this arena.

See this output:

Code:
On a clean 32-bit Openplotter 3.0 image on a raspberry 3b+, there is only a ttyAMA0 interface; serial1 points to it. 

root@openplotter:~# ls -al /dev/serial*
lrwxrwxrwx 1 root root 7 Jul 18 19:27 /dev/serial1 -> ttyAMA0

root@openplotter:~# cat /boot/cmdline.txt 
console=serial0,115200 console=tty1 root=PARTUUID=214172f9-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
root@openplotter:~# grep disable-bt /boot/config.txt 
root@openplotter:~# systemctl status hciuart|grep -E "Loaded:|Active:"
     Loaded: loaded (/lib/systemd/system/hciuart.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2022-07-18 19:27:27 BST; 1 months 17 days ago


When serial port is enabled in raspi-config, and serial console disabled, serial0 points to ttyS0

root@openplotter:~# ls -al /dev/serial*
lrwxrwxrwx 1 root root 5 Sep  5 04:30 /dev/serial0 -> ttyS0
lrwxrwxrwx 1 root root 7 Sep  5 04:30 /dev/serial1 -> ttyAMA0
root@openplotter:~# cat /boot/cmdline.txt 
console=tty1 root=PARTUUID=214172f9-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
root@openplotter:~# grep disable-bt /boot/config.txt 
root@openplotter:~# systemctl status hciuart|grep -E "Loaded:|Active:"
     Loaded: loaded (/lib/systemd/system/hciuart.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2022-09-05 04:30:54 BST; 2min 38s ago
root@openplotter:~# 


When openplotter does its thing, serial0 and serial1 are swapped, and hciuart is disabled.

pi@openplotter:~ $ ls -al /dev/serial*
lrwxrwxrwx 1 root root 7 Sep  5 04:43 /dev/serial0 -> ttyAMA0
lrwxrwxrwx 1 root root 5 Sep  5 04:43 /dev/serial1 -> ttyS0
pi@openplotter:~ $ cat /boot/cmdline.txt 
root=PARTUUID=214172f9-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles 
pi@openplotter:~ $ grep disable-bt /boot/config.txt 
dtoverlay=disable-bt
pi@openplotter:~ $ systemctl status hciuart|grep -E "Loaded:|Active:"
     Loaded: loaded (/lib/systemd/system/hciuart.service; disabled; vendor preset: enabled)
     Active: inactive (dead)
Reply


Messages In This Thread
pypilot on openplotter 3 - by seandepagnier - 2022-08-31, 10:39 PM
RE: pypilot on openplotter 3 - by ardzeiem - 2022-09-01, 06:31 PM
RE: pypilot on openplotter 3 - by ironman - 2022-09-05, 04:51 AM
RE: pypilot on openplotter 3 - by seandepagnier - 2022-09-05, 10:26 AM
RE: pypilot on openplotter 3 - by ironman - 2022-09-05, 11:08 AM
RE: pypilot on openplotter 3 - by seandepagnier - 2022-09-05, 04:58 PM
RE: pypilot on openplotter 3 - by Gennady - 2022-09-02, 01:58 AM
RE: pypilot on openplotter 3 - by seandepagnier - 2022-09-02, 08:11 AM
RE: pypilot on openplotter 3 - by Gennady - 2022-09-02, 11:31 PM
RE: pypilot on openplotter 3 - by seandepagnier - 2022-09-03, 02:00 AM
RE: pypilot on openplotter 3 - by Max1947 - 2022-09-03, 10:51 AM
RE: pypilot on openplotter 3 - by Gennady - 2022-09-03, 05:09 PM
RE: pypilot on openplotter 3 - by seandepagnier - 2022-09-03, 10:36 PM
RE: pypilot on openplotter 3 - by ironman - 2022-09-04, 08:31 AM
RE: pypilot on openplotter 3 - by ironman - 2022-09-04, 04:59 PM
RE: pypilot on openplotter 3 - by seandepagnier - 2022-09-04, 06:04 PM
RE: pypilot on openplotter 3 - by ironman - 2022-09-04, 06:19 PM
RE: pypilot on openplotter 3 - by Sailoog - 2022-09-10, 07:06 PM
RE: pypilot on openplotter 3 - by ironman - 2022-09-15, 11:22 AM
RE: pypilot on openplotter 3 - by Sailoog - 2022-09-15, 11:55 AM
RE: pypilot on openplotter 3 - by ironman - 2022-09-15, 09:58 PM
RE: pypilot on openplotter 3 - by Gennady - 2022-11-13, 04:36 AM
RE: pypilot on openplotter 3 - by ironman - 2022-11-15, 11:00 AM
RE: pypilot on openplotter 3 - by SVHM - 2023-05-23, 03:14 AM
RE: pypilot on openplotter 3 - by Sailoog - 2023-05-23, 01:09 PM
RE: pypilot on openplotter 3 - by SVHM - 2023-05-23, 01:49 PM
RE: pypilot on openplotter 3 - by seandepagnier - 2023-05-23, 04:56 AM
RE: pypilot on openplotter 3 - by SVHM - 2023-05-23, 01:06 PM
RE: pypilot on openplotter 3 - by SVHM - 2023-05-24, 02:43 AM
RE: pypilot on openplotter 3 - by Sailoog - 2023-05-23, 02:01 PM
RE: pypilot on openplotter 3 - by SVHM - 2023-05-23, 02:39 PM
RE: pypilot on openplotter 3 - by Sailoog - 2023-05-23, 03:09 PM
RE: pypilot on openplotter 3 - by SVHM - 2023-05-23, 08:38 PM
RE: pypilot on openplotter 3 - by seandepagnier - 2023-05-25, 07:15 AM
RE: pypilot on openplotter 3 - by SVHM - 2023-05-25, 11:05 PM
RE: pypilot on openplotter 3 - by SVHM - 2023-05-29, 03:28 AM
RE: pypilot on openplotter 3 - by mgrouch - 2023-05-29, 04:51 AM
RE: pypilot on openplotter 3 - by seandepagnier - 2023-05-29, 05:34 AM
RE: pypilot on openplotter 3 - by Sailoog - 2023-05-29, 12:21 PM
RE: pypilot on openplotter 3 - by SVHM - 2023-05-29, 02:52 PM
RE: pypilot on openplotter 3 - by Sailoog - 2023-05-29, 03:18 PM
RE: pypilot on openplotter 3 - by aitonos - 2023-10-07, 06:03 PM
RE: pypilot on openplotter 3 - by aitonos - 2023-10-07, 10:32 PM
RE: pypilot on openplotter 3 - by Sailoog - 2023-10-08, 09:52 AM
RE: pypilot on openplotter 3 - by aitonos - 2023-10-09, 07:23 PM
RE: pypilot on openplotter 3 - by jim321 - 2023-10-10, 01:32 PM
RE: pypilot on openplotter 3 - by aitonos - 2023-10-10, 01:53 PM
RE: pypilot on openplotter 3 - by Hugo Bokman - 2023-11-28, 05:35 PM
RE: pypilot on openplotter 3 - by ironman - 2023-11-28, 05:54 PM
RE: pypilot on openplotter 3 - by partyvi - 2024-01-09, 06:07 AM
RE: pypilot on openplotter 3 - by seandepagnier - 2024-01-09, 06:27 AM
RE: pypilot on openplotter 3 - by partyvi - 2024-01-09, 03:50 PM
RE: pypilot on openplotter 3 - by seandepagnier - 2024-01-09, 09:05 PM
RE: pypilot on openplotter 3 - by Sailoog - 2024-01-10, 01:07 PM

Forum Jump:


Users browsing this thread: 6 Guest(s)