Check the client example it reads all values from the meter. Check com_readProfileGenericColumns and com_readProfileGenerics methods. They do what you want to do.
Hi sir
thanks for your response
before reading profile generic i am try to read Association View but the res ponce i am getting wrong can you check both request and response is given below.
TX: 7E A0 2C 03 61 32 AC BC E6 E6 00 C8 1E 30 00 03 27 2A F7 D3 DD B3 DC 18 CB CC 1E AD CD E0 8B 80 FE 40 FB C7 8B C1 47 66 02 66 2D 91 90 7E
RX:7E A0 24 61 03 52 62 DC E6 E7 00 CC 16 30 00 00 0F 3D 74 6C 3A D2 70 9A 9A CF 79 9E 27 96 B6 43 0A C8 A5 8D B3 7E
And one more is how can i change frame type value.
thanks for your reply
here for reading profile generic i am following below steps (ansi c)
1.initialising none authentication (cl_init)
2.cosem initialising (cosem_init)
3.connection initialising (com_initialzeconnection)
4.getting invocation counter (com_read)
5. close the connection(com_close)
///////set authentication///////
6.set high authentication (password,security,blockchipherkey,systemtitle,authenticationkey,authentication type,classaddress,serveraddress,invocationcounter)
7.cosem initialing(cosem_init)
8.read all objects(com_readalllobjects)
in 8th step or com_readallobject function i am getting error when reading assosiation view.
can you please correct above steps if any thing wrong
You need to send cl_getApplicationAssociationRequest when you are using High level authentication. If you don't sent it meter don't allow you to read anything. Check that you are sending it.
Hi sir,
when i exicuiting assosiation view function i return an error with 269 value
and also i am getting 590 and somtimes i am getting 1400 bytes responce.
Can you read the meter with GXDLMSDirector? You should get the same amount of bytes in the response if you are reading the same authentication view. Your authentication view might be differents when you are using different authentication levels.
You need to change the client address, password and authentication level. Something like this:
cl_init(&con.settings, 1, 32, 1, DLMS_AUTHENTICATION_LOW, "password", DLMS_INTERFACE_TYPE_HDLC);
You need to establish the connection again before reading the value. You don't call com_initializeConnection after you have set the ciphering settings.
Hi,
Hi,
Check the client example it reads all values from the meter. Check com_readProfileGenericColumns and com_readProfileGenerics methods. They do what you want to do.
BR,
Mikko
Hi sir
Hi sir
thanks for your response
before reading profile generic i am try to read Association View but the res ponce i am getting wrong can you check both request and response is given below.
TX: 7E A0 2C 03 61 32 AC BC E6 E6 00 C8 1E 30 00 03 27 2A F7 D3 DD B3 DC 18 CB CC 1E AD CD E0 8B 80 FE 40 FB C7 8B C1 47 66 02 66 2D 91 90 7E
RX:7E A0 24 61 03 52 62 DC E6 E7 00 CC 16 30 00 00 0F 3D 74 6C 3A D2 70 9A 9A CF 79 9E 27 96 B6 43 0A C8 A5 8D B3 7E
And one more is how can i change frame type value.
thanks and regards,
hari
Hi,
Hi,
You are using logical name 0.0.40.0.0.249 when it should be 0.0.40.0.0.255.
Try to change that.
BR,
Mikko
hi sir
hi sir
thanks for your reply
here for reading profile generic i am following below steps (ansi c)
1.initialising none authentication (cl_init)
2.cosem initialising (cosem_init)
3.connection initialising (com_initialzeconnection)
4.getting invocation counter (com_read)
5. close the connection(com_close)
///////set authentication///////
6.set high authentication (password,security,blockchipherkey,systemtitle,authenticationkey,authentication type,classaddress,serveraddress,invocationcounter)
7.cosem initialing(cosem_init)
8.read all objects(com_readalllobjects)
in 8th step or com_readallobject function i am getting error when reading assosiation view.
can you please correct above steps if any thing wrong
thanks and regards
hari
Hi,
Hi,
You need to send cl_getApplicationAssociationRequest when you are using High level authentication. If you don't sent it meter don't allow you to read anything. Check that you are sending it.
BR,
Mikko
hi sir
hi sir
yes i am sending cl_getApplicationAssociationRequest under com_initialzeconnection function
Hi sir,
Hi sir,
when i exicuiting assosiation view function i return an error with 269 value
and also i am getting 590 and somtimes i am getting 1400 bytes responce.
Hi,
Hi,
Can you read the meter with GXDLMSDirector? You should get the same amount of bytes in the response if you are reading the same authentication view. Your authentication view might be differents when you are using different authentication levels.
BR,
Mikko
hi sir
hi sir
thanks for your response .
i can read the meter using GXDLMSDirector
the request byte sizes and response byte sizes are same.
can i get any sample source code of c with low or high authentication for reading profile generic.
thank you sir
Hi,
Hi,
Check the client example it reads all values from the meter and supports low and high authentication.
BR,
Mikko
hi sir
hi sir
actually i am using atmel example source code.
it is having any problem.
Hi,
Hi,
You need to change the client address, password and authentication level. Something like this:
cl_init(&con.settings, 1, 32, 1, DLMS_AUTHENTICATION_LOW, "password", DLMS_INTERFACE_TYPE_HDLC);
BR,
Mikko
hi sir
hi sir
please check the below code file and tell me where did i mistake.
Hi,
Hi,
You need to establish the connection again before reading the value. You don't call com_initializeConnection after you have set the ciphering settings.
BR,
Mikko