Hi, Sir
I'm trying to implement gurux arduino to retreive data from Itron meter via RS232 port. After some tweaking on few parameter, finally I can connect to the meter and read several info.
Currently i'm using DLMS_AUTHENTICATION_LOW for authentication with some password and DLMS_INTERFACE_TYPE_HDLC
The question is why I'm only getting this two parameter. which is logical device name and clock. I haven't modify anything from sample code except the initialization.
Serial Log result:
Index: 2 Value:
:Start reading :com_initializeConnection SUCCEEDED 0 :Logical Device NameIndex: 2 Value: ITINI31432500027
:ClockIndex: 2 Value: 08/23/2024 06:56:54
Index: 3 Value: 7
Index: 4 Value: 0
Index: 5 Value: 01/01/1970 00:00:00 UTC+00:00
Index: 6 Value: 01/01/1970 00:00:00 UTC+00:00
Index: 7 Value: 0
Index: 8 Value: 0
Index: 9 Value: 0
Is it because of the authentication level only allow me to get this two data only? or is there anything I could do to get another parameter. How to read associationView?
Can you give me some hints if I want to get for example active energy data. The OBIS code should be 1.0.1.8.0.255 or 1.1.1.8.0.255 cmiiw. Is it correct if I add directly the code below "clock"
gxData ldn;
cosem_init(BASE(ldn), DLMS_OBJECT_TYPE_DATA, "0.0.42.0.0.255");
com_read(BASE(ldn), 2);
obj_toString(BASE(ldn), &data);
GXTRACE(GET_STR_FROM_EEPROM("Logical Device Name"), data);
obj_clear(BASE(ldn));
free(data);
//Read clock
gxClock clock1;
cosem_init(BASE(clock1), DLMS_OBJECT_TYPE_CLOCK, "0.0.1.0.0.255");
com_read(BASE(clock1), 3);
com_read(BASE(clock1), 2);
obj_toString(BASE(clock1), &data);
GXTRACE(GET_STR_FROM_EEPROM("Clock"), data);
obj_clear(BASE(clock1));
free(data);
gxData pow;
cosem_init(BASE(pow), DLMS_OBJECT_TYPE_DATA, "1.0.1.8.0.255");
com_read(BASE(pow), 2);
obj_toString(BASE(pow), &data);
GXTRACE(GET_STR_FROM_EEPROM("Logical Device Name"), data);
obj_clear(BASE(pow));
free(data);
I run this and it gives me error:
:com_read failed. 13 :Logical Device NameIndex: 2 Value:
Also i noticed there are several object type gxData, gxClock, gxRegister, is there any explanation when to use the right object type.
Thank you for your help, Sir
Hi, Check your client…
Hi,
Check your client address. The authentication level tells what you can read from the meter. I suggest that you read your meter with GXDLMSDirector. It will help you to get an idea of your meter and what it can offer.
Active energy data is usually saved to register object. You need to read the association view with GXDLMSDirector to see what you can access and what OBIS code and object type to use. All meters are different.
BR,
Mikko
Hi Sir, I use GxDLMSDirector…
Hi Sir,
I use GxDLMSDirector initially and search for address using HDLC address resolver. This is the result:
Connection is permanently rejected. Authentication is required.
Used baud rate: 9600
Client address: 1 (0x1)
Server address: 16401 (0x4011)
Logical address: 1 (0x1) Physical address: 17 (0x11)
The problem is I failed connect using GxDLMSDirector. I think the problem is when I input Client address: 1 , Logical address: 1 ,Physical address: 11. The output command line on server became -s 145 not 16401 -> -S COM36:9600:8NoneOne -r sn -c 1 -s 145 -a Low -P ABCDEFGH -w 1 -f 128 -t Verbose
How can I fix this because it was automatically generate. FYI the meter I'm using is Itron Nias but because there is no option for itron, i use Actaris. Is it also causing trouble?
So basically everything is explained on association view. Do I need to specifically configure GxDirector to see association view? Or is it something that set by default
Thank you for your feedback Sir
Hi, Itron bought Actaris and…
Hi,
Itron bought Actaris and you can use Actaris.
Select "Frame" tab and change the Server address size to 4.
BR,
Mikko