CN113965904A - Device registration method, device and storage medium - Google Patents

Device registration method, device and storage medium Download PDF

Info

Publication number
CN113965904A
CN113965904A CN202111261957.8A CN202111261957A CN113965904A CN 113965904 A CN113965904 A CN 113965904A CN 202111261957 A CN202111261957 A CN 202111261957A CN 113965904 A CN113965904 A CN 113965904A
Authority
CN
China
Prior art keywords
registered
registration
type
parameter
parameters
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
Application number
CN202111261957.8A
Other languages
Chinese (zh)
Other versions
CN113965904B (en
Inventor
刘俊
赵洪鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Easylinkin Technology Co ltd
Original Assignee
Wuhan Easylinkin Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Easylinkin Technology Co ltd filed Critical Wuhan Easylinkin Technology Co ltd
Priority to CN202111261957.8A priority Critical patent/CN113965904B/en
Publication of CN113965904A publication Critical patent/CN113965904A/en
Application granted granted Critical
Publication of CN113965904B publication Critical patent/CN113965904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y30/00IoT infrastructure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Abstract

The embodiment of the disclosure relates to a device registration method, a device registration apparatus and a storage medium, wherein the device registration method is applied to an Internet of things platform, and the method comprises the following steps: receiving a device registration request; the device registration request carries the product type of the device to be registered and the parameter value of the first type of registration parameter, wherein the first type of registration parameter comprises: one or more parameters with different parameter values of different devices to be registered; determining a second type of registration parameters of the equipment to be registered according to the product type; wherein the second type registration parameters include: one or more parameters with the same parameter value of different devices to be registered; and responding to the equipment registration request according to the parameter values of the first type of registration parameters and the parameter preset values of the second type of registration parameters. The embodiment of the disclosure can improve the efficiency of registering the Internet of things equipment to the Internet of things platform, reduce the registration threshold, reduce the registration error and reduce the data volume transmitted in the registration process.

Description

Device registration method, device and storage medium
Technical Field
The present disclosure relates to the field of internet of things technologies, and in particular, to a device registration method, apparatus, and storage medium.
Background
With the application of Low-Power Wide-Area Network (LPWAN for short) communication technologies such as LoRa (Long Range Radio), the massive growth of terminal devices of the internet of things is promoted.
At present, the internet of things terminal equipment is registered to an internet of things platform by using a manual registration mode, however, the internet of things equipment is various, the shipment volume of the internet of things equipment is large, and a user is required to fill in a lot of registration information when each internet of things equipment is registered, so that much time cost and manpower resources are occupied; in addition, when registering a user with unclear relevant protocols applicable to the internet of things equipment, registration errors are easy to occur, and therefore the internet of things terminal equipment cannot be normally used.
Disclosure of Invention
The embodiment of the disclosure provides a device registration method, a device registration apparatus and a storage medium.
The technical scheme of the disclosure is realized as follows:
in a first aspect, a device registration method is provided, which is applied to an internet of things platform, and the method includes:
receiving a device registration request; the device registration request carries the product type of the device to be registered and the parameter value of a first type of registration parameter, wherein the first type of registration parameter includes: one or more parameters different from the parameter value of the device to be registered;
determining a second type of registration parameters of the equipment to be registered according to the product type; wherein the second type registration parameters include: one or more parameters with the same parameter values of different devices to be registered;
and responding to the equipment registration request according to the parameter values of the first type of registration parameters and the parameter preset values of the second type of registration parameters.
In the above technical solution, the determining the second type of registration parameters of the device to be registered according to the product type includes:
determining an activation mode of the equipment to be registered according to the first type of registration parameters;
and determining the parameter preset value of the second type of registration parameters of the equipment to be registered according to the product type and the determined activation mode.
In the above technical solution, the activation mode includes: an over the air OTAA mode and a manual ABP mode.
In the above technical solution, when the activation mode of the device to be registered is an over the air OTAA mode, the first type of registration parameter includes:
a device unique identifier of the device to be registered;
an application unique identifier of the device to be registered;
and the root key of the device to be registered.
In the above technical solution, when the activation mode of the device to be registered is the manual activation ABP mode, the first type of registration parameters include:
the device address of the device to be registered;
a network session key of the device to be registered;
and the application session key of the device to be registered.
In the above technical solution, when the activation mode is an over the air OTAA activation mode, the second type of registration parameter includes:
whether the equipment to be registered clears the downlink data temporarily stored in the message queue or not;
whether the equipment to be registered starts the self-adaptive data rate control or not;
whether the equipment to be registered starts downlink rate adjustment or not;
a timeout period of the device to be registered, wherein the timeout period is used for determining whether a network state of the device to be registered is an offline state;
alternatively, the first and second electrodes may be,
when the activation mode is a manual activation ABP mode, the second type of registration parameters include:
a device unique identifier of the device to be registered;
an application unique identifier of the device to be registered;
an uplink counter, wherein the uplink counter is used for counting the number of frames sent to the platform of the internet of things by the device to be registered;
a downlink counter, wherein the downlink counter is used for counting the number of frames sent by the internet of things platform to the device to be registered;
whether the equipment to be registered starts the self-adaptive data rate control or not;
whether the equipment to be registered starts the downlink rate adjustment or not.
A timeout period of the device to be registered.
In the above technical solution, the receiving the device registration request includes:
receiving the device registration request based on a LoRAWAN long-range wireless communication protocol.
In a second aspect, an apparatus for registering a device is provided, which is applied to a platform of internet of things, and the apparatus includes:
a receiving module, configured to receive a device registration request; the device registration request carries the product type of the device to be registered and the parameter value of a first type of registration parameter, wherein the first type of registration parameter includes: one or more parameters different from the parameter value of the device to be registered;
the determining module is used for determining a second type of registration parameters of the equipment to be registered according to the product type; wherein the second type registration parameters include: one or more parameters with the same parameter values of different devices to be registered;
and the response module is used for responding to the equipment registration request according to the parameter values of the first type of registration parameters and the parameter preset values of the second type of registration parameters.
In a third aspect, a computer device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and is characterized in that the processor implements the steps of the device registration method according to any one of the first aspect when executing the program.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the device registration method according to any one of the first aspect.
The equipment registration method is applied to an Internet of things platform, and comprises the steps of receiving an equipment registration request, determining a second type of registration parameter of equipment to be registered according to the product type of the equipment to be registered, and responding to the equipment registration request according to the parameter value of the first type of registration parameter and the parameter preset value of the second type of registration parameter. The first type of registration parameters comprise one or more parameters with different parameter values of different equipment to be registered, the parameter values of the first type of registration parameters can be used for distinguishing different equipment to be registered of the same product type, and the second type of registration parameters of different equipment to be registered have the same preset parameter values, so that when the equipment to be registered of the Internet of things is registered on the platform of the Internet of things, the product type of the equipment to be registered and the parameter values of the first type of registration parameters only need to be carried in an equipment registration request, and the parameter values of all the registration parameters do not need to be carried.
Drawings
Fig. 1 shows a schematic diagram of a LoRaWAN network system architecture;
fig. 2a shows an interface schematic diagram of device registration by using OTAA;
FIG. 2b is a schematic diagram of an interface for registering a terminal device in an ABP manner;
FIG. 3 shows a flow diagram of a device registration method;
FIG. 4 shows a schematic flow chart of step S12 of the method of FIG. 3;
FIG. 5a is a diagram showing a setting interface of a second type of registration parameters in the OATT mode according to the embodiment;
FIG. 5b is a diagram of a setup interface for the second type of registration parameters in ABP mode;
FIG. 5c is an interface diagram showing parameter values for a second type of registration parameter in different activation modes;
FIG. 5d is a schematic diagram of an operation interface of a new product type of the Internet of things platform;
FIG. 5e shows an interface diagram for a registration operation for a device to be registered;
fig. 6 is a schematic diagram showing a structure of a device registration apparatus;
fig. 7 shows a schematic structural diagram of a computer device.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more clearly and completely apparent, the technical solutions in the embodiments of the present disclosure will be described below with reference to the accompanying drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure. The embodiments and features of the embodiments in the present disclosure may be arbitrarily combined with each other without conflict. The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
It is to be understood that the description of the embodiments of the present disclosure emphasizes the differences between the embodiments, and the same or similar parts may be referred to each other, so that the descriptions thereof are omitted for brevity.
First, a brief description will be made of related art to which embodiments of the present disclosure relate.
The LoRa is one of low-power-consumption wide area network communication technologies, and is an ultra-long-distance wireless transmission technology based on a spread spectrum technology, which is proprietary to Semtech corporation. LoRaWAN is a set of wide area network protocols designed based on LoRa long-distance wireless communication technology, including MAC (Medium Access Control) layer communication protocol and network system architecture.
Fig. 1 shows a schematic diagram of a LoRaWAN network system architecture. As shown in fig. 1, the LoRaWAN network system architecture may include: the system comprises a sensor layer, a LoRAWAN gateway layer, a Network Server and an Application Server, wherein the Application Server is deployed in an Internet of things platform. The sensor layer comprises a LoRaWAN terminal, namely an equipment terminal with LoRaWAN communication function, and is mainly used for data acquisition, switch control and the like; LoRaWAN terminal can be built-in to have the LoRA module, and a LoRA module can be in a channel access to a LoRAWAN gateway. The LoRaWAN gateway layer comprises a LoRaWAN gateway and is mainly used for forwarding LoRaWAN protocol data between the terminal and the network server. The network server integrates LoRaWAN network protocol service and LoRaWAN network management service, and is mainly responsible for integrity check of uplink and downlink data packets and forwarding the uplink data to the application server; the application server is responsible for network access activation of the terminal equipment, and encrypting the downlink data, decrypting the uplink data and the like.
In order to access the LoRaWAN network, an internet of things device needs to be activated, and there are two activation methods: OTAA (Over The Air Activation) and ABP (Activation By Personalization, also known as "manual Activation"). Before activating the internet of things device, the internet of things device needs to be registered on the internet of things platform.
Fig. 2a shows an interface schematic diagram of device registration by using OTAA. As shown in fig. 2a, when registering a terminal device in the OTAA manner, a user needs to input the following parameters:
the registration mode is as follows: selecting an OTAA registration mode;
protocol version: protocol versions supported by the LoRaWAN terminal;
AppEUI: an application unique identifier of the LoRaWAN terminal;
DEVEUI: a device unique identifier of the LoRaWAN terminal;
RFregion: frequency bands of LoRaWAN terminals;
AppKey: the LoRaWAN terminal comprises a root key of the LoRaWAN terminal, a network session key NwkSKey and an application session key AppSKey, wherein each LoRaWAN terminal is provided with a 128-bit AppKey with a unique identifier;
Class-Type: the LoRaWAN terminal type can be classified into Class A/B/C, wherein the power consumption of the A-level LoRaWAN terminal is lowest, the B-level LoRaWAN terminal can give consideration to data interaction and power consumption, the power consumption of the C-level LoRaWAN terminal is highest, and the transmission efficiency of the C-level LoRaWAN terminal is highest;
ADR _ Switch: whether an ADR (Adaptive Data Rate) control is started by the LoRaWAN terminal or not, and after the ADR control is started, a network server can take over the communication Rate and the transmitting power of each terminal, so that the power consumption of the terminal is optimal and the communication Rate is highest;
DownAndron: whether the LoRaWAN terminal starts downlink rate adjustment or not;
initpurgqueue: when the LoRaWAN terminal accesses the network again, whether active downlink data are cleared or not is judged, and the clearing is indicated by opening;
timeout period (min): when the LoRaWAN terminal does not receive any data message within the set time, the network state of the equipment is set to be offline, namely the timeout period is used for determining whether the network state of the LoRaWAN terminal is the offline state;
the use state is as follows: the LoRaWAN terminal is used for the purposes of development testing, production testing and project use.
Fig. 2b shows a schematic interface diagram of terminal device registration in ABP mode. As shown in fig. 2b, when registering a terminal device in the ABP mode, a user is required to input the following parameters:
the registration mode is as follows: selecting an ABP registration mode;
protocol version: protocol versions supported by the LoRaWAN terminal;
AppEUI: an application unique identifier of the LoRaWAN terminal;
DEVEUI: a device unique identifier of the LoRaWAN terminal;
RFregion: frequency bands of LoRaWAN terminals;
DevAddr: the device address of the LoRaWAN terminal;
nwksKey: a network session key of the LoRaWAN terminal;
appsKey: an application session key of the LoRaWAN terminal;
FCntUp: an uplink counter for counting the number of frames sent by the LoRaWAN terminal to the server;
FCntDn: a downlink counter for counting the number of frames sent by the server to the LoRaWAN terminal;
Class-Type: types of LoRaWAN terminals, namely Class A, Class B and Class C;
ADR _ Switch: whether the LoRaWAN terminal starts ADR control or not;
DownAndron: whether the LoRaWAN terminal starts downlink rate adjustment or not;
timeout period (min): when the LoRaWAN terminal does not receive any data message within the set time, the network state of the equipment is set to be offline;
the use state is as follows: the LoRaWAN terminal is used for the purposes of development testing, production testing and project use.
As can be seen from the above, no matter the LoRaWAN terminal performs registration in the OTAA manner or the ABP manner, the user is required to fill in much registration information, which may occupy much time cost and human resources; in addition, when registering users with unclear LoRA technology and LoRAWAN protocol, registration errors are easy to occur, and thus, the Internet of things equipment cannot be normally used.
For this reason, the method for registering a device is provided in the embodiments of the present disclosure, and may be applied to a registration scenario of an internet of things device supporting a LoRaWAN protocol, and it can be understood that the method may also be applied to a registration scenario of an internet of things device supporting other communication protocols according to actual needs, where the other communication protocols are, for example, a narrowband internet of things (NB-IoT) protocol.
An embodiment of the present disclosure provides an apparatus registration method, which takes an application server shown in fig. 1 as an execution subject of the method as an example, where the application server may be deployed in an internet of things platform, as shown in fig. 3, the apparatus registration method may include:
s11, receiving a device registration request; the device registration request carries the product type of the device to be registered and the parameter value of the first type of registration parameter, wherein the first type of registration parameter comprises: one or more parameters with different parameter values for different devices to be registered.
The device to be registered may be a LoRaWAN terminal. The product type of the device to be registered indicates the category of the device to be registered. For example, the LoRaWAN terminal may be divided into: temperature sensor, intelligent water gauge, smart electric meter, intelligent smoke detector, intelligent door magnetism etc..
Here, the parameter values of the same first type registration parameter are different for different devices to be registered. The parameter values of the first type of registration parameters may comprise identification information identifying different devices to be registered.
The parameter values of the first type of registration parameters may be pre-stored in the device to be registered, for example, the two-dimensional code attached to the device to be registered may store the parameter values of the first type of registration parameters, and the user may read the parameter values of the first type of registration parameters by scanning the two-dimensional code, where the user may be an internet of things terminal user or an internet of things device operation and maintenance person, such as a delivery operation and maintenance person, a channel operation and maintenance person, and the like.
In some examples, the device registration request may be sent by the device to be registered to the internet of things platform based on a LoRAWAN long-range wireless communication protocol. Specifically, a user can input registration operation for the device to be registered through a display interface provided by the device to be registered, so that the device to be registered sends a device registration request to the network server through the gateway, and the network server sends the device registration request to the internet of things platform.
In other examples, the device registration request may also be sent by a user terminal located in the application layer to the platform of the internet of things, and after receiving a registration operation of the user for the device to be registered, the mobile terminal generates the device registration request and sends the device registration request to the platform of the internet of things. The user can perform batch registration operation on the multiple devices to be registered through the user terminal, and the generated device registration request carries the product types of the multiple devices to be registered and the parameter values of the first type registration parameters of the devices to be registered. Wherein, the product types of the plurality of devices to be registered can be completely the same, or completely different, or not completely the same. The user terminal may be a mobile terminal of a user, including but not limited to: smart phones, tablet computers, remote controllers, or the like.
S12, determining a second type of registration parameters of the equipment to be registered according to the product type; wherein the second type registration parameters include: one or more parameters with the same parameter value of different devices to be registered.
The second type registration parameters are different from the first type registration parameters, the second type registration parameters include one or more parameters common to different devices to be registered, and the parameter preset values of the same second type registration parameter of different devices to be registered are the same, that is, the parameter preset values of the same second type registration parameter are fixed for different devices to be registered of the same type.
Here, the parameter value of the second type of registration parameter is difficult to directly determine, and is often obtained by searching a product manual of the internet of things device by a person with professional technical knowledge.
In some examples, the preset parameter value of the second type registration parameter of the device to be registered may be queried from a device history registration record according to the product type of the device to be registered, where parameter values of all registration parameters of the internet of things device that has been successfully registered are stored in the device history registration record.
In other examples, the preset parameter value of the second type registration parameter of the device to be registered may be input by a professional technician through an operation interface provided by the network server, wherein the professional technician is a technician who is clearly related to the LoRAWAN protocol.
The preset parameter values of the second type of registration parameters have an incidence relation with the product types of the equipment to be registered, and the incidence relation between the preset parameter values of the second type of registration parameters and the product types can be stored in advance in the Internet of things platform. The association relationship may be uploaded to the internet of things platform by the network server. In particular implementation, the network server may upload the association relationship to the internet of things platform through a product type identifier (i.e., "product key"). The product type identifier may be used to identify a product type, and when the preset values of the second type registration parameters associated with a plurality of different product types are the same, the product type identifiers of the plurality of different product types may be the same or different.
Specifically, the internet of things platform may determine the parameter preset value of the second type registration parameter corresponding to the product type according to the pre-stored association relationship between the product type and the parameter preset value of the second type registration parameter.
It should be noted that, when the preset parameter value of the second type registration parameter associated with the product type of the device to be registered in advance is not stored in the internet of things platform, the internet of things platform may request the network server to acquire the preset parameter value of the second type registration parameter associated with the product type of the device to be registered, and if the preset parameter value of the second type registration parameter is not acquired, the registration failure prompt information is output.
And S13, responding to the device registration request according to the parameter value of the first type registration parameter and the parameter preset value of the second type registration parameter.
Specifically, the parameter values of the first type of registration parameters and the parameter preset values of the second type of registration parameters are verified, and when the verification result passes, the equipment registration request is responded according to the parameter values of the first type of registration parameters and the parameter preset values of the second type of registration parameters.
The checking the parameter values of the first-class registration parameters and the parameter preset values of the second-class registration parameters may include: length check and/or illegal character check.
The responding to the device registration request according to the parameter values of the first type of registration parameters and the parameter preset values of the second type of registration parameters may include:
and generating a registration record of the equipment to be registered according to the parameter values of the first type of registration parameters and the parameter preset values of the second type of registration parameters, and storing the generated registration record into a preset database.
In some examples, when the verification result is determined to be failed, registration failure prompt information is generated and returned to the sender of the device registration request.
The registration failure prompt message may include: failure details. The failure detailed information may be used to indicate a specific reason for the registration failure of the device to be registered. For example, the failure details may include: and parameter value errors of the equipment to be registered and the like.
In the device registration method provided by the embodiment of the disclosure, the first type of registration parameters include one or more parameters with different parameter values of different devices to be registered, the parameter values of the first type of registration parameters can be used for distinguishing different devices to be registered of the same product type, and the second type of registration parameters of different devices to be registered have the same preset parameter values, so that when the device of the internet of things is registered on the platform of the internet of things, only the product type of the device to be registered and the parameter values of the first type of registration parameters need to be carried in the device registration request, and the parameter values of all the registration parameters do not need to be carried, so that the registration efficiency of the device of the internet of things can be improved, the registration threshold can be reduced, registration errors can be reduced, and the data volume transmitted in the registration process can be reduced.
In an embodiment, as shown in fig. 4, the determining, in the step S12, the second type of registration parameters of the device to be registered according to the product type may include:
and S121, determining the activation mode of the equipment to be registered according to the first type of registration parameters.
In some examples, the activation modes include an over the air OTAA mode and a manual activation ABP mode.
Specifically, when the first-class registration parameter includes a device unique identifier of the device to be registered, an application unique identifier of the device to be registered, and a root key of the device to be registered, it may be determined that the activation mode of the device to be registered is the oat mode.
When the first type of registration parameters include a device address of the device to be registered, a network session key of the device to be registered, and an application session key of the device to be registered, it may be determined that the activation mode of the device to be registered is an ABP mode.
And S122, determining the preset parameter value of the second type of registration parameters of the equipment to be registered according to the product type and the determined activation mode.
Here, the first type registration parameters of the same device to be registered in different activation modes are different, and correspondingly, the second type registration parameters of the same device to be registered in different activation modes are also different.
Here, the association relationship between the preset parameter value of the second type registration parameter stored in the platform of the internet of things and the product type includes: and the same product type corresponds to the preset parameter value of the second type registration parameter in different activation modes.
Specifically, the process may include:
determining the parameter preset values of the second type registration parameters corresponding to the product type of the equipment to be registered in different activation modes according to the association relation between the prestored parameter preset values of the second type registration parameters and the product type;
and determining the parameter preset value of the second type registration parameter corresponding to the activation mode of the equipment to be registered from the parameter preset values of the second type registration parameter corresponding to the product type of the equipment to be registered in different activation modes.
In some examples, when the active mode is the OTAA mode, the second type of registration parameter includes:
whether the equipment to be registered clears the downlink data temporarily stored in the message queue or not;
whether the equipment to be registered starts the self-adaptive data rate control or not;
whether the equipment to be registered starts the downlink rate adjustment or not;
the method comprises the steps that the timeout period of the equipment to be registered is used for determining whether the network state of the equipment to be registered is an offline state;
alternatively, the first and second electrodes may be,
when the activation mode is the ABP mode, the second type of registration parameters includes:
a device unique identifier of a device to be registered;
an application unique identifier of the device to be registered;
the device comprises an uplink counter, a network side and a network side, wherein the uplink counter is used for counting the number of frames sent to the Internet of things platform by the device to be registered;
the system comprises a downlink counter, a registration server and a registration server, wherein the downlink counter is used for counting the number of frames sent to a device to be registered by an Internet of things platform;
whether the equipment to be registered starts the self-adaptive data rate control or not;
whether the equipment to be registered starts the downlink rate adjustment or not.
A timeout period for the device to be registered.
It is understood that, in addition to the above parameters, the second type of registration parameters in the OTAA mode and the ABP mode may further include: the protocol version supported by the device to be registered, the frequency band of the device to be registered, the type of the device to be registered, and the like.
In the embodiment of the disclosure, the parameter preset value of the second type registration parameter of the device to be registered is determined according to the product type of the device to be registered and the activation mode determined based on the first type registration parameter of the device to be registered, and since the parameter value of the second type registration parameter can be preset, the terminal user does not need to input the parameter value of the second type registration parameter additionally, so that the complexity of the registration operation of the terminal user can be reduced, the user experience can be improved, the registration efficiency of the internet of things device can be improved, and the registration error can be reduced.
Next, the method provided by the embodiment of the present disclosure is further described with reference to fig. 5a to 5 e.
Fig. 5a shows a schematic diagram of a setting interface of the second type of registration parameters in the oat mode. As shown in fig. 5a, the second type of registration parameters in the oat mode may include: product name, registration mode, protocol version, RFRegion, Class-Type, ADR _ Switch, DownAndron, InitPurgeQueue, timeout period (minutes), and usage status. An internet of things equipment manufacturer or an internet of things equipment manager can set parameter values of the second type of registration parameters in the OATT mode for the internet of things equipment on the operation interface shown in FIG. 5 a.
Fig. 5b shows a schematic diagram of a setting interface of the second type of registration parameters in the ABP mode. As shown in fig. 5b, the second type of registration parameters in ABP mode may include: product name, registration mode, protocol version, RFRegion, FCntUp, FCntDn, Class-Type, ADR _ Switch, DownAndron, timeout period (minutes), and usage status. The manufacturer of the internet of things device or the manager of the internet of things device may set the parameter values of the second type of registration parameters in the ABP mode for the internet of things device on the operation interface shown in fig. 5 b.
Fig. 5c is a schematic interface diagram showing parameter values of the second type of registration parameters in different activation modes, wherein the registration mode is "a" for the oat mode and "O" for the ABP mode.
Fig. 5d shows an operation interface schematic diagram of a new product type of the internet of things platform. As shown in fig. 5d, when a lorawan technician creates a new product model on the platform of the internet of things, the lorawan technician selects a transmission protocol as "lorawan" and an access channel as "linkware access system", adds a product type identifier corresponding to the lorawan terminal to the product key, and can obtain parameter values of a second type of registration parameters associated with the product type in advance through the product type identifier.
Fig. 5e shows an interface schematic diagram of the registration operation for the device to be registered, and as shown in fig. 5e, when the registration mode of the oat is adopted, the user may input the device number (i.e., the device unique identifier DevEUI), the product model, appKEY and appui for the device to be registered (e.g., lora door magnet) on the display interface provided by the user terminal. Correspondingly, if the ABP registration mode is adopted, the user can input the device address DevAddr (8 bits), NwksKey (32 bits) and AppsKey (32 bits) for the device to be registered on the display interface provided by the user terminal. When the user terminal detects the setting operation for the device to be registered, the device registration request of the device to be registered is generated based on the setting operation for the device to be registered, the device registration request is sent to the internet of things platform, and then the internet of things platform executes the device registration method provided by the embodiment.
The embodiment of the present disclosure further provides an apparatus for registering a device, where the apparatus is applied to a platform of an internet of things, and as shown in fig. 6, the apparatus for registering a device may include:
a receiving module 601, configured to receive a device registration request; the device registration request carries the product type of the device to be registered and the parameter value of the first type of registration parameter, wherein the first type of registration parameter comprises: one or more parameters with different parameter values of different devices to be registered;
a determining module 602, configured to determine a second type of registration parameter of the device to be registered according to the product type; wherein the second type registration parameters include: one or more parameters with the same parameter value of different devices to be registered;
the response module 603 is configured to respond to the device registration request according to the parameter value of the first type registration parameter and the parameter preset value of the second type registration parameter.
In one embodiment, the determining module 602 is specifically configured to:
determining an activation mode of the equipment to be registered according to the first type of registration parameters;
and determining the parameter preset value of the second type of registration parameters of the equipment to be registered according to the product type and the determined activation mode.
In one embodiment, the activation mode includes: an over the air OTAA mode and a manual ABP mode.
In one embodiment, when the activation mode of the device to be registered is an over the air OTAA mode, the first type of registration parameter includes:
a device unique identifier of a device to be registered;
an application unique identifier of the device to be registered;
a root key of the device to be registered.
In one embodiment, when the activation mode of the device to be registered is the manually activated ABP mode, the first type of registration parameters includes:
the device address of the device to be registered;
a network session key of the device to be registered;
an application session key of the device to be registered.
In one embodiment, when the activation mode is an over the air activation OTAA mode, the second type of registration parameter includes:
whether the equipment to be registered clears the downlink data temporarily stored in the message queue or not;
whether the equipment to be registered starts the self-adaptive data rate control or not;
whether the equipment to be registered starts the downlink rate adjustment or not;
the method comprises the steps that the timeout period of the equipment to be registered is used for determining whether the network state of the equipment to be registered is an offline state;
alternatively, the first and second electrodes may be,
when the activation mode is the manual activation ABP mode, the second type of registration parameters includes:
a device unique identifier of a device to be registered;
an application unique identifier of the device to be registered;
the device comprises an uplink counter, a network side and a network side, wherein the uplink counter is used for counting the number of frames sent to the Internet of things platform by the device to be registered;
the system comprises a downlink counter, a registration server and a registration server, wherein the downlink counter is used for counting the number of frames sent to a device to be registered by an Internet of things platform;
whether the equipment to be registered starts the self-adaptive data rate control or not;
whether the equipment to be registered starts the downlink rate adjustment or not.
A timeout period for the device to be registered.
In one embodiment, the receiving module 601 is specifically configured to:
a device registration request is received based on the LoRAWAN long-range wireless communication protocol.
It should be noted that: in the device registration apparatus provided in the foregoing embodiment, when implementing the device registration method, only the division of each program module is taken as an example, and in practical applications, the above processing may be distributed to different program modules according to needs, that is, the internal structure of the device registration apparatus is divided into different program modules to complete all or part of the above-described processing. In addition, the apparatus provided by the above embodiment and the embodiment of the corresponding method belong to the same concept, and the specific implementation process thereof is described in the method embodiment, which is not described herein again.
FIG. 7 shows a schematic structural diagram of a computer device; as shown in fig. 7, the computer device 700 includes: a processor 701 and a memory 702 for storing a computer program capable of running on the processor; when the processor 701 is used for running the computer program, the following operations are executed:
receiving a device registration request; the device registration request carries the product type of the device to be registered and the parameter value of the first type of registration parameter, wherein the first type of registration parameter comprises: one or more parameters with different parameter values of different devices to be registered;
determining a second type of registration parameters of the equipment to be registered according to the product type; wherein the second type registration parameters include: one or more parameters with the same parameter value of different devices to be registered;
and responding to the equipment registration request according to the parameter values of the first type of registration parameters and the parameter preset values of the second type of registration parameters.
When the processor runs the computer program, corresponding processes in the methods of the embodiments of the present disclosure are implemented, and for brevity, are not described herein again.
In practice, the computer device 700 may further include: at least one network interface 703. The various components in the computer device 700 are coupled together by a bus system 704. It is understood that the bus system 704 is used to enable communications among the components. The bus system 704 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled in fig. 7 as the bus system 704. The number of the processors 701 may be at least one. The network interface 703 is used for wired or wireless communication between the computer device 700 and other devices.
The memory 702 in the disclosed embodiments is used to store various types of data to support the operation of the computer device 700.
The method disclosed by the embodiment of the present disclosure may be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 701. The Processor 701 may be a general purpose Processor, a DiGital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 701 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present disclosure. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present disclosure may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 702, and the processor 701 may read the information in the memory 702 and perform the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the computer Device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the foregoing methods.
The disclosed embodiments also provide a computer-readable storage medium having a computer program stored thereon; when the computer readable storage medium is applied to the device registration method, the computer program is executed by the processor to perform the following operations:
receiving a device registration request; the device registration request carries the product type of the device to be registered and the parameter value of the first type of registration parameter, wherein the first type of registration parameter comprises: one or more parameters with different parameter values of different devices to be registered;
determining a second type of registration parameters of the equipment to be registered according to the product type; wherein the second type registration parameters include: one or more parameters with the same parameter value of different devices to be registered;
and responding to the equipment registration request according to the parameter values of the first type of registration parameters and the parameter preset values of the second type of registration parameters.
When being executed by a processor, the computer program implements corresponding processes in the methods of the embodiments of the present disclosure, which are not described herein again for brevity.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of a unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present disclosure may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods of the embodiments of the present disclosure. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
It should be noted that: "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The technical means described in the embodiments of the present application may be arbitrarily combined without conflict.
The above is only a specific embodiment of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present disclosure, and shall be covered by the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. An equipment registration method is applied to an Internet of things platform and comprises the following steps:
receiving a device registration request; the device registration request carries the product type of the device to be registered and the parameter value of a first type of registration parameter, wherein the first type of registration parameter includes: one or more parameters different from the parameter value of the device to be registered;
determining a second type of registration parameters of the equipment to be registered according to the product type; wherein the second type registration parameters include: one or more parameters with the same parameter values of different devices to be registered;
and responding to the equipment registration request according to the parameter values of the first type of registration parameters and the parameter preset values of the second type of registration parameters.
2. The method according to claim 1, wherein the determining a second type of registration parameters of the device to be registered according to the product type comprises:
determining an activation mode of the equipment to be registered according to the first type of registration parameters;
and determining the parameter preset value of the second type of registration parameters of the equipment to be registered according to the product type and the determined activation mode.
3. The method of claim 2, wherein the activation mode comprises: an over the air OTAA mode and a manual ABP mode.
4. The method of claim 2,
when the activation mode of the device to be registered is an over the air activation OTAA mode, the first type of registration parameters include:
a device unique identifier of the device to be registered;
an application unique identifier of the device to be registered;
and the root key of the device to be registered.
5. The method of claim 2,
when the activation mode of the device to be registered is the manually activated ABP mode, the first type of registration parameters include:
the device address of the device to be registered;
a network session key of the device to be registered;
and the application session key of the device to be registered.
6. The method of claim 2,
when the activation mode is an over the air activation OTAA mode, the second type of registration parameters include:
whether the equipment to be registered clears the downlink data temporarily stored in the message queue or not;
whether the equipment to be registered starts the self-adaptive data rate control or not;
whether the equipment to be registered starts downlink rate adjustment or not;
a timeout period of the device to be registered, wherein the timeout period is used for determining whether a network state of the device to be registered is an offline state;
alternatively, the first and second electrodes may be,
when the activation mode is a manual activation ABP mode, the second type of registration parameters include:
a device unique identifier of the device to be registered;
an application unique identifier of the device to be registered;
an uplink counter, wherein the uplink counter is used for counting the number of frames sent to the platform of the internet of things by the device to be registered;
a downlink counter, wherein the downlink counter is used for counting the number of frames sent by the internet of things platform to the device to be registered;
whether the equipment to be registered starts the self-adaptive data rate control or not;
whether the equipment to be registered starts the downlink rate adjustment or not.
A timeout period of the device to be registered.
7. The method of any of claims 1 to 6, wherein receiving the device registration request comprises:
receiving the device registration request based on a LoRAWAN long-range wireless communication protocol.
8. The utility model provides an equipment registration device, its characterized in that is applied to thing networking platform, the device includes:
a receiving module, configured to receive a device registration request; the device registration request carries the product type of the device to be registered and the parameter value of a first type of registration parameter, wherein the first type of registration parameter includes: one or more parameters different from the parameter value of the device to be registered;
the determining module is used for determining a second type of registration parameters of the equipment to be registered according to the product type; wherein the second type registration parameters include: one or more parameters with the same parameter values of different devices to be registered;
and the response module is used for responding to the equipment registration request according to the parameter values of the first type of registration parameters and the parameter preset values of the second type of registration parameters.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the device registration method according to any one of claims 1 to 7 are implemented when the program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the device registration method according to any one of claims 1 to 7.
CN202111261957.8A 2021-10-28 2021-10-28 Device registration method, device and storage medium Active CN113965904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111261957.8A CN113965904B (en) 2021-10-28 2021-10-28 Device registration method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111261957.8A CN113965904B (en) 2021-10-28 2021-10-28 Device registration method, device and storage medium

Publications (2)

Publication Number Publication Date
CN113965904A true CN113965904A (en) 2022-01-21
CN113965904B CN113965904B (en) 2023-08-04

Family

ID=79468107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111261957.8A Active CN113965904B (en) 2021-10-28 2021-10-28 Device registration method, device and storage medium

Country Status (1)

Country Link
CN (1) CN113965904B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114885019A (en) * 2022-03-30 2022-08-09 ***通信有限公司研究院 Message service processing method, device, terminal, server and storage medium
CN116614228A (en) * 2023-06-08 2023-08-18 嵩山实验室 Internet of things terminal access registration method applied to power industry

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170353859A1 (en) * 2016-06-07 2017-12-07 Sears Brands, L.L.C. System and method for automatically and securely registering an internet of things device
CN108632231A (en) * 2017-03-24 2018-10-09 中移(杭州)信息技术有限公司 A kind of internet of things equipment, Internet of Things authentication platform, authentication method and system
US20200045546A1 (en) * 2017-11-03 2020-02-06 Huawei Technologies Co., Ltd. Internet of Things Communication Method, Apparatus, and System
CN111343156A (en) * 2020-02-11 2020-06-26 中国联合网络通信集团有限公司 Registration authentication method, server, terminal device and readable storage medium
US20200221293A1 (en) * 2017-09-26 2020-07-09 Samsung Electronics Co., Ltd. Network registration method of internet of things device, and device therefor
CN111479269A (en) * 2020-04-13 2020-07-31 中科芯集成电路有限公司 L ora node network access method capable of realizing synchronization
CN112073115A (en) * 2020-09-02 2020-12-11 东方红卫星移动通信有限公司 Lora-based low-orbit satellite Internet of things registration security verification method, Internet of things terminal, network server and user server
US20210004409A1 (en) * 2019-07-02 2021-01-07 International Business Machines Corporation Device recommendations based on device interactions in network
US20210099349A1 (en) * 2017-12-13 2021-04-01 Korea Electronics Technology Institute Iot network management method for managing lorawan-based large-scale facilities, and iot network server and terminal applying the same
CN112788150A (en) * 2021-01-25 2021-05-11 广东电网有限责任公司惠州供电局 Registration method, terminal device, block chain management screen platform and storage medium
CN113115435A (en) * 2021-03-12 2021-07-13 武汉慧联无限科技有限公司 Activation processing method, device, equipment and storage medium
CN113138562A (en) * 2021-06-22 2021-07-20 武汉慧联无限科技有限公司 Terminal control system and terminal control method based on Internet of things

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170353859A1 (en) * 2016-06-07 2017-12-07 Sears Brands, L.L.C. System and method for automatically and securely registering an internet of things device
CN108632231A (en) * 2017-03-24 2018-10-09 中移(杭州)信息技术有限公司 A kind of internet of things equipment, Internet of Things authentication platform, authentication method and system
US20200221293A1 (en) * 2017-09-26 2020-07-09 Samsung Electronics Co., Ltd. Network registration method of internet of things device, and device therefor
US20200045546A1 (en) * 2017-11-03 2020-02-06 Huawei Technologies Co., Ltd. Internet of Things Communication Method, Apparatus, and System
US20210099349A1 (en) * 2017-12-13 2021-04-01 Korea Electronics Technology Institute Iot network management method for managing lorawan-based large-scale facilities, and iot network server and terminal applying the same
US20210004409A1 (en) * 2019-07-02 2021-01-07 International Business Machines Corporation Device recommendations based on device interactions in network
CN111343156A (en) * 2020-02-11 2020-06-26 中国联合网络通信集团有限公司 Registration authentication method, server, terminal device and readable storage medium
CN111479269A (en) * 2020-04-13 2020-07-31 中科芯集成电路有限公司 L ora node network access method capable of realizing synchronization
CN112073115A (en) * 2020-09-02 2020-12-11 东方红卫星移动通信有限公司 Lora-based low-orbit satellite Internet of things registration security verification method, Internet of things terminal, network server and user server
CN112788150A (en) * 2021-01-25 2021-05-11 广东电网有限责任公司惠州供电局 Registration method, terminal device, block chain management screen platform and storage medium
CN113115435A (en) * 2021-03-12 2021-07-13 武汉慧联无限科技有限公司 Activation processing method, device, equipment and storage medium
CN113138562A (en) * 2021-06-22 2021-07-20 武汉慧联无限科技有限公司 Terminal control system and terminal control method based on Internet of things

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李彤;李博;常成;陈寒逸;: "LoRaWAN协议分析及安全性研究现状", 单片机与嵌入式***应用, no. 11 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114885019A (en) * 2022-03-30 2022-08-09 ***通信有限公司研究院 Message service processing method, device, terminal, server and storage medium
CN116614228A (en) * 2023-06-08 2023-08-18 嵩山实验室 Internet of things terminal access registration method applied to power industry
CN116614228B (en) * 2023-06-08 2024-03-08 嵩山实验室 Internet of things terminal access registration method and device applied to power industry

Also Published As

Publication number Publication date
CN113965904B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
CN103124267B (en) The method, system and the cloud server that log in/register is carried out by mobile terminal
CN103152331B (en) The method, system and the cloud server that log in/register is carried out by mobile terminal
US11641400B2 (en) Method and apparatus for secure passive wireless communication with Bluetooth vitals devices
CN105103497A (en) Application traffic pairing
CN113965904A (en) Device registration method, device and storage medium
CA2549223A1 (en) Wireless classroom response system
CN108712485A (en) A kind of resource subscription method and apparatus of internet of things equipment
WO2011076011A1 (en) Method, system for defining message in machine-to-machine platform, and machine-to-machine platform
CN108337308B (en) Data communication method, device and system for LWM2M client and upper computer
CN109921915A (en) Test the method, apparatus and electronic equipment of real-time clock module arousal function
CN112423322B (en) Model information sending method, device, storage medium and electronic device
CN111263377B (en) Network configuration method, device, equipment and system and distribution network testing method and system
CN109842515B (en) Method for multi-device network distribution, server and computer storage medium
US20160029214A1 (en) Home control gateway and home control network connection method thereof
CN112566078A (en) Device connection method and apparatus, storage medium, and electronic apparatus
TW201635760A (en) Home control gateway and home control method thereof
WO2018032573A1 (en) Data processing method, apparatus, server and terminal
CN112817248B (en) Shared equipment management method and device, storage medium and electronic device
CN111884938B (en) Router information acquisition method and device
CN114222255B (en) Method and device for device ad hoc network, electronic device and storage medium
CN108605222A (en) Method, the system for being used for transmission supplemental characteristic, telecommunication terminal equipment, computer program and the computer program product for being used for transmission supplemental characteristic for the configured transmission data between telecommunication network and telecommunication terminal equipment and for activating and/or changing and/or deactivate the communication configuration file for limiting or indicating by supplemental characteristic on telecommunication terminal equipment
CN105446803A (en) Application management method and apparatus
CN113132333B (en) Networking login method, household appliance equipment, household appliance system and storage medium
CN115103359A (en) Network distribution method and device, network to be distributed equipment, electronic device and readable storage medium
CN113132332B (en) Networking login method, household electrical appliance system and 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