A method, system, storage medium, and device for wireless device network access authentication

By using blockchain technology to authenticate wireless devices in vehicle-mounted wireless communication networks, the problems of network vulnerability and illegal access are solved, and higher security and reliability are achieved.

CN115942306BActive Publication Date: 2025-06-17CRRC ZHUZHOU ELECTRIC LOCOMOTIVE RESEARCH INSTITUTE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110969849.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-23
Publication Date
2025-06-17
Estimated Expiration
2041-08-23

AI Technical Summary

Technical Problem

Due to its openness and flexibility in equipment access, the existing vehicle-mounted wireless communication network is vulnerable to malicious attacks and illegal access, resulting in data leakage in train operation and affecting safe operation.

Method used

By matching the access key sent by the wireless device with the preset key and responding to the successful matching instruction, the access authentication request is sent to all wireless devices that have been connected to the network, including wireless device identification information and input blockchain data. The wireless device that has been connected to the network authenticates the input blockchain data, and after the authentication is successful, it is connected to the wireless network based on the wireless device identification information.

Benefits of technology

Through a shared authentication mechanism based on blockchain, illegal access is avoided, the reliability and security of access authentication is improved, and the security and reliability of wireless networks are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115942306B_ABST
    Figure CN115942306B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, storage medium and device for wireless device access authentication, which matches the access key sent by the wireless device with a preset key; in response to an instruction that the access key and the preset key match successfully, the access authentication request sent by the wireless device is sent to all the wireless devices that have already accessed the network, and the access authentication request includes wireless device identification information and input blockchain data; in response to an instruction that all the wireless devices that have already accessed the network authenticate the input blockchain data successfully, the wireless device is connected to the wireless network based on the wireless device identification information. By sending the access authentication request to the wireless devices that have already accessed the network and authenticating the newly added wireless device based on the pre-stored blockchain data jointly maintained by the wireless devices that have already accessed the network and then connecting the wireless device to the wireless network, illegal access can be avoided, and the reliability and security of access authentication can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technologies, and in particular, to a method, a system, a storage medium, and a device for wireless device network access authentication. Background Art

[0002] Existing in-vehicle wireless communication networks are usually in-vehicle wireless local area networks formed by connecting train on-vehicle wireless devices through wireless signals, which have advantages such as reducing wiring costs, flexible device deployment, saving space, and convenient operation and maintenance. However, due to the openness of wireless networks and the flexibility of device access, wireless networks are more vulnerable to malicious attacks and illegal access, resulting in the leakage of train operation data and even affecting the safe operation of trains. Therefore, there is an urgent need to provide a wireless device access authentication method to improve the security of wireless network communication. Summary of the Invention

[0003] To solve the above technical problems, the present invention provides a method, a system, a storage medium, and a device for wireless device access authentication to improve the security of wireless network communication.

[0004] In a first aspect of the present invention, a method for wireless device access authentication is provided, which includes:

[0005] Matching an access key sent by a wireless device with a preset key;

[0006] In response to an instruction that the access key and the preset key match successfully, sending an access authentication request sent by the wireless device to all already networked wireless devices, where the access authentication request includes wireless device identification information and input blockchain data;

[0007] In response to an instruction that all already networked wireless devices authenticate the input blockchain data successfully, accessing the wireless device to the wireless network based on the wireless device identification information.

[0008] In some embodiments, the already networked wireless devices authenticate the input blockchain data through the following steps:

[0009] Comparing the input blockchain data with pre-stored blockchain data of the already networked wireless devices;

[0010] Authenticating the input blockchain data according to the comparison result.

[0011] In some embodiments, the authenticating the input blockchain data according to the comparison result includes:

[0012] When the input blockchain corresponding to the input blockchain data belongs to a sub-chain of the pre-stored blockchain corresponding to the pre-stored blockchain data and the lengths of the input blockchain and the pre-stored blockchain satisfy 0 ≤ n - m ≤ k, the input blockchain data passes the authentication, where m represents the length of the input blockchain, n represents the length of the pre-stored blockchain, and k is any positive integer.

[0013] In some embodiments, in response to the instruction that all the authenticated input blockchain data of the networked wireless devices are successfully authenticated, after the wireless devices are connected to the wireless network based on the wireless device identification information, the method further includes:

[0014] Generating a first transaction record according to the wireless device identification information;

[0015] Sending the first transaction record to all the networked wireless devices.

[0016] In some embodiments, before matching the access key sent by the wireless device with the preset key, the method further includes: updating the preset wireless access point identifier and the preset key by means of automatic triggering or in response to a user manual input instruction.

[0017] In some embodiments, after updating the preset wireless access point identifier and the preset key, the method further includes:

[0018] Generating a second transaction record based on the updated preset wireless access point identifier and the preset key;

[0019] Sending the second transaction record to all the networked wireless devices to update the pre-stored blockchain data of each networked wireless device.

[0020] In a second aspect of the present invention, a wireless device access authentication system is provided. The wireless device access authentication system includes a wireless device to be networked, a wireless access point, and at least one networked wireless device that has established a network connection with the wireless access point based on a blockchain,

[0021] The wireless device to be networked sends an access key and an access authentication request to the wireless access point;

[0022] The wireless access point matches the access key sent by the wireless device with a preset key; in response to an instruction that the access key and the preset key match successfully, it sends the access authentication request sent by the wireless device to all the already networked wireless devices, where the access authentication request includes wireless device identification information and input blockchain data; and in response to an instruction that all the already networked wireless devices authenticate the input blockchain data successfully, it connects the wireless device to the wireless network based on the wireless device identification information.

[0023] The already networked wireless device receives the input blockchain data sent by the wireless access point; authenticates the input blockchain data and sends an instruction of successful authentication to the wireless access point when the input blockchain data is authenticated successfully.

[0024] In some embodiments, the wireless device access authentication system further includes:

[0025] The already networked wireless device generates a third transaction record based on at least one of operations such as configuration modification, power-on, power-off, network connection, and network disconnection, and sends the third transaction record to other already networked wireless devices to update the pre-stored blockchain data of each of the already networked wireless devices based on the third transaction record.

[0026] In a third aspect of the present invention, there is provided a storage medium in which a computer program is stored, and when the computer program is executed by a processor, it can implement the wireless device access authentication method described in any one of the above.

[0027] In a fourth aspect of the present invention, there is provided a device, which includes a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, it can implement the wireless device access authentication method described in any one of the above.

[0028] Compared with the prior art, one or more embodiments of the above solutions may have the following advantages or beneficial effects:

[0029] Applying the wireless device access authentication method provided by the present invention, the access key sent by the wireless device is matched with a preset key; in response to an instruction that the access key and the preset key match successfully, the access authentication request sent by the wireless device is sent to all the wireless devices that have already accessed the network, and the access authentication request includes wireless device identification information and input blockchain data; in response to an instruction that all the wireless devices that have already accessed the network authenticate the input blockchain data successfully, the wireless device is accessed to the wireless network based on the wireless device identification information. By sending the access authentication request to the wireless devices that have already accessed the network, authenticating the newly added wireless device based on the pre-stored blockchain data jointly maintained by the wireless devices that have already accessed the network, and then accessing the wireless device to the wireless network, illegal access can be avoided, and the reliability and security of access authentication can be effectively improved. Description of the Drawings

[0030] The scope of the present disclosure can be better understood by reading the following detailed description of the exemplary embodiments in conjunction with the accompanying drawings. The accompanying drawings included are:

[0031] Figure 1 The flowchart showing a wireless device access authentication method provided by an embodiment of the present invention;

[0032] Figure 2 The flowchart showing the method for authenticating the input blockchain data provided by an embodiment of the present invention;

[0033] Figure 3 The flowchart showing a wireless device access authentication method provided by the second embodiment of the present invention;

[0034] Figure 4 The flowchart showing a wireless device access authentication method provided by the third embodiment of the present invention;

[0035] Figure 5 The flowchart showing the method for updating the preset wireless access point identifier and the preset password provided by an embodiment of the present invention;

[0036] Figure 6 The structural diagram showing a wireless device access authentication system provided by an embodiment of the present invention;

[0037] Figure 7 The diagram showing a device provided by an embodiment of the present invention. Detailed Embodiments

[0038] To make the objectives, technical solutions, and advantages of the present invention clearer, the following will describe in detail the implementation methods of the present invention in conjunction with the accompanying drawings and embodiments, so as to fully understand how the present invention applies technical means to solve technical problems and achieve the implementation process of technical effects and implement accordingly.

[0039] The existing on-board wireless communication network is usually a on-board wireless LAN composed of on-board wireless devices connected by wireless signals. It has the advantages of reducing wiring costs, flexible equipment deployment, space saving, and convenient operation and maintenance. However, due to the openness of wireless networks and the flexibility of device access, wireless networks are more vulnerable to malicious attacks and illegal access, resulting in the leakage of train operation data and even affecting the safe operation of trains. Therefore, it is urgent to provide a wireless device access authentication method to improve the security of wireless network communications.

[0040] In view of this, the present invention provides a wireless device access authentication method, which matches the access key sent by the wireless device with the preset key; in response to the instruction that the access key and the preset key are successfully matched, the access authentication request sent by the wireless device is sent to all wireless devices that have been connected to the network, and the access authentication request includes wireless device identification information and input blockchain data; in response to the instruction that the wireless devices that have been connected to the network have successfully authenticated the input blockchain data, the wireless device is connected to the wireless network based on the wireless device identification information. By sending the access authentication request to the wireless devices that have been connected to the network, and successfully authenticating the newly added wireless devices based on the pre-stored blockchain data jointly maintained by the wireless devices that have been connected to the network, and then connecting the wireless devices to the wireless network, illegal access can be avoided, and the reliability and security of access authentication can be effectively improved.

[0041] It should be noted that the wireless device access authentication method provided in the embodiment of the present invention can be applied to the process of a train-mounted wireless device accessing the train-mounted wireless network.

[0042] Embodiment 1

[0043] See also Figure 1 As shown, Figure 1 A schematic flow chart of a wireless device access authentication method provided by an embodiment of the present invention is shown, which can be applied to a wireless access point, including:

[0044] Step S101: matching the access key sent by the wireless device with the preset key;

[0045] Step S102: in response to an instruction that the access key and the preset key are matched successfully, sending an access authentication request sent by the wireless device to all wireless devices that have joined the network, the access authentication request including wireless device identification information and input blockchain data;

[0046] Step S103: In response to the instruction that the wireless device that has joined the network has successfully authenticated the input blockchain data, the wireless device is connected to the wireless network based on the wireless device identification information.

[0047] Among them, the wireless device identification information may include the device ID and / or the device MAC address. The wireless device can access the wireless network through a wireless access point, where the wireless network may include WiFi, Bluetooth, ZigBee, etc.

[0048] In some embodiments, the configuration of the wireless device can be pre-exported from other wireless devices that have already accessed the network. The configuration of the wireless device may include a preset wireless access point identifier, a preset key, and pre-stored blockchain data for pre-accessing the wireless access point. The wireless device to be accessed obtains the exported configuration and sends an access key and an access authentication request to the corresponding wireless access point based on the preset wireless access point identifier in the configuration.

[0049] In the embodiments of the present invention, refer to Figure 2 , Figure 2 which shows a schematic flowchart of the method for authenticating input blockchain data provided by the embodiments of the present invention. The wireless device that has already accessed the network can authenticate the input blockchain data through the following steps:

[0050] Step S201: Compare the input blockchain data with the pre-stored blockchain data of the wireless device that has already accessed the network;

[0051] Step S202: Authenticate the input blockchain data according to the comparison result.

[0052] In the embodiments of the present invention, step S202 may specifically be that when the input blockchain corresponding to the input blockchain data belongs to a sub-chain of the pre-stored blockchain corresponding to the pre-stored blockchain data and the lengths of the input blockchain and the pre-stored blockchain satisfy 0 ≤ n - m ≤ k, the input blockchain data passes the authentication, where m represents the length of the input blockchain, n represents the length of the pre-stored blockchain, and k is any positive integer.

[0053] In some embodiments, in order to improve the reliability of access authentication, the value of k can satisfy 0 ≤ k ≤ 5.

[0054] Among them, the input blockchain data of the i-th input block can be represented by Ai, and the pre-stored blockchain data of the i-th pre-stored block can be represented by Bi. When n ≥ m and Ai = Bi, i ∈ [1, m], it is considered that the input blockchain belongs to a sub-chain of the pre-stored blockchain.

[0055] The above is a wireless device access authentication method provided by Embodiment 1 of the present invention, which matches the access key sent by the wireless device with a preset key; in response to the instruction that the access key and the preset key match successfully, the access authentication request sent by the wireless device is sent to all the wireless devices that have already accessed the network, and the access authentication request includes the wireless device identification information and the input blockchain data; in response to the instruction that all the wireless devices that have already accessed the network authenticate the input blockchain data successfully, the wireless device is connected to the wireless network based on the wireless device identification information. By sending the access authentication request to the wireless devices that have already accessed the network and authenticating the newly added wireless device based on the pre-stored blockchain data jointly maintained by the wireless devices that have already accessed the network and then connecting the wireless device to the wireless network, illegal access can be avoided, and the reliability and security of access authentication can be effectively improved.

[0056] Embodiment 2

[0057] See Figure 3 as shown in Figure 3 FIG. shows a schematic flow chart of a wireless device access authentication method provided by Embodiment 2 of the present invention, which may include:

[0058] Step S301: Match the access key sent by the wireless device with a preset key;

[0059] Step S302: In response to the instruction that the access key and the preset key match successfully, send the access authentication request sent by the wireless device to all the wireless devices that have already accessed the network, and the access authentication request includes the wireless device identification information and the input blockchain data;

[0060] Step S303: In response to the instruction that all the wireless devices that have already accessed the network authenticate the input blockchain data successfully, connect the wireless device to the wireless network based on the wireless device identification information;

[0061] Step S304: Generate a first transaction record according to the wireless device identification information;

[0062] Step S305: Send the first transaction record to all the wireless devices that have already accessed the network.

[0063] Among them, the wireless device identification information may include the device ID and / or the device MAC address. The wireless device can access the wireless network through a wireless access point, where the wireless network may include WiFi, Bluetooth, ZigBee, etc.

[0064] In some embodiments, the configuration of the wireless device can be pre-exported from other wireless devices that have already accessed the network. The configuration of the wireless device can include a preset wireless access point identifier, a preset key, and pre-stored blockchain data of the pre-access wireless access point. The wireless device to be accessed obtains the exported configuration and sends an access key and an access authentication request to the corresponding wireless access point based on the preset wireless access point identifier in the configuration.

[0065] In the embodiments of the present invention, refer to Figure 2 , Figure 2 which shows a schematic flowchart of the method for authenticating input blockchain data provided by the embodiments of the present invention. The wireless device that has already accessed the network can authenticate the input blockchain data through the following steps:

[0066] Step S201: Compare the input blockchain data with the pre-stored blockchain data of the wireless device that has already accessed the network;

[0067] Step S202: Authenticate the input blockchain data according to the comparison result.

[0068] In the embodiments of the present invention, step S202 can be specifically that when the input blockchain corresponding to the input blockchain data belongs to a sub-chain of the pre-stored blockchain corresponding to the pre-stored blockchain data and the length of the input blockchain and the length of the pre-stored blockchain satisfy 0 ≤ n - m ≤ k, the input blockchain data passes the authentication, where m represents the length of the input blockchain, n represents the length of the pre-stored blockchain, and k is any positive integer.

[0069] In some embodiments, in order to improve the reliability of access authentication, the value of k can satisfy 0 ≤ k ≤ 5.

[0070] Among them, the input blockchain data of the i-th input block can be represented by Ai, and the pre-stored blockchain data of the i-th pre-stored block can be represented by Bi. When n ≥ m and Ai = Bi, i ∈ [1, m], it is considered that the input blockchain belongs to a sub-chain of the pre-stored blockchain.

[0071] In some embodiments, step S305 can be specifically to send the first transaction record to all wireless devices that have already accessed the network by unicast, multicast, or broadcast.

[0072] In an embodiment of the present invention, the first transaction record stores a record of a wireless device successfully accessing a wireless network. By sending the first transaction record to all the wireless devices that have accessed the network, each of the wireless devices that have accessed the network can add the first transaction record to the pre-stored blockchain data maintained by itself, so as to keep the pre-stored blockchain data of each device consistent. In addition, each of the wireless devices that have accessed the network can perform access authentication on subsequent wireless devices to be accessed based on the updated pre-stored blockchain data, which is conducive to performing access authentication based on the continuously updated pre-stored blockchain data, and allowing the access of the wireless device after the authentication is passed, effectively improving the security and reliability of the wireless device access authentication.

[0073] The above is a wireless device access authentication method provided in the second embodiment of the present invention, which matches the access key sent by the wireless device with a preset key; in response to an instruction that the access key and the preset key match successfully, the access authentication request sent by the wireless device is sent to all the wireless devices that have accessed the network, and the access authentication request includes wireless device identification information and input blockchain data; in response to an instruction that all the wireless devices that have accessed the network authenticate the input blockchain data successfully, the wireless device is accessed to the wireless network based on the wireless device identification information. And a first transaction record is generated according to the wireless device identification information and sent to all the wireless devices that have accessed the network. By authenticating the newly added wireless device based on the pre-stored blockchain data jointly maintained by the wireless devices that have accessed the network and then accessing the wireless device to the wireless network, illegal access can be avoided. In addition, by generating the first transaction record and sending it to all the wireless devices that have accessed the network, it is conducive to subsequent access authentication based on the continuously updated pre-stored blockchain data of each wireless device that has accessed the network, and accessing the wireless device to the wireless network after the authentication is passed, effectively improving the security and reliability of the wireless device access authentication.

[0074] Embodiment Three

[0075] It should be noted that this embodiment can be implemented based on the above Embodiment One or Embodiment Two. In the third embodiment of the present invention, the solution implemented based on Embodiment One will be taken as an example for description.

[0076] See Figure 4 as shown Figure 4 The flowchart of a wireless device access authentication method provided in the third embodiment of the present invention is shown, which may include:

[0077] Step S401: Match the access key sent by the wireless device with a preset key;

[0078] Step S402: Update the preset wireless access point identifier and the preset key by means of automatic triggering or in response to a user's manual input instruction;

[0079] Step S403: Generate a second transaction record based on the updated preset wireless access point identifier and preset key;

[0080] Step S404: Send the second transaction record to all the networked wireless devices to update the pre-stored blockchain data of each networked wireless device;

[0081] Step S405: Match the access key sent by the wireless device with the updated preset key;

[0082] Step S406: In response to the instruction that the access key and the updated preset key match successfully, send the access authentication request sent by the wireless device to all the networked wireless devices, where the access authentication request includes the wireless device identification information and the input blockchain data;

[0083] Step S407: In response to the instruction that all the networked wireless devices authenticate the input blockchain data successfully based on the updated pre-stored blockchain data, connect the wireless device to the wireless network based on the wireless device identification information.

[0084] Among them, the wireless device identification information may include the device ID and / or the device MAC address. The wireless device can access the wireless network through the wireless access point, where the wireless network may include WiFi, Bluetooth, ZigBee, etc.

[0085] In some embodiments, the configuration of the wireless device can be pre-exported from other networked wireless devices, and the configuration of the wireless device may include the preset wireless access point identifier, the preset key, and the pre-stored blockchain data of the pre-access wireless access point. The wireless device to be accessed obtains the exported configuration and sends the access key and the access authentication request to the corresponding wireless access point based on the preset wireless access point identifier in the configuration.

[0086] In the embodiments of the present invention, referring to Figure 2 , Figure 2 shows a schematic flowchart of the method for authenticating the input blockchain data provided by the embodiments of the present invention. The networked wireless devices can authenticate the input blockchain data through the following steps:

[0087] Step S201: Compare the input blockchain data with the pre-stored blockchain data of the networked wireless device;

[0088] Step S202: Authenticate the input blockchain data according to the comparison result.

[0089] In an embodiment of the present invention, step S202 may be specifically as follows: when the input blockchain corresponding to the input blockchain data belongs to a sub-chain of the pre-stored blockchain corresponding to the pre-stored blockchain data, and the length of the input blockchain and the length of the pre-stored blockchain satisfy 0 ≤ n - m ≤ k, the input blockchain data passes the authentication, where m represents the length of the input blockchain, n represents the length of the pre-stored blockchain, and k is any positive integer.

[0090] In some embodiments, to improve the reliability of access authentication, the value of k may satisfy 0 ≤ k ≤ 5.

[0091] Among them, the input blockchain data of the i-th input block may be represented by Ai, and the pre-stored blockchain data of the i-th pre-stored block may be represented by Bi. When n ≥ m and Ai = Bi, i ∈ [1, m], it is considered that the input blockchain belongs to a sub-chain of the pre-stored blockchain.

[0092] In an embodiment of the present invention, as shown in Figure 5 shown, Figure 5 FIG. shows a schematic flowchart of a method for updating a preset wireless access point identifier and a preset password provided by an embodiment of the present invention. Step S402 may be specifically as follows:

[0093] Step S4021: Generate a new preset wireless access point identifier and a new preset key by means of automatic triggering or in response to a user's manual input instruction;

[0094] Step S4022: Send the new preset wireless access point identifier and the new preset key to all the wireless devices that have accessed the network;

[0095] Step S4023: When receiving the update completion confirmation information fed back by all the wireless devices that have accessed the network, update the preset wireless access point identifier and the preset key.

[0096] In step S4023, updating is performed after receiving the update completion confirmation information fed back by all the wireless devices that have accessed the network, which can ensure the update synchronization between the wireless access point and each wireless device that has accessed the network. In other embodiments, when the update completion confirmation information of some wireless devices that have accessed the network is not received, these wireless devices that have accessed the network may be disconnected from the network.

[0097] In step S4021, the reliability of access authentication can also be improved by updating the preset wireless access point identifier. Subsequent wireless devices to be connected to the network need to search for the corresponding wireless access point based on the pre-known wireless access point identifier. When the wireless access point identifier of the wireless device is the same as the updated preset wireless access point identifier of the wireless access point, the wireless device can further send an access key to the wireless access point for matching.

[0098] Since the update of the preset wireless access point identifier and the preset key will cause the network to reconnect, the preset wireless access point identifier and the preset key can be updated at a relatively low update frequency.

[0099] In some embodiments, step S404 may specifically be to send the second transaction record to all the wireless devices that have accessed the network by means of unicast, multicast or broadcast.

[0100] In some embodiments, the devices that have accessed the network may also generate a third transaction record based on any one of their respective configuration modifications, power-on, power-off, network connection and network disconnection operations, and send the transaction record to the wireless devices that have accessed the network. The wireless devices that have accessed the network may add the third transaction record to their respective pre-stored blockchain data to ensure the consistency of the pre-stored blockchain data of each wireless device that has accessed the network. In this method, generating a new transaction record based on any one of the respective configuration modifications, power-on, power-off, network connection and network disconnection operations of the wireless devices that have accessed the network and adding the new transaction record to the pre-stored blockchain data is convenient for tracking and tracing, can prevent data from being tampered with privately, and thus is beneficial to improving the security of access authentication.

[0101] It should be noted that step S403 and step S405 may be executed simultaneously, or step S403 may be executed first and then step S405, or step S405 may be executed first and then step S403. In the embodiments of the present invention, no special limitation will be made on the execution order of S403 and step S405.

[0102] The above is a schematic flowchart of a wireless device access authentication method provided by Embodiment 3 of the present invention, which can achieve the same beneficial effects as those of Embodiment 1 above. In addition, by updating the preset wireless access point identifier and the preset key, matching the updated preset key with the access key sent by the wireless device to be accessed, and generating and sending the second transaction record to each wireless device that has accessed the network based on the updated preset access point identifier and the preset key, the updated pre-stored blockchain data is obtained, and the input blockchain data is authenticated based on the updated pre-stored blockchain data, further improving the security and reliability of the authentication.

[0103] Embodiment 4

[0104] See Figure 6 as shown Figure 6 shows a schematic structural diagram of a wireless device access authentication system provided by an embodiment of the present invention, which may include a wireless device 61 to be accessed to the network, a wireless access point 62, and at least one wireless device 63 that has established a network connection with the wireless access point 62 based on a blockchain.

[0105] The wireless device 61 to be accessed to the network sends an access key and an access authentication request to the wireless access point 62.

[0106] The wireless access point 62 matches the access key sent by the wireless device 61 with a preset key; in response to an instruction that the access key and the preset key match successfully, it sends the access authentication request sent by the wireless device 61 to all the already networked wireless devices 63, where the access authentication request includes wireless device identification information and input blockchain data; and in response to an instruction that all the already networked wireless devices 63 authenticate the input blockchain data successfully, it connects the wireless device 61 to the wireless network based on the wireless device identification information;

[0107] The already networked wireless device 63 receives the input blockchain data sent by the wireless access point 62; authenticates the input blockchain data and sends an instruction of successful authentication to the wireless access point 62 when the input blockchain data is authenticated successfully.

[0108] Among them, the wireless device identification information may include a device ID and / or a device MAC address. The wireless device 61 can access the wireless network through the wireless access point 62, where the wireless network may include WiFi, Bluetooth, ZigBee, etc.

[0109] In some embodiments, the configuration of this wireless device can be pre-exported from other already networked wireless devices, and the configuration of this wireless device may include a preset wireless access point identifier, a preset key for pre-accessing the wireless access point, and pre-stored blockchain data. The wireless device to be accessed obtains the exported configuration and sends an access key and an access authentication request to the corresponding wireless access point based on the preset wireless access point identifier in the configuration.

[0110] In some embodiments, after the wireless device accesses the wireless network, the wireless access point 62 can also generate a first transaction record based on the wireless device identification information and send the first transaction record to all the already networked wireless devices 63, so as to add the first transaction record to the pre-stored blockchain data of the already networked wireless devices 63, realizing the update of the pre-stored blockchain data of the already networked wireless devices 63, and further improving the security of access authentication.

[0111] In some embodiments, the wireless access point 62 can also update the preset wireless access point identifier and the preset key by means of automatic triggering or in response to a user's manual input instruction, and generate a second transaction record based on the updated preset wireless access point identifier and preset key and send it to all the already networked devices 63; in other embodiments, the wireless access point 62 can also verify the access key based on the updated preset key to improve the security of authentication.

[0112] In the embodiments of the present invention, refer to Figure 2 , Figure 2The figure shows a schematic flowchart of the method for authenticating input blockchain data provided by an embodiment of the present invention. The networked wireless device 63 can authenticate the input blockchain data through the following steps:

[0113] Step S201: Compare the input blockchain data with the pre-stored blockchain data of the networked wireless device;

[0114] Step S202: Authenticate the input blockchain data according to the comparison result.

[0115] In the embodiment of the present invention, step S202 may specifically be that when the input blockchain corresponding to the input blockchain data belongs to a sub-chain of the pre-stored blockchain corresponding to the pre-stored blockchain data and the length of the input blockchain and the length of the pre-stored blockchain satisfy 0≤n - m≤k, the input blockchain data passes the authentication, where m represents the length of the input blockchain, n represents the length of the pre-stored blockchain, and k is any positive integer.

[0116] In some embodiments, in order to improve the reliability of access authentication, the value of k may satisfy 0≤k≤5.

[0117] Among them, the input blockchain data of the i-th input block can be represented by Ai, and the pre-stored blockchain data of the i-th pre-stored block can be represented by Bi. When n≥m and Ai = Bi, i∈[1, m], it is considered that the input blockchain belongs to a sub-chain of the pre-stored blockchain.

[0118] In some embodiments, the networked wireless device 63 can generate a third transaction record based on at least one of configuration modification, power-on, power-off, network connection, and network disconnection and send the third transaction record to other networked wireless devices, so as to update the pre-stored blockchain data of each networked wireless device based on the third transaction record, thereby facilitating the improvement of the security and reliability of access authentication.

[0119] The above is a wireless device access authentication system provided by the fourth embodiment of the present invention. The system sends an access authentication request to all networked wireless devices 63, authenticates the newly added wireless device 61 based on the pre-stored blockchain data jointly maintained by the networked wireless devices 63, and then connects the wireless device 61 to the wireless network, which can reduce illegal access and effectively improve the reliability and security of access authentication.

[0120] On the other hand, the present invention also provides a storage medium in which a computer program is stored. When the computer program is executed by a processor, it can implement the wireless device access authentication method of any one of the above embodiments 1 to 3.

[0121] The processes, functions, methods, and / or software described above can be recorded, stored, or fixed in one or more computer-readable storage media, which include program instructions that will be implemented by a computer to cause a processor to execute the program instructions. The storage media may also separately include program instructions, data files, data structures, etc., or include a combination thereof. The storage media or program instructions can be specifically designed and understood by those skilled in the computer software field, or the storage media or instructions may be known and available to those skilled in the computer software field. Examples of computer-readable media include: magnetic media, such as hard disks, floppy disks, and magnetic tapes; optical media, such as CD-ROM discs and DVDs; magneto-optical media, such as optical discs; and hardware devices specifically configured to store and execute program instructions, such as read-only memory (ROM), random access memory (RAM), flash memory, etc. Examples of program instructions include machine code (e.g., code generated by a compiler) and files containing high-level code that can be executed by a computer using an interpreter. The described hardware devices can be configured to act as one or more software modules to perform the operations and methods described above, and vice versa. Additionally, the computer-readable storage media can be distributed in networked computer systems and can store and execute computer-readable code or program instructions in a decentralized manner.

[0122] Another aspect of the present invention provides a device, as shown in Figure 7 shown Figure 7 FIG. shows a schematic diagram of a device provided by an embodiment of the present invention, which includes a memory 71 and a processor 72. A computer program is stored in the memory 71, and when the computer program is executed by the processor 72, it can implement the wireless device access authentication method of any one of Embodiments 1 to 3 above.

[0123] It should be noted that the device may include one or more processors 72 and a memory 71, and the processor 72 and the memory 71 can be connected by a bus or other means. The memory 71, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. By running the non-volatile software programs, instructions, and modules stored in the memory 71, the processor 72 thus executes various functional applications and data processing of the device, that is, implements the wireless device access authentication method of any one of Embodiments 1 to 3 above.

[0124] Although the embodiments disclosed in the present invention are as above, the content described is only an embodiment adopted for the convenience of understanding the present invention and is not intended to limit the present invention. Any person skilled in the art within the technical field to which the present invention pertains may make any modifications and changes in the form of implementation and details without departing from the spirit and scope disclosed in the present invention. However, the protection scope of the present invention shall still be subject to the scope defined by the appended claims.

Claims

1. A method for authenticating access to a wireless device, characterized in that, Including: Matching the access key sent by the wireless device with a preset key; In response to the instruction that the access key and the preset key match successfully, sending the access authentication request sent by the wireless device to all the already networked wireless devices, where the access authentication request includes wireless device identification information and input blockchain data; In response to the instruction that all the already networked wireless devices authenticate the input blockchain data successfully, connecting the wireless device to the wireless network based on the wireless device identification information; The already networked wireless devices authenticate the input blockchain data through the following steps: Comparing the input blockchain data with the pre-stored blockchain data of the already networked wireless devices; Authenticating the input blockchain data according to the comparison result; The authenticating the input blockchain data according to the comparison result includes: When the input blockchain corresponding to the input blockchain data belongs to a sub-chain of the pre-stored blockchain corresponding to the pre-stored blockchain data and the length of the input blockchain and the length of the pre-stored blockchain satisfy 0 ≤ n - m ≤ k, the input blockchain data passes the authentication, where m represents the length of the input blockchain, n represents the length of the pre-stored blockchain, and k is any positive integer.

2. The method according to claim 1, characterized in that, After connecting the wireless device to the wireless network based on the wireless device identification information in response to the instruction that all the already networked wireless devices authenticate the input blockchain data successfully, the method further includes: Generating a first transaction record according to the wireless device identification information; Sending the first transaction record to all the already networked wireless devices.

3. The method according to claim 1, characterized in that, Before matching the access key sent by the wireless device with the preset key, the method further includes: updating the preset wireless access point identifier and the preset key by means of automatic triggering or in response to a user manual input instruction.

4. The method according to claim 3, characterized in that, After updating the preset wireless access point identifier and the preset key, the method further includes: Generating a second transaction record based on the updated preset wireless access point identifier and the preset key; Sending the second transaction record to all the already networked wireless devices to update the pre-stored blockchain data of each of the already networked wireless devices.

5. A wireless device access authentication system, characterized in that, The wireless device access authentication system includes a wireless device to be networked, a wireless access point, and at least one already networked wireless device that has established a network connection with the wireless access point based on the blockchain, The wireless device to be networked sends an access key and an access authentication request to the wireless access point; The wireless access point matches the access key sent by the wireless device with a preset key; In response to the instruction that the access key and the preset key match successfully, sending the access authentication request sent by the wireless device to all the already networked wireless devices, where the access authentication request includes wireless device identification information and input blockchain data; And in response to the instruction that all the already networked wireless devices authenticate the input blockchain data successfully, connecting the wireless device to the wireless network based on the wireless device identification information; The networked wireless device receives the input blockchain data sent by the wireless access point; Authenticates the input blockchain data and sends an authentication success instruction to the wireless access point when the authentication of the input blockchain data is successful; Among them, the process of authenticating the input blockchain data includes: when the input blockchain corresponding to the input blockchain data belongs to a sub-chain of the pre-stored blockchain corresponding to the pre-stored blockchain data and the length of the input blockchain and the length of the pre-stored blockchain satisfy 0≤n-m≤k, the input blockchain data passes the authentication, where m represents the length of the input blockchain, n represents the length of the pre-stored blockchain, and k is any positive integer.

6. The wireless device access authentication system according to claim 5, characterized in that, It further includes: The networked wireless device generates a third transaction record based on at least one of configuration modification, power-on, power-off, network connection, and network disconnection and sends the third transaction record to other networked wireless devices to update the pre-stored blockchain data of each networked wireless device based on the third transaction record.

7. A storage medium, characterized in that, A computer program is stored in the storage medium, and when the computer program is executed by a processor, it can implement the wireless device access authentication method described in any one of claims 1 to 4.

8. A device, characterized in that, It includes a memory and a processor, and a computer program is stored in the memory. When the computer program is executed by the processor, it can implement the wireless device access authentication method described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Device networking authentication method based on blockchain

    CN108833081A

  • Water conservancy Internet of Things terminal access authentication method and system based on block chain

    CN112202812A