CN113472587B - Internet of things equipment and object model binding method based on network communication - Google Patents
Internet of things equipment and object model binding method based on network communication Download PDFInfo
- Publication number
- CN113472587B CN113472587B CN202110783248.XA CN202110783248A CN113472587B CN 113472587 B CN113472587 B CN 113472587B CN 202110783248 A CN202110783248 A CN 202110783248A CN 113472587 B CN113472587 B CN 113472587B
- Authority
- CN
- China
- Prior art keywords
- internet
- binding
- equipment
- things equipment
- things
- 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
Links
- 230000027455 binding Effects 0.000 title claims abstract description 52
- 238000000034 method Methods 0.000 title claims abstract description 19
- 238000004891 communication Methods 0.000 title claims abstract description 18
- 238000013499 data model Methods 0.000 claims description 2
- 239000000203 mixture Substances 0.000 claims description 2
- 230000006855 networking Effects 0.000 abstract description 3
- 238000007726 management method Methods 0.000 description 10
- 238000012806 monitoring device Methods 0.000 description 5
- 230000001360 synchronised effect Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 230000007613 environmental effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000002688 persistence Effects 0.000 description 1
- 230000009870 specific binding Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/04—Network management architectures or arrangements
- H04L41/042—Network management architectures or arrangements comprising distributed management centres cooperatively managing the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种基于网络通信的物联网设备与物模型绑定方法,属于物联网设备管理技术领域。The invention relates to a method for binding an Internet of Things device and an object model based on network communication, and belongs to the technical field of Internet of Things device management.
背景技术Background technique
物联网(Internet of Things,IOT)概念自1999年被提出以来,经历了20多年的发展,终于从实验室走向现实生活。物联网时互联网的延伸和扩展,不同之处在于,互联网的终端是PC和服务器,而物联网的终端可以是各种形态,比如穿戴设备、环境监控设备、虚拟显示设备等等。也就是说,物联网的目标是将万物连接至网络,实现物品与物品、物品与人之间的通信。Since the concept of Internet of Things (IOT) was proposed in 1999, after more than 20 years of development, it finally moved from the laboratory to the real life. The Internet of Things is an extension and expansion of the Internet. The difference is that the terminals of the Internet are PCs and servers, while the terminals of the Internet of Things can be in various forms, such as wearable devices, environmental monitoring devices, virtual display devices, and so on. That is to say, the goal of the Internet of Things is to connect all things to the network and realize the communication between objects and objects and between objects and people.
物联网的终端可以是各种形态的,所以物联网时代终端的数量必然不仅仅局限于互联网时代人手一台,还有更多待联网的设备存在于工业生产和日常生活中。根据某手机大厂的预测,物联网设备的数量有望在2025年达到千亿级别以上。目前市面上出现了多种新的终端形态,也标识着物联网的终端形态不再局限于卡片形式。智能穿戴、智慧社区、车联网等市场的繁荣也昭示着物联网的应用场景在日益丰富。物联网组网的方式也日益丰富,已不再局限于NFC、RFID刷卡场景。The terminals of the Internet of Things can be in various forms, so the number of terminals in the Internet of Things era must not only be limited to one per person in the Internet era, but also more devices to be connected to the Internet exist in industrial production and daily life. According to the forecast of a major mobile phone manufacturer, the number of IoT devices is expected to reach more than 100 billion levels by 2025. At present, a variety of new terminal forms have appeared on the market, which also indicates that the terminal form of the Internet of Things is no longer limited to the card form. The prosperity of markets such as smart wearables, smart communities, and the Internet of Vehicles also indicates that the application scenarios of the Internet of Things are becoming more and more abundant. The networking methods of the Internet of Things are also increasingly rich, and are no longer limited to NFC and RFID card swiping scenarios.
在物联网发展的前期人们更多侧重于终端的发展与丰富,但是物联网不仅仅在于设备,还包括设备的管理,但是目前物联网的现状是为了连接而连接,无法提高生产效率,这种现象是由于云端管理的缺失而导致的,同时也无法解决Google Glasses曾提出的“3L”的问题,“3L”即长时间、长距离、低价格。而物联网被看作是一个综合的网格,更应该发展云端管理,形成一个生态闭环。In the early stage of the development of the Internet of Things, people focused more on the development and enrichment of terminals, but the Internet of Things is not only about equipment, but also the management of equipment, but the current status of the Internet of Things is to connect for the sake of connection, which cannot improve production efficiency. The phenomenon is caused by the lack of cloud management, and at the same time, it cannot solve the "3L" problem raised by Google Glasses. "3L" means long time, long distance and low price. The Internet of Things is regarded as a comprehensive grid, and cloud management should be developed to form an ecological closed loop.
发明内容SUMMARY OF THE INVENTION
针对现有技术的不足,本发明提供一种基于网络通信的物联网设备与物模型绑定方法,在服务端将物联网设备映射为物模型存储在数据库中,用户通过管理物模型实现对物联网设备的管理。在此操作前,需要将物联网设备与物模型进行绑定,实现物联网设备与物模型的一一对应关系,这也正是本发明的核心。通过网络通信实现绑定,用户需在设备端提供设备的绑定码(BindCode,该码需在所有物联网设备中唯一),将绑定码发送服务端请求绑定,服务端完成绑定操作,并在数据库存储物联网设备与物模型的对应关系。在绑定过程中,用户仅需要提供BindCode,保证绑定的快速便捷完成。Aiming at the deficiencies of the prior art, the present invention provides a method for binding an Internet of Things device and an object model based on network communication. The Internet of Things device is mapped to an object model and stored in a database at the server side. Management of networked devices. Before this operation, it is necessary to bind the IoT device and the object model to realize a one-to-one correspondence between the IoT device and the object model, which is also the core of the present invention. To achieve binding through network communication, the user needs to provide the binding code of the device (BindCode, which needs to be unique among all IoT devices) on the device side, send the binding code to the server to request binding, and the server completes the binding operation , and store the correspondence between IoT devices and object models in the database. During the binding process, the user only needs to provide the BindCode to ensure the fast and convenient completion of the binding.
术语解释:Terminology Explanation:
物模型:指将物联网设备映射成为存在数据库的数据模型,即存储在数据库的虚拟设备。Object model: refers to the mapping of IoT devices into a data model that exists in a database, that is, a virtual device stored in the database.
bind:绑定,是指将真实的物联网设备与存储在数据库中的物模型建立一对一的关系的过程,即建立deviceId和BindCode的一一对应关系。bind: Binding refers to the process of establishing a one-to-one relationship between a real IoT device and the object model stored in the database, that is, establishing a one-to-one correspondence between deviceId and BindCode.
deviceId:是一串可以标识设备且全球唯一的字符串,每一个deviceId即代表一个物联网设备。deviceId: is a string that can identify the device and is globally unique, and each deviceId represents an IoT device.
BindCode:绑定码,是物理的物联网设备在进行bind这一操作时,需要提供给后台的一串字符串,要求在用户所有设备中唯一,由用户自定义。BindCode: The binding code is a string of strings that the physical IoT device needs to provide to the background when performing the bind operation. It is required to be unique among all the devices of the user and is customized by the user.
本发明的技术方案如下:The technical scheme of the present invention is as follows:
一种基于网络通信的物联网设备与物模型绑定的方法,包括如下步骤:A method for binding an IoT device and an object model based on network communication, comprising the following steps:
(1)物联网设备开启后,判断该物联网设备是否已与服务端物模型进行绑定,若未绑定则进行步骤(2),若已绑定则进行步骤(5);(1) After the IoT device is turned on, determine whether the IoT device has been bound with the server-side object model, if not, go to step (2), and if it has been bound, go to step (5);
(2)物联网设备通过网络通信,给服务端发送设备绑定请求,消息中包含全局唯一的BindCode消息;(2) The IoT device sends a device binding request to the server through network communication, and the message contains a globally unique BindCode message;
(3)服务端收到设备绑定请求后,根据物联网设备的具体信息,为物联网设备生成全球唯一的deviceId。(3) After receiving the device binding request, the server generates a globally unique deviceId for the IoT device according to the specific information of the IoT device.
(4)服务端将物联网设备与物模型一对一的对应关系存储在数据库后,物联网设备与物模型一对一的对应关系指物联网设备通过全球唯一的deviceId与物模型建立的连接关系,将步骤(3)生成的deviceId通过网络通信发送到物联网设备,物联网设备将BindCode和deviceId保存到本地。(4) After the server stores the one-to-one correspondence between the IoT device and the object model in the database, the one-to-one correspondence between the IoT device and the object model refers to the connection between the IoT device and the object model through the globally unique deviceId. , send the deviceId generated in step (3) to the IoT device through network communication, and the IoT device saves the BindCode and deviceId locally.
(5)在完成物联网设备绑定后,物联网设备的数据同步到服务端物模型,服务端通过对物模型的管理实现对物联网设备的管理,包括内存数据管理,设备绑定管理,数据持久化以及数据同步管理。(5) After the IoT device binding is completed, the data of the IoT device is synchronized to the server-side object model, and the server manages the IoT device through the management of the object model, including memory data management, device binding management, Data persistence and data synchronization management.
优选的,步骤(1)中,判断的方式为,读取本地存储的绑定信息bind.xml,若读取成功,且文件中deviceId非空,则证明本设备已经绑定完毕,无需再次绑定;若读取失败或者读取deviceId为空,则需要进行绑定操作。Preferably, in step (1), the judgment method is to read the binding information bind.xml stored locally. If the reading is successful and the deviceId in the file is not empty, it proves that the device has been bound and does not need to be bound again. If the reading fails or the deviceId is empty, a binding operation is required.
优选的,步骤(3)中,deviceId包含设备的相关信息,组成格式是:所属公司标识_设备类型_时间戳,所属公司标识代表该设备属于哪家公司;设备类型表明当前设备种类,比如穿戴设备、监控设备等;时间戳是设备请求绑定的时间。Preferably, in step (3), deviceId contains the relevant information of the device, and the composition format is: the company ID_device type_timestamp, the company ID represents which company the device belongs to; the device type indicates the current device type, such as wearing devices, monitoring devices, etc.; the timestamp is when the device requested the binding.
上述基于网络通信的物联网设备与物模型绑定的系统,包括物联网设备和服务端物模型,物联网设备是指具有Internet连接的物联网设备,比如穿戴设备、环境监控设备、虚拟显示设备等,物联网设备和服务端物模型通过网络通信。The above-mentioned system of binding IoT devices and IoT models based on network communication includes IoT devices and server-side IoT devices. IoT devices refer to IoT devices with Internet connection, such as wearable devices, environmental monitoring devices, and virtual display devices. etc., the IoT device and the server-side thing model communicate through the network.
本发明的有益效果在于:The beneficial effects of the present invention are:
1、本发明生成的deviceId格式是:所属公司标识_设备类型_时间戳,通过deviceId可以很容易的了解到本设备的所属公司、设备类型以及绑定时间这些信息。1. The format of the deviceId generated by the present invention is: company identification_device type_timestamp, through deviceId, information such as the company, device type and binding time of the device can be easily learned.
2、本发明中设备的deviceId是服务端根据特定规则生成的,除了可以快速了解设备信息外,还具有较高的安全性。由于deviceId是服务端生成,所以不容易被第三者破解,从而有效避免设备相关数据泄露。2. The deviceId of the device in the present invention is generated by the server according to specific rules, which not only can quickly understand the device information, but also has high security. Since the deviceId is generated by the server, it is not easy to be cracked by a third party, thus effectively avoiding the leakage of device-related data.
3、本发明通过将物联网设备与服务端物模型绑定,建立二者一对一的关系,从而保证对物模型的管理会同步到物联网设备端,物联网设备的变更会同步到物模型,方便用户对物联网设备的远程管理。3. The present invention establishes a one-to-one relationship between the IoT device and the server-side object model, thereby ensuring that the management of the IoT model will be synchronized to the IoT device, and the changes of the IoT device will be synchronized to the IoT device. Model, which is convenient for users to remotely manage IoT devices.
4、本发明提供的物联网设备与物模型绑定的方法具有更好的通用性。该发明中绑定码可以由用户指定,并不强制使用特定的绑定码,这样用户的选择性更高,也可以适配更多的物联网设备。4. The method for binding the IoT device and the object model provided by the present invention has better versatility. In the invention, the binding code can be specified by the user, and it is not mandatory to use a specific binding code, so that the user has higher selectivity and can be adapted to more IoT devices.
5、本发明会保存设备的绑定状态,用户在绑定的时候,设备端会判断当前物联网设备是否已经绑定完毕,可以有效减少不必要的联网耗时操作,提高应用的效率。5. The present invention will save the binding state of the device. When the user is binding, the device side will determine whether the current IoT device has been bound, which can effectively reduce unnecessary time-consuming networking operations and improve application efficiency.
附图说明Description of drawings
图1为本发明物联网设备与物模型绑定流程图;Fig. 1 is the flow chart of the binding between the IoT device and the object model according to the present invention;
图2为本发明物联网设备与物模型绑定时序图。FIG. 2 is a sequence diagram of binding an IoT device and an object model according to the present invention.
具体实施方式Detailed ways
下面通过实施例并结合附图对本发明做进一步说明,但不限于此。The present invention will be further described below with reference to the embodiments and the accompanying drawings, but is not limited thereto.
实施例1:Example 1:
一种基于网络通信的物联网设备与物模型绑定的方法,包括过程如下:A method for binding an Internet of Things device and an object model based on network communication, including the following processes:
(1)物联网设备开启,判断该物联网设备是否已与服务端物模型进行绑定。判断的方式是,读取本地存储的绑定信息bind.xml,若读取成功,切文件中deviceId非空,则证明本物联网设备已经绑定完毕,无需再次绑定;若读取失败或者读取deviceId为空,则需要进行绑定操作。(1) The IoT device is turned on, and it is judged whether the IoT device has been bound with the server-side IoT model. The way to judge is to read the binding information bind.xml stored locally. If the reading is successful and the deviceId in the cut file is not empty, it proves that the IoT device has been bound and does not need to be bound again; if the reading fails or the reading If deviceId is empty, a binding operation is required.
(2)物联网设备通过网络通信,给服务端发送设备绑定请求,消息中包含全局唯一的BindCode消息。(2) The IoT device communicates through the network and sends a device binding request to the server, and the message contains a globally unique BindCode message.
(3)服务端收到物联网设备请求绑定的请求后,会根据设备的具体信息,为物联网设备生成全球唯一的deviceId。deviceId包含物联网设备的相关信息,组成格式是:所属公司标识_设备类型_时间戳,所属公司标识代表该设备属于哪家公司;设备类型表明当前设备种类,比如穿戴设备、监控设备等;时间戳是设备请求绑定的时间。(3) After the server receives the request for binding of the IoT device, it will generate a globally unique deviceId for the IoT device according to the specific information of the device. deviceId contains the relevant information of the IoT device. The format is: company ID_device type_timestamp, the company ID represents which company the device belongs to; the device type indicates the current device type, such as wearable devices, monitoring devices, etc.; time The stamp is the time when the device requested to bind.
(4)服务端将物联网设备与物模型关系存储在数据库后,将步骤(3)生成的deviceId通过网络通信发送到物联网设备,物联网设备将BindCode和deviceId信息保存到本地。(4) After storing the relationship between the IoT device and the object model in the database, the server sends the deviceId generated in step (3) to the IoT device through network communication, and the IoT device saves the BindCode and deviceId information locally.
(5)在完成物联网设备绑定后,物联网设备的数据会同步到服务端的物模型,服务端可以通过对物模型的管理对物联网设备进行管理。(5) After the IoT device binding is completed, the data of the IoT device will be synchronized to the object model of the server, and the server can manage the IoT device through the management of the object model.
上述基于网络通信的物联网设备与物模型绑定的系统,包括物联网设备和服务端物模型,物联网设备是指具有Internet连接的物联网设备,比如穿戴设备、环境监控设备、虚拟显示设备等,物联网设备和服务端物模型通过网络通信。The above-mentioned system of binding IoT devices and IoT models based on network communication includes IoT devices and server-side IoT devices. IoT devices refer to IoT devices with Internet connection, such as wearable devices, environmental monitoring devices, and virtual display devices. etc., the IoT device and the server-side thing model communicate through the network.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110783248.XA CN113472587B (en) | 2021-07-12 | 2021-07-12 | Internet of things equipment and object model binding method based on network communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110783248.XA CN113472587B (en) | 2021-07-12 | 2021-07-12 | Internet of things equipment and object model binding method based on network communication |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113472587A CN113472587A (en) | 2021-10-01 |
CN113472587B true CN113472587B (en) | 2022-09-13 |
Family
ID=77879742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110783248.XA Active CN113472587B (en) | 2021-07-12 | 2021-07-12 | Internet of things equipment and object model binding method based on network communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113472587B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114039997B (en) * | 2021-10-22 | 2025-01-24 | 阿里云计算有限公司 | A method and device for data processing |
CN116055313B (en) * | 2021-10-28 | 2025-02-18 | 中国移动通信有限公司研究院 | Dynamic expansion method and device for object model and processing equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105704116A (en) * | 2015-12-31 | 2016-06-22 | 深圳市美贝壳科技有限公司 | Method for binding intelligent device through binding code |
CN113067837A (en) * | 2021-04-30 | 2021-07-02 | 上海移远通信科技有限公司 | Binding and verification method applied to Internet of things system and Internet of things system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108521857B (en) * | 2017-07-25 | 2021-08-03 | 北京小米移动软件有限公司 | NB-IoT equipment binding method and IOT control system |
CN112383891B (en) * | 2020-10-02 | 2022-12-20 | 中盈优创资讯科技有限公司 | Equipment registration method and device based on object model automatic matching |
CN112260863B (en) * | 2020-10-15 | 2024-05-14 | 腾讯科技(深圳)有限公司 | Organization-level network device connection management method and device and computer device |
-
2021
- 2021-07-12 CN CN202110783248.XA patent/CN113472587B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105704116A (en) * | 2015-12-31 | 2016-06-22 | 深圳市美贝壳科技有限公司 | Method for binding intelligent device through binding code |
CN113067837A (en) * | 2021-04-30 | 2021-07-02 | 上海移远通信科技有限公司 | Binding and verification method applied to Internet of things system and Internet of things system |
Also Published As
Publication number | Publication date |
---|---|
CN113472587A (en) | 2021-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104660682B (en) | A kind of OPC data collection and monitoring intelligent terminal based on TD-LTE | |
CN113472587B (en) | Internet of things equipment and object model binding method based on network communication | |
CN110505275A (en) | Data transmission method, system, server and computer readable storage medium | |
CN102497427B (en) | Method and device for realizing data acquisition services of renewable energy source monitoring system | |
CN109936621A (en) | Multi-page information push method, device, equipment and the storage medium of information security | |
CN204598011U (en) | A kind of OPC data acquisition and monitoring intelligent terminal based on TD-LTE | |
CN112801657A (en) | Automatic processing method and device for recharging of meal card | |
CN107967305A (en) | Image file upload method, server and readable storage medium storing program for executing | |
CN107277146A (en) | A kind of distributed storage service traffics model generating method and system | |
CN110472951A (en) | A kind of working method of the virtual coin portable electronic wallet based on block chain | |
CN103581233B (en) | A kind of method and system for being used in short-range communication manage label | |
WO2022256969A1 (en) | General data extraction system | |
CN113392091A (en) | Distributed cluster data migration method and device | |
CN107168748A (en) | A kind of method that multinomial upgrading task is realized by a upgrade file bag | |
CN104035791B (en) | A kind of startup method, method for closing and the intelligent terminal of application program | |
CN115086347B (en) | Data synchronization method, device, electronic equipment and storage medium | |
CN115544169A (en) | Data synchronization method, device, equipment and storage medium | |
CN106375857B (en) | The upgrade method of optical fiber set-top box | |
CN115914335A (en) | Long connection creating method and device, computer equipment and storage medium | |
CN105530542B (en) | Module television upgrading method and module television | |
CN115687477A (en) | Data conversion method, device, information consumption end and storage medium | |
CN102404362B (en) | Digital electric meter communication system and method | |
CN115292166A (en) | Multi-person collaborative test case management method, device, equipment and medium | |
CN103309758A (en) | Card application downloading method, system and device | |
CN112668933A (en) | Intelligent equipment management system and method for scientific fitness place |
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 |