gurux dlms ansi c multi drop communication

7 posts / 0 new
Last post
raghavendra
gurux dlms ansi c multi drop communication

Hi sir,

Presently i want to read multiple energy meters using rs485. how i can achieve .as per my understanding using server address i can read mutiplemeters but if both meters server address same than i want to change server address. any function is there in ansi c code to read and set server id. i searched in stack but i am not able to get any function please tel me how to do i am hopefully waiting for you replay sir.

Regards,
Raghavendra

Kurumi
Kurumi's picture

Hi Raghavendra,

You need to count server address from the serial number. Formula is : 0x4000 | SN % (10000 + 1000).

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

raghavendra

Hi sir,
How to use this formula. where i want use i dont understand anything . I am new for this concept.please briefly explain me how to do muli drop using rs485 . What are the ansi c functions i want to use to make mutidrop

Regards,
Raghavendra

Kurumi
Kurumi's picture

Hi Raghavendra,

You communicate as with one meter. You just change server address from 1 to serial number.

You count server address using this formula:

0x4000 | [Server address] % (10000 + 1000).

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

raghavendra

Hi sir,

Thank you so much your replay.i am trying to change server address using this formula .

Regards,
Raghavendra

raghavendra

Hi sir,

Using this formula how i can set server address.i want to send request to meter to set server address?. there is any functions is there in ansi c dlms code to set server address?

Regards,
Raghavendra.B

Kurumi
Kurumi's picture

Hi,

con.settings.serverAddress = server address;

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi