CN110704088B - Sensor upgrading method and system based on Internet of things - Google Patents

Sensor upgrading method and system based on Internet of things Download PDF

Info

Publication number
CN110704088B
CN110704088B CN201910997817.3A CN201910997817A CN110704088B CN 110704088 B CN110704088 B CN 110704088B CN 201910997817 A CN201910997817 A CN 201910997817A CN 110704088 B CN110704088 B CN 110704088B
Authority
CN
China
Prior art keywords
upgrading
sensor
sink node
node
successful
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
CN201910997817.3A
Other languages
Chinese (zh)
Other versions
CN110704088A (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.)
Zhongshang Minzhi Technology Engineering Group Co ltd
Original Assignee
Zhongshang Minzhi Technology Engineering Group 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 Zhongshang Minzhi Technology Engineering Group Co ltd filed Critical Zhongshang Minzhi Technology Engineering Group Co ltd
Priority to CN201910997817.3A priority Critical patent/CN110704088B/en
Publication of CN110704088A publication Critical patent/CN110704088A/en
Application granted granted Critical
Publication of CN110704088B publication Critical patent/CN110704088B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Stored Programmes (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention belongs to the field of software, and provides a sensor upgrading method and system based on the Internet of things, which comprises the following steps: acquiring automatic upgrading parameters set by a factory, extracting time intervals from the automatic upgrading parameters, and acquiring scanning instructions sent by a timer according to the time intervals; when a sensor upgrading instruction is scanned, an OID identification prefix and an encrypted public key carried by the sensor upgrading instruction are obtained; judging whether the OID identifier prefix carried by the sensor upgrading instruction is the same as the OID identifier prefix in the automatic upgrading parameters or not, and if so, encrypting the product serial number by using the obtained encryption public key; sending the product serial number encrypted by the encrypted public key to the sink node; receiving an upgrade packet which is sent by a sink node and encrypted by adopting a product serial number, and decrypting the upgrade packet by the product serial number and a decryption algorithm corresponding to the encryption algorithm; and upgrading by using the upgrading packet, and if the upgrading is successful, sending an upgrading success message. The invention is beneficial to improving the upgrading efficiency of the sensor node.

Description

Sensor upgrading method and system based on Internet of things
Technical Field
The invention relates to the field of software, in particular to a sensor upgrading method and system based on the Internet of things.
Background
The sensor node is a micro embedded device, and the sensor node needs to complete various works such as acquisition and conversion of monitoring data, management and processing of data, response of task requests of the sink node, node control and the like. At present, there are two upgrading methods for sensor nodes, which are detailed as follows:
the first mode is as follows: the upgrade package is copied to the storage device in a manual mode, and then the upgrade package is transmitted to a single sensor node in the storage device by adopting the serial port communication interface and the USB interface, so that the upgrade of the single sensor node is realized.
The second mode is as follows: and the program upgrading of a single sensor node is realized in a manual mode and a wireless network mode.
However, the existing sensor node upgrading method has the following disadvantages, which are detailed as follows:
firstly, the upgrading safety of the sensor node is low. Because the upgrade package is copied to the storage device, and then the serial port communication interface and the USB interface are adopted to transmit the upgrade package to a single device in the storage device, when the upgrade of a single sensor node is realized, the storage device is likely to carry virus files, so that the sensor node is likely to be influenced by the virus files, and the upgrade safety of the sensor node is reduced.
And secondly, the sensor nodes in the same field cannot be safely upgraded in batch. The reason is that, in a wireless network manner, upgrading of a single sensor node can only be realized, and high-speed development of the society is accompanied, the types and the number of the sensor nodes are continuously increased, massive sensor nodes can exist in the same place, the application fields of the massive sensor nodes are often different, the sensor nodes in different fields need to acquire different upgrading packages, the sensor nodes in the same field need to acquire the same upgrading package, the upgrading package is easy to tamper, and the upgrading package is not safe enough.
Disclosure of Invention
In view of the above disadvantages of the prior art, an object of the present invention is to provide a method and a system for upgrading a sensor based on the internet of things, which are used to solve the problems that the sensor nodes in the same field in the prior art cannot be safely upgraded in batch, and are not beneficial to improving the upgrading efficiency of the sensor nodes.
In order to achieve the above objects and other related objects, the present invention provides a sensor upgrading method based on the internet of things, the method comprising:
the method comprises the steps that a sensor node obtains automatic upgrading parameters set by a factory, wherein the automatic upgrading parameters comprise time intervals and Object Identifiers (OID) identification prefixes;
extracting a time interval from the automatic upgrading parameters, and acquiring a scanning instruction sent by a timer according to the time interval;
scanning whether a sensor upgrading instruction of an internet of things sensing layer broadcasted by a sink node exists or not according to the scanning instruction, wherein the sensor upgrading instruction carries an OID (object identification) prefix and an encrypted public key;
when the sensor upgrading instruction is scanned, obtaining an OID identification prefix and an encryption public key carried by the sensor upgrading instruction;
judging whether the OID identifier prefix carried by the sensor upgrading instruction is the same as the OID identifier prefix in the automatic upgrading parameters or not, if so, acquiring a product serial number set by a factory, and encrypting the product serial number by using the acquired encryption public key;
sending the product serial number encrypted by the encrypted public key to a sink node so that the sink node decrypts the product serial number by using a private key, and encrypting a prestored upgrade package corresponding to the OID identifier prefix by using the product serial number and a preset encryption algorithm;
receiving an upgrade packet which is sent by the sink node and encrypted by the product serial number, and decrypting the upgrade packet through the product serial number and a decryption algorithm corresponding to the encryption algorithm;
and upgrading by using the upgrading packet, detecting whether the upgrading is successful, and if the upgrading is successful, sending an upgrading success message to the sink node.
Preferably, the upgrading is performed by using the upgrade package, whether the upgrading is successful is detected, and if the upgrading is successful, an upgrade success message is sent to the sink node, specifically:
and upgrading by using the upgrading packet, detecting whether the upgrading is successful, if the upgrading is successful, sending an upgrading success message to the sink node, pulling down the level of the reset pin to be a low level, and restarting.
Preferably, the upgrading is performed by using the upgrade package, whether the upgrading is successful is detected, and if the upgrading is successful, an upgrade success message is sent to the sink node, specifically:
and upgrading by using the upgrading packet, detecting whether the upgrading is successful, if so, sending an upgrading success message to the sink node, pulling down the level of the reset pin to be a high level, and restarting.
Preferably, the upgrading is performed by using the upgrade package, whether the upgrading is successful is detected, and if the upgrading is successful, an upgrade success message is sent to the sink node, and the method further includes:
and if the upgrading is not successful, sending an upgrading packet retransmission instruction to the sink node to remind the sink node to retransmit the upgrading packet.
Preferably, after the upgrading is performed by using the upgrade package, and whether the upgrading is successful is detected, and if the upgrading is successful, an upgrade success message is sent to the sink node, the method further includes:
acquiring a sensor management module list in a sensor database, displaying sensor nodes in the sensor management module list, acquiring a click operation, selecting a sensor node to be modified through the click operation, acquiring a modification operation of a sink node address or a sink node port number, modifying the sink node address or the sink node port number corresponding to the sensor node through the modification operation, clicking and storing to generate a sink node address or a sink node port number corresponding to the modified sensor node;
the sensor database informs a sensor upgrading program that network connection is changed;
the sensor upgrading program issues the modified sink node address or sink node port number to the sensor node in a wireless mode;
the sensor node replaces the previously stored sink node address and sink node port number with the modified sink node address and sink node port number after receiving the modified sink node address or sink node port number issued by the sensor upgrading program, connects a new sink node according to the modified sink node address and sink node port number, detects whether the connection of the new sink node is successful, and sends a connection success message to the sensor upgrading program if the connection is successful.
The invention provides a sensor upgrading system based on the Internet of things, which comprises:
the automatic upgrading parameter acquisition module is used for acquiring automatic upgrading parameters which are set by a factory from a sensor node, wherein the automatic upgrading parameters comprise time intervals and object identifier OID identification prefixes;
the scanning instruction acquisition module is used for extracting a time interval from the automatic upgrading parameters and acquiring a scanning instruction sent by the timer according to the time interval;
the scanning module is used for scanning whether a sensor upgrading instruction of an internet of things sensing layer broadcasted by a sink node exists or not according to the scanning instruction, and the sensor upgrading instruction carries an OID (object identification) prefix and an encryption public key;
the identification acquisition module is used for acquiring an OID identification prefix and an encrypted public key carried by the sensor upgrading instruction when the sensor upgrading instruction is scanned;
the judging module is used for judging whether the OID identifier prefix carried by the sensor upgrading instruction is the same as the OID identifier prefix in the automatic upgrading parameters or not, if so, acquiring a product serial number set by a factory, and encrypting the product serial number by adopting the acquired encryption public key;
the encryption module is used for sending the product serial number encrypted by the encrypted public key to the sink node so that the sink node decrypts the product serial number by using a private key, and encrypts a pre-stored upgrade package corresponding to the OID identifier prefix by using the product serial number and a preset encryption algorithm;
the decryption module is used for receiving the upgrade package which is sent by the sink node and encrypted by the product serial number, and decrypting the upgrade package through the product serial number and a decryption algorithm corresponding to the encryption algorithm;
and the upgrading module is used for upgrading by utilizing the upgrading packet, detecting whether the upgrading is successful, and if the upgrading is successful, sending an upgrading success message to the sink node.
Preferably, in the system, the upgrade module is specifically configured to perform upgrade using the upgrade package, detect whether the upgrade is successful, send an upgrade success message to the sink node if the upgrade is successful, pull down the level of the reset pin to a low level, and restart the system.
Preferably, in the system, the upgrade module is specifically configured to: and upgrading by using the upgrading packet, detecting whether the upgrading is successful, if so, sending an upgrading success message to the sink node, pulling down the level of the reset pin to be a high level, and restarting.
Preferably, the system further comprises:
and the sending module is used for sending an upgrading packet retransmission instruction to the convergent node if the upgrading is unsuccessful so as to remind the convergent node to retransmit the upgrading packet.
Preferably, in the system, the system further comprises:
the modification module is used for acquiring a sensor management module list from a sensor database, displaying sensor nodes in the sensor management module list, acquiring a click operation, selecting a sensor node to be modified through the click operation, acquiring a modification operation of a sink node address or a sink node port number, modifying the sink node address or the sink node port number corresponding to the sensor node through the modification operation, clicking and storing to generate a modified sink node address or sink node port number corresponding to the sensor node;
the sensor database informs a sensor upgrading program that network connection is changed;
the sensor upgrading program issues the modified sink node address or sink node port number to the sensor node in a wireless mode;
the sensor node replaces the previously stored sink node address and sink node port number with the modified sink node address and sink node port number after receiving the modified sink node address or sink node port number issued by the sensor upgrading program, connects a new sink node according to the modified sink node address and sink node port number, detects whether the connection of the new sink node is successful, and sends a connection success message to the sensor upgrading program if the connection is successful.
As described above, the sensor upgrading method and system based on the internet of things of the present invention have the following beneficial effects:
the OID identification prefixes of the sensor nodes in the same field are the same, so that the sensor upgrading instruction sent by the sensor nodes in the same field can be identified through the OID identification prefixes, and the sensor nodes in the same field can send the product serial number to the sink node after receiving the sensor upgrading instruction, so that the sensor nodes in the same field can receive the upgrading packet sent by the sink node aiming at the OID identification prefixes, and batch upgrading of the sensor nodes in the same field is realized; furthermore, the upgrading packet is not easy to be tampered after being encrypted and is safe enough, so that the sensor nodes in the same field can be safely upgraded in batches, and the upgrading efficiency of the sensor nodes is improved.
Drawings
Fig. 1 is a schematic diagram illustrating an internet of things-based sensor upgrading method according to the present invention.
Fig. 2 is a schematic diagram of the sensor upgrading system based on the internet of things.
Detailed Description
The application provides a sensor upgrading method and system based on the Internet of things, which are suitable for electronic sensors.
Referring to fig. 1, the invention provides a sensor upgrading method based on the internet of things, which is detailed as follows:
s101, a sensor node acquires factory-set automatic upgrading parameters, wherein the automatic upgrading parameters comprise time intervals and object identifier OID identification prefixes;
the automatic upgrade parameters are factory set, and when the automatic upgrade parameters are delivered from a factory, a manufacturer can set the time interval through buttons on the sensor nodes. For example, the manufacturer may set the time by using a timing button on the sensor node, and the manufacturer may adjust the set time interval by using an up-down button on the sensor node.
Where the OID identifies a prefix (Object Identifier). The OID identifier prefixes of the sensor nodes in the same domain are the same, for example, the OID identifier prefix of the sensor node in the supervision management domain is 1.2.156.112600. And the OID identifier prefix of the sensor node in the information security field is 1.2.156.10197.
S102, extracting a time interval from the automatic upgrading parameters, and acquiring a scanning instruction sent by a timer according to the time interval;
s103, scanning whether a sensor upgrading instruction of an Internet of things sensing layer broadcasted by a sink node exists or not according to the scanning instruction, wherein the sensor upgrading instruction carries an OID (object identifier) prefix and an encrypted public key;
s104, when the sensor upgrading instruction is scanned, obtaining an OID identification prefix and an encrypted public key carried by the sensor upgrading instruction;
it should be noted that a piece of customized information is added to the sensor upgrade instruction, the customized information is used for storing the OID identifier prefix and the encryption public key, and when the sensor node scans the sensor upgrade instruction, the OID identifier prefix and the encryption public key are obtained from the customized information of the sensor upgrade instruction.
S105, judging whether the OID identifier prefix carried by the sensor upgrading instruction is the same as the OID identifier prefix in the automatic upgrading parameters, if so, acquiring a product serial number set by a factory, and encrypting the product serial number by using the acquired encryption public key;
wherein, the OID identification prefix of the sensor node in the same field is the same, if the OID identification prefix is the same, the sensor node and the sensor node needing to be upgraded are in the same field, thus, the sensor node not in the same field as the sensor node needing to be upgraded can not acquire and send the product serial number, and the technical effect is as follows: the condition that massive sensor nodes simultaneously send the product serial numbers at the same time to cause network congestion is avoided, so that the transmission quantity of the product serial numbers can be reduced, the network congestion is avoided, the sensor nodes in the same field can stably receive the upgrade package, and the transmission stability of the upgrade package is improved.
S106, sending the product serial number encrypted by the encrypted public key to a sink node so that the sink node decrypts the product serial number by using a private key, and encrypting a prestored upgrade package corresponding to the OID identifier prefix by using the product serial number and a preset encryption algorithm;
because the product serial number is unique to the sensor node, the difficulty of deciphering the product serial number is improved, the upgrading packet is not easy to be falsified, and the safety of the upgrading packet is enhanced.
The upgrading package corresponding to the OID identifier prefix is encrypted and prestored, so that the upgrading can be realized for the sensor node with the same OID identifier prefix in a targeted mode, the data required by the field can be better acquired after the sensor node in the same field is upgraded, and the requirements of different fields on the differentiation of functions of the sensor node are met.
S107, receiving an upgrade package which is sent by the sink node and encrypted by the product serial number, and decrypting the upgrade package through the product serial number and a decryption algorithm corresponding to the encryption algorithm;
the decryption algorithm and the encryption algorithm are predetermined by the manufacturer. The decryption algorithm and the encryption algorithm are various, and the specific encryption algorithm and decryption algorithm are not limited herein.
And S108, upgrading by using the upgrading packet, detecting whether the upgrading is successful, and if the upgrading is successful, sending an upgrading success message to the sink node.
Further, S108 specifically includes:
and upgrading by using the upgrading packet, detecting whether the upgrading is successful, if the upgrading is successful, sending an upgrading success message to the sink node, pulling down the level of the reset pin to be a low level, and restarting.
Further, S108 specifically includes:
and upgrading by using the upgrading packet, detecting whether the upgrading is successful, if so, sending an upgrading success message to the sink node, pulling down the level of the reset pin to be a high level, and restarting.
It should be noted that, the upgrade package is used for upgrading, and whether the upgrade is successful is detected, specifically:
the upgrading packet is marked as a new upgrading packet, the version number carried by the new upgrading packet is obtained, the version number of the new upgrading packet is compared with the version number of an old upgrading packet stored in a register, when the version number of the old upgrading packet is smaller than the version number of the new upgrading packet, data of the new upgrading packet are written to an address corresponding to the register for storing the old upgrading packet, the stored old upgrading packet is upgraded into the new upgrading packet, whether the version number of the register is the version number of the new upgrading packet or not is detected, if the version number of the register is the version number of the new upgrading packet, upgrading is successful, and if the version number of the register is not the version number of the new upgrading packet, upgrading is unsuccessful.
Further, after the upgrading is performed by using the upgrade package, and whether the upgrading is successful is detected, and if the upgrading is successful, an upgrade success message is sent to the sink node, the method further includes:
acquiring a sensor management module list in a sensor database, displaying sensor nodes in the sensor management module list, acquiring a click operation, selecting a sensor node to be modified through the click operation, acquiring a modification operation of a sink node address or a sink node port number, modifying the sink node address or the sink node port number corresponding to the sensor node through the modification operation, clicking and storing to generate a sink node address or a sink node port number corresponding to the modified sensor node;
the sensor database informs a sensor upgrading program that network connection is changed;
the sensor upgrading program issues the modified sink node address or sink node port number to the sensor node in a wireless mode;
the sensor node replaces the previously stored sink node address and sink node port number with the modified sink node address and sink node port number after receiving the modified sink node address or sink node port number issued by the sensor upgrading program, connects a new sink node according to the modified sink node address and sink node port number, detects whether the connection of the new sink node is successful, and sends a connection success message to the sensor upgrading program if the connection is successful. The method has the advantages that the addresses and the port numbers of the sink nodes are modified in batch, so that the stored addresses and the port numbers of the sink nodes can be modified at any time and any place, in addition, the sensor nodes send connection success messages to the sink nodes, and subsequent users can inquire detailed information of successful sensor connection through the connection success messages.
The sensor database is arranged in the management server and is provided with a sensor management module list, the sensor management module list is provided with a plurality of sensor nodes, and a sink node address and a sink node port number corresponding to each sensor node.
It should be noted that, after the upgrade is performed by using the upgrade package, and whether the upgrade is successful is detected, and if the upgrade is successful, an upgrade success message is sent to the sink node, the method further includes:
the method comprises the steps that after data collection is finished, a sensor node obtains attribute information of the collected data, wherein the attribute information comprises OID identification prefix, collected temperature and humidity, collected time and collected place;
and sending the collected data and the attribute information of the collected data to the sink node so that the sink node can inquire the environment and the application of the data collected by the sensor through the attribute information.
In this embodiment, the OID identifier prefixes of the sensor nodes in the same field are the same, and therefore, the sensor upgrade instruction sent to the sensor nodes in the same field can be identified by the OID identifier prefixes, and therefore, the sensor nodes in the same field receive the sensor upgrade instruction and send the product serial number to the sink node, and thus, the sensor nodes in the same field can receive the upgrade packet sent by the sink node to the OID identifier prefixes, and thus, batch upgrade of the sensor nodes in the same field is realized; furthermore, the upgrading packet is not easy to be tampered after being encrypted and is safe enough, so that the sensor nodes in the same field can be safely upgraded in batches, and the upgrading efficiency of the sensor nodes is improved.
Referring to fig. 2, the invention provides a sensor upgrading system based on the internet of things, which is detailed as follows:
an automatic upgrade parameter obtaining module 21, configured to obtain, by a sensor node, an automatic upgrade parameter set by a factory, where the automatic upgrade parameter includes a time interval and an object identifier OID identifier prefix;
a scanning instruction obtaining module 22, configured to extract a time interval from the automatic upgrade parameters, and obtain a scanning instruction sent by the timer according to the time interval;
the scanning module 23 is configured to scan whether a sensor upgrade instruction of an internet of things sensing layer broadcasted by a sink node exists according to the scanning instruction, where the sensor upgrade instruction carries an OID identifier prefix and an encryption public key;
the identifier obtaining module 24 is configured to obtain an OID identifier prefix and an encrypted public key carried by the sensor upgrading instruction when the sensor upgrading instruction is scanned;
a judging module 25, configured to judge whether an OID identifier prefix carried in the sensor upgrade instruction is the same as an OID identifier prefix in the automatic upgrade parameter, if so, obtain a product serial number set in a factory, and encrypt the product serial number by using the obtained encryption public key;
the encryption module 26 is configured to send the product serial number encrypted by using the encrypted public key to the sink node, so that the sink node decrypts the product serial number by using a private key, and encrypts the pre-stored upgrade package corresponding to the OID identifier prefix by using the product serial number and a preset encryption algorithm;
the decryption module 27 is configured to receive the upgrade package encrypted by using the product serial number and sent by the rendezvous point, and decrypt the upgrade package through the product serial number and a decryption algorithm corresponding to the encryption algorithm;
and the upgrading module 28 is configured to upgrade by using the upgrade package, detect whether the upgrade is successful, and send an upgrade success message to the sink node if the upgrade is successful.
In the embodiment, because the sensor nodes do not need to be maintained on site, and the automatic upgrading function of the sensor nodes is utilized, the situation of manual field upgrading operation can be avoided, the maintenance cost is saved for users and enterprises, the sensor nodes can be upgraded at any time and any place, in addition, the sensor nodes send upgrading success information to the sink nodes, and subsequent users can inquire the detailed information of upgrading of the sensor nodes through the upgrading success information.
In conclusion, the invention can safely upgrade the sensor nodes in the same field in batches, and is beneficial to improving the upgrading efficiency of the sensor nodes. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention are covered by the claims of the present invention.

Claims (8)

1. A sensor upgrading method based on the Internet of things is characterized by comprising the following steps:
the method comprises the steps that sensor nodes acquire factory-set automatic upgrading parameters, wherein the automatic upgrading parameters comprise time intervals and object identifier OID identification prefixes, and the OID identification prefixes of the sensor nodes in the same field are the same;
extracting a time interval from the automatic upgrading parameters, and acquiring a scanning instruction sent by a timer according to the time interval;
scanning whether a sensor upgrading instruction of an internet of things sensing layer broadcasted by a sink node exists or not according to the scanning instruction, wherein the sensor upgrading instruction carries an OID identification prefix and an encrypted public key;
when the sensor upgrading instruction is scanned, obtaining an OID identification prefix and an encryption public key carried by the sensor upgrading instruction;
judging whether the OID identifier prefix carried by the sensor upgrading instruction is the same as the OID identifier prefix in the automatic upgrading parameters, if so, indicating that the sensor node and the sensor node to be upgraded are in the same field, acquiring a product serial number set by a factory, and encrypting the product serial number by using the acquired encryption public key;
sending the product serial number encrypted by the encrypted public key to a sink node so that the sink node decrypts the product serial number by using a private key, and encrypting a prestored upgrade package corresponding to the OID identifier prefix by using the product serial number and a preset encryption algorithm;
receiving an upgrade packet which is sent by the sink node and encrypted by the product serial number, and decrypting the upgrade packet through the product serial number and a decryption algorithm corresponding to the encryption algorithm;
upgrading by using the upgrading packet, detecting whether the upgrading is successful, and if the upgrading is successful, sending an upgrading success message to the sink node;
acquiring a sensor management module list in a sensor database, displaying sensor nodes in the sensor management module list, acquiring a click operation, selecting a sensor node to be modified through the click operation, acquiring a modification operation of a sink node address or a sink node port number, modifying the sink node address or the sink node port number corresponding to the sensor node through the modification operation, clicking and storing to generate a sink node address or a sink node port number corresponding to the modified sensor node; the sensor database informs a sensor upgrading program that network connection is changed;
the sensor upgrading program issues the modified sink node address or sink node port number to the sensor node in a wireless mode;
after receiving the modified sink node address or sink node port number issued by the sensor upgrading program, the sensor node replaces the previously stored sink node address and sink node port number with the modified sink node address and sink node port number, connects a new sink node according to the modified sink node address and sink node port number, detects whether the connection of the new sink node is successful, and sends a connection success message to the sensor upgrading program if the connection is successful;
the sensor database is arranged in the management server and is provided with a sensor management module list, the sensor management module list is provided with a plurality of sensor nodes, and a sink node address and a sink node port number corresponding to each sensor node.
2. The method according to claim 1, wherein the upgrading is performed by using the upgrade package, whether the upgrading is successful or not is detected, and if the upgrading is successful, an upgrade success message is sent to the sink node, specifically:
and upgrading by using the upgrading packet, detecting whether the upgrading is successful, if so, sending an upgrading success message to the sink node, pulling down the level of the reset pin to be a low level, and restarting.
3. The method according to claim 1, wherein the upgrading is performed by using the upgrade package, whether the upgrading is successful or not is detected, and if the upgrading is successful, an upgrade success message is sent to the sink node, specifically:
and upgrading by using the upgrading packet, detecting whether the upgrading is successful, if so, sending an upgrading success message to the sink node, pulling down the level of the reset pin to be a high level, and restarting.
4. The method of claim 1, wherein the upgrading is performed using the upgrade package, whether the upgrading is successful is detected, and if the upgrading is successful, an upgrade success message is sent to the sink node, and the method further comprises:
and if the upgrading is not successful, sending an upgrading packet retransmission instruction to the sink node to remind the sink node to retransmit the upgrading packet.
5. A sensor upgrading system based on the Internet of things is characterized by comprising:
the automatic upgrading parameter acquisition module is used for acquiring automatic upgrading parameters set by a factory from a sensor node, wherein the automatic upgrading parameters comprise time intervals and object identifier OID identification prefixes, and the OID identification prefixes of the sensor nodes in the same field are the same;
the scanning instruction acquisition module is used for extracting a time interval from the automatic upgrading parameters and acquiring a scanning instruction sent by the timer according to the time interval;
the scanning module is used for scanning whether a sensor upgrading instruction of an internet of things sensing layer broadcasted by a sink node exists or not according to the scanning instruction, and the sensor upgrading instruction carries an OID (object identification) prefix and an encryption public key;
the identification acquisition module is used for acquiring an OID identification prefix and an encrypted public key carried by the sensor upgrading instruction when the sensor upgrading instruction is scanned;
the judging module is used for judging whether the OID identifier prefix carried by the sensor upgrading instruction is the same as the OID identifier prefix in the automatic upgrading parameters, if so, the sensor node and the sensor node needing upgrading are in the same field, the product serial number set by a factory is obtained, and the obtained encryption public key is used for encrypting the product serial number;
the encryption module is used for sending the product serial number encrypted by the encrypted public key to the sink node so that the sink node decrypts the product serial number by using a private key, and encrypts a pre-stored upgrade package corresponding to the OID identifier prefix by using the product serial number and a preset encryption algorithm;
the decryption module is used for receiving the upgrade package which is sent by the sink node and encrypted by the product serial number, and decrypting the upgrade package through the product serial number and a decryption algorithm corresponding to the encryption algorithm;
the upgrading module is used for upgrading by using the upgrading packet, detecting whether the upgrading is successful, and if the upgrading is successful, sending an upgrading success message to the sink node;
the system comprises a modification module, a sensor database and a processing module, wherein the modification module is used for acquiring a sensor management module list in the sensor database, displaying sensor nodes in the sensor management module list, acquiring a click operation, selecting a sensor node to be modified through the click operation, acquiring a modification operation of a sink node address or a sink node port number, modifying the sink node address or the sink node port number corresponding to the sensor node through the modification operation, clicking and storing the modified sink node address or sink node port number, and generating a sink node address or sink node port number corresponding to the modified sensor node;
the sensor database informs a sensor upgrading program that network connection is changed;
the sensor upgrading program issues the modified sink node address or sink node port number to the sensor node in a wireless mode;
after receiving the modified sink node address or sink node port number issued by the sensor upgrading program, the sensor node replaces the previously stored sink node address and sink node port number with the modified sink node address and sink node port number, connects a new sink node according to the modified sink node address and sink node port number, detects whether the connection of the new sink node is successful, and sends a connection success message to the sensor upgrading program if the connection is successful;
the sensor database is arranged in the management server and is provided with a sensor management module list, the sensor management module list is provided with a plurality of sensor nodes, and a sink node address and a sink node port number corresponding to each sensor node.
6. The system of claim 5, wherein the upgrade module is specifically configured to upgrade with the upgrade package, detect whether the upgrade is successful, send an upgrade success message to the sink node if the upgrade is successful, and pull down a level of a reset pin to a low level to restart the sink node.
7. The system of claim 5, wherein the upgrade module is specifically configured to: and upgrading by using the upgrading packet, detecting whether the upgrading is successful, if so, sending an upgrading success message to the sink node, pulling down the level of the reset pin to be a high level, and restarting.
8. The system of claim 5, further comprising:
and the sending module is used for sending an upgrading packet retransmission instruction to the convergent node if the upgrading is unsuccessful so as to remind the convergent node to retransmit the upgrading packet.
CN201910997817.3A 2019-10-21 2019-10-21 Sensor upgrading method and system based on Internet of things Active CN110704088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910997817.3A CN110704088B (en) 2019-10-21 2019-10-21 Sensor upgrading method and system based on Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910997817.3A CN110704088B (en) 2019-10-21 2019-10-21 Sensor upgrading method and system based on Internet of things

Publications (2)

Publication Number Publication Date
CN110704088A CN110704088A (en) 2020-01-17
CN110704088B true CN110704088B (en) 2023-01-13

Family

ID=69201880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910997817.3A Active CN110704088B (en) 2019-10-21 2019-10-21 Sensor upgrading method and system based on Internet of things

Country Status (1)

Country Link
CN (1) CN110704088B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111541774B (en) * 2020-05-08 2023-05-02 杭州粒合信息科技有限公司 Equipment upgrading method, device and system
CN111610735A (en) * 2020-05-08 2020-09-01 安徽三音电子科技有限公司 Intelligent monitoring system for indoor environment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017101720A1 (en) * 2015-12-14 2017-06-22 中国银联股份有限公司 Method and device for upgrading transaction terminal
CN109298878A (en) * 2018-09-28 2019-02-01 冼汉生 Law-enforcing recorder upgrade-system and law-enforcing recorder upgrade method based on Internet of Things

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877723B (en) * 2010-06-18 2015-01-28 中兴通讯股份有限公司 Wireless sensor network node remote update system, method and equipment
US9740474B2 (en) * 2014-10-29 2017-08-22 Oracle International Corporation Orchestration of software applications upgrade using automatic hang detection
US10089099B2 (en) * 2015-06-05 2018-10-02 Cisco Technology, Inc. Automatic software upgrade
DE102016207836A1 (en) * 2016-05-06 2017-11-09 Robert Bosch Gmbh Method and system for updating the software of a motor vehicle sensor
CN106843954A (en) * 2017-01-16 2017-06-13 武汉慧联无限科技有限公司 Sensor node remote upgrade method
JP6925893B2 (en) * 2017-07-05 2021-08-25 日本光電工業株式会社 Biometric information detection sensor wireless system, biometric information detection sensor wireless method, and biometric information detection sensor
CN109189440A (en) * 2018-09-28 2019-01-11 冼钇冰 A kind of ECG monitor upgrade method, device and storage medium based on Internet of Things
CN109379231A (en) * 2018-11-13 2019-02-22 安徽芯核防务装备技术股份有限公司 A kind of fire detector remote upgrade method and device based on CAN communication

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017101720A1 (en) * 2015-12-14 2017-06-22 中国银联股份有限公司 Method and device for upgrading transaction terminal
CN109298878A (en) * 2018-09-28 2019-02-01 冼汉生 Law-enforcing recorder upgrade-system and law-enforcing recorder upgrade method based on Internet of Things

Also Published As

Publication number Publication date
CN110704088A (en) 2020-01-17

Similar Documents

Publication Publication Date Title
CN111246539B (en) Networking binding method of intelligent household appliance, intelligent household appliance and user terminal
CN109639661B (en) Server certificate updating method, device, equipment and computer readable storage medium
CN102523218B (en) Network safety protection method, equipment and system thereof
CN110704088B (en) Sensor upgrading method and system based on Internet of things
EP2779524A1 (en) Secure data transmission method, device and system
US20090300360A1 (en) Application setting terminal, application executing terminal, and setting information managing server
JP2007026412A (en) Maintenance mediation apparatus, maintenance target apparatus maintenance method, maintenance program, recording medium recording maintenance program, and maintenance system
EP1875657A1 (en) Method and apparatus for checking proximity between devices using hash chain
CN103634325B (en) Intelligent domestic Internet of Things security control method and system
JP2005284985A (en) Network compatible device, maintenance method for maintaining network compatible device, program, medium storing program thereon, and maintenance system thereof
CN103238295A (en) System and method for hosting encrypted monitoring data
CN1411291A (en) Wireless equipment network managing method using multiple verification servers, verification server equipment and computer program product
CN110138731B (en) Network anti-attack method based on big data
US11323883B2 (en) Pattern driven selective sensor authentication for internet of things
JP2007028015A (en) Program, system and method for time stamp verification, and time stamp generation request method
CN105429985A (en) MAC (Media Access Control) authentication method, authentication device and MAC encryption method for WIFI (Wireless Fidelity) module and WIFI module
US20170250806A1 (en) Methods and resources for generating secure communications
CN113381984A (en) Data processing method, device and system, electronic equipment and storage medium
CN105933467A (en) Client host information change periodic detection method
JP2019057867A (en) Encryption communication system
CN102291237A (en) Information protection apparatus, information protection method, and storage medium
CN111444496A (en) Application control method, device, equipment and storage medium
CN114390492A (en) Timing method, device, equipment and storage medium
US20210103439A1 (en) Methods, wireless modules, electronic devices and server devices
JP2015091070A (en) Semiconductor element, information terminal, semiconductor element control method and information terminal control method

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221221

Address after: Room 01-214-19, Floor 2, Building 13, Yard 53, Yanqi Street, Yanqi Economic Development Zone, Huairou District, Beijing 101400

Applicant after: Zhongshang Minzhi Technology Engineering Group Co.,Ltd.

Address before: 518057 first floor, No. 2 Kefeng Road, high tech Zone, Nanshan District, Shenzhen, Guangdong

Applicant before: Li Bingyong

GR01 Patent grant
GR01 Patent grant