Hi Sir,
I downloaded the java code from github and running this in command prompt and i got access denied , here in java code i am able to authenticate with meter , but using android code i am not able to authenticate. please help me
C:\Users\User1\Desktop\gurux.dlms.java\gurux.dlms.client.example.java>java -jar target\gurux.dlms.client.example.java-0.0.1-SNAPSHOT.jar -S COM31 -c 48 -s 1 -a High -P 1234567890123456 -v 0.0.43.1.3.255 -T 6C6E743030303030 -A 31323334353637383930313233343536 -B 31323334353637383930313233343536 -C AuthenticationEncryption -V Suite0 -d India
Connect using serial port connection gurux.serial.GXSerial@711f39f9
Authentication: High
ClientAddress: 0x30
ServerAddress: 0x1
Standard: INDIA
Security: AUTHENTICATION_ENCRYPTION
System title: 6C 6E 74 30 30 30 30 30
Authentication key: 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36
Block cipher key 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36
Invocation counter: 101596
DisconnectRequest
----------------------------
Proposed conformance:
[SET, ACTION, BLOCK_TRANSFER_WITH_GET_OR_READ, SELECTIVE_ACCESS, GET, BLOCK_TRANSFER_WITH_ACTION, GENERAL_PROTECTION, MULTIPLE_REFERENCES, ACCESS, BLOCK_TRANSFER_WITH_SET_OR_WRITE, DELTA_VALUE_ENCODING, GENERAL_BLOCK_TRANSFER]
Negotiated conformance:
[SET, ACTION, BLOCK_TRANSFER_WITH_GET_OR_READ, SELECTIVE_ACCESS, GET, BLOCK_TRANSFER_WITH_SET_OR_WRITE, GENERAL_BLOCK_TRANSFER]
MaxReceivePDUSize: 780
Profile Generic 0.0.94.91.10.255Columns:
0.0.96.1.0.255 Meter Serial Number | 0.0.96.1.2.255 Device ID | 0.0.96.1.1.255 Manufacturer Name | 1.0.0.2.0.255 Firmware Version For Meter | 0.0.94.91.9.255 Meter Type | 0.0.94.91.11.255 Meter Category | 0.0.94.91.12.255 Current Rating | 0.0.96.1.4.255 Year Of Manufacture
Profile Generic 0.0.99.98.0.255Columns:
0.0.1.0.0.255 Clock | 0.0.96.11.0.255 Event:Voltage Related | 1.0.94.91.14.255 Current | 1.0.12.7.0.255 Voltage | 1.0.13.7.0.255 Signed Power Factor | 1.0.1.8.0.255 Cum. Energy-Wh(Imp) | 0.0.94.91.0.255 Cumulative Tamper Count
Profile Generic 0.0.99.98.1.255Columns:
0.0.1.0.0.255 Clock | 0.0.96.11.1.255 Event:Current Related | 1.0.94.91.14.255 Current | 1.0.12.7.0.255 Voltage | 1.0.13.7.0.255 Signed Power Factor | 1.0.1.8.0.255 Cum. Energy-Wh(Imp) | 0.0.94.91.0.255 Cumulative Tamper Count
Profile Generic 0.0.99.98.2.255Columns:
0.0.1.0.0.255 Clock | 0.0.96.11.2.255 Event:Power Related
Profile Generic 0.0.99.98.3.255Columns:
0.0.1.0.0.255 Clock | 0.0.96.11.3.255 Event:Transaction Related
Profile Generic 0.0.99.98.4.255Columns:
0.0.1.0.0.255 Clock | 0.0.96.11.4.255 Event:Others | 1.0.94.91.14.255 Current | 1.0.12.7.0.255 Voltage | 1.0.13.7.0.255 Signed Power Factor | 1.0.1.8.0.255 Cum. Energy-Wh(Imp) | 0.0.94.91.0.255 Cumulative Tamper Count
Profile Generic 0.0.99.98.5.255Columns:
0.0.1.0.0.255 Clock | 0.0.96.11.5.255 Event:Non-Roll Over
Profile Generic 0.0.99.98.6.255Columns:
0.0.1.0.0.255 Clock | 0.0.96.11.6.255 Event:Control
Profile Generic 1.0.94.91.0.255Columns:
0.0.1.0.0.255 Clock | 1.0.12.7.0.255 Voltage | 1.0.11.7.0.255 Phase Current | 1.0.91.7.0.255 Neutral Current | 1.0.13.7.0.255 Signed Power Factor | 1.0.14.7.0.255 Frequency-Hz | 1.0.9.7.0.255 Apparent Power-VA | 1.0.1.7.0.255 Active Power-W | 1.0.1.8.0.255 Cum. Energy-Wh(Imp) | 1.0.9.8.0.255 Cum. Energy-VAh(Imp) | 1.0.1.6.0.255 MD-W(Imp) | 1.0.1.6.0.255 MD-W(Imp) | 1.0.9.6.0.255 MD-VA(Imp) | 1.0.9.6.0.255 MD-VA(Imp) | 0.0.94.91.14.255 Cum. Power On Duration | 0.0.94.91.0.255 Cumulative Tamper Count | 0.0.0.1.0.255 Cum. Billing Count | 0.0.96.2.0.255 Cum. Programming Count | 1.0.2.8.0.255 Cum. Energy-Wh(Exp) | 1.0.10.8.0.255 Cum. Energy-VAh(Exp) | 0.0.96.3.10.255 Load Limit Function Status | 0.0.17.0.0.255 Load Limit Value (kW)
Profile Generic 1.0.94.91.3.255Columns:
1.0.12.7.0.255 Voltage | 1.0.11.7.0.255 Phase Current | 1.0.91.7.0.255 Neutral Current | 1.0.13.7.0.255 Signed Power Factor | 1.0.14.7.0.255 Frequency-Hz | 1.0.9.7.0.255 Apparent Power-VA | 1.0.1.7.0.255 Active Power-W | 1.0.1.8.0.255 Cum. Energy-Wh(Imp) | 1.0.9.8.0.255 Cum. Energy-VAh(Imp) | 1.0.1.6.0.255 MD-W(Imp) | 1.0.9.6.0.255 MD-VA(Imp) | 0.0.94.91.14.255 Cum. Power On Duration | 1.0.2.8.0.255 Cum. Energy-Wh(Exp) | 1.0.10.8.0.255 Cum. Energy-VAh(Exp) | 0.0.17.0.0.255 Load Limit Value (kW)
Profile Generic 1.0.94.91.4.255Columns:
1.0.12.27.0.255 | 1.0.1.29.0.255 | 1.0.9.29.0.255 | 1.0.2.29.0.255 | 1.0.10.29.0.255 | 1.0.11.27.0.255
Profile Generic 1.0.94.91.5.255Columns:
1.0.2.8.0.255 Cum. Energy-Wh(Exp) | 1.0.10.8.0.255 Cum. Energy-VAh(Exp) | 1.0.1.8.0.255 Cum. Energy-Wh(Imp) | 1.0.9.8.0.255 Cum. Energy-VAh(Imp)
Profile Generic 1.0.94.91.6.255Columns:
0.0.0.1.2.255 | 1.0.13.0.0.255 | 1.0.1.8.0.255 Cum. Energy-Wh(Imp) | 1.0.1.8.1.255 | 1.0.1.8.2.255 | 1.0.1.8.3.255 | 1.0.1.8.4.255 | 1.0.1.8.5.255 | 1.0.1.8.6.255 | 1.0.1.8.7.255 | 1.0.1.8.8.255 | 1.0.9.8.0.255 Cum. Energy-VAh(Imp) | 1.0.9.8.1.255 | 1.0.9.8.2.255 | 1.0.9.8.3.255 | 1.0.9.8.4.255 | 1.0.9.8.5.255 | 1.0.9.8.6.255 | 1.0.9.8.7.255 | 1.0.9.8.8.255 | 1.0.1.6.0.255 MD-W(Imp) | 1.0.9.6.0.255 MD-VA(Imp) | 0.0.94.91.13.255 | 1.0.2.8.0.255 Cum. Energy-Wh(Exp) | 1.0.10.8.0.255 Cum. Energy-VAh(Exp)
Profile Generic 1.0.94.91.7.255Columns:
1.0.94.91.14.255 Current | 1.0.12.7.0.255 Voltage | 1.0.13.7.0.255 Signed Power Factor | 1.0.1.8.0.255 Cum. Energy-Wh(Imp)
Profile Generic 1.0.98.1.0.255Columns:
0.0.0.1.2.255 | 1.0.13.0.0.255 | 1.0.1.8.0.255 Cum. Energy-Wh(Imp) | 1.0.1.8.1.255 | 1.0.1.8.2.255 | 1.0.1.8.3.255 | 1.0.1.8.4.255 | 1.0.1.8.5.255 | 1.0.1.8.6.255 | 1.0.1.8.7.255 | 1.0.1.8.8.255 | 1.0.9.8.0.255 Cum. Energy-VAh(Imp) | 1.0.9.8.1.255 | 1.0.9.8.2.255 | 1.0.9.8.3.255 | 1.0.9.8.4.255 | 1.0.9.8.5.255 | 1.0.9.8.6.255 | 1.0.9.8.7.255 | 1.0.9.8.8.255 | 1.0.1.6.0.255 MD-W(Imp) | 1.0.1.6.0.255 MD-W(Imp) | 1.0.9.6.0.255 MD-VA(Imp) | 1.0.9.6.0.255 MD-VA(Imp) | 0.0.94.91.13.255 | 1.0.2.8.0.255 Cum. Energy-Wh(Exp) | 1.0.10.8.0.255 Cum. Energy-VAh(Exp)
Profile Generic 1.0.99.1.0.255Columns:
0.0.1.0.0.255 Clock | 1.0.12.27.0.255 | 1.0.1.29.0.255 | 1.0.9.29.0.255 | 1.0.2.29.0.255 | 1.0.10.29.0.255 | 1.0.11.27.0.255
Profile Generic 1.0.99.2.0.255Columns:
0.0.1.0.0.255 Clock | 1.0.2.8.0.255 Cum. Energy-Wh(Exp) | 1.0.10.8.0.255 Cum. Energy-VAh(Exp) | 1.0.1.8.0.255 Cum. Energy-Wh(Imp) | 1.0.9.8.0.255 Cum. Energy-VAh(Imp)
-------- Reading GXDLMSData 0.0.0.1.0.255 Cum. Billing Count
Index: 2 Value: 15
-------- Reading GXDLMSData 0.0.0.1.1.255 Available Billing Periods
Index: 2 Value: 6
-------- Reading GXDLMSClock 0.0.1.0.0.255 Clock
Index: 2 Value: 22/10/24, 1:15:23 PM
Error! Index: 3 Access Error : Device reports Read-Write denied.
gurux.dlms.GXDLMSException: Access Error : Device reports Read-Write denied.
Error! Index: 4 Access Error : Device reports Read-Write denied.
gurux.dlms.GXDLMSException: Access Error : Device reports Read-Write denied.
Error! Index: 5 Access Error : Device reports Read-Write denied.
gurux.dlms.GXDLMSException: Access Error : Device reports Read-Write denied.
Error! Index: 6 Access Error : Device reports Read-Write denied.
gurux.dlms.GXDLMSException: Access Error : Device reports Read-Write denied.
Error! Index: 7 Access Error : Device reports Read-Write denied.
gurux.dlms.GXDLMSException: Access Error : Device reports Read-Write denied.
Error! Index: 8 Access Error : Device reports Read-Write denied.
gurux.dlms.GXDLMSException: Access Error : Device reports Read-Write denied.
Error! Index: 9 Access Error : Device reports Read-Write denied.
gurux.dlms.GXDLMSException: Access Error : Device reports Read-Write denied.
-------- Reading GXDLMSScriptTable 0.0.10.0.1.255 MD Reset Action
Index: 2 Value: gurux.dlms.objects.GXDLMSScript@6b4a4e18
-------- Reading GXDLMSScriptTable 0.0.10.0.107.255 Ch. 0 Image activation
Index: 2 Value: gurux.dlms.objects.GXDLMSScript@27c86f2d
-------- Reading GXDLMSScriptTable 0.0.10.0.108.255 Ch. 0 Push script table
Index: 2 Value: gurux.dlms.objects.GXDLMSScript@23f7d05d, gurux.dlms.objects.GXDLMSScript@1e730495
-------- Reading GXDLMSActivityCalendar 0.0.13.0.0.255 Activity Calendar Active Time
Index: 2 Value: Calendar
Index: 3 Value: [B@7f1302d6 1/01,
Index: 4 Value: 31
Index: 5 Value: 0 , 12:00:00 AM 0.0.10.0.100.255 , 6:00:00 AM 0.0.10.0.100.255 , 12:00:00 PM 0.0.10.0.100.255 , 6:00:00 PM 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255
Index: 6 Value: Calendar
Index: 7 Value: [B@37918c79 1/01,, [B@78e94dcf 11,, [B@233fe9b6 11,, [B@358ee631 11,
Index: 8 Value: 31, 32, 33, 34
Index: 9 Value: 0 , 12:00:00 AM 0.0.10.0.100.255 , 6:00:00 AM 0.0.10.0.100.255 , 12:00:00 PM 0.0.10.0.100.255 , 6:00:00 PM 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255, 1 , 12:00:00 AM 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255, 2 , 12:00:00 AM 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255, 3 , 12:00:00 AM 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255 ,:00 0.0.10.0.100.255
Index: 10 Value: 11, 12:00 AM
-------- Reading GXDLMSActionSchedule 0.0.15.0.0.255 Single Action Schedule for Billing Dates
Index: 2 Value: 0.0.10.0.1.255 1
Index: 3 Value: SingleActionScheduleType1
Index: 4 Value: 201, 10:00:00 AM
-------- Reading GXDLMSActionSchedule 0.0.15.0.2.255 Single Action Schedule for Image Activation
Index: 2 Value: 0.0.10.0.107.255 1
Index: 3 Value: SingleActionScheduleType4
Index: 4 Value: 11, 12:00:00 AM
-------- Reading GXDLMSActionSchedule 0.0.15.0.4.255 Single Action Schedule for PUSH
Index: 2 Value: 0.0.10.0.108.255 1
Index: 3 Value: SingleActionScheduleType1
Index: 4 Value: 11,
-------- Reading GXDLMSLimiter 0.0.17.0.0.255 Load Limit Value (kW)
Index: 2 Value: 1.0.1.7.0.255 Active Power-W
Index: 3 Value: 2000
Index: 4 Value: 2000
Error! Index: 5 Access Error : Device reports Read-Write denied.
gurux.dlms.GXDLMSException: Access Error : Device reports Read-Write denied.
Error! Index: 6 Access Error : Device reports Read-Write denied.
gurux.dlms.GXDLMSException: Access Error : Device reports Read-Write denied.
Error! Index: 7 Access Error : Device reports Read-Write denied.
gurux.dlms.GXDLMSException: Access Error : Device reports Read-Write denied.
Error! Index: 8 Access Error : Device reports Read-Write denied.
gurux.dlms.GXDLMSException: Access Error : Device reports Read-Write denied.
Error! Index: 9 Access Error : Device reports Read-Write denied.
gurux.dlms.GXDLMSException: Access Error : Device reports Read-Write denied.
Error! Index: 10 Access Error : Device reports Read-Write denied.
gurux.dlms.GXDLMSException: Access Error : Device reports Read-Write denied.
Error! Index: 11 Access Error : Device reports Read-Write denied.
gurux.dlms.GXDLMSException: Access Error : Device reports Read-Write denied.
-------- Reading GXDLMSHdlcSetup 0.0.22.0.0.255 Ch. 0 IEC HDLC setup
Hi, Read-Write denied means…
Hi,
Read-Write denied means that the client is not allowed to read the value. For me it it looks like those objects are not implemented to the meter or you need to use different authentication level to read them.
BR,
Mikko