Please follow a discussion, or create a new item...
GET-RESPONSE-NORMAL for attribute 0 case
|Gyozo Kmethy (31/10/2009 09:34):|
If you want to Get / Read SET / Write the value of more than one attribute, than you can use With-List services.
For this purpose, multiple references have to be supported: bit 14 of the conformance block, see 126.96.36.199.
A WITH-LIST service request is transported by an APDU of with-list type, see GB page 183 / 184.
|sara (03/10/2009 07:45):|
can i send get attribute_0 request for both voltage and current objects in same frame.plzz can you give some example..
thank you in advance
|Gyozo Kmethy (24/09/2009 10:15):|
The server - and trhe client - of course must remember what was the request. If the request is for attribute 0, then the response is a structure, including the value of each attribute, in the order of the interface class definition.
Requests of the same priority are handled on the first comes first served basis.
If there is a request of normal priority and a high priroity request arrives before the normal one served, then the high priority one is served first. The Invoke id helps the client to pair requests and responses and eventually to store them together.
|Rajendar (23/09/2009 10:21):|
Sorry for that.
Is my below inference right ?
The sender must remember/hold the request,in order to know if the structure tag for Data in the response is, for N attributes of an IC or an attribute Data is itself a structure, isnt't it?
Alone Data cannot convey if it is for a single attribute or N attributes (We have to bank on invoke-id-priority).
( Example scenario: A request can be sent out before GETing the response for the previous request. First request can be a single attribute with its Data being a structure and the next request for attribute 0. With different priorities Responses may not be in the order of Requests)
|Gyozo Kmethy (22/09/2009 12:19):|
See Green Book page 137.
It is always a good idea to read the standard first.
|Rajendar (22/09/2009 10:27):|
How shall the Data be encoded in the GET-RESPONSE-NORMAL when the attribute 0 is requested in the GET-RESPONSE-NORMAL.
Data for each attribute of the object has to be sent.
But 'Data' in the GET-RESPONSE-NORMAL is not SEQUENCE-OF (its just one 'Data').
We cannot encode/substitute Data for an array in this case as Data for a single
attribute also can be an array.
Should the Data in the above definition be SEQUENCE-OF Data (saying how many Data, one for each attribute in the object) or am I missing something ?
Please do let me know.
Thanks in advance.