Go Down

Topic: Arduino with UHFReader communication using rs232 (Read 271 times) previous topic - next topic

samadhankadam

i want to communicate arduino uno board with UHFReader using RS-232 without modbus address?

I have a Reader manual with command address but i dont know the arduino library which is suitable?

As per manual host sending command address and then reader response.




can any one help????????

pylon

Quote
I have a Reader manual with command address
How about posting that manual?

Quote
RS-232 without modbus address
Are you sure about RS-232? ModBus usually runs on RS-485, both need external hardware to connect to an UNO.

samadhankadam

yes, I am using TTL To RS232 in between arduino and UHFReader
 

pylon

Still no link to a manual, not even a name of the device, model number or anything the like.


samadhankadam

i am using heroncore UHF reader with rs232 communication port

below i am attach some information about reader

pylon

If you can post screenshots of it you should be able to post the manual. The short excerpts doesn't show enough information.

Quote
I have a Reader manual with command address but i dont know the arduino library which is suitable?
From the information you provided the only library I can identify is HardwareSerial, but that one is an integral part of the IDE, you simply access it by the "Serial" object.

samadhankadam

In manual master send command then after slave response back

below i am attach command and response frame block.

samadhankadam

below i am attached .pdf file of UHFReader


can any one suggest me the requirement of communication between arduino uno and UHFReader ??

pylon

Quote
i want to communicate arduino uno board with UHFReader using RS-232 without modbus address?
How did you get to ModBus in this regard? The manual doesn't mention ModBus in any way.

We now have seen the manual. What exactly do you want to achieve with that?

Remember that an Arduino UNO only has one hardware serial interface. This interface must be used to communicate with that UHF reader (the baud rate of 57600 is much to high to allow for a software emulation), so you cannot use the USB connection to the PC at the same time. If you want to display some values you either have to connect a display to the Arduino or change to another model which has additional serial interfaces (p.e. Leonardo, Mega2560, etc.).

samadhankadam

it means cannot communicate using RS-232 over MODBUS ??
 
is their any other way to communicate with reader??

any one suggest.??

pylon

Quote
it means cannot communicate using RS-232 over MODBUS ??
No, it means that device doesn't know anything about ModBus, but this also means you cannot use a ModBus library to communicate with this device but you have to write your own or put everything into the sketch.

samadhankadam

any help for how to write frame in arduino??

pylon

Quote
any help for how to write frame in arduino??
Use Serial.write(). The manual includes C code to implement the CRC. Try implement it yourself, get here again if you get stuck.

Go Up