Hi, I managed to create working java code (I mean, without java-related errors, underlining and highlighting), but anything I do ends with "ServiceError Initiate Error exception. Service UNSUPPORTED" error. I tried to use same settings as I used in GXDLMS Director app - I managed to make successful connection from here and read some data with lowest Access level (Public association, without auth or encryption, no keys etc.), cmd line for it looked like that:
python main.py -r ln -h <IP> -p 4059 -c 16 -s 1 -f 128 -t Verbose -i WRAPPER -d DLMS -a None -v 0.0.43.1.1.255 -C None
After that I've copied Conformance settings and used them in my java code. After some changes/switches etc. it somehow successfully has read invocation counter and later it managed to read serialnumber (both should be accessed via Public association), but only once and after next code's run it stopped working, giving me error like below:
[Hex trace and code removed.]
Hi, You have not established…
Hi,
You have not established the connection to the meter (AARQ/AARE). You need to do that before you can read anything from the meter. I'll remove your code snippet to make this easier to read.
BR,
Mikko
Thanks for response. How to…
Thanks for response.
How to establish connection to the meter in Java? Do I need to use 'initializeConnection()'?
Hi, Yes, you need to call…
Hi,
Yes, you need to call initializeConnection.
Check this:
https://gurux.fi/Gurux.DLMS.Client
BR,
Mikko
And there are logs after…
Looks like that above was meter's FW issue, now it's all solved