CN110620661A - System and method for writing key into intelligent equipment - Google Patents

System and method for writing key into intelligent equipment Download PDF

Info

Publication number
CN110620661A
CN110620661A CN201910981292.4A CN201910981292A CN110620661A CN 110620661 A CN110620661 A CN 110620661A CN 201910981292 A CN201910981292 A CN 201910981292A CN 110620661 A CN110620661 A CN 110620661A
Authority
CN
China
Prior art keywords
mac
data packet
intelligent
intelligent device
key
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.)
Pending
Application number
CN201910981292.4A
Other languages
Chinese (zh)
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.)
Sichuan Hongmei Intelligent Technology Co Ltd
Original Assignee
Sichuan Hongmei Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Hongmei Intelligent Technology Co Ltd filed Critical Sichuan Hongmei Intelligent Technology Co Ltd
Priority to CN201910981292.4A priority Critical patent/CN110620661A/en
Publication of CN110620661A publication Critical patent/CN110620661A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • 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/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/083Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) involving central third party, e.g. key distribution center [KDC] or trusted third party [TTP]
    • 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/0866Generation of secret information including derivation or calculation of cryptographic keys or passwords involving user or device identifiers, e.g. serial number, physical or biometrical information, DNA, hand-signature or measurable physical characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/043Key management, e.g. using generic bootstrapping architecture [GBA] using a trusted network node as an anchor
    • H04W12/0431Key distribution or pre-distribution; Key agreement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/80Wireless

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a system and a method for writing a secret key in intelligent equipment, wherein the system comprises the following steps: the production equipment is used for acquiring the MAC of each intelligent equipment and the key corresponding to each MAC, determining the key corresponding to the MAC when the MAC sent by the code scanning gun is received, generating a data packet according to the MAC and the corresponding key, and broadcasting the data packet to a target local area network where the production equipment is located; the code scanning gun is used for scanning the bar code of the intelligent equipment entering the scanning area when any intelligent equipment enters the scanning area, identifying the MAC from the bar code and sending the MAC to the production equipment; each intelligent device is used for accessing the target local area network when the key is not written in, monitoring whether a data packet sent to the intelligent device exists in the target local area network or not, resolving the key from the data packet if the data packet exists, and writing the resolved key into the intelligent device. The invention can write the key into the intelligent equipment more safely.

Description

System and method for writing key into intelligent equipment
Technical Field
The present invention relates to the field of intelligent device technologies, and in particular, to a system and a method for writing a key in an intelligent device.
Background
The smart device is a device capable of performing data communication with the outside through the internet. And the intelligent equipment is connected with the cloud end, so that the user can carry out remote/scene control on the intelligent equipment at home. In order to ensure the validity of the intelligent equipment and prevent the uncompensated use or malicious attack of illegal equipment to the cloud end, more and more manufacturers introduce an identity authentication link of the equipment in the network access flow of the intelligent equipment, so that only legal equipment can access the cloud end, and remote/scene control can be carried out through the cloud end. Generally, the smart device is authenticated by a key representing the identity information of the smart device, and how to securely write the key into the smart device is an urgent problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a system and a method for writing a key into intelligent equipment, which can write the key into the intelligent equipment more safely.
In one aspect, an embodiment of the present invention provides a system for writing a key in an intelligent device, including:
the system comprises production equipment, a code scanning gun and at least one intelligent device;
the production equipment is connected with the code scanning gun;
the production equipment is used for acquiring the MAC of each intelligent equipment in the at least one intelligent equipment, acquiring a key corresponding to each MAC according to the MAC of each intelligent equipment, determining the key corresponding to the received MAC when the MAC sent by the code scanning gun is received, generating a data packet according to the received MAC and the key corresponding to the received MAC, and broadcasting the data packet to a target local area network where the production equipment is located;
the code scanning gun is used for scanning the bar code of the intelligent equipment entering the scanning area when any intelligent equipment enters the scanning area of the code scanning gun, identifying the MAC of the intelligent equipment entering the scanning area from the bar code, and sending the MAC of the intelligent equipment entering the scanning area to the production equipment;
each intelligent device is used for accessing the target local area network when the key is not written in, monitoring whether a data packet sent to the intelligent device exists in the target local area network or not, if so, analyzing the key from the data packet, and writing the analyzed key into the intelligent device.
Alternatively,
the data packet comprises: a target MAC and a key corresponding to the target MAC;
each intelligent device is further used for storing the MAC of the intelligent device;
each of the smart devices to perform:
receiving a data packet broadcast into the target local area network;
analyzing the target MAC from the received data packet;
and judging whether the target MAC is the same as the MAC of the intelligent equipment, if so, determining that the received data packet is the data packet sent to the intelligent equipment, analyzing a key corresponding to the target MAC from the received data packet, and writing the key corresponding to the target MAC into the intelligent equipment.
Alternatively,
the system further comprises: a cloud end;
the production device, when executing the MAC according to each of the smart devices and acquiring the key corresponding to each of the MACs, is specifically configured to:
sending the MAC of each intelligent device to a cloud end, and receiving a key corresponding to each MAC returned by the cloud end;
the cloud is used for receiving the MAC of each intelligent device sent by the production device, generating a key corresponding to each MAC, and sending the key corresponding to each MAC to the production device.
Alternatively,
each intelligent device is further used for storing the distribution network information of the target local area network;
each of the smart devices, when performing the access to the target lan, is specifically configured to: searching an accessible network, judging whether the target local area network exists in the accessible network according to the stored distribution network information, and if so, connecting to the target local area network according to the distribution network information.
Alternatively,
each intelligent device is used for carrying out self-check before analyzing the key from the data packet when monitoring that the data packet sent to the intelligent device exists in the target local area network, and executing the key analysis from the data packet after the self-check is passed.
In another aspect, an embodiment of the present invention provides a method for writing a key in an intelligent device, where the method includes:
the method comprises the steps that production equipment obtains the MAC of each intelligent device in at least one intelligent device;
the production equipment acquires a key corresponding to each MAC according to the MAC of each intelligent equipment;
when any one intelligent device enters a scanning area of the code scanning gun, the code scanning gun scans the bar code of the intelligent device entering the scanning area, identifies the MAC of the intelligent device entering the scanning area from the bar code, and sends the MAC of the intelligent device entering the scanning area to the production device;
when the production equipment receives the MAC sent by the code scanning gun, the key corresponding to the received MAC is determined, a data packet is generated according to the received MAC and the key corresponding to the received MAC, and the data packet is broadcasted to a target local area network where the production equipment is located;
and each intelligent device is accessed into the target local area network when determining that the key is not written in, monitors whether a data packet sent to the intelligent device exists in the target local area network or not, analyzes the key from the data packet if the data packet exists, and writes the analyzed key into the intelligent device.
Alternatively,
the data packet comprises: a target MAC and a key corresponding to the target MAC;
the method further comprises: each intelligent device prestores the MAC of the intelligent device;
the monitoring whether a data packet sent to the intelligent device exists in the target local area network or not, if so, resolving a secret key from the data packet, and writing the resolved secret key into the intelligent device includes:
each intelligent device receives a data packet broadcasted into the target local area network;
each intelligent device analyzes the target MAC from the received data packet;
and each intelligent device judges whether the target MAC is the same as the MAC of the intelligent device, if so, the received data packet is determined to be the data packet sent to the intelligent device, the key corresponding to the target MAC is analyzed from the received data packet, and the key corresponding to the target MAC is written into the intelligent device.
Alternatively,
the production equipment acquires the key corresponding to each MAC according to the MAC of each intelligent equipment, and the method comprises the following steps:
the production equipment sends the MAC of each intelligent equipment to a cloud end;
the cloud receives the MAC of each intelligent device sent by the production device, generates a key corresponding to each MAC, and sends the key corresponding to each MAC to the production device;
and the production equipment receives the key corresponding to each MAC returned by the cloud.
Alternatively,
the method further comprises the following steps: each intelligent device prestores the distribution network information of the target local area network;
the accessing to the target local area network includes:
each intelligent device searches for an accessible network, judges whether the accessible network has the target local area network or not according to the stored distribution network information, and if so, connects to the target local area network according to the distribution network information.
Alternatively,
when it is monitored that a data packet sent to the intelligent device exists in the target local area network, before analyzing the key from the data packet, the method further includes:
and each intelligent device carries out self-checking, and executes the key analysis from the data packet after the self-checking is passed.
In the embodiment of the invention, in the process of producing the intelligent equipment, when the intelligent equipment passes through the code scanning gun, the code scanning gun obtains the MAC of the production equipment by scanning the bar code on the intelligent equipment, the production equipment determines the corresponding secret key according to the MAC and generates the data packet, the data packet is broadcasted to the target local area network, and when the intelligent equipment monitors that the data packet sent to the intelligent equipment exists in the target local area network, the secret key of the intelligent equipment is analyzed from the data packet and written into the intelligent equipment.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of a system for writing a key in a smart device according to an embodiment of the present invention;
fig. 2 is a schematic diagram of another system for writing a key in a smart device according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for writing a key in a smart device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be 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, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a system for writing a key in a smart device, including:
the system comprises a production device 101, a code scanning gun 102 and at least one intelligent device 103;
the production equipment 101 is connected with the code scanning gun 102;
the production device 101 is configured to obtain the MAC of each of the at least one smart device 103, obtain a key corresponding to each MAC according to the MAC of each smart device 103, determine the key corresponding to the received MAC when the MAC sent by the code scanning gun 102 is received, generate a data packet according to the received MAC and the received key corresponding to the MAC, and broadcast the data packet to a target local area network where the production device 101 is located;
the code scanning gun 102 is configured to scan a barcode of the smart device 103 entering the scanning area when any one of the smart devices 103 enters the scanning area of the code scanning gun 102, identify the MAC of the smart device 103 entering the scanning area from the barcode, and send the MAC of the smart device 103 entering the scanning area to the production device 101;
each of the intelligent devices 103 is configured to access the target local area network when it is determined that no key is written in, monitor whether a data packet sent to the intelligent device exists in the target local area network, parse the key from the data packet if the data packet exists, and write the parsed key into the intelligent device.
In the embodiment of the invention, in the process of producing the intelligent equipment, when the intelligent equipment passes through the code scanning gun, the code scanning gun obtains the MAC of the production equipment by scanning the bar code on the intelligent equipment, the production equipment determines the corresponding secret key according to the MAC and generates the data packet, the data packet is broadcasted to the target local area network, and when the intelligent equipment monitors that the data packet sent to the intelligent equipment exists in the target local area network, the secret key of the intelligent equipment is analyzed from the data packet and written into the intelligent equipment.
In the embodiment of the invention, the bar code of the intelligent device is pasted on the intelligent device, and the bar code comprises the MAC of the intelligent device. The bar code of each intelligent device can be arranged at the fixed position of the intelligent device, so that the code scanning gun can be conveniently scanned uniformly.
In an embodiment of the present invention, the data packet includes: a target MAC and a key corresponding to the target MAC;
each intelligent device is further used for storing the MAC of the intelligent device;
each of the smart devices to perform:
receiving a data packet broadcast into the target local area network;
analyzing the target MAC from the received data packet;
and judging whether the target MAC is the same as the MAC of the intelligent equipment, if so, determining that the received data packet is the data packet sent to the intelligent equipment, analyzing a key corresponding to the target MAC from the received data packet, and storing the key corresponding to the target MAC into the intelligent equipment.
In the embodiment of the invention, after the intelligent equipment is accessed to the target local area network, the broadcasted data packets in the target local area network can be monitored in real time, every time one data packet exists, whether the MAC in the data packet is the same as the MAC of the intelligent equipment is judged, if so, the secret key is analyzed and written into the intelligent equipment, and if not, the data packet is abandoned. Specifically, the smart device may write the key into the FLASH of the smart device.
As shown in fig. 2, in an embodiment of the present invention, the system further includes: a cloud 201;
the production device 101, when executing the MAC according to each of the smart devices and acquiring the key corresponding to each of the MACs, is specifically configured to:
sending the MAC of each intelligent device to a cloud 201, and receiving a key corresponding to each MAC returned by the cloud 201;
the cloud 201 is configured to receive the MAC of each intelligent device sent by the production device 101, generate a key corresponding to each MAC, and send the key corresponding to each MAC to the production device 101.
In the embodiment of the invention, the key corresponding to each MAC is generated through the cloud, and the MACs correspond to the keys one by one. The key is generated through the cloud terminal, so that the key is safer, and the identity authentication of the intelligent device is continued by using the key after the cloud terminal is used.
In an embodiment of the present invention, each of the intelligent devices is further configured to store distribution network information of the target local area network;
each of the smart devices, when performing the access to the target lan, is specifically configured to: searching an accessible network, judging whether the target local area network exists in the accessible network according to the stored distribution network information, and if so, connecting to the target local area network according to the distribution network information.
In the embodiment of the present invention, the distribution network information may include information such as a name and a password of the target local area network. The intelligent device can judge whether the target local area network exists in the accessible network according to the name of the target local area network. Then, the target local area network can be connected to the target local area network through the password of the target local area network.
In an embodiment of the present invention, each of the smart devices is configured to, when it is monitored that there is a data packet sent to the smart device in the target local area network, perform self-check before parsing out the key from the data packet, and after the self-check is passed, execute parsing out the key from the data packet.
In the embodiment of the present invention, the self-checking of the smart device may include: serial port communication detection of the intelligent device, radio frequency performance detection of the intelligent device and the like.
The serial port communication detection of the intelligent equipment can be realized through the following modes:
the intelligent device sends data through the serial port, if the legal serial port data are received, the serial port communication is considered to be normal, otherwise, an error code is returned to the production device.
The radio frequency performance detection of the intelligent device can be realized by the following modes:
and the intelligent equipment scans the target local area network, judges according to the signal intensity value, if the signal intensity is greater than 80, the intelligent equipment is considered to be normal, and if the signal intensity is not greater than 80, an error code is returned to the production equipment.
In addition, the state of the intelligent equipment indicator lamp can distinguish whether the equipment is in a production mode or a user mode, and workshop production personnel judge at the switch according to the indicator lamp. If the equipment is in the production mode, the production detection of the equipment is considered to be failed, and the MAC can be searched by the production equipment end to check the reason of the production detection failure of the equipment.
And the intelligent equipment is switched to a production mode when the key is determined not to be written in, exits the production mode, enters a user mode and sends the self-checking result to the production equipment after the intelligent equipment passes the self-checking and writes the key into the intelligent equipment.
In an embodiment of the present invention, when receiving the MAC sent by the code scanning gun, the production device searches for the key corresponding to the MAC, creates 1 task, and processes the received intelligent device corresponding to the MAC using the task, so that the production device can process multiple intelligent devices at the same time, and can speed up the production cycle. In each task, the production equipment packages the MAC and the corresponding key according to a certain format to generate a data packet, broadcasts the data packet to a target local area network, monitors the return message of the intelligent equipment, records a test result (the test result is the self-checking result of the intelligent equipment) according to the return message of the equipment, and finally deletes the task and releases resources. In order to avoid packet loss, the data packets are retransmitted at regular time intervals of T1, and if the information which is returned by the intelligent equipment and is sent aiming at the data packets is received, the sending is stopped; in order to avoid that the task resources are always occupied, a timeout time T2 is set, when the survival time of the task exceeds T2, the test result is judged to be failure, and the task is deleted.
The intelligent device comprises an intelligent module, in the process of producing the intelligent device, a product producer provides the firmware of the intelligent device to be produced for an intelligent module supplier, the intelligent module supplier completes production and firmware programming of the intelligent module, and then the supplier provides the intelligent module and a corresponding MAC list thereof for the product producer. The MAC list includes the MAC of each intelligent module. Wherein, the MAC of the intelligent module is the MAC of the intelligent device.
When the intelligent module is assembled on the intelligent equipment, the bar code of the MAC of the intelligent module is pasted at the fixed position of the body of the intelligent equipment.
In one embodiment of the invention, the production equipment is arranged in the middle of the whole machine production line and is provided with a wireless network card. Sweep a yard rifle and fix in specific position, when the smart machine passes through, sweep a yard rifle and just can scan the bar code of smart machine.
In an embodiment of the present invention, the production device and the at least one smart device are connected to a same AP (Access Point). The production device and the intelligent device in the production mode are both connected to the same AP, and both use a broadcast UDP (User Datagram Protocol) to transmit information.
In the embodiment of the invention, the intelligent equipment and the production equipment are connected to the same local area network, the target is accurately found through the uniqueness of the MAC, the information exchange is completed, the number of APs in the network is small, and the network environment is relatively clean. And before production equipment tests, the intelligent equipment and the production equipment are connected to the AP, and can directly communicate, so that the temporary connection time is saved, the production beat is accelerated, and the production efficiency can be improved.
In the embodiment of the invention, the intelligent device comprises an intelligent module and a terminal controller, and the intelligent module and the terminal controller perform data interaction through serial ports. The intelligent module is responsible for reporting the real-time state of the intelligent equipment to a designated cloud end through the Internet, and simultaneously issuing a control command from the Internet to a terminal controller of the intelligent equipment.
As shown in fig. 3, an embodiment of the present invention provides a method for writing a key in a smart device, including:
step 301: the method comprises the steps that production equipment obtains the MAC of each intelligent device in at least one intelligent device;
step 302: the production equipment acquires a key corresponding to each MAC according to the MAC of each intelligent equipment;
step 303: when any one intelligent device enters a scanning area of the code scanning gun, the code scanning gun scans the bar code of the intelligent device entering the scanning area, identifies the MAC of the intelligent device entering the scanning area from the bar code, and sends the MAC of the intelligent device entering the scanning area to the production device;
step 304: when the production equipment receives the MAC sent by the code scanning gun, the key corresponding to the received MAC is determined, a data packet is generated according to the received MAC and the key corresponding to the received MAC, and the data packet is broadcasted to a target local area network where the production equipment is located;
step 305: and each intelligent device is accessed into the target local area network when determining that the key is not written in, monitors whether a data packet sent to the intelligent device exists in the target local area network or not, analyzes the key from the data packet if the data packet exists, and writes the analyzed key into the intelligent device.
In an embodiment of the present invention, the data packet includes: a target MAC and a key corresponding to the target MAC;
the method further comprises: each intelligent device prestores the MAC of the intelligent device;
the monitoring whether a data packet sent to the intelligent device exists in the target local area network or not, if so, resolving a secret key from the data packet, and writing the resolved secret key into the intelligent device includes:
each intelligent device receives a data packet broadcasted into the target local area network;
each intelligent device analyzes the target MAC from the received data packet;
and each intelligent device judges whether the target MAC is the same as the MAC of the intelligent device, if so, the received data packet is determined to be the data packet sent to the intelligent device, the key corresponding to the target MAC is analyzed from the received data packet, and the key corresponding to the target MAC is written into the intelligent device.
In an embodiment of the present invention, the acquiring, by the production device, a key corresponding to each MAC according to the MAC of each smart device includes:
the production equipment sends the MAC of each intelligent equipment to a cloud end;
the cloud receives the MAC of each intelligent device sent by the production device, generates a key corresponding to each MAC, and sends the key corresponding to each MAC to the production device;
and the production equipment receives the key corresponding to each MAC returned by the cloud.
In an embodiment of the invention, the method further comprises: each intelligent device prestores the distribution network information of the target local area network;
the accessing to the target local area network includes:
each intelligent device searches for an accessible network, judges whether the accessible network has the target local area network or not according to the stored distribution network information, and if so, connects to the target local area network according to the distribution network information.
In an embodiment of the present invention, when it is monitored that there is a data packet sent to the smart device in the target lan, before parsing out the key from the data packet, the method further includes:
and each intelligent device carries out self-checking, and executes the key analysis from the data packet after the self-checking is passed.
The embodiments of the invention have at least the following beneficial effects:
in the embodiment of the invention, in the process of producing the intelligent equipment, when the intelligent equipment passes through the code scanning gun, the code scanning gun obtains the MAC of the production equipment by scanning the bar code on the intelligent equipment, the production equipment determines the corresponding secret key according to the MAC and generates the data packet, the data packet is broadcasted to the target local area network, and when the intelligent equipment monitors that the data packet sent to the intelligent equipment exists in the target local area network, the secret key of the intelligent equipment is analyzed from the data packet and written into the intelligent equipment.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other similar elements in a process, method, article, or apparatus that comprises the element.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it is to be noted that: the above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A system for writing a key in a smart device, comprising:
the system comprises production equipment, a code scanning gun and at least one intelligent device;
the production equipment is connected with the code scanning gun;
the production equipment is used for acquiring the MAC of each intelligent equipment in the at least one intelligent equipment, acquiring a key corresponding to each MAC according to the MAC of each intelligent equipment, determining the key corresponding to the received MAC when the MAC sent by the code scanning gun is received, generating a data packet according to the received MAC and the key corresponding to the received MAC, and broadcasting the data packet to a target local area network where the production equipment is located;
the code scanning gun is used for scanning the bar code of the intelligent equipment entering the scanning area when any intelligent equipment enters the scanning area of the code scanning gun, identifying the MAC of the intelligent equipment entering the scanning area from the bar code, and sending the MAC of the intelligent equipment entering the scanning area to the production equipment;
each intelligent device is used for accessing the target local area network when the key is not written in, monitoring whether a data packet sent to the intelligent device exists in the target local area network or not, if so, analyzing the key from the data packet, and writing the analyzed key into the intelligent device.
2. The system of claim 1,
the data packet comprises: a target MAC and a key corresponding to the target MAC;
each intelligent device is further used for storing the MAC of the intelligent device;
each of the smart devices to perform:
receiving a data packet broadcast into the target local area network;
analyzing the target MAC from the received data packet;
and judging whether the target MAC is the same as the MAC of the intelligent equipment, if so, determining that the received data packet is the data packet sent to the intelligent equipment, analyzing a key corresponding to the target MAC from the received data packet, and writing the key corresponding to the target MAC into the intelligent equipment.
3. The system of claim 1,
further comprising: a cloud end;
the production device, when executing the MAC according to each of the smart devices and acquiring the key corresponding to each of the MACs, is specifically configured to:
sending the MAC of each intelligent device to a cloud end, and receiving a key corresponding to each MAC returned by the cloud end;
the cloud is used for receiving the MAC of each intelligent device sent by the production device, generating a key corresponding to each MAC, and sending the key corresponding to each MAC to the production device.
4. The system of claim 1,
each intelligent device is further used for storing the distribution network information of the target local area network;
each of the smart devices, when performing the access to the target lan, is specifically configured to: searching an accessible network, judging whether the target local area network exists in the accessible network according to the stored distribution network information, and if so, connecting to the target local area network according to the distribution network information.
5. The system according to any one of claims 1 to 4,
each intelligent device is used for carrying out self-check before analyzing the key from the data packet when monitoring that the data packet sent to the intelligent device exists in the target local area network, and executing the key analysis from the data packet after the self-check is passed.
6. A method for writing a key in a smart device, comprising:
the method comprises the steps that production equipment obtains the MAC of each intelligent device in at least one intelligent device;
the production equipment acquires a key corresponding to each MAC according to the MAC of each intelligent equipment;
when any one intelligent device enters a scanning area of the code scanning gun, the code scanning gun scans the bar code of the intelligent device entering the scanning area, identifies the MAC of the intelligent device entering the scanning area from the bar code, and sends the MAC of the intelligent device entering the scanning area to the production device;
when the production equipment receives the MAC sent by the code scanning gun, the key corresponding to the received MAC is determined, a data packet is generated according to the received MAC and the key corresponding to the received MAC, and the data packet is broadcasted to a target local area network where the production equipment is located;
and each intelligent device is accessed into the target local area network when determining that the key is not written in, monitors whether a data packet sent to the intelligent device exists in the target local area network or not, analyzes the key from the data packet if the data packet exists, and writes the analyzed key into the intelligent device.
7. The method of claim 6,
the data packet comprises: a target MAC and a key corresponding to the target MAC;
the method further comprises: each intelligent device prestores the MAC of the intelligent device;
the monitoring whether a data packet sent to the intelligent device exists in the target local area network or not, if so, resolving a secret key from the data packet, and writing the resolved secret key into the intelligent device includes:
each intelligent device receives a data packet broadcasted into the target local area network;
each intelligent device analyzes the target MAC from the received data packet;
and each intelligent device judges whether the target MAC is the same as the MAC of the intelligent device, if so, the received data packet is determined to be the data packet sent to the intelligent device, the key corresponding to the target MAC is analyzed from the received data packet, and the key corresponding to the target MAC is written into the intelligent device.
8. The method of claim 6,
the production equipment acquires the key corresponding to each MAC according to the MAC of each intelligent equipment, and the method comprises the following steps:
the production equipment sends the MAC of each intelligent equipment to a cloud end;
the cloud receives the MAC of each intelligent device sent by the production device, generates a key corresponding to each MAC, and sends the key corresponding to each MAC to the production device;
and the production equipment receives the key corresponding to each MAC returned by the cloud.
9. The method of claim 6,
further comprising: each intelligent device prestores the distribution network information of the target local area network;
the accessing to the target local area network includes:
each intelligent device searches for an accessible network, judges whether the accessible network has the target local area network or not according to the stored distribution network information, and if so, connects to the target local area network according to the distribution network information.
10. The method according to any one of claims 6 to 9,
when it is monitored that a data packet sent to the intelligent device exists in the target local area network, before analyzing the key from the data packet, the method further includes:
and each intelligent device carries out self-checking, and executes the key analysis from the data packet after the self-checking is passed.
CN201910981292.4A 2019-10-16 2019-10-16 System and method for writing key into intelligent equipment Pending CN110620661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910981292.4A CN110620661A (en) 2019-10-16 2019-10-16 System and method for writing key into intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910981292.4A CN110620661A (en) 2019-10-16 2019-10-16 System and method for writing key into intelligent equipment

Publications (1)

Publication Number Publication Date
CN110620661A true CN110620661A (en) 2019-12-27

Family

ID=68925535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910981292.4A Pending CN110620661A (en) 2019-10-16 2019-10-16 System and method for writing key into intelligent equipment

Country Status (1)

Country Link
CN (1) CN110620661A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970108A (en) * 2020-07-20 2020-11-20 四川虹美智能科技有限公司 Key writing method, device and system for intelligent equipment
CN112351423A (en) * 2020-11-06 2021-02-09 合肥美菱物联科技有限公司 Wifi key burning system and method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268500A (en) * 2014-10-11 2015-01-07 合肥华凌股份有限公司 Method for writing electronic barcode information of product
CN104869612A (en) * 2015-04-30 2015-08-26 小米科技有限责任公司 Method and device for accessing network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268500A (en) * 2014-10-11 2015-01-07 合肥华凌股份有限公司 Method for writing electronic barcode information of product
CN104869612A (en) * 2015-04-30 2015-08-26 小米科技有限责任公司 Method and device for accessing network

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970108A (en) * 2020-07-20 2020-11-20 四川虹美智能科技有限公司 Key writing method, device and system for intelligent equipment
CN111970108B (en) * 2020-07-20 2022-08-02 四川虹美智能科技有限公司 Key writing method, device and system for intelligent equipment
CN112351423A (en) * 2020-11-06 2021-02-09 合肥美菱物联科技有限公司 Wifi key burning system and method thereof
CN112351423B (en) * 2020-11-06 2023-05-23 合肥美菱物联科技有限公司 Wifi key burning system and method thereof

Similar Documents

Publication Publication Date Title
CN110113345B (en) Automatic asset discovery method based on flow of Internet of things
CN106332224B (en) Equipment network distribution method, device and system
TWI454091B (en) Self-configuring wireless network location system
US20110044208A1 (en) Wireless ad-hoc network configuration method and apparatus
CN110620661A (en) System and method for writing key into intelligent equipment
US20080141369A1 (en) Method, Device and Program for Detecting Address Spoofing in a Wireless Network
CN111263377B (en) Network configuration method, device, equipment and system and distribution network testing method and system
CN104125568A (en) Wireless access point safe authentication method and system
CN113238536B (en) Industrial control system network vulnerability identification method and device and related equipment thereof
CN112953971A (en) Network security traffic intrusion detection method and system
CN117061384A (en) Fuzzy test method, device, equipment and medium
CN117014354A (en) Prometaus-based network quality monitoring system and method
US10069816B2 (en) Authentication server testing method and system
CN104853377A (en) Method and device for detecting access capability of WIFI network
CN115474181A (en) Bluetooth device identification method and device, electronic device and storage medium
JP2003258910A (en) System and method for analyzing illegal access route
Ellch Fingerprinting 802.11 devices
CN115001829B (en) Protocol vulnerability discovery method, device, equipment and storage medium
CN111479271B (en) Wireless security detection and protection method and system based on asset attribute marking grouping
RU2810111C1 (en) METHOD FOR DETECTING UNAUTHORIZED AND FAKE Wi-Fi ACCESS POINTS
CN114615002B (en) Controlled identification method and system for key infrastructure of operator
CN113206825B (en) Scanning result comparison analysis method of missing scanning device
CN115665853B (en) Fusion positioning method and device, electronic equipment and readable storage medium
CN111835693A (en) Vulnerability detection system and detection method for network monitoring camera
CN114050918B (en) Audio data processing method and device, detection server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191227

RJ01 Rejection of invention patent application after publication