I HAVE A PROBLEM IN UART TRANSMISSION FOR CN-0343.i cant see the transmission , communication is not carried out...
The CN0343 couldn't initiative send data on RS485 line, it need your host to send query command first.
You need to make sure your set both the host and CN0343 have same baud rate, and set the right address of CN0343.
After all the set work done, let host send a command: 5 query\r\n after the command sent, switching the host to received status immediately. Notice: I am assume your CN0343 address is 5, please send the command exactly same with above underlined character, the \r\n means special chars, in hexadecimal is 0x0D and 0x0A
thank you for the reply sir...please tell me how to know the CN0343 decimal address,since as assumed as 5 ??
and also please suggest me whether to keep terimating resistor or not????
it depend on your system structures, I recommended http://www.analog.com/static/imported-files/application_notes/AN-960.pdf this AN is showing how to implement the RS485 interface.
the CN0343 address is input by you, you need to enter the "menu->RS-485 Interface Address" to set.
thank you very much for the reply sir...and also please suggest me,whether i can replace rs485 with rs232.?
Retrieving data ...