Go to advanced search

by liuluan002
Fri Feb 01, 2013 5:47 pm
Forum: C/C++
Topic: UART receive problem
Replies: 11
Views: 15789

Re: UART receive problem

I have tested the remove the |O_NDELAY, however there are no print the received the code on the screen. At the same time, I got echo from the laptop screen on the other side. Also, the program in the Pi side can not exit automatically. There is a "bug" in that code... or rather the two parts of it d...
by liuluan002
Fri Feb 01, 2013 5:45 pm
Forum: C/C++
Topic: UART receive problem
Replies: 11
Views: 15789

Re: UART receive problem

I have tested the loop and continuously, send the data to the port, however still report UART error Then you need to send something from the PC to the RPi. That code is simply reporting that it sees no data. It's not an error. If you can, rewrite the code so it sits in a loop waiting for incoming da...
by liuluan002
Fri Feb 01, 2013 4:38 pm
Forum: C/C++
Topic: UART receive problem
Replies: 11
Views: 15789

Re: UART receive problem

The sending is 100% works fine. I can see from another laptop which has RS232 itself
-rst- wrote:And there is something at the other end of the TTL-RS232 ? Can you see if the send actually goes through (see the message on the other end)?
by liuluan002
Fri Feb 01, 2013 4:33 pm
Forum: C/C++
Topic: UART receive problem
Replies: 11
Views: 15789

Re: UART receive problem

Hi Thank you for your reply I have connected the GND and Vcc 3.3V from GPIO to my TTL-RS232 Also PIN GPIO14 with the TXD and PIN GPIO15 with the RXD are connected to TTL-RS232 also. I have coneected the mouse and the keyboard also with the screen to the RPi. However send works and receive does not w...
by liuluan002
Fri Feb 01, 2013 4:02 pm
Forum: C/C++
Topic: UART receive problem
Replies: 11
Views: 15789

Re: UART receive problem

Here is the test instruction, however I found the receive part does not working Using the UART If you are running Raspbian or similar then the UART will be used as a serial console. Using a suitable cable, such as the TTL-232R-3V3-WE, you can connect it to your PC and using some simple terminal soft...
by liuluan002
Fri Feb 01, 2013 3:14 pm
Forum: C/C++
Topic: UART receive problem
Replies: 11
Views: 15789

UART receive problem

I have tested the code for the UART communication from the link below, however I found the receiving is not working. http://www.raspberry-projects.com/pi/programming-in-c/uart-serial-port/using-the-uart It reports UART RX error. It means the rx_length is -1. Who can help with this? The sending part ...

Go to advanced search