Network configuration method and system of satellite flash equipment, terminal and storage medium

By pairing and distribution network authentication in the Starflash device network configuration and transmitting data using encrypted transmission channels, the problem of low security of network configuration and data transmission in the prior art is solved, and higher security and data protection are achieved.

CN119562263APending Publication Date: 2025-03-04深圳开鸿数字产业发展有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411521676.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

In the prior art, when the equipment using the star flash module is configured in the network, the security authentication between the distribution network master and the slave device to be distributed is not performed, resulting in low security of the network configuration and the configured data is not encrypted, resulting in low security of data transmission.

Method used

By obtaining the equipment information of the distribution network master device and the distribution network slave device to be distributed, and using the distribution network authentication key to perform distribution network authentication. If the authentication is passed, the network configuration will be carried out, and the distribution network data will be transmitted through the encrypted transmission channel.

Benefits of technology

Improve the security of the network configuration of Star Flash equipment, and through security authentication and data encryption, the security of data transmission is enhanced, and potential network attacks and data leakage is prevented.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119562263A_ABST
    Figure CN119562263A_ABST
Patent Text Reader

Abstract

The invention discloses a network configuration method and system for a satellite flash device, a terminal and a storage medium, and the method comprises the steps: obtaining first device information of a network distribution master device and second device information of a target slave device to be subjected to network distribution, and carrying out the pairing of the network distribution master device and the target slave device to be subjected to network distribution according to the first device information and the second device information; when the network distribution master device and the target slave device to be subjected to network distribution are paired, obtaining a network distribution authentication key of the network distribution master device, and performing network distribution authentication on the target slave device to be subjected to network distribution according to the network distribution authentication key to obtain an authentication result; and if the authentication result is that the authentication of the to-be-configured network slave device is passed, performing network configuration on the network distribution master device and the target to-be-configured network slave device to obtain a network distribution result. According to the invention, when the satellite flash module carries out network configuration, security authentication can be carried out on the network distribution master device and the slave device to be subjected to network distribution so as to improve security, and encryption transmission is carried out on the network distribution data of the satellite flash device so as to improve the security of data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of device network configuration, and in particular to a network configuration method, system, terminal and computer-readable storage medium for a Star Flash device. Background Art

[0002] As a new generation of wireless short-range communication technology, Star Flash has the advantages of low latency, precise synchronization, and high reliability compared with the currently widely used Bluetooth and WiFi. Star Flash not only combines the advantages of multiple traditional wireless technology standards, but also introduces new technologies such as 5G Polar code, central scheduling, and ultra-short frames to address the shortcomings of other technologies. It will bring users lower energy consumption, faster speed, lower latency, more stable connection, wider coverage, and greater networking capabilities. The advantages of Star Flash technology give it broad application prospects in multiple fields. In the field of smart home, Star Flash technology can achieve efficient interconnection between smart home devices and provide users with a more convenient and intelligent life experience. In the field of smart manufacturing, Star Flash technology can realize real-time data communication between industrial equipment and provide support for the automation and intelligence of industrial production. In the field of smart cars, Star Flash technology can achieve high-speed and low-latency communication between in-vehicle devices, providing a foundation for applications such as smart driving and Internet of Vehicles.

[0003] At present, when devices using the Star Flash module are performing network configuration, no security authentication is performed between the network configuration master device and the slave device to be configured, resulting in low security of the network configuration, and the configuration data is not encrypted, resulting in low security of data transmission.

[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0005] The main purpose of the present invention is to provide a network configuration method, system, terminal and storage medium for Star Flash equipment, aiming to solve the problem in the prior art that when the equipment using the Star Flash module is performing network configuration, there is no security authentication between the distribution network equipment and the slave device to be configured, resulting in low security of the network configuration, and the configuration data is not encrypted, resulting in low security of data transmission.

[0006] To achieve the above object, the present invention provides a network configuration method for a Star Flash device, the network configuration method for the Star Flash device comprising the following steps:

[0007] Acquire first device information of a network configuration master device and second device information of a target network configuration slave device, and pair the network configuration master device with the target network configuration slave device according to the first device information and the second device information;

[0008] When the network configuration master device and the target network configuration slave device are paired, the network configuration authentication key of the network configuration master device is obtained, and the network configuration authentication is performed on the target network configuration slave device according to the network configuration authentication key to obtain an authentication result;

[0009] If the authentication result is that the to-be-configured slave device has passed the authentication, network configuration is performed on the network configuration master device and the target to-be-configured slave device to obtain a network configuration result.

[0010] Optionally, the network configuration method of the Star Flash device, wherein the obtaining of first device information of the network distribution master device and second device information of the target network distribution slave device, and pairing the network distribution master device with the target network distribution slave device according to the first device information and the second device information, specifically includes:

[0011] Obtain first device information of the network distribution master device, wherein the first device information includes a device model, a device ID, and a device network distribution status;

[0012] Obtain a list of IDs of slave devices to be configured, perform matching processing on the list of IDs of slave devices to be configured according to the first device information, obtain a target slave device to be configured, and obtain second device information of the target slave device to be configured;

[0013] The network configuration master device is connected and paired with the target network configuration slave device according to the first device information and the second device information, wherein the connection and pairing methods include Bluetooth connection, WiFi connection and Star Flash connection.

[0014] Optionally, the network configuration method of the Star Flash device, wherein when the network configuration master device and the target network configuration slave device are paired, the network configuration authentication key of the network configuration master device is obtained, and the network configuration authentication is performed on the target network configuration slave device according to the network configuration authentication key to obtain the authentication result, specifically including:

[0015] When the network configuration master device and the target network configuration slave device are paired, obtaining the network configuration authentication key of the network configuration master device;

[0016] Sending the key distribution command code of the network configuration authentication key to the target network slave device to be configured, and obtaining the key distribution result of the target network slave device to be configured, wherein the key distribution result is obtained by the target network slave device to be configured processing the key distribution command code;

[0017] If the key distribution result is that the network configuration authentication key of the network configuration master device is successfully distributed, a network configuration authentication request is generated according to the key distribution result, a corresponding cryptographic algorithm is called according to the network configuration authentication request, and the target network configuration slave device is authenticated according to the cryptographic algorithm to obtain an authentication result.

[0018] Optionally, the network configuration method of the Star Flash device, wherein the key distribution command code of the network configuration authentication key is sent to the target network slave device to be configured, and the key distribution result of the target network slave device to be configured is obtained, specifically comprising:

[0019] Obtaining a key distribution command code of a network configuration authentication key, and sending the key distribution command code to the target network configuration slave device;

[0020] Obtaining a challenge code of the target slave device to be networked, and sending the challenge code to the networked master device, wherein the challenge code is generated by the target slave device to be networked according to the key distribution command code;

[0021] Encrypt the network configuration master device according to the challenge code to obtain ciphertext information, and send the ciphertext information to the target network configuration slave device;

[0022] The decryption result of the target slave device to be configured is obtained, and a corresponding key distribution result is obtained according to the decryption result, wherein the decryption result is obtained by the target slave device to be configured decrypting the ciphertext information.

[0023] Optionally, the network configuration method of the Star Flash device, wherein the step of obtaining the decryption result of the target slave device to be networked and obtaining the corresponding key distribution result according to the decryption result, further comprises:

[0024] Obtaining a target challenge code of the decryption result, and judging whether the distribution of the network configuration authentication key of the network configuration master device is successful according to the target challenge code;

[0025] If the target challenge code is consistent with the challenge code of the target to-be-configured slave device, it is determined that the network configuration authentication key distribution of the network configuration master device is successful, and a key distribution return code is generated according to the decryption result, and the key distribution return code is sent to the network configuration master device;

[0026] If the target challenge code is inconsistent with the challenge code of the target slave device to be configured, it is determined that the configuration authentication key distribution of the configuration master device has failed, and an error code is generated according to the decryption result, and the error code is sent to the configuration master device.

[0027] Optionally, the network configuration method of the Star Flash device, wherein if the authentication result is that the to-be-configured network slave device has passed the authentication, the network configuration master device and the target to-be-configured network slave device are configured to obtain the network configuration result, specifically comprising:

[0028] If the authentication result is that the to-be-configured slave device has passed the authentication, then an encrypted transmission channel is established between the to-be-configured master device and the target to-be-configured slave device according to the authentication result;

[0029] Acquire the network distribution service of the network distribution master device, extract data from the network distribution service to obtain target network distribution data, and transmit the target network distribution data to the target network distribution slave device to be configured through the encrypted transmission channel;

[0030] The target network configuration slave device is configured according to the target network configuration data to obtain a corresponding network configuration result.

[0031] Optionally, the network configuration method of the Star Flash device, wherein the network configuration of the target to-be-networked slave device is performed according to the target network configuration data to obtain a corresponding network configuration result, and then further comprises:

[0032] Acquire the network service of the target slave device to be networked, transmit the network service to the networked master device through the encrypted transmission channel, obtain the transmission result, and determine whether the target slave device to be networked is successfully networked according to the transmission result;

[0033] If the transmission result is that the network configuration master device receives the network service, it is determined that the network configuration of the target network configuration slave device is successful;

[0034] If the transmission result is that the network configuration master device has not received the network service, it is determined that the network configuration of the target network configuration slave device has failed, and a corresponding early warning reminder is issued.

[0035] Optionally, in the network configuration method of the Star Flash device, the network configuration system of the Star Flash device comprises:

[0036] A device pairing module, used to obtain first device information of a network configuration master device and second device information of a target network configuration slave device, and pair the network configuration master device with the target network configuration slave device according to the first device information and the second device information;

[0037] A network configuration authentication module is used to obtain a network configuration authentication key of the network configuration master device when the network configuration master device and the target network configuration slave device are paired, and to perform network configuration authentication on the target network configuration slave device according to the network configuration authentication key to obtain an authentication result;

[0038] The network configuration module is used to perform network configuration on the network configuration master device and the target network configuration slave device to be configured to obtain a network configuration result if the authentication result is that the network configuration slave device to be configured has passed the authentication.

[0039] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and a network configuration program of the Star Flash device stored in the memory and runnable on the processor, and when the network configuration program of the Star Flash device is executed by the processor, the steps of the network configuration method of the Star Flash device as described above are implemented.

[0040] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a network configuration program of the Star Flash device, and when the network configuration program of the Star Flash device is executed by the processor, the steps of the network configuration method of the Star Flash device as described above are implemented.

[0041] In the present invention, the first device information of the network distribution master device and the second device information of the target network distribution slave device to be distributed are obtained, and the network distribution master device is paired with the target network distribution slave device to be distributed according to the first device information and the second device information; when the network distribution master device and the target network distribution slave device to be distributed are paired, the network distribution authentication key of the network distribution master device is obtained, and the target network distribution slave device to be distributed is authenticated according to the network distribution authentication key to obtain an authentication result; if the authentication result is that the network distribution slave device to be distributed is authenticated, the network distribution master device and the target network distribution slave device to be distributed are configured to obtain a network distribution result. The present invention can perform security authentication on the network distribution master device and the network distribution slave device to be distributed when the Star Flash module performs network configuration to improve security, and encrypt the network distribution data of the Star Flash device for transmission, thereby improving the security of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flow chart of a preferred embodiment of the network configuration method of the Star Flash device in the present invention;

[0043] Figure 2 It is a structural diagram of a preferred embodiment of the network configuration system of the Star Flash device in the present invention;

[0044] Figure 3 It is a schematic diagram of the operating environment of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0046] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0047] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0048] The network configuration method of the star flash device described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the network configuration method of the Star Flash device includes the following steps:

[0049] Step S10: Acquire first device information of a network configuration master device and second device information of a target network configuration slave device, and pair the network configuration master device with the target network configuration slave device according to the first device information and the second device information.

[0050] The step S10 comprises:

[0051] Step S11, obtaining first device information of the network distribution master device, wherein the first device information includes device model, device ID and device network distribution status;

[0052] Step S12, obtaining a list of IDs of slave devices to be configured, performing matching processing on the list of IDs of slave devices to be configured according to the first device information, obtaining a target slave device to be configured, and obtaining second device information of the target slave device to be configured;

[0053] Step S13: connect and pair the network configuration master device with the target network configuration slave device according to the first device information and the second device information, wherein the connection and pairing methods include Bluetooth connection, WiFi connection and Star Flash connection.

[0054] Specifically, before performing network configuration on the network distribution master device and the target network distribution slave device, it is necessary to obtain the first device information of the network distribution master device and the second device information of the target network distribution slave device. In this embodiment of the present invention, the L2 industrial tablet is used as the main distribution end, that is, the network distribution master device, and the L2 controller and the L0 adapter can be networked; and the L2 controller and the L0 adapter are used as the end to be distributed, that is, the network distribution slave device, the L0 adapter master uses Hi3863, and the L2 industrial tablet and the L2 controller both support SLE USB module; and the specific process of obtaining the first device information of the network configuration master device and the second device information of the target network configuration slave device is to obtain the first device information of the network configuration master device, wherein the first device information includes the device model, device ID and device network configuration status; then, obtain the ID list of the network configuration slave devices to be configured, for example, SID1, SID2, SID3, SID4 and SID5, etc., and then, match the ID list of the network configuration slave devices to be configured according to the first device information to obtain the target network configuration slave device, and obtain the second device information of the target network configuration slave device to be configured; then, connect and pair the network configuration master device with the target network configuration slave device to be configured according to the first device information and the second device information, wherein the connection and pairing methods include Bluetooth connection, WiFi connection and Star Flash connection.

[0055] Step S20: when the network configuration master device and the target network configuration slave device are paired, obtain the network configuration authentication key of the network configuration master device, and perform network configuration authentication on the target network configuration slave device according to the network configuration authentication key to obtain an authentication result.

[0056] The step S20 comprises:

[0057] Step S21: when the network configuration master device and the target network configuration slave device are paired, obtaining the network configuration authentication key of the network configuration master device;

[0058] Step S22: sending the key distribution command code of the network configuration authentication key to the target network slave device to be configured, and obtaining the key distribution result of the target network slave device to be configured, wherein the key distribution result is obtained by the target network slave device to be configured by processing the key distribution command code;

[0059] Step S23: If the key distribution result is that the network configuration authentication key of the network configuration master device is successfully distributed, a network configuration authentication request is generated according to the key distribution result, a corresponding cryptographic algorithm is called according to the network configuration authentication request, and the target network configuration slave device is authenticated according to the cryptographic algorithm to obtain an authentication result.

[0060] Specifically, in an embodiment of the present invention, because key distribution is required before the first network configuration between the network configuration master device and the target network configuration slave device, and the corresponding key, namely, the network configuration authentication key is encrypted and stored locally as key authentication information, subsequent authentication and network configuration data encryption and decryption are performed by using the distributed network configuration authentication key; when the network configuration master device and the target network configuration slave device are paired, the network configuration authentication key of the network configuration master device is obtained, for example, masterConfigKey, wherein each of the network configuration master devices has only one network configuration master key, namely, the network configuration authentication key, and the network configuration authentication key can be used to derive the slave device authentication key. (for example, deviceAuthKey) and data key (for example, deviceAuthKey), and update the configuration list of the corresponding slave device to be configured; after that, the key distribution command code of the configuration authentication key needs to be sent to the target slave device to be configured, and when the configuration master device distributes the key, it needs to use the corresponding interface, for example, keyDistribution interface, wherein the interface includes an external interface and an internal interface, and the external interface is used to provide for the configuration service call, for example, keyDistribution interface, getKeyStatus interface, ke yReset interface, deviceVetify interface, encryptConfigData interface and decryptConfigData, etc., the keyDistribution interface is used for key distribution, the getKeyStatus interface is used to query the key distribution status, the keyReset interface is used for key reset, the deviceVetify interface is used for network configuration authentication, the encryptConfigData interface is used to encrypt network configuration data, and the decryptConfigData interface is used to decrypt network configuration data; the internal interface includes a random value generation interface, a public-private key pair generation interface, a network configuration master key generation interface, a key derivation interface, a session key generation interface, etc.; the random value generation interface is used to generate a random value, for example, get_Random; the public-private key pair generation interface is used to generate a public key and a private key, wherein the public key is used to encrypt and protect the network configuration authentication key distributed by the network configuration master device to the network configuration slave device to be configured; the network configuration master key generation interface is used to generate a network configuration authentication key; the key derivation interface is used to derive a key; the session key generation interface is used to generate a session key, for example, get_sessionKey.

[0061] Afterwards, the key distribution command code of the network configuration authentication key is sent to the target network slave device to be configured through the keyDistribution interface. The specific distribution process is to obtain the key distribution command code of the network configuration authentication key, and send the key distribution command code to the target network slave device to be configured; after the target network slave device to be configured receives the key distribution command code, the target network slave device to be configured generates a corresponding challenge code (for example, slaveCH1) according to the key distribution command code, wherein the challenge code includes a slave device public-private key pair (for example, slavePK and slaveSK) and a key list, and each network slave device to be configured has a fixed public-private key pair, and obtains the challenge code of the target network slave device to be configured, and sends the challenge code to the network configuration master device.

[0062] After the network configuration master device receives the challenge code, the network configuration master device is encrypted according to the challenge code to obtain corresponding ciphertext information, for example, ID|deviceAuthKey|deviceDateKey|slaveCH1, and the ciphertext information is sent to the target network configuration slave device; after the target network configuration slave device receives the ciphertext information, the ciphertext information is decrypted to obtain the corresponding decryption result, and the decryption result of the target network configuration slave device is obtained, and the corresponding key distribution result is obtained according to the decryption result; then, the target network configuration slave device processes the key distribution command code to obtain the corresponding key distribution result, and obtains the key distribution result of the target network configuration slave device; if the key distribution result is that the network configuration authentication key distribution of the network configuration master device is successful, a network configuration authentication request is generated according to the key distribution result, the corresponding cryptographic algorithm is called according to the network configuration authentication request, and the target network configuration slave device is authenticated according to the cryptographic algorithm to obtain the authentication result.

[0063] Furthermore, after obtaining the corresponding key distribution result, it is necessary to determine whether the network configuration authentication key of the network configuration master device is successfully distributed. The specific judgment process is to obtain the target challenge code of the decryption result, and determine whether the network configuration authentication key of the network configuration master device is successfully distributed according to the target challenge code; if the target challenge code is consistent with the content of the challenge code of the target network slave device to be configured, it is determined that the network configuration authentication key of the network configuration master device is successfully distributed, and a key distribution return code is generated according to the decryption result, and the key distribution return code is sent to the network configuration master device; if the target challenge code is inconsistent with the content of the challenge code of the target network slave device to be configured, it is determined that the network configuration authentication key of the network configuration master device has failed to be distributed, and an error code is generated according to the decryption result, the error code is sent to the network configuration master device, and a reminder to redistribute the key is issued.

[0064] Step S30: If the authentication result is that the to-be-configured slave device has passed the authentication, network configuration is performed on the network configuration master device and the target to-be-configured slave device to obtain a network configuration result.

[0065] The step S30 comprises:

[0066] Step S31: If the authentication result is that the to-be-configured network slave device has passed the authentication, then an encrypted transmission channel is established between the to-be-configured network master device and the target to-be-configured network slave device according to the authentication result;

[0067] Step S32, acquiring the network distribution service of the network distribution master device, extracting data from the network distribution service to obtain target network distribution data, and transmitting the target network distribution data to the target network distribution slave device to be distributed through the encrypted transmission channel;

[0068] Step S33: Perform network configuration on the target slave device to be networked according to the target network configuration data to obtain a corresponding network configuration result.

[0069] Specifically, in an embodiment of the present invention, after obtaining the corresponding authentication result, if the authentication result is that the authentication of the to-be-configured slave device is passed, an encrypted transmission channel is established between the configuration network master device and the target to-be-configured slave device according to the authentication result; the configuration network service of the configuration network master device is obtained, data of the configuration network service is extracted to obtain target configuration network data, and the target configuration network data is transmitted to the target to-be-configured slave device through the encrypted transmission channel; thereafter, the network of the target to-be-configured slave device is configured according to the target configuration network data to obtain the corresponding configuration network result.

[0070] Furthermore, after the network configuration of the target slave device to be networked is performed, it is necessary to determine whether the target slave device to be networked is successfully networked. The specific judgment process is to obtain the network service of the target slave device to be networked, transmit the network service to the network configuration master device through the encrypted transmission channel, obtain the transmission result, and determine whether the target slave device to be networked is successfully networked based on the transmission result; if the transmission result is that the network configuration master device receives the network service, then it is determined that the network configuration of the target slave device to be networked is successful; if the transmission result is that the network configuration master device does not receive the network service, then it is determined that the network configuration of the target slave device to be networked has failed, and a corresponding early warning reminder is issued.

[0071] The present invention can perform security authentication on the network distribution master device and the network distribution slave device to be configured when the Star Flash module performs network configuration to improve security, and encrypt the network distribution data of the Star Flash device for transmission, thereby improving the security of data transmission.

[0072] Furthermore, if Figure 2 As shown, based on the network configuration method of the above-mentioned Star Flash device, the present invention also provides a network configuration system of the Star Flash device accordingly, and the network configuration system of the Star Flash device includes:

[0073] The device pairing module 51 is used to obtain the first device information of the network configuration master device and the second device information of the target network configuration slave device, and pair the network configuration master device with the target network configuration slave device according to the first device information and the second device information;

[0074] The network configuration authentication module 52 is used to obtain the network configuration authentication key of the network configuration master device when the network configuration master device and the target network configuration slave device are paired, and perform network configuration authentication on the target network configuration slave device according to the network configuration authentication key to obtain an authentication result;

[0075] The network configuration module 53 is used to perform network configuration on the network configuration master device and the target network configuration slave device to be configured to obtain a network configuration result if the authentication result is that the network configuration slave device to be configured has passed the authentication.

[0076] Furthermore, if Figure 3 As shown, based on the network configuration method of the above-mentioned Star Flash device, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 3 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0077] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Furthermore, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed on the terminal, such as the program code of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the network configuration program 40 of the Star Flash device is stored on the memory 20, and the network configuration program 40 of the Star Flash device can be executed by the processor 10, thereby realizing the network configuration method of the Star Flash device in the present application.

[0078] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the network configuration method of the Star Flash device.

[0079] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components of the terminal communicate with each other via a system bus.

[0080] In one embodiment, when the processor 10 executes the program 40 for network configuration of the Star Flash device in the memory 20, the following steps are implemented:

[0081] Acquire first device information of a network configuration master device and second device information of a target network configuration slave device, and pair the network configuration master device with the target network configuration slave device according to the first device information and the second device information;

[0082] When the network configuration master device and the target network configuration slave device are paired, the network configuration authentication key of the network configuration master device is obtained, and the network configuration authentication is performed on the target network configuration slave device according to the network configuration authentication key to obtain an authentication result;

[0083] If the authentication result is that the to-be-configured slave device has passed the authentication, network configuration is performed on the network configuration master device and the target to-be-configured slave device to obtain a network configuration result.

[0084] The acquiring of first device information of a network configuration master device and second device information of a target network configuration slave device, and pairing the network configuration master device with the target network configuration slave device according to the first device information and the second device information, specifically includes:

[0085] Obtain first device information of the network distribution master device, wherein the first device information includes a device model, a device ID, and a device network distribution status;

[0086] Obtain a list of IDs of slave devices to be configured, perform matching processing on the list of IDs of slave devices to be configured according to the first device information, obtain a target slave device to be configured, and obtain second device information of the target slave device to be configured;

[0087] The network configuration master device is connected and paired with the target network configuration slave device according to the first device information and the second device information, wherein the connection and pairing methods include Bluetooth connection, WiFi connection and Star Flash connection.

[0088] Among them, when the network configuration master device and the target network configuration slave device are paired, the network configuration authentication key of the network configuration master device is obtained, and the network configuration authentication of the target network configuration slave device is performed according to the network configuration authentication key to obtain the authentication result, which specifically includes:

[0089] When the network configuration master device and the target network configuration slave device are paired, obtaining the network configuration authentication key of the network configuration master device;

[0090] Sending the key distribution command code of the network configuration authentication key to the target network slave device to be configured, and obtaining the key distribution result of the target network slave device to be configured, wherein the key distribution result is obtained by the target network slave device to be configured processing the key distribution command code;

[0091] If the key distribution result is that the network configuration authentication key of the network configuration master device is successfully distributed, a network configuration authentication request is generated according to the key distribution result, a corresponding cryptographic algorithm is called according to the network configuration authentication request, and the target network configuration slave device is authenticated according to the cryptographic algorithm to obtain an authentication result.

[0092] The step of sending the key distribution command code of the network configuration authentication key to the target slave device to be configured and obtaining the key distribution result of the target slave device to be configured specifically includes:

[0093] Obtaining a key distribution command code of a network configuration authentication key, and sending the key distribution command code to the target network configuration slave device;

[0094] Obtaining a challenge code of the target slave device to be networked, and sending the challenge code to the networked master device, wherein the challenge code is generated by the target slave device to be networked according to the key distribution command code;

[0095] Encrypt the network configuration master device according to the challenge code to obtain ciphertext information, and send the ciphertext information to the target network configuration slave device;

[0096] The decryption result of the target slave device to be configured is obtained, and a corresponding key distribution result is obtained according to the decryption result, wherein the decryption result is obtained by the target slave device to be configured decrypting the ciphertext information.

[0097] The step of obtaining the decryption result of the target network slave device to be configured, and obtaining the corresponding key distribution result according to the decryption result, further includes:

[0098] Obtaining a target challenge code of the decryption result, and judging whether the distribution of the network configuration authentication key of the network configuration master device is successful according to the target challenge code;

[0099] If the target challenge code is consistent with the challenge code of the target to-be-configured slave device, it is determined that the network configuration authentication key distribution of the network configuration master device is successful, and a key distribution return code is generated according to the decryption result, and the key distribution return code is sent to the network configuration master device;

[0100] If the target challenge code is inconsistent with the challenge code of the target slave device to be configured, it is determined that the configuration authentication key distribution of the configuration master device has failed, and an error code is generated according to the decryption result, and the error code is sent to the configuration master device.

[0101] If the authentication result is that the to-be-configured slave device has passed the authentication, the network configuration of the network configuration master device and the target to-be-configured slave device is performed to obtain the network configuration result, which specifically includes:

[0102] If the authentication result is that the to-be-configured slave device has passed the authentication, then an encrypted transmission channel is established between the to-be-configured master device and the target to-be-configured slave device according to the authentication result;

[0103] Acquire the network distribution service of the network distribution master device, extract data from the network distribution service to obtain target network distribution data, and transmit the target network distribution data to the target network distribution slave device to be configured through the encrypted transmission channel;

[0104] The target network configuration slave device is configured according to the target network configuration data to obtain a corresponding network configuration result.

[0105] The step of performing network configuration on the target slave device to be networked according to the target network configuration data to obtain a corresponding network configuration result further includes:

[0106] Acquire the network service of the target slave device to be networked, transmit the network service to the networked master device through the encrypted transmission channel, obtain the transmission result, and determine whether the target slave device to be networked is successfully networked according to the transmission result;

[0107] If the transmission result is that the network configuration master device receives the network service, it is determined that the network configuration of the target network configuration slave device is successful;

[0108] If the transmission result is that the network configuration master device has not received the network service, it is determined that the network configuration of the target network configuration slave device has failed, and a corresponding early warning reminder is issued.

[0109] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a network configuration program of a Star Flash device, and when the network configuration program of the Star Flash device is executed by a processor, the steps of the network configuration method of the Star Flash device as described above are implemented.

[0110] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0111] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.

[0112] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A network configuration method for a Star Flash device, characterized in that: The network configuration method of the Star Flash device includes: Acquire first device information of a network configuration master device and second device information of a target network configuration slave device, and pair the network configuration master device with the target network configuration slave device according to the first device information and the second device information; When the network configuration master device and the target network configuration slave device are paired, the network configuration authentication key of the network configuration master device is obtained, and the network configuration authentication is performed on the target network configuration slave device according to the network configuration authentication key to obtain an authentication result; If the authentication result is that the to-be-configured slave device has passed the authentication, network configuration is performed on the network configuration master device and the target to-be-configured slave device to obtain a network configuration result.

2. The network configuration method of the Star Flash device according to claim 1, characterized in that: The acquiring first device information of the network configuration master device and second device information of the target network configuration slave device, and pairing the network configuration master device with the target network configuration slave device according to the first device information and the second device information specifically includes: Obtain first device information of the network distribution master device, wherein the first device information includes a device model, a device ID, and a device network distribution status; Obtain a list of IDs of slave devices to be configured, perform matching processing on the list of IDs of slave devices to be configured according to the first device information, obtain a target slave device to be configured, and obtain second device information of the target slave device to be configured; The network configuration master device is connected and paired with the target network configuration slave device according to the first device information and the second device information, wherein the connection and pairing methods include Bluetooth connection, WiFi connection and Star Flash connection.

3. The network configuration method of the Star Flash device according to claim 1, characterized in that: When the network configuration master device and the target network configuration slave device are paired, the network configuration authentication key of the network configuration master device is obtained, and the network configuration authentication of the target network configuration slave device is performed according to the network configuration authentication key to obtain the authentication result, which specifically includes: When the network configuration master device and the target network configuration slave device are paired, obtaining the network configuration authentication key of the network configuration master device; Sending the key distribution command code of the network configuration authentication key to the target network slave device to be configured, and obtaining the key distribution result of the target network slave device to be configured, wherein the key distribution result is obtained by the target network slave device to be configured processing the key distribution command code; If the key distribution result is that the network configuration authentication key of the network configuration master device is successfully distributed, a network configuration authentication request is generated according to the key distribution result, a corresponding cryptographic algorithm is called according to the network configuration authentication request, and the target network configuration slave device is authenticated according to the cryptographic algorithm to obtain an authentication result.

4. The network configuration method of the Star Flash device according to claim 3, characterized in that: The sending of the key distribution command code of the network configuration authentication key to the target slave device to be configured, and obtaining the key distribution result of the target slave device to be configured, specifically includes: Obtaining a key distribution command code of a network configuration authentication key, and sending the key distribution command code to the target network configuration slave device; Obtaining a challenge code of the target slave device to be networked, and sending the challenge code to the networked master device, wherein the challenge code is generated by the target slave device to be networked according to the key distribution command code; Encrypt the network configuration master device according to the challenge code to obtain ciphertext information, and send the ciphertext information to the target network configuration slave device; The decryption result of the target slave device to be configured is obtained, and a corresponding key distribution result is obtained according to the decryption result, wherein the decryption result is obtained by the target slave device to be configured decrypting the ciphertext information.

5. The network configuration method of the Star Flash device according to claim 4, characterized in that: The step of obtaining the decryption result of the target slave device to be configured and obtaining the corresponding key distribution result according to the decryption result further includes: Obtaining a target challenge code of the decryption result, and judging whether the distribution of the network configuration authentication key of the network configuration master device is successful according to the target challenge code; If the target challenge code is consistent with the challenge code of the target to-be-configured slave device, it is determined that the configuration authentication key distribution of the configuration master device is successful, and a key distribution return code is generated according to the decryption result, and the key distribution return code is sent to the configuration master device; If the target challenge code is inconsistent with the challenge code of the target slave device to be configured, it is determined that the configuration authentication key distribution of the configuration master device has failed, and an error code is generated according to the decryption result, and the error code is sent to the configuration master device.

6. The network configuration method of the Star Flash device according to claim 1, characterized in that: If the authentication result is that the to-be-configured slave device has passed the authentication, network configuration is performed on the configuration master device and the target to-be-configured slave device to obtain a configuration result, which specifically includes: If the authentication result is that the to-be-configured slave device has passed the authentication, then an encrypted transmission channel is established between the to-be-configured master device and the target to-be-configured slave device according to the authentication result; Acquire the network distribution service of the network distribution master device, extract data from the network distribution service to obtain target network distribution data, and transmit the target network distribution data to the target network distribution slave device to be configured through the encrypted transmission channel; The target network configuration slave device is configured according to the target network configuration data to obtain a corresponding network configuration result.

7. The network configuration method of the Star Flash device according to claim 6, characterized in that: The network configuration of the target slave device to be networked is performed according to the target network configuration data to obtain a corresponding network configuration result, and then further includes: Acquire the network service of the target slave device to be networked, transmit the network service to the networked master device through the encrypted transmission channel, obtain the transmission result, and determine whether the target slave device to be networked is successfully networked according to the transmission result; If the transmission result is that the network configuration master device receives the network service, it is determined that the network configuration of the target network configuration slave device is successful; If the transmission result is that the network configuration master device has not received the network service, it is determined that the network configuration of the target network configuration slave device has failed, and a corresponding early warning reminder is issued.

8. A network configuration system for a Star Flash device, characterized in that: The network configuration system of the Star Flash device includes: A device pairing module, used to obtain first device information of a network configuration master device and second device information of a target network configuration slave device, and pair the network configuration master device with the target network configuration slave device according to the first device information and the second device information; A network configuration authentication module is used to obtain a network configuration authentication key of the network configuration master device when the network configuration master device and the target network configuration slave device are paired, and to perform network configuration authentication on the target network configuration slave device according to the network configuration authentication key to obtain an authentication result; The network configuration module is used to perform network configuration on the network configuration master device and the target network configuration slave device to be configured to obtain a network configuration result if the authentication result is that the network configuration slave device to be configured has passed the authentication.

9. A terminal, characterized in that: The terminal includes a memory, a processor, and a network configuration program of the Star Flash device stored in the memory and executable on the processor. When the network configuration program of the Star Flash device is executed by the processor, the steps of the network configuration method of the Star Flash device as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer-readable storage medium stores a network configuration program of a Star Flash device. When the network configuration program of the Star Flash device is executed by a processor, the steps of the network configuration method of the Star Flash device as described in any one of claims 1-7 are implemented.