CN113904969A - Performance detection method of Internet of things equipment - Google Patents

Performance detection method of Internet of things equipment Download PDF

Info

Publication number
CN113904969A
CN113904969A CN202111142458.7A CN202111142458A CN113904969A CN 113904969 A CN113904969 A CN 113904969A CN 202111142458 A CN202111142458 A CN 202111142458A CN 113904969 A CN113904969 A CN 113904969A
Authority
CN
China
Prior art keywords
internet
things
equipment
production
random number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111142458.7A
Other languages
Chinese (zh)
Other versions
CN113904969B (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202111142458.7A priority Critical patent/CN113904969B/en
Publication of CN113904969A publication Critical patent/CN113904969A/en
Application granted granted Critical
Publication of CN113904969B publication Critical patent/CN113904969B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • 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
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention belongs to the technical field of household appliances, and particularly relates to a performance detection method of an internet of things device. The present invention is directed to solving the problems of the prior art. According to the method, a communication key is determined between a production and test terminal and an internet of things device through a wireless link between the production and test terminal and the internet of things device, then after the internet of things device enters a wireless production and test mode, the production and test terminal sends a production and test command based on encryption of the communication key to the internet of things device, then the internet of things device carries out performance detection, and finally the production and test terminal obtains a detection result based on encryption of the communication key sent by the internet of things device. In the technical scheme, the production testing terminal is communicated with the Internet of things equipment through the wireless link and performs encryption communication interaction, so that the mode that production testing can be realized only through large-scale wiring and hardware support in the prior art is avoided, and the production testing efficiency is improved.

Description

Performance detection method of Internet of things equipment
Technical Field
The embodiment of the invention belongs to the technical field of detection, and particularly relates to a performance detection method of an internet of things device.
Background
The performance detection of the industrial internet of things equipment refers to the test of the performance of the internet of things equipment by a supplier when the supplier leaves a factory so as to realize the purposes of understanding and upgrading the parameter performance of the industrial internet of things equipment, and has important significance for improving the product quality.
In the prior art, performance detection of the equipment in the internet of things is performed in a mode of complete machine detection based on a router, and perforation needs to be performed on a production line of the equipment in the internet of things, and wiring is performed with the router so as to achieve detection, so that the purpose of complete machine testing is achieved.
However, in practical applications, the above solutions mainly depend on routers, require full production line coverage, and meanwhile, the router connection load and the performance are in an inverse relationship, and the types and the performances of the routers are different, which easily causes via blocking, and requires large-scale wiring and hardware support, and the implementation manner is cumbersome.
Disclosure of Invention
In order to solve the above problems in the prior art, that is, to solve the problems of poor detection effect and complicated detection steps derived from detection of an internet of things device based on a router, an embodiment of the present invention provides a performance detection method for an internet of things device, which is applied to a production test terminal, and the method includes:
determining a communication key between the production and test terminal and the Internet of things equipment through a wireless link between the production and test terminal and the Internet of things equipment;
after the IOT equipment enters a wireless production test mode, sending a production test command encrypted based on the communication key to the IOT equipment, wherein the production test command is used for indicating the IOT equipment to carry out performance detection;
and receiving a detection result which is sent by the equipment of the Internet of things and is encrypted based on the communication key, wherein the detection result indicates the performance of the equipment of the Internet of things.
In a preferred technical solution of the method for detecting performance of an internet of things device, the determining a communication key between the production terminal and the internet of things device through a wireless link with the internet of things device includes:
sending a first random number generated by the production testing terminal to the Internet of things equipment;
receiving a second random number sent by the equipment of the Internet of things, an identifier of the equipment of the Internet of things and a result of whether the equipment of the Internet of things supports an equipment key;
and determining the communication key according to the first random number, the second random number, the identifier of the internet of things equipment and the result of whether the internet of things equipment supports the equipment key.
In a preferred technical solution of the method for detecting performance of an internet of things device, the determining the communication key according to the first random number, the second random number, the identifier of the internet of things device, and a result of whether the internet of things device supports a device key includes:
if the equipment key is supported by the equipment of the Internet of things, determining an equipment key corresponding to the identifier of the equipment of the Internet of things according to the identifier of the equipment of the Internet of things, and determining the communication key according to the first random number, the second random number and the equipment key;
and if the equipment key is not supported by the Internet of things equipment, determining the communication key according to the first random number and the second random number.
In a preferred technical solution of the performance detection method of the internet of things device, the method further includes:
if the equipment key is supported by the equipment of the Internet of things, generating a first signature according to the first random number, the second random number and the equipment key, wherein the first signature is used for determining identity authentication between the equipment of the Internet of things and the production and measurement terminal;
and if the equipment key is not supported by the equipment of the Internet of things, determining that the first signature is set to be null.
In a preferred technical solution of the performance detection method of the internet of things device, the method further includes:
sending the first signature encrypted based on the communication key to the internet of things device;
acquiring an identity authentication result sent by the equipment of the internet of things, wherein the identity authentication result is determined according to the first signature and the second signature of the equipment of the internet of things and comprises any one of the following steps: the identity authentication between the production and measurement terminal and the equipment of the Internet of things is passed, the identity authentication between the production and measurement terminal and the equipment of the Internet of things is not passed, and the identity authentication between the production and measurement terminal and the equipment of the Internet of things is not needed.
In a preferred technical solution of the performance detection method of the internet of things device, the method further includes:
sending a wireless production and test request encrypted based on the communication key to the equipment of the Internet of things, wherein the wireless production and test request is used for requesting to test the equipment of the Internet of things;
receiving a first request result which is sent back by the equipment of the Internet of things and encrypted based on the communication key, wherein the first request result is used for indicating that the equipment of the Internet of things enters a wireless production test mode;
sending a production test quitting request encrypted based on the communication key to the equipment of the Internet of things, wherein the production test quitting request is used for requesting the equipment of the Internet of things to quit a production test mode;
and receiving a second request result which is sent back by the equipment of the Internet of things and is encrypted based on the communication key, wherein the second request result is used for indicating that the equipment of the Internet of things exits the wireless production test mode.
The embodiment of the invention provides a performance detection method of an internet of things device, which is applied to the internet of things device, wherein the internet of things device comprises the following steps: an Internet of things module and a backplane, the method comprising:
the Internet of things module determines a communication key between the production and test terminal and the Internet of things equipment through a wireless link between the production and test terminal and the production and test terminal;
after the IOT equipment enters a wireless production test mode, the IOT module acquires a production test command encrypted by the production test terminal based on the communication key, and the production test command is used for indicating the IOT equipment to perform performance detection;
the bottom plate detects the performance of the equipment of the Internet of things according to the production test command to obtain a detection result, and the detection result indicates the performance of the equipment of the Internet of things;
and the Internet of things module sends a detection result encrypted based on the communication key to the production and test terminal.
In a preferred technical solution of the method for detecting performance of an internet of things device, the determining, by the internet of things module, a communication key between a production terminal and the internet of things device through a wireless link with the production terminal includes:
the Internet of things module receives a first random number sent by the production and test terminal;
the Internet of things module sends a second random number generated by the Internet of things module, an identifier of the Internet of things equipment and a result of whether the Internet of things equipment supports an equipment key to the production and measurement terminal;
the Internet of things module acquires a first signature which is sent by the production and test terminal and encrypted based on the communication key;
determining the communication key according to the first signature, the first random number and the second random number.
In a preferable embodiment of the method for detecting performance of an internet of things device, the determining the communication key according to the first signature, the first random number, and the second random number includes:
if the first signature is not null, the Internet of things module generates a third random number according to the first random number and the second random number;
the Internet of things module sends the third random number to the bottom plate;
the bottom board determines the communication key according to the third random number and the device key;
and if the first signature is null, the Internet of things module determines the communication key according to the first random number and the second random number.
In a preferred technical solution of the performance detection method of the internet of things device, the method further includes:
if the first signature is not null, the Internet of things module generates a fourth random number according to the first random number and the second random number;
the Internet of things module sends the fourth random number to the bottom plate;
the bottom plate generates a second signature according to the fourth random number;
the bottom plate sends the second signature to the Internet of things module;
the internet of things module generates an identity authentication result according to the first signature and the second signature, wherein the identity authentication result comprises any one of the following: the identity authentication between the production and test terminal and the Internet of things equipment is passed and the identity authentication between the production and test terminal and the Internet of things equipment is not passed;
and if the first signature is null, the Internet of things module generates the identity authentication result, and the identity authentication result is used for indicating that identity authentication is not needed between the production and test terminal and the Internet of things equipment.
In a preferred technical solution of the performance detection method of the internet of things device, the method further includes:
and the Internet of things module sends the identity authentication result encrypted based on the communication key to the production and test terminal.
In a preferred technical solution of the performance detection method of the internet of things device, the method further includes:
acquiring a wireless production and test request sent by production equipment and encrypted based on the communication key, wherein the wireless production and test request is used for requesting to test the Internet of things equipment;
sending a first request result encrypted based on the communication key to the production equipment, wherein the first request result is used for indicating that the Internet of things equipment enters a wireless production test mode;
receiving a production test quitting request which is sent by the production equipment and encrypted based on the communication key, wherein the production test quitting request is used for requesting the Internet of things equipment to quit a production test mode;
and returning a second request result encrypted based on the communication key to the production equipment, wherein the second request result is used for indicating that the internet of things equipment exits the wireless production test mode.
The embodiment of the invention also provides a performance detection device of the internet of things equipment, which is applied to a production test terminal and comprises the following components: the device comprises a determining module, a sending module and an obtaining module;
the determining module is used for determining a communication key between the production and test terminal and the Internet of things equipment through a wireless link between the production and test terminal and the Internet of things equipment;
the sending module is used for sending a production and test command encrypted based on the communication key to the internet of things equipment after the internet of things equipment enters a wireless production and test mode, and the production and test command is used for indicating the internet of things equipment to perform performance detection;
the obtaining module is configured to receive a detection result sent by the equipment of the internet of things and encrypted based on the communication key, where the detection result indicates performance of the equipment of the internet of things.
In an preferable technical solution of the performance detection method of the internet of things, the determining module is specifically configured to:
sending a first random number generated by the production testing terminal to the Internet of things equipment;
receiving a second random number sent by the equipment of the Internet of things, an identifier of the equipment of the Internet of things and a result of whether the equipment of the Internet of things supports an equipment key;
and determining the communication key according to the first random number, the second random number, the identifier of the internet of things equipment and the result of whether the internet of things equipment supports the equipment key.
In a preferred technical solution of the performance detection method for the internet of things, the determining module determines the communication key according to the first random number, the second random number, the identifier of the internet of things device, and a result of whether the internet of things device supports a device key, and is specifically configured to:
if the equipment key is supported by the equipment of the Internet of things, determining an equipment key corresponding to the identifier of the equipment of the Internet of things according to the identifier of the equipment of the Internet of things, and determining the communication key according to the first random number, the second random number and the equipment key;
and if the equipment key is not supported by the Internet of things equipment, determining the communication key according to the first random number and the second random number.
In a preferred technical solution of the performance detection method of the internet of things, the determining module is further configured to:
if the equipment key is supported by the equipment of the Internet of things, generating a first signature according to the first random number, the second random number and the equipment key, wherein the first signature is used for determining identity authentication between the equipment of the Internet of things and the production and measurement terminal;
and if the equipment key is not supported by the equipment of the Internet of things, determining that the first signature is set to be null.
In a preferred technical solution of the performance detection method for the internet of things device, the sending module is further configured to send the first signature encrypted based on the communication key to the internet of things device;
the obtaining module is further configured to obtain an identity authentication result sent by the equipment of the internet of things, where the identity authentication result is determined according to the first signature and the second signature of the equipment of the internet of things, and includes any one of the following: the identity authentication between the production and measurement terminal and the equipment of the Internet of things is passed, the identity authentication between the production and measurement terminal and the equipment of the Internet of things is not passed, and the identity authentication between the production and measurement terminal and the equipment of the Internet of things is not needed.
In a preferred technical solution of the performance detection method for the internet of things device, the sending module is further configured to send a wireless production test request encrypted based on the communication key to the internet of things device, where the wireless production test request is used to request testing of the internet of things device;
the obtaining module is further configured to receive a first request result, which is sent back by the internet of things device and encrypted based on the communication key, where the first request result is used to indicate that the internet of things device has entered a wireless production test mode;
the sending module is further configured to send a production test quitting request encrypted based on the communication key to the internet of things device, where the production test quitting request is used to request the internet of things device to quit a production test mode;
the obtaining module is further configured to receive a second request result, which is returned by the internet of things device and encrypted based on the communication key, where the second request result is used to indicate that the internet of things device has exited the wireless production test mode.
The embodiment of the invention provides a performance detection device of an internet of things device, which is applied to the internet of things device, and the internet of things device comprises: thing allies oneself with module and bottom plate, the device includes: the device comprises a determining module, an obtaining module, a processing module and a sending module;
the determining module is used for determining a communication key between the production and test terminal and the Internet of things equipment through a wireless link between the production and test terminal and the production and test terminal;
the obtaining module is configured to obtain a production test command encrypted by the production test terminal based on the communication key after the internet of things device enters a wireless production test mode, where the production test command is used to instruct the internet of things device to perform performance detection;
the processing module is used for detecting the performance of the equipment connected with the Internet of things according to the production and test command to obtain a detection result, and the detection result indicates the performance of the equipment connected with the Internet of things;
and the sending module is used for sending the detection result encrypted based on the communication key to the production and test terminal.
In an preferable technical solution of the performance detection method of the internet of things, the determining module is specifically configured to:
receiving a first random number sent by the production and test terminal;
sending a second random number generated by the Internet of things module, the identifier of the Internet of things equipment and a result of whether the Internet of things equipment supports an equipment key to the production and measurement terminal;
acquiring a first signature which is sent by the production and test terminal and encrypted based on the communication key;
determining the communication key according to the first signature, the first random number and the second random number.
In a preferred technical solution of the performance detection method for the internet of things, the determining module determines the communication key according to the first signature, the first random number, and the second random number, and is specifically configured to:
if the first signature is not null, generating a third random number according to the first random number and the second random number;
transmitting the third random number to the backplane;
determining the communication key according to the third random number and the device key;
and if the first signature is null, determining the communication key according to the first random number and the second random number.
In a preferred technical solution of the performance detection method of the internet of things, the determining module is further configured to:
if the first signature is not null, generating a fourth random number according to the first random number and the second random number;
transmitting the fourth random number to the backplane;
generating a second signature according to the fourth random number;
sending the second signature to the internet of things module;
generating an identity authentication result according to the first signature and the second signature, wherein the identity authentication result comprises any one of the following: the identity authentication between the production and test terminal and the Internet of things equipment is passed and the identity authentication between the production and test terminal and the Internet of things equipment is not passed;
and if the first signature is null, generating the identity authentication result, wherein the identity authentication result is used for indicating that identity authentication is not needed between the production and test terminal and the Internet of things equipment.
In a preferred technical solution of the performance detection method for the internet of things, the sending module is further configured to send the identity authentication result encrypted based on the communication key to the production and measurement terminal.
In a preferred technical solution of the performance detection method of the internet of things device, the obtaining module is further configured to obtain a wireless production test request sent by a production device and encrypted based on the communication key, where the wireless production test request is used to request testing of the internet of things device;
the sending module is further configured to send a first request result encrypted based on the communication key to the production equipment, where the first request result is used to indicate that the internet of things equipment has entered a wireless production and measurement mode;
the obtaining module is further configured to receive a production quitting test request sent by the production equipment and encrypted based on the communication key, where the production quitting test request is used to request the internet of things equipment to quit a production test mode;
the sending module is further configured to return a second request result encrypted based on the communication key to the production equipment, where the second request result is used to indicate that the internet of things equipment has exited the wireless production and measurement mode.
An embodiment of the present invention further provides a production test terminal, including: a processor, a memory;
the memory stores computer-executable instructions;
the processor executes the computer execution instruction, so that the production and test terminal executes the performance detection method applied to the Internet of things equipment of the production and test terminal.
The embodiment of the invention also provides an internet of things device, which comprises: a processor, a memory;
the memory stores computer-executable instructions;
the processor executes the production testing terminal execution instruction, so that the internet of things equipment executes the performance detection method applied to the internet of things equipment.
The embodiment of the present invention further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the computer-executable instructions are used to implement the performance detection method applied to the internet of things equipment of the production test terminal, or the performance detection method applied to the internet of things equipment of the internet of things equipment.
The embodiment of the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program is used to implement the performance detection method applied to the internet of things device of the production test terminal, or the computer program is used to implement the performance detection method applied to the internet of things device of the internet of things device.
As can be understood by those skilled in the art, in the method for detecting performance of an internet of things device provided in the embodiment of the present invention, a communication key is determined between a production terminal and an internet of things device through a wireless link between the production terminal and the internet of things device, then after the internet of things device enters a wireless production test mode, the production terminal sends a production test command based on encryption of the communication key to the internet of things device, then the internet of things device performs performance detection, and finally the production terminal obtains a detection result based on encryption of the communication key sent by the internet of things device. In the technical scheme, the production testing terminal is communicated with the Internet of things equipment through the wireless link and performs encryption communication interaction, so that the mode that production testing can be realized only through large-scale wiring and hardware support in the prior art is avoided, and the production testing efficiency is improved.
Drawings
The preferred embodiment of the performance detection method of the equipment of the internet of things of the present invention is described below with reference to the accompanying drawings. The attached drawings are as follows:
fig. 1 is a schematic view of an application scenario of a performance detection method for an internet of things device according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of a method for detecting performance of an internet of things device according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a second method for detecting performance of an internet of things device according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of a third method for detecting performance of an internet of things device according to an embodiment of the present invention;
fig. 5 is a first schematic structural diagram of a performance detection apparatus of an internet of things device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram ii of a performance detection apparatus of an internet of things device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a production test terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an internet of things device provided by an embodiment of the present invention.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
It should be understood by those skilled in the art that these embodiments are only for explaining the technical principle of the present invention, and are not intended to limit the scope of the present invention. And can be adjusted as needed by those skilled in the art to suit particular applications.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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.
Before describing the embodiments of the present invention, the technical background of the embodiments of the present invention is explained first:
the industrial internet of things equipment detection refers to the test of the performance of the internet of things equipment by a supplier when the supplier leaves a factory so as to realize the purposes of understanding and upgrading the parameter performance of the industrial internet of things equipment, and has important significance for improving the product quality.
The equipment of the internet of things in the prior art detects and carries out the selective examination through the mode of wiring that punches, produces the line and need punch, the wiring detects, and the operation is complicated, and the detection instrument is the consumer moreover, and the industry also can save the test cost simultaneously, raises the efficiency. Meanwhile, the existing industrial complete machine program is burnt by an equipment supplier of the internet of things when leaving a factory, has similar appearance, only has partial program difference, has the defects of heavy management pressure of maintaining a plurality of special numbers and a supply chain, is easy to mix during production line production, has quality problems, and hopes that the Over-the-Air Technology (OTA) upgrading of the internet of things equipment can be carried out, and the unification of the universal internet of things equipment is realized.
Specifically, the complete machine detection scheme based on the router mainly depends on the router, the full production line coverage is needed, meanwhile, the connection load of the router and the performance are in an inverse relation, the types and the performances of the router are different, and the path blocking is easily caused. But also requires extensive wiring and hardware support.
In order to solve the above technical problem, fig. 1 is a schematic view of an application scenario of a performance detection method for an internet of things device according to an embodiment of the present invention, and as shown in fig. 1, the application scenario includes: an internet of things device 11 and a production and test terminal 12.
The internet of things device 11 may be a washing machine, an air conditioner, a refrigerator, a dryer, or the like.
In a possible implementation, the production and test terminal 12 searches for a hotspot of an internet of things module on the internet of things device 11 through Media Access Control (MAC), and wirelessly connects through a Transmission Control Protocol (TCP), and then the production and test terminal 12 performs identity verification with the internet of things device 11 to determine that the production and test terminal 12 can Control the internet of things device 11 to perform production and test.
Further, after the identity authentication is successful, the production and test terminal 12 sends a wireless production and test request to the equipment 11 of the internet of things, after the equipment 11 of the internet of things receives the wireless production and test request, the bottom plate of the equipment 11 of the internet of things is informed to enter a production and test mode, then the bottom plate of the equipment 11 of the internet of things agrees to enter the production and test mode, then the production and test terminal 12 sends a production and test command to the equipment 11 of the internet of things, and the equipment 11 of the internet of things performs performance test on the equipment 11 of the internet of things according to the production and test command, determines a test result, and returns the test result to the production and test terminal 12.
In the process of identity authentication, a communication key is determined between the production and measurement terminal 12 and the internet of things device 11, and then during interaction, the interaction information is encrypted through the communication key to achieve security of the interaction information, which is detailed in the following embodiments.
In view of the above problems, the inventive concept of the present invention is as follows: in the prior art, when the internet of things equipment is produced, a router needs to be used for carrying out full production line coverage, meanwhile, the connection load of the router is in inverse proportion to the performance, the types and the performances of the router are different, the route is easily blocked, large-scale wiring and hardware support are needed, if the router is not used, the router is directly connected with an internet of things module of the internet of things equipment through a production testing terminal, a wireless link is established for communication, in the communication process, in order to prevent the occurrence of information leakage and the like, during identity authentication, the generation of a communication key and the encryption of subsequent information are carried out, and the problems in the prior art can be solved.
The following describes the technical solution of the present invention and how to solve the above technical problems with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic flow diagram of a first embodiment of a method for detecting performance of an internet of things device according to an embodiment of the present invention, which is illustrated in fig. 2by interaction between a production test terminal and the internet of things device, where the internet of things device includes an internet of things module and a backplane, and the method for detecting performance of the internet of things device includes the following steps:
and step 21, the production and test terminal determines a communication key between the production and test terminal and the Internet of things device through a wireless link between the production and test terminal and the Internet of things device.
In this step, the user needs to establish a wireless link between the production and measurement terminal and the equipment for internet of things, so as to encrypt the interaction information in the communication process between the production and measurement terminal and the equipment for internet of things.
In one implementation, a user starts local area network equipment scanning by triggering a production and test terminal, scanning the last four digits of an MAC (media access control) by using a code scanning gun of the production and test terminal, then searches for a hot spot of an internet of things module of the internet of things equipment, and establishes connection, and at the moment, no configuration information is powered on the internet of things equipment and is in a Soft AP (Soft-AP) mode.
Wherein the wireless link may be a path through a TCP connection.
It should be understood that the production testing terminal supports multi-client linking, that is, multiple internet of things devices can be detected simultaneously, and the embodiment of the present invention is described in detail with one internet of things device.
Optionally, after the wireless link is established, the production and measurement terminal starts to authenticate identity information with the equipment of the Internet of Things, so as to ensure information security during subsequent production of the equipment of the Internet of Things, that is, connection between a Software Development Kit (SDK) for production and measurement of the Internet of Things (IoT) and the equipment of the Internet of Things is not allowed.
In step 21, when interacting with the internet of things device at the production testing terminal side, the following operations are performed:
step 1, sending a first random number generated by a production testing terminal to an Internet of things device.
Wherein the first random number may be a random number 1(4 Bytes).
And step 2, receiving a second random number sent by the Internet of things equipment, the identifier of the Internet of things equipment and a result of whether the Internet of things equipment supports the equipment key.
Optionally, after sending the first random number to the equipment of the internet of things, the equipment of the internet of things generates a second random number, which may be random number 2, and sends the second random number to the production and measurement terminal, and the equipment of the internet of things searches for an identifier of the equipment of the internet of things, determines whether the equipment key is supported, and returns the result to the production and measurement terminal.
And step 3, determining a communication key according to the first random number, the second random number, the identification of the Internet of things equipment and the result of whether the Internet of things equipment supports the equipment key.
In one possible implementation, at initialization, a list of type identities TypeId and device keys DeviceKey is loaded on the production terminal. The list describes the identifiers of the multiple internet of things devices and device keys corresponding to the multiple internet of things devices.
Specifically, according to the identifier of the internet of things device, the device key corresponding to the identifier of the internet of things device is found in the list.
And then, calculating the communication key by using different algorithms according to the first random number, the identifier of the second random number and the result of whether the equipment key is supported by the equipment of the Internet of things.
In a possible implementation, in this step, if the equipment key is supported by the equipment of the internet of things, the equipment key corresponding to the identifier of the equipment of the internet of things is determined according to the identifier of the equipment of the internet of things, and the communication key is determined according to the first random number, the second random number and the equipment key.
Optionally, when the physical connection device supports the device key, the generation and measurement terminal generates the communication key according to the first random number, the second random number and the device key, and the algorithm is implemented as MD5 (random number 1, random number 2, device key).
It should be understood that the algorithm of the present embodiment uses ASCII code values (32Bytes) directly for the device keys to be spliced.
In another possible implementation, in this step, if the equipment key is not supported by the internet of things device, the communication key is determined according to the first random number and the second random number.
Optionally, when the physical connection device does not support the device key, the generation and measurement terminal generates the communication key according to the first random number and the second random number, and the algorithm is implemented as MD5 (random number 2, random number 1).
In the process, if the equipment key is supported by the equipment of the Internet of things, generating a first signature according to the first random number, the second random number and the equipment key, wherein the first signature is used for determining the identity authentication between the equipment of the Internet of things and the production and measurement terminal; and if the equipment key is not supported by the equipment of the Internet of things, determining that the first signature is set to be null.
Specifically, in one possible implementation, if the device key is supported by the internet of things device, the algorithm by which the first signature is generated is implemented as MD5 (random number 2, random number 1, device key).
In addition, in another possible implementation, if the device key is not supported by the internet of things device, the first signature is set to null, that is, the first signature may not exist.
And step 4, sending a first signature encrypted based on the communication key to the Internet of things equipment.
Optionally, after the first signature and the communication key are determined in the above steps, the first signature is encrypted by using the communication key, and after the first signature is encrypted, the first signature is sent to the internet of things device.
In step 4 and in the following processes, the encryption algorithm related to the communication key may be based on a Universal Serial Interface (USS) small-cycle communication encryption algorithm, and the key is the communication key.
And 5, acquiring an identity authentication result sent by the equipment of the internet of things, wherein the identity authentication result is determined according to the first signature and the second signature of the equipment of the internet of things and comprises any one of the following steps: the identity authentication between the production and measurement terminal and the equipment of the Internet of things is passed, the identity authentication between the production and measurement terminal and the equipment of the Internet of things is not passed, and the identity authentication between the production and measurement terminal and the equipment of the Internet of things is not needed.
Optionally, the second signature is determined at the equipment of the internet of things, and the equipment of the internet of things determines the identity authentication result between the production test terminal and the equipment of the internet of things according to the first signature and the second signature.
In one possible implementation, as for the identity authentication result, after the identity authentication between the production testing terminal and the internet of things equipment passes, the production testing of the internet of things equipment can be normally carried out; when the identity authentication between the production and measurement terminal and the equipment of the Internet of things is not passed, a wireless link between the production and measurement terminal and the equipment of the Internet of things is disconnected; and when identity authentication is not needed between the production testing terminal and the equipment of the Internet of things, responding to the operation of a user, and judging whether to continue production testing on the equipment of the Internet of things or stop production testing on the equipment of the Internet of things.
In this step 21, when interacting with the production terminal on the side of the internet of things device (the internet of things module and the backplane), the following operations are performed (the following description of the steps that are not careless may refer to the interaction process on the side of the production terminal):
step 1, an Internet of things module receives a first random number sent by a production testing terminal.
And step 2, the Internet of things module sends a second random number generated by the Internet of things module, the identification of the Internet of things equipment and a result of whether the Internet of things equipment supports the equipment key to the production and measurement terminal.
The Internet of things module searches the identification of the Internet of things equipment and confirms whether the equipment key is supported or not in the bottom plate.
And 3, the Internet of things module acquires a first signature which is sent by the production and measurement terminal and encrypted based on the communication key.
And step 4, determining a communication key according to the first signature, the first random number and the second random number.
Specifically, if the first signature is not null (that is, the equipment key is supported by the equipment in the internet of things), the module in the internet of things generates a third random number according to the first random number and the second random number, the module in the internet of things sends the third random number to the bottom plate, and the bottom plate determines the communication key according to the third random number and the equipment key.
In one possible implementation, if the device key is supported by the internet of things device, the internet of things module calculates a third random number (e.g., random number 3) according to the first random number and the second random number, and the algorithm is implemented as MD5 (random number 1, random number 2). And then sending a random number 3 to the bottom plate, reversely calculating the random number 3 by the bottom plate to obtain a random number 1 and a random number 2, and then generating a communication key by the bottom plate according to the random number 3 and the equipment key.
In addition, if the first signature is null (that is, the equipment key is not supported by the equipment of the internet of things), the internet of things module determines the communication key according to the first random number and the second random number.
In one possible implementation, if the equipment key is not supported by the internet of things device, the internet of things module calculates the communication key according to the first random number and the second random number, and the algorithm is implemented as MD5 (random number 2, random number 1).
In the process, if the first signature is not empty, the internet of things module generates a fourth random number according to the first random number and the second random number, the internet of things module sends the fourth random number to the bottom plate, then the bottom plate generates a second signature according to the fourth random number, and the bottom plate sends the second signature to the internet of things module; the Internet of things module generates an identity authentication result according to the first signature and the second signature, wherein the identity authentication result comprises any one of the following: and the identity authentication between the production and measurement terminal and the equipment of the Internet of things is passed and the identity authentication between the production and measurement terminal and the equipment of the Internet of things is not passed.
In a possible implementation, if the equipment key is supported by the equipment of the internet of things, the second signature can be obtained through the calculation, and the result of the identity authentication is determined by the module of the internet of things according to the comparison between the first signature and the second signature, namely when the first signature and the second signature are consistent, the identity authentication is passed; when the first signature and the second signature are consistent, the identity authentication is not passed, and the identity authentication result can be that an error code 30004 is returned, and then the wireless link between the terminal and the internet of things device is disconnected.
In addition, if the first signature is empty, the Internet of things module generates an identity authentication result, and the identity authentication result is used for indicating that identity authentication is not needed between the production testing terminal and the Internet of things equipment.
That is, if the equipment key is not supported by the equipment of the internet of things, the next step of the production and measurement terminal and the equipment of the internet of things is referred to the above embodiment without the need of identity authentication.
After step 21, the production test terminal sends a wireless production test request encrypted based on the communication key to the internet of things device.
The wireless production test request is used for requesting the test of the Internet of things equipment.
In this step, the above process already realizes the verification of the identity authentication information between the production test terminal and the equipment in the internet of things and the determination of the communication key, and at this time, the equipment in the internet of things is tested in response to the wireless production test request sent by the production test terminal and encrypted based on the communication key.
Optionally, the internet of things device decrypts the wireless production test request encrypted based on the communication key, notifies the bottom plate to enter a production test mode, and waits for the bottom plate of the internet of things device to reply.
Specifically, the bottom plate enters a wireless production testing mode, and sends a wireless production testing mode response to the Internet of things module.
In addition, if the bottom board refuses to enter the production test mode, the Internet of things equipment responds to an encrypted frame of an application layer error code 0x0001 of the wireless production test request of the production test terminal, keeps the current state of the Internet of things equipment unchanged, and waits for the wireless production test request sent by the production test terminal next time.
It should be understood that: the backplane will enter the production test mode only when the backplane correctly responds to the wireless production test start request, and a time length can be preset as reception timeout, for example, 10 minutes; receiving uplink and downlink frames in a production test mode, and refreshing a receiving overtime timer; except for the production test related command, other commands do not respond; the production test mode cannot be configured; the internet of things device can be always in the AP mode and does not exit.
Further, a first request result of the internet of things device encrypted based on the communication key is received.
The system comprises an Internet of things module, a production test terminal and a wireless production test mode response module, wherein the Internet of things module sends the wireless production test mode response, namely a first request result to the production test terminal, and the first request result is used for indicating that the Internet of things equipment enters the wireless production test mode.
And step 22, after the Internet of things equipment enters the wireless production test mode, the production test terminal sends a production test command encrypted based on the communication key to the Internet of things equipment.
Wherein, the production test command is used for instructing the internet of things device to perform performance test, and the production test command can be a file in uwt format.
And step 23, the equipment of the Internet of things performs performance detection on the equipment of the Internet of things according to the production detection command to obtain a detection result.
Wherein the detection result indicates the performance of the equipment of the Internet of things.
Optionally, the internet of things module sends a package frame, which is packaged after the production test command is decrypted, to the bottom plate, the bottom plate performs production test according to the package frame to obtain a detection result, and the bottom plate sends the detection result to the internet of things module.
Specifically, production test unvarnished transmission data (uplink and downlink for explanation) can be used, a production test terminal sends the data to an internet of things module, the internet of things module decrypts the data, encapsulates the frame again and sends the frame to a bottom plate, the bottom plate replies a confirmation frame, and the bottom plate sends unvarnished transmission data to the internet of things module.
And 24, the Internet of things module sends a detection result encrypted based on the communication key to the production and test terminal.
In this step, the internet of things module encrypts the detection result based on the communication key and sends the detection result to the production and test terminal through the wireless link, so that a user can observe and check the detection result on the production and test terminal and solve possible problems of the detection result, and performance and/or quality of the internet of things equipment are/is improved.
Specifically, in connection with the above example, the internet of things module replies to the confirmation frame, and then encrypts the transparent transmission data and sends the encrypted transparent transmission data to the production and measurement terminal.
Further, after step 24, the equipment of the internet of things sends an exit production test request encrypted based on the communication key to the equipment of the internet of things, and the exit production test request is used for requesting the equipment of the internet of things to exit the production test mode.
The production test quitting request can be responded all the time, if the production test quitting terminal initiatively initiates the production test quitting, and the bottom plate does not respond correctly, the Internet of things module and the bottom plate can not quit the production test mode, so that the bottom plate can normally quit the production test mode.
In the production test mode, the production test terminal does not receive data exiting the wireless production test mode after exceeding a preset time (for example, 10 minutes), the Internet of things equipment sends an exiting production test frame to the bottom plate, and if the bottom plate of the computer plate does not correctly respond, the Internet of things equipment exits the production test mode, so that the logic of the Internet of things equipment is normal, and the exiting production test frame cannot be sent to the production test terminal.
That is, the production test terminal receives a second request result which is returned by the internet of things device and is encrypted based on the communication key, and the second request result is used for indicating that the internet of things device exits the wireless production test mode.
The performance detection method of the internet of things equipment provided by the embodiment of the invention is applied to a production test terminal and the internet of things equipment, a communication key is determined between the production test terminal and the internet of things equipment through a wireless link between the production test terminal and the internet of things equipment, then the production test terminal sends a production test command based on encryption of the communication key to the internet of things equipment after the internet of things equipment enters a wireless production test mode, then the internet of things equipment carries out performance detection, and finally the production test terminal obtains a detection result based on encryption of the communication key sent by the internet of things equipment. In the technical scheme, the production testing terminal is communicated with the Internet of things equipment through the wireless link and performs encryption communication interaction, so that the mode that production testing can be realized only through large-scale wiring and hardware support in the prior art is avoided, and the production testing efficiency is improved.
Further, fig. 3 is a schematic flow diagram of a second embodiment of the method for detecting performance of an internet of things device according to the embodiment of the present invention. As shown in fig. 3, a possible detailed implementation step provided in an embodiment of the present invention is that an internet of things device may be divided into an internet of things module and a bottom plate, as follows:
step 1, powering on an Internet of things module to automatically enter a configuration mode;
step 2, the Internet of things module sends handshake and initialization to the bottom plate;
step 3, the Internet of things module sends a network connection state notification to the bottom plate;
step 4, the bottom plate controls an indicator light or voice of the bottom plate to prompt the network connection state;
step 5, the production testing terminal establishes a wireless link with the Internet of things module by scanning the four last digits of the MAC of the Internet of things module;
step 6, verifying version information of the production testing terminal and the Internet of things module (detailed description by figure 4);
7, the production testing terminal sends an encrypted wireless production testing request to the Internet of things module;
step 8, the Internet of things module informs the bottom plate to start a wireless production test mode;
step 9, the bottom plate enters a wireless production test mode (or refuses to enter according to the actual situation);
step 10, the bottom plate sends a wireless production test mode response to the Internet of things module;
step 11, the Internet of things module informs the production testing terminal that the production testing terminal enters a wireless production testing mode;
step 12, the production testing terminal sends an encrypted production testing command to the Internet of things module;
step 13, the Internet of things module sends a package frame which is packaged after the production test command is decrypted to the bottom plate;
step 14, the bottom plate carries out production test according to the packaging frame to obtain a detection result;
step 15, the bottom plate sends the detection result to an Internet of things module;
step 16, the Internet of things module sends the encrypted detection result to a production and test terminal;
step 17, the production testing terminal sends an encrypted request for quitting the wireless production testing to the Internet of things module;
step 18, the Internet of things module informs the bottom plate to exit the production test mode;
step 19, the bottom plate exits the production test mode;
step 20, the bottom plate sends the quit production test mode to the Internet of things module;
step 21, the Internet of things module sends a quitted production test mode to a production test terminal;
and step 22, the production testing terminal disconnects the wireless link with the Internet of things module.
The performance detection method of the internet of things equipment provided by the embodiment of the invention is applied to a production detection terminal and a bottom plate and an internet of things module of the internet of things equipment, the internet of things module is electrified to automatically enter a configuration mode, then the internet of things module sends handshake and initialization to the bottom plate, the internet of things module sends a network connection state notification to the bottom plate, the bottom plate controls an indicator lamp or a voice to prompt the network connection state of the bottom plate, then the production detection terminal scans four digits behind an MAC (media access control) of the internet of things module and establishes a wireless link with the internet of things module, the production detection terminal and the internet of things module verify version information, then the production detection terminal sends an encrypted wireless production detection request to the internet of things module, then the internet of things module informs the bottom plate to start the wireless production detection mode, the bottom plate enters the wireless production detection mode (or refuses to enter according to actual conditions), the bottom plate sends a wireless production mode response to the internet of things module, and informs the production detection terminal to enter the wireless production detection mode, the production testing terminal sends an encrypted production testing command to the thing connection module, then the thing connection module sends a packaging frame which is packaged after the production testing command is decrypted to the bottom plate, the bottom plate conducts production testing according to the packaging frame to obtain a detection result, the bottom plate sends the detection result to the thing connection module, the thing connection module sends the encrypted detection result to the production testing terminal, then the production testing terminal sends an encrypted quit wireless production testing request to the thing connection module, the thing connection module informs the bottom plate to quit a production testing mode, the bottom plate quits the production testing mode, the bottom plate sends the quit production testing mode to the thing connection module, then the thing connection module sends the quit production testing mode to the production testing terminal, and the production testing terminal disconnects a wireless link with the thing connection module. According to the technical scheme, the wireless link established between the production testing terminal and the equipment of the Internet of things is used, and the communication key is determined and utilized in the communication process, so that the information safety during wireless interaction is realized, the production testing efficiency of the equipment of the Internet of things is improved, the complex steps of production testing in the prior art are avoided, and the production testing can be realized only by hardware support.
Further, fig. 4 is a schematic flow chart of a third embodiment of the method for detecting performance of an internet of things device according to the embodiment of the present invention. As shown in fig. 4, in the above fig. 3, the version information verification performed by the production test terminal and the internet of things module (also involving the interaction with the backplane) may be implemented by the following steps, as shown in fig. 4:
step 1, a production test terminal acquires an equipment key list;
the device key list comprises the identifications of a plurality of internet of things devices and device keys corresponding to all the internet of things modules;
step 2, generating a first random number by the production test terminal;
step 3, the production testing terminal sends a first random number to the Internet of things module;
step 4, generating a second random number by the Internet of things module;
step 5, the Internet of things module sends a second random number, a result of whether the Internet of things equipment supports the equipment key and an identifier of the Internet of things equipment to the production and measurement terminal;
step 6, the production testing terminal uses the identification of the Internet of things equipment to inquire an equipment key in an equipment key list;
step 7, generating a communication key by using the first random number, the second random number and the equipment key;
wherein this step is implemented by algorithm 1 (communication key MD5 (first random number, second random number, device key);
step 8, generating a first signature by using the first random number, the second random number and the device key;
wherein this step is implemented by algorithm 3 (signature MD5 (second random number, first random number, device key);
optionally, step 7-8 is a case that the type identifier supports the device key, and if not, the first random number and the second random number are used to generate the communication key, that is, algorithm 2 may be used (the communication key is MD5 (the second random number, the first random number), and the first signature is null;
optionally, in subsequent interaction, a communication key is used for encryption, and the algorithm may be algorithm 6(USS small-cycle communication encryption algorithm (private key is communication key));
9, the production testing terminal sends a first signature encrypted based on the communication key to the Internet of things module;
step 10, the Internet of things module generates a third random number according to the first random number and the second random number;
wherein this step is implemented by algorithm 4 (third random number ═ (first random number, second random);
step 11, the bottom plate obtains a third random;
step 12, the bottom plate calculates a communication key according to the third random number and the equipment key;
step 13, the Internet of things module generates a fourth random number according to the first random number and the second random number;
wherein this step is implemented by algorithm 5 (fourth random number ═ second random number, first random);
step 14, acquiring a fourth random by the bottom plate;
step 15, the bottom plate calculates a second signature according to the fourth random number;
step 16, the Internet of things module acquires a second signature;
step 17, the Internet of things module generates authentication passing information according to the first signature and the second signature;
wherein, the step can also fail, produce and authorize and fail the information;
optionally, if the device key is not supported, a communication key is generated by using the first random number and the second random number, and authentication pass information is directly returned, without verification of a signature, that is, the communication key may be generated by directly using algorithm 2 (communication key MD5 (second random number, first random number);
and step 18, the Internet of things module sends authentication passing information to the production and test terminal.
The performance detection method of the internet of things equipment provided by the embodiment of the invention is applied to a production terminal and a bottom plate and an internet of things module of the internet of things equipment, the production terminal acquires an equipment key list through the production terminal, the production terminal generates a first random number, then the production terminal sends the first random number to the internet of things module, the internet of things module generates a second random number, the internet of things module sends the second random number to the production terminal, a result that whether the internet of things equipment supports the equipment key and an identifier of the internet of things equipment, then the production terminal inquires the equipment key by using the identifier of the internet of things equipment, generates a communication key by using the first random number, the second random number and the equipment key, generates a first signature by using the first random number, the second random number and the equipment key, sends the first signature encrypted based on the communication key to the internet of things module, and the internet of things module generates a third random number according to the first random number and the second random number, then the bottom plate obtains a third random, the bottom plate calculates a communication key according to the third random number and the equipment key, the thing connection module generates a fourth random number according to the first random number and the second random number, the bottom plate obtains the fourth random, a second signature is calculated according to the fourth random number, then the thing connection module obtains the second signature, authentication passing information is generated according to the first signature and the second signature, and the thing connection module sends the authentication passing information to the production and measurement terminal. According to the technical scheme, the determination of the communication key between the production testing terminal and the internet of things equipment and the determination of the identity information are realized through the generation of the random number, and a foundation is provided for the subsequent performance detection of the internet of things equipment.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Fig. 5 is a schematic structural diagram of a first performance detection apparatus of an internet of things device according to an embodiment of the present invention, where the first performance detection apparatus of the internet of things device is applied to a production test terminal, and as shown in fig. 5, the apparatus includes: a determining module 51, a sending module 52 and an obtaining module 53;
a determining module 51, configured to determine a communication key between the production test terminal and the equipment in the internet of things through a wireless link with the equipment in the internet of things;
a sending module 52, configured to send a production test command encrypted based on a communication key to the equipment after the equipment in the internet of things enters the wireless production test mode, where the production test command is used to instruct the equipment in the internet of things to perform performance detection;
and the obtaining module 53 is configured to receive a detection result sent by the equipment in the internet of things and encrypted based on the communication key, where the detection result indicates performance of the equipment in the internet of things.
In a possible implementation of the embodiment of the present invention, the determining module 51 is specifically configured to:
sending a first random number generated by a production testing terminal to the Internet of things equipment;
receiving a second random number sent by the Internet of things equipment, an identifier of the Internet of things equipment and a result of whether the Internet of things equipment supports an equipment key;
and determining a communication key according to the first random number, the second random number, the identifier of the Internet of things equipment and the result of whether the Internet of things equipment supports the equipment key.
In this possible design, the determining module 51 determines the communication key according to the first random number, the second random number, the identifier of the internet of things device, and a result of whether the internet of things device supports the device key, and is specifically configured to:
if the equipment key is supported by the equipment of the Internet of things, determining the equipment key corresponding to the identifier of the equipment of the Internet of things according to the identifier of the equipment of the Internet of things, and determining a communication key according to the first random number, the second random number and the equipment key;
and if the equipment key is not supported by the Internet of things equipment, determining a communication key according to the first random number and the second random number.
Optionally, the determining module 51 is further configured to:
if the equipment key is supported by the equipment of the Internet of things, generating a first signature according to the first random number, the second random number and the equipment key, wherein the first signature is used for determining identity authentication between the equipment of the Internet of things and the production and measurement terminal;
and if the equipment key is not supported by the equipment of the Internet of things, determining that the first signature is set to be null.
Optionally, the sending module 52 is further configured to send a first signature encrypted based on the communication key to the internet of things device;
the obtaining module 53 is further configured to obtain an identity authentication result sent by the equipment in the internet of things, where the identity authentication result is determined according to the first signature and the second signature of the equipment in the internet of things, and includes any one of the following: the identity authentication between the production and measurement terminal and the equipment of the Internet of things is passed, the identity authentication between the production and measurement terminal and the equipment of the Internet of things is not passed, and the identity authentication between the production and measurement terminal and the equipment of the Internet of things is not needed.
In another possible implementation of the embodiment of the present invention, the sending module 52 is further configured to send a wireless production and test request encrypted based on a communication key to the equipment in the internet of things, where the wireless production and test request is used to request to test the equipment in the internet of things;
the obtaining module 53 is further configured to receive a first request result, which is returned by the internet of things device and encrypted based on the communication key, where the first request result is used to indicate that the internet of things device has entered the wireless production test mode;
the sending module 52 is further configured to send a production test quitting request encrypted based on the communication key to the equipment in the internet of things, where the production test quitting request is used to request the equipment in the internet of things to quit the production test mode;
the obtaining module 53 is further configured to receive a second request result, which is returned by the internet of things device and encrypted based on the communication key, where the second request result is used to indicate that the internet of things device has exited the wireless production test mode.
The performance detection apparatus for an internet of things device provided by the embodiment of the present invention may be used to implement the technical scheme of the performance detection method for an internet of things device applied to a production detection terminal in the foregoing embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 6 is a schematic structural diagram ii of a performance detection apparatus of an internet of things device according to an embodiment of the present invention, where the performance detection apparatus of the internet of things device is applied to an internet of things device, and the internet of things device includes: an internet of things module and a backplane, as shown in fig. 6, the apparatus includes: a determining module 61, an obtaining module 62, a processing module 63 and a sending module 64;
a determining module 61, configured to determine a communication key between the production test terminal and the internet of things device through a wireless link with the production test terminal;
the obtaining module 62 is configured to obtain a production test command encrypted by the production test terminal based on a communication key after the internet of things device enters the wireless production test mode, where the production test command is used to instruct the internet of things device to perform performance detection;
the processing module 63 is configured to perform performance detection on the equipment in the internet of things according to the production test command to obtain a detection result, and the detection result indicates the performance of the equipment in the internet of things;
and a sending module 64, configured to send the detection result encrypted based on the communication key to the production test terminal.
In a possible implementation of the embodiment of the present invention, the determining module 61 is specifically configured to:
receiving a first random number sent by a production test terminal;
sending a second random number generated by the Internet of things module, the identifier of the Internet of things equipment and a result of whether the Internet of things equipment supports the equipment key to a production test terminal;
acquiring a first signature which is sent by a production and test terminal and encrypted based on a communication key;
a communication key is determined based on the first signature, the first random number, and the second random number.
In this possible design, the determining module 61 determines the communication key according to the first signature, the first random number and the second random number, and is specifically configured to:
if the first signature is not null, generating a third random number according to the first random number and the second random number;
sending a third random number to the backplane;
determining a communication key according to the third random number and the device key;
and if the first signature is null, determining the communication key according to the first random number and the second random number.
Optionally, the determining module 61 is further configured to:
if the first signature is not null, generating a fourth random number according to the first random number and the second random number;
sending a fourth random number to the backplane;
generating a second signature according to the fourth random number;
sending a second signature to the Internet of things module;
generating an identity authentication result according to the first signature and the second signature, wherein the identity authentication result comprises any one of the following: the identity authentication between the production and measurement terminal and the Internet of things equipment is passed and the identity authentication between the production and measurement terminal and the Internet of things equipment is not passed;
and if the first signature is null, generating an identity authentication result, wherein the identity authentication result is used for indicating that identity authentication is not needed between the production testing terminal and the Internet of things equipment.
Optionally, the sending module 64 is further configured to send the identity authentication result encrypted based on the communication key to the production terminal.
In another possible implementation of the embodiment of the present invention, the obtaining module 62 is further configured to obtain that the production equipment sends a wireless production test request encrypted based on a communication key, where the wireless production test request is used to request to test the equipment of the internet of things;
the sending module 64 is further configured to send a first request result encrypted based on the communication key to the production equipment, where the first request result is used to indicate that the internet of things equipment has entered the wireless production test mode;
the obtaining module 62 is further configured to receive a production test quitting request sent by the production equipment and encrypted based on the communication key, where the production test quitting request is used to request the internet of things equipment to quit the production test mode;
and the sending module 64 is further configured to return a second request result encrypted based on the communication key to the production device, where the second request result is used to indicate that the internet of things device has exited the wireless production mode.
The performance detection apparatus for an internet of things device provided by the embodiment of the present invention may be used to implement the technical solution of the performance detection method for an internet of things device applied to an internet of things device in the foregoing embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the processing module may be a separate processing element, or may be integrated into a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and a processing element of the apparatus calls and executes the functions of the above determination module. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element here may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
On the basis of the above embodiments, fig. 7 is a schematic structural diagram of a production test terminal according to an embodiment of the present invention. As shown in fig. 7, the method for detecting the performance of the internet of things device in the foregoing embodiment by using the production test terminal may include: a processor 71, a memory 72.
The processor 71 executes the computer execution instructions stored in the memory, so that the processor 71 executes the technical solution of the performance detection method of the internet of things device in the above embodiment. The processor 71 may be a general-purpose processor including a central processing unit CPU, a Network Processor (NP), and the like; but also a digital signal processor DSP, an application specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
A memory 72 is coupled to the processor 71 via the system bus and communicates with each other, the memory 72 storing computer program instructions.
Optionally, the production test terminal may further include a transceiver 73, and the transceiver 73 is used for communicating with the internet of things device. Alternatively, in terms of hardware implementation, the obtaining module 53 and the sending module 52 in the embodiment shown in fig. 5 correspond to the transceiver 73 in the embodiment, and the transceiver 73 forms a communication interface.
The system bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The system bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The transceiver is used to enable communication between the database access device and other computers (e.g., clients, read-write libraries, and read-only libraries). The memory may comprise Random Access Memory (RAM) and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The production test terminal provided by the embodiment of the invention can be used for executing the technical scheme of the performance detection method applied to the internet of things equipment of the production test terminal in the embodiment, the implementation principle and the technical effect are similar, and the detailed description is omitted.
Fig. 8 is a schematic structural diagram of an internet of things device provided by an embodiment of the present invention. As shown in fig. 8, the method for detecting performance of an internet of things device in the foregoing embodiment may include: a processor 81, and a memory 82.
The processor 81 executes the computer execution instructions stored in the memory, so that the processor 81 executes the technical solution of the performance detection method of the internet of things device in the above embodiment. The processor 81 may be a general-purpose processor including a central processing unit CPU, a Network Processor (NP), and the like; but also a digital signal processor DSP, an application specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
A memory 82 is coupled to the processor 81 via the system bus and communicates with each other, the memory 82 storing computer program instructions.
Optionally, the internet of things device may further include a transceiver 83, and the transceiver 83 is used for communicating with the internet of things device. Optionally, in terms of hardware implementation, the obtaining module 62 and the sending module 64 in the embodiment shown in fig. 6 correspond to the transceiver 83 in this embodiment, and the transceiver 83 constitutes a communication interface.
The system bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The system bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The transceiver is used to enable communication between the database access device and other computers (e.g., clients, read-write libraries, and read-only libraries). The memory may comprise Random Access Memory (RAM) and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The internet of things device provided by the embodiment of the invention can be used for executing the technical scheme of the performance detection method applied to the internet of things device in the embodiment, and the implementation principle and the technical effect are similar, and are not described herein again.
The embodiment of the invention also provides a chip for operating the instruction, and the chip is used for executing the technical scheme of the performance detection method applied to the production detection terminal side or the Internet of things equipment side in the embodiment.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer instruction is stored in the computer-readable storage medium, and when the computer instruction runs on a computer, the computer is enabled to execute the technical solution of the method for detecting performance of an internet of things device applied to a production test terminal side or an internet of things device side in the foregoing embodiment.
The embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program, the computer program is stored in a computer-readable storage medium, a processor can read the computer program from the computer-readable storage medium, and when the processor executes the computer program, the processor can implement the technical solution in the foregoing embodiment, which is applied to the performance detection method of the internet of things device on the production detection terminal side or the internet of things device side.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. A performance detection method of an Internet of things device is applied to a production test terminal, and comprises the following steps:
determining a communication key between the production and test terminal and the Internet of things equipment through a wireless link between the production and test terminal and the Internet of things equipment;
after the IOT equipment enters a wireless production test mode, sending a production test command encrypted based on the communication key to the IOT equipment, wherein the production test command is used for indicating the IOT equipment to carry out performance detection;
and receiving a detection result which is sent by the equipment of the Internet of things and is encrypted based on the communication key, wherein the detection result indicates the performance of the equipment of the Internet of things.
2. The method of claim 1, wherein determining a communication key between the production terminal and the internet of things device through a wireless link with the internet of things device comprises:
sending a first random number generated by the production testing terminal to the Internet of things equipment;
receiving a second random number sent by the equipment of the Internet of things, an identifier of the equipment of the Internet of things and a result of whether the equipment of the Internet of things supports an equipment key;
and determining the communication key according to the first random number, the second random number, the identifier of the internet of things equipment and the result of whether the internet of things equipment supports the equipment key.
3. The method of claim 2, wherein the determining the communication key according to the first random number, the second random number, the identity of the internet-of-things device, and a result of whether the internet-of-things device supports a device key comprises:
if the equipment key is supported by the equipment of the Internet of things, determining an equipment key corresponding to the identifier of the equipment of the Internet of things according to the identifier of the equipment of the Internet of things, and determining the communication key according to the first random number, the second random number and the equipment key;
and if the equipment key is not supported by the Internet of things equipment, determining the communication key according to the first random number and the second random number.
4. The method of claim 3, further comprising:
if the equipment key is supported by the equipment of the Internet of things, generating a first signature according to the first random number, the second random number and the equipment key, wherein the first signature is used for determining identity authentication between the equipment of the Internet of things and the production and measurement terminal;
and if the equipment key is not supported by the equipment of the Internet of things, determining that the first signature is set to be null.
5. The method of claim 4, further comprising:
sending the first signature encrypted based on the communication key to the internet of things device;
acquiring an identity authentication result sent by the equipment of the internet of things, wherein the identity authentication result is determined according to the first signature and the second signature of the equipment of the internet of things and comprises any one of the following steps: the identity authentication between the production and measurement terminal and the equipment of the Internet of things is passed, the identity authentication between the production and measurement terminal and the equipment of the Internet of things is not passed, and the identity authentication between the production and measurement terminal and the equipment of the Internet of things is not needed.
6. The method according to any one of claims 1-5, further comprising:
sending a wireless production and test request encrypted based on the communication key to the equipment of the Internet of things, wherein the wireless production and test request is used for requesting to test the equipment of the Internet of things;
receiving a first request result which is sent back by the equipment of the Internet of things and encrypted based on the communication key, wherein the first request result is used for indicating that the equipment of the Internet of things enters a wireless production test mode;
sending a production test quitting request encrypted based on the communication key to the equipment of the Internet of things, wherein the production test quitting request is used for requesting the equipment of the Internet of things to quit a production test mode;
and receiving a second request result which is sent back by the equipment of the Internet of things and is encrypted based on the communication key, wherein the second request result is used for indicating that the equipment of the Internet of things exits the wireless production test mode.
7. A performance detection method of an Internet of things device is characterized by being applied to the Internet of things device, and the Internet of things device comprises the following steps: an Internet of things module and a backplane, the method comprising:
the Internet of things module determines a communication key between the production and test terminal and the Internet of things equipment through a wireless link between the production and test terminal and the production and test terminal;
after the IOT equipment enters a wireless production test mode, the IOT module acquires a production test command encrypted by the production test terminal based on the communication key, and the production test command is used for indicating the IOT equipment to perform performance detection;
the bottom plate detects the performance of the equipment of the Internet of things according to the production test command to obtain a detection result, and the detection result indicates the performance of the equipment of the Internet of things;
and the Internet of things module sends a detection result encrypted based on the communication key to the production and test terminal.
8. The method of claim 7, wherein the IOT module determines a communication key between the production terminal and the IOT device through a wireless link with the production terminal, and comprises:
the Internet of things module receives a first random number sent by the production and test terminal;
the Internet of things module sends a second random number generated by the Internet of things module, an identifier of the Internet of things equipment and a result of whether the Internet of things equipment supports an equipment key to the production and measurement terminal;
the Internet of things module acquires a first signature which is sent by the production and test terminal and encrypted based on the communication key;
determining the communication key according to the first signature, the first random number and the second random number.
9. The method of claim 8, wherein determining the communication key based on the first signature, the first random number, and the second random number comprises:
if the first signature is not null, the Internet of things module generates a third random number according to the first random number and the second random number;
the Internet of things module sends the third random number to the bottom plate;
the bottom board determines the communication key according to the third random number and the device key;
and if the first signature is null, the Internet of things module determines the communication key according to the first random number and the second random number.
10. The method according to claim 8 or 9, characterized in that the method further comprises:
if the first signature is not null, the Internet of things module generates a fourth random number according to the first random number and the second random number;
the Internet of things module sends the fourth random number to the bottom plate;
the bottom plate generates a second signature according to the fourth random number;
the bottom plate sends the second signature to the Internet of things module;
the internet of things module generates an identity authentication result according to the first signature and the second signature, wherein the identity authentication result comprises any one of the following: the identity authentication between the production and test terminal and the Internet of things equipment is passed and the identity authentication between the production and test terminal and the Internet of things equipment is not passed;
and if the first signature is null, the Internet of things module generates the identity authentication result, and the identity authentication result is used for indicating that identity authentication is not needed between the production and test terminal and the Internet of things equipment.
11. The method of claim 10, further comprising:
and the Internet of things module sends the identity authentication result encrypted based on the communication key to the production and test terminal.
12. The method according to any one of claims 7-9, further comprising:
acquiring a wireless production and test request sent by production equipment and encrypted based on the communication key, wherein the wireless production and test request is used for requesting to test the Internet of things equipment;
sending a first request result encrypted based on the communication key to the production equipment, wherein the first request result is used for indicating that the Internet of things equipment enters a wireless production test mode;
receiving a production test quitting request which is sent by the production equipment and encrypted based on the communication key, wherein the production test quitting request is used for requesting the Internet of things equipment to quit a production test mode;
and returning a second request result encrypted based on the communication key to the production equipment, wherein the second request result is used for indicating that the internet of things equipment exits the wireless production test mode.
CN202111142458.7A 2021-09-28 2021-09-28 Performance detection method of Internet of things equipment Active CN113904969B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111142458.7A CN113904969B (en) 2021-09-28 2021-09-28 Performance detection method of Internet of things equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111142458.7A CN113904969B (en) 2021-09-28 2021-09-28 Performance detection method of Internet of things equipment

Publications (2)

Publication Number Publication Date
CN113904969A true CN113904969A (en) 2022-01-07
CN113904969B CN113904969B (en) 2023-09-15

Family

ID=79029626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111142458.7A Active CN113904969B (en) 2021-09-28 2021-09-28 Performance detection method of Internet of things equipment

Country Status (1)

Country Link
CN (1) CN113904969B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795582A (en) * 2012-10-30 2014-05-14 上海今日在线科技发展有限公司 Test method realized based on cloud service platform
CN109274643A (en) * 2018-08-14 2019-01-25 国网甘肃省电力公司电力科学研究院 A kind of new energy plant stand generator unit terminal access management system based on libevent framework
US20190253444A1 (en) * 2017-05-26 2019-08-15 Shenyang Institute Of Automation, Chinese Academy Of Sciences Dynamic security method and system based on multi-fusion linkage response
US20190312720A1 (en) * 2016-12-20 2019-10-10 Pax Computer Technology (Shenzhen) Co., Ltd Method for remotely acquiring secret key, pos terminal and storage medium
CN110958142A (en) * 2019-11-26 2020-04-03 华为技术有限公司 Device maintenance method, maintenance device, storage medium, and computer program product
CN111224834A (en) * 2019-11-18 2020-06-02 北京三快在线科技有限公司 Simulation test method, simulation test device, server and storage medium
CN112241345A (en) * 2020-09-29 2021-01-19 苏州浪潮智能科技有限公司 PCIE test method, system, terminal and storage medium
CN112671926A (en) * 2020-12-31 2021-04-16 广州技象科技有限公司 Electric power internet of things downlink data transmission method and device based on data hopping transmission link
CN112788042A (en) * 2021-01-18 2021-05-11 亚信科技(成都)有限公司 Method for determining equipment identifier of Internet of things and Internet of things equipment
CN112948336A (en) * 2021-03-30 2021-06-11 联想凌拓科技有限公司 Data acceleration method, cache unit, electronic device and storage medium
CN113014444A (en) * 2020-11-23 2021-06-22 杭州安芯物联网安全技术有限公司 Internet of things equipment production test system and safety protection method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795582A (en) * 2012-10-30 2014-05-14 上海今日在线科技发展有限公司 Test method realized based on cloud service platform
US20190312720A1 (en) * 2016-12-20 2019-10-10 Pax Computer Technology (Shenzhen) Co., Ltd Method for remotely acquiring secret key, pos terminal and storage medium
US20190253444A1 (en) * 2017-05-26 2019-08-15 Shenyang Institute Of Automation, Chinese Academy Of Sciences Dynamic security method and system based on multi-fusion linkage response
CN109274643A (en) * 2018-08-14 2019-01-25 国网甘肃省电力公司电力科学研究院 A kind of new energy plant stand generator unit terminal access management system based on libevent framework
CN111224834A (en) * 2019-11-18 2020-06-02 北京三快在线科技有限公司 Simulation test method, simulation test device, server and storage medium
CN110958142A (en) * 2019-11-26 2020-04-03 华为技术有限公司 Device maintenance method, maintenance device, storage medium, and computer program product
CN112241345A (en) * 2020-09-29 2021-01-19 苏州浪潮智能科技有限公司 PCIE test method, system, terminal and storage medium
CN113014444A (en) * 2020-11-23 2021-06-22 杭州安芯物联网安全技术有限公司 Internet of things equipment production test system and safety protection method
CN112671926A (en) * 2020-12-31 2021-04-16 广州技象科技有限公司 Electric power internet of things downlink data transmission method and device based on data hopping transmission link
CN112788042A (en) * 2021-01-18 2021-05-11 亚信科技(成都)有限公司 Method for determining equipment identifier of Internet of things and Internet of things equipment
CN112948336A (en) * 2021-03-30 2021-06-11 联想凌拓科技有限公司 Data acceleration method, cache unit, electronic device and storage medium

Also Published As

Publication number Publication date
CN113904969B (en) 2023-09-15

Similar Documents

Publication Publication Date Title
TWI634771B (en) Wisdom device and method and device for establishing Bluetooth connection between devices
US11153754B2 (en) Devices, systems and methods for connecting and authenticating local devices to common gateway device
US11979274B2 (en) Network management method and apparatus
CN107241679B (en) Connection establishing method, information sending method, message sending method and device
KR102210897B1 (en) Security authentication method, configuration method and related device
US9654284B2 (en) Group based bootstrapping in machine type communication
CN106302415A (en) A kind of method verifying equipment validity and distribution automatic to legitimate device
CN108667699B (en) Method and device for interconnecting terminal equipment and gateway equipment
TW201933848A (en) Device connection method, device and system
CN109890029B (en) Automatic network distribution method of intelligent wireless equipment
EP3316626A1 (en) Method and apparatus for accessing wireless network with smart device
CN111510919A (en) Network configuration method, device, equipment and system
CN105979509A (en) Intelligent equipment detection method, intelligent equipment detection device, WIFI module and automatic connection method thereof
JP2022547404A (en) Method, apparatus and device for key generation and terminal provisioning
EP3039896A1 (en) Method and network node device for controlling the run of technology specific push-button configuration sessions within a heterogeneous or homogeneous wireless network and heterogeneous or homogeneous wireless network
US20230379799A1 (en) Device network configuration method and first device
CN113613227A (en) Data transmission method and device of Bluetooth equipment, storage medium and electronic device
CN113904969B (en) Performance detection method of Internet of things equipment
CN105553675B (en) Log in the method and device of router
CN115242480A (en) Device access method, system and non-volatile computer storage medium
TW201933904A (en) Trusted service management method and apparatus capable of supporting wireless network switching
CN104244241A (en) Network accessing authentication method, device and terminal equipment thereof
WO2023155520A1 (en) Network connection method and apparatus, device, storage medium, and program product
CN115913593B (en) Cloud rich media communication suite service configuration method, system and related equipment
US20240098528A1 (en) Method and apparatus for sending or displaying network detection result

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