CN108040355A - Method for network access and system - Google Patents

Method for network access and system Download PDF

Info

Publication number
CN108040355A
CN108040355A CN201711291654.4A CN201711291654A CN108040355A CN 108040355 A CN108040355 A CN 108040355A CN 201711291654 A CN201711291654 A CN 201711291654A CN 108040355 A CN108040355 A CN 108040355A
Authority
CN
China
Prior art keywords
network access
smart machine
network
sequence
access equipment
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.)
Granted
Application number
CN201711291654.4A
Other languages
Chinese (zh)
Other versions
CN108040355B (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
Shenzhen Hengtenen 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 Shenzhen Hengtenen Intelligent Technology Co Ltd filed Critical Shenzhen Hengtenen 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

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

Abstract

The embodiment of the present invention provides a kind of method for network access and system.This method sends the UDP multicast packets for including configuration information using network access equipment, inputs configuration information on user terminal or smart machine without user, improves convenience.By defining the control sequence and data sequence of UDP multicast packets, the speed that smart machine searches network access equipment working channel is improved, improves the antijamming capability of network, accelerates the speed of network insertion.The SSID and password of transmission are verified at the same time, improve the accuracy of information reception, and after smart machine access, by identification equipment type so as to be authenticated to smart machine, improve accuracy when accessing multiple smart machines at the same time.

Description

Method for network access and system
Technical field
The present invention relates to field of communication technology, in particular to a kind of method for network access and system.
Background technology
With the development of Internet of Things, more and more smart machines access network, the access side that presently, there are by WiFi Formula mainly inputs SSID and the cumbersome inconvenience of Password Operations by mobile phone terminal or device screen, and the difference of mobile phone terminal causes Compatibility issue and transmission signal quality difference, transmission process consumption for a long time, and use udp broadcast bag to send configuration information The length of MAC layer data packet is limited to, for a long time, efficiency of transmission is low, so that low result in the need for for the consumption of network insertion process More time sends data packet, and the duration exposed to radio open is longer, and interference is more, further influences the duration to network.At the same time When there is multiple smart machines to access at the same time, access probability is big by mistake.
The content of the invention
In view of this, it is an object of the invention to provide a kind of method for network access and system, to overcome in the prior art Above-mentioned deficiency.
To achieve these goals, the technical solution that present pre-ferred embodiments use is as follows:
Present pre-ferred embodiments provide a kind of method for network access, applied to network access system, the network insertion System includes user terminal, the network access equipment being connected with the user terminal communication and leads to the network access equipment Believe the smart machine of connection, the described method includes:
The user terminal responds user's operation, and send addition smart machine to the network access equipment first please Ask, first request includes the target device type of addition in need;
The network access equipment requests to generate configuration information according to described first, and according to preset configuration sequence by described in Configuration information coding is cycled through the UDP multicast packets after the target MAC (Media Access Control) address of UDP multicast packets, wherein, it is described pre- If configuration sequence includes control sequence and data sequence, first time period, each data sequence are spaced between each control sequence Between be spaced second time period, between control sequence and data sequence be spaced the 3rd period, the control sequence include count According to total length, Password Length, SSID check codes and cryptographic check code, the data sequence includes SSID, password and random Code;
The smart machine from control sequence described in each channel-monitoring, exists on some channel is listened to successively When stating control sequence, which is determined as the destination channel with the channel communication of the network access equipment, and pass through the mesh Mark channel and receive the control sequence and the data sequence;
The smart machine calculates corresponding data check value according to the data sequence, and the data check value includes SSID check values and cryptographic check value;
The SSID check values and the SSID check codes are verified, and by the cryptographic check value and the password Check code is verified, if verified successfully, parsing obtains configuration information from the MAC Address, and is based on the configuration Information sends network insertion request to the network access equipment, includes the smart machine in the network insertion request Device type and the random code;
The network access equipment is asked the device type of the smart machine and the mesh according to the network insertion Marking device type is matched, and being sent after successful match to the smart machine allows access information;
The smart machine is sent after the permission access information is received to the network access equipment to be included The udp broadcast bag of random code is stated, to complete network insertion.
In present pre-ferred embodiments, the network access equipment requests to generate configuration information according to described first, bag Include:
The SSID information and encrypted message that can access network are obtained according to the request, so as to generate the configuration information.
In present pre-ferred embodiments, it is described by the configuration information according to preset configuration sequential coding in UDP multicasts In the target MAC (Media Access Control) address of bag, including:
By low 23 of low 23 bit mapping of UDP multicast ip address to data link layer target MAC (Media Access Control) address, and match somebody with somebody by described in Confidence breath is according to preset configuration sequential coding in low 23 of the target MAC (Media Access Control) address.
In present pre-ferred embodiments, the smart machine from control sequence described in each channel-monitoring, is being supervised successively Hear when there are the control sequence on some channel, which is determined as the channel communication with the network access equipment Destination channel after, the method further includes:
For each channel, judge whether the channel listens to control sequence in preset time period;
When the judgment result is No, continue to monitor the control sequence into next channel, until listening to some When there are the control sequence on channel, which is determined as believing with the target of the channel communication of the network access equipment Road.
It is described that the control sequence and the data sequence are being received by the destination channel in present pre-ferred embodiments After row, the method further includes:
According to the subsequently received UDP multicast packets of the mac address filter.
It is described to be matched the SSID check values with the SSID check codes in present pre-ferred embodiments, and After the cryptographic check value and the cryptographic check code are verified, the method further includes:
If verification failure, receives control sequence and data sequence in the destination channel again.
In present pre-ferred embodiments, the smart machine is after the permission access information is received to the network After access device sends the udp broadcast bag for including the random code, the method further includes:
The network access equipment is sent true after the udp broadcast bag of the random code is received to the user terminal Information is recognized, to confirm that the smart machine adds successfully.
In present pre-ferred embodiments, the smart machine is after the permission access information is received to the network After access device sends the udp broadcast bag for including the random code, the method further includes:
The network access equipment stops sending UDP multicast packets.
In present pre-ferred embodiments, the network access equipment requests to generate configuration information according to, and by institute Configuration information is stated to carry out according to preset configuration sequential coding in the target MAC (Media Access Control) address of UDP multicast packets and by the UDP multicast packets After cycling through, the method further includes:
The user terminal responds user's operation, is sent to the network access equipment and stops sending the of UDP multicast packets Two requests;
The network access equipment stops sending UDP multicast packets according to the described second request.
Present pre-ferred embodiments also provide a kind of network access system, the network access system include user terminal, The network access equipment being connected with the user terminal communication and the smart machine with network access equipment communication connection;
The user terminal, for responding user's operation, the of addition smart machine is sent to the network access equipment One request, first request include the target device type of addition in need;
The network access equipment, for requesting to generate configuration information according to described first, and according to preset configuration sequence Configuration information coding is cycled through the UDP multicast packets after the target MAC (Media Access Control) address of UDP multicast packets, wherein, The preset configuration sequence includes control sequence and data sequence, and first time period is spaced between each control sequence, per number According to being spaced second time period between sequence, it was spaced for the 3rd period between control sequence and data sequence, in the control sequence Including total length of data, Password Length, SSID check codes and cryptographic check code, the data sequence include SSID, password with And random code;
The smart machine, for from control sequence described in each channel-monitoring, being deposited successively on some channel is listened to When there is the control sequence, which is determined as the destination channel with the channel communication of the network access equipment, and lead to Cross the destination channel and receive the control sequence and the data sequence;
The smart machine, is additionally operable to calculate corresponding data check value, the data check according to the data sequence Value includes SSID check values and cryptographic check value;
The smart machine, is additionally operable to be verified the SSID check values and the SSID check codes, and by described in Cryptographic check value is verified with the cryptographic check code, if verified successfully, is parsed and is configured from the MAC Address Information, and network insertion request is sent to the network access equipment based on the configuration information, in the network insertion request Include the device type of the smart machine and the random code;
The network access equipment, be additionally operable to according to the network insertion request by the device type of the smart machine with The target device type is matched, and being sent after successful match to the smart machine allows access information;
The smart machine, is additionally operable to send to the network access equipment after the permission access information is received and wraps The udp broadcast bag of the random code is included, to complete network insertion.
In terms of existing technologies, the invention has the advantages that:
The embodiment of the present invention provides a kind of method for network access and system.This method is sent using network access equipment to be included There are the UDP multicast packets of configuration information, input configuration information on user terminal or smart machine without user, improve facility Property.By defining the control sequence and data sequence of UDP multicast packets, improve smart machine and search network access equipment work The speed of channel, improves the antijamming capability of network, accelerates the speed of network insertion.The SSID and password of transmission are carried out at the same time Verification, improves the accuracy of information reception, and after smart machine access, by identification equipment type so as to be set to intelligence It is standby to be authenticated, improve accuracy when accessing multiple smart machines at the same time.
To enable the above objects, features and advantages of the present invention to become apparent, present pre-ferred embodiments cited below particularly, And attached drawing appended by coordinating, it is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair The restriction of scope, for those of ordinary skill in the art, without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of interactive schematic diagram for the network access system that present pre-ferred embodiments provide;
Fig. 2 is a kind of flow diagram for the method for network access that present pre-ferred embodiments provide;
Fig. 3 is a kind of interacting message stream between the network access equipment and smart machine that present pre-ferred embodiments provide Journey schematic diagram;
Fig. 4 is a kind of structural schematic block diagram of the network access equipment shown in Fig. 1.
Icon:10- network access systems;100- user terminals;200- network access equipments;210- buses;220- processing Device;230- storage mediums;240- bus interface;250- network adapter;260- user interfaces;300- smart machines.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Usually herein The component of the embodiment of the present invention described and illustrated in place's attached drawing can be arranged and designed with a variety of configurations.
Therefore, below the detailed description of the embodiment of the present invention to providing in the accompanying drawings be not intended to limit it is claimed The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiments of the present invention, this area is common All other embodiment that technical staff is obtained without creative efforts, belongs to the model that the present invention protects Enclose.
It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.
With the development of Internet of Things, more and more smart machines access network by WiFi, such as television set, air-conditioning, Refrigerator, electric cooker, speaker etc..Smart machine access network mainly has in the following manner:
Input SSID connects WiFi network with password, such as some smart machines with screen.
Udp broadcast bag is sent by mobile phone terminal, is issued after configuration information is encoded with the MAC layer length field of broadcast packet Smart machine, such as the smart machine of some no screens.
WiFi configuration message is sent by way of UDP multicasts.
Study and find through present inventor, there are problems with for aforesaid way:
SSID and the cumbersome inconvenience of Password Operations are inputted by mobile phone terminal or device screen, and the difference of mobile phone terminal is led Cause compatibility issue and send signal quality difference, transmission process consumption for a long time, and uses udp broadcast bag to send and matches somebody with somebody confidence Breath is limited to the length of MAC layer data packet, and for a long time, efficiency of transmission is low for the consumption of network insertion process, so that low cause to need More time data packet is sent, the duration exposed to radio open is longer, and interference is more, further influences the duration to network.Together When there is multiple smart machines to access at the same time, by mistake access probability it is big.
And the method for sending configuration message using the mode of UDP multicasts at present, since the dispensing device of multicast is mobile phone etc. Terminal, generally requires to be manually entered SSID and password.In addition, the mode of Multicast configuration information coding is dumb, smart machine exists Channel search consumption for a long time, and then influences the speed of connection.
In view of the above problems, study for a long period of time exploration through present inventor, propose following methods, this method exists without user Configuration information is inputted on user terminal or smart machine, improves convenience.And by define UDP multicast packets control sequence and Data sequence, improves the speed that smart machine searches network access equipment working channel, improves the antijamming capability of network, Accelerate the speed of network insertion.The SSID and password of transmission are verified at the same time, improve the accuracy of information reception, and After smart machine access, by identification equipment type so as to being authenticated to smart machine, improve access at the same time it is multiple Accuracy during smart machine.Below in conjunction with the accompanying drawings, elaborate to the embodiment of the present invention.In the case where there is no conflict, under Feature in the embodiment and embodiment stated can be mutually combined.
A kind of referring to Fig. 1, interactive schematic diagram of the network access system 10 provided for present pre-ferred embodiments.This reality Apply in example, the network access system 10 may include user terminal 100, network access equipment 200 and smart machine 300, institute Network access equipment 200 is stated to communicate to connect with the user terminal 100 and the smart machine 300 respectively.
The user terminal 100 can be sent or be received signal by modes such as wired or wireless networks, or can be with By signal processing or physical store state is stored as in such as memory.Each user terminal 100 can include hardware, soft The electronic device of the combination of body or embedded logic element or this two or more class component, and be able to carry out by user terminal The 100 suitable functions of implementing or support.Alternatively, the user terminal 100 can a kind of have radio transmission-receiving function Equipment, including indoor or outdoors, hand-held, wearing or mobile unit.For example, the user terminal 100 can be mobile phone (mobile Phone), tablet computer (Pad), the computer with radio transmission-receiving function, virtual reality (Virtual Reality, VR) terminal are set Nothing in standby, augmented reality (Augmented Reality, AR) terminal device, Industry Control (industrial control) Line terminal, the wireless terminal in unmanned (self driving), the wireless end in tele-medicine (remote medical) End, the wireless terminal in intelligent grid (smart grid), the wireless end in transportation safety (transportation safety) End, the wireless terminal in smart city (smart city), wireless terminal in wisdom family (smart home) etc..This Shen Embodiment please does not limit application scenarios.
According to some embodiments of the present invention, user terminal 100 can include:Comprising using processing unit and radio frequency/numerical digit The processing unit of signal processor;Display screen;Secondary or physical bond, the membrane keyboard being covered on display screen or combinations thereof can be included Keypad;SIM card;The memory device of ROM, RAM, flash memory or their any combination can be included Put;Wi-Fi and/or blue tooth interface;Wireless phone interface;Electric power management circuit with relevant battery;USB interface and connection Device;Message management system with relevant microphone, loudspeaker and earphone jack;And various such as cameras, global location The selectable appurtenances of system, accelerator etc..In addition, various user terminal applications can be installed on user terminal 100, use The application of family end can be used for allowing to transmit being suitable for and other equipment (such as network access equipment using user terminal 100 200) order of operation.
In embodiments of the present invention, the network access equipment 200 can be wireless access point (Access Point, AP), it is the access point of a wireless network, is commonly called as " hot spot ", mainly has route switching access equipment integrating and pure access point to set Standby, equipment integrating performs access and route work, and pure access device is only responsible for the access of terminal, and pure access device is usually as nothing The extension of gauze network uses, and is connected with other AP or main AP, to expand wireless coverage.
In embodiments of the present invention, the smart machine 300 refers to that some do not have screen and keyboard, WIFI can not be selected to connect The equipment that access point SSID connects wireless network with password, such as intelligent refrigerator, intelligent microwave oven, intelligent sound box, set-top box, sky Adjust, refrigerator, electric cooker etc..
Referring to Fig. 2, a kind of flow diagram of the method for network access provided for present pre-ferred embodiments, the side Method is performed by the network access system 10 shown in Fig. 1.It should be noted that method for network access provided in an embodiment of the present invention Not using Fig. 2 and particular order as described below as limitation.The idiographic flow of the method is as follows:
Step S110, user terminal 100 respond user's operation, and sending addition intelligence to the network access equipment 200 sets Standby 300 the first request.
In the present embodiment, when user need in active wireless network add smart machine 300 so that the smart machine During 300 connection wireless network, the related interfaces that can be provided in the user terminal 100 are such as associated with the smart machine 300 Select 300 type of smart machine of addition should to select to add in the interface that APP, wechat small routine, wechat public account provide Smart machine 300, and the first request is sent to the network access equipment 200 by the user terminal 100, described first please Asking includes the target device type of addition in need, such as intelligent refrigerator, intelligent microwave oven, intelligent sound box, set-top box, sky Adjust, refrigerator, electric cooker etc., optionally, the equipment of the smart machine 300 can also be added only when adding target device type One coding, unit type or device hardware address etc..
Step S120, the network access equipment 200 request to generate configuration information according to described first, and according to pre- establishing Put sequence and the UDP multicast packets are subjected to circulation hair by configuration information coding after the target MAC (Media Access Control) address of UDP multicast packets Send.
In the present embodiment, the network access equipment 200 obtains the SSID of itself after first request is received And password, and generate the configuration information of response.Configuration information, which is sent, due to the use of UDP multicast packets is limited to MAC layer data packet Length, the effective information that each UDP multicast packets can be transmitted are up to 1 byte, and transmission efficiency is low, it has not been convenient to encodes.In addition pass Defeated efficiency is low to be resulted in the need for the more time and sends information, and the duration exposed to radio open is longer, and interference is more, further influence into The duration of net.In consideration of it, the present embodiment transmits information using the fixation mapping relations of UDP multicast ip address to MAC Address, i.e., Latter 23 of IPv4 multicast address and data link layer target MAC (Media Access Control) address are identical, therefore can be by low the 23 of UDP multicast ip address Bit mapping exists the configuration information according to preset configuration sequential coding to low 23 of data link layer target MAC (Media Access Control) address In low 23 of the target MAC (Media Access Control) address, so as to be transmitted by the fixation mapping relations of UDP multicast ip address to MAC Address Information, can transmit 23bits data every time, and significant increase transmission efficiency, improves the antijamming capability of network, accelerate network The speed of access.
In order to further improve efficiency of transmission, referring to Fig. 3, studying for a long period of time exploration through the present inventor, the UDP is defined The control sequence and data sequence of multicast packets, the control sequence include total length of data, Password Length, SSID check codes and Cryptographic check code, the data sequence include SSID, password and random code.In addition, define control sequence and data sequence Sending cycle, specifically, first time period is spaced between each control sequence, was spaced for the second time between each data sequence Section, was spaced for the 3rd period between control sequence and data sequence.Then, the transmission process of the configuration information is defined as matching somebody with somebody The transmission of sequence is put, including control field and data field are separately encoded transmission, configuration sequence transmission process is divided into 2 stages: First stage is that control sequence cycles through M times, and second stage is that data sequence cycles through n times.Thus, once configure Sequence can include multiple control sequences and data sequence.Configuration sequence is sent by loop cycle, by the way that whole transmission process is cut It is divided into multiple subprocess, the accuracy of receive information can be significantly increased, improves smart machine 300 and search network access equipment The speed of 200 working channels, improves the antijamming capability of network, accelerates the speed of network insertion, and especially network signal is poor In the case of the embodiment above it is better.
What deserves to be explained is in the transmission process of above-mentioned control sequence and data sequence, user can also cancel temporarily Send, specifically, the user terminal 100 responds user's operation, is sent to the network access equipment 200 and stops sending UDP Second request of multicast packets, the network access equipment 200 stops sending UDP multicast packets according to the described second request, thus real Having showed user can stop correcting in time when discovering device adds mistake, without initiating other addition behaviour at the same time again at the same time Make.
Step S130, the smart machine 300 from control sequence described in each channel-monitoring, are listening to some letter successively When there are the control sequence on road, which is determined as the target with the channel communication of the network access equipment 200 Channel, and the control sequence and the data sequence are received by the destination channel.
In the present embodiment, the smart machine 300 channel detection control sequence one by one, detects whether to deposit on some channel Having control sequence, after searching control sequence, smart machine 300 lock on this channel with 200 channel of network access equipment Alignment, and control sequence and data sequence have been continued to by the channel.In above process, it is contemplated that channel distribution with Machine, for each channel, judges whether the channel listens to control sequence in preset time period, if in preset time Control sequence is not listened in section, then continues to monitor the control sequence into next channel, until listening to some When there are the control sequence on channel, which is determined as the mesh with the channel communication of the network access equipment 200 Mark channel.
Further, after receiving control sequence, and determine the destination channel, the smart machine 300 records institute The MAC Address of network access equipment 200 is stated, and according to the subsequently received UDP multicast packets of the mac address filter, so as to work as Configure a 300 or more people of smart machine at the same time there are multiple network access equipments 200 and configure multiple smart machines 300 at the same time And during other malicious interference situations, effectively improve the stability of 300 network configuration of smart machine.
Step S140, the smart machine 300 calculate corresponding data check value according to the data sequence.
In the present embodiment, specifically, the smart machine 300 uses CRC check method, is calculated according to the data sequence Corresponding data check value, the data check value include SSID check values and cryptographic check value.
Step S150, the SSID check values and the SSID check codes are verified, and by the cryptographic check value Verified with the cryptographic check code, if verified successfully, parsed from the MAC Address and obtain configuration information, and base In the configuration information network insertion request is sent to the network access equipment 200.
,, can since configuration information coding is at low 23 of the MAC Address if verified successfully in the present embodiment The configuration information is obtained to be decoded from the MAC Address, further, in order to ensure the security of the configuration information, The configuration information has carried out AES encryption in coding, therefore the smart machine 300 also needs to carry out AES decryption to obtain The configuration information, and network insertion request, the network are sent to the network access equipment 200 based on the configuration information Include the random code in the device type and the data sequence of the smart machine 300 in access request.
Step S160, the network access equipment 200 ask setting the smart machine 300 according to the network insertion Standby type is matched with the target device type, and being sent after successful match to the smart machine 300 allows access to believe Breath.
In the present embodiment, first request of the network access equipment 200 in the above-mentioned reception transmission of user terminal 100 In include the target device type, and then the device type during can the network insertion be asked and the target device class Type is matched, and being sent after successful match to the smart machine 300 allows access information, so as to there are multiple intelligence When equipment 300 accesses at the same time, the network access equipment 200 can effectively distinguish the smart machine for the device type for needing to add 300, accuracy when accessing multiple smart machines 300 at the same time is improved, equipment is reduced and misses access probability.
Step S170, the smart machine 300 is after the permission access information is received to the network access equipment 200 send the udp broadcast bag for including the random code, to complete network insertion.
Alternatively, the network access equipment 200 stops sending UDP multicasts after the udp broadcast bag is received Bag, and confirmation message is sent to the user terminal 100, to confirm that the smart machine 300 adds successfully, so as to terminate as early as possible Configuration process, reduces interference.
So far, method for network access provided in this embodiment, is sent using network access equipment 200 and includes configuration information UDP multicast packets, input configuration information on user terminal 100 or smart machine 300 without user, improve convenience.It is logical The control sequence and data sequence for defining UDP multicast packets are crossed, smart machine 300 is improved and searches 200 work of network access equipment Make the speed of channel, improve the antijamming capability of network, accelerate the speed of network insertion.At the same time to the SSID of transmission and password into Row verification, improves the accuracy of information reception, and after the access of smart machine 300, by identification equipment type so as to right Smart machine 300 is authenticated, and improves accuracy when accessing multiple smart machines 300 at the same time.Smart machine 300 into Increase affirmation mechanism after work(access network, so as to terminate configuration process as early as possible, reduce interference.
Further, referring to Fig. 4, implementing the one kind for the network access equipment 200 that preferred embodiment provides for the present invention Structural schematic block diagram.As shown in figure 4, network access equipment 200 can be made general bus architecture Lai real by bus 210 It is existing.According to the concrete application of network access equipment 200 and overall design constraints condition, bus 210 can include any number of Interconnection bus and bridge joint.Bus 210 is electrically connected to various together, these circuits include processor 220, storage medium 230 With bus interface 240.Alternatively, network access equipment 200 can use bus interface 240 by the grade of network adapter 250 via Bus 210 connects.Network adapter 250 can be used for the signal processing function for realizing physical layer in network access equipment 200, and lead to Cross antenna and realize sending and receiving for radiofrequency signal.User interface 260 can connect external equipment, such as:Keyboard, display, Mouse or control stick etc..Bus 210 can also connect various other circuits, as timing source, ancillary equipment, voltage regulator or Person's management circuit etc., these circuits are known in the art, therefore are no longer described in detail.
It can replace, network access equipment 200 may also be configured to generic processing system, such as be commonly referred to as chip, this is logical Included with processing system:The one or more microprocessors of processing function are provided, and provide at least one of storage medium 230 The external memory storage divided, it is all these all to be linked together by external bus architecture and other support circuits.
Interchangeable, network access equipment 200 can be realized using following:With processor 220, bus interface 240, The ASIC (application-specific integrated circuit) of user interface 260;And it is integrated at least one of the storage medium 230 in one single chip Point, alternatively, network access equipment 200 can be realized using following:One or more FPGA (field programmable gate array), PLD (programmable logic device), controller, state machine, gate logic, discrete hardware components, any other suitable circuit or It is able to carry out any combination of the circuit of present invention various functions described in the whole text.
Wherein, processor 220 is responsible for bus 210 and general processing and (including performs and be stored on storage medium 230 Software).Processor 220 can be realized using one or more general processors and/or application specific processor.Processor 220 Example includes microprocessor, microcontroller, dsp processor and the other circuits for being able to carry out software.Should be by software broadly It is construed to represent instruction, data or its any combination, regardless of whether being called it as software, firmware, middleware, microcode, hard Part description language or other.
Storage medium 230 is illustrated as separating with processor 220 in Fig. 4, however, those skilled in the art be easy to it is bright In vain, storage medium 230 or its arbitrary portion can be located at outside network access equipment 200.For example, storage medium 230 can be with The carrier waveform modulated including transmission line, with data, and/or the computer product separated with radio node, these media are equal It can be accessed by processor 220 by bus interface 240.Alternatively, storage medium 230 or its arbitrary portion can integrate Into processor 220, for example, it may be cache and/or general register.
In conclusion the embodiment of the present invention provides a kind of method for network access and system.This method is set using network insertion Preparation send the UDP multicast packets for including configuration information, inputs configuration information on user terminal or smart machine without user, carries High convenience.By defining the control sequence and data sequence of UDP multicast packets, improve smart machine and search network insertion The speed of equipment working channel, improves the antijamming capability of network, accelerates the speed of network insertion.At the same time to the SSID of transmission and Password is verified, improve information reception accuracy, and smart machine access after, by identification equipment type so as to Smart machine is authenticated, improves accuracy when accessing multiple smart machines at the same time.
In embodiment provided by the present invention, it should be understood that disclosed system and method, can also be by other Mode realize.System and method embodiment described above is only schematical, for example, flow chart and frame in attached drawing Figure shows the system of multiple embodiments according to the present invention, the system frame in the cards of method and computer program product Structure, function and operation.At this point, each square frame in flow chart or block diagram can represent a module, program segment or code A part, the part of the module, program segment or code include one or more be used for realization as defined in logic function Executable instruction.It should also be noted that at some as in the implementation replaced, the function of being marked in square frame can also be with not The order for being same as being marked in attached drawing occurs.For example, two continuous square frames can essentially perform substantially in parallel, they have When can also perform in the opposite order, this is depending on involved function.It is also noted that in block diagram and/or flow chart Each square frame and block diagram and/or the square frame in flow chart combination, the special of function or action as defined in performing can be used Hardware based system realize, or can be realized with the combination of specialized hardware and computer instruction.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
It can replace, can be realized wholly or partly by software, hardware, firmware or its any combination.When When being realized using software, it can realize in the form of a computer program product whole or in part.The computer program product Including one or more computer instructions.It is all or part of when loading on computers and performing the computer program instructions Ground is produced according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, special purpose computer, Computer network or other programmable devices.The computer instruction can store in a computer-readable storage medium, or Person is transmitted from a computer-readable recording medium to another computer-readable recording medium, for example, the computer instruction Wired (such as coaxial cable, optical fiber, digital subscriber can be passed through from a web-site, computer, server or data center Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or data Center is transmitted.The computer-readable recording medium can be any usable medium that computer can access or wrap The data storage devices such as the server that is integrated containing one or more usable mediums, data center.The usable medium can be magnetic Property medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disc Solid State Disk (SSD)) etc.
It should be noted that herein, term " including ", " including " or its any other variation are intended to non-row Its property includes, so that process, method, article or equipment including a series of elements not only include those key elements, and And the other key elements being not explicitly listed are further included, or further include as this process, method, article or equipment institute inherently Key element.In the absence of more restrictions, the key element limited by sentence " including one ... ", it is not excluded that including institute State in process, method, article or the equipment of key element that also there are other identical element.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Profit requires rather than described above limits, it is intended that all in the implication and scope of the equivalency of claim by falling Change is included in the present invention.Any reference numeral in claim should not be considered as to the involved claim of limitation.

Claims (10)

1. a kind of method for network access, applied to network access system, it is characterised in that the network access system includes user Terminal, the network access equipment being connected with the user terminal communication and the intelligence with network access equipment communication connection Equipment, the described method includes:
The user terminal responds user's operation, and the first request of addition smart machine, institute are sent to the network access equipment Stating the first request includes the target device type of addition in need;
The network access equipment requests to generate configuration information according to described first, and according to preset configuration sequence by the configuration Information coding is cycled through the UDP multicast packets after the target MAC (Media Access Control) address of UDP multicast packets, wherein, the pre- establishing Putting sequence includes control sequence and data sequence, is spaced first time period between each control sequence, between each data sequence Second time period is spaced, was spaced for the 3rd period between control sequence and data sequence, it is total that the control sequence includes data Length, Password Length, SSID check codes and cryptographic check code, the data sequence include SSID, password and random code;
The smart machine from control sequence described in each channel-monitoring, there are the control on some channel is listened to successively During sequence processed, which is determined as the destination channel with the channel communication of the network access equipment, and believe by the target Road receives the control sequence and the data sequence;
The smart machine calculates corresponding data check value according to the data sequence, and the data check value includes SSID schools Test value and cryptographic check value;
The SSID check values and the SSID check codes are verified, and by the cryptographic check value and the cryptographic check Code is verified, if verified successfully, parsing obtains configuration information from the MAC Address, and is based on the configuration information Network insertion request is sent to the network access equipment, the equipment of the smart machine is included in the network insertion request Type and the random code;
The network access equipment asks to set the device type of the smart machine and the target according to the network insertion Standby type is matched, and being sent after successful match to the smart machine allows access information;
The smart machine sent after the permission access information is received to the network access equipment include it is described with The udp broadcast bag of machine code, to complete network insertion.
2. method for network access according to claim 1, it is characterised in that the network access equipment is according to described first Configuration information is requested to generate, including:
The SSID information and encrypted message that can access network are obtained according to the request, so as to generate the configuration information.
3. method for network access according to claim 1, it is characterised in that it is described by the configuration information according to pre- establishing Sequential coding is put in the target MAC (Media Access Control) address of UDP multicast packets, including:
By low 23 of low 23 bit mapping of UDP multicast ip address to data link layer target MAC (Media Access Control) address, and match somebody with somebody confidence by described in Breath is according to preset configuration sequential coding in low 23 of the target MAC (Media Access Control) address.
4. according to the method for network access described in claim 1, it is characterised in that the smart machine is successively from each channel-monitoring The control sequence, when there are the control sequence on listening to some channel, which is determined as and the network After the destination channel of the channel communication of access device, the method further includes:
For each channel, judge whether the channel listens to control sequence in preset time period;
When the judgment result is No, continue to monitor the control sequence into next channel, until listening to some channel On when there are the control sequence, which is determined as the destination channel with the channel communication of the network access equipment.
5. method for network access according to claim 1, it is characterised in that described that the control is received by the destination channel After sequence processed and the data sequence, the method further includes:
According to the subsequently received UDP multicast packets of the mac address filter.
6. method for network access according to claim 1, it is characterised in that it is described by the SSID check values with it is described SSID check codes are matched, and after the cryptographic check value and the cryptographic check code are verified, the method is also Including:
If verification failure, receives control sequence and data sequence in the destination channel again.
7. method for network access according to claim 1, it is characterised in that the smart machine is receiving the permission After sending the udp broadcast bag for including the random code to the network access equipment after access information, the method is also wrapped Include:
The network access equipment sends confirmation letter after the udp broadcast bag of the random code is received, to the user terminal Breath, to confirm that the smart machine adds successfully.
8. method for network access according to claim 1, it is characterised in that the smart machine is receiving the permission After sending the udp broadcast bag for including the random code to the network access equipment after access information, the method is also wrapped Include:
The network access equipment stops sending UDP multicast packets.
9. method for network access according to claim 1, it is characterised in that the network access equipment is according to the request Generate configuration information, and by the configuration information according to preset configuration sequential coding in the target MAC (Media Access Control) address of UDP multicast packets simultaneously After the UDP multicast packets are cycled through, the method further includes:
The user terminal responds user's operation, and send stopping transmission UDP multicast packets to the network access equipment second please Ask;
The network access equipment stops sending UDP multicast packets according to the described second request.
10. a kind of network access system, it is characterised in that the network access system includes user terminal and the user is whole Hold the network access equipment of communication connection and the smart machine with network access equipment communication connection;
The user terminal, please to the first of network access equipment transmission addition smart machine for responding user's operation Ask, first request includes the target device type of addition in need;
The network access equipment, for requesting to generate configuration information according to described first, and according to preset configuration sequence by institute Configuration information coding is stated to be cycled through the UDP multicast packets after the target MAC (Media Access Control) address of UDP multicast packets, wherein, it is described Preset configuration sequence includes control sequence and data sequence, and first time period, each data sequence are spaced between each control sequence Second time period is spaced between row, was spaced for the 3rd period between control sequence and data sequence, the control sequence includes Total length of data, Password Length, SSID check codes and cryptographic check code, the data sequence include SSID, password and with Machine code;
The smart machine, for from control sequence described in each channel-monitoring, there are successively on some channel is listened to During the control sequence, which is determined as the destination channel with the channel communication of the network access equipment, and pass through this Destination channel receives the control sequence and the data sequence;
The smart machine, is additionally operable to calculate corresponding data check value, the data check value bag according to the data sequence Include SSID check values and cryptographic check value;
The smart machine, is additionally operable to be verified the SSID check values and the SSID check codes, and by the password Check value is verified with the cryptographic check code, if verified successfully, is parsed from the MAC Address and is obtained matching somebody with somebody confidence Breath, and network insertion request is sent to the network access equipment based on the configuration information, wrapped in the network insertion request Include the device type of the smart machine and the random code;
The network access equipment, be additionally operable to according to the network insertion request by the device type of the smart machine with it is described Target device type is matched, and being sent after successful match to the smart machine allows access information;
The smart machine, is additionally operable to network access equipment transmission include after the permission access information is received The udp broadcast bag of the random code, to complete network insertion.
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 true CN108040355A (en) 2018-05-15
CN108040355B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109510743A (en) * 2018-11-16 2019-03-22 中山市力泰电子工业有限公司 A kind of mobile grouping method of 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
CN109714742A (en) * 2019-02-19 2019-05-03 深圳市和盈互联科技有限公司 A kind of Internet of Things Wi-Fi module network self-adapting switching method
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
CN113329349A (en) * 2021-06-17 2021-08-31 西安超越申泰信息科技有限公司 Communication method between mobile terminal and intelligent device in Wi-Fi mode and mobile terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100303236A1 (en) * 2007-08-31 2010-12-02 Nokia Corporation Method and apparatus for propagating encryption keys between wireless communication devices
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100303236A1 (en) * 2007-08-31 2010-12-02 Nokia Corporation Method and apparatus for propagating encryption keys between wireless communication devices
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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109510743A (en) * 2018-11-16 2019-03-22 中山市力泰电子工业有限公司 A kind of mobile grouping method of intelligent sound box system
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
CN109714742A (en) * 2019-02-19 2019-05-03 深圳市和盈互联科技有限公司 A kind of Internet of Things Wi-Fi module network self-adapting switching method
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
CN113329349A (en) * 2021-06-17 2021-08-31 西安超越申泰信息科技有限公司 Communication method between mobile terminal and intelligent device in Wi-Fi mode and mobile terminal

Also Published As

Publication number Publication date
CN108040355B (en) 2020-09-25

Similar Documents

Publication Publication Date Title
CN108040355A (en) Method for network access and system
US10165446B2 (en) Methods and systems for enabling communication with a receiver device in a network
CN112217831B (en) Information interaction method, device and equipment for Internet of things equipment
US10542458B2 (en) Data communication via data packet headers
US11758399B2 (en) Wireless local area network configuration using probe request frame having authentication information
US11943695B2 (en) Network channel switching method and apparatus, device, and storage medium
US11765577B2 (en) Identity obscuration for a wireless station
CN111459433B (en) Screen transmission method, device and storage medium
KR102221021B1 (en) Electronic device and method for processing packet in internet protocol based network
CN107995036A (en) Data transmission method, device, server and readable storage medium storing program for executing
US8630271B2 (en) Communication device, communication system, communication method and communication program
CN104427501A (en) Network access method, device and system
CN107222372A (en) A kind of method for sending information and equipment
US11432140B2 (en) Multicast service processing method and access point
CN104619040A (en) Method and system for quickly connecting WIFI equipment
WO2021228132A1 (en) Information sending method, resource processing method, apparatus, and electronic device
US20230066942A1 (en) Information transmission method and apparatus, and electronic device
KR20150142218A (en) Electronic device and method for connecting to network
CN113840266A (en) Bluetooth pairing method, device, system, electronic equipment and storage medium
WO2017005163A1 (en) Wireless communication-based security authentication device
CN104853447B (en) A kind of data information processing method and device
KR20150054100A (en) Method for processing data and an electronic device thereof
CN110035436A (en) Information monitoring method, device, equipment and storage medium
CN115150075A (en) Method, apparatus, device and medium for data communication based on shared secret key
CN107548058A (en) Equipment cut-in method and intelligent terminal

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.