CN109996263A - A kind of method of the NB-IoT mould group based on LwM2M agreement the service of connection devices management platform - Google Patents
A kind of method of the NB-IoT mould group based on LwM2M agreement the service of connection devices management platform Download PDFInfo
- Publication number
- CN109996263A CN109996263A CN201910234710.3A CN201910234710A CN109996263A CN 109996263 A CN109996263 A CN 109996263A CN 201910234710 A CN201910234710 A CN 201910234710A CN 109996263 A CN109996263 A CN 109996263A
- Authority
- CN
- China
- Prior art keywords
- mould group
- data
- urc
- platform
- management platform
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
- Computer And Data Communications (AREA)
Abstract
A kind of method the invention discloses NB-IoT mould group based on LwM2M agreement the service of connection devices management platform, comprising the following steps: mould group accesses test platform after powering on networking;It is instructed using AT+QIOTSEND and sends data;Mould group receives data and instructs reading data according to the direct output data of configuration or by AT+QIOTRD later;Pass through the state of AT+QIOTSTATE instructions query mould group docking platform;Mould group initiates de-registration request after receiving AT+QIOTREG=0 instruction.The present invention is based on the LwM2M optimization of protocol stack logical adaptation test platforms simplified.User can instruct selection to connect device management platform of the invention either other platforms by AT.AT command set is accomplished to simplify practical and unified with other related platforms simultaneously, and suitability is preferable.
Description
Technical field
The present invention relates to a kind of methods of mould group access test platform more particularly to a kind of NB-IoT mould group to be based on
The method of LwM2M agreement the service of connection devices management platform.
Background technique
NB-IoT (NarrowBandInternetofThings, narrowband Internet of Things) mould group is based on Huawei Hai Si
The exploitation of Boudica chipset, which is world-leading protenchyma networked wireless communications module, is met in 3GPP standard
Band requirement.It has the characteristics that small in size, low in energy consumption, long transmission distance, strong antijamming capability.Use the module, Ke Yifang
Just client is quick, flexibly carries out product design.
LwM2M agreement is the light-weighted M2M agreement that OMA is organized to set up, and is mainly directed towards based on cellular narrowband Internet of Things
Internet of Things application under NB-IoT scene focuses on low-power consumption and extensively covers the market (LPWA) Internet of Things (IoT), is that one kind can be in the whole world
Widely applied emerging technology in range.Have the characteristics that covering is wide, connection is more, rate is low, at low cost, low in energy consumption, framework is excellent etc..
NB-IoT mould group is accessed into test platform, first has to meet basic access demand, data transmit-receive is stablized, and secondly meets
Load balancing demand when magnanimity accesses;Meet the upgrading of mould group and data demand for security.
Summary of the invention
Technical problem to be solved by the present invention lies in: how fast adaptation test platform or other platforms, provide one
Method of the kind NB-IoT mould group based on LwM2M agreement the service of connection devices management platform.
The present invention be by the following technical programs solution above-mentioned technical problem, the present invention the following steps are included:
(1) mould group accesses test platform after powering on networking;
(2) data are sent using AT+QIOTSEND instruction;
(3) mould group receives data and instructs reading data according to the direct output data of configuration or by AT+QIOTRD later;
(4) pass through the state of AT+QIOTSTATE instructions query mould group docking platform;
(5) mould group initiates de-registration request after receiving AT+QIOTREG=0 instruction.
Detailed process is as follows for the step (1):
(11) mould group powers on, and networks successfully;
(12) judge whether to need to access test platform according to AT+QIOTREG setting value;
(13) registration request is initiated, platform is received and the establishing resource success response code reply of mould group registration request is then shown
It succeeds in registration, output phase answers URC;Otherwise other replies are received and show registration failure, output phase answers URC, and register flow path terminates;
(14) if not receiving the response of registration request, judge whether overtime registration failure, output phase answers URC, note
Volume terminates;
(15) platform is waited to issue observe request after succeeding in registration, the output data channel subscription success if receiving
URC, register flow path terminate;Otherwise it continues waiting for, subscribes to failure URC until time-out exports, register flow path terminates.
Detailed process is as follows for the step (2):
(21) data are sent using AT+QIOTSEND instruction;
(22) according to instructing incoming parameter to judge whether it is CON data, process terminates after then sending if NON data;If
For CON message, then wait-for-response after sending;
(23) response mistake or time-out are then exported without return sends failure URC, and otherwise output sends successfully URC, sends and flows
Journey terminates.
In the step (22), data parameters include data length, data, sending mode;
Wherein, data length is up to 512 bytes;
Data are hexstring format;
0x0000 sends NON message,
0x0001 sends NON message and carries RELEASE label,
0x0100 sends CON message,
0x0101 sends CON message and carries RELEASE_AFTER_REPLY label.
Detailed process is as follows for the step (3):
(31) after mould group receives data, it is first determined whether be buffer mode, it is if non-buffer mode, then directly defeated
It out include the URC of data length and data, receiving process terminates, and otherwise output receives the length of data;
(32) data that buffer is read using AT+QIOTRD instruction receive process knot until remaining data length is 0
Beam.
Detailed process is as follows for the step (5):
(51) mould group initiates de-registration request after receiving AT+QIOTREG=0 instruction;
(52) if mould group, which receives platform, nullifies successfully URC to reporting after the answer code of de-registration request;
(53) mould group reports cancellation failure URC if receiving other replies, otherwise reports cancellation after waiting reply time-out
Overtime URC.
It is suitable that the present invention has the advantage that the present invention is based on the LwM2M optimization of protocol stack logics simplified compared with prior art
With test platform.User can instruct selection to connect device management platform of the invention either other platforms by AT.Simultaneously
AT command set accomplishes to simplify practical and unify with other related platforms that suitability is preferable.
Detailed description of the invention
Fig. 1 is register flow path figure of the present invention;
Fig. 2 is logout flow path figure of the present invention;
Fig. 3 is the flow chart that the present invention sends data;
Fig. 4 is the flow chart that the present invention receives data.
Specific embodiment
It elaborates below to the embodiment of the present invention, the present embodiment carries out under the premise of the technical scheme of the present invention
Implement, the detailed implementation method and specific operation process are given, but protection scope of the present invention is not limited to following implementation
Example.
In the present embodiment, all instructions with QIOT beginning are all instructions relevant to device management platform.
Detailed process is as follows for the present embodiment:
(1) mould group accesses test platform after powering on networking;
(2) data are sent using AT+QIOTSEND instruction;
(3) mould group receives data and instructs reading data according to the direct output data of configuration or by AT+QIOTRD later;
(4) pass through the state of AT+QIOTSTATE instructions query mould group docking platform;
(5) mould group initiates de-registration request after receiving AT+QIOTREG=0 instruction.
As shown in Figure 1, the step of the present embodiment (1), detailed process is as follows:
(11) mould group powers on, and networks successfully;
(12) judged whether to need to access test platform according to AT+QIOTREG setting value, setting value 0 is nullified and closed
Access the function of test platform;Setting value is 1, is automatically registered to test platform, which can be stored in mould group;
(13) registration request is initiated, receiving 2.01 replies, (2.01 be establishing resource success of the platform to mould group registration request
Answer code indicates the establishing resource success on platform) show to succeed in registration, output phase answers URC;Otherwise other replies are received to show
Registration failure, output phase answer URC, and register flow path terminates;
(14) if not receiving the response of registration request, judge whether overtime registration failure, output phase answers URC, note
Volume terminates;
(15) platform is waited to issue observe request after succeeding in registration, the output data channel subscription success if receiving
URC, register flow path terminate;Otherwise it continues waiting for, subscribes to failure URC until time-out exports, register flow path terminates.
The login state of mould group is inquired by AT+QIOTSTATE instruction:
0UNINITIALISED, no initializtion;
1MISSING_CONFIG, configuration loss;
2INIITIALISING is being initialized;
3INIITIALISED, initialization are completed;
4INIT_FAILED, initialization failure;
5REGISTERING is being registered;
6REGISTERED, it is registered;
7DEREGISTERED, it is canceled;
8MO_DATA_ENABLED, data are transmittable;
9NO_UE_IP obtains IP failure;
10REJECTED_BY_SERVER, server refusal;
11TIMEOUT_AND_RETRYING, time-out retry;
12REG_FAILED, registration failure;
13DEREG_FAILED nullifies failure.
As shown in Fig. 2, the step of the present embodiment (2), detailed process is as follows:
(21) data are sent using AT+QIOTSEND instruction;
(22) according to instructing incoming parameter to judge whether it is CON data, process terminates after then sending if NON data;If
For CON message, then wait-for-response after sending;
(23) response mistake or time-out are then exported without return sends failure URC, and otherwise output sends successfully URC, sends and flows
Journey terminates.
In the step (22), data parameters include length data length, data data, mode sending mode;
Wherein, data length is up to 512 bytes;
Data are hexstring format;
0x0000 sends NON message,
0x0001 sends NON message and carries RELEASE label,
0x0100 sends CON message,
0x0101 sends CON message and carries RELEASE_AFTER_REPLY label.
Data are inquired using AT+QIOTSENDSTATUS instruction sends state:
0 is not sent;
1 has sent, and waits platform response;
2 send failure;
3 send time-out;
4 send successfully;
5 receive reset message.
As shown in figure 3, the step of the present embodiment (3), detailed process is as follows:
(31) after mould group receives data, it is first determined whether be buffer mode, it is if non-buffer mode, then directly defeated
It out include the URC of data length and data, receiving process terminates, and otherwise output receives the length of data;
(32) data that buffer is read using AT+QIOTRD instruction receive process knot until remaining data length is 0
Beam.
In Fig. 3, req_length reads byte number 1-1024;
Cur_len returns to byte number;
The data that data is read, hexstring format or string format;
Remain_len remainder bytes number.
As shown in figure 4, the step of the present embodiment (5), detailed process is as follows:
(51) mould group initiates de-registration request after receiving AT+QIOTREG=0 instruction;
(52) if mould group receives 2.02 replies, (2.02 be answer code of the platform to de-registration request, and expression is deleted on platform
Mould group requested resource) after report and nullify successfully URC;
(53) mould group reports cancellation failure URC if receiving other replies, otherwise reports cancellation after waiting reply time-out
Overtime URC.
In Fig. 1~4, the specific meaning of+QIOTEVT is as follows:
0 registration failure;
1 succeeds in registration;
2 registration timeouts;
3 subscribe to successfully;
4 subscribe to failure;
5 nullify successfully;
6 nullify failure;
7 nullify time-out;
8 data are sent successfully;
9 data send failure;
10 receive data.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.
Claims (6)
1. a kind of method of NB-IoT mould group based on LwM2M agreement the service of connection devices management platform, which is characterized in that including following step
It is rapid:
(1) mould group accesses test platform after powering on networking;
(2) data are sent using AT+QIOTSEND instruction;
(3) mould group receives data and instructs reading data according to the direct output data of configuration or by AT+QIOTRD later;
(4) pass through the state of AT+QIOTSTATE instructions query mould group docking platform;
(5) mould group initiates de-registration request after receiving AT+QIOTREG=0 instruction.
2. a kind of method of the NB-IoT mould group according to claim 1 based on LwM2M agreement the service of connection devices management platform,
It is characterized in that, detailed process is as follows for the step (1):
(11) mould group powers on, and networks successfully;
(12) judge whether to need to access test platform according to AT+QIOTREG setting value;
(13) registration request is initiated, platform is received and the establishing resource success response code reply of mould group registration request is then shown to register
Success, output phase answer URC;Otherwise other replies are received and show registration failure, output phase answers URC, and register flow path terminates;
(14) if not receiving the response of registration request, judge whether overtime registration failure, output phase answers URC, registration flow
Journey terminates;
(15) platform is waited to issue observe request after succeeding in registration, output data channel subscription success URC, note if receiving
Volume process terminates;Otherwise it continues waiting for, subscribes to failure URC until time-out exports, register flow path terminates.
3. a kind of method of the NB-IoT mould group according to claim 1 based on LwM2M agreement the service of connection devices management platform,
It is characterized in that, detailed process is as follows for the step (2):
(21) data are sent using AT+QIOTSEND instruction;
(22) according to instructing incoming parameter to judge whether it is CON data, process terminates after then sending if NON data;If CON
Message, then wait-for-response after sending;
(23) response mistake or time-out are then exported without return sends failure URC, and otherwise output sends successfully URC, transmission flow knot
Beam.
4. a kind of method of the NB-IoT mould group according to claim 3 based on LwM2M agreement the service of connection devices management platform,
It is characterized in that, in the step (22), data parameters include data length, data, sending mode;
Wherein, data length is up to 512 bytes;
Data are hexstring format;
0x0000 sends NON message,
0x0001 sends NON message and carries RELEASE label,
0x0100 sends CON message,
0x0101 sends CON message and carries RELEASE_AFTER_REPLY label.
5. a kind of method of the NB-IoT mould group according to claim 1 based on LwM2M agreement the service of connection devices management platform,
It is characterized in that, detailed process is as follows for the step (3):
(31) after mould group receives data, it is first determined whether being buffer mode, if non-buffer mode, then directly output is wrapped
URC containing data length and data, receiving process terminates, and otherwise output receives the length of data;
(32) data of buffer are read using AT+QIOTRD instruction, until remaining data length is 0, receiving process terminates.
6. a kind of method of the NB-IoT mould group according to claim 1 based on LwM2M agreement docking test platform, feature
It is, detailed process is as follows for the step (5):
(51) mould group initiates de-registration request after receiving AT+QIOTREG=0 instruction;
(52) if mould group, which receives platform, nullifies successfully URC to reporting after the answer code of de-registration request;
(53) mould group reports cancellation failure URC if receiving other replies, and cancellation time-out is otherwise reported after waiting reply time-out
URC。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910234710.3A CN109996263B (en) | 2019-03-26 | 2019-03-26 | Method for NB-IoT module to dock equipment management platform based on LwM2M protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910234710.3A CN109996263B (en) | 2019-03-26 | 2019-03-26 | Method for NB-IoT module to dock equipment management platform based on LwM2M protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109996263A true CN109996263A (en) | 2019-07-09 |
CN109996263B CN109996263B (en) | 2022-04-05 |
Family
ID=67131624
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910234710.3A Active CN109996263B (en) | 2019-03-26 | 2019-03-26 | Method for NB-IoT module to dock equipment management platform based on LwM2M protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109996263B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111092948A (en) * | 2019-12-20 | 2020-05-01 | 深圳前海达闼云端智能科技有限公司 | Guiding method, guiding server, server and storage medium |
CN112838938A (en) * | 2019-11-25 | 2021-05-25 | 中移物联网有限公司 | Test system of Internet of things platform |
CN114095221A (en) * | 2021-11-11 | 2022-02-25 | 合肥移瑞通信技术有限公司 | Security verification method, device, equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150033312A1 (en) * | 2013-07-25 | 2015-01-29 | Convida Wireless, Llc | End-To-End M2M Service Layer Sessions |
CN105871629A (en) * | 2016-05-30 | 2016-08-17 | 自连电子科技(上海)有限公司 | Method and system for transmitting data through internet of things device |
CN107240247A (en) * | 2017-07-14 | 2017-10-10 | 杭州钛比科技有限公司 | A kind of ammeter data acquisition system based on NB IoT |
CN108337308A (en) * | 2018-01-31 | 2018-07-27 | 深圳市中兴物联科技有限公司 | LWM2M clients and host computer data communications method, device and its system |
US20180376417A1 (en) * | 2017-06-26 | 2018-12-27 | Verizon Patent And Licensing Inc. | Connection management for internet of things devices |
CN109215315A (en) * | 2018-08-31 | 2019-01-15 | 杭州海兴电力科技股份有限公司 | The remote meter reading method and system of dual mode communication |
US20190069221A1 (en) * | 2017-08-31 | 2019-02-28 | Definition Networks, Inc. | Systems and methods for machine-type communication |
CN109451021A (en) * | 2018-11-09 | 2019-03-08 | 吾诺瑟斯科技(天津)有限公司 | The more heterogeneous network access systems of Internet of Things edge side and cut-in method |
CN109495524A (en) * | 2017-09-11 | 2019-03-19 | 华为技术有限公司 | A kind of method, apparatus and system of Internet of Things resource subscription |
GB201901417D0 (en) * | 2019-02-01 | 2019-03-20 | Arm Ip Ltd | Device registration mechanism |
-
2019
- 2019-03-26 CN CN201910234710.3A patent/CN109996263B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150033312A1 (en) * | 2013-07-25 | 2015-01-29 | Convida Wireless, Llc | End-To-End M2M Service Layer Sessions |
CN105871629A (en) * | 2016-05-30 | 2016-08-17 | 自连电子科技(上海)有限公司 | Method and system for transmitting data through internet of things device |
US20180376417A1 (en) * | 2017-06-26 | 2018-12-27 | Verizon Patent And Licensing Inc. | Connection management for internet of things devices |
CN107240247A (en) * | 2017-07-14 | 2017-10-10 | 杭州钛比科技有限公司 | A kind of ammeter data acquisition system based on NB IoT |
US20190069221A1 (en) * | 2017-08-31 | 2019-02-28 | Definition Networks, Inc. | Systems and methods for machine-type communication |
CN109495524A (en) * | 2017-09-11 | 2019-03-19 | 华为技术有限公司 | A kind of method, apparatus and system of Internet of Things resource subscription |
CN108337308A (en) * | 2018-01-31 | 2018-07-27 | 深圳市中兴物联科技有限公司 | LWM2M clients and host computer data communications method, device and its system |
CN109215315A (en) * | 2018-08-31 | 2019-01-15 | 杭州海兴电力科技股份有限公司 | The remote meter reading method and system of dual mode communication |
CN109451021A (en) * | 2018-11-09 | 2019-03-08 | 吾诺瑟斯科技(天津)有限公司 | The more heterogeneous network access systems of Internet of Things edge side and cut-in method |
GB201901417D0 (en) * | 2019-02-01 | 2019-03-20 | Arm Ip Ltd | Device registration mechanism |
Non-Patent Citations (4)
Title |
---|
ERICSSON: "S2-183215 "KI 1 amp;amp; 2: Extract NIMF as separate solution"", 《3GPP TSG_SA\WG2_ARCH》 * |
QIN孟丰: "《学习LwM2M协议》", 《HTTPS://BLOG.CSDN.NET/WEIXIN_42673046/ARTICLE/DETAIL/82383271》 * |
QUALCOMM INCORPORATED: "S2-186354 "Completing solution 33"", 《3GPP TSG_SA\WG2_ARCH》 * |
THOMAS_BLOG: "《lwm2m协议》", 《HTTPS://WWW.CNBLOG.COM/ZHANGXUECHAO/P/11709731.HTML》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112838938A (en) * | 2019-11-25 | 2021-05-25 | 中移物联网有限公司 | Test system of Internet of things platform |
CN112838938B (en) * | 2019-11-25 | 2022-06-14 | 中移物联网有限公司 | Test system of Internet of things platform |
CN111092948A (en) * | 2019-12-20 | 2020-05-01 | 深圳前海达闼云端智能科技有限公司 | Guiding method, guiding server, server and storage medium |
CN114095221A (en) * | 2021-11-11 | 2022-02-25 | 合肥移瑞通信技术有限公司 | Security verification method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109996263B (en) | 2022-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8666385B2 (en) | Data download method and terminal | |
US9177467B2 (en) | Electrical gateway and communication method of electrical gateway | |
CN109996263A (en) | A kind of method of the NB-IoT mould group based on LwM2M agreement the service of connection devices management platform | |
CN104754003B (en) | Transmit the method and system of data | |
CN106664735A (en) | Maximum transmission unit size reporting and discovery by a user equipment | |
RU2558680C2 (en) | Method, device and system of processing for control of pass-band | |
US10764408B2 (en) | Method for establishing wireless connection and device | |
WO2019233275A1 (en) | Data transmission method and device for euicc of narrowband internet of things | |
EP4255102A2 (en) | Method and terminal device for data transmission | |
KR100979202B1 (en) | The method of message service and message service system | |
CN104301882A (en) | Device and method for perceiving identity information of 3G mobile terminal user | |
US11432266B2 (en) | Method and apparatus for transmitting data to UE in a device group, and computer storage medium | |
CN104780587A (en) | AP (access point) accessing method and system for WiFi (wireless fidelity) equipment in Internet of Things | |
CN116614172A (en) | Satellite communication method, nonvolatile storage medium, and electronic device | |
CN110545556B (en) | MAC CE, information sending method, information receiving method and communication equipment | |
US20120057587A1 (en) | Data transmission method in a zigbee network, terminal processor, and terminal device | |
CN107257586B (en) | Mobile network connection method and system when intelligent terminal is connected with WiFi | |
US9210612B2 (en) | Communication system, method and device | |
CN101489259A (en) | Data service handling method, system and access network | |
CN113055253B (en) | Method, device, equipment and storage medium for rapidly opening home gateway | |
US20200305207A1 (en) | Data transmission method and device and computer storage medium | |
CN107241751A (en) | The external dialup networking method and system of wireless communication module | |
CN113542343A (en) | Apparatus and method for G3-PLC bootstrapping in hybrid networks | |
CN106686616B (en) | Broadband cluster base station and broadband cluster terminal | |
EP3742775A1 (en) | Method and device for terminal to report information, and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |