Hi Mikko,
I am having a connection issue with this meter (Identification: IHM5\2Inhe Meder). The SNRM frame (03 03) is correct and works fine in other software.
The communication log reveals the exact problem during the IEC Mode E handshake:
1. Gurux sends the baud rate change command: 06 32 35 32 0D 0A
2. Gurux closes and reopens the COM port to change settings from 7E1 to 8N1 (takes ~110ms).
3. The Bug: After reopening the port, Gurux waits exactly 1000ms before sending the SNRM request:
• Log: 13:40:35.502 Info Open
• Log: 13:40:36.510 Sent 7E A0 07 03 03 93 8C 11 7E
4. This 1-second delay is too long for the meter. It times out and returns to sleep mode.
InactivityTimeout and FrameDelay are already set to 0.
Is there a hidden parameter or a way to eliminate this hardcoded 1000ms delay after the port reopen, so the SNRM can be sent immediately?
Best regards,
Frank
here the Log:
13:40:31 01:40:31.378 Info Opening
13:40:31 01:40:31.378 Info Einstellungen für die serielle Schnittstelle: Portname: COM19 Baudrate: 300 Daten Bits: 7 Parität: Even Stopp-Bits: One Ablaufsteuerung: None Eop: None
13:40:31 01:40:31.388 Info Open
13:40:32 01:40:32.399 Sent 2F 3F 21 0D 0A
13:40:32 01:40:32.736 Received 2F
13:40:32 01:40:32.784 Received 2F
13:40:32 01:40:32.816 Received 49
13:40:32 01:40:32.848 Received 48
13:40:32 01:40:32.880 Received 4D
13:40:32 01:40:32.912 Received 35
13:40:32 01:40:32.944 Received 5C
13:40:32 01:40:32.976 Received 32
13:40:33 01:40:33.008 Received 49
13:40:33 01:40:33.041 Received 6E
13:40:33 01:40:33.072 Received 68
13:40:33 01:40:33.105 Received 65
13:40:33 01:40:33.137 Received 20
13:40:33 01:40:33.184 Received 4D
13:40:33 01:40:33.216 Received 65
13:40:33 01:40:33.248 Received 74
13:40:33 01:40:33.280 Received 65
13:40:33 01:40:33.312 Received 72
13:40:33 01:40:33.344 Received 0D
13:40:33 01:40:33.344 Sent 06 32 35 32 0D 0A
13:40:35 01:40:35.358 Info Closing
13:40:35 01:40:35.486 Info Closed
13:40:35 01:40:35.486 Info Opening
13:40:35 01:40:35.486 Info Einstellungen für die serielle Schnittstelle: Portname: COM19 Baudrate: 9600 Daten Bits: 8 Parität: None Stopp-Bits: One Ablaufsteuerung: None Eop: None
13:40:35 01:40:35.502 Info Open
13:40:36 Send SNRM request.
TX: 7E A0 07 03 03 93 8C 11 7E
13:40:36 01:40:36.510 Sent 7E A0 07 03 03 93 8C 11 7E
13:40:41 Failed to receive reply from the device in given time.
13:40:41 Send Disconnect request.
TX: 7E A0 07 03 03 53 80 D7 7E
13:40:41 01:40:41.519 Sent 7E A0 07 03 03 53 80 D7 7E
13:40:46 Failed to receive reply from the device in given time.
13:40:46 01:40:46.531 Sent 01 42 30 03 0D 0A
Forums
Hi, This one second works…
Hi,
This one second works with most meters, and it's not currently configurable. The new version is under construction, but it's essentially a new product, so I can't say exactly when it will be released.
In the meantime, you can change this in the source code.
Regards,
Mikko