All Categories
GET IN TOUCH
Operation Guide

Operation Guide

Home >   >  Operation Guide

CK_Label-V23(Battery)System Developer‘s Manual

2024-04-20

1. Query PTL Tags Information

Introduction to the API:Query all PTL tags information

Basic Information:

AttributesInterface Message
StatusFinished
URLhttp://localhost/wms/associate/getTagsMsg
Request MethodGET/POST
Content-Typemultipart/form-data


Request parameters:

Parameter Description:

AttributesValueRequiredComment


Response parameters:

AttributesValueTypesComment
lastOpreateTime"2021-10-13 03:32:30"stringLast opreate TIme
mac"99.97.36.55"stringTag mac/Tag ID
power100stringBattery power(0~100)
routeridCWR000001stringID of BindRouter
rssi-26intSignal strength (-100 ~ 0)
showStyle"Picking Template"stringUsing template name


Response example:

[

 {

  "lastOpreateTime": "2021-10-13 03:32:29",

  "mac": "99.97.36.55",

  "power": 100,

  "routerid": "CWR000001",

  "rssi": -30,

  "showStyle": "Picking Template"

 },

{

  "lastOpreateTime": "2021-10-13 03:32:30",

  "mac": "99.97.36.53",

  "power": 100,

  "routerid": "CWR000001",

  "rssi": -26,

  "showStyle": "Picking Template"

 },

{

  "lastOpreateTime": "2021-10-13 03:32:33",

  "mac": "99.97.36.48",

  "power": 88,

  "routerid": "CWR000001",

  "rssi": -39,

  "showStyle": "Picking Template"

 }

]


2. Update PTL Screen display

Introduction to the API:Update PTL Screen display

Basic Information:

AttributesInterface Message
StatusFinished
URLhttp://localhost/wms/associate/updateScreen
Request MethodPOST
Content-Typeapplication/json


Parameter Description:

AttributesTypesRequiredComment
macstringyesTag mac / Tag ID
styleidintyesTemplate ID
outtimeintYesLighting timeout time(s);0 : never turn offn : turn off autoAutomatically after n seconds
ledstateintYeslightint mode;0, always on1, quick flash2, slow flash3, turn off 6, backlight and rgbled both onn, flashing as period n(ms)
ledrgbstringYesled color:red,ledrgb =“ff0000”;green,ledrgb=“ff00”;blue,ledrgb=“ff”;yellow,ledrgb=“ffff00”;white,ledrgb=“ffffff”;pueple,ledrgb= “ff00ff”;light blue,ledrgb= “ffff”;no color, ledrgb=“0”
cmdtokenstringoptionalExtended parameters, it can use for token or taskid
LGPLAstringoptionalFiled created in template
MATNRstringoptionalFiled created in template
STOCKstringoptionalFiled created in template
MENGEstringoptionalFiled created in template
QRCODEstringoptionalFiled created in template


Raw example:

[

{

"mac":"99.96.19.66",

"styleid":35,

"ledrgb":"ff00",

"ledstate":0,

"outtime":0,

"LGPLA":"***",

"MATNR":"***",

"KNMAT":"***",

"STOCK":"***",

"BATCH":"***",

"MENGE":"***",

"QRCODE":"***",

"Inventec":"***"

},

{

"mac":"99.96.19.65",

"styleid":35,

"ledrgb":"ff00",

"ledstate":0,

"outtime":0,

"LGPLA":"***",

"MATNR":"***",

"KNMAT":"***",

"STOCK":"***",

"BATCH":"***",

"MENGE":"***",

"QRCODE":"***",

"Inventec":"***"

}

]


Response example:true
Note: The fields parameters are according the according to the template you used. This API does not support lighting Leds of Multi-led PTL(External power supply version) , only refreshing the screen

Introduction to the API:
Notification the update result of PTL

Basic Information:

AttributesInterface Message
StatusFinished
URLURL of user's callback API
Request MethodPOST
Content-Typeapplication/json


Request parameters:
Parameter Description:

AttributesTypesRequiredComment
macstringyesTag mac / Tag ID
powerintyesBattery power(0~100)
resultboolYesTrue :ok;False: failed;
cmdtokenstringoptionalReturn the cmdtoken passed in the call request
lednumstringoptionalNo use
messageintYes数据成功;(send ok)数据失败;(send failed)数据发送超时;(send timeout)唤醒失败;(wake up failed)基站不在线;(router offline)数据异常;(Abnormal data)数据格式不正确,解析失败;(incorrect data format)参数格式不正确或参数不全;(Missing required parameters)无法执行;(Unable to execute)标签不存在;(Tag does not exist)


Parameters example:
{"cmdtoken":"1634826092022","lednum":0,"mac":"99.26.99.36","message":"数据成功","power":100,"result":true}

4. Callback of button event
Introduction to the API:Notification of button event.

Basic Information:

AttributesInterface Message
StatusFinished
URLURL of user's callback API
Request MethodPOST
Content-Typeapplication/json


Request parameters:
Parameter Description:

AttributesTypesRequiredComment
macstringyesTag mac / Tag ID
resultboolYesresult=0,right-lower button;result=1,left-top button;result=2,left-middle button;result=3,left-lower button;


Parameters example:

Json object

{"mac":"92.91.34.99","result":1}


5. Light Leds of PTL(Battery power supply)

Introduction to the API:Query all PTL tags information

Basic Information:

AttributesInterface Message
StatusFinished
URLhttp://localhost/wms/associate/lightTagsLed
Request MethodPOST
Content-Typeapplication/json


Request parameters:

Parameter Description:

AttributesTypesRequiredComment
macstringyesTag mac / Tag ID
outtimeintYesLighting timeout time(s);0 : never turn offn : turn off autoAutomatically after n seconds
lednumintYesSpecify the number of Leds (1,2,3,4)
ledstateintYeslightint mode;0, always on1, quick flash2, slow flash3, turn off4, turn off all
ledrgbstringYesled color:red,ledrgb =“ff0000”;green,ledrgb=“ff00”;blue,ledrgb=“ff”;yellow,ledrgb=“ffff00”;white,ledrgb=“ffffff”;purple,ledrgb=“ff00ff”;light blue,ledrgb= “ffff”;no color, ledrgb=“0”
cmdtokenstringoptionalExtended parameters, it can use as token or taskid
reservestringoptionalReserve


Raw example:

[

{

"mac":"99.29.03.13",

"timeout":0,

"ledrgb":"ffff00",

"ledmode":0,

"buzzer":0,

"reserve":"reserve"

},

{

"mac":"99.29.05.33",

"timeout":0,

"ledrgb":"ff00ff",

"ledmode":0,

"buzzer":0,

"reserve":"reserve"

}

]

6. Callback of Light Leds Result

Introduction to the API:Notification the  result of Light Leds
Basic Information:

AttributesInterface Message
StatusFinished
URLURL of user's callback API
Request MethodPOST
Content-Typeapplication/json


Request parameters:
Parameter Description:

AttributesTypesRequiredComment
macstringyesTag mac / Tag ID
powerintyesBattery power(0~100)
resultboolYestrue :ok;false: failed;


Parameters example:
{"mac":"99.26.39.63","power":100,"result":true}

7. Light Roadway Lights

Introduction to the API:Light Roadway Lights all PTL tags information

Basic Information:

AttributesInterface Message
StatusFinished
URLhttp://localhost/wms/associate/ctrlShelfIndicator
Request MethodPOST
Content-Typeapplication/json


Request parameters:
Parameter Description:

AttributesTypesRequiredComment
macstringyesTag mac / Tag ID
timeoutintyesLighting timeout time(s);0 : never turn offn : turn off autoAutomatically after n seconds
ledrgbstringyesred:ff0000; red Led Ongreen:ff00;green Led Onyellow:ffff00; yellow Led On
ledstateintYeslightint mode;0, always on1, quick flash2, slow flash
buzzerintyes0:Buzzer off,1:Buzzer on
reservestringoptionalreserve


Raw example:

[

{

"mac":"99.29.03.13",

"lednum":1,

"timeout":0,

"ledrgb":"ffff00",

"ledmode":0,

"buzzer":0,

"cmdtoken":"123456",

"reserve":"reserve"

},

{

"mac":"99.29.05.33",

"lednum":1,

"timeout":0,

"ledrgb":"ff00ff",

"ledmode":0,

"buzzer":0,

"cmdtoken":"123456",

"reserve":"reserve"

}

]


Response example:true

8.Callback of Light Roadway Lights Result
Introduction to the API:Notification the  result of Light Roadway Lights 

Basic Information:

AttributesInterface Message
StatusFinished
URLURL of user's callback API
Request MethodPOST
Content-Typeapplication/json


Request parameters:
Parameter Description:

AttributesTypesRequiredComment
macstringyesTag mac / Tag ID
resultboolYestrue :ok;false: failed;


Parameters example:

{"mac":"99.26.39.63","result":true}

9.Setting URL of user's callback API

Login wms system with admin user,go to “System Information”->“Third-party configuration”,you can config the Callback URL here:
CK_Label-V23(Battery)System Developer‘s Manual2

反馈类型描述地址
Callback of UpdateScreen resultupdateTagResultURL of user's callback API
Callback of button evententerKeyURL of user's callback API
Callback of Light Leds ResultctrlShelfIndicatorResultURL of user's callback API


CK_Label-V23(Battery)System Developer‘s Manual

Prev All news Next
Recommended Products