Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

RS232 Class Question

Discussion started by: KCUK (Newbie) on March 21st, 2006 01:51 PM
I have created a software to receive data from an equipment through RS232 communication. It is a simple application of the RS232 class. The software does receive strings from the equipment every time an event is triggered on it. The Expecting reading data is expected like this example:

{Rd,d:02123579ABCDEF000098EB18, .........

If so, I can retrieve wanted data from this returned string. However, the Actual reading data is rather not understandable. The following is an example:

hh˜˜ˆˆˆˆkkÐÐhh˜˜ˆˆˆˆ++ÐÐ((˜˜ˆˆ++ÐÐhhÈÈk kÐ

Would this be a simple encoding problem or not? Any comments will be greatly appreciated.

Thanks
Would you like to join this discussion?
Sign up for a free account, or Login (if you're already a member).
Banfa's Avatar
Banfa
The Voice of Reason
4,560 Posts
March 21st, 2006
03:46 PM
#2

Re: RS232 Class Question
The most likely cause is that you have got the RS232 protocol mis-matched to the sending equipment.

You will need to know

Baud Rate
Data Bits
Start bits
Stop Bits
Parity

of the sending equipment and then set-up your receiving UART (serial port) in the same manor.

For instance a common set would be

Baud Rate - 19200 or 19k2
Data Bits - 8
Start bits - 1
Stop Bits - 1
Parity - no parity

Don't just use these values, you need to find out what the correct values for your link are.
__________________
A method worth implementing is worth invoking :D

Reply
KCUK's Avatar
KCUK
Newbie
2 Posts
March 21st, 2006
04:40 PM
#3

Re: RS232 Class Question
Thanks for your quick replying Banfa

I think we got it. the baud rate should be 57600 instead of the wrong value I used before.

Thanks again ! :D

Quote:
Originally Posted by Banfa
The most likely cause is that you have got the RS232 protocol mis-matched to the sending equipment.

You will need to know

Baud Rate
Data Bits
Start bits
Stop Bits
Parity

of the sending equipment and then set-up your receiving UART (serial port) in the same manor.

For instance a common set would be

Baud Rate - 19200 or 19k2
Data Bits - 8
Start bits - 1
Stop Bits - 1
Parity - no parity

Don't just use these values, you need to find out what the correct values for your link are.

Reply
Reply
Not the answer you were looking for? Post your question . . .
169,970 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Top Miscellaneous Questions Contributors