Access GPIO TX RX serial ports ? #348
Replies: 4 comments 8 replies
-
You commented out the provider statement. This is needed. That address is a path. U should be able to ls /dev and see the entries |
Beta Was this translation helpful? Give feedback.
-
Uncomment the line //.provider("pigpio-serial") Don't change it, just uncomment it. I wasn't certain on finding the address so I used google to find instructions. |
Beta Was this translation helpful? Give feedback.
-
and be certain you enabled the serial port interface in raspi-config |
Beta Was this translation helpful? Give feedback.
-
I see data in the printlines with what appears to be the login prompt. I think you need to research why as that ASCII is present as it will interfere with your expected data. I know you mentioned removing the serial console data from the cmdline.txt but it appears the OS still believes it is a console connection. In the earlier printouts seeing Data six times you must have received 6 bytes of value less than 32 and a few displayable ASCII bytes, But the fact you later see the login prompt all this data maybe invalid. |
Beta Was this translation helpful? Give feedback.
-
Access GPIO TX RX serial ports
I'm trying to read the RFID data being sent via the 125khz Rfid Reader Module + Antenam using the PI4J V2 but without success. What could I be doing wrong?
`public void listenerTXRX() {
try {
Keep stopping at this place
console.print("Waiting till serial port is open"); while (!serial.isOpen()) { Thread.sleep(250); } ![WhatsApp Image 2024-04-16 at 23 51 14](https://github.com/Pi4J/pi4j-v2/assets/32819426/17fb8b0b-95a4-4615-96fe-a7564fbe98c4)
Beta Was this translation helpful? Give feedback.
All reactions