Commit a8a1ce2fedbbb68a439485e49f7c8e71b001baee
1 parent
0eb4c75f
增加英文版协议的白名单管理、快速配对、同步签到等内容
Showing
1 changed file
with
419 additions
and
59 deletions
Communication protocol-B200W-MQTT Protocol.md
| @@ -101,6 +101,13 @@ The topic subscribed by the application, published by the base station <br> | @@ -101,6 +101,13 @@ The topic subscribed by the application, published by the base station <br> | ||
| 101 | ||Set the base station login name|[setBsSSID](#setbsssid)|[fEvtBsSSID](#fevtbsssid)|| | 101 | ||Set the base station login name|[setBsSSID](#setbsssid)|[fEvtBsSSID](#fevtbsssid)|| |
| 102 | |Keypad unified settings - keypad language|Get keypad language|[getBsKpLanguage](#getbskplanguage)|[fEvtBsKpLanguage](#fevtbskplanguage)| | 102 | |Keypad unified settings - keypad language|Get keypad language|[getBsKpLanguage](#getbskplanguage)|[fEvtBsKpLanguage](#fevtbskplanguage)| |
| 103 | ||Set the keypad language|[setBsKpLanguage](#setbskplanguage)|[fEvtBsKpLanguage](#fevtbskplanguage)|| | 103 | ||Set the keypad language|[setBsKpLanguage](#setbskplanguage)|[fEvtBsKpLanguage](#fevtbskplanguage)|| |
| 104 | +|Match Mode - Quick Match|Start base station quick match|[startBsFastPair](#startbsfastpair)|[sEvtStateCode](#sevtstatecode)<br>[sEvtBsKpOnlineMsg](#sevtbskponlinemsg)| | ||
| 105 | +||Stop base station quick match|[stopBsFastPair](#stopbsfastpair)|[sEvtStateCode](#sevtstatecode)| | ||
| 106 | +|Whitelist mode - Whitelist management|Get whitelist|[getBsWhitelist](#getbswhitelist)|[fEvtBsWhitelist](#fevtbswhitelist)| | ||
| 107 | +||Set Whitelist|[setBsWhitelist](#setbswhitelist)|[sEvtStateCode](#sevtstatecode)<br>[fEvtSetBsWhitelist](#fevtsetbswhitelist)| | ||
| 108 | +||Clear Whitelist|[clearBsWhitelist](#clearbswhitelist)|[sEvtStateCode](#sevtstatecode)<br>[fEvtBsWhitelist](#fevtbswhitelist)| | ||
| 109 | +||Add Whitelist|[addBsWhitelist](#addbswhitelist)|[sEvtStateCode](#sevtstatecode)<br>[fEvtAddBsWhitelist](#fevtaddbswhitelist)<br>[fEvtBsWhitelist](#fevtbswhitelist)| | ||
| 110 | +||Delete Whitelist|[delBsWhitelist](#delbswhitelist)|[sEvtStateCode](#sevtstatecode)<br>[fEvtDelBsWhitelist](#fevtdelbswhitelist)<br>[fEvtBsWhitelist](#fevtbswhitelist)| | ||
| 104 | |Network Settings - TCP/IP Parameters|Get TCP/IP Parameters|[getBsTcpipParams](#getbstcpipparams)|[fEvtBsTcpipParams](#fevtbstcpipparams)| | 111 | |Network Settings - TCP/IP Parameters|Get TCP/IP Parameters|[getBsTcpipParams](#getbstcpipparams)|[fEvtBsTcpipParams](#fevtbstcpipparams)| |
| 105 | ||Set TCP/IP parameters|[setBsTcpipParams](#setbstcpipparams)|[fEvtBsTcpipParams](#fevtbstcpipparams)|| | 112 | ||Set TCP/IP parameters|[setBsTcpipParams](#setbstcpipparams)|[fEvtBsTcpipParams](#fevtbstcpipparams)|| |
| 106 | |Network Settings - MQTT Parameters|Get MQTT Parameters|[getBsMqttParams](#getbsmqttparams)|[fEvtBsMqttParams](#fevtbsmqttparams)| | 113 | |Network Settings - MQTT Parameters|Get MQTT Parameters|[getBsMqttParams](#getbsmqttparams)|[fEvtBsMqttParams](#fevtbsmqttparams)| |
| @@ -110,7 +117,7 @@ The topic subscribed by the application, published by the base station <br> | @@ -110,7 +117,7 @@ The topic subscribed by the application, published by the base station <br> | ||
| 110 | |Function classification|Function|API command|Command event| | 117 | |Function classification|Function|API command|Command event| |
| 111 | |---|---|---|---| | 118 | |---|---|---|---| |
| 112 | |Interaction settings - User real-time prompt information|Real-time setting prompt feedback information|[rtSetKpUserPrompt](#rtsetkpuserprompt)|[sEvtStateCode](#sevtstatecode)<br>[fEvtSetKpUserPrompt](#fevtsetkpuserprompt)| | 119 | |Interaction settings - User real-time prompt information|Real-time setting prompt feedback information|[rtSetKpUserPrompt](#rtsetkpuserprompt)|[sEvtStateCode](#sevtstatecode)<br>[fEvtSetKpUserPrompt](#fevtsetkpuserprompt)| |
| 113 | -|Get online status|Start scanning online keypad|[startGetKpOnline](#startgetkponline)|[sEvtStateCode](#sevtstatecode)<br>[sEvtBsKpOnlineMsg](#sevtbskponlinemsg)| | 120 | +|Get online status|Start scanning online keypad|[startGetKpOnline](#startgetkponline)|[sEvtStateCode](#sevtstatecode)<br>[fEvtKpOnlineMsg](#fevtkponlinemsg)| |
| 114 | ||Stop scanning online keypad|[stopGetKpOnline](#stopgetkponline)|[sEvtStateCode](#sevtstatecode)| | 121 | ||Stop scanning online keypad|[stopGetKpOnline](#stopgetkponline)|[sEvtStateCode](#sevtstatecode)| |
| 115 | |Maintenance function - Remote control function|Remote keypad sleep|[remoteKpSleep](#remotekpsleep)|[sEvtStateCode](#sevtstatecode)| | 122 | |Maintenance function - Remote control function|Remote keypad sleep|[remoteKpSleep](#remotekpsleep)|[sEvtStateCode](#sevtstatecode)| |
| 116 | ### Binding | 123 | ### Binding |
| @@ -121,6 +128,8 @@ The topic subscribed by the application, published by the base station <br> | @@ -121,6 +128,8 @@ The topic subscribed by the application, published by the base station <br> | ||
| 121 | ### Sign in | 128 | ### Sign in |
| 122 | |Function classification|Function|API command|Command event| | 129 | |Function classification|Function|API command|Command event| |
| 123 | |---|---|---|---| | 130 | |---|---|---|---| |
| 131 | +|Sync sign-in|Start sync sign-in|[startKpSignIn](#startkpsignin)|[sEvtStateCode](#sevtstatecode)<br>[fEvtKpSignIn](#fevtkpsignin)| | ||
| 132 | +||Stop sync sign-in|[stopKpSignIn](#stopkpsignin)|[sEvtStateCode](#sevtstatecode)| | ||
| 124 | |Sign in at any time|Start signing in at any time|[rtStartKpSignIn](#rtstartkpsignin)|[sEvtStateCode](#sevtstatecode)<br>[fEvtKpSignIn](#fevtkpsignin)| | 133 | |Sign in at any time|Start signing in at any time|[rtStartKpSignIn](#rtstartkpsignin)|[sEvtStateCode](#sevtstatecode)<br>[fEvtKpSignIn](#fevtkpsignin)| |
| 125 | ||Stop signing in anytime|[rtStopKpSignIn](#rtstopkpsignin)|[sEvtStateCode](#sevtstatecode)| | 134 | ||Stop signing in anytime|[rtStopKpSignIn](#rtstopkpsignin)|[sEvtStateCode](#sevtstatecode)| |
| 126 | ||Real-time PIN Sign-in Authorization|[rtSetKpLoginAllowed](#rtsetkploginallowed)|[sEvtStateCode](#sevtstatecode)<br>[fEvtKpLoginAllowed](#fevtkploginallowed)| | 135 | ||Real-time PIN Sign-in Authorization|[rtSetKpLoginAllowed](#rtsetkploginallowed)|[sEvtStateCode](#sevtstatecode)<br>[fEvtKpLoginAllowed](#fevtkploginallowed)| |
| @@ -145,7 +154,7 @@ The topic subscribed by the application, published by the base station <br> | @@ -145,7 +154,7 @@ The topic subscribed by the application, published by the base station <br> | ||
| 145 | ## Public Events | 154 | ## Public Events |
| 146 | ### sEvtBsConnectState | 155 | ### sEvtBsConnectState |
| 147 | - **Topic**: /basestation/\${baseSN}/receive | 156 | - **Topic**: /basestation/\${baseSN}/receive |
| 148 | -- **Function description**:Returns the base station model and base station SN when the base station is successfully connected, and returns disconnected when the base station is disconnected from the connected state | 157 | +- **Function description**: Returns the base station model and base station SN when the base station is successfully connected, and returns disconnected when the base station is disconnected from the connected state |
| 149 | - **Parameter Description** | 158 | - **Parameter Description** |
| 150 | 159 | ||
| 151 | |Parameter name|Type|Restriction|Not null|Description| | 160 | |Parameter name|Type|Restriction|Not null|Description| |
| @@ -184,7 +193,7 @@ The topic subscribed by the application, published by the base station <br> | @@ -184,7 +193,7 @@ The topic subscribed by the application, published by the base station <br> | ||
| 184 | 193 | ||
| 185 | ### sEvtBsChannelConflict | 194 | ### sEvtBsChannelConflict |
| 186 | - **Topic**: /basestation/\${baseSN}/receive | 195 | - **Topic**: /basestation/\${baseSN}/receive |
| 187 | -- **Function description**:Actively report when base station channels conflict, and the application can modify the base station channels according to actual case | 196 | +- **Function description**: Actively report when base station channels conflict, and the application can modify the base station channels according to actual case |
| 188 | - **Parameter Description** | 197 | - **Parameter Description** |
| 189 | 198 | ||
| 190 | |Parameter name|Type|Restriction|Not null|Description| | 199 | |Parameter name|Type|Restriction|Not null|Description| |
| @@ -245,7 +254,6 @@ The topic subscribed by the application, published by the base station <br> | @@ -245,7 +254,6 @@ The topic subscribed by the application, published by the base station <br> | ||
| 245 | |+keySn|string||True|Keypad SN| | 254 | |+keySn|string||True|Keypad SN| |
| 246 | |+version|string||True|Keypad Firmware Version| | 255 | |+version|string||True|Keypad Firmware Version| |
| 247 | |+model|int||True|Keypad model| | 256 | |+model|int||True|Keypad model| |
| 248 | -|+voltage|double||True|Keypad voltage| | ||
| 249 | 257 | ||
| 250 | - **Sample Code** | 258 | - **Sample Code** |
| 251 | 259 | ||
| @@ -256,8 +264,7 @@ The topic subscribed by the application, published by the base station <br> | @@ -256,8 +264,7 @@ The topic subscribed by the application, published by the base station <br> | ||
| 256 | "data":{ | 264 | "data":{ |
| 257 | "keySn":"1234567890", | 265 | "keySn":"1234567890", |
| 258 | "version":"1.0.0", | 266 | "version":"1.0.0", |
| 259 | - "model":67, | ||
| 260 | - "voltage":2.8 | 267 | + "model":67 |
| 261 | } | 268 | } |
| 262 | } | 269 | } |
| 263 | ``` | 270 | ``` |
| @@ -309,7 +316,7 @@ The topic subscribed by the application, published by the base station <br> | @@ -309,7 +316,7 @@ The topic subscribed by the application, published by the base station <br> | ||
| 309 | #### Method | 316 | #### Method |
| 310 | 317 | ||
| 311 | ##### getBsOnlineState | 318 | ##### getBsOnlineState |
| 312 | -- **Topic**:<span class="yellowFill">/client/multiBase/send</span> | 319 | +- **Topic**: <span class="yellowFill">/client/multiBase/send</span> |
| 313 | - **Function description**: Actively obtain all online base station information, online base station reply | 320 | - **Function description**: Actively obtain all online base station information, online base station reply |
| 314 | - **Parameter Description** | 321 | - **Parameter Description** |
| 315 | 322 | ||
| @@ -327,7 +334,7 @@ The topic subscribed by the application, published by the base station <br> | @@ -327,7 +334,7 @@ The topic subscribed by the application, published by the base station <br> | ||
| 327 | ``` | 334 | ``` |
| 328 | 335 | ||
| 329 | ##### getBsConnectState | 336 | ##### getBsConnectState |
| 330 | -- **Topic**:/client/\${baseSN}/send | 337 | +- **Topic**: /client/\${baseSN}/send |
| 331 | - **Function description**: Actively obtain base station connection status | 338 | - **Function description**: Actively obtain base station connection status |
| 332 | - **Parameter Description** | 339 | - **Parameter Description** |
| 333 | 340 | ||
| @@ -383,7 +390,7 @@ See Base Station Connection Change System Notification | @@ -383,7 +390,7 @@ See Base Station Connection Change System Notification | ||
| 383 | ### Base station time synchronization | 390 | ### Base station time synchronization |
| 384 | #### Method | 391 | #### Method |
| 385 | ##### timeSync | 392 | ##### timeSync |
| 386 | -- **Topic**:/client/\${baseSN}/send | 393 | +- **Topic**: /client/\${baseSN}/send |
| 387 | - **Function description**: Send the current timestamp to the base station for time calibration | 394 | - **Function description**: Send the current timestamp to the base station for time calibration |
| 388 | - **Parameter Description** | 395 | - **Parameter Description** |
| 389 | 396 | ||
| @@ -413,7 +420,7 @@ Returns the command reception status | @@ -413,7 +420,7 @@ Returns the command reception status | ||
| 413 | ### Identification Settings | 420 | ### Identification Settings |
| 414 | #### method | 421 | #### method |
| 415 | ##### getBsModel | 422 | ##### getBsModel |
| 416 | -- **Topic**:/client/\${baseSN}/send | 423 | +- **Topic**: /client/\${baseSN}/send |
| 417 | - **Function description**: Get base station model | 424 | - **Function description**: Get base station model |
| 418 | - **Parameter Description** | 425 | - **Parameter Description** |
| 419 | 426 | ||
| @@ -432,7 +439,7 @@ Returns the command reception status | @@ -432,7 +439,7 @@ Returns the command reception status | ||
| 432 | ``` | 439 | ``` |
| 433 | 440 | ||
| 434 | ##### getBsFWVersion | 441 | ##### getBsFWVersion |
| 435 | -- **Topic**:/client/\${baseSN}/send | 442 | +- **Topic**: /client/\${baseSN}/send |
| 436 | - **Function description**: Get base station firmware version | 443 | - **Function description**: Get base station firmware version |
| 437 | - **Parameter Description** | 444 | - **Parameter Description** |
| 438 | 445 | ||
| @@ -526,7 +533,7 @@ Returns the command reception status | @@ -526,7 +533,7 @@ Returns the command reception status | ||
| 526 | ### Network settings | 533 | ### Network settings |
| 527 | #### Method | 534 | #### Method |
| 528 | ##### getBsPairCode | 535 | ##### getBsPairCode |
| 529 | -- **Topic**:/client/\${baseSN}/send | 536 | +- **Topic**: /client/\${baseSN}/send |
| 530 | - **Function description**: Get base station pairing code | 537 | - **Function description**: Get base station pairing code |
| 531 | - **Parameter Description** | 538 | - **Parameter Description** |
| 532 | 539 | ||
| @@ -545,7 +552,7 @@ Returns the command reception status | @@ -545,7 +552,7 @@ Returns the command reception status | ||
| 545 | ``` | 552 | ``` |
| 546 | 553 | ||
| 547 | ##### getBsNfcLogin | 554 | ##### getBsNfcLogin |
| 548 | -- **Topic**:/client/\${baseSN}/send | 555 | +- **Topic**: /client/\${baseSN}/send |
| 549 | - **Function description**: Get card swipe pairing status | 556 | - **Function description**: Get card swipe pairing status |
| 550 | - **Parameter Description** | 557 | - **Parameter Description** |
| 551 | 558 | ||
| @@ -566,7 +573,7 @@ Returns the command reception status | @@ -566,7 +573,7 @@ Returns the command reception status | ||
| 566 | ``` | 573 | ``` |
| 567 | 574 | ||
| 568 | ##### setBsNfcLogin | 575 | ##### setBsNfcLogin |
| 569 | -- **Topic**:/client/\${baseSN}/send | 576 | +- **Topic**: /client/\${baseSN}/send |
| 570 | - **Function description**: Set the base station card swipe pairing status | 577 | - **Function description**: Set the base station card swipe pairing status |
| 571 | - **Parameter Description** | 578 | - **Parameter Description** |
| 572 | 579 | ||
| @@ -590,7 +597,7 @@ Returns the command reception status | @@ -590,7 +597,7 @@ Returns the command reception status | ||
| 590 | ``` | 597 | ``` |
| 591 | 598 | ||
| 592 | ##### getBsChannel | 599 | ##### getBsChannel |
| 593 | -- **Topic**:/client/\${baseSN}/send | 600 | +- **Topic**: /client/\${baseSN}/send |
| 594 | - **Function description**: Get base station channel | 601 | - **Function description**: Get base station channel |
| 595 | - **Parameter Description** | 602 | - **Parameter Description** |
| 596 | 603 | ||
| @@ -609,7 +616,7 @@ Returns the command reception status | @@ -609,7 +616,7 @@ Returns the command reception status | ||
| 609 | ``` | 616 | ``` |
| 610 | 617 | ||
| 611 | ##### setBsChannel | 618 | ##### setBsChannel |
| 612 | -- **Topic**:/client/\${baseSN}/send | 619 | +- **Topic**: /client/\${baseSN}/send |
| 613 | - **Function description**: Set base station channel | 620 | - **Function description**: Set base station channel |
| 614 | - **Parameter Description** | 621 | - **Parameter Description** |
| 615 | 622 | ||
| @@ -709,7 +716,7 @@ Returns the command reception status | @@ -709,7 +716,7 @@ Returns the command reception status | ||
| 709 | #### Method | 716 | #### Method |
| 710 | ##### getBsSSID | 717 | ##### getBsSSID |
| 711 | Get the base station login name | 718 | Get the base station login name |
| 712 | -- **Topic**:/client/\${baseSN}/send | 719 | +- **Topic**: /client/\${baseSN}/send |
| 713 | - **Function description**: Get the base station login name | 720 | - **Function description**: Get the base station login name |
| 714 | - **Parameter Description** | 721 | - **Parameter Description** |
| 715 | 722 | ||
| @@ -728,7 +735,7 @@ Get the base station login name | @@ -728,7 +735,7 @@ Get the base station login name | ||
| 728 | ``` | 735 | ``` |
| 729 | 736 | ||
| 730 | ##### setBsSSID | 737 | ##### setBsSSID |
| 731 | -- **Topic**:/client/\${baseSN}/send | 738 | +- **Topic**: /client/\${baseSN}/send |
| 732 | - **Function description**: Set the base station login name | 739 | - **Function description**: Set the base station login name |
| 733 | - **Parameter Description** | 740 | - **Parameter Description** |
| 734 | 741 | ||
| @@ -779,7 +786,7 @@ Get the base station login name | @@ -779,7 +786,7 @@ Get the base station login name | ||
| 779 | ### Keypad unified settings | 786 | ### Keypad unified settings |
| 780 | #### Method | 787 | #### Method |
| 781 | ##### getBsKpLanguage | 788 | ##### getBsKpLanguage |
| 782 | -- **Topic**:/client/\${baseSN}/send | 789 | +- **Topic**: /client/\${baseSN}/send |
| 783 | - **Function description**: Get Keypad language | 790 | - **Function description**: Get Keypad language |
| 784 | - **Parameter Description** | 791 | - **Parameter Description** |
| 785 | 792 | ||
| @@ -799,7 +806,7 @@ Get the base station login name | @@ -799,7 +806,7 @@ Get the base station login name | ||
| 799 | ``` | 806 | ``` |
| 800 | 807 | ||
| 801 | ##### setBsKpLanguage | 808 | ##### setBsKpLanguage |
| 802 | -- **Topic**:/client/\${baseSN}/send | 809 | +- **Topic**: /client/\${baseSN}/send |
| 803 | - **Function description**: Set keypad language | 810 | - **Function description**: Set keypad language |
| 804 | - **Parameter Description** | 811 | - **Parameter Description** |
| 805 | 812 | ||
| @@ -848,10 +855,266 @@ Get the base station login name | @@ -848,10 +855,266 @@ Get the base station login name | ||
| 848 | } | 855 | } |
| 849 | ``` | 856 | ``` |
| 850 | 857 | ||
| 858 | +### Match Mode | ||
| 859 | +#### Method | ||
| 860 | +##### startBsFastPair | ||
| 861 | +- **Topic**: /client/\${baseSN}/send | ||
| 862 | +- **Function description**: Start quick match; Return keypad information upon successful match [sEvtBsKpOnlineMsg](#sevtbskponlinemsg) | ||
| 863 | +- **Parameter Description** | ||
| 864 | + | ||
| 865 | +|Parameter name|Type|Restriction|Required or not|Description| | ||
| 866 | +|---|---|---|---|---| | ||
| 867 | +|fun|string|-|Yes|Command name| | ||
| 868 | +|dataTag|string|-|No|Packet identifier, can be an empty string| | ||
| 869 | + | ||
| 870 | +- **Sample Code** | ||
| 871 | +```json | ||
| 872 | +{ | ||
| 873 | + "fun":"startBsFastPair", | ||
| 874 | + "dataTag":"1" | ||
| 875 | +} | ||
| 876 | +``` | ||
| 877 | +##### stopBsFastPair | ||
| 878 | +- **Topic**: /client/\${baseSN}/send | ||
| 879 | +- **Function description**: Stop quick match | ||
| 880 | +- **Parameter Description** | ||
| 881 | + | ||
| 882 | +|Parameter name|Type|Restriction|Required or not|Description| | ||
| 883 | +|---|---|---|---|---| | ||
| 884 | +|fun|string|-|Yes|Command name| | ||
| 885 | +|dataTag|string|-|No|Packet identifier, can be an empty string| | ||
| 886 | + | ||
| 887 | +- **Sample Code** | ||
| 888 | +```json | ||
| 889 | +{ | ||
| 890 | + "fun":"stopBsFastPair", | ||
| 891 | + "dataTag":"1" | ||
| 892 | +} | ||
| 893 | +``` | ||
| 894 | +#### Event | ||
| 895 | +##### [sEvtStateCode](#sevtstatecode) | ||
| 896 | +This event is returned after sending the command | ||
| 897 | + | ||
| 898 | +##### [sEvtBsKpOnlineMsg](#sevtbskponlinemsg) | ||
| 899 | +This event is returned online after the keypad is successfully matched | ||
| 900 | + | ||
| 901 | +### Whitelist Mode | ||
| 902 | +#### Method | ||
| 903 | +##### getBsWhitelist | ||
| 904 | +- **Topic**: /client/\${baseSN}/send | ||
| 905 | +- **Function description**: Get the base station whitelist | ||
| 906 | +- **Parameter Description** | ||
| 907 | + | ||
| 908 | +|Parameter name|Type|Restriction|Required or not|Description| | ||
| 909 | +|---|---|---|---|---| | ||
| 910 | +|fun|string|-|Yes|Command name| | ||
| 911 | +|dataTag|string|-|No|Packet identifier, can be an empty string| | ||
| 912 | + | ||
| 913 | +- **Sample Code** | ||
| 914 | +```json | ||
| 915 | +{ | ||
| 916 | + "fun":"getBsWhitelist", | ||
| 917 | + "dataTag":"1" | ||
| 918 | +} | ||
| 919 | +``` | ||
| 920 | +##### setBsWhitelist | ||
| 921 | +- **Topic**: /client/\${baseSN}/send | ||
| 922 | +- **Function description**: Set the base station whitelist and replace the base station whitelist with the written keypad SN list | ||
| 923 | +- **Parameter Description** | ||
| 924 | + | ||
| 925 | +|Parameter name|Type|Restriction|Required or not|Description| | ||
| 926 | +|---|---|---|---|---| | ||
| 927 | +|fun|string|-|Yes|Command name| | ||
| 928 | +|dataTag|string|-|No|Packet identifier, can be an empty string| | ||
| 929 | +|data|object|-|Yes|Object to pass parameters to| | ||
| 930 | +|+keySns|array|-|Yes|The keypad SN array to be written, no more than 200<br>Keypad SN is 10 digits| | ||
| 931 | + | ||
| 932 | +- **Sample Code** | ||
| 933 | +```json | ||
| 934 | +{ | ||
| 935 | + "fun":"setBsWhitelist", | ||
| 936 | + "dataTag":"1", | ||
| 937 | + "data":{ | ||
| 938 | + "keySns":["2024021001","2024021002","2024021003","2024021004"] | ||
| 939 | + } | ||
| 940 | +} | ||
| 941 | +``` | ||
| 942 | +##### clearBsWhitelist | ||
| 943 | +- **Topic**: /client/\${baseSN}/send | ||
| 944 | +- **Function description**: Clear the base station whitelist | ||
| 945 | +- **Parameter Description** | ||
| 946 | + | ||
| 947 | +|Parameter name|Type|Restriction|Required or not|Description| | ||
| 948 | +|---|---|---|---|---| | ||
| 949 | +|fun|string|-|Yes|Command name| | ||
| 950 | +|dataTag|string|-|No|Packet identifier, can be an empty string| | ||
| 951 | + | ||
| 952 | +- **Sample Code** | ||
| 953 | +```json | ||
| 954 | +{ | ||
| 955 | + "fun":"clearBsWhitelist", | ||
| 956 | + "dataTag":"1" | ||
| 957 | +} | ||
| 958 | +``` | ||
| 959 | +##### addBsWhitelist | ||
| 960 | +- **Topic**: /client/\${baseSN}/send | ||
| 961 | +- **Function description**: Add keypad to the base station whitelist | ||
| 962 | +- **Parameter Description** | ||
| 963 | + | ||
| 964 | +|Parameter name|Type|Restriction|Required or not|Description| | ||
| 965 | +|---|---|---|---|---| | ||
| 966 | +|fun|string|-|Yes|Command name| | ||
| 967 | +|dataTag|string|-|No|Packet identifier, can be an empty string| | ||
| 968 | +|data|object|-|Yes|Object to pass parameters to| | ||
| 969 | +|+keySns|array|-|Yes|Keypad SN list to be added<br>Keypad SN is 10 digits| | ||
| 970 | + | ||
| 971 | +- **Sample Code** | ||
| 972 | +```json | ||
| 973 | +{ | ||
| 974 | + "fun":"addBsWhitelist", | ||
| 975 | + "dataTag":"1", | ||
| 976 | + "data":{ | ||
| 977 | + "keySns":["2024021001"] | ||
| 978 | + } | ||
| 979 | +} | ||
| 980 | +``` | ||
| 981 | +##### delBsWhitelist | ||
| 982 | +- **Topic**: /client/\${baseSN}/send | ||
| 983 | +- **Function description**: Remove keypad from the base station whitelist | ||
| 984 | +- **Parameter Description** | ||
| 985 | + | ||
| 986 | +|Parameter name|Type|Restriction|Required or not|Description| | ||
| 987 | +|---|---|---|---|---| | ||
| 988 | +|fun|string|-|Yes|Command name| | ||
| 989 | +|dataTag|string|-|No|Packet identifier, can be an empty string| | ||
| 990 | +|data|object|-|Yes|Object to pass parameters to| | ||
| 991 | +|+keySns|array|-|Yes|Keypad SN list to be deleted<br>Keypad SN is 10 digits| | ||
| 992 | + | ||
| 993 | +- **Sample Code** | ||
| 994 | +```json | ||
| 995 | +{ | ||
| 996 | + "fun":"delBsWhitelist", | ||
| 997 | + "dataTag":"1", | ||
| 998 | + "data":{ | ||
| 999 | + "keySns":["2024021001"] | ||
| 1000 | + } | ||
| 1001 | +} | ||
| 1002 | +``` | ||
| 1003 | +#### Event | ||
| 1004 | +##### [sEvtStateCode](#sevtstatecode) | ||
| 1005 | +This event is returned after sending the command | ||
| 1006 | + | ||
| 1007 | +##### fEvtBsWhitelist | ||
| 1008 | +- **Topic**: /basestation/\${baseSN}/receive | ||
| 1009 | +- **Function description**: Return the base station whitelist | ||
| 1010 | +- **Parameter Description** | ||
| 1011 | + | ||
| 1012 | +|Parameter name|Type|Restriction|Not empty|Description| | ||
| 1013 | +|---|---|---|---|---| | ||
| 1014 | +|fun|string|-|Yes|Command name| | ||
| 1015 | +|dataTag|string|-|No|Packet identifier, can be an empty string| | ||
| 1016 | +|data|object|-|Yes|Object to pass parameters to| | ||
| 1017 | +|+keySns|array||Yes|Current whitelist of base stations| | ||
| 1018 | + | ||
| 1019 | +- **Sample Code** | ||
| 1020 | +```Json | ||
| 1021 | +{ | ||
| 1022 | + "fun":"fEvtBsWhitelist", | ||
| 1023 | + "dataTag":"1", | ||
| 1024 | + "data":{ | ||
| 1025 | + "keySns":["2024021001","2024021002","2024021003","2024021004"] | ||
| 1026 | + } | ||
| 1027 | +} | ||
| 1028 | +``` | ||
| 1029 | + | ||
| 1030 | +##### fEvtSetBsWhitelist | ||
| 1031 | +- **Topic**: /basestation/\${baseSN}/receive | ||
| 1032 | +- **Function description**: Return set whitelist status | ||
| 1033 | +- **Parameter Description** | ||
| 1034 | + | ||
| 1035 | +|Parameter name|Type|Restriction|Not empty|Description| | ||
| 1036 | +|---|---|---|---|---| | ||
| 1037 | +|fun|string|-|Yes|Command name| | ||
| 1038 | +|dataTag|string|-|No|Packet identifier, can be an empty string| | ||
| 1039 | +|data|array|-|Yes|Array of objects to pass parameters to| | ||
| 1040 | +|++keySns|array||Yes|Keypad SN array| | ||
| 1041 | +|++state|int||Yes|Keypad SN write status <br>0-Write Success<br> 1-Write Failed| | ||
| 1042 | + | ||
| 1043 | +- **Sample Code** | ||
| 1044 | +```Json | ||
| 1045 | +{ | ||
| 1046 | + "fun":"fEvtSetBsWhitelist", | ||
| 1047 | + "dataTag":"1", | ||
| 1048 | + "data":[{ | ||
| 1049 | + "keySns":["2024021001","2024021002"], | ||
| 1050 | + "state":0 | ||
| 1051 | + },{ | ||
| 1052 | + "keySns":["1211"], | ||
| 1053 | + "state":1 | ||
| 1054 | + }] | ||
| 1055 | +} | ||
| 1056 | +``` | ||
| 1057 | + | ||
| 1058 | +##### fEvtAddBsWhitelist | ||
| 1059 | +- **Topic**: /basestation/\${baseSN}/receive | ||
| 1060 | +- **Function description**: Return add keypad status | ||
| 1061 | +- **Parameter Description** | ||
| 1062 | + | ||
| 1063 | +|Parameter name|Type|Restriction|Not empty|Description| | ||
| 1064 | +|---|---|---|---|---| | ||
| 1065 | +|fun|string|-|Yes|Command name| | ||
| 1066 | +|dataTag|string|-|No|Packet identifier, can be an empty string| | ||
| 1067 | +|data|array|-|Yes|Array of objects to pass parameters to| | ||
| 1068 | +|++keySns|array||Yes|Keypad SN array| | ||
| 1069 | +|++state|int||Yes|Keypad added state <br>0-Success<br> 1-Fail| | ||
| 1070 | + | ||
| 1071 | +- **Sample Code** | ||
| 1072 | +```Json | ||
| 1073 | +{ | ||
| 1074 | + "fun":"fEvtAddBsWhitelist", | ||
| 1075 | + "dataTag":"1", | ||
| 1076 | + "data":[{ | ||
| 1077 | + "keySns":["2024021001","2024021002"], | ||
| 1078 | + "state":0 | ||
| 1079 | + },{ | ||
| 1080 | + "keySns":["1211"], | ||
| 1081 | + "state":1 | ||
| 1082 | + }] | ||
| 1083 | +} | ||
| 1084 | +``` | ||
| 1085 | + | ||
| 1086 | +##### fEvtDelBsWhitelist | ||
| 1087 | +- **Topic**: /basestation/\${baseSN}/receive | ||
| 1088 | +- **Function description**: Return the deleting keypad state | ||
| 1089 | +- **Parameter Description** | ||
| 1090 | + | ||
| 1091 | +|Parameter name|Type|Restriction|Not empty|Description| | ||
| 1092 | +|---|---|---|---|---| | ||
| 1093 | +|fun|string|-|Yes|Command name| | ||
| 1094 | +|dataTag|string|-|No|Packet identifier, can be an empty string| | ||
| 1095 | +|data|array|-|Yes|Array of objects to pass parameters to| | ||
| 1096 | +|++keySns|array||Yes|Keypad SN array| | ||
| 1097 | +|++state|int||Yes|The deletion state of keypad <br>0-Success<br> 1-Fail| | ||
| 1098 | + | ||
| 1099 | +- **Sample Code** | ||
| 1100 | +```Json | ||
| 1101 | +{ | ||
| 1102 | + "fun":"fEvtDelBsWhitelist", | ||
| 1103 | + "dataTag":"1", | ||
| 1104 | + "data":[{ | ||
| 1105 | + "keySns":["2024021002"], | ||
| 1106 | + "state":0 | ||
| 1107 | + },{ | ||
| 1108 | + "keySns":["2024021001"], | ||
| 1109 | + "state":1 | ||
| 1110 | + }] | ||
| 1111 | +} | ||
| 1112 | +``` | ||
| 1113 | + | ||
| 851 | ### Network parameter settings | 1114 | ### Network parameter settings |
| 852 | #### Method | 1115 | #### Method |
| 853 | ##### getBsTcpipParams | 1116 | ##### getBsTcpipParams |
| 854 | -- **Topic**:/client/\${baseSN}/send | 1117 | +- **Topic**: /client/\${baseSN}/send |
| 855 | - **Function description**: Get base station TCP/IP parameters | 1118 | - **Function description**: Get base station TCP/IP parameters |
| 856 | - **Parameter Description** | 1119 | - **Parameter Description** |
| 857 | 1120 | ||
| @@ -870,7 +1133,7 @@ Get the base station login name | @@ -870,7 +1133,7 @@ Get the base station login name | ||
| 870 | ``` | 1133 | ``` |
| 871 | 1134 | ||
| 872 | ##### setBsTcpipParams | 1135 | ##### setBsTcpipParams |
| 873 | -- **Topic**:/client/\${baseSN}/send | 1136 | +- **Topic**: /client/\${baseSN}/send |
| 874 | - **Function description**: Set base station TCP/IP parameters | 1137 | - **Function description**: Set base station TCP/IP parameters |
| 875 | - **Parameter Description** | 1138 | - **Parameter Description** |
| 876 | 1139 | ||
| @@ -900,7 +1163,7 @@ Get the base station login name | @@ -900,7 +1163,7 @@ Get the base station login name | ||
| 900 | ``` | 1163 | ``` |
| 901 | 1164 | ||
| 902 | ##### getBsMqttParams | 1165 | ##### getBsMqttParams |
| 903 | -- **Topic**:/client/\${baseSN}/send | 1166 | +- **Topic**: /client/\${baseSN}/send |
| 904 | - **Function description**: Get base station MQTT parameters | 1167 | - **Function description**: Get base station MQTT parameters |
| 905 | - **Parameter Description** | 1168 | - **Parameter Description** |
| 906 | 1169 | ||
| @@ -919,7 +1182,7 @@ Get the base station login name | @@ -919,7 +1182,7 @@ Get the base station login name | ||
| 919 | ``` | 1182 | ``` |
| 920 | 1183 | ||
| 921 | ##### setBsMqttParams | 1184 | ##### setBsMqttParams |
| 922 | -- **Topic**:/client/\${baseSN}/send | 1185 | +- **Topic**: /client/\${baseSN}/send |
| 923 | - **Function description**: Set base station MQTT parameters | 1186 | - **Function description**: Set base station MQTT parameters |
| 924 | - **Parameter Description** | 1187 | - **Parameter Description** |
| 925 | 1188 | ||
| @@ -1018,7 +1281,7 @@ Get the base station login name | @@ -1018,7 +1281,7 @@ Get the base station login name | ||
| 1018 | ### Base Station Maintenance | 1281 | ### Base Station Maintenance |
| 1019 | #### Method | 1282 | #### Method |
| 1020 | ##### getBsLogInfo | 1283 | ##### getBsLogInfo |
| 1021 | -- **Topic**:/client/\${baseSN}/send | 1284 | +- **Topic**: /client/\${baseSN}/send |
| 1022 | - **Function description**: Get base station logs, which are used to obtain internal log records of base stations when a fault occurs and needs to be investigated | 1285 | - **Function description**: Get base station logs, which are used to obtain internal log records of base stations when a fault occurs and needs to be investigated |
| 1023 | - **Parameter Description** | 1286 | - **Parameter Description** |
| 1024 | 1287 | ||
| @@ -1044,7 +1307,7 @@ Returns the command reception status | @@ -1044,7 +1307,7 @@ Returns the command reception status | ||
| 1044 | ### Interaction Settings | 1307 | ### Interaction Settings |
| 1045 | #### Method | 1308 | #### Method |
| 1046 | ##### rtSetKpUserPrompt | 1309 | ##### rtSetKpUserPrompt |
| 1047 | -- **Topic**:/client/\${baseSN}/send | 1310 | +- **Topic**: /client/\${baseSN}/send |
| 1048 | - **Function description**: Real-time setting prompt feedback information | 1311 | - **Function description**: Real-time setting prompt feedback information |
| 1049 | - **Parameter Description** | 1312 | - **Parameter Description** |
| 1050 | 1313 | ||
| @@ -1092,7 +1355,7 @@ Returns the command reception status | @@ -1092,7 +1355,7 @@ Returns the command reception status | ||
| 1092 | Return the receiving status after sending command | 1355 | Return the receiving status after sending command |
| 1093 | 1356 | ||
| 1094 | ##### fEvtSetKpUserPrompt | 1357 | ##### fEvtSetKpUserPrompt |
| 1095 | -- **Topic**:/basestation/\${baseSN}/receive | 1358 | +- **Topic**: /basestation/\${baseSN}/receive |
| 1096 | - **Function description**: Returns whether the real-time setting prompt is successful | 1359 | - **Function description**: Returns whether the real-time setting prompt is successful |
| 1097 | - **Parameter Description** | 1360 | - **Parameter Description** |
| 1098 | 1361 | ||
| @@ -1130,8 +1393,8 @@ Return the receiving status after sending command | @@ -1130,8 +1393,8 @@ Return the receiving status after sending command | ||
| 1130 | ### Online status | 1393 | ### Online status |
| 1131 | #### Method | 1394 | #### Method |
| 1132 | ##### startGetKpOnline | 1395 | ##### startGetKpOnline |
| 1133 | -- **Topic**:/client/\${baseSN}/send | ||
| 1134 | -- **Function description**: Start to get keypad online information, keypad online returns keypad information [sEvtBsKpOnlineMsg](#sevtbskponlinemsg) | 1396 | +- **Topic**: /client/\${baseSN}/send |
| 1397 | +- **Function description**: Start to get keypad online information, keypad online returns keypad information | ||
| 1135 | - **Parameter Description** | 1398 | - **Parameter Description** |
| 1136 | 1399 | ||
| 1137 | |Parameter name|Type|Restriction|Required|Description| | 1400 | |Parameter name|Type|Restriction|Required|Description| |
| @@ -1149,7 +1412,7 @@ Return the receiving status after sending command | @@ -1149,7 +1412,7 @@ Return the receiving status after sending command | ||
| 1149 | ``` | 1412 | ``` |
| 1150 | 1413 | ||
| 1151 | ##### stopGetKpOnline | 1414 | ##### stopGetKpOnline |
| 1152 | -- **Topic**:/client/\${baseSN}/send | 1415 | +- **Topic**: /client/\${baseSN}/send |
| 1153 | - **Function description**: Stop obtaining keypad online information | 1416 | - **Function description**: Stop obtaining keypad online information |
| 1154 | - **Parameter Description** | 1417 | - **Parameter Description** |
| 1155 | 1418 | ||
| @@ -1171,13 +1434,41 @@ Return the receiving status after sending command | @@ -1171,13 +1434,41 @@ Return the receiving status after sending command | ||
| 1171 | ##### [sEvtStateCode](#sevtstatecode) | 1434 | ##### [sEvtStateCode](#sevtstatecode) |
| 1172 | This event is returned after sending the command | 1435 | This event is returned after sending the command |
| 1173 | 1436 | ||
| 1174 | -##### [sEvtBsKpOnlineMsg](#sevtbskponlinemsg) | ||
| 1175 | -The keypad is online and returns this event | 1437 | + |
| 1438 | +##### fEvtKpOnlineMsg | ||
| 1439 | +- **Topic**: /basestation/\${baseSN}/receive | ||
| 1440 | +- **Function description**: When actively acquiring online keypads, online keypads status report | ||
| 1441 | +- **Parameter Description** | ||
| 1442 | + | ||
| 1443 | +|Parameter name|Type|Restriction|Not null|Description| | ||
| 1444 | +|---|---|---|---|---| | ||
| 1445 | +|fun|string|-|True|event name| | ||
| 1446 | +|dataTag|string|-|False|packet tag| | ||
| 1447 | +|data|object|-|True|The object to pass parameters| | ||
| 1448 | +|+keySn|string||True|Keypad SN| | ||
| 1449 | +|+version|string||True|Keypad Firmware Version| | ||
| 1450 | +|+model|int||True|Keypad model| | ||
| 1451 | +|+voltage|double||True|Keypad voltage| | ||
| 1452 | + | ||
| 1453 | +- **Sample Code** | ||
| 1454 | + | ||
| 1455 | +```json | ||
| 1456 | +{ | ||
| 1457 | + "fun":"fEvtKpOnlineMsg", | ||
| 1458 | + "dataTag":"1", | ||
| 1459 | + "data":{ | ||
| 1460 | + "keySn":"1234567890", | ||
| 1461 | + "version":"1.0.0", | ||
| 1462 | + "model":67, | ||
| 1463 | + "voltage":2.8 | ||
| 1464 | + } | ||
| 1465 | +} | ||
| 1466 | +``` | ||
| 1176 | 1467 | ||
| 1177 | ### Maintenance Function | 1468 | ### Maintenance Function |
| 1178 | #### Method | 1469 | #### Method |
| 1179 | ##### remoteKpSleep | 1470 | ##### remoteKpSleep |
| 1180 | -- **Topic**:/client/\${baseSN}/send | 1471 | +- **Topic**: /client/\${baseSN}/send |
| 1181 | - **Function description**: Remote control keypad sleep | 1472 | - **Function description**: Remote control keypad sleep |
| 1182 | - **Parameter Description** | 1473 | - **Parameter Description** |
| 1183 | 1474 | ||
| @@ -1208,7 +1499,7 @@ Returns the command reception status | @@ -1208,7 +1499,7 @@ Returns the command reception status | ||
| 1208 | ### Wireless Binding | 1499 | ### Wireless Binding |
| 1209 | #### Method | 1500 | #### Method |
| 1210 | ##### rtSetKpBindingInfo | 1501 | ##### rtSetKpBindingInfo |
| 1211 | -- **Topic**:/client/\${baseSN}/send | 1502 | +- **Topic**: /client/\${baseSN}/send |
| 1212 | - **Function description**: Set binding information to keypad in real time | 1503 | - **Function description**: Set binding information to keypad in real time |
| 1213 | - **Parameter Description** | 1504 | - **Parameter Description** |
| 1214 | 1505 | ||
| @@ -1241,7 +1532,7 @@ Returns the command reception status | @@ -1241,7 +1532,7 @@ Returns the command reception status | ||
| 1241 | ``` | 1532 | ``` |
| 1242 | 1533 | ||
| 1243 | ##### clearKpBindingInfo | 1534 | ##### clearKpBindingInfo |
| 1244 | -- **Topic**:/client/\${baseSN}/send | 1535 | +- **Topic**: /client/\${baseSN}/send |
| 1245 | - **Function description**: Clear keypad binding information | 1536 | - **Function description**: Clear keypad binding information |
| 1246 | - **Parameter Description** | 1537 | - **Parameter Description** |
| 1247 | 1538 | ||
| @@ -1270,7 +1561,7 @@ Returns the command reception status | @@ -1270,7 +1561,7 @@ Returns the command reception status | ||
| 1270 | Return the receiving status after sending command | 1561 | Return the receiving status after sending command |
| 1271 | 1562 | ||
| 1272 | ##### fEvtKpBindingInfo | 1563 | ##### fEvtKpBindingInfo |
| 1273 | -- **Topic**:/basestation/\${baseSN}/receive | 1564 | +- **Topic**: /basestation/\${baseSN}/receive |
| 1274 | - **Function description**: Returns whether the keypad real-time setting binding information status is successful | 1565 | - **Function description**: Returns whether the keypad real-time setting binding information status is successful |
| 1275 | - **Parameter Description** | 1566 | - **Parameter Description** |
| 1276 | 1567 | ||
| @@ -1302,7 +1593,7 @@ Return the receiving status after sending command | @@ -1302,7 +1593,7 @@ Return the receiving status after sending command | ||
| 1302 | ``` | 1593 | ``` |
| 1303 | 1594 | ||
| 1304 | ##### fEvtClearKpBindingInfo | 1595 | ##### fEvtClearKpBindingInfo |
| 1305 | -- **Topic**:/basestation/\${baseSN}/receive | 1596 | +- **Topic**: /basestation/\${baseSN}/receive |
| 1306 | - **Function description**: Returns whether the command status of clearing binding information is successful | 1597 | - **Function description**: Returns whether the command status of clearing binding information is successful |
| 1307 | - **Parameter Description** | 1598 | - **Parameter Description** |
| 1308 | 1599 | ||
| @@ -1326,10 +1617,79 @@ Return the receiving status after sending command | @@ -1326,10 +1617,79 @@ Return the receiving status after sending command | ||
| 1326 | ``` | 1617 | ``` |
| 1327 | 1618 | ||
| 1328 | ## Sign in | 1619 | ## Sign in |
| 1620 | +### Sycn Sign in | ||
| 1621 | +#### Method | ||
| 1622 | +##### startKpSignIn | ||
| 1623 | +- **Topic**: /client/\${baseSN}/send | ||
| 1624 | +- **Function description**: Enable sycn sign in | ||
| 1625 | +- **Parameter Description** | ||
| 1626 | + | ||
| 1627 | +|Parameter name|Type|Restriction|Required or not|Description| | ||
| 1628 | +|---|---|---|---|---| | ||
| 1629 | +|fun|string|-|Yes|Command name| | ||
| 1630 | +|dataTag|string|-|No|Packet identifier, can be an empty string| | ||
| 1631 | +|data|object|-|Yes|Object to pass parameters to| | ||
| 1632 | +|+mode|int|-|Yes|Sign-in Mode<br>1-Sign in by pressing a button, you can specify the button<br>2-PIN code sign-in, PIN code length can be specified| | ||
| 1633 | +|+allowModify |int|-|Yes | Modify Mode <br> 0-Unmodifiable <br>1-Modifiable (default value)| | ||
| 1634 | +|+pinLen |int|-|Yes| The maximum length of the PIN code that can be entered 1≤N≤14 | | ||
| 1635 | +|+keyValue |int|-|Yes | Specify key value <br> 0: Unspecified (OK key to sign in) <br>1-9: Key 1-9 <br> 10: Key 0 <br> 11: Up Key <br> 12: Down Key <br> 13: OK Key <br> 14: ESC Key <br> 15: Menu Key | | ||
| 1636 | +|+tipTitle |string|-|No| Tip title, length is no more than 16 bytes| | ||
| 1637 | + | ||
| 1638 | +- **Sample Code** | ||
| 1639 | +```Json | ||
| 1640 | +//Sign in by pressing a button | ||
| 1641 | +{ | ||
| 1642 | + "fun":"startKpSignIn", | ||
| 1643 | + "dataTag":"1", | ||
| 1644 | + "data":{ | ||
| 1645 | + "mode":1, | ||
| 1646 | + "allowModify":1, | ||
| 1647 | + "keyValue":5, | ||
| 1648 | + "tip":"Please press 5 to sign in" | ||
| 1649 | + } | ||
| 1650 | +} | ||
| 1651 | + | ||
| 1652 | +//pin sign in | ||
| 1653 | +{ | ||
| 1654 | + "fun":"startKpSignIn", | ||
| 1655 | + "dataTag":"1", | ||
| 1656 | + "data":{ | ||
| 1657 | + "mode":2, | ||
| 1658 | + "allowModify":1, | ||
| 1659 | + "pinLen":6, | ||
| 1660 | + "tip":"Please enter your PIN to sign in" | ||
| 1661 | + } | ||
| 1662 | +} | ||
| 1663 | +``` | ||
| 1664 | + | ||
| 1665 | +##### stopKpSignIn | ||
| 1666 | +- **Topic**: /client/\${baseSN}/send | ||
| 1667 | +- **Function description**: Stop sync sign in | ||
| 1668 | +- **Parameter Description** | ||
| 1669 | + | ||
| 1670 | +|Parameter name|Type|Restriction|Required or not|Description| | ||
| 1671 | +|---|---|---|---|---| | ||
| 1672 | +|fun|string|-|Yes|Command name| | ||
| 1673 | +|dataTag|string|-|No|Packet identifier, can be an empty string| | ||
| 1674 | + | ||
| 1675 | +- **Sample Code** | ||
| 1676 | +```Json | ||
| 1677 | +{ | ||
| 1678 | + "fun":"stopKpSignIn", | ||
| 1679 | + "dataTag":"1" | ||
| 1680 | +} | ||
| 1681 | +``` | ||
| 1682 | +#### Event | ||
| 1683 | +##### [sEvtStateCode](#sevtstatecode) | ||
| 1684 | +This event is returned after sending the command | ||
| 1685 | + | ||
| 1686 | +##### [fEvtKpSignIn](#fevtkpsignin) | ||
| 1687 | +Return the sign-in data submitted by keypad | ||
| 1688 | + | ||
| 1329 | ### Sign in at any time | 1689 | ### Sign in at any time |
| 1330 | #### Method | 1690 | #### Method |
| 1331 | ##### rtStartKpSignIn | 1691 | ##### rtStartKpSignIn |
| 1332 | -- **Topic**:/client/\${baseSN}/send | 1692 | +- **Topic**: /client/\${baseSN}/send |
| 1333 | - **Function description**: Enable binding for sign in at any time | 1693 | - **Function description**: Enable binding for sign in at any time |
| 1334 | - **Parameter Description** | 1694 | - **Parameter Description** |
| 1335 | 1695 | ||
| @@ -1353,7 +1713,7 @@ Return the receiving status after sending command | @@ -1353,7 +1713,7 @@ Return the receiving status after sending command | ||
| 1353 | ``` | 1713 | ``` |
| 1354 | 1714 | ||
| 1355 | ##### rtStopKpSignIn | 1715 | ##### rtStopKpSignIn |
| 1356 | -- **Topic**:/client/\${baseSN}/send | 1716 | +- **Topic**: /client/\${baseSN}/send |
| 1357 | - **Function description**: Stop binding for signing in | 1717 | - **Function description**: Stop binding for signing in |
| 1358 | - **Parameter Description** | 1718 | - **Parameter Description** |
| 1359 | 1719 | ||
| @@ -1373,7 +1733,7 @@ Return the receiving status after sending command | @@ -1373,7 +1733,7 @@ Return the receiving status after sending command | ||
| 1373 | ``` | 1733 | ``` |
| 1374 | 1734 | ||
| 1375 | ##### rtSetKpLoginAllowed | 1735 | ##### rtSetKpLoginAllowed |
| 1376 | -- **Topic**:/client/\${baseSN}/send | 1736 | +- **Topic**: /client/\${baseSN}/send |
| 1377 | - **Function description**: Real-time PIN binding authorization, authorization can be cancelled | 1737 | - **Function description**: Real-time PIN binding authorization, authorization can be cancelled |
| 1378 | - **Parameter Description** | 1738 | - **Parameter Description** |
| 1379 | 1739 | ||
| @@ -1403,7 +1763,7 @@ Return the receiving status after sending command | @@ -1403,7 +1763,7 @@ Return the receiving status after sending command | ||
| 1403 | Return the receiving status after sending command | 1763 | Return the receiving status after sending command |
| 1404 | 1764 | ||
| 1405 | ##### fEvtKpSignIn | 1765 | ##### fEvtKpSignIn |
| 1406 | -- **Topic**:/basestation/\${baseSN}/receive | 1766 | +- **Topic**: /basestation/\${baseSN}/receive |
| 1407 | - **Function description**: Returns the sign-in information submitted by the keypad | 1767 | - **Function description**: Returns the sign-in information submitted by the keypad |
| 1408 | - **Parameter Description** | 1768 | - **Parameter Description** |
| 1409 | 1769 | ||
| @@ -1437,7 +1797,7 @@ Return the receiving status after sending command | @@ -1437,7 +1797,7 @@ Return the receiving status after sending command | ||
| 1437 | ``` | 1797 | ``` |
| 1438 | 1798 | ||
| 1439 | ##### fEvtKpLoginAllowed | 1799 | ##### fEvtKpLoginAllowed |
| 1440 | -- **Topic**:/basestation/\${baseSN}/receive | 1800 | +- **Topic**: /basestation/\${baseSN}/receive |
| 1441 | - **Function description**: Return keypad authorization status | 1801 | - **Function description**: Return keypad authorization status |
| 1442 | - **Parameter Description** | 1802 | - **Parameter Description** |
| 1443 | 1803 | ||
| @@ -1466,7 +1826,7 @@ Return the receiving status after sending command | @@ -1466,7 +1826,7 @@ Return the receiving status after sending command | ||
| 1466 | ### True or False | 1826 | ### True or False |
| 1467 | #### Method | 1827 | #### Method |
| 1468 | ##### startQATrueFalse | 1828 | ##### startQATrueFalse |
| 1469 | -- **Topic**:/client/\${baseSN}/send | 1829 | +- **Topic**: /client/\${baseSN}/send |
| 1470 | - **Function description**: Start true or false questions | 1830 | - **Function description**: Start true or false questions |
| 1471 | - **Parameter Description** | 1831 | - **Parameter Description** |
| 1472 | 1832 | ||
| @@ -1496,7 +1856,7 @@ Return the receiving status after sending command | @@ -1496,7 +1856,7 @@ Return the receiving status after sending command | ||
| 1496 | ``` | 1856 | ``` |
| 1497 | 1857 | ||
| 1498 | ##### stopQATrueFalse | 1858 | ##### stopQATrueFalse |
| 1499 | -- **Topic**:/client/\${baseSN}/send | 1859 | +- **Topic**: /client/\${baseSN}/send |
| 1500 | - **Function description**: Stop true or false questions | 1860 | - **Function description**: Stop true or false questions |
| 1501 | - **Parameter Description** | 1861 | - **Parameter Description** |
| 1502 | 1862 | ||
| @@ -1519,7 +1879,7 @@ Return the receiving status after sending command | @@ -1519,7 +1879,7 @@ Return the receiving status after sending command | ||
| 1519 | Return the receiving status after sending command | 1879 | Return the receiving status after sending command |
| 1520 | 1880 | ||
| 1521 | ##### fEvtQATrueFalse | 1881 | ##### fEvtQATrueFalse |
| 1522 | -- **Topic**:/basestation/\${baseSN}/receive | 1882 | +- **Topic**: /basestation/\${baseSN}/receive |
| 1523 | - **Function description**: Returns the answer information submitted by the keypad | 1883 | - **Function description**: Returns the answer information submitted by the keypad |
| 1524 | - **Parameter Description** | 1884 | - **Parameter Description** |
| 1525 | 1885 | ||
| @@ -1550,7 +1910,7 @@ Return the receiving status after sending command | @@ -1550,7 +1910,7 @@ Return the receiving status after sending command | ||
| 1550 | ### Choice questions | 1910 | ### Choice questions |
| 1551 | #### Method | 1911 | #### Method |
| 1552 | ##### startQAChoice | 1912 | ##### startQAChoice |
| 1553 | -- **Topic**:/client/\${baseSN}/send | 1913 | +- **Topic**: /client/\${baseSN}/send |
| 1554 | - **Function description**: Start choice questions | 1914 | - **Function description**: Start choice questions |
| 1555 | - **Parameter Description** | 1915 | - **Parameter Description** |
| 1556 | 1916 | ||
| @@ -1586,7 +1946,7 @@ Return the receiving status after sending command | @@ -1586,7 +1946,7 @@ Return the receiving status after sending command | ||
| 1586 | ``` | 1946 | ``` |
| 1587 | 1947 | ||
| 1588 | ##### stopQAChoice | 1948 | ##### stopQAChoice |
| 1589 | -- **Topic**:/client/\${baseSN}/send | 1949 | +- **Topic**: /client/\${baseSN}/send |
| 1590 | - **Function description**: Stop choice questions | 1950 | - **Function description**: Stop choice questions |
| 1591 | - **Parameter Description** | 1951 | - **Parameter Description** |
| 1592 | 1952 | ||
| @@ -1609,7 +1969,7 @@ Return the receiving status after sending command | @@ -1609,7 +1969,7 @@ Return the receiving status after sending command | ||
| 1609 | Return the receiving status after sending command | 1969 | Return the receiving status after sending command |
| 1610 | 1970 | ||
| 1611 | ##### fEvtQAChoice | 1971 | ##### fEvtQAChoice |
| 1612 | -- **Topic**:/basestation/\${baseSN}/receive | 1972 | +- **Topic**: /basestation/\${baseSN}/receive |
| 1613 | **Function description**: Returns the answer information submitted by the keypad | 1973 | **Function description**: Returns the answer information submitted by the keypad |
| 1614 | - **Parameter Description** | 1974 | - **Parameter Description** |
| 1615 | 1975 | ||
| @@ -1639,7 +1999,7 @@ Return the receiving status after sending command | @@ -1639,7 +1999,7 @@ Return the receiving status after sending command | ||
| 1639 | ### Numeric | 1999 | ### Numeric |
| 1640 | #### Method | 2000 | #### Method |
| 1641 | ##### startQANum | 2001 | ##### startQANum |
| 1642 | -- **Topic**:/client/\${baseSN}/send | 2002 | +- **Topic**: /client/\${baseSN}/send |
| 1643 | - **Function description**: Start Numeric Question | 2003 | - **Function description**: Start Numeric Question |
| 1644 | - **Parameter Description** | 2004 | - **Parameter Description** |
| 1645 | 2005 | ||
| @@ -1675,7 +2035,7 @@ Return the receiving status after sending command | @@ -1675,7 +2035,7 @@ Return the receiving status after sending command | ||
| 1675 | ``` | 2035 | ``` |
| 1676 | 2036 | ||
| 1677 | ##### stopQANum | 2037 | ##### stopQANum |
| 1678 | -- **Topic**:/client/\${baseSN}/send | 2038 | +- **Topic**: /client/\${baseSN}/send |
| 1679 | - **Function description**: Stop Numeric Question | 2039 | - **Function description**: Stop Numeric Question |
| 1680 | - **Parameter Description** | 2040 | - **Parameter Description** |
| 1681 | 2041 | ||
| @@ -1698,7 +2058,7 @@ Return the receiving status after sending command | @@ -1698,7 +2058,7 @@ Return the receiving status after sending command | ||
| 1698 | Return the receiving status after sending command | 2058 | Return the receiving status after sending command |
| 1699 | 2059 | ||
| 1700 | ##### fEvtQANum | 2060 | ##### fEvtQANum |
| 1701 | -- **Topic**:/basestation/\${baseSN}/receive | 2061 | +- **Topic**: /basestation/\${baseSN}/receive |
| 1702 | - **Function description**: Returns the answer information submitted by the keypad | 2062 | - **Function description**: Returns the answer information submitted by the keypad |
| 1703 | - **Parameter Description** | 2063 | - **Parameter Description** |
| 1704 | 2064 | ||
| @@ -1728,7 +2088,7 @@ Return the receiving status after sending command | @@ -1728,7 +2088,7 @@ Return the receiving status after sending command | ||
| 1728 | ### Rush Answer | 2088 | ### Rush Answer |
| 1729 | #### Method | 2089 | #### Method |
| 1730 | ##### startQAQuicker | 2090 | ##### startQAQuicker |
| 1731 | -- **Topic**:/client/\${baseSN}/send | 2091 | +- **Topic**: /client/\${baseSN}/send |
| 1732 | - **Function description**: Start Rush Answer | 2092 | - **Function description**: Start Rush Answer |
| 1733 | - **Parameter Description** | 2093 | - **Parameter Description** |
| 1734 | 2094 | ||
| @@ -1758,7 +2118,7 @@ Return the receiving status after sending command | @@ -1758,7 +2118,7 @@ Return the receiving status after sending command | ||
| 1758 | ``` | 2118 | ``` |
| 1759 | 2119 | ||
| 1760 | ##### stopQAQuicker | 2120 | ##### stopQAQuicker |
| 1761 | -- **Topic**:/client/\${baseSN}/send | 2121 | +- **Topic**: /client/\${baseSN}/send |
| 1762 | - **Function description**: Start Rush Answer | 2122 | - **Function description**: Start Rush Answer |
| 1763 | - **Parameter Description** | 2123 | - **Parameter Description** |
| 1764 | 2124 | ||
| @@ -1781,7 +2141,7 @@ Return the receiving status after sending command | @@ -1781,7 +2141,7 @@ Return the receiving status after sending command | ||
| 1781 | Return the receiving status after sending command | 2141 | Return the receiving status after sending command |
| 1782 | 2142 | ||
| 1783 | ##### fEvtQAQuicker | 2143 | ##### fEvtQAQuicker |
| 1784 | -- **Topic**:/basestation/\${baseSN}/receive | 2144 | +- **Topic**: /basestation/\${baseSN}/receive |
| 1785 | - **Function description**: Returns the answer information submitted by the keypad | 2145 | - **Function description**: Returns the answer information submitted by the keypad |
| 1786 | - **Parameter Description** | 2146 | - **Parameter Description** |
| 1787 | 2147 | ||
| @@ -1812,7 +2172,7 @@ Return the receiving status after sending command | @@ -1812,7 +2172,7 @@ Return the receiving status after sending command | ||
| 1812 | ### Standard Test | 2172 | ### Standard Test |
| 1813 | #### Method | 2173 | #### Method |
| 1814 | ##### startKpExam | 2174 | ##### startKpExam |
| 1815 | -- **Topic**:/client/\${baseSN}/send | 2175 | +- **Topic**: /client/\${baseSN}/send |
| 1816 | - **Function description**: Start standard test | 2176 | - **Function description**: Start standard test |
| 1817 | - **Parameter Description** | 2177 | - **Parameter Description** |
| 1818 | 2178 | ||
| @@ -1905,7 +2265,7 @@ Return the receiving status after sending command | @@ -1905,7 +2265,7 @@ Return the receiving status after sending command | ||
| 1905 | ``` | 2265 | ``` |
| 1906 | 2266 | ||
| 1907 | ##### stopKpExam | 2267 | ##### stopKpExam |
| 1908 | -- **Topic**:/client/\${baseSN}/send | 2268 | +- **Topic**: /client/\${baseSN}/send |
| 1909 | - **Function description**: Stop standard test | 2269 | - **Function description**: Stop standard test |
| 1910 | - **Parameter Description** | 2270 | - **Parameter Description** |
| 1911 | 2271 | ||
| @@ -1924,7 +2284,7 @@ Return the receiving status after sending command | @@ -1924,7 +2284,7 @@ Return the receiving status after sending command | ||
| 1924 | ``` | 2284 | ``` |
| 1925 | 2285 | ||
| 1926 | ##### rtKpAllowEdited | 2286 | ##### rtKpAllowEdited |
| 1927 | -- **Topic**:/client/\${baseSN}/send | 2287 | +- **Topic**: /client/\${baseSN}/send |
| 1928 | - **Function description**: After keypad submission, allow the keypad to modify the answer | 2288 | - **Function description**: After keypad submission, allow the keypad to modify the answer |
| 1929 | - **Parameter Description** | 2289 | - **Parameter Description** |
| 1930 | 2290 | ||
| @@ -1952,7 +2312,7 @@ Return the receiving status after sending command | @@ -1952,7 +2312,7 @@ Return the receiving status after sending command | ||
| 1952 | Return the receiving status after sending command | 2312 | Return the receiving status after sending command |
| 1953 | 2313 | ||
| 1954 | ##### fEvtKpExam | 2314 | ##### fEvtKpExam |
| 1955 | -- **Topic**:/basestation/\${baseSN}/receive | 2315 | +- **Topic**: /basestation/\${baseSN}/receive |
| 1956 | - **Function description**: Returns the answer information from the keypad | 2316 | - **Function description**: Returns the answer information from the keypad |
| 1957 | - **Parameter Description** | 2317 | - **Parameter Description** |
| 1958 | 2318 | ||
| @@ -1986,7 +2346,7 @@ Return the receiving status after sending command | @@ -1986,7 +2346,7 @@ Return the receiving status after sending command | ||
| 1986 | ``` | 2346 | ``` |
| 1987 | 2347 | ||
| 1988 | ##### fEvtFinalSubmit | 2348 | ##### fEvtFinalSubmit |
| 1989 | -- **Topic**:/basestation/\${baseSN}/receive | 2349 | +- **Topic**: /basestation/\${baseSN}/receive |
| 1990 | - **Function description**: Return the manual submission mark of the keypad | 2350 | - **Function description**: Return the manual submission mark of the keypad |
| 1991 | - **Parameter Description** | 2351 | - **Parameter Description** |
| 1992 | 2352 |