Hi, I am using your Gurux Serial library for Android to communicate to some meters. It usually works but sometimes is like the meter block me from connect. (All the probe configs, passwords, etc are correct)
From the same meter I have this log when the connection is successful:
7EA0080221039386C17E
7EA01F03022173734281801205018C060180070400000001080400000001F5437E
7EA0450221031043CAE6E6006036A1090607608574050801018A0207808B0760857405080201AC0A80083239343531313937BE10040E01000000065F1F0400001E1DFFFFFDF87E
7EA03803022130A162E6E7006129A109060760857405080101A203020100A305A103020100BE10040E0800065F1F040000181D008000071AC07E
But, at some point when I try to do another action, so I have to connect again to the meters, the connection goes like this:
7EA0080221039386C17E
7EA01F03022173734281801205018C060180070400000001080400000001F5437E
7EA0450221031043CAE6E6006036A1090607608574050801018A0207808B0760857405080201AC0A80083239343531313937BE10040E01000000065F1F0400001E1DFFFFFDF87E
7EA011030221105672E6E7000E050302F5CB7E7EA01003022132027BE6E700D801013C437E
As you can see my connection packages are the same in both cases, but for some reason the AARQ frame package throws me a "Serviceunsupported" and in my code log is expecting HDLC Frame 30 while this package is the frame 10
App log: "Invalid HDLC Frame: 10 Expected: 30"
Is there any way to force to connect to meter? I mean at the office I can disconnect and connect the meter and it'll work until it gets blocked again, but in real life i cannot disconnect the meter.
Appreciate it!!
BR
Hi, I believe that you haven…
Hi,
I believe that you haven't closed the existing connection. You need to call close after you have done your actions. The meter returns an error because there is an active connection.
BR,
Mikko