CN108667950B - Method and device for obtaining device identification - Google Patents

Method and device for obtaining device identification Download PDF

Info

Publication number
CN108667950B
CN108667950B CN201810246958.7A CN201810246958A CN108667950B CN 108667950 B CN108667950 B CN 108667950B CN 201810246958 A CN201810246958 A CN 201810246958A CN 108667950 B CN108667950 B CN 108667950B
Authority
CN
China
Prior art keywords
module
equipment
iot module
iot
identifier
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.)
Active
Application number
CN201810246958.7A
Other languages
Chinese (zh)
Other versions
CN108667950A (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.)
Hisense Co Ltd
Original Assignee
Hisense 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 Hisense Co Ltd filed Critical Hisense Co Ltd
Priority to CN201810246958.7A priority Critical patent/CN108667950B/en
Publication of CN108667950A publication Critical patent/CN108667950A/en
Priority to PCT/CN2018/111251 priority patent/WO2019179093A1/en
Application granted granted Critical
Publication of CN108667950B publication Critical patent/CN108667950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • H04L61/2553Binding renewal aspects, e.g. using keep-alive messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5076Update or notification mechanisms, e.g. DynDNS

Abstract

The invention discloses a method and equipment for acquiring an equipment identifier, which are used for solving the problems that an upgrading production line is required to be modified, equipment written with the equipment identifier is purchased and an equipment identifier writing procedure is increased when the equipment identifier is acquired, so that the productivity is reduced. The NB-IoT module judges whether the device identification of the target device can be acquired from the target device to be controlled, if the device identification of the target device cannot be acquired from the target device to be controlled, the module identification of the NB-IoT module is sent to the network side, the device identification which is stored by the network side and is bound with the module identification of the NB-IoT module is returned to the NB-IoT module by the network side, and the NB-IoT module takes the received device identification as the device identification of the target device to be controlled by the NB-IoT module. The device identification of the target device is obtained from the network side through the NB-IoT module, so that the device identification does not need to be obtained in the production process, and the productivity is improved.

Description

Method and device for obtaining device identification
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method and a device for obtaining a device identifier.
Background
The traditional equipment does not need to communicate with the outside, and usually, the equipment identifier is adhered to the surface of the equipment in the form of a label, so that the requirements of equipment management or equipment tracing and the like are met.
The traditional equipment does not need to be communicated with the outside, so that an equipment identifier does not need to be arranged in the equipment, and the equipment identifier is usually adhered to the surface of the equipment in a label mode so as to meet the requirements of equipment management or equipment tracing and the like, so that corresponding equipment identifier writing stations, tools and production rhythm control are not arranged in the production process flow.
With the continuous development of scientific technology, intelligent devices embedding communication modules into traditional devices are becoming more and more common. After the intelligent management is added to the device, a unique device identifier needs to be written into the device, so that the intelligent device can communicate with the outside.
At present, if equipment identification is written in the production process, the existing production line needs to be upgraded and modified, equipment identification writing equipment needs to be added, and equipment identification writing procedures need to be added, so that the productivity is reduced.
Disclosure of Invention
The invention provides a method and a device for acquiring an equipment identifier, which are used for solving the problems that in the prior art, when the equipment identifier is written, an upgrading production line needs to be improved, equipment identifier writing equipment needs to be purchased, and equipment identifier writing procedures need to be added, so that the productivity is reduced.
In a first aspect, a method for obtaining an apparatus identifier provided in an embodiment of the present invention includes: an NB-IoT (NarrowBand band-Internet Of Things) module judges whether the device identification Of the target device can be obtained from the target device to be controlled; if the equipment identification of the target equipment cannot be acquired from the target equipment needing to be controlled, the NB-IoT module sends the module identification of the NB-IoT module to a network side; the NB-IoT module receives the equipment identification which is returned by the network side and is bound with the module identification; the NB-IoT module takes the received equipment identification as the equipment identification of the target equipment.
In the method, the NB-IoT module determines whether the device identifier of the target device can be obtained from the target device to be controlled, and if the device identifier of the target device cannot be obtained from the target device to be controlled, the NB-IoT module sends the module identifier of the NB-IoT module to the network side, the network side returns the device identifier bound with the module identifier of the NB-IoT module, which is stored in the network side, to the NB-IoT module, and the NB-IoT module uses the received device identifier as the device identifier of the target device to be controlled by the NB-IoT module. The device identification of the target device is obtained from the network side through the NB-IoT module, so that the device identification does not need to be obtained in the production process, and a large amount of funds are saved while the productivity is improved.
In one possible implementation, the NB-IoT module sends the received device identifier and the module identifier of the NB-IoT module to the target device.
In the possible implementation manner, the target device receives the device identifier and the module identifier, and the corresponding relationship between the device identifier and the module identifier is implemented, so that the target device and the NB-IoT module are bound.
In a possible implementation manner, the NB-IoT module can obtain the device identifier of the target device from the target device to be controlled, and after determining that the NB-IoT module bound to the target device is replaced, send the module identifier of the NB-IoT module and the device identifier of the target device to a network side, so that the network side updates the binding relationship between the module identifier and the device identifier.
In the possible implementation manner, the NB-IoT module can obtain the device identifier from the target device, and if it is determined that the NB-IoT module bound to the target device is replaced, the module identifier of the NB-IoT module and the device identifier of the target device are sent to the network side, so that the network side updates the binding relationship between the module identifier and the device identifier. Because the network side stores the binding relationship between the module identifier and the device identifier before the NB-IoT module is replaced, the binding relationship between the module identifier and the device identifier stored in the network side needs to be updated after the NB-IoT module is changed.
In one possible implementation manner, if the NB-IoT module cannot acquire the device identifier bound to the module identifier from the NB-IoT module, it is determined that the NB-IoT module bound to the target device is replaced; or if the module identification bound by the equipment identification acquired by the NB-IoT module from the target equipment is different from the module identification of the NB-IoT module, determining that the NB-IoT module bound with the target equipment is replaced; or if the device identification acquired by the NB-IoT module from the target device is different from the device identification stored in the NB-IoT module, determining that the NB-IoT module bound with the target device is replaced.
The above possible implementation manners list three cases of determining that the NB-IoT module bound to the target device is replaced.
In a possible implementation manner, the NB-IoT module can obtain the device identifier of the target device from the target device to be controlled, and send the module identifier of the NB-IoT module to the target device after determining that the NB-IoT module bound to the target device is replaced.
In the possible implementation manner, the NB-IoT module can obtain the device identifier of the target device, and determine that the NB-IoT module bound to the target device is replaced, then send the module identifier of the NB-IoT module to the target device, and the module identifier of the NB-IoT module and the device identifier in the target device implement a corresponding relationship, so as to implement the binding between the NB-IoT module and the target device.
In a second aspect, an embodiment of the present invention further provides an NB-IoT module, including: at least one processing unit and at least one memory unit, wherein the memory unit stores program code that, when executed by the processing unit, causes the processing unit to perform the functions of the embodiments of the first aspect described above.
In a third aspect, an embodiment of the present invention further provides an apparatus, where a processing unit in the apparatus includes any one of the NB-IoT modules provided in the embodiment of the present invention, and the apparatus has a function of implementing the embodiments of the first aspect.
In addition, for technical effects brought by any one implementation manner of the second aspect and the third aspect, reference may be made to technical effects brought by different implementation manners of the first aspect, and details are not described here.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a method for acquiring a device identifier according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a relationship between a device ID and a module ID according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a first method for completing obtaining an equipment identifier according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a second method for completing obtaining an equipment identifier according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an NB-IoT module according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a device structure for acquiring a device identifier according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
With the continuous development of science and technology, the technology of internet of things is gradually and widely applied to various industries, plays more and more important roles in the fields of production and manufacturing, smart home, traffic logistics, automobiles and the like, and the world of interconnection of everything is and rapidly goes into our lives.
For example, in the field of smart home, smart home devices in a home are widely managed and configured through smart home applications. Different from the traditional equipment, the intelligent equipment is additionally provided with a communication module, and the communication between the communication module and the server is utilized, so that the remote control of the equipment is realized. For example, in order to implement intelligent management of air conditioners, a unique device ID needs to be written into each air conditioner as a device identifier, when a user uses a smart home application on a mobile phone, the device ID of the air conditioner needs to be used as a unique binding identifier to bind an application program and the air conditioner, and after the application program and the air conditioner are bound, the air conditioner can be managed.
Binding the application program and the device identifier requires acquiring the device identifier.
The embodiment of the invention acquires the equipment identifier through the NB-IoT module embedded in the equipment.
The NB-IoT is a narrowband Internet of things and has the characteristics of wide coverage, more connections, high speed, low cost, low power consumption, excellent architecture and the like.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
As shown in fig. 1, a method for obtaining a device identifier provided in an embodiment of the present invention specifically includes the following steps:
s100, judging whether the device identification of the target device can be acquired from the target device needing to be controlled by an NB-IoT module;
s101, if the equipment identification of the target equipment cannot be acquired from the target equipment needing to be controlled, the NB-IoT module sends the module identification of the NB-IoT module to a network side;
s102, the NB-IoT module receives the equipment identification which is returned by the network side and is bound with the module identification;
s103, the NB-IoT module takes the received equipment identification as the equipment identification of the target equipment.
The NB-IoT module judges whether the device identification of the target device can be acquired from the target device to be controlled, if the device identification of the target device cannot be acquired from the target device to be controlled, the module identification of the NB-IoT module is sent to the network side, the device identification which is stored by the network side and is bound with the module identification of the NB-IoT module is returned to the NB-IoT module by the network side, and the NB-IoT module takes the received device identification as the device identification of the target device to be controlled by the NB-IoT module. The device identification of the target device is obtained from the network side through the NB-IoT module, so that the device identification does not need to be obtained in the production process, and the production is improved while a large amount of funds are saved.
The equipment in the embodiment of the invention can be an intelligent air conditioner, an intelligent television, an intelligent refrigerator and the like, and all the equipment which can be controlled by the NB-IoT module is suitable for the embodiment of the invention.
The module ID of the NB-IoT module is taken as an example, and the equipment ID is taken as an example to describe the present invention.
In implementation, the module ID is already written into the NB-IoT module when the NB-IoT module is produced, but there is a possibility that the NB-IoT module does not have a device ID in the devices that need to be controlled, so the device ID is obtained.
Firstly, in the production process of the equipment, recording the corresponding relation between the equipment ID and the module ID distributed to the equipment, and then uploading the corresponding relation to a specified server, wherein if the corresponding relation between the equipment ID and the module ID exists, the equipment ID information of the equipment does not need to be scanned and recorded, and only the equipment ID label needs to be printed and then pasted on the equipment. As shown in fig. 2, the specific steps are as follows:
200, entering an equipment ID label pasting station after the equipment function check is finished;
step 201, scanning and recording module ID information of an NB-IoT module;
step 202, judging whether an equipment ID information label of the terminal equipment exists, if so, executing step 203, otherwise, executing step 205;
step 203, scanning and inputting the ID information of the label of the existing terminal equipment;
step 204, establishing a corresponding relation between the module ID and the equipment ID, and sending the corresponding relation to a specified server;
step 205, printing the device ID tag;
step 206, pasting an equipment ID label on the terminal equipment;
and step 207, packaging and warehousing the terminal equipment.
The method comprises the steps that the corresponding relation between a module ID and an equipment ID is established in the production process of equipment and uploaded to a designated server, the equipment is powered on and started up for the first time after leaving a factory, an NB-IoT module and the equipment establish communication, the NB-IoT module reads equipment ID information and binding information of the equipment, wherein the binding information of the equipment is the module ID information of the NB-IoT module which is bound with the equipment last time, the NB-IoT module reads module binding information in the NB-IoT module, and the module binding information is the equipment ID information of the equipment which is bound with the last time.
When the NB-IoT module reads information in the device and the NB-IoT module, there are three cases, which are the first binding of the device and the NB-IoT module, the replacement of the motherboard in the device, and the replacement of the NB-IoT module, respectively, and the following description is provided for the three cases.
Scene one, primary binding of equipment and NB-IoT module:
the equipment is powered on and started for the first time, the NB-IoT module firstly reads equipment ID information and binding information of the equipment in the equipment, then module binding information in the NB-IoT module is read, if the equipment does not have the equipment ID information and the binding information of the equipment, and the NB-IoT module does not have the module binding information, the equipment and the NB-IoT module are determined to be bound for the first time, and at the moment, the NB-IoT module sends the module ID of the NB-IoT module to the network side equipment.
In the production process, the corresponding relation between the equipment ID and the module ID is uploaded to a specified server, namely, the network side equipment, so that when the NB-IoT module sends the module ID of the NB-IoT module to the network side equipment, the network side equipment sends the equipment ID corresponding to the module ID of the NB-IoT module, which is stored in the network side equipment, to the NB-IoT module.
And the NB-IoT module receives the equipment identification which is returned by the network side and is bound with the module identification.
Since the device ID returned by the network-side device is the device ID stored in the network-side device and corresponding to the module ID of the NB-IoT module, the received device ID is the target device ID, that is, the device ID of the device that the NB-IoT module needs to control.
For example, in the process of producing the device, the device ID assigned to the device is A, B, C, the module ID of the NB-IoT module is D, E, F, and the correspondence between the device ID and the module ID assigned to the device is recorded as: a corresponds to D, B corresponds to E, C corresponds to F, if the NB-IoT module with the module ID of D does not read the equipment ID from the equipment, the NB-IoT module sends the module D to the network side, the equipment of the network side inquires that the equipment ID corresponding to D is A, and the A is returned to the NB-IoT module.
And after the NB-IoT module receives the equipment ID, the equipment ID and the module ID are sent to the target equipment.
Optionally, the NB-IoT module sends the received device identifier and the module identifier of the NB-IoT module to the target device.
And after receiving the module ID and the equipment ID sent by the NB-IoT module, the target equipment writes the equipment ID into the equipment and stores the equipment ID and the module ID in the equipment.
Scene two, main board replacement in the equipment:
the equipment is powered on and started for the first time, the NB-IoT module firstly reads equipment ID information and binding information of the equipment, then module binding information in the NB-IoT module is read, if the equipment does not have the equipment ID information and the binding information of the equipment, and the NB-IoT module has the module binding information, the mainboard in the equipment is determined to be replaced, at the moment, the NB-IoT module communicates with the network side equipment, and the module ID of the NB-IoT module is sent to the network side equipment.
In the production process, the corresponding relation between the equipment ID and the module ID is uploaded to a specified server, namely, the network side equipment, so that when the NB-IoT module sends the module ID of the NB-IoT module to the network side equipment, the network side equipment sends the equipment ID corresponding to the module ID of the NB-IoT module, which is stored in the network side equipment, to the NB-IoT module.
And the NB-IoT module receives the equipment identification which is returned by the network side and is bound with the module identification.
Since the device ID returned by the network-side device is the device ID stored in the network-side device and corresponding to the module ID of the NB-IoT module, the received device ID is the target device ID, that is, the device ID of the device that the NB-IoT module needs to control.
And after the NB-IoT module receives the equipment ID, the equipment ID and the module ID are sent to the target equipment.
Optionally, the NB-IoT module sends the received device identifier and the module identifier of the NB-IoT module to the target device.
And after receiving the module ID and the equipment ID sent by the NB-IoT module, the target equipment writes the equipment ID into the equipment and stores the equipment ID and the module ID in the equipment.
Scene three, the NB-IoT module is replaced:
if the NB-IoT module reads the equipment ID information, the equipment ID information can be read, but the module ID information stored in the equipment is different from the module ID information of the NB-IoT module, or the module ID information stored in the equipment read by the NB-IoT module from the equipment is different from the module ID information of the NB-IoT module, or the equipment ID information is not stored in the NB-IoT module, the NB-IoT module is judged to be replaced at the moment.
Optionally, if the NB-IoT module cannot obtain the device identifier bound to the module identifier from the NB-IoT module, determining that the NB-IoT module bound to the target device is replaced; or
If the module identification bound by the equipment identification acquired by the NB-IoT module from the target equipment is different from the module identification of the NB-IoT module, determining that the NB-IoT module bound with the target equipment is replaced; or
And if the device identification acquired by the NB-IoT module from the target device is different from the device identification stored in the NB-IoT module, determining that the NB-IoT module bound with the target device is replaced.
When the NB-IoT module and the device are bound, the network-side device returns device ID information corresponding to the module ID information of the NB-IoT module to the NB-IoT module, the NB-IoT module stores the device ID information and sends the device ID information and the module ID information of the NB-IoT module to the device, and the device writes the received device ID information into the device and stores the device ID information and the module ID information of the NB-IoT module.
For example, if the device with device ID information a is bound with the NB-IoT module with module ID information B, the ID information written in the device is a, the device ID information stored in the device is a, the stored module ID information is B, and the device ID information stored in the NB-IoT module is a.
In implementation, the device is powered on for the first time, the NB-IoT module first reads the device ID information and the module ID information stored in the device from the device, and then reads the device ID information stored in the NB-IoT module.
The module ID information stored in the device is the module ID information of the NB-IoT module that was last bound to the device, and if the module ID information stored in the device is null information, it indicates that the device has not been bound to the NB-IoT module.
The device ID information stored in the NB-IoT module is the device ID information of the device that was last bound to the NB-IoT module, and if the device ID information stored in the NB-IoT module is null information, it indicates that the NB-IoT module has not been bound to the device.
If the device ID information in the device read by the NB-IoT module is not consistent with the device ID information stored in the NB-IoT module, the NB-IoT module is replaced.
For example, if the device ID information in the device read by the NB-IoT module is a and the device ID information stored in the NB-IoT module is B, it indicates that the device bound to the NB-IoT module last time is a device whose device ID information is B, so it is determined that the NB-IoT module in the device whose device ID information is a has been replaced.
If the module ID information stored in the equipment read by the NB-IoT module is not consistent with the module ID information of the NB-IoT module, the NB-IoT module is replaced.
For example, if the module ID information stored in the device read by the NB-IoT module is C and the module ID information of the NB-IoT module is D, it indicates that the NB-IoT module last bound to the device is the NB-IoT module whose module ID information is C, so that it is determined that the NB-IoT module in the device has been replaced and the module ID information of the replaced NB-IoT module is D.
If the NB-IoT module read has no equipment ID information, the NB-IoT module can be also indicated to be replaced.
The NB-IoT module can read the equipment ID information of the equipment and the module ID information stored in the equipment, so that the equipment is bound, and if the NB-IoT module in the equipment does not have the equipment ID information, the NB-IoT module is not bound, so that the NB-IoT module in the equipment is determined to be replaced.
The NB-IoT module can read the device ID from the device and can determine that the NB-IoT module in the device is replaced, and the binding relationship information of the device ID and the module ID stored on the network side needs to be updated.
Optionally, the NB-IoT module may obtain the device identifier of the target device from the target device to be controlled, and send the module identifier of the NB-IoT module and the device identifier of the target device to a network side after determining that the NB-IoT module bound to the target device is replaced, so that the network side updates the binding relationship between the module identifier and the device identifier.
For example, in the production process, if the device with the device ID information of a and the NB-IoT module with the module ID information of B establish a binding relationship, the binding relationship stored in the remote server is that a corresponds to B, and if the NB-IoT module in the device is replaced and the replaced module ID information is C, the corresponding relationship between a and B in the remote server should be updated to a and C.
The specific updating mode is that the NB-IoT module sends the module ID information C and the equipment ID information A to the network side equipment, the network side equipment inquires the module ID information B corresponding to the equipment ID information A and stored in the network side equipment according to the equipment ID information A, the module ID information B is replaced by the module ID information C, and the corresponding relation between the module ID information of the NB-IoT module and the equipment ID information in the server is completed.
And after the network side updates the binding relationship between the module identification and the equipment identification, the NB-IoT module sends the module identification of the NB-IoT module to the target equipment.
Optionally, the NB-IoT module may obtain the device identifier of the target device from the target device that needs to be controlled, and send the module identifier of the NB-IoT module to the target device after determining that the NB-IoT module bound to the target device is replaced.
And after the target equipment receives the module identification sent by the NB-IoT module, storing the received module identification into the equipment, and deleting the module identification of the NB-IoT module which is stored in the equipment and is bound with the equipment last time.
As shown in fig. 3, a first method for obtaining a device identifier according to an embodiment of the present invention includes:
step 300, the NB-IoT module reads equipment ID information and binding information of the equipment in the equipment, wherein the binding information of the equipment is the module ID information of the NB-IoT module bound last time;
301, the NB-IoT module reads module binding information stored in the module, wherein the module binding information is device ID information of a device bound last time;
step 302, judging whether the NB-IoT module can read the equipment ID information from the equipment, if so, executing step 303, otherwise, executing step 310;
step 303, the device and the NB-IoT module are primarily bound or the motherboard of the device is replaced;
step 304, the NB-IoT module communicates with a remote server and sends module ID information of the NB-IoT module to the remote server;
step 305, the remote server inquires the equipment ID information corresponding to the module ID information stored in the remote server according to the module ID information sent by the NB-IoT module;
step 306, the remote server sends the queried equipment ID information to the NB-IoT module;
step 307, after receiving the device ID information sent by the remote server, the NB-IoT module sends the received device ID information and the module ID information of the NB-IoT module to the target device that the NB-IoT module needs to control;
step 308, after the target device receives the device ID information and the module ID information sent by the NB-IoT module, writing the device ID information into the device, and storing the module ID information;
step 309, the NB-IoT module stores the received device ID information, and performs step 315;
step 310, if the device ID information in the device read by the NB-IoT module is different from the device ID information stored in the NB-IoT module, or the module ID information stored in the device read by the NB-IoT module is different from the module ID information of the NB-IoT module, or no device ID information exists in the NB-IoT module, the module is judged to be replaced;
311, the NB-IoT module communicates with a remote server, and sends the device ID information read by the NB-IoT module and the module ID information of the NB-IoT module to the remote server;
step 312, the remote server queries module ID information corresponding to the device ID information stored in the remote server, replaces the module ID information stored in the remote server with the received module ID information of the NB-IoT module sent by the NB-IoT module, and stores the module ID information;
313, the NB-IoT module sends module ID information of the NB-IoT module to the target device, and updates the binding information stored in the target device to the received module ID information of the NB-IoT module;
step 314, the NB-IoT module updates the binding information in the NB-IoT module to the device ID information read by the NB-IoT module;
and step 315, finishing the binding operation.
As shown in fig. 4, a second method for acquiring a device identifier according to a second embodiment of the present invention includes:
step 400, the NB-IoT module reads the device ID information and the binding information of the device;
step 401, the NB-IoT module reads module binding information stored in the module;
step 402, judging whether the NB-IoT module and the equipment are primarily bound, if so, executing step 405, otherwise, executing step 403;
step 403, judging whether the main board in the equipment is replaced, if so, executing step 405, otherwise, executing step 404;
step 404, determining whether a module in the device is replaced, if yes, executing step 411, otherwise, executing step 415;
step 405, the NB-IoT module communicates with a remote server and sends module ID information of the NB-IoT module to the remote server;
step 406, the remote server queries the equipment ID information corresponding to the module ID information stored in the remote server according to the module ID information sent by the NB-IoT module;
step 407, the remote server sends the queried device ID information to the NB-IoT module;
step 408, after receiving the device ID information sent by the remote server, the NB-IoT module sends the received device ID information and the module ID information of the NB-IoT module to the target device that the NB-IoT module needs to control;
step 409, after receiving the equipment ID information and the module ID information sent by the NB-IoT module, the target equipment writes the equipment ID information into the equipment and stores the module ID information;
step 410, the NB-IoT module stores the received device ID information, and performs step 415;
step 411, the NB-IoT module communicates with the remote server, and sends the device ID information read by the NB-IoT module and the module ID information of the NB-IoT module to the remote server;
step 412, the remote server queries module ID information corresponding to the equipment ID information stored in the remote server, replaces the module ID information stored in the remote server with the received module ID information of the NB-IoT module, and stores the module ID information;
step 413, the NB-IoT module sends the module ID information of the NB-IoT module to the target device, and updates the binding information stored in the target device to the received module ID information of the NB-IoT module;
step 414, the NB-IoT module updates the binding information in the NB-IoT module to the device ID information read by the NB-IoT module;
step 415, the binding operation is completed.
Based on the same inventive concept, the embodiment of the present invention further provides a device for acquiring a device identifier, and since the principle of the device for solving the problem is similar to the method for acquiring the device identifier in the embodiment of the present invention, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 5, an NB-IoT module provided in an embodiment of the present invention includes: at least one processing unit 500, and at least one memory unit 501, wherein the memory unit 501 stores program code that, when executed by the processing unit 500, causes the processing unit 500 to perform the following:
judging whether the device identification of the target device can be acquired from the target device to be controlled; if the equipment identification of the target equipment cannot be acquired from the target equipment needing to be controlled, sending the module identification of the NB-IoT module to a network side; receiving the equipment identifier bound with the module identifier returned by the network side; and taking the received equipment identification as the equipment identification of the target equipment.
Optionally, the processing unit 500 is further configured to:
and sending the received equipment identification and the module identification of the NB-IoT module to the target equipment.
Optionally, the processing unit 500 is further configured to:
the method comprises the steps that after the device identification of target equipment can be obtained from the target equipment needing to be controlled and an NB-IoT module bound with the target equipment is determined to be replaced, the module identification of the NB-IoT module and the device identification of the target equipment are sent to a network side, so that the network side updates the binding relationship between the module identification and the device identification.
Optionally, the processing unit 500 is specifically configured to:
if the equipment identifier bound with the module identifier cannot be acquired from the NB-IoT module, determining that the NB-IoT module bound with the target equipment is replaced; or if the module identification bound with the equipment identification acquired from the target equipment is different from the module identification of the NB-IoT module, determining that the NB-IoT module bound with the target equipment is replaced; or if the device identification acquired from the target device is different from the device identification stored in the NB-IoT module, determining that the NB-IoT module bound with the target device is replaced.
Optionally, the processing unit 500 is further configured to:
the method comprises the steps of obtaining an equipment identifier of target equipment from the target equipment to be controlled, and sending the module identifier of the NB-IoT module to the target equipment after determining that the NB-IoT module bound with the target equipment is replaced.
Based on the same inventive concept, the embodiment of the present invention further provides a device for acquiring a device identifier, and since the principle of the device for solving the problem is similar to the method for acquiring the device identifier in the embodiment of the present invention, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 6, an apparatus for obtaining an apparatus identifier according to an embodiment of the present invention further includes a sending module 600, a receiving module 601, and a determining module 602:
the sending module 600: the system comprises an NB-IoT module and a network side, wherein the NB-IoT module is used for sending a module identification of the NB-IoT module to the network side after the device identification of a target device cannot be acquired from the target device to be controlled;
the receiving module 601: the equipment identifier is used for receiving the equipment identifier which is returned by the network side and is bound with the module identifier;
the determination module 602: for using the received device identifier as the device identifier of the target device.
Optionally, the sending module 600 is further configured to:
and sending the received equipment identification and the module identification of the NB-IoT module to the target equipment.
Optionally, the sending module 600 is further configured to:
the method comprises the steps that after the device identification of target equipment can be obtained from the target equipment needing to be controlled and an NB-IoT module bound with the target equipment is determined to be replaced, the module identification of the NB-IoT module and the device identification of the target equipment are sent to a network side, so that the network side updates the binding relationship between the module identification and the device identification.
Optionally, the determining module 602 is specifically configured to:
if the equipment identifier bound with the module identifier cannot be acquired from the NB-IoT module, determining that the NB-IoT module bound with the target equipment is replaced; or if the module identification bound with the equipment identification acquired from the target equipment is different from the module identification of the NB-IoT module, determining that the NB-IoT module bound with the target equipment is replaced; or if the device identification acquired from the target device is different from the device identification stored in the NB-IoT module, determining that the NB-IoT module bound with the target device is replaced.
Optionally, the sending module 600 is further configured to:
the method comprises the steps of obtaining an equipment identifier of target equipment from the target equipment to be controlled, and sending the module identifier of the NB-IoT module to the target equipment after determining that the NB-IoT module bound with the target equipment is replaced.
Based on the same inventive concept, the embodiment of the present invention further provides a device for acquiring a device identifier, and since the principle of the device for solving the problem is similar to the method for acquiring the device identifier in the embodiment of the present invention, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
The embodiment of the invention also provides equipment, and a processing unit in the equipment comprises any one of the NB-IoT modules provided by the embodiment of the invention.
An embodiment of the present invention further provides a computer-readable non-volatile storage medium, which includes a program code, and when the program code runs on a computing device, the program code is configured to enable the computing device to execute the steps of the method for acquiring a device identifier according to the embodiment of the present invention.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the application. It will be understood that one block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the subject application may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (6)

1. A method for obtaining a device identifier, the method comprising:
the method comprises the steps that a narrowband Internet of things NB-IoT module judges whether a device identifier of a target device can be acquired from the target device needing to be controlled;
if the equipment identification of the target equipment cannot be acquired from the target equipment needing to be controlled, the NB-IoT module sends the module identification of the NB-IoT module to a network side;
the NB-IoT module receives the equipment identification which is returned by the network side and is bound with the module identification;
the NB-IoT module takes the received equipment identification as the equipment identification of the target equipment;
the NB-IoT module can acquire the equipment identifier of target equipment from the target equipment to be controlled, and after the NB-IoT module bound with the target equipment is determined to be replaced, the module identifier of the NB-IoT module and the equipment identifier of the target equipment are sent to a network side, so that the network side updates the binding relationship between the module identifier and the equipment identifier;
the NB-IoT module determining that the NB-IoT module bound with the target device is replaced, comprising:
if the NB-IoT module cannot acquire the equipment identifier bound with the module identifier from the NB-IoT module, determining that the NB-IoT module bound with the target equipment is replaced; or
If the module identification bound by the equipment identification acquired by the NB-IoT module from the target equipment is different from the module identification of the NB-IoT module, determining that the NB-IoT module bound with the target equipment is replaced; or
If the device identification acquired by the NB-IoT module from the target device is different from the device identification stored in the NB-IoT module, determining that the NB-IoT module bound with the target device is replaced;
if the NB-IoT module can read the equipment identifier of the equipment and the module identifier stored in the equipment, determining that the target equipment is bound, and if the NB-IoT module does not have the equipment identifier, determining that the NB-IoT module is not bound; and determining that the NB-IoT module is replaced according to the binding of the target equipment and the non-binding of the NB-IoT module.
2. The method of claim 1, wherein after the NB-IoT module receives the device identifier bound with the module identifier returned by the network side, the method further comprises:
the NB-IoT module sends the received equipment identification and the module identification of the NB-IoT module to the target equipment.
3. The method of claim 1, further comprising:
the NB-IoT module can acquire the equipment identifier of the target equipment from the target equipment to be controlled, and sends the module identifier of the NB-IoT module to the target equipment after determining that the NB-IoT module bound with the target equipment is replaced.
4. A narrowband Internet of things (NB-IoT) module, the module comprising: at least one processing unit and at least one memory unit, wherein the memory unit stores program code that, when executed by the processing unit, causes the processing unit to perform the following:
judging whether the device identification of the target device can be acquired from the target device to be controlled; if the equipment identification of the target equipment cannot be acquired from the target equipment needing to be controlled, sending the module identification of the NB-IoT module to a network side; receiving the equipment identifier bound with the module identifier returned by the network side; taking the received device identifier as the device identifier of the target device;
the processing unit is further to:
after an equipment identifier of target equipment can be acquired from the target equipment to be controlled and an NB-IoT module bound with the target equipment is determined to be replaced, sending the module identifier of the NB-IoT module and the equipment identifier of the target equipment to a network side so that the network side updates the binding relationship between the module identifier and the equipment identifier;
the processing unit is specifically configured to:
if the equipment identifier bound with the module identifier cannot be acquired from the NB-IoT module, determining that the NB-IoT module bound with the target equipment is replaced; or if the module identification bound with the equipment identification acquired from the target equipment is different from the module identification of the NB-IoT module, determining that the NB-IoT module bound with the target equipment is replaced; or if the device identification acquired from the target device is different from the device identification stored in the NB-IoT module, determining that the NB-IoT module bound with the target device is replaced; or the NB-IoT module can read the equipment identifier of the equipment and the module identifier stored in the equipment, determining that the target equipment is bound, and determining that the NB-IoT module is not bound if the NB-IoT module does not have the equipment identifier; and determining that the NB-IoT module is replaced according to the binding of the target equipment and the non-binding of the NB-IoT module.
5. The module of claim 4, wherein the processing unit is further to:
and sending the received equipment identification and the module identification of the NB-IoT module to the target equipment.
6. An apparatus, characterized in that the processing unit comprises the narrowband internet of things (NB-IoT) module of any of claims 4 to 5.
CN201810246958.7A 2018-03-23 2018-03-23 Method and device for obtaining device identification Active CN108667950B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810246958.7A CN108667950B (en) 2018-03-23 2018-03-23 Method and device for obtaining device identification
PCT/CN2018/111251 WO2019179093A1 (en) 2018-03-23 2018-10-22 Method for obtaining device identifier in nb-iot, and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810246958.7A CN108667950B (en) 2018-03-23 2018-03-23 Method and device for obtaining device identification

Publications (2)

Publication Number Publication Date
CN108667950A CN108667950A (en) 2018-10-16
CN108667950B true CN108667950B (en) 2021-12-21

Family

ID=63782509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810246958.7A Active CN108667950B (en) 2018-03-23 2018-03-23 Method and device for obtaining device identification

Country Status (2)

Country Link
CN (1) CN108667950B (en)
WO (1) WO2019179093A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667950B (en) * 2018-03-23 2021-12-21 海信集团有限公司 Method and device for obtaining device identification
CN111641581B (en) * 2019-03-01 2022-07-19 阿里巴巴集团控股有限公司 Data processing method, device, equipment and storage medium
CN110536283B (en) * 2019-09-02 2022-06-14 百度在线网络技术(北京)有限公司 Terminal identifier acquisition method, device, electronic equipment and medium
CN111065093B (en) * 2020-01-10 2023-04-18 宁波方太厨具有限公司 Wireless ad hoc network system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282234A (en) * 2015-09-14 2016-01-27 北京奇虎科技有限公司 Intelligent device connection method, device and system
CN106413124A (en) * 2015-07-31 2017-02-15 腾讯科技(深圳)有限公司 Device binding method and apparatus
WO2017054134A1 (en) * 2015-09-29 2017-04-06 华为技术有限公司 Method and device for determining a frequency resource
CN106685947A (en) * 2016-12-23 2017-05-17 Tcl集团股份有限公司 Smart-TV private cloud equipment access method and system
CN106954233A (en) * 2016-01-07 2017-07-14 中兴通讯股份有限公司 The method and communication equipment of a kind of protenchyma on-line customer core net selection
CN107367949A (en) * 2017-06-14 2017-11-21 珠海格力电器股份有限公司 Obtain the methods, devices and systems of product identification

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9774604B2 (en) * 2015-01-16 2017-09-26 Zingbox, Ltd. Private cloud control
CN105404258B (en) * 2015-11-30 2019-03-08 聚好看科技股份有限公司 Smart home management method and platform
CN107181651A (en) * 2017-06-23 2017-09-19 海信集团有限公司 Intelligent home device collocation method and device
CN107493212B (en) * 2017-08-30 2020-03-17 海信集团有限公司 Configuration processing method, terminal, server and system of intelligent household equipment
CN107800687B (en) * 2017-09-26 2020-04-14 无锡小天鹅电器有限公司 Equipment binding method and system based on Internet of things and washing machine
CN108667950B (en) * 2018-03-23 2021-12-21 海信集团有限公司 Method and device for obtaining device identification

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106413124A (en) * 2015-07-31 2017-02-15 腾讯科技(深圳)有限公司 Device binding method and apparatus
CN105282234A (en) * 2015-09-14 2016-01-27 北京奇虎科技有限公司 Intelligent device connection method, device and system
WO2017054134A1 (en) * 2015-09-29 2017-04-06 华为技术有限公司 Method and device for determining a frequency resource
CN106954233A (en) * 2016-01-07 2017-07-14 中兴通讯股份有限公司 The method and communication equipment of a kind of protenchyma on-line customer core net selection
CN106685947A (en) * 2016-12-23 2017-05-17 Tcl集团股份有限公司 Smart-TV private cloud equipment access method and system
CN107367949A (en) * 2017-06-14 2017-11-21 珠海格力电器股份有限公司 Obtain the methods, devices and systems of product identification

Also Published As

Publication number Publication date
CN108667950A (en) 2018-10-16
WO2019179093A1 (en) 2019-09-26

Similar Documents

Publication Publication Date Title
CN108667950B (en) Method and device for obtaining device identification
CN103167465B (en) A kind of embedded UICC card activation processing method and device
CN107367949B (en) Obtain the methods, devices and systems of product identification
CN109151805A (en) ESIM card configuration method and system based on Internet of Things
CN112000355B (en) Method and device for firmware upgrading and household appliance
CN104144466A (en) Access method for sensor in Internet of Things, Internet of Things system and server
CN106648716A (en) Increment updating method, server and intelligent card
CN102118447A (en) Resource management method and mobile terminal
CN110377590A (en) Data collection system, method and computer readable storage medium based on Internet of Things
CN104113435A (en) Method and device for generating identifier
CN110245128A (en) Method for building up and device, storage medium, the electronic device of meta-model
CN104484958A (en) Express delivery pickup method and system for intelligent express delivery cabinet
CN103164232A (en) Method and system of updating intelligent terminal operating system and computer
CN114785685A (en) Software differential upgrading method and device, electronic equipment and readable storage medium
CN106708544A (en) Method and apparatus for assisting in firmware upgrading of electronic devices, and terminal
CN106598530A (en) Display panel configuration method and device
CN107172039B (en) Method, device and system for acquiring protocol key value
CN108664262A (en) Firmware batch upgrading method, system and the storage medium of wireless sorting device
CN107741965B (en) Database synchronous processing method and device, computing equipment and computer storage medium
CN110428840A (en) Implementation of load balancing, device and computer equipment in speech recognition system
CN111142885B (en) eSIM equipment management method, device, equipment and storage medium
CN101790029A (en) Method for performing read-write operation on set top box
CN113986312B (en) Software upgrading method and device, electronic equipment and computer readable storage medium
CN115695077A (en) Bus data receiving method and device, electronic equipment and storage medium
CN101571808A (en) Method for improving production efficiency of telecommunication smart card

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