I am trying to convert RX value to string.
RX: 7E A0 15 41 03 DA 50 87 E6 E7 00 C4 01 81 00 06 00 00 00 5C 92 47 7E
String value:92
I want to know they way(method name) to get this value.
For example we converting hex to object and object to string (obj_toString).
I am using C language.
Please Help.
My linux board is not supporting gurux lib . I am getting RX : HEX value as output from board and want to convert HEX
value to string on server (out side linux board). Do we have any converter method to convert RX hex to string value.
If you are using Linux, you can use gurux stack. You can build it for yourself, but
if you want to send data as hex string to the server you can use hlp_bytesToHex to convert received bytes to hex string.
I am attaching on screenshot. Can you tell me the Method to Translate HEX value to XML. Method can be in any language(Java,C..). I need to value from HEX at server.
Hi,
Hi,
You can use cl_getData method to get value from the frame. You need to set the client address to 32 and the server address to 1.
After that the value is in gxReplyData's dataValue.
Client example does everything for you. You need to check that.
BR,
Mikko
Thanks For reply,
Thanks For reply,
I am using com_read method and getting . response..gxObject
ret = com_read(connection, BASE(myobject), 2)
but cl_getData accepting gxByteBuffer .
can you please explain how can i can use gxObject for cl_getData
Hi,
Hi,
cl_getData first parameter is a reply from the meter. gxReplyData is parsed reply where is error code and received data.
It's good to use com_read, because complicated data types are automatically handled.
BR,
Mikko
Thank you for prompt reply.
Thank you for prompt reply.
My linux board is not supporting gurux lib . I am getting RX : HEX value as output from board and want to convert HEX
value to string on server (out side linux board). Do we have any converter method to convert RX hex to string value.
HI,
HI,
If you are using Linux, you can use gurux stack. You can build it for yourself, but
if you want to send data as hex string to the server you can use hlp_bytesToHex to convert received bytes to hex string.
BR,
Mikko
Hi,
Hi,
I am attaching on screenshot. Can you tell me the Method to Translate HEX value to XML. Method can be in any language(Java,C..). I need to value from HEX at server.
Hi,
Hi,
You can use Java, C# Python, Deplhi, or ANSI C++. You can use GXDLMSTranslator.MessageToXml method for that.
BR,
Mikko