69
Read memory bank of the UHF ID tags tags
Service available
: DTE805, DTE9x5
This service is supported in the channel mode "RWH"
Method: POST
URL:
Request body data:
{"
code
":
"request"
,"
cid
":3002,"
adr
":"data/port[1]/rfid/id_tag/user_data/read","
reply
":"
reply text
",
"
data
":{"epc":"e2004080711100000000003018305855","bank":3,"pos":0,"length":16}}
Request
element
Value
Remark
code
"request"
-
cid
<CorrID>
Correlation identifier.
Can be set from 0…32767
e.g. 3002
adr
"data/port[
N
]/rfid/id_tag/user_data/read
For DTE10x :
N
= 1…4
For DTE60x, DTE80x, DTE9Xx:
N
= 1
reply
"<string>"
Optional:
Text to be send back in the response.
If not needed, this element can be
removed from the request.
e.g. "reply text"
data
{"epc": "<epc data>"
"bank": <no>
"pos": <offset>
"length": <data_length>
The epc data are coded as 2 characters
in ASCII hex data.
Bank:
1 - EPC bank
2 - TID bank
3 - User area
Offset position in buffer [bytes] :
0…65535
Length of data to be read [bytes] :
1…65534
Response data:
{"
cid
":3002,"
data
":{"user":"506c616e742d41315f30313233343536"},"
adr
":"
reply text
","
code
":200}
Response
element
Value
Remark
cid
<CorrID>
Correlation identifier.
Same as send in request. e.g. 3002
data
"data":"<string1>"
(1)
or
"error": "6469616700"
The string elements are coded as 2 characters in ASCII hex
data. e.g. 506C616E742D41315F30313233343536
adr
"<string>"
Text sent in element "reply" of the service request
e.g. "reply text"
code
200
or
503
Response code of the IoT core
See chapter ->
e.g. 200 or 205
(1)
Data on the ID tag:
HEX:
506C616E742D41315F30313233343536, ASCII:
Plant-A1_0123456