WO2023236984A1 - 无线网络的接入方法、装置、设备和存储介质 - Google Patents

无线网络的接入方法、装置、设备和存储介质 Download PDF

Info

Publication number
WO2023236984A1
WO2023236984A1 PCT/CN2023/098832 CN2023098832W WO2023236984A1 WO 2023236984 A1 WO2023236984 A1 WO 2023236984A1 CN 2023098832 W CN2023098832 W CN 2023098832W WO 2023236984 A1 WO2023236984 A1 WO 2023236984A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless network
network access
service set
password
encoded data
Prior art date
Application number
PCT/CN2023/098832
Other languages
English (en)
French (fr)
Inventor
张博
周春旭
蒋晓燕
Original Assignee
中移(杭州)信息技术有限公司
中国移动通信集团有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中移(杭州)信息技术有限公司, 中国移动通信集团有限公司 filed Critical 中移(杭州)信息技术有限公司
Publication of WO2023236984A1 publication Critical patent/WO2023236984A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information

Definitions

  • the present invention relates to the field of computer technology, and in particular, to a wireless network access method, device, equipment and storage medium.
  • Network provisioning refers to the process of connecting the devices to be configured to the wireless network. After the devices to be configured are connected to the network, they can report data to the cloud and receive instructions from the cloud. For devices with screen input, such as mobile phones, tablets, etc., users can directly enter the service set ID and/or password through the interface to allow the device with screen input to connect to the wireless network. However, for screenless devices, such as sockets, light bulbs, etc., users cannot input Internet access information to allow the screenless device to access the network. In this case, network configuration operations need to be performed on these screenless devices.
  • the user inputs the service set ID and/or password through the network distribution device, and sends the service set ID and/or password to the network device to be distributed, thereby completing the network configuration.
  • the effective data transmitted each time in the distribution network equipment and the network equipment to be distributed is very small. For example, in broadcast mode, each message transmits 1 byte, and in multicast mode, 3 bytes are transmitted each time.
  • the distribution network data needs to be split into multiple Packet sending, coupled with factors such as packet loss, signal strength, and interference from other devices, make network configuration time too long.
  • the main purpose of the present invention is to provide a wireless network access method, device, equipment and storage medium, aiming to solve the problem of how to reduce the long network distribution time.
  • the wireless network access method includes the following steps:
  • the step of determining a coding subtable in a preset coding table based on the service set identifier and/or password input by the user includes:
  • the encoding subtable is determined based on the character subset and the width.
  • the method further includes:
  • the character subset is sent to the network device to be configured, so that the network device to be configured generates the encoding subtable according to the character subset.
  • the step of generating a message according to the encoded data includes:
  • the device information and the encoded data are encrypted according to the encryption key and the salt value to obtain the message.
  • the wireless network access device includes:
  • a compression module configured to determine a coding sub-table in a preset coding table based on the service set identifier and/or password input by the user, where the number of characters in the coding sub-table is less than the number of characters in the coding table;
  • An encoding module configured to encode the service set identifier and/or the password according to the encoding subtable to obtain encoded data
  • a sending module configured to generate a message according to the encoded data and propagate the message to the network device to be configured.
  • the present invention provides a wireless network access method, which is applied to the network equipment to be distributed.
  • the wireless network access method includes the following steps:
  • the step of decoding the encoded data in the message to obtain the service set identifier and/or password includes:
  • the encoded data is decoded according to the encoding subtable to obtain the service set identifier and/or the password.
  • the step of decoding the encoded data in the message to obtain the service set identifier and/or password includes:
  • the encoded data in the message is decoded to obtain the service set identifier and/or the password.
  • the wireless network access device includes:
  • the receiving module is configured to receive messages sent by the distribution network equipment
  • a decoding module configured to decode the encoded data in the message to obtain the service set identifier and/or password
  • An access module configured to connect to a wireless network according to the service set identifier and/or the password.
  • the present invention also provides a wireless network access device.
  • the wireless network access device includes a memory, a processor, and a wireless network function stored in the memory and executable on the processor.
  • the access device of the wireless network is a network distribution device or a device to be configured.
  • the wireless network access program is executed by the processor, each step of the wireless network access method as described above is implemented.
  • the present invention also provides a computer-readable storage medium.
  • the computer-readable storage medium stores a wireless network access program.
  • the wireless network access program is executed by a processor, the above-mentioned steps are implemented.
  • the various steps of the wireless network access method are implemented.
  • the invention provides a wireless network access method, device, equipment and storage medium.
  • the network distribution equipment determines the coding sub-table in the preset coding table according to the service set identifier and/or password input by the user.
  • the coding sub-table The number of characters is less than the number of characters in the encoding table; encode the service set identifier and/or password according to the encoding subtable to obtain encoded data; generate a message based on the encoded data, and propagate the message to the network device to be configured.
  • the technical solution provided by the present invention encodes the service set identifier and/or password through the encoding sub-table, thereby reducing the amount of encoded data obtained, thereby shortening the length of messages sent by the distribution network equipment and reducing the network distribution time.
  • Figure 1 is a schematic diagram of the hardware structure of a wireless network access device according to an embodiment of the present invention
  • Figure 2 is a schematic flow chart of the first embodiment of the wireless network access method of the present invention.
  • Figure 3 is a schematic diagram of the relationship between network distribution equipment and network equipment to be distributed in the wireless network access method of the present invention
  • FIG. 4 is a detailed flow of step S10 of the second embodiment of the wireless network access method of the present invention. Process diagram
  • Figure 5 is a schematic flow chart of a third embodiment of a wireless network access method according to the present invention.
  • Figure 6 is a schematic diagram of the logical structure of a wireless network access device provided by the present invention.
  • FIG. 7 is a schematic diagram of the logical structure of another wireless network access device provided by the present invention.
  • the main solution of the embodiment of the present invention is: the distribution network equipment determines the coding sub-table in the preset coding table according to the service set identifier and/or password input by the user, and the number of characters in the coding sub-table is smaller than the number of characters in the coding table; Encode the service set identifier and/or password according to the encoding subtable to obtain encoded data; generate a message based on the encoded data, and propagate the message to the network equipment to be configured.
  • the service set identifier and/or password is encoded through the encoding subtable to reduce the amount of encoded data obtained, thereby shortening the length of messages sent by the distribution network equipment and reducing the network distribution time.
  • the access device of the wireless network can be as shown in Figure 1.
  • the embodiments of the present invention relate to wireless network access equipment.
  • the wireless network access equipment includes: a processor 101, a memory 102, and a communication bus 103.
  • the communication bus 103 is configured to realize connection communication between these components, and the processor 101 can be a central processing unit (Central Processing Unit, CPU).
  • CPU Central Processing Unit
  • the memory 102 may be a high-speed RAM memory or a stable memory (non-volatile memory, NVM), such as a disk memory.
  • NVM non-volatile memory
  • the memory 102 which is a computer-readable storage medium, may include a wireless network access program; and the processor 101 may be configured to call the wireless network access program stored in the memory 102 and execute the following operate:
  • the processor 101 may be configured to call the access program of the wireless network stored in the memory 102 and perform the following operations:
  • the encoding subtable is determined based on the character subset and the width.
  • the processor 101 may be configured to call the access program of the wireless network stored in the memory 102 and perform the following operations:
  • the character subset is sent to the network device to be configured, so that the network device to be configured generates the encoding subtable according to the character subset.
  • the processor 101 may be configured to call the access program of the wireless network stored in the memory 102 and perform the following operations:
  • the device information and the encoded data are encrypted according to the encryption key and the salt value to obtain the message.
  • the memory 102 as a computer-readable storage medium may include a wireless network access program; and the processor 101 may be configured to call the wireless network access program stored in the memory 102 , and Do the following:
  • the processor 101 may be configured to recall the wireless data stored in the memory 102.
  • Network access procedures and perform the following operations:
  • the encoded data is decoded according to the encoding subtable to obtain the service set identifier and/or the password.
  • the processor 101 may be configured to call the access program of the wireless network stored in the memory 102 and perform the following operations:
  • the encoded data in the message is decoded to obtain the service set identifier and/or the password.
  • FIG. 2 is a first embodiment of a wireless network access method according to the present invention.
  • the wireless network access method includes the following steps:
  • Step S10 Determine a coding sub-table in a preset coding table according to the service set identifier and/or password input by the user.
  • the number of characters in the coding sub-table is smaller than the number of characters in the coding table.
  • the actual distribution network includes devices with input functions as network distribution devices, such as mobile phones or personal computers; the actual distribution network also includes devices to be configured, and the devices to be configured can be screenless. Equipment, such as sockets or light bulbs; the actual distribution network also includes network access equipment that provides wireless networks, such as WiFi hotspots.
  • the distribution network equipment sends distribution network data through the wireless network in the form of broadcast or multicast.
  • the network equipment to be distributed monitors the broadcast or multicast messages in the wireless network, extracts the distribution network data from the messages, and accesses the network based on the distribution network data. wireless network.
  • the network device to be configured is a screen-enabled input device, such as a mobile phone or a tablet.
  • the user can directly input the service set ID and password through the interface of the screen-enabled input device, so that the screen-enabled input device can connect to the wireless network.
  • the devices to be configured are screen-less devices, such as sockets or light bulbs, etc., and users do not need to You cannot connect the screenless device to the wireless network by entering Internet access information on the screenless device. At this time, you can perform network configuration operations on the screenless device through the network distribution device.
  • the distribution network equipment determines the encoding sub-table in the preset encoding table based on the Service Set Identifier (SSID) and/or password input by the user.
  • the number of characters in the encoding sub-table is smaller than the number of characters in the encoding table. That is to say, the encoding table is recoded according to the service set ID and/or password entered by the user, shortening the number of bits occupied by each character, and reducing the total number of bits required for message transmission.
  • the coding table is a sub-table used to represent the service set identifier or password in the American Standard Code for Information Interchange (ASCII) table.
  • ASCII American Standard Code for Information Interchange
  • Step S20 Encode the service set identifier and/or the password according to the encoding subtable to obtain encoded data.
  • the distribution network equipment encodes the service set identifier and/or password according to the encoding subtable to obtain encoded data.
  • the network distribution device uses the encoding subtable to re-encode the string of the service set identifier or password.
  • the string of the service set identifier or password is "AbcdAbcdAbcdAbcd", a total of 16 characters. Due to the newly generated encoding
  • the subtable only has 4 characters, and all characters can be represented using 2 bits. According to the encoding subtable, it can be converted into the following sequence:
  • the amount of encoded data obtained by encoding with the encoding subtable is smaller.
  • the length of the service set identifier is 32 bytes, and the 32 bytes are not repeated.
  • the encoding table has a total of 256 bytes, and 32 different characters can be represented by 8 bits.
  • the data volume is 37.5%.
  • the code table is further reduced. When there are only two different characters in the 32 bytes in the service set identification, the coding table only needs one bit to represent these two different characters.
  • Step S30 Generate a message according to the encoded data, and propagate the message to the network device to be configured.
  • the network distribution device generates a message based on the encoded data and propagates the message to the network device to be distributed.
  • the message is propagated to the network device to be configured by broadcast or multicast.
  • the device to be configured can only passively monitor broadcast/multicast data, and the received data is encrypted by the wireless network. Since the device to be configured does not have the password for the wireless network at this time, the message cannot be decrypted.
  • the device to be configured can only obtain plain text information such as the source address, destination address or length from the packet, and analyze these three pieces of information to determine whether it is network distribution data. If there are a large number of broadcast/multicast interference packets in the network during network distribution, the equipment to be distributed will be unable to determine which packets are the real required network distribution data, and will not be able to correctly lock the network distribution data, eventually leading to network distribution timeout or even network distribution. Data acquisition failed.
  • the user when configuring the network, the user is required to provide the device information of the device to be configured, such as the physical address (Media Access Control or Medium Access Control, MAC address) or product serial number (Serial Number, SN), etc.
  • configure the network The device generates an encryption key and salt value based on the device information of the network device to be configured; it encrypts the device information and coded data based on the encryption key and salt value to obtain the message.
  • the distribution network device After the distribution network device receives the encrypted ciphertext, it uses the same algorithm to generate a decryption key based on its own device information, such as a MAC address or SN number, and uses the decryption key to decrypt the ciphertext. If the decryption is successful, this is The required encoded data, if the decryption fails, discard the message, listen for the next message, and repeat the above steps until all the encoded data is received.
  • the data sent by the wireless network is encrypted.
  • the network device to be configured can receive the data, it cannot decrypt it.
  • the device to be configured can only extract the 6-byte destination MAC address (DA) and 6 characters.
  • the three fields are the source MAC address (SA) of the stanza and the 2-byte ciphertext length (LEN).
  • SA source MAC address
  • LEN 2-byte ciphertext length
  • the network distribution equipment determines the encoding sub-table in the preset encoding table based on the service set identifier and/or password input by the user.
  • the number of characters in the encoding sub-table is smaller than the number of characters in the encoding table; according to
  • the encoding subtable encodes the service set identifier and/or password to obtain encoded data; generates a message based on the encoded data, and propagates the message to the network equipment to be configured.
  • the service set identifier and/or password is encoded through the encoding subtable to reduce the amount of encoded data obtained, thereby shortening the length of messages sent by the distribution network equipment and reducing the network distribution time.
  • Figure 4 is a second embodiment of the wireless network access method of the present invention. Based on the first embodiment, the step S10 includes:
  • Step S11 Determine a character subset in a preset encoding table according to the service set identifier and/or the password;
  • Step S12 determine the width of the coding subtable according to the character subset
  • Step S13 Determine the coding subtable according to the character subset and the width.
  • bitmap subset bitmap
  • the bitmap uses bits and the preset encoding Each column of the table corresponds to each row. If there are required characters in the current column or row, the bit corresponding to the row and column in the bitmap is set to 1, otherwise it is set to 0.
  • a preset encoding table composed of 94 characters It is 10 rows and 10 columns, and requires a total of 3 bytes. 20 bits can identify the character subset. When the network device receives the 20-bit bitmap, it can restore the usage of 94 characters.
  • the service set identification string is "AbcdAbcdAbcdAbcd", with a total of 16 characters.
  • the generated bitmap is as shown in the following table:
  • the first 10 bits represent the bitmap rows, and the last 10 bits represent the bitmap columns.
  • the generated encoding subtable has 4 characters. Only 2 bits are needed to represent 4 characters.
  • the width of the determined character subset is 2.
  • the character subset is sent to the network device to be configured, so that the network device to be configured generates a code subset based on the character subset. surface.
  • the network distribution device sends a 20-bit bitmap to the network device to be distributed.
  • the network device to be distributed generates a coding subtable according to the preset coding table based on the rows and columns identified in the bitmap, and the generated coding subtable is consistent with the configuration.
  • the coding subtable generated by the network device is consistent.
  • the distribution network equipment uses the coding subtable to re-encode the string of the service set ID or password.
  • the string of the service set ID or password is "AbcdAbcdAbcdAbcd", a total of 16 characters. Since the newly generated coding subtable only has 4 characters, all characters can be represented using 2 bits, and can be converted into the following sequence according to the encoding subtable:
  • the distribution network equipment determines the character subset in the preset encoding table according to the service set identifier and/or password; determines the width of the character subset; and determines the encoding subtable based on the character subset and width.
  • the coding table is reduced through the service set representation and/or password to obtain a coding sub-table, and the service set identifier and/or password is coded through the coding sub-table to reduce the amount of coded data obtained, thus shortening the transmission time of the distribution network equipment.
  • the length of the packet reduces the network configuration time.
  • FIG. 5 is a third embodiment of a wireless network access method according to the present invention.
  • the wireless network access method includes the following steps:
  • Step S40 receive the message sent by the distribution network device
  • Step S50 Decode the encoded data in the message to obtain the service set identifier and/or password
  • Step S60 Connect to a wireless network according to the service set identifier and/or the password.
  • the actual distribution network includes devices with input functions as network distribution devices, such as mobile phones or personal computers; the actual distribution network also includes devices to be configured, and the devices to be configured can be screenless. Equipment, such as sockets or light bulbs; the actual distribution network also includes network access equipment that provides wireless networks, such as WiFi hotspots.
  • the distribution network equipment sends distribution network data through the wireless network in the form of broadcast or multicast.
  • the network equipment to be distributed monitors the broadcast or multicast messages in the wireless network, extracts the distribution network data from the messages, and accesses the network based on the distribution network data. wireless network.
  • the network device to be configured is a screen-enabled input device, such as a mobile phone or a tablet.
  • the user can directly enter the service set ID and password through the interface of the screen-enabled input device so that the device can connect to the wireless network.
  • the device to be configured is a screenless device, such as a socket or light bulb. Users cannot input Internet access information on the screenless device to connect the device to the wireless network. In this case, the device to be configured can be configured through the network configuration device. operate.
  • the network equipment to be distributed receives the message sent by the network distribution device, decodes the encoded data in the message, and obtains the service set identifier and/or password.
  • receive a character subset sent by the distribution network device generate a coding subtable based on the character subset; decode the coded data according to the coding subtable to obtain the service set identifier and/or password.
  • the network device After obtaining the service set identification and/or password, the network device to be configured connects to the wireless network according to the service set identification and/or password.
  • the device to be configured can only passively monitor broadcast/multicast data, and the received data is encrypted by the wireless network. Since the device to be configured does not have the password of the wireless network at this time, the message body cannot be decrypted.
  • the network device to be configured can only obtain the plain text information such as the source address, destination address or length in the message, and analyze these three data to determine whether it is network distribution data. If there are a large number of broadcast/multicast interference packets in the network during network distribution, it will affect the network equipment to be configured, which will not be able to determine which packets are the real required network distribution data, and will not be able to correctly lock the network distribution data, which will eventually lead to the network distribution timeout or the distribution network data. Failed to obtain.
  • the network device when distributing the network, the user is required to provide the device information of the device to be configured, such as the MAC address or SN number.
  • the network device generates an encryption key and the encryption key based on the device information of the device to be configured.
  • Salt value Encrypt device information and encoded data based on the encryption key and salt value to obtain the message.
  • a decryption key is generated based on the device information of the network device to be configured; the message is decrypted based on the decryption key. ; If the decryption is successful, decode the encoded data in the message to obtain the service set ID and/or password. If the decryption fails, discard the message, listen to the next message, and repeat the above steps until all the encoded data is received.
  • the network device to be distributed receives the message sent by the network device; decodes the encoded data in the message to obtain the service set identifier and/or password; and connects according to the service set identifier and/or password wireless network.
  • the service set identifier and/or password is encoded through the encoding subtable, which reduces the amount of encoded data obtained, shortens the time for the network equipment to be configured to obtain messages, and improves network distribution efficiency.
  • the wireless network access device includes:
  • the compression module 100 is configured to determine a coding sub-table in a preset coding table according to the service set identifier and/or password input by the user, and the number of characters in the coding sub-table is less than the number of characters in the coding table;
  • the encoding module 200 is configured to encode the service set identifier and/or the password according to the encoding subtable to obtain encoded data;
  • the sending module 300 is configured to generate a message according to the encoded data and propagate the message to the network device to be configured.
  • the compression module 100 in terms of determining the encoding subtable in the preset encoding table according to the service set identifier and/or password input by the user, is specifically configured as follows:
  • the encoding subtable is determined based on the character subset and the width.
  • the compression module 100 is specifically configured as:
  • the character subset is sent to the network device to be configured, so that the network device to be configured generates the encoding subtable according to the character subset.
  • the sending module 300 is specifically configured as:
  • the device information and the encoded data are encrypted according to the encryption key and the salt value to obtain the message.
  • the wireless network access device includes:
  • the receiving module 400 is configured to receive messages sent by the distribution network equipment
  • the decoding module 500 is configured to decode the encoded data in the message to obtain the service set identifier and/or password;
  • the access module 600 is configured to connect to a wireless network according to the service set identifier and/or the password.
  • the decoding module 500 in terms of decoding the encoded data in the message to obtain the service set identifier and/or password, is specifically configured as follows:
  • the encoded data is decoded according to the encoding subtable to obtain the service set identifier and/or the password.
  • the decoding module 500 in terms of decoding the encoded data in the message to obtain the service set identifier and/or password, is specifically configured as follows:
  • the encoded data in the message is decoded to obtain the service set identification and/or said password.
  • the present invention also provides a wireless network access device.
  • the wireless network access device includes a memory, a processor, and a wireless network access program stored in the memory and executable on the processor.
  • the access device of the network is a network distribution device or a device to be distributed. When the wireless network access program is executed by the processor, each step of the wireless network access method described in the above embodiment is implemented.
  • the present invention also provides a computer-readable storage medium.
  • the computer-readable storage medium stores a wireless network access program.
  • the wireless network access program is executed by a processor, the wireless network as described in the above embodiments is implemented. various steps of the access method.
  • the terms “include”, “comprises” or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, system, article or device that includes a list of elements not only includes those elements, It also includes other elements not expressly listed or that are inherent to the process, system, article or device. Without further limitation, an element defined by the statement “comprises a" does not exclude the presence of additional identical elements in the process, system, article, or device that includes the element.
  • the system of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation.
  • the technical solution of the present invention can be embodied in the form of a software product that is essentially or contributes to the existing technology.
  • the computer software product is stored in a computer-readable storage medium as described above (such as ROM/RAM, magnetic disk, optical disk), including several instructions to cause a terminal device (which can be a mobile phone, computer, parking management equipment, air conditioner, or network equipment, etc.) to execute the system described in various embodiments of the present invention. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种无线网络的接入方法、装置、设备和存储介质,所述方法包括:根据用户输入的服务集标识和/或密码,在预设的编码表中确定编码子表,所述编码子表的字符数量小于所述编码表的字符数量;根据所述编码子表对所述服务集标识和/或所述密码进行编码,得到编码数据;根据所述编码数据生成报文,并将所述报文传播至待配网设备。本发明减少了配网时长。

Description

无线网络的接入方法、装置、设备和存储介质
相关申请的交叉引用
本申请基于申请号202210634362.0、申请日为2022年06月07日,申请名称为“无线网络的接入方法、装置、设备及存储介质”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式结合在本申请中。
技术领域
本发明涉及计算机技术领域,尤其涉及一种无线网络的接入方法、装置、设备和存储介质。
背景技术
配网是指让待配网设备接入无线网络的过程,待配网设备接入网络后才可以向云端上报数据、接收来自云端的指令。针对有屏可输入设备,如手机、平板等,用户可以直接通过界面输入服务集标识和/或密码让有屏可输入设备连上无线网络。然而对于无屏设备,如插座、灯泡等,用户无法通过输入上网信息让无屏设备接入网络,这时需要对这些无屏设备进行配网操作。
现有方案中,用户通过配网设备输入服务集标识和/或密码,将服务集标识和/或密码发送至待配网设备,从而完成配网。但是配网设备和待配网设备中每次传送的有效数据非常少,例如广播方式每个报文传输1字节,组播每次传输3字节,导致配网数据需要拆分成多个报文发送,加上丢包、信号强弱、其他设备干扰等因素影响,使得配网时间过长。
发明内容
本发明的主要目的在于提供一种无线网络的接入方法、装置、设备和存储介质,旨在解决如何减少配网时间长的问题。
为实现上述目的,本发明提供的一种无线网络的接入方法,应用于配网设备,所述无线网络的接入方法包括以下步骤:
根据用户输入的服务集标识和/或密码,在预设的编码表中确定编码子表,所述编码子表的字符数量小于所述编码表的字符数量;
根据所述编码子表对所述服务集标识和/或所述密码进行编码,得到编码数据;
根据所述编码数据生成报文,并将所述报文传播至待配网设备。
在一实施例中,所述根据用户输入的服务集标识和/或密码,在预设的编码表中确定编码子表的步骤包括:
根据所述服务集标识和/或所述密码,在预设的编码表中确定字符子集;
确定所述字符子集的宽度;
根据所述字符子集和所述宽度确定所述编码子表。
在一实施例中,所述根据所述服务集标识和/或所述密码,在预设的编码表中确定字符子集的步骤之后,还包括:
将所述字符子集发送至待配网设备,以使所述待配网设备根据所述字符子集生成所述编码子表。
在一实施例中,所述根据所述编码数据生成报文的步骤包括:
根据待配网设备的设备信息生成加密密钥和盐值;
根据所述加密密钥和所述盐值对所述设备信息和所述编码数据进行加密,得到所述报文。
为实现上述目的,本发明还提供一种无线网络的接入装置,所述无线网络的接入装置包括:
压缩模块,配置为根据用户输入的服务集标识和/或密码,在预设的编码表中确定编码子表,所述编码子表的字符数量小于所述编码表的字符数量;
编码模块,配置为根据所述编码子表对所述服务集标识和/或所述密码进行编码,得到编码数据;
发送模块,配置为根据所述编码数据生成报文,并将所述报文传播至待配网设备。
为实现上述目的,本发明提供的一种无线网络的接入方法,应用于待配网设备,所述无线网络的接入方法包括以下步骤:
接收配网设备发送的报文;
对所述报文中的编码数据进行解码,得到服务集标识和/或密码;
根据所述服务集标识和/或所述密码连接无线网络。
在一实施例中,所述对所述报文中的编码数据进行解码,得到服务集标识和/或密码的步骤包括:
接收所述配网设备发送的字符子集;
根据所述字符子集生成编码子表;
根据所述编码子表对所述编码数据进行解码,得到所述服务集标识和/或所述密码。
在一实施例中,所述对所述报文中的编码数据进行解码,得到服务集标识和/或密码的步骤包括:
根据待配网设备的设备信息生成解密密钥;
根据所述解密密钥对所述报文进行解密;
若解密成功,则对所述报文中的编码数据进行解码,得到所述服务集标识和/或所述密码。
为实现上述目的,本发明还提供一种无线网络的接入装置,所述无线网络的接入装置包括:
接收模块,配置为接收配网设备发送的报文;
解码模块,配置为对所述报文中的编码数据进行解码,得到服务集标识和/或密码;
接入模块,配置为根据所述服务集标识和/或所述密码连接无线网络。
为实现上述目的,本发明还提供一种无线网络的接入设备,所述无线网络的接入设备包括存储器、处理器以及存储在所述存储器并可在所述处理器上执行的无线网络的接入程序,无线网络的接入设备为配网设备或者待配网设备,所述无线网络的接入程序被所述处理器执行时实现如上所述的无线网络的接入方法的各个步骤。
为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质存储有无线网络的接入程序,所述无线网络的接入程序被处理器执行时实现如上所述的无线网络的接入方法的各个步骤。
本发明提供的一种无线网络的接入方法、装置、设备和存储介质,配网设备根据用户输入的服务集标识和/或密码,在预设的编码表中确定编码子表,编码子表的字符数量小于编码表的字符数量;根据编码子表对服务集标识和/或密码进行编码,得到编码数据;根据编码数据生成报文,并将报文传播至待配网设备。本发明提供的技术方案,通过编码子表对服务集标识和/或密码进行编码,减少得到的编码数据的数据量,从而缩短了配网设备发送的报文长度,减少配网时长。
附图说明
图1为本发明实施例涉及的无线网络的接入设备的硬件结构示意图;
图2为本发明无线网络的接入方法的第一实施例的流程示意图;
图3为本发明无线网络的接入方法中配网设备和待配网设备的关系示意图;
图4为本发明无线网络的接入方法的第二实施例的步骤S10的细化流 程示意图;
图5为本发明无线网络的接入方法的第三实施例的流程示意图;
图6为本发明提供的一种无线网络的接入装置的逻辑结构示意图;
图7为本发明提供的另一种无线网络的接入装置的逻辑结构示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明实施例的主要解决方案是:配网设备根据用户输入的服务集标识和/或密码,在预设的编码表中确定编码子表,编码子表的字符数量小于编码表的字符数量;根据编码子表对服务集标识和/或密码进行编码,得到编码数据;根据编码数据生成报文,并将报文传播至待配网设备。通过编码子表对服务集标识和/或密码进行编码,减少得到的编码数据的数据量,从而缩短了配网设备发送的报文长度,减少配网时长。
作为一种实现方案,无线网络的接入设备可以如图1所示。
本发明实施例方案涉及的是无线网络的接入设备,无线网络的接入设备包括:处理器101、存储器102和通信总线103。其中,通信总线103配置为实现这些组件之间的连接通信,处理器101可以是中央处理器(Central Processing Unit,CPU)。
存储器102可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory,NVM),例如磁盘存储器。如图1所示,作为一种计算机可读存储介质的存储器102中可以包括无线网络的接入程序;而处理器101可以配置为调用存储器102中存储的无线网络的接入程序,并执行以下操作:
根据用户输入的服务集标识和/或密码,在预设的编码表中确定编码子表,所述编码子表的字符数量小于所述编码表的字符数量;
根据所述编码子表对所述服务集标识和/或所述密码进行编码,得到编码数据;
根据所述编码数据生成报文,并将所述报文传播至待配网设备。
在一实施例中,处理器101可以配置为调用存储器102中存储的无线网络的接入程序,并执行以下操作:
根据所述服务集标识和/或所述密码,在预设的编码表中确定字符子集;
确定所述字符子集的宽度;
根据所述字符子集和所述宽度确定所述编码子表。
在一实施例中,处理器101可以配置为调用存储器102中存储的无线网络的接入程序,并执行以下操作:
将所述字符子集发送至待配网设备,以使所述待配网设备根据所述字符子集生成所述编码子表。
在一实施例中,处理器101可以配置为调用存储器102中存储的无线网络的接入程序,并执行以下操作:
根据待配网设备的设备信息生成加密密钥和盐值;
根据所述加密密钥和所述盐值对所述设备信息和所述编码数据进行加密,得到所述报文。
或者,如图1所示,作为一种计算机可读存储介质的存储器102中可以包括无线网络的接入程序;而处理器101可以配置为调用存储器102中存储的无线网络的接入程序,并执行以下操作:
接收配网设备发送的报文;
对所述报文中的编码数据进行解码,得到服务集标识和/或密码;
根据所述服务集标识和/或所述密码连接无线网络。
在一实施例中,处理器101可以配置为调用存储器102中存储的无线 网络的接入程序,并执行以下操作:
接收所述配网设备发送的字符子集;
根据所述字符子集生成编码子表;
根据所述编码子表对所述编码数据进行解码,得到所述服务集标识和/或所述密码。
在一实施例中,处理器101可以配置为调用存储器102中存储的无线网络的接入程序,并执行以下操作:
根据待配网设备的设备信息生成解密密钥;
根据所述解密密钥对所述报文进行解密;
若解密成功,则对所述报文中的编码数据进行解码,得到所述服务集标识和/或所述密码。
基于上述无线网络的接入设备的硬件构架,提出本发明无线网络的接入方法的实施例。
参照图2,图2为本发明无线网络的接入方法的第一实施例,所述无线网络的接入方法包括以下步骤:
步骤S10,根据用户输入的服务集标识和/或密码,在预设的编码表中确定编码子表,所述编码子表的字符数量小于所述编码表的字符数量。
具体的,如图3所示,实际配网中包括具有输入功能的设备作为配网设备,例如手机或者个人计算机等;实际配网中还包括待配网设备,待配网设备可以是无屏设备,如插座或者灯泡等;实际配网中还包括提供无线网络的网络接入设备,例如WiFi热点。配网设备以广播或者组播的方式通过无线网络发送配网数据,待配网设备监听无线网络中的广播或者组播报文,并从报文中提取配网数据,根据配网数据接入无线网络。
待配网设备为有屏可输入设备,如手机或者平板等,用户可以直接通过有屏可输入设备的界面输入服务集标识和密码,以使得有屏可输入设备连上无线网络。然而待配网设备为无屏设备,如插座或者灯泡等,用户无 法通过在无屏设备上输入上网信息,以使得无屏设备连上无线网络,这时可以通过配网设备对无屏设备进行配网操作。
配网设备根据用户输入的服务集标识(Service Set Identifier,SSID)和/或密码,在预设的编码表中确定编码子表,编码子表的字符数量小于编码表的字符数量。也就是说,根据用户输入的服务集标识和/或密码对编码表进行重新编码,缩短每个字符所占的bit位数,减少了需要报文传输的总bit数。其中,编码表为美国标准信息交换代码(American Standard Code for Information Interchange,ASCII)表中用于表示服务集标识或者密码的子表,编码表预先存储于配网设备和待配网设备。
步骤S20,根据所述编码子表对所述服务集标识和/或所述密码进行编码,得到编码数据。
具体的,配网设备根据编码子表将服务集标识和/或密码进行编码,得到编码数据。示例性的,配网设备使用编码子表,对服务集标识或者密码的字符串进行重新编码,例如,服务集标识或者密码的字符串为“AbcdAbcdAbcdAbcd”,共16个字符,由于新生成的编码子表只有4个字符,使用2个bit就能表示所有的字符,根据编码子表可以转换为如下序列:
相对于通过编码表编码得到的编码数据的数据量,通过编码子表编码得到的编码数据的数据量较小。示例性的,服务集标识的长度为32字节(byte),且32个byte不重复。编码表共有256个byte,用8个比特(bit)就可以表示32个不同的字符。而重新编码后的编码子表共有32个byte,用5个bit就可以表示32个不同的字符,因此编码数据的长度从32*8=256bit变成了32*5=160bit,编码数据减少的数据量为37.5%。可选的,通常服务集标识中都会出现多个重复字符,有重复字符的情况会使重新编码后的编 码子表进一步缩小,服务集标识中32个byte中只有两个不同的字符时,编码子表只需要一个bit就可以表示这两个不同的字符,要传输的编码数据长度从32*8=256bit变成了32*5=160bit,编码数据减少的数据量为(32*8bit-32*1bit)*100%/(32*8bit)=87.5%。
步骤S30,根据所述编码数据生成报文,并将所述报文传播至待配网设备。
具体的,配网设备根据所述编码数据生成报文,并将所述报文传播至待配网设备,可选的,报文通过广播或者组播的方式传播至待配网设备。
当无线网络设置了密码时,待配网设备只能被动的监听广播/组播数据,并且收到的数据是经过无线网络加密的。由于此时待配网设备没有无线网络的密码,无法对报文进行解密。待配网设备只能从报文中获取到源地址、目的地址或者长度等明文信息,并通过这三个信息进行分析来确定是否是配网数据。如果配网时网络中存在大量广播/组播干扰包,会影响待配网设备无法确定哪些报文才是真正需要的配网数据,无法正确锁定配网数据,最终导致配网超时甚至配网数据获取失败。
因此,在配网时要求用户提供待配网设备的设备信息,例如物理地址(Media Access Control或者Medium Access Control,MAC地址)或产品序列号(Serial Number,SN)等,可选的,配网设备根据待配网设备的设备信息生成加密密钥和盐值;根据加密密钥和盐值对设备信息和编码数据进行加密,得到报文。待配网设备收到加密的密文后,使用同样的算法根据自身的设备信息生成解密密钥,例如MAC地址或SN号,并使用解密密钥对密文进行解密,如果解密成功说明这就是需要的编码数据,如果解密失败则丢弃报文,监听下一个报文,重复上述步骤直到接收到所有的编码数据。
配网过程中无线网络发送的数据被加密,待配网设备虽然能收到数据但无法解密,待配网设备只能提取到6字节的目的MAC地址(DA)、6字 节的源MAC地址(SA)、2字节的密文长度(LEN)这三个字段。现有方案中,需要保持SA不变,用于配网过程中让待配网设备区分并持续接收来自同一SA的数据,剩下的只有DA和LEN两个字段可用,在待配网设备通过密码接入无线网络前都只能接收组播和广播报文,这就造成DA有部分字节要保持不变,用于标识这是一个组播/广播报文,最终只有2~5字节可以用来承载编码数据。编码数据就需要拆分成多个小包来发送,由于包数量多,会导致丢包几率增大,也会增加配网数据传输时间,最终导致配网时间长,并且可能会因为超时或丢包而失败。引入待配网设备的身份认证之后,待配网设备通过身份认证机制来确定配网数据,报文中的SA、DA和LEN字段都可以用来承载编码数据,共有11字节可用,相对现有方案每个报文的承载能力提升了1至4倍。
在本实施例的技术方案中,配网设备根据用户输入的服务集标识和/或密码,在预设的编码表中确定编码子表,编码子表的字符数量小于编码表的字符数量;根据编码子表对服务集标识和/或密码进行编码,得到编码数据;根据编码数据生成报文,并将报文传播至待配网设备。通过编码子表对服务集标识和/或密码进行编码,减少得到的编码数据的数据量,从而缩短了配网设备发送的报文长度,减少配网时长。
参照图4,图4为本发明无线网络的接入方法的第二实施例,基于第一实施例,所述步骤S10包括:
步骤S11,根据所述服务集标识和/或所述密码,在预设的编码表中确定字符子集;
步骤S12,根据所述字符子集确定所述编码子表的宽度;
步骤S13,根据所述字符子集和所述宽度确定所述编码子表。
具体的,对ASCII码表以及服务集标识和/或密码进行分析发现,并不是所有的字符都可以作为无线网络的服务集标识和/或密码,只有ASCII码值范围在[32~126]的94个字符才符合要求,对这94个字符进行重新编码可 以得到预设的编码表,如下表所示:
根据服务集标识或者密码对预设的编码表进行检索,找出真正需要传输的ASCII码子集,并生成一个子集位图(bitmap)即字符子集,bitmap是用bit与预设的编码表的每一列和每一行进行一一对应,如果当前列或者行中有需要的字符,则bitmap中行和列对应的bit置为1,否则置为0。94个字符组成的预设的编码表为10行10列,一共需要3个byte,20个bit就可以标识出字符子集,待配网设备收到20bit的bitmap就能还原出94个字符被使用的情况。
示例性的,服务集标识的字符串为“AbcdAbcdAbcdAbcd”,共16个字符,则生成的bitmap如下表所示:
其中,前10bit表示bitmap的行,后10bit表示bitmap的列。
把服务集标识中出现的所有字符取出,并按照一定规律组成新的编码子表,如下表所示:

其中,四个字符只需要2bit就能表示,生成的编码子表有4个字符,只需要2个bit位就能表示4个字符,确定字符子集的宽度是2。
可选的,根据服务集标识和/或密码,在预设的编码表中确定字符子集之后,将字符子集发送至待配网设备,以使待配网设备根据字符子集生成编码子表。示例性的,配网设备将20bit的bitmap发送给待配网设备,待配网设备根据bitmap中标识的行列情况,根据预设的编码表生成编码子表,并且生成的编码子表,与配网设备生成的编码子表是一致的。
配网设备使用编码子表,对服务集标识或者密码的字符串进行重新编码,例如,服务集标识或者密码的字符串为“AbcdAbcdAbcdAbcd”,共16个字符,由于新生成的编码子表只有4个字符,使用2个bit就能表示所有的字符,根据编码子表可以转换为如下序列:
在本实施例的技术方案中,配网设备根据服务集标识和/或密码,在预设的编码表中确定字符子集;确定字符子集的宽度;根据字符子集和宽度确定编码子表。通过服务集表示和/或密码对编码表进行缩减,得到编码子表,通过编码子表对服务集标识和/或密码进行编码,减少得到的编码数据的数据量,从而缩短了配网设备发送的报文长度,减少配网时长。
参照图5,图5为本发明无线网络的接入方法的第三实施例,所述无线网络的接入方法包括以下步骤:
步骤S40,接收配网设备发送的报文;
步骤S50,对所述报文中的编码数据进行解码,得到服务集标识和/或密码;
步骤S60,根据所述服务集标识和/或所述密码连接无线网络。
具体的,如图3所示,实际配网中包括具有输入功能的设备作为配网设备,例如手机或者个人计算机等;实际配网中还包括待配网设备,待配网设备可以是无屏设备,如插座或者灯泡等;实际配网中还包括提供无线网络的网络接入设备,例如WiFi热点。配网设备以广播或者组播的方式通过无线网络发送配网数据,待配网设备监听无线网络中的广播或者组播报文,并从报文中提取配网数据,根据配网数据接入无线网络。
待配网设备为有屏可输入设备,如手机或者平板等,用户可以直接通过有屏可输入设备的界面输入服务集标识和密码,以使得设备连上无线网络。然而待配网设备为无屏设备,如插座或者灯泡等,用户无法通过在无屏设备上输入上网信息,以使得设备连上无线网络,这时可以通过配网设备对待配网设备进行配网操作。
待配网设备接收配网设备发送的报文,对所述报文中的编码数据进行解码,得到服务集标识和/或密码。可选的,接收配网设备发送的字符子集;根据字符子集生成编码子表;根据编码子表对编码数据进行解码,得到服务集标识和/或密码。在得到了服务集标识和/或密码后,待配网设备根据服务集标识和/或密码连接无线网络。
当无线网络设置了密码时,待配网设备只能被动的监听广播/组播数据,并且收到的数据是经过无线网络加密的。由于此时待配网设备没有无线网络的密码,无法对报文体进行解密。待配网设备仅仅只能获取到报文中的源地址、目的地址或者长度等明文信息,并通过这三个数据进行分析来确定是否是配网数据。如果配网时网络存在大量广播/组播干扰包,会影响待配网设备无法确定哪些报文才是真正需要的配网数据,无法正确锁定配网数据,最终导致配网超时或者配网数据获取失败。
因此,在配网时要求用户提供待配网设备的设备信息,例如MAC地址或SN号等,可选的,配网设备根据待配网设备的设备信息生成加密密钥和 盐值;根据加密密钥和盐值对设备信息和编码数据进行加密,得到报文。待配网设备对报文中的编码数据进行解码,得到服务集标识和/或密码之前,可选的,根据待配网设备的设备信息生成解密密钥;根据解密密钥对报文进行解密;若解密成功,则对报文中的编码数据进行解码,得到服务集标识和/或密码,若解密失败则丢弃报文,监听下一个报文,重复上述步骤直到接收到所有的编码数据。
在本实施例的技术方案中,待配网设备接收配网设备发送的报文;对报文中的编码数据进行解码,得到服务集标识和/或密码;根据服务集标识和/或密码连接无线网络。通过编码子表对服务集标识和/或密码进行编码,减少得到的编码数据的数据量,使得待配网设备获取报文的时长变短,提高了配网效率。
参照图6所示的一种无线网络的接入装置的逻辑结构示意图,所述无线网络的接入装置包括:
压缩模块100,配置为根据用户输入的服务集标识和/或密码,在预设的编码表中确定编码子表,所述编码子表的字符数量小于所述编码表的字符数量;
编码模块200,配置为根据所述编码子表对所述服务集标识和/或所述密码进行编码,得到编码数据;
发送模块300,配置为根据所述编码数据生成报文,并将所述报文传播至待配网设备。
在一实施例中,在根据用户输入的服务集标识和/或密码,在预设的编码表中确定编码子表方面,所述压缩模块100具体配置为:
根据所述服务集标识和/或所述密码,在预设的编码表中确定字符子集;
确定所述字符子集的宽度;
根据所述字符子集和所述宽度确定所述编码子表。
在一实施例中,在根据所述服务集标识和/或所述密码,在预设的编码 表中确定字符子集之后,所述压缩模块100具体配置为:
将所述字符子集发送至待配网设备,以使所述待配网设备根据所述字符子集生成所述编码子表。
在一实施例中,在根据所述编码数据生成报文方面,所述发送模块300具体配置为:
根据待配网设备的设备信息生成加密密钥和盐值;
根据所述加密密钥和所述盐值对所述设备信息和所述编码数据进行加密,得到所述报文。
参照图7所示的另一种无线网络的接入装置的逻辑结构示意图,所述无线网络的接入装置包括:
接收模块400,配置为接收配网设备发送的报文;
解码模块500,配置为对所述报文中的编码数据进行解码,得到服务集标识和/或密码;
接入模块600,配置为根据所述服务集标识和/或所述密码连接无线网络。
在一实施例中,在对所述报文中的编码数据进行解码,得到服务集标识和/或密码方面,所述解码模块500具体配置为:
接收所述配网设备发送的字符子集;
根据所述字符子集生成编码子表;
根据所述编码子表对所述编码数据进行解码,得到所述服务集标识和/或所述密码。
在一实施例中,在对所述报文中的编码数据进行解码,得到服务集标识和/或密码方面,所述解码模块500具体配置为:
根据待配网设备的设备信息生成解密密钥;
根据所述解密密钥对所述报文进行解密;
若解密成功,则对所述报文中的编码数据进行解码,得到所述服务集 标识和/或所述密码。
本发明还提供一种无线网络的接入设备,所述无线网络的接入设备包括存储器、处理器以及存储在所述存储器并可在所述处理器上执行的无线网络的接入程序,无线网络的接入设备为配网设备或者待配网设备,所述无线网络的接入程序被所述处理器执行时实现如上实施例所述的无线网络的接入方法的各个步骤。
本发明还提供一种计算机可读存储介质,所述计算机可读存储介质存储有无线网络的接入程序,所述无线网络的接入程序被处理器执行时实现如上实施例所述的无线网络的接入方法的各个步骤。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、系统、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、系统、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、系统、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例系统可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个计算机可读存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,停车管理设备,空调器,或者网络设备等)执行本发明各个实施例所述的系统。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接 或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (11)

  1. 一种无线网络的接入方法,应用于配网设备,所述无线网络的接入方法包括:
    根据用户输入的服务集标识和/或密码,在预设的编码表中确定编码子表,所述编码子表的字符数量小于所述编码表的字符数量;
    根据所述编码子表对所述服务集标识和/或所述密码进行编码,得到编码数据;
    根据所述编码数据生成报文,并将所述报文传播至待配网设备。
  2. 如权利要求1所述的无线网络的接入方法,其中,所述根据用户输入的服务集标识和/或密码,在预设的编码表中确定编码子表的步骤包括:
    根据所述服务集标识和/或所述密码,在预设的编码表中确定字符子集;
    确定所述字符子集的宽度;
    根据所述字符子集和所述宽度确定所述编码子表。
  3. 如权利要求2所述的无线网络的接入方法,其中,所述根据所述服务集标识和/或所述密码,在预设的编码表中确定字符子集的步骤之后,还包括:
    将所述字符子集发送至待配网设备,以使所述待配网设备根据所述字符子集生成所述编码子表。
  4. 如权利要求1所述的无线网络的接入方法,其中,所述根据所述编码数据生成报文的步骤包括:
    根据待配网设备的设备信息生成加密密钥和盐值;
    根据所述加密密钥和所述盐值对所述设备信息和所述编码数据进行加密,得到所述报文。
  5. 一种无线网络的接入方法,应用于待配网设备,所述无线网络的接入方法包括:
    接收配网设备发送的报文;
    对所述报文中的编码数据进行解码,得到服务集标识和/或密码;
    根据所述服务集标识和/或所述密码连接无线网络。
  6. 如权利要求5所述的无线网络的接入方法,其中,所述对所述报文中的编码数据进行解码,得到服务集标识和/或密码的步骤包括:
    接收所述配网设备发送的字符子集;
    根据所述字符子集生成编码子表;
    根据所述编码子表对所述编码数据进行解码,得到所述服务集标识和/或所述密码。
  7. 如权利要求5所述的无线网络的接入方法,其中,所述对所述报文中的编码数据进行解码,得到服务集标识和/或密码的步骤包括:
    根据待配网设备的设备信息生成解密密钥;
    根据所述解密密钥对所述报文进行解密;
    若解密成功,则对所述报文中的编码数据进行解码,得到所述服务集标识和/或所述密码。
  8. 一种无线网络的接入装置,所述无线网络的接入装置包括:
    压缩模块,配置为根据用户输入的服务集标识和/或密码,在预设的编码表中确定编码子表,所述编码子表的字符数量小于所述编码表的字符数量;
    编码模块,配置为根据所述编码子表对所述服务集标识和/或所述密码进行编码,得到编码数据;
    发送模块,配置为根据所述编码数据生成报文,并将所述报文传播至待配网设备。
  9. 一种无线网络的接入装置,所述无线网络的接入装置包括:
    接收模块,配置为接收配网设备发送的报文;
    解码模块,配置为对所述报文中的编码数据进行解码,得到服务集标 识和/或密码;
    接入模块,配置为根据所述服务集标识和/或所述密码连接无线网络。
  10. 一种无线网络的接入设备,所述无线网络的接入设备包括存储器、处理器以及存储在所述存储器并可在所述处理器上执行的无线网络的接入程序,当无线网络的接入设备为配网设备时,所述无线网络的接入程序被所述处理器执行时实现如权利要求1-4中任一项所述的无线网络的接入方法的各个步骤;当无线网络的接入设备为待配网设备时,所述无线网络的接入程序被所述处理器执行时实现如权利要求5-7中任一项所述的无线网络的接入方法的各个步骤。
  11. 一种计算机可读存储介质,所述计算机可读存储介质存储有无线网络的接入程序,所述无线网络的接入程序被处理器执行时实现如权利要求1-4或者权利要求5-7中任一项所述的无线网络的接入方法的各个步骤。
PCT/CN2023/098832 2022-06-07 2023-06-07 无线网络的接入方法、装置、设备和存储介质 WO2023236984A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210634362.0 2022-06-07
CN202210634362.0A CN114980101A (zh) 2022-06-07 2022-06-07 无线网络的接入方法、装置、设备和存储介质

Publications (1)

Publication Number Publication Date
WO2023236984A1 true WO2023236984A1 (zh) 2023-12-14

Family

ID=82959627

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/098832 WO2023236984A1 (zh) 2022-06-07 2023-06-07 无线网络的接入方法、装置、设备和存储介质

Country Status (2)

Country Link
CN (1) CN114980101A (zh)
WO (1) WO2023236984A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114980101A (zh) * 2022-06-07 2022-08-30 中移(杭州)信息技术有限公司 无线网络的接入方法、装置、设备和存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130173564A1 (en) * 2011-12-28 2013-07-04 Gary Roberts System and method for data compression using multiple encoding tables
CN104703176A (zh) * 2015-03-18 2015-06-10 北京联盛德微电子有限责任公司 无线网络的配置方法、智能终端和无线网络设备
CN105120456A (zh) * 2015-09-08 2015-12-02 南京创维信息技术研究院有限公司 一种智能设备快速接入无线网络的方法及其系统
CN105868194A (zh) * 2015-01-19 2016-08-17 阿里巴巴集团控股有限公司 文本数据压缩、解压方法及装置
CN113630727A (zh) * 2021-07-09 2021-11-09 珠海荣邦智能科技有限公司 智能家居配网方法及装置、系统、电子设备、存储介质
CN114980101A (zh) * 2022-06-07 2022-08-30 中移(杭州)信息技术有限公司 无线网络的接入方法、装置、设备和存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130173564A1 (en) * 2011-12-28 2013-07-04 Gary Roberts System and method for data compression using multiple encoding tables
CN105868194A (zh) * 2015-01-19 2016-08-17 阿里巴巴集团控股有限公司 文本数据压缩、解压方法及装置
CN104703176A (zh) * 2015-03-18 2015-06-10 北京联盛德微电子有限责任公司 无线网络的配置方法、智能终端和无线网络设备
CN105120456A (zh) * 2015-09-08 2015-12-02 南京创维信息技术研究院有限公司 一种智能设备快速接入无线网络的方法及其系统
CN113630727A (zh) * 2021-07-09 2021-11-09 珠海荣邦智能科技有限公司 智能家居配网方法及装置、系统、电子设备、存储介质
CN114980101A (zh) * 2022-06-07 2022-08-30 中移(杭州)信息技术有限公司 无线网络的接入方法、装置、设备和存储介质

Also Published As

Publication number Publication date
CN114980101A (zh) 2022-08-30

Similar Documents

Publication Publication Date Title
US10542458B2 (en) Data communication via data packet headers
JP5904347B2 (ja) データ通信方法、装置、およびシステム
CN105072665B (zh) 联网控制、接入方法及相应的终端与设备
CN104703176B (zh) 无线网络的配置方法、智能终端和无线网络设备
EP3445094A1 (en) Wifi configuration method, wifi mobile terminal, and wifi device
CN105119900B (zh) 信息安全传输方法、联网接入方法及相应的终端
CN105101102B (zh) 组播传输方法、信息提取方法及相应的终端和设备
WO2023236984A1 (zh) 无线网络的接入方法、装置、设备和存储介质
WO2019149006A1 (zh) 获取、提供无线接入点接入信息的方法、设备以及介质
JP5739006B2 (ja) セキュアデータおよび非セキュアデータを送受信するための方法および装置
CN105120454B (zh) 信息传输方法、联网接入方法及相应的终端
US10419212B2 (en) Methods, systems, apparatuses, and devices for securing network communications using multiple security protocols
CN113727058A (zh) 一种多媒体会议数据处理方法、系统、设备及存储介质
JP2014502461A5 (ja) セキュアデータおよび非セキュアデータを送受信するための方法および装置
CN114598555A (zh) 一种不同平台可切换的播报实现方法及系统
CN105120012B (zh) 智能设备及其联网接入方法、信息接收方法与装置
WO2016177050A1 (zh) 消息传输方法和装置
WO2024001086A1 (zh) 一种基于共享密钥进行数据通信的方法、装置、设备和介质
CN107294704B (zh) 口令的生成方法、口令的执行方法及终端
CN102624741A (zh) 一种基于tlv的数据传输方法及系统
CN117501653A (zh) 操作无线网络的装置、系统和方法
CN106060801B (zh) 基于Wi-Fi设备的数据通信方法、设备及系统
CN111818521A (zh) 一种基于数据中心5g网络加密组播的权限认证方法与系统
CN104994078A (zh) 局域网内的信息发送、获取方法及装置、信息处理系统
CN115175110B (zh) 一种基于组播的设备快速配网方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23819149

Country of ref document: EP

Kind code of ref document: A1