CN108040355B - Network access method and system - Google Patents

Network access method and system Download PDF

Info

Publication number
CN108040355B
CN108040355B CN201711291654.4A CN201711291654A CN108040355B CN 108040355 B CN108040355 B CN 108040355B CN 201711291654 A CN201711291654 A CN 201711291654A CN 108040355 B CN108040355 B CN 108040355B
Authority
CN
China
Prior art keywords
network access
equipment
channel
sequence
intelligent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711291654.4A
Other languages
Chinese (zh)
Other versions
CN108040355A (en
Inventor
王剑
熊远雄
苏冬日
余志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinbi Smart Life Technology Shenzhen Co ltd
Original Assignee
Evergrande Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Evergrande Intelligent Technology Co Ltd filed Critical Evergrande Intelligent Technology Co Ltd
Priority to CN201711291654.4A priority Critical patent/CN108040355B/en
Publication of CN108040355A publication Critical patent/CN108040355A/en
Application granted granted Critical
Publication of CN108040355B publication Critical patent/CN108040355B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

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

Abstract

The embodiment of the invention provides a network access method and a network access system. The method utilizes the network access equipment to send the UDP multicast packet containing the configuration information, does not need a user to input the configuration information on a user terminal or intelligent equipment, and improves the convenience. By defining the control sequence and the data sequence of the UDP multicast packet, the speed of searching the working channel of the network access equipment by the intelligent equipment is increased, the anti-interference capability of the network is improved, and the speed of network access is increased. Meanwhile, the transmitted SSID and the password are verified, the accuracy of information receiving is improved, after the intelligent equipment is accessed, the intelligent equipment is authenticated by identifying the type of the equipment, and the accuracy when the intelligent equipment is accessed simultaneously is improved.

Description

Network access method and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network access method and system.
Background
With the development of the internet of things, more and more intelligent devices access a network through WiFi, the existing access mode is complicated and inconvenient in operation of mainly inputting SSID and password through a mobile phone terminal or a device screen, compatibility problems and difference in quality of transmitted signals are caused by different mobile phone terminals, the transmission process consumes a long time, configuration information is transmitted by using a UDP broadcast packet and is limited by the length of an MAC layer packet, the network access process consumes a long time, the transmission efficiency is low, more time is required for transmitting the data packet due to low difference, the time exposed on a wireless air interface is longer, the interference is more, and the time for accessing the network is further influenced. Meanwhile, when a plurality of intelligent devices are accessed simultaneously, the false access probability is high.
Disclosure of Invention
In view of the above, the present invention provides a network access method and system to overcome the above-mentioned deficiencies in the prior art.
In order to achieve the above object, the preferred embodiment of the present invention adopts the following technical solutions:
the preferred embodiment of the present invention provides a network access method, which is applied to a network access system, wherein the network access system comprises a user terminal, a network access device in communication connection with the user terminal, and an intelligent device in communication connection with the network access device, and the method comprises the following steps:
the user terminal responds to user operation and sends a first request for adding intelligent equipment to the network access equipment, wherein the first request comprises a target equipment type needing to be added;
the network access equipment generates configuration information according to the first request, encodes the configuration information on a destination MAC address of a UDP multicast packet according to a preset configuration sequence and then circularly transmits the UDP multicast packet, wherein the preset configuration sequence comprises a control sequence and a data sequence, a first time period is arranged between every two control sequences, a second time period is arranged between every two data sequences, a third time period is arranged between every two control sequences and between every two data sequences, the control sequence comprises the total data length, the password length, the SSID check code and the password check code, and the data sequence comprises the SSID, the password and the random code;
the intelligent equipment monitors the control sequences from each channel in sequence, determines a certain channel as a target channel communicated with the channel of the network access equipment when monitoring that the control sequences exist on the channel, and receives the control sequences and the data sequences through the target channel;
the intelligent equipment calculates a corresponding data check value according to the data sequence, wherein the data check value comprises an SSID check value and a password check value;
verifying the SSID check value and the SSID check code, verifying the password check value and the password check code, if the verification is successful, analyzing the MAC address to obtain configuration information, and sending a network access request to the network access equipment based on the configuration information, wherein the network access request comprises the equipment type of the intelligent equipment and the random code;
the network access equipment matches the equipment type of the intelligent equipment with the type of the target equipment according to the network access request, and sends access permission information to the intelligent equipment after the matching is successful;
and the intelligent equipment sends a UDP broadcast packet comprising the random code to the network access equipment after receiving the access permission information so as to complete network access.
In a preferred embodiment of the present invention, the generating, by the network access device, configuration information according to the first request includes:
and acquiring SSID information and password information of the accessible network according to the request, thereby generating the configuration information.
In a preferred embodiment of the present invention, the encoding the configuration information into the destination MAC address of the UDP multicast packet according to a preset configuration sequence includes:
mapping the lower 23bits of the UDP multicast IP address to the lower 23bits of the destination MAC address of the data link layer, and coding the configuration information in the lower 23bits of the destination MAC address according to a preset configuration sequence.
In a preferred embodiment of the present invention, the intelligent device monitors the control sequences from each channel in sequence, and when it is monitored that the control sequences exist on a certain channel, after determining the channel as a target channel for channel communication with the network access device, the method further includes:
judging whether the channel monitors a control sequence or not within a preset time period aiming at each channel;
and if the judgment result is negative, entering the next channel to continue monitoring the control sequence until the control sequence exists on a certain channel, and determining the channel as a target channel for the channel communication with the network access equipment.
In a preferred embodiment of the present invention, after receiving the control sequence and the data sequence through the target channel, the method further comprises:
and filtering the subsequently received UDP multicast packets according to the MAC address.
In a preferred embodiment of the present invention, after the matching the SSID check value with the SSID check code and the verifying the password check value with the password check code, the method further includes:
and if the verification fails, receiving the control sequence and the data sequence again in the target channel.
In a preferred embodiment of the present invention, after the intelligent device sends the UDP broadcast packet including the random code to the network access device after receiving the permission access information, the method further includes:
and after receiving the UDP broadcast packet of the random code, the network access equipment sends confirmation information to the user terminal to confirm that the intelligent equipment is successfully added.
In a preferred embodiment of the present invention, after the intelligent device sends the UDP broadcast packet including the random code to the network access device after receiving the permission access information, the method further includes:
and the network access equipment stops sending the UDP multicast packet.
In a preferred embodiment of the present invention, after the network access device generates configuration information according to the request, encodes the configuration information in a destination MAC address of a UDP multicast packet according to a preset configuration sequence, and circularly transmits the UDP multicast packet, the method further includes:
the user terminal responds to user operation and sends a second request for stopping sending the UDP multicast packet to the network access equipment;
and the network access equipment stops sending the UDP multicast packet according to the second request.
The preferred embodiment of the present invention further provides a network access system, which includes a user terminal, a network access device in communication connection with the user terminal, and an intelligent device in communication connection with the network access device;
the user terminal is used for responding to user operation and sending a first request for adding intelligent equipment to the network access equipment, wherein the first request comprises a target equipment type needing to be added;
the network access device is configured to generate configuration information according to the first request, encode the configuration information in a destination MAC address of a UDP multicast packet according to a preset configuration sequence, and then cyclically transmit the UDP multicast packet, where the preset configuration sequence includes a control sequence and a data sequence, a first time period is spaced between each control sequence, a second time period is spaced between each data sequence, a third time period is spaced between each control sequence and each data sequence, the control sequence includes a total data length, a password length, an SSID check code and a password check code, and the data sequence includes an SSID, a password and a random code;
the intelligent device is used for monitoring the control sequences from each channel in sequence, determining a certain channel as a target channel for communicating with the channel of the network access device when the control sequences exist on the channel, and receiving the control sequences and the data sequences through the target channel;
the intelligent device is further used for calculating a corresponding data check value according to the data sequence, wherein the data check value comprises an SSID check value and a password check value;
the intelligent device is further configured to verify the SSID check value and the SSID check code, verify the password check value and the password check code, resolve the MAC address to obtain configuration information if the verification is successful, and send a network access request to the network access device based on the configuration information, where the network access request includes a device type of the intelligent device and the random code;
the network access equipment is also used for matching the equipment type of the intelligent equipment with the type of the target equipment according to the network access request and sending access permission information to the intelligent equipment after the matching is successful;
the intelligent device is further configured to send a UDP broadcast packet including the random code to the network access device after receiving the permission access information, so as to complete network access.
Compared with the prior art, the invention has the following beneficial effects:
the embodiment of the invention provides a network access method and a network access system. The method utilizes the network access equipment to send the UDP multicast packet containing the configuration information, does not need a user to input the configuration information on a user terminal or intelligent equipment, and improves the convenience. By defining the control sequence and the data sequence of the UDP multicast packet, the speed of searching the working channel of the network access equipment by the intelligent equipment is increased, the anti-interference capability of the network is improved, and the speed of network access is increased. Meanwhile, the transmitted SSID and the password are verified, the accuracy of information receiving is improved, after the intelligent equipment is accessed, the intelligent equipment is authenticated by identifying the type of the equipment, and the accuracy when the intelligent equipment is accessed simultaneously is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is an interaction diagram of a network access system according to a preferred embodiment of the present invention;
fig. 2 is a flowchart illustrating a network access method according to a preferred embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a message interaction flow between a network access device and an intelligent device according to a preferred embodiment of the present invention;
fig. 4 is a schematic block diagram of a structure of the network access device shown in fig. 1.
Icon: 10-a network access system; 100-a user terminal; 200-a network access device; 210-a bus; 220-a processor; 230-a storage medium; 240-bus interface; 250-a network adapter; 260-user interface; 300-intelligent device.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
With the development of the internet of things, more and more intelligent devices access to a network through WiFi, such as a television, an air conditioner, a refrigerator, an electric cooker, a sound box and the like. The intelligent device access network mainly has the following modes:
and inputting the SSID and the password to connect a WiFi network, such as certain intelligent equipment with a screen.
And sending a UDP broadcast packet through a mobile phone terminal, encoding the configuration information by using the MAC layer length field of the broadcast packet, and then sending the encoded configuration information to intelligent equipment, such as certain intelligent equipment without a screen.
And sending the WiFi configuration message in a UDP multicast mode.
The research of the inventor of the application finds that the mode has the following problems:
the operation of inputting SSID and password through a mobile phone terminal or a device screen is complicated and inconvenient, the compatibility problem and the difference of the quality of the transmitted signals are caused by the difference of the mobile phone terminals, the transmission process consumes a long time, the configuration information transmitted by using UDP broadcast packets is limited by the length of MAC layer data packets, the network access process consumes a long time, and the transmission efficiency is low, so that more time is required to transmit the data packets, the time exposed to a wireless air interface is longer, the interference is more, and the time of network access is further influenced. Meanwhile, when a plurality of intelligent devices are accessed simultaneously, the false access probability is high.
However, in the current method of sending configuration messages by using UDP multicast, since the sending device for multicast is a terminal such as a mobile phone, the SSID and the password are often manually input. In addition, the encoding method of the multicast configuration information is not flexible, and the intelligent device consumes a long time in channel searching, thereby affecting the connection speed.
In view of the above problems, the inventors of the present application have conducted long-term research and research to propose a method that improves convenience without requiring a user to input configuration information on a user terminal or a smart device. And by defining the control sequence and the data sequence of the UDP multicast packet, the speed of searching the working channel of the network access equipment by the intelligent equipment is increased, the anti-interference capability of the network is improved, and the speed of network access is increased. Meanwhile, the transmitted SSID and the password are verified, the accuracy of information receiving is improved, after the intelligent equipment is accessed, the intelligent equipment is authenticated by identifying the type of the equipment, and the accuracy when the intelligent equipment is accessed simultaneously is improved. The following describes embodiments of the present invention in detail with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Fig. 1 is an interactive schematic diagram of a network access system 10 according to a preferred embodiment of the present invention. In this embodiment, the network access system 10 may include a user terminal 100, a network access device 200, and an intelligent device 300, where the network access device 200 is in communication connection with the user terminal 100 and the intelligent device 300, respectively.
The user terminal 100 may transmit or receive a signal through a manner such as wired or wireless network, or may process or store the signal in a physical storage state such as a memory. Each user terminal 100 may be an electronic device comprising hardware, software, or embedded logic elements, or a combination of two or more such elements, and capable of performing the appropriate functions implemented or supported by the user terminal 100. Alternatively, the user terminal 100 may be a device with wireless transceiving function, including an indoor or outdoor, handheld, wearable, or vehicle-mounted device. For example, the user terminal 100 may be a mobile phone (mobile phone), a tablet computer (Pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self driving (self driving), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and so on. The embodiments of the present application do not limit the application scenarios.
According to some embodiments of the present invention, the user terminal 100 may include: a processing device including an application processing section and a radio frequency/digital signal processor; a display screen; a keypad that may include physical keys, touch keys overlaid on a display, or a combination thereof; a subscriber identity module card; memory devices that may include ROM, RAM, flash memory, or any combination thereof; a Wi-Fi and/or Bluetooth interface; a wireless telephone interface; a power management circuit with an associated battery; a USB interface and a connector; an audio management system with associated microphone, speaker and headphone jack; and various optional accessory components such as cameras, global positioning systems, accelerators, etc. In addition, various client applications may be installed on the user terminal 100, and the client applications may be used to allow the user terminal 100 to be used to transmit commands suitable for operation with other devices (e.g., the network access device 200).
In this embodiment of the present invention, the network Access device 200 may be a wireless Access Point (AP), which is an Access Point of a wireless network and is commonly called a "hot spot", and mainly includes a routing switch Access integrated device and a pure Access Point device, where the integrated device performs Access and routing operations, and the pure Access device is only responsible for Access of a terminal, and the pure Access device is generally used as a wireless network extension and connected to other APs or a master AP to extend a wireless coverage.
In the embodiment of the present invention, the smart device 300 refers to some devices that do not have a screen and a keyboard and cannot select a WIFI access point SSID and a password to connect to a wireless network, such as a smart refrigerator, a smart microwave oven, a smart speaker, a set-top box, an air conditioner, a refrigerator, an electric cooker, and the like.
Referring to fig. 2, a flow chart of a network access method according to a preferred embodiment of the invention is shown, the method being performed by the network access system 10 shown in fig. 1. It should be noted that the network access method provided by the embodiment of the present invention is not limited by the specific sequence described in fig. 2 and below. The method comprises the following specific steps:
in step S110, the user terminal 100 responds to the user operation, and sends a first request for adding the smart device 300 to the network access device 200.
In this embodiment, when a user needs to add an intelligent device 300 to a current wireless network, so that the intelligent device 300 is connected to the wireless network, the user terminal 100 may select a type of the added intelligent device 300 from related interfaces provided by the user terminal 100, for example, interfaces provided by an APP associated with the intelligent device 300, a wechat applet, and a wechat public account, to add the intelligent device 300, and send a first request to the network access device 200 through the user terminal 100, where the first request includes a target device type to be added, such as an intelligent refrigerator, an intelligent microwave oven, an intelligent sound box, a set-top box, an air conditioner, a refrigerator, an electric cooker, and the like, and optionally, a device unique code, a device model, a device hardware address, and the like of the intelligent device 300 may also be added when the target device type is added.
Step S120, the network access device 200 generates configuration information according to the first request, encodes the configuration information in a destination MAC address of a UDP multicast packet according to a preset configuration sequence, and then circularly transmits the UDP multicast packet.
In this embodiment, after receiving the first request, the network access device 200 obtains its SSID and password, and generates configuration information of the response. Because the configuration information sent by using the UDP multicast packets is limited by the length of the MAC layer data packet, the maximum effective information which can be transmitted by each UDP multicast packet is 1 byte, the transmission efficiency is low, and the encoding is inconvenient. In addition, the low transmission efficiency leads to more time for sending information, the time length of the information exposed to a wireless air interface is longer, the interference is more, and the time length of the network access is further influenced. In view of this, in this embodiment, the information is transmitted by using the fixed mapping relationship from the UDP multicast IP address to the MAC address, that is, the IPv4 multicast address is the same as the last 23bits of the destination MAC address of the data link layer, so that the lower 23bits of the UDP multicast IP address can be mapped to the lower 23bits of the destination MAC address of the data link layer, and the configuration information is encoded in the lower 23bits of the destination MAC address according to the preset configuration sequence, so that the information is transmitted by using the fixed mapping relationship from the UDP multicast IP address to the MAC address, and 23bits of data can be transmitted each time, which greatly improves the transmission efficiency, improves the anti-interference capability of the network, and accelerates the network access speed.
In order to further improve the transmission efficiency, please refer to fig. 3, and through long-term research and exploration by the present inventors, a control sequence and a data sequence of the UDP multicast packet are defined, where the control sequence includes a total data length, a cipher length, an SSID check code, and a cipher check code, and the data sequence includes an SSID, a cipher, and a random code. In addition, a transmission cycle of the control sequence and the data sequence is defined, specifically, a first time period is spaced between each control sequence, a second time period is spaced between each data sequence, and a third time period is spaced between the control sequence and the data sequence. Then, the sending process of the configuration information is defined as sending of a configuration sequence, the sending process of the configuration sequence comprises coding and sending of a control field and a data field respectively, and the sending process of the configuration sequence is divided into 2 stages: the first phase is that the control sequence is cyclically transmitted M times, and the second phase is that the data sequence is cyclically transmitted N times. Thus, a one-time configuration sequence may contain multiple control sequences and data sequences. The configuration sequence is sent according to a cycle, and the whole sending process is divided into a plurality of sub-processes, so that the accuracy of receiving information can be obviously enhanced, the speed of searching the working channel of the network access equipment 200 by the intelligent equipment 300 is increased, the anti-interference capability of the network is improved, the speed of network access is increased, and the effect of the implementation scheme is better especially under the condition of poor network signals.
It should be noted that, during the sending of the control sequence and the data sequence, the user may also temporarily cancel the sending, specifically, the user terminal 100 sends a second request to stop sending the UDP multicast packet to the network access device 200 in response to a user operation, and the network access device 200 stops sending the UDP multicast packet according to the second request, so that the user may timely stop correcting when finding a device addition error, and does not need to simultaneously initiate another addition operation.
Step S130, the smart device 300 monitors the control sequences from each channel in sequence, determines a certain channel as a target channel for communicating with the channel of the network access device 200 when it is monitored that the control sequence exists on the channel, and receives the control sequence and the data sequence through the target channel.
In this embodiment, the intelligent device 300 detects the control sequences one by one, detects whether a control sequence exists on a certain channel, and after the control sequence is searched, the intelligent device 300 locks the channel to be aligned with the network access device 200, and continues to receive the control sequence and the data sequence through the channel. In the above process, in consideration of randomness of channel distribution, for each channel, it is determined whether the channel monitors a control sequence within a preset time period, and if the control sequence is not monitored within the preset time period, the next channel continues to monitor the control sequence until a certain channel is monitored to be a target channel for channel communication with the network access device 200.
Further, after receiving the control sequence and determining the target channel, the intelligent device 300 records the MAC address of the network access device 200, and filters the subsequent UDP multicast packet received according to the MAC address, so that when there are a plurality of network access devices 200 configuring one intelligent device 300 at the same time, or a plurality of persons configuring a plurality of intelligent devices 300 at the same time, and other malicious interference situations, the stability of the network configuration of the intelligent device 300 is effectively improved.
In step S140, the intelligent device 300 calculates a corresponding data check value according to the data sequence.
In this embodiment, specifically, the intelligent device 300 calculates a corresponding data check value according to the data sequence by using a CRC check method, where the data check value includes an SSID check value and a password check value.
Step S150, verifying the SSID check value and the SSID check code, verifying the password check value and the password check code, if the verification is successful, parsing from the MAC address to obtain configuration information, and sending a network access request to the network access device 200 based on the configuration information.
In this embodiment, if the verification is successful, since the configuration information is encoded in the lower 23bits of the MAC address, the configuration information may be decoded from the MAC address, and further, to ensure the security of the configuration information, the configuration information is encrypted by AES during encoding, so that the smart device 300 further needs to perform AES decryption to obtain the configuration information, and send a network access request to the network access device 200 based on the configuration information, where the network access request includes the device type of the smart device 300 and the random code in the data sequence.
Step S160, the network access device 200 matches the device type of the intelligent device 300 with the target device type according to the network access request, and sends the access permission information to the intelligent device 300 after the matching is successful.
In this embodiment, the network access device 200 includes the target device type in the first request for receiving the request sent by the user terminal 100, and then can match the device type in the network access request with the target device type, and send the access permission information to the smart device 300 after the matching is successful, so that when there are multiple smart devices 300 simultaneously accessed, the network access device 200 can effectively distinguish the smart devices 300 of the device types that need to be added, thereby improving the accuracy when simultaneously accessing multiple smart devices 300, and reducing the device false access probability.
In step S170, after receiving the access permission information, the smart device 300 sends a UDP broadcast packet including the random code to the network access device 200, so as to complete network access.
Optionally, after receiving the UDP broadcast packet, the network access device 200 stops sending the UDP multicast packet, and sends a confirmation message to the user terminal 100 to confirm that the addition of the smart device 300 is successful, so as to end the configuration process as soon as possible and reduce interference.
Thus, the network access method provided in this embodiment transmits the UDP multicast packet including the configuration information by using the network access device 200, and does not require the user to input the configuration information on the user terminal 100 or the intelligent device 300, thereby improving convenience. By defining the control sequence and the data sequence of the UDP multicast packet, the speed of searching the working channel of the network access device 200 by the intelligent device 300 is increased, the anti-interference capability of the network is improved, and the speed of network access is increased. Meanwhile, the transmitted SSID and the password are verified, the accuracy of information receiving is improved, and after the intelligent device 300 is accessed, the intelligent device 300 is authenticated by identifying the type of the device, so that the accuracy when multiple intelligent devices 300 are accessed simultaneously is improved. After the intelligent device 300 successfully accesses the network, a confirmation mechanism is added, so that the configuration process is ended as soon as possible, and interference is reduced.
Further, please refer to fig. 4, which is a block diagram illustrating a structure of a network access device 200 according to a preferred embodiment of the present invention. As shown in fig. 4, network access device 200 may be implemented by a bus 210, which is a general bus architecture. Bus 210 may include any number of interconnecting buses and bridges depending on the specific application of network access device 200 and the overall design constraints. Bus 210 connects various circuits together including processor 220, storage medium 230, and bus interface 240. Alternatively, the network access device 200 may connect a network adapter 250 or the like via the bus 210 using the bus interface 240. The network adapter 250 may be used to implement signal processing functions of a physical layer in the network access device 200 and implement transmission and reception of radio frequency signals through an antenna. The user interface 260 may connect external devices such as: a keyboard, a display, a mouse or a joystick, etc. The bus 210 may also connect various other circuits such as timing sources, peripherals, voltage regulators, or power management circuits, which are well known in the art, and therefore, will not be described in detail.
Alternatively, the network access device 200 may be configured as a general purpose processing system, such as a chip, that includes: one or more microprocessors providing processing functions, and an external memory providing at least a portion of storage medium 230, all connected together with other support circuits through an external bus architecture.
Alternatively, the network access device 200 may be implemented using: an ASIC (application specific integrated circuit) having a processor 220, a bus interface 240, a user interface 260; and at least a portion of storage medium 230 integrated into a single chip, or network access device 200 may be implemented using one or more FPGAs (field programmable gate arrays), PLDs (programmable logic devices), controllers, state machines, gate logic, discrete hardware components, any other suitable circuitry, or any combination of circuitry capable of performing the various functions described throughout this disclosure.
Among other things, processor 220 is responsible for managing bus 210 and general processing (including the execution of software stored on storage medium 230). Processor 220 may be implemented using one or more general-purpose processors and/or special-purpose processors. Examples of processor 220 include microprocessors, microcontrollers, DSP processors, and other circuits capable of executing software. Software should be construed broadly to mean instructions, data, or any combination thereof, whether referred to as software, firmware, middleware, microcode, hardware description language, or otherwise.
The storage medium 230 is shown separate from the processor 220 in fig. 4, however, it will be readily apparent to those skilled in the art that the storage medium 230, or any portion thereof, may be located outside of the network access device 200. Storage medium 230 may include, for example, a transmission line, a carrier waveform modulated with data, and/or a computer product separate from the wireless node, which may be accessed by processor 220 via bus interface 240. Alternatively, the storage medium 230, or any portion thereof, may be integrated into the processor 220, e.g., may be a cache and/or general purpose registers.
In summary, embodiments of the present invention provide a network access method and system. The method utilizes the network access equipment to send the UDP multicast packet containing the configuration information, does not need a user to input the configuration information on a user terminal or intelligent equipment, and improves the convenience. By defining the control sequence and the data sequence of the UDP multicast packet, the speed of searching the working channel of the network access equipment by the intelligent equipment is increased, the anti-interference capability of the network is improved, and the speed of network access is increased. Meanwhile, the transmitted SSID and the password are verified, the accuracy of information receiving is improved, after the intelligent equipment is accessed, the intelligent equipment is authenticated by identifying the type of the equipment, and the accuracy when the intelligent equipment is accessed simultaneously is improved.
In the embodiments provided by the present invention, it should be understood that the disclosed system and method can be implemented in other ways. The system and method embodiments described above are merely illustrative, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
Alternatively, all or part of the implementation may be in software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (10)

1. A network access method is applied to a network access system, and is characterized in that the network access system comprises a user terminal, a network access device in communication connection with the user terminal, and an intelligent device in communication connection with the network access device, and the method comprises the following steps:
the user terminal responds to user operation and sends a first request for adding intelligent equipment to the network access equipment, wherein the first request comprises a target equipment type needing to be added;
the network access equipment generates configuration information according to the first request, encodes the configuration information on a destination MAC address of a UDP multicast packet according to a preset configuration sequence and then circularly transmits the UDP multicast packet, wherein the preset configuration sequence comprises a control sequence and a data sequence, a first time period is arranged between every two control sequences, a second time period is arranged between every two data sequences, a third time period is arranged between every two control sequences and between every two data sequences, the control sequence comprises the total data length, the password length, the SSID check code and the password check code, and the data sequence comprises the SSID, the password and the random code;
the intelligent equipment monitors the control sequences from each channel in sequence, determines a certain channel as a target channel communicated with the channel of the network access equipment when monitoring that the control sequences exist on the channel, and receives the control sequences and the data sequences through the target channel;
the intelligent equipment calculates a corresponding data check value according to the data sequence, wherein the data check value comprises an SSID check value and a password check value;
verifying the SSID check value and the SSID check code, verifying the password check value and the password check code, if the verification is successful, analyzing the MAC address to obtain configuration information, and sending a network access request to the network access equipment based on the configuration information, wherein the network access request comprises the equipment type of the intelligent equipment and the random code;
the network access equipment matches the equipment type of the intelligent equipment with the type of the target equipment according to the network access request, and sends access permission information to the intelligent equipment after the matching is successful;
and the intelligent equipment sends a UDP broadcast packet comprising the random code to the network access equipment after receiving the access permission information so as to complete network access.
2. The network access method of claim 1, wherein the network access device generates configuration information according to the first request, and wherein the generating comprises:
and acquiring SSID information and password information of the accessible network according to the request, thereby generating the configuration information.
3. The network access method according to claim 1, wherein the encoding the configuration information into the destination MAC address of the UDP multicast packet according to a preset configuration sequence comprises:
mapping the lower 23bits of the UDP multicast IP address to the lower 23bits of the destination MAC address of the data link layer, and coding the configuration information in the lower 23bits of the destination MAC address according to a preset configuration sequence.
4. The network access method of claim 1, wherein the smart device sequentially monitors the control sequences from each channel, and determines a channel as a target channel for communication with the channel of the network access device when the control sequences are monitored to exist on the channel, and the method further comprises:
judging whether the channel monitors a control sequence or not within a preset time period aiming at each channel;
and if the judgment result is negative, entering the next channel to continue monitoring the control sequence until the control sequence exists on a certain channel, and determining the channel as a target channel for the channel communication with the network access equipment.
5. The network access method of claim 1, wherein after receiving the control sequence and the data sequence via the target channel, the method further comprises:
and filtering the subsequently received UDP multicast packets according to the MAC address.
6. The network access method of claim 1, wherein after matching the SSID check value with the SSID check code and checking the password check value with the password check code, the method further comprises:
and if the verification fails, receiving the control sequence and the data sequence again in the target channel.
7. The network access method according to claim 1, wherein after the smart device sends the UDP broadcast packet including the random code to the network access device after receiving the permission information, the method further comprises:
and after receiving the UDP broadcast packet of the random code, the network access equipment sends confirmation information to the user terminal to confirm that the intelligent equipment is successfully added.
8. The network access method according to claim 1, wherein after the smart device sends the UDP broadcast packet including the random code to the network access device after receiving the permission information, the method further comprises:
and the network access equipment stops sending the UDP multicast packet.
9. The network access method according to claim 1, wherein the network access device generates configuration information according to the request, encodes the configuration information in a destination MAC address of a UDP multicast packet according to a preset configuration sequence, and circularly transmits the UDP multicast packet, and the method further comprises:
the user terminal responds to user operation and sends a second request for stopping sending the UDP multicast packet to the network access equipment;
and the network access equipment stops sending the UDP multicast packet according to the second request.
10. A network access system is characterized in that the network access system comprises a user terminal, a network access device in communication connection with the user terminal and an intelligent device in communication connection with the network access device;
the user terminal is used for responding to user operation and sending a first request for adding intelligent equipment to the network access equipment, wherein the first request comprises a target equipment type needing to be added;
the network access device is configured to generate configuration information according to the first request, encode the configuration information in a destination MAC address of a UDP multicast packet according to a preset configuration sequence, and then cyclically transmit the UDP multicast packet, where the preset configuration sequence includes a control sequence and a data sequence, a first time period is spaced between each control sequence, a second time period is spaced between each data sequence, a third time period is spaced between each control sequence and each data sequence, the control sequence includes a total data length, a password length, an SSID check code and a password check code, and the data sequence includes an SSID, a password and a random code;
the intelligent device is used for monitoring the control sequences from each channel in sequence, determining a certain channel as a target channel for communicating with the channel of the network access device when the control sequences exist on the channel, and receiving the control sequences and the data sequences through the target channel;
the intelligent device is further used for calculating a corresponding data check value according to the data sequence, wherein the data check value comprises an SSID check value and a password check value;
the intelligent device is further configured to verify the SSID check value and the SSID check code, verify the password check value and the password check code, resolve the MAC address to obtain configuration information if the verification is successful, and send a network access request to the network access device based on the configuration information, where the network access request includes a device type of the intelligent device and the random code;
the network access equipment is also used for matching the equipment type of the intelligent equipment with the type of the target equipment according to the network access request and sending access permission information to the intelligent equipment after the matching is successful;
the intelligent device is further configured to send a UDP broadcast packet including the random code to the network access device after receiving the permission access information, so as to complete network access.
CN201711291654.4A 2017-12-08 2017-12-08 Network access method and system Active CN108040355B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711291654.4A CN108040355B (en) 2017-12-08 2017-12-08 Network access method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711291654.4A CN108040355B (en) 2017-12-08 2017-12-08 Network access method and system

Publications (2)

Publication Number Publication Date
CN108040355A CN108040355A (en) 2018-05-15
CN108040355B true CN108040355B (en) 2020-09-25

Family

ID=62101524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711291654.4A Active CN108040355B (en) 2017-12-08 2017-12-08 Network access method and system

Country Status (1)

Country Link
CN (1) CN108040355B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109510743B (en) * 2018-11-16 2021-10-01 中山市力泰电子工业有限公司 Rapid clustering method for intelligent sound box system
CN109640377A (en) * 2018-12-19 2019-04-16 深圳市金刚蚁机器人技术有限公司 The method that smart machine carries out networking operation is controlled by mobile terminal
CN109688072A (en) * 2018-12-27 2019-04-26 Tcl通力电子(惠州)有限公司 Speaker method of network entry, speaker and computer readable storage medium
CN109982298A (en) * 2019-02-19 2019-07-05 深圳市和盈互联科技有限公司 It is a kind of that network method is matched based on Internet of Things Wi-Fi module
CN109714742A (en) * 2019-02-19 2019-05-03 深圳市和盈互联科技有限公司 A kind of Internet of Things Wi-Fi module network self-adapting switching method
CN112351471B (en) * 2020-08-24 2024-04-30 深圳Tcl新技术有限公司 Method for accessing device to gateway, gateway device and computer readable storage medium
CN113329349A (en) * 2021-06-17 2021-08-31 西安超越申泰信息科技有限公司 Communication method between mobile terminal and intelligent device in Wi-Fi mode and mobile terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105050083A (en) * 2015-05-25 2015-11-11 深圳创维数字技术有限公司 Network configuration method and system for intelligent equipment
CN105246126A (en) * 2015-08-28 2016-01-13 深圳市唯传科技有限公司 Intelligent equipment access method, device and system
CN105357737A (en) * 2015-11-20 2016-02-24 深圳市江波龙科技有限公司 Method and device for accessing WiFi device to wireless access point
CN106856609A (en) * 2017-02-28 2017-06-16 苏州福瑞思信息科技有限公司 A kind of network collocating method and device
CN107371163A (en) * 2017-07-28 2017-11-21 歌尔股份有限公司 A kind of method and apparatus for controlling access wireless network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2183903B1 (en) * 2007-08-31 2018-12-26 France Brevets Method and apparatus for propagating encryption keys between wireless communication devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105050083A (en) * 2015-05-25 2015-11-11 深圳创维数字技术有限公司 Network configuration method and system for intelligent equipment
CN105246126A (en) * 2015-08-28 2016-01-13 深圳市唯传科技有限公司 Intelligent equipment access method, device and system
CN105357737A (en) * 2015-11-20 2016-02-24 深圳市江波龙科技有限公司 Method and device for accessing WiFi device to wireless access point
CN106856609A (en) * 2017-02-28 2017-06-16 苏州福瑞思信息科技有限公司 A kind of network collocating method and device
CN107371163A (en) * 2017-07-28 2017-11-21 歌尔股份有限公司 A kind of method and apparatus for controlling access wireless network

Also Published As

Publication number Publication date
CN108040355A (en) 2018-05-15

Similar Documents

Publication Publication Date Title
CN108040355B (en) Network access method and system
US10630647B2 (en) Secure wireless communication between controllers and accessories
US11943695B2 (en) Network channel switching method and apparatus, device, and storage medium
EP3410759B1 (en) Method and access point for accessing network by internet-of-things device
CN104967997B (en) A kind of Wi-Fi cut-in method, Wi-Fi equipment, terminal device and system
EP3190747A1 (en) Secure wireless communication between controllers and accessories
CN109474838B (en) Data processing method, device, system and storage medium
CN105682253A (en) Method and equipment for communication establishment, terminal and computer readable storage medium
CN107707557B (en) Anonymous access method, device, network equipment and readable storage medium
CN110740460A (en) device network access method, device, network device and storage medium
CN106535187B (en) Intelligent household equipment access method and system based on wireless routing terminal
CN103458057A (en) Resource acquiring method, device and server
US9386613B2 (en) Wireless network system and connecting method thereof
KR102060434B1 (en) Apparatus and method for providing a wireless communication in a portable terminal
CN109996229B (en) Data transmission method and device based on DHT network, electronic equipment and storage medium
CN105429960A (en) Method and device for intelligent household terminal authentication
CN104683994A (en) Wireless network configuration method and wireless network devices
US8989380B1 (en) Controlling communication of a wireless communication device
TW201605203A (en) Home control gateway and home control network connection method thereof
CN102594893A (en) Remote compelled method and system for mobile terminal equipment and computer
US20210044965A1 (en) Cloud controlled secure bluetooth pairing for network device management
CN113037820B (en) Thing networking device communication module
CN110868374A (en) Security authentication method, server and client device
CN105072212A (en) Code checking method and code checking system
CN107708183B (en) Decoding algorithm determination method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180807

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: XINGLUO TECHNOLOGY Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: SHENZHEN HENGTENG INTELLIGENT TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190211

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: HENGDA WISDOM TECHNOLOGY Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: XINGLUO TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221129

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee after: Jinbi Smart Life Technology (Shenzhen) Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: HENGDA WISDOM TECHNOLOGY Co.,Ltd.