I am trying to read secure sprint 350 meters via an optical port using your open DLMS source code.
/* printf("Read Indian device using serial port connection.\r\n"); */
/* printf("GuruxDlmsSample -S COM1 -c 16 -s 1 -a Low -P [password]\r\n"); */
As per the above line from the source code I have provided the following input:
-S /dev/ttyUSB0 -c 16 -s 1 -a None
This are the console output but it was failed with 279 (DLMS_ERROR_CODE_AUTHENTICATION_FAILURE) at this function call: apdu_parsePDU(settings, reply, &result, &sd, &command) --->Called from cl_parseAAREResponse();
Note: For better understand I have added some print in the code:
====================> Console output Start <=====================
Reading all objects...
This was not an issue, leading zeroes are missed while it was printing information on console. I have corrected print issue please have look and provide feedback as I am receiving same authentication failure.
====================> Console output Start <=====================
Reading all objects...
Without leading zeroes, it's not possible for me to read the data stream.
Get the latest version. We modify the lib and sent authentication level always, but it was causing problems with some of the meters. This is now rejected back.
As you instructed I have used latest version and now I am able to read the data from meter with authentication level "None" but still I am only able to read just 3 types of objects data.
Please refer the attached screenshot of DLMSDirector "Objects.PNG" and answer the following query.
1) During the association view meter responding only 3 objects. How can I read all supported objects(OBIS code) from meter as I am reading via optical port?
2) Is authentication level required to read the data other than this 3 objects ? Please tell me so I can connect with my vendor to get the password.
3)Is there any restriction possible like you have to used at least "Low" level authentication to get the other data OR you have to read from RS232 port instead of Optical ?
*Note : Meter - Secure Sprint350, Communication - Optical port for local communications and optional RS232 (RJ-11 port) for remote communications.*
Hi,
Hi,
Can you post trace where leading zeroes are added? Now they are missing and hex string is not possible to read.
Change this:
7EA0732193F17E
to this:
7E A0 07 03 21 93 0F 01 7E
BR,
Mikko
Hi Mikko,
Hi Mikko,
This was not an issue, leading zeroes are missed while it was printing information on console. I have corrected print issue please have look and provide feedback as I am receiving same authentication failure.
====================> Console output Start <=====================
Reading all objects...
--------Inside : com_initializeConnection---------
1)SNRM request.
7E A0 07 03 21 93 0F 01 7E
1)SNRM response
7E A0 20 21 03 73 73 98 81 80 14 05 02 02 00 06 02 02 00 07 04 00 00 00 01 08 04 00 00 00 01 6F EF 7E
SNRM request passed
2)AARQ request.
7E A0 38 03 21 10 97 49 E6 E6 00 60 2A A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 00 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 5A 02 7E
2)AARQ response
7E A0 37 21 03 30 6C 7C E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 01 A3 05 A1 03 02 01 0D BE 10 04 0E 08 00 06 5F 1F 04 00 00 00 10 02 00 00 07 0F 53 7E
------------com_initializeConnection:ret : 279
------------com_initializeConnection:Failed---------
====================> Console output End<=====================
Hi Malay,
Hi Malay,
Without leading zeroes, it's not possible for me to read the data stream.
Get the latest version. We modify the lib and sent authentication level always, but it was causing problems with some of the meters. This is now rejected back.
BR,
Mikko
Hi Mikko,
Hi Mikko,
As you instructed I have used latest version and now I am able to read the data from meter with authentication level "None" but still I am only able to read just 3 types of objects data.
Please refer the attached screenshot of DLMSDirector "Objects.PNG" and answer the following query.
1) During the association view meter responding only 3 objects. How can I read all supported objects(OBIS code) from meter as I am reading via optical port?
2) Is authentication level required to read the data other than this 3 objects ? Please tell me so I can connect with my vendor to get the password.
3)Is there any restriction possible like you have to used at least "Low" level authentication to get the other data OR you have to read from RS232 port instead of Optical ?
*Note : Meter - Secure Sprint350, Communication - Optical port for local communications and optional RS232 (RJ-11 port) for remote communications.*
Thanks In advance.
Hi,
Hi,
You should change authentication from None to Low or High to read all objects.
You need to ask what authentication levels meter supports and password.
Security levels and possible restriction are depending on the manufacturer.
BR,
Mikko