![]() |
|
#1
|
|||
|
|||
Problem to read on a serial porthi
i send a command to a led display, the led display is suppose to return me some character i write a string on a serial port CPP / C++ / C Code:
CPP / C++ / C Code:
the lenght of the returned string is under 30 character... when i run the prog, the prog display i wait a few second and nothing more is display.... i kill the program any idea why i don't read correctly on the serial port? Last edited by LuciWiz : 29-Mar-2005 at 14:57.
Reason: Please insert your C code between [c] & [/c] tags
|
|||
|
#2
|
|||
|
|||
|
Quote:
Is the message getting to the LED? (Can you see anything on the LED?) Are RS232 handshake signals (RTS-CTS) connected on your serial port? You can confirm operation of the serial port by connecting a loop-back plug: Disconnect the external device and insert a plug into the port connector with the following connections: Connect RXD to TXD, connect RTS to CTS. (I think these are the only ones required, but you can look up all of the connections here for other possible connections.) Then create a program that writes a short message ("Hello") to that port, and see if the program can read the bytes. Regards, Dave |
|
#3
|
||||
|
||||
|
7 requests to use code tags and counting -- that's 47% of your posts. I'm sure Lucien is getting tired of fixing up your posts and leaving messages about this. It's not really that hard -- the information is right at the top of the forum.
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 08:44 |
| Re: Things to Avoid in C/C++ -- gets() , Part 1 | WaltP | C Programming Language | 5 | 21-Jun-2007 13:13 |
| Problem with string and serial port | collinm | C Programming Language | 13 | 25-Mar-2005 08:39 |
| An ActiveX Control does not work in VB, what problem would that be? | mingcosp | MS Visual C++ / MFC Forum | 0 | 19-Jan-2005 11:04 |
| Using getline to read in data | krisbot | C Programming Language | 4 | 24-Oct-2004 16:57 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The