I'm trying to connect to a Clou CL710K22 meter using a USB optical probe (see attached image).
I am having the same problem from both DLMSDirector and my own code using GuruX Java library:
No response to SNRM.
Authentication: None
ClientAddress: 0x10
ServerAddress: 0x1
Standard: DLMS
TX: 17:24:27.148 7E A0 07 03 21 93 0F 01 7E
Data send failed. Try to resend 1/3
TX: 17:25:27.152 7E A0 07 03 21 93 0F 01 7E
* If it is possible to preserve indentation for code in these forum posts, please let me know how to do it. The indentation is being removed from the code below when I look at the preview of this post.
Java code:
public static void main(String[] args) throws Exception {
GXDLMSReader reader = null;
try (GXSerial serial = new GXSerial("/dev/ttyUSB0",
BaudRate.BAUD_RATE_9600,
8, // data bits
Parity.NONE,
StopBits.ONE)) {
serial.open();
reader = new GXDLMSReader(new GXDLMSSecureClient2(true),
serial,
TraceLevel.VERBOSE,
null);
reader.initializeConnection();
} finally {
if (reader != null)
reader.close();
}
}
What is a sensible next step to continue exploring this meter's configuration and capabilities?
I believe that these meters use HighGMAC, but is it expected that I get no response to SNRM from the meter if the keys and settings for HighGMAC are not configured correctly?
I am now getting:
14:42:02 Initializing serial connection.
14:42:03 IEC Sending:/?!<CR><LF>
14:42:13 Failed to receive reply from the device in given time.
System.Exception: Failed to receive reply from the device in given time.
at GXDLMSDirector.GXDLMSCommunicator.InitSerial()
at GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
at GXDLMSDirector.GXDLMSDevice.InitializeConnection()
at GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)
Is there a way to test that the optical head is working (similar to how one would test a normal serial cable by connecting RX and TX together and seeing if keys entered into a terminal are echoed back?
Using the optical probe should be an easy task because your meter should be support IEC 62053-21, but your meter doesn't reply for some reason. Check the cable direction from the meter documentation. The cable should usually be downwards.
Make sure that your optical probe is supporting IEC 62053-21 and not for example ANSI C12.18.
There is no easy way to test this.
If one gets PERMANENT_REJECTED when using the same parameters in the GuruX Java library but not in the Gurux director then what could that be a sign of Kurumi?
Hi Travers,
Hi Travers,
Try to connect with GXDLMSDirector first. Change interface from HDLC to HdlcWithModeE. That should work.
BR,
Mikko
Thanks for the reply, Mikko.
Thanks for the reply, Mikko.
I am now getting:
14:42:02 Initializing serial connection.
14:42:03 IEC Sending:/?!<CR><LF>
14:42:13 Failed to receive reply from the device in given time.
System.Exception: Failed to receive reply from the device in given time.
at GXDLMSDirector.GXDLMSCommunicator.InitSerial()
at GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
at GXDLMSDirector.GXDLMSDevice.InitializeConnection()
at GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)
Is there a way to test that the optical head is working (similar to how one would test a normal serial cable by connecting RX and TX together and seeing if keys entered into a terminal are echoed back?
Hi,
Hi,
Using the optical probe should be an easy task because your meter should be support IEC 62053-21, but your meter doesn't reply for some reason. Check the cable direction from the meter documentation. The cable should usually be downwards.
Make sure that your optical probe is supporting IEC 62053-21 and not for example ANSI C12.18.
There is no easy way to test this.
BR,
Mikko
If one gets PERMANENT…
If one gets PERMANENT_REJECTED when using the same parameters in the GuruX Java library but not in the Gurux director then what could that be a sign of Kurumi?
Hi, I'm sorry. I missed this…
Hi,
I'm sorry. I missed this post. Can you add a hex trace from the GXDLMSDirector and your java app so I can compare them?
BR,
Mikko