i'm trying to send some commands from my PC to a temperature regulator, the communication protocole is a rs485 serial communication.
in fact, i have already worked in other project with the rs232 protocole which i sent some AT commands, but the rs485 is widely different,
Firstly i will just do some tests, i want send some commands to get temperature values from the regulator to the hyperterminal in the PC, if this step is fulfilled,
i will use then a Xbee module to transmit data from the regulator to an arduino (through the xbee shield).
So i want some help :
if it is possible to read data from the regulator to the PC (hyperterminal), and what equipement should i buy to make the communication
the rs485 command is too different from a rs232 command (AT Command), if someone can explain to me how to read the rs485 commands
if there is any possibility to communicate the Xbee module to the regulator, following you'll find informations about it.
thnx in advance
product datasheet :
concise product manuel : (here you'll see the rs485 ports)
in fact, i have already worked in other project with the rs232 protocole which i sent some AT commands, but the rs485 is widely different,
RS232 and RS485 are not protocols but physical interface standards (that's about voltages, wires and current and not bytes, headers and the stuff).
The device you want to use supports two protocols on the RS485 interface: MODBUS and an ASCII protocol. Which one did you configure? How did you connect to the PC? Show a picture of the wiring.
In fact, in the datasheet they mentioned that not on all devices the ASCII protocole is supported, so how can i make sure,
about connecting the regulator to the PC, i didn't make any connection, in fact, i'm wondering how to do it if there is some usb/rs485 cables can make that, and if can i use the hyperterminal to do it , i'm really confused
The manual explains how to select the protocol to be used on the serial interface using the front buttons on the device. Write down every configuration change you do using these buttons and best, post all configured values for the serial interface.
To connect that regulator to the PC you need to have the RS485 optional module of the device installed. Do you have that option?
If yes, you'll need some kind of USB-to-RS485 converter for your PC to be able to communicate to the device. This can be an Arduino Leonardo with a MAX485 breakout/shield or any commercially available converter of that type.
Maybe you should explain your project in a little more detail. What do you want to achieve. What do you regulate with that device. Why are you asking on an Arduino forum as you haven't introduced any Arduino in your setup yet?
OK, you're right, i didn't post too much details ..
My project consist on supervision, there are about 20 stoves, the stove temperature is regulated with the regulator i mentioned before,
I want to display every stove temperature, for that, i'll use the Xbee modules to transmit the data from regulators to a central arduino (i mentioned that in the first post)
This central arduino will send data ( stoves temperature) to an website for example through some specific shields.
The probleme is how to extract information from the regulator, there are some commands but how can its be used,
As I have already mentioned, in a first time, i want to test the communication between that regulator and a PC, i want to familiarize with these commands (knowing that i already handled with AT commands, these commands are to difficult to understand )
Finally,I didn't get what you mean by "the rs485 optional module" ??
Finally,I didn't get what you mean by "the rs485 optional module" ??
The manual says that the base version of that regulator doesn't have a remote interface. As I don't know what exact type of that module you have bought, I don't know if your version support a remote control by a RS485 bus or not.
Even for the Xbee modules you'll have to convert the differential signal of the RS485 interface to the TTL levels of the Xbee. A typical converter is the MAX485 family of chips. I recommend to use a Arduino Leonardo for the first tests, although you can also use a UNO and install an empty sketch (Blink for example) to use just the integrated USB2Serial converter (ATmega16U2).
Finally,I didn't get what you mean by "the rs485 optional module" ??
The manual says that the base version of that regulator doesn't have a remote interface. As I don't know what exact type of that module you have bought, I don't know if your version support a remote control by a RS485 bus or not.
Ok ,I'll contact the supplier to check that, thunx for your replies,
do you know something about commands sent to this device, what i know is its are in hexadecimal format, and the 2 first digits reperesent the device adress, and what left it's to difficult to understand, knowing that i want to get temperature measurements
how can i build these commands ?!
do you know something about commands sent to this device, what i know is its are in hexadecimal format, and the 2 first digits reperesent the device adress, and what left it's to difficult to understand, knowing that i want to get temperature measurements
how can i build these commands ?!
The commands are explained starting on page 51 of the manual but you first have to configure to use either MODBUS or the ASCII protocol. Neither of them send a device address in hex format in the first two bytes as far as I can tell from a quick overview.