-
Notifications
You must be signed in to change notification settings - Fork 104
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
Read always timeout in arm-unknown-linux-musleabihf #119
Comments
Hello @pandakka, this looks strange indeed. If there is data on the rx line after the port gets opened, than I would expect it to be received. Just the overcautious question: Is there actually data sent to the serial port you are running the snipped above on? Could you please cross-check the reception of data with this serial port using a second adapter, crossed RX and TX lines, and
Transmitting data back and forth between these two serial ports, should report success like (at least for the test cases not using flow control):
|
@sirhcel Thank for your help ! Thank you for your advice, that I find my embedded linux board have a little diffent from PC,which need take some special setting 😓 |
I'm glad to hear that! So there is nothing more to do here. May I just ask out of curiosity what finally caused the data not being received? |
Maybe is my first time touch embedded programing, I try a lot and find the path is /dev/ttymxc3 😂. |
This sounds like you are running into #66 on your embedded device. On Linux without libudev, the enumeration is done using sysfs and apparently the paths from What's your environment on the target? Is udev really not available there? How are you buildilng serialport-rs and your application for the embedded target? Could you please leave a comment in #66 if you are building without udev support? |
I try to use this Create in my embedded linux board programing. The port opened and send the message(I reviced by using the “cat /dev/ttyS3”) But when use test funtion read() its always get timeout Errors no matter how long Timeout() set. Did I miss something?
![1691380850227](https://private-user-images.githubusercontent.com/23035150/258696294-b78694c3-1e19-45da-977b-c2769e4d6bc7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk1MzkwNjcsIm5iZiI6MTcxOTUzODc2NywicGF0aCI6Ii8yMzAzNTE1MC8yNTg2OTYyOTQtYjc4Njk0YzMtMWUxOS00NWRhLTk3N2ItYzI3NjllNGQ2YmM3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI4VDAxMzkyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAxMjg3ODFhZWNjOWJmMDlkMTEyZDU5MGExYzc4OGFlMWY3MjBkZDk1OGFjODkxMjE4OGQ2MTBhNTY1ZjM2OTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.YK13OPSi5v89CGGps0g7GfoGRYeK1xBbioZCz-rIPhY)
here is my test code :
(opnenative() have the same problem.)
cargo build :
The text was updated successfully, but these errors were encountered: