Hello,
I am trying to read from my meter using a linux computer and optics sensor. I can successfully read with GXDLMSDirector but using the same parameters with ANSI C++ library i get "SNRMRequest failed 252".
i am reading a hexing meter and the command is
$sudo ./gurux.dlms.client.bim -S /dev/ttyUSB0 -i -a High -P '00 00 00 00 00 00' -t Verbose
The iec handshake was successful but afterwards the "SNRMRequest failed 252" shows up.
No I am not recieving anything. Can you help with the hardcode, I am not sure what to edit in the code. I am quite new to the dlms protocol and i am not sure exactly how to hardcode the password.
I just downloaded, ran make, and ran the executable in the bin folder. i still get the same trace. nothing new. still nothing, so i opened the GuruxDLMSClientExample/src/communication.cpp file and noticed which block of code throws the "SNRMRequest failed 252". kindly look at the screen shot below
252 is DLMS_ERROR_CODE_SEND_FAILED. This problem is happening in ReadDLMSPacket that is called from ReadDataBlock. There are new traces and you should see Write failed and error code.
There are couple of new traces added. Get the latest version from Github.
Please, don't post the same question several times. Our time zone is different we are out of the office at that time.
We have cable that looks very much like yours. We improved timing when moving from 300 to 9600 is made. Get the latest version and let me know if you have problems.
Is this normal that first try is SNRMRequest failed 252 ?
So is in 90 percent of cases.
And more I have the kernel panik in last version source.
Thanks.
Hi,
Hi,
The password is ASCII. Hex password is not supported at the moment. You need to hardcode it by yourself.
Are you receiving any reply from the meter for SNRMRequest?
BR,
Mikko
Hi Mikko,
Hi Mikko,
No I am not recieving anything. Can you help with the hardcode, I am not sure what to edit in the code. I am quite new to the dlms protocol and i am not sure exactly how to hardcode the password.
Help!
Hi,
Hi,
I just try this with Debian. What distro you are using? What serial port you are using? Is that USB connected serial port?
BR,
Mikko
Hi Mikko,
Hi Mikko,
I am using Debian. I am using USB connected serial port
Hi,
Hi,
Get the latest version. There is extra trace added.
"Failed to open serial port:".
If you see this serial port not exists or you don't have access to it.
BR,
Mikko
hello Mikko,
hello Mikko,
I just downloaded the latest version and tried it out. here is what i got from the terminal
TX: 2F 3F 21 0D 0A
-> 2F 48 58 45 35 5C 32 48 58 45 31 32 0D 0A
TX: 06 32 35 32 0D 0A
InitializeConnection
TX: 10:24:45 7E A0 07 03 03 93 8C 11 7E
SNRMRequest failed 252.
Hi,
Hi,
There is a new version where there are more traces if the serial port open fails.
Let me know the results. Then we know better what causes this.
BR,
Mikko
Hi Mikko,
Hi Mikko,
I just downloaded, ran make, and ran the executable in the bin folder. i still get the same trace. nothing new. still nothing, so i opened the GuruxDLMSClientExample/src/communication.cpp file and noticed which block of code throws the "SNRMRequest failed 252". kindly look at the screen shot below
Hi,
Hi,
252 is DLMS_ERROR_CODE_SEND_FAILED. This problem is happening in ReadDLMSPacket that is called from ReadDataBlock. There are new traces and you should see Write failed and error code.
There are couple of new traces added. Get the latest version from Github.
BR,
Mikko
BR,
Mikko
Hi Mikko,
Hi Mikko,
Sorry it took this long for me to reply. I just tested the new version today and here's the new trace.
TX: 2F 3F 21 0D 0A
-> 2F 48 58 45 35 5C 32 48 58 45 31 32 0D 0A
TX: 06 32 35 32 0D 0A
Read failed. Timeout occurred.
InitializeConnection
TX: 11:30:18 7E A0 07 03 21 93 0F 01 7E
Read failed. Timeout occurred.
Read failed.
SNRMRequest failed 252.
Hi,
Hi,
What kind of USB optical probe (head) you are using? What meter do you try to read?
BR,
Mikko
Hello Mikko,
Hello Mikko,
I am trying to read a Hexing hxe310-kp meter and here is the link to the optical head i am using https://www.aliexpress.com/i/32454937586.html .
Hello Mikko,
Hello Mikko,
I am trying to read a Hexing hxe310-kp meter and here is the link to the optical head i am using https://www.aliexpress.com/i/32454937586.html .
Hi,
Hi,
Please, don't post the same question several times. Our time zone is different we are out of the office at that time.
We have cable that looks very much like yours. We improved timing when moving from 300 to 9600 is made. Get the latest version and let me know if you have problems.
BR,
Mikko
Hi,
Hi,
I have similar the problem.
I use for some devices lib develompment and I get so trace:
InitializeConnection
SNRMRequest failed 252.
InitializeConnection
GetAssociationView
InitializeConnection
SNRMRequest failed 252.
InitializeConnection
GetAssociationView
InitializeConnection
SNRMRequest failed 252.
InitializeConnection
GetAssociationView
InitializeConnection
SNRMRequest failed 252.
Is this normal that first try is SNRMRequest failed 252 ?
So is in 90 percent of cases.
And more I have the kernel panik in last version source.
Thanks.
Hi Nikita,
Hi Nikita,
Please, if you have a new question, create a new topic. I'll answer your question there.
BR,
Mikko