Hi, I am unable to communicate with the HEX110 through the optical port. I receive and error message, I appreciate a lot if you can help me with the problem (Is a parameter error? ) .
Thanks and regards
Alejandro
17:42:37 05:42:37.365 Info Opening
17:42:37 05:42:37.365 Info Configuración del puerto serie: Nombre del puerto: COM8 Tasa de baudios: 300 Bits de datos: 7 Paridad: Even Bits de parada: One Control de flujo: None Eop: None
17:42:37 05:42:37.494 Info Open
17:42:38 IEC Sending:/?!<CR><LF>
17:42:38 05:42:38.509 Sent 2F 3F 21 0D 0A
17:42:38 05:42:38.900 Received 55
17:42:38 05:42:38.931 Received 55
17:42:38 05:42:38.962 Received 2F
17:42:38 05:42:38.994 Received 48
17:42:39 05:42:39.025 Received 58
17:42:39 05:42:39.056 Received 45
17:42:39 05:42:39.103 Received 35
17:42:39 05:42:39.134 Received 5C
17:42:39 05:42:39.166 Received 32
17:42:39 05:42:39.197 Received 48
17:42:39 05:42:39.228 Received 58
17:42:39 05:42:39.259 Received 45
17:42:39 05:42:39.291 Received 31
17:42:39 05:42:39.337 Received 31
17:42:39 05:42:39.369 Received 30
17:42:39 05:42:39.400 Received 0D
17:42:39 HDLC received: U/HXE5\2HXE110<CR><LF>
17:42:39 05:42:39.509 Info Closing
17:42:39 05:42:39.556 Info Closed
System.Exception: Invalid responce.
en GXDLMSDirector.GXDLMSCommunicator.InitSerial()
en GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
en GXDLMSDirector.GXDLMSDevice.InitializeConnection()
en GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)
Dear Mikko, If I send by my own (in a terminal):
PC:2F 3F 21 0D 0A
METER RESPONSE ASCII (9600,\2=HDLC MODE E): U/HXE5\2HXE110
PC:06 32 35 32 0D 0A
METER RESPONSE AND CONFIRM LIKE THE PROTOCOL EXPLAIN:06 32 35 32 0D 0A
After that, I assume that the meter is in HDLC mode E.
Why do you think that the Director does not interpret the first sequence?
If I put the HDLC mode, the port doesn't make the initial baud rate handshaking.
Thanks and regards
Alejandro
Dear Mikko, like you say the HEX110 put an extra initial character (U) before the '/' like the protocol say.
U/HXE5\2HXE110 . But I understand that is a Hexing meter bug.
In your Python code on function "def initializeOpticalHead(self)", you use fixed-position to find the start and baudrate (0,4). I know that you make the code like the meters are without problems, but maybe in the future, you can include one dynamically position search of '/' to define the first position and not depend on the Meter Issues.
if not p.reply or p.reply[0] != ord('/'):
raise Exception("Invalid responce : " + str(p.reply))
baudrate = chr(p.reply[4])
Can you connect without authentication? Meter succeeded in the first step, but it echoes the client's message in the second step and the meter doesn't reply to the correct message. I believe that your client's address or password is invalid. I check but didn't find the correct client settings for Hexing HEX110.
You should also ask if there is a firmware update for the meter.
Dear Mikko, when I tried to connect without authentication I receive this:
15:14:00 03:14:00.249 Info Opening
15:14:00 03:14:00.249 Info Configuración del puerto serie: Nombre del puerto: COM1 Tasa de baudios: 300 Bits de datos: 7 Paridad: Even Bits de parada: One Control de flujo: None Eop: None
15:14:00 03:14:00.261 Info Open
15:14:01 03:14:01.281 Sent 2F 3F 21 0D 0A
15:14:03 03:14:03.468 Received 2F
15:14:03 03:14:03.499 Received 2F
15:14:03 03:14:03.531 Received 48
15:14:03 03:14:03.562 Received 58
15:14:03 03:14:03.593 Received 45
15:14:03 03:14:03.624 Received 35
15:14:03 03:14:03.655 Received 5C
15:14:03 03:14:03.687 Received 32
15:14:03 03:14:03.718 Received 48
15:14:03 03:14:03.751 Received 58
15:14:03 03:14:03.781 Received 45
15:14:03 03:14:03.813 Received 31
15:14:03 03:14:03.843 Received 31
15:14:03 03:14:03.874 Received 30
15:14:03 03:14:03.905 Received 0D
15:14:03 03:14:03.905 Sent 06 32 35 32 0D 0A
15:14:05 03:14:05.421 Received 06
15:14:05 03:14:05.452 Received 06
15:14:05 03:14:05.484 Received 32
15:14:05 03:14:05.515 Received 35
15:14:05 03:14:05.546 Received 32
15:14:05 03:14:05.577 Received 0D
15:14:05 03:14:05.577 Info Closing
15:14:05 03:14:05.928 Info Closed
15:14:05 03:14:05.928 Info Opening
15:14:05 03:14:05.942 Info Configuración del puerto serie: Nombre del puerto: COM1 Tasa de baudios: 9600 Bits de datos: 8 Paridad: None Bits de parada: One Control de flujo: None Eop: None
15:14:05 03:14:05.958 Info Open
15:14:06 Send SNRM request.
TX: 7E A0 07 03 21 93 0F 01 7E
15:14:06 03:14:06.973 Sent 7E A0 07 03 21 93 0F 01 7E
15:14:07 03:14:07.723 Received 7E A0 20 21 03 73 73 98 81 80 14 05 02 01
15:14:07 03:14:07.739 Received 01 00
15:14:07 03:14:07.755 Received 00 00 01 69 6D
15:14:07
RX: 7E A0 20 21 03 73 73 98 81 80 14 05 02 01 00 06 02 01 00 07 04 00 00 00 01 08 04 00 00 00 01 69 6D 7E
15:14:07 Send AARQ request.
TX: 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 20 1E 5D FF FF 22 82 7E
15:14:07 03:14:07.770 Sent 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 20 1E 5D FF FF 22 82 7E
15:14:11 Failed to receive reply from the device in given time.
15:14:11 03:14:11.879 Sent 7E A0 07 03 21 53 03 C7 7E
15:14:15 Failed to receive reply from the device in given time.
15:14:15 03:14:15.958 Info Closing
15:14:15 03:14:15.989 Info Closed
The meter is new, I don't know what happened, I tried a lot of combinations (Auth Low, none, etc), I can give you the IP and Port to connect to the meter (I made and optical probe, conected to and IP and port that make the baud rate change )...
Can you help me, please?
Best regards
Alejandro
This looks strange. You can connect to the meter, but the meter doesn't reply to the AARQ message. Meters reply usually with an error if one of the settings is wrong.
Can you ask for configuration settings from the meter vendor? I believe that one of your settings is wrong and the meter doesn't reply because of that. Without that information it's hard to establish the connection for the meter.
Hi,
Hi,
There are a few extra chars on the meter reply. Try to change the interface from HdlcWithModeE to HDLC and try again.
BR,
Mikko
Dear Mikko, If I send by my
Dear Mikko, If I send by my own (in a terminal):
PC:2F 3F 21 0D 0A
METER RESPONSE ASCII (9600,\2=HDLC MODE E): U/HXE5\2HXE110
PC:06 32 35 32 0D 0A
METER RESPONSE AND CONFIRM LIKE THE PROTOCOL EXPLAIN:06 32 35 32 0D 0A
After that, I assume that the meter is in HDLC mode E.
Why do you think that the Director does not interpret the first sequence?
If I put the HDLC mode, the port doesn't make the initial baud rate handshaking.
Thanks and regards
Alejandro
Dear Mikko, like you say the
Dear Mikko, like you say the HEX110 put an extra initial character (U) before the '/' like the protocol say.
U/HXE5\2HXE110 . But I understand that is a Hexing meter bug.
In your Python code on function "def initializeOpticalHead(self)", you use fixed-position to find the start and baudrate (0,4). I know that you make the code like the meters are without problems, but maybe in the future, you can include one dynamically position search of '/' to define the first position and not depend on the Meter Issues.
if not p.reply or p.reply[0] != ord('/'):
raise Exception("Invalid responce : " + str(p.reply))
baudrate = chr(p.reply[4])
Regards
Alejandro
I made an intermediate
I made an intermediate software to eliminate the "extra character" on the handshaking and obtain this result:
15:58:27 03:58:27.057 Info Opening
15:58:27 03:58:27.057 Info Configuración del puerto serie: Nombre del puerto: COM1 Tasa de baudios: 300 Bits de datos: 7 Paridad: Even Bits de parada: One Control de flujo: None Eop: None
15:58:27 03:58:27.073 Info Open
15:58:28 03:58:28.092 Sent 2F 3F 21 0D 0A
15:58:30 03:58:30.374 Received 2F 48
15:58:30 03:58:30.514 Received 48 58 45
15:58:30 03:58:30.576 Received 5C 32
15:58:30 03:58:30.639 Received 48 58
15:58:30 03:58:30.827 Received 45 31 31 30 0D
15:58:30 03:58:30.827 Sent 06 32 35 32 0D 0A
15:58:32 03:58:32.707 Received 06 32 35 32 0D
15:58:32 03:58:32.848 Received 0D
15:58:32 03:58:32.848 Info Closing
15:58:33 03:58:33.269 Info Closed
15:58:33 03:58:33.269 Info Opening
15:58:33 03:58:33.269 Info Configuración del puerto serie: Nombre del puerto: COM1 Tasa de baudios: 9600 Bits de datos: 8 Paridad: None Bits de parada: One Control de flujo: None Eop: None
15:58:33 03:58:33.332 Info Open
15:58:34 Send SNRM request.
TX: 7E A0 07 03 03 93 8C 11 7E
15:58:34 03:58:34.362 Sent 7E A0 07 03 03 93 8C 11 7E
15:58:35 03:58:35.159 Received 7E A0 20 03 03 73 F0 2E 81 80 14 05 02 01 00 06 02 01 00 07 04 00 00 00 01 08 04 00 00 00 01 69 6D 7E
15:58:35
RX: 7E A0 20 03 03 73 F0 2E 81 80 14 05 02 01 00 06 02 01 00 07 04 00 00 00 01 08 04 00 00 00 01 69 6D 7E
15:58:35 Send AARQ request.
TX: 7E A0 43 03 03 10 44 C3 E6 E6 00 60 35 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 09 80 07 00 00 00 00 00 00 00 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 20 1E 5D FF FF 66 45 7E
15:58:35 03:58:35.190 Sent 7E A0 43 03 03 10 44 C3 E6 E6 00 60 35 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 09 80 07 00 00 00 00 00 00 00 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 20 1E 5D FF FF 66 45 7E
15:58:40 Data send failed. Try to resend 1/3
15:58:40 03:58:40.349 Sent 7E A0 43 03 03 10 44 C3 E6 E6 00 60 35 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 09 80 07 00 00 00 00 00 00 00 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 20 1E 5D FF FF 66 45 7E
15:58:45 Data send failed. Try to resend 2/3
15:58:45 03:58:45.456 Sent 7E A0 43 03 03 10 44 C3 E6 E6 00 60 35 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 09 80 07 00 00 00 00 00 00 00 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 20 1E 5D FF FF 66 45 7E
15:58:50 Failed to receive reply from the device in given time.
15:58:50 03:58:50.598 Sent 7E A0 07 03 03 53 80 D7 7E
15:58:55 Failed to receive reply from the device in given time.
15:58:55 03:58:55.629 Info Closing
15:58:55 03:58:55.661 Info Closed
The model is HXE110
The Serial Number is:15611435
And I attach the Director capture (I made a lot of combinations, but I cant to communicate with the meter).
I appreciate a lot your help to figure out the initial parameters,
Thanks and regards
Alejandro
Hi,
Hi,
Can you connect without authentication? Meter succeeded in the first step, but it echoes the client's message in the second step and the meter doesn't reply to the correct message. I believe that your client's address or password is invalid. I check but didn't find the correct client settings for Hexing HEX110.
You should also ask if there is a firmware update for the meter.
BR,
Mikko
Dear Mikko, when I tried to
Dear Mikko, when I tried to connect without authentication I receive this:
15:14:00 03:14:00.249 Info Opening
15:14:00 03:14:00.249 Info Configuración del puerto serie: Nombre del puerto: COM1 Tasa de baudios: 300 Bits de datos: 7 Paridad: Even Bits de parada: One Control de flujo: None Eop: None
15:14:00 03:14:00.261 Info Open
15:14:01 03:14:01.281 Sent 2F 3F 21 0D 0A
15:14:03 03:14:03.468 Received 2F
15:14:03 03:14:03.499 Received 2F
15:14:03 03:14:03.531 Received 48
15:14:03 03:14:03.562 Received 58
15:14:03 03:14:03.593 Received 45
15:14:03 03:14:03.624 Received 35
15:14:03 03:14:03.655 Received 5C
15:14:03 03:14:03.687 Received 32
15:14:03 03:14:03.718 Received 48
15:14:03 03:14:03.751 Received 58
15:14:03 03:14:03.781 Received 45
15:14:03 03:14:03.813 Received 31
15:14:03 03:14:03.843 Received 31
15:14:03 03:14:03.874 Received 30
15:14:03 03:14:03.905 Received 0D
15:14:03 03:14:03.905 Sent 06 32 35 32 0D 0A
15:14:05 03:14:05.421 Received 06
15:14:05 03:14:05.452 Received 06
15:14:05 03:14:05.484 Received 32
15:14:05 03:14:05.515 Received 35
15:14:05 03:14:05.546 Received 32
15:14:05 03:14:05.577 Received 0D
15:14:05 03:14:05.577 Info Closing
15:14:05 03:14:05.928 Info Closed
15:14:05 03:14:05.928 Info Opening
15:14:05 03:14:05.942 Info Configuración del puerto serie: Nombre del puerto: COM1 Tasa de baudios: 9600 Bits de datos: 8 Paridad: None Bits de parada: One Control de flujo: None Eop: None
15:14:05 03:14:05.958 Info Open
15:14:06 Send SNRM request.
TX: 7E A0 07 03 21 93 0F 01 7E
15:14:06 03:14:06.973 Sent 7E A0 07 03 21 93 0F 01 7E
15:14:07 03:14:07.723 Received 7E A0 20 21 03 73 73 98 81 80 14 05 02 01
15:14:07 03:14:07.739 Received 01 00
15:14:07 03:14:07.755 Received 00 00 01 69 6D
15:14:07
RX: 7E A0 20 21 03 73 73 98 81 80 14 05 02 01 00 06 02 01 00 07 04 00 00 00 01 08 04 00 00 00 01 69 6D 7E
15:14:07 Send AARQ request.
TX: 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 20 1E 5D FF FF 22 82 7E
15:14:07 03:14:07.770 Sent 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 20 1E 5D FF FF 22 82 7E
15:14:11 Failed to receive reply from the device in given time.
15:14:11 03:14:11.879 Sent 7E A0 07 03 21 53 03 C7 7E
15:14:15 Failed to receive reply from the device in given time.
15:14:15 03:14:15.958 Info Closing
15:14:15 03:14:15.989 Info Closed
The meter is new, I don't know what happened, I tried a lot of combinations (Auth Low, none, etc), I can give you the IP and Port to connect to the meter (I made and optical probe, conected to and IP and port that make the baud rate change )...
Can you help me, please?
Best regards
Alejandro
Hi Alejandro,
Hi Alejandro,
This looks strange. You can connect to the meter, but the meter doesn't reply to the AARQ message. Meters reply usually with an error if one of the settings is wrong.
Can you ask for configuration settings from the meter vendor? I believe that one of your settings is wrong and the meter doesn't reply because of that. Without that information it's hard to establish the connection for the meter.
BR,
Mikko