-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enumate the serialport not correct in raspberry CM4 #66
Comments
I'm sorry for the late reply @zrz4066! Which release of serialport-rs were you using back then? Could you please give our example
Which operating system release are you running on your Raspberry Pi? If the output differs there, then this is something to look further into. I've got the output above even with our release 4.2.0 which was out at the time you were writing this issue. |
Finally managed to fabricate the output from the description with the
It looks like the actual enumeration just returns directory names from
|
Version 4.2.2 Thanks for your Answer at #119 and hope it can help you. |
I would have expected them to be listed in |
@sirhcel Sure ! But I need to go outside these days.Once back I will write in this issues. |
I found the time to boot up an i.MX8 board. It runs a Linux with BusyBox and in
Linux on this board is pretty bare and getting How does things look on your system @pandakka? |
Sorry for the late reply! It seems looks like same as mine. Due to the system is pretty bare, that libudev may not work which cause the list_ports can't find the port. Right? Thank you for you answar! |
let ports = serialport::available_ports().expect("No ports found!");
for p in ports {
println!("{}", p.port_name);
}
After run the code ,I got the serial port name. The port name is not correct. "/sys/class" is redundant. There are other serial port such as /dev/ttyAMA1 /dev/AMA2,but it does't enumerate all serial port actually.
pi@raspberrypi:~ $ sudo ./rpidemo
Blinking an LED on a Raspberry Pi Compute Module 4.
/sys/class/tty/ttyUSB3
/sys/class/tty/ttyUSB1
/sys/class/tty/ttyUSB2
/sys/class/tty/ttyUSB0
The text was updated successfully, but these errors were encountered: