[go: up one dir, main page]

CN102026263B - Wireless communication network connection method - Google Patents

Wireless communication network connection method Download PDF

Info

Publication number
CN102026263B
CN102026263B CN 201010580835 CN201010580835A CN102026263B CN 102026263 B CN102026263 B CN 102026263B CN 201010580835 CN201010580835 CN 201010580835 CN 201010580835 A CN201010580835 A CN 201010580835A CN 102026263 B CN102026263 B CN 102026263B
Authority
CN
China
Prior art keywords
wireless network
network
cordless communication
communication network
address
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.)
Expired - Fee Related
Application number
CN 201010580835
Other languages
Chinese (zh)
Other versions
CN102026263A (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.)
SUZHOU ACQUITRONIX INFORMATION TECHNOLOGY CO., LTD.
Original Assignee
SUZHOU EJITEC 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 SUZHOU EJITEC Co Ltd filed Critical SUZHOU EJITEC Co Ltd
Priority to CN 201010580835 priority Critical patent/CN102026263B/en
Publication of CN102026263A publication Critical patent/CN102026263A/en
Application granted granted Critical
Publication of CN102026263B publication Critical patent/CN102026263B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a wireless communication network connection method, which comprises the following steps of: arranging all wireless network card interfaces that can be connected, and wireless network connection parameters in a wireless network connection device; connecting the wireless network connection device to equipment and powering on, inputting a network name and a password, and searching for the wireless network card interfaces to which the equipment can be connected; listing all found wireless network card interfaces to which the equipment can be connected; selecting a wireless network card interface from the wireless network card interface list, and detecting the connect ability of the wireless network card interface; if the wireless communication network can be connected, judging whether the wireless communication network is connected; if so, exiting and returning; otherwise, performing wireless communication network connection if no wireless communication network connection exists. Through the method, the wireless network connection of the equipment is more convenient and quick, and the using perception of users is enhanced.

Description

A kind of cordless communication network method of attachment
Technical field
The present invention relates to the wireless network communication technique field, particularly relate to a kind of cordless communication network method of attachment.
Background technology
Wireless technology, for example WLAN (Wireless Local Area Network), Bluetooth, GPRS (General Packet Radio Service), GSM (Global System for Mobile communications) and IrDa (Infrared Data) provide service under different environment.Though WLAN supports than the higher speed of Bluetooth and longer propagation distance, it also needs more expense and power consumption bigger.Though GPRS is slower than Bluetooth and WLAN, can be used for mobile technology.Although they there are differences, or other reasons, the equipment with multiple radio function can fully utilize them.For example, according to the location input of GPS module, equipment can switch to WLAN more cheap the Internet bar with the GPRS of network connection from the road pellucidly.Mobile phone can be communicated by letter with rhythm of the heart monitor by Bluetooth, when patient's rhythm of the heart exceeds certain limit, just can send alarm Xiang the doctor by GSM.
At present, people pass through at the various wireless network jockeys of development and Design (as Linux wireless network fastening means), it can be stored in PCMCIA, Compact Flash (CF) card, USB storage, and is connected the wireless connections that equipment room is realized in the execution back with equipment by PCMCIA, CF or USB interface.
In the prior art, in the various wireless network jockeys, relatively Chang Yong Linux wireless network fastening means has:
1) network manager of GNOME Network Manager(network object model environment)
GNOME (abbreviation of GNU Network Object Model Environment, network object model environment) is a kind of linux desktop system.
GNOME Network Manager is a kind of outstanding fastening means in the Linux wireless network fastening means, generally reside in the taskbar of Gnome, simultaneously it breaks away from Gnome and also can move, for example, under the Enlightenment window manager, also can move, import nm-applet in the station command window, it will be connected to the good radio access point of configured in advance.
But, during Gnome Network Manager configuration wireless connections, need enter Gnome, opening Gnome Network Manager can be configured, and Gnome Network Manager to require be to move in graphical interfaces, can not support ad hoc mode.
2)Wicd
Wicd is wired, a wireless network connection manager that operates under the (SuSE) Linux OS, and Wicd may operate under many Linux distribution versions and the many desktop environment/window managers.The same with Gnome Network Manager, wicd can also can dispose spider lines by configuring wireless network, also supports most of encryption methods.
But wicd need use graphical interfaces, and the scope of application is restricted, and can't use in embedded system.
In sum, existing wireless network jockey is as Linux wireless network fastening means, all need specific operating environment, and Linux wireless network fastening means is when configuring wireless network, and wireless network connects needs pre-configured parameter, has the inconvenience of following operation:
1) user often will import a large amount of parameters, revises a large amount of configuration documentations, and the implication of basic these parameters of there is no telling of domestic consumer, so correct configuration network.
2) can not provide automatic reconnect function, after disconnecting as network, must manually connect; Though perhaps can reconnect automatically, need installation procedure, and can occur operating inconvenience during installation procedure, do not exist and can not dispose connection as the tool storage room that relies on.
Summary of the invention
The object of the present invention is to provide a kind of cordless communication network method of attachment, it makes the equipment wireless network connection convenient, quick, improves the excellent perception degree that the user uses.
A kind of cordless communication network method of attachment for realizing that the object of the invention provides comprises at least two equipment, and described equipment has a wireless network card interface and/or cordless communication network device at least; Also comprise a wireless network jockey, described wireless network jockey is linked into a wherein equipment by the wireless network card interface of described equipment, and by inserting described cordless communication network device, realize that described at least two equipment connect by cordless communication network; It comprises the following steps:
Step S100 arranges all wireless network card interfaces that can connect in the wireless network jockey, and wireless network connects parameter; Among the step S100, described wireless network connects parameter and comprises:
The gateway ip address of correspondence under the wireless network card interface normal mode of operation; The gateway ip address of correspondence under the debugging mode; The length of one's sleep M; Stand-by period N; Connectivity detects number of times K; The number of times X of PING wireless network; Signal strength values Y etc.;
Wherein, corresponding gateway ip address is 192.168.1.1 under the described debugging mode;
Stand-by period N is 2~4 seconds;
The length of one's sleep, M was 8~11 seconds;
It is 2~10 times that connectivity detects number of times K;
The number of times X of PING wireless network is 2~4 times;
Signal strength signal intensity Y is 55~65;
Step S200 is connected to equipment and powers at the wireless network jockey, behind fan-in network name and the password, searches the wireless network card interface that described equipment can connect;
Step S300 will find out all wireless network card interface lists that described equipment can connect;
Step S400 selects a wireless network card interface in the wireless network card interface list, detects the connectivity of wireless network card interface;
Step S500 after detecting cordless communication network and can connecting, judges whether cordless communication network connects; If connect, then withdraw from and return; Otherwise, when not having cordless communication network to connect, carry out cordless communication network and connect;
Wherein, step S400 detects the connectivity of wireless network card interface, comprises the steps:
Step S410 after selecting the wireless network card interface, according to corresponding IP address, judges the mode of operation of cordless communication network; If normal mode of operation then forwards step S420 to; Otherwise, judge with after the debug address of presetting is consistent, forward step S500 to;
Step S420 if the mode of operation of equipment is normal mode of operation, then searches and obtains the device gateway IP address of corresponding network;
When searching the device gateway IP address of corresponding network, if search successfully, then corresponding cordless communication network has connectivity, forwards step S430 to; Otherwise corresponding cordless communication network does not have connectivity, forwards step S450 to;
Step S430, if obtain the gateway ip address success, corresponding cordless communication network has connectivity, namely network can be used, and then continuous probe is carried out in corresponding device gateway IP address;
The IP address of continuous probe device gateway X time; If survey the number of times of logical device gateway less than X time, then wireless network can not connect, and does not have availability, forwards step S450 to; Otherwise the number of times of surveying the IP address of logical device gateway equals X time, and wireless network has connectivity, has availability, forwards step S440 to;
Step S440, if the logical gateway success of continuous probe, then wireless network has connectivity, carries out the detection of signal strength signal intensity;
Carry out the detection of signal strength signal intensity, if signal strength signal intensity then a little less than the network signal, does not reach preset strength less than-YdBm, do not have connectivity, forward step S450 to; Otherwise network signal reaches preset strength, has connectivity, forwards step S500 to;
Step S450, if cordless communication network can not connect communication, namely it does not have connectivity, then judges whether to reach connectivity and detects number of times K;
Detect number of times if reach connectivity, then sleep M after second, return step S420, carry out whether available detection of network connection next time;
Step S460, reached connectivity detection number of times K if connectivity detects number of times, then this cordless communication network does not have connectivity, returns step S300, from the wireless network card interface, select another wireless network card interface to detect, until there not being the wireless network card interface to detect.
More preferably, described cordless communication network method of attachment also comprises the steps:
Step S600 behind time of advent cordless communication network connect hours T, returns step S400, detects the connectivity of wireless network card interface again; Wherein, time T 〉=120 second.
More preferably, among the described step S200, search the wireless network card interface that described equipment can connect, comprise the steps:
Step S210 searches available wireless network card interface, judges whether that success finds the wireless network card interface that can connect, and searches the IP address interface name of the available wireless communication network interface of output;
Step S220 searches the IP address interface name of output, obtains the IP address by the character string filter method.
More preferably, among the described step S500, carry out cordless communication network and connect, comprise the steps:
Step S510 starts wireless network card;
Step S520 after starting wireless network card and cordless communication network, according to mode of operation and the wireless network IP address of wireless network, searches the wireless network of coupling, finishes network connection.
The invention has the beneficial effects as follows: cordless communication network method of attachment of the present invention, it is by interface detecting and configuration interface, and the wireless network of finishing equipment connects, and makes the equipment wireless network connection convenient, quick, need not user intervention, improve the excellent perception degree that the user uses.
Description of drawings
Fig. 1 is embodiment of the invention cordless communication network method of attachment flow chart;
Fig. 2 is that step S400 detects cordless communication network connectivity flow chart among Fig. 1;
Fig. 3 is that step S500 carries out cordless communication network connection flow chart among Fig. 1.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, cordless communication network method of attachment of the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
As shown in Figure 1, as a kind of embodiment, the wireless network connecting method of the embodiment of the invention comprises at least two equipment, and described equipment has a wireless network card interface and/or cordless communication network device at least; Also comprise a wireless network jockey, described wireless network jockey is linked into described equipment by the wireless network card interface of described equipment, and by inserting described cordless communication network device, realizes that described at least two equipment connect by cordless communication network.
Described equipment can be personal computer, also can be embedded device, or other have a wireless network card interface and/or a cordless communication network device can be by the independent equipment that data are handled of DSP or single-chip microcomputer.
Described wireless network card interface can be USB interface, also can be CF clamping mouth, or the network interface of other memory devices;
Described cordless communication network device, it can be the device that has wireless communication module, as gsm communication module, WIFI communication module, bluetooth (Bluetooth) communication module etc., it can be connected to the equipment that other have the radio communication device of same kind by default cordless communication network.
Described wireless network jockey, can be that PCMCIA, Compact Flash (CF) card, USB dish etc. are various can insert described equipment by the relevant device interface, and the wireless communication module that can connect at the wireless network that the back described device of execution batch processing (automatically performing) that powers on is stored, the storage device that can connect by cordless communication network between feasible at least two equipment.
As a kind of embodiment, as shown in Figure 1, the wireless network connecting method of the embodiment of the invention comprises the steps:
Step S100 arranges all wireless network card interfaces that can connect in the wireless network jockey, and wireless network connects parameter;
Described wireless network connects parameter and comprises gateway ip address corresponding under the wireless network card interface normal mode of operation, corresponding gateway ip address under the debugging mode, the length of one's sleep M, stand-by period N, connectivity detects number of times K, the number of times X of PING wireless network, signal strength values Y etc.;
Preferably, corresponding gateway ip address is 192.168.1.1 under the described debugging mode;
Stand-by period N is 2~4 seconds (s);
The length of one's sleep, M was 8~11 seconds (s);
It is 2~10 times that connectivity detects number of times K;
The number of times X of PING wireless network is 2~4 times;
Signal strength signal intensity Y is 55~65.
Step S200 is connected to equipment and powers at the wireless network jockey, behind fan-in network name and the password, searches the wireless network card interface that described equipment can connect;
If there is not attachable wireless network card interface (also claiming wireless communication network interface), then stand-by period N searches attachable wireless network card interface after second again.
Step S300 will find out all wireless network card interface lists that described equipment can connect;
Step S400 selects a wireless network card interface in the wireless network card interface list, detects the connectivity of wireless network card interface, namely detects corresponding cordless communication network and whether can connect communication;
When whether the detection cordless communication network can connect communication, the device gateway of the cordless communication network that connects according to this interface also connects detection (PING) and signal strength condition etc., judge its connectivity, finally detect the availability of cordless communication network;
Step S500 can connect detecting cordless communication network, namely wireless network connect available after, judge whether cordless communication network connects; If connect, then withdraw from and return; Otherwise, when not having cordless communication network to connect, carry out cordless communication network and connect.
Preferably, described wireless network connecting method also comprises the steps:
Step S600 behind time of advent cordless communication network connect hours T, returns step S400, detects the connectivity of wireless network card interface again.
Preferably, described time T 〉=120 second (s).
In step S200, search the wireless network card interface that described equipment can connect, comprise the steps:
Step S210 searches available wireless network card interface, judges whether that success finds the wireless network card interface that can connect, and searches the IP address interface name of the available wireless communication network interface of output;
As a kind of embodiment, can utilize iwconfig order and ifconfig order can search available wireless network card interface.
By the iwconfig command lookup, judge whether to obtain wireless network card interface name; If can obtain, then corresponding wireless network can connect, and namely the wireless network card interface can be used; Otherwise, can't obtain the IP address, then corresponding cordless communication network can not connect, and namely the wireless network card interface is unavailable;
In the LINUX system, can search all wireless network card interfaces by utilizing the iwconfig order.Eth1 for example.
Figure GDA00003193968000061
Figure GDA00003193968000071
As a kind of embodiment, the wireless network card interface that the iwconfig command lookup can be used is as follows:
Step S220 searches the IP address interface name of output, obtains the IP address by the character string filter method.
As a kind of embodiment, the IP address interface name with ifconfig command lookup output obtains the IP address by the character string filter method, is achieved as follows:
ip=$(ifconfig$IFACE|grep"inet?addr"|head-n1|awk-F:'{print$2}'|awk'{print$1}')
Above Ming Ling data result: ip=192.168.11.141
As shown in Figure 2, in step S400, detect the connectivity of wireless network card interface, comprise the steps:
Step S410 after selecting the wireless network card interface, according to corresponding IP address, judges the mode of operation of cordless communication network; If normal mode of operation then forwards step S420 to; Otherwise, judge with after the debug address of presetting is consistent, forward step S500 to;
According to corresponding IP address, the mode of operation of judging corresponding cordless communication network is normal mode of operation or debugging mode.
As a kind of embodiment, as described in step S100, set in advance an IP address, 192.168.1.1 for example, this address can be called debug address.
The IP address and the debug address that successfully obtain are compared, if identical, then would be debugging mode; Otherwise, be normal mode of operation.
Step S420 if the mode of operation of equipment is normal mode of operation, then searches and obtains the device gateway IP address of corresponding network;
When searching the device gateway IP address of corresponding network, if search successfully, then corresponding cordless communication network has connectivity, forwards step S430 to; Otherwise corresponding cordless communication network does not have connectivity, forwards step S450 to;
In the embodiment of the invention, as a kind of embodiment, by route command lookup and the device gateway IP address that obtains corresponding network.
route|grep-q?default|awk'{print$2}'
This order is found default route by the mode of searching routing table, i.e. gateway IP.
Step S430, if obtain the gateway ip address success, corresponding cordless communication network has connectivity, namely network can be used, and then continuous probe (PING) is carried out in corresponding device gateway IP address;
In the embodiment of the invention, as a kind of embodiment, the IP address of continuous probe (PING) device gateway X time; If survey the number of times of logical device gateway less than X time, then wireless network can not connect, and does not have availability, forwards step S450 to; Otherwise the number of times of surveying the IP address of logical device gateway equals X time, and wireless network has connectivity, has availability, forwards step S440 to;
PING (Packet Internet Grope, the Internet packets survey meter) is for the program of test network connection amount.Ping sends an ICMP echo request message and whether receives desirable ICMP(Internet Control Message Protocol, Internet Control Message Protocol to destination and report) Echo Reply.It is to check the whether order of unobstructed or network connection speed of network.
Step S440, if the logical gateway success of continuous probe (PING), then wireless network has connectivity, carries out the detection of signal strength signal intensity;
As a kind of embodiment, in the embodiment of the invention, carry out the detection of signal strength signal intensity, if signal strength signal intensity then a little less than the network signal, does not reach preset strength less than-YdBm, do not have connectivity, forward step S450 to; Otherwise network signal reaches preset strength, has connectivity, forwards step S500 to.
As a kind of embodiment, in the embodiment of the invention, utilize the Iwlist order to realize that the signal strength signal intensity (Signal Level) that obtains the current wireless network detects;
For example: iwlist eth1peers//eth1 is the wireless network card interface
The result is as follows:
00:1D:73:B1:FC:3D:Quality:100/100Signal?level:-41dBm?Noise?level:-92dBm
00:23:EA:7E:CD:90:Quality:7/100Signal?level:-87dBm?Noise?level:-82dBm
00:24:13:0B:3F:A0:Quality:63/100Signal?level:-65dBm?Noise?level:-92dBm
00:1B:11:5B:67:34:Quality:52/100Signal?level:-69dBm?Noise?level:-92dBm
If the signal strength signal intensity of input is greater than-Y dBm, then this wireless network can be strong, and performance is good, forwards step S500 to; , otherwise described wireless network performance is bad, returns again and detects.
Step S450, if cordless communication network can not connect communication, namely it does not have connectivity, then judges whether to reach connectivity and detects number of times K;
Detect number of times if reach connectivity, then sleep M after second, return step S420, carry out whether available detection of network connection next time;
Step S460, reached connectivity detection number of times K if connectivity detects number of times, then this cordless communication network does not have connectivity, returns step S300, from the wireless network card interface, select another wireless network card interface to detect, until there not being the wireless network card interface to detect.
As shown in Figure 3, among the described step S500, carry out cordless communication network and connect, comprise the steps:
Step S510 starts wireless network card;
As a kind of embodiment, in the embodiment of the invention, utilize Ifconfig eth1up order to start wireless network card.
Step S520 after starting wireless network card and cordless communication network, according to mode of operation and the wireless network IP address of wireless network, searches the wireless network of coupling, finishes network connection.
According to wireless network IP address, search the wireless network of coupling; If search the wireless network less than coupling, then return step S510; If find the wireless network of coupling, then carry out the configuration of network;
Preferably, described step S520 comprises the steps:
Step S521 when the mode of operation of wireless network is normal mode of operation, then according to wireless network IP address, finds the wireless network of coupling, resolves network parameter, carries out network configuration, finishes network connection;
As a kind of embodiment, in the embodiment of the invention, described step S521 comprises the following steps:
Step S5211 mates according to network name, then a series of AP of coupling is decomposed into the one group character string relevant with AP to a series of character strings according to keyword; In this group character string, obtain the signal strength signal intensity of AP, according to signal strength signal intensity these character strings are sorted then; Analyze encryption method then, according to encryption method, select the configuration network parameter, carry out network configuration;
As a kind of embodiment, by iwlist or wpa_cli tool scans, the wireless network in the scanning one's respective area parses a set of network parameters, is achieved as follows:
Figure GDA00003193968000101
Figure GDA00003193968000111
In the embodiment of the invention, mate according to network name earlier, then a series of AP of coupling are decomposed into the one group character string relevant with AP to a series of character strings according to keyword Cell xx; In this group character string, obtain the signal strength signal intensity of AP, according to signal strength signal intensity these character strings are sorted then; Analyze encryption method then, according to encryption method, select the configuration network parameter, carry out network configuration.
Usually, the wireless network cipher mode is divided into three kinds: do not have and encrypt WEP, WPA (WPA2)
WPA2 is the upgrade version of WPA.
Wherein WPA/WPA2 comprises certification mode again, and one has 2 kinds: PSK, EAP
Certification mode has defined the client and server end and how to have linked up password.
PSK: licensing mode in advance, Pre-Share Key.
EAP: expansion licensing mode.Extensible?Authentication?Protocol。The general large enterprise that is used for.
Also have cipher mode, be divided into three kinds: WEP, TKIP, AES
The result who resolves will analyze current cipher mode, authentication mode, cryptographic algorithm exactly.
For example, to a group of above-mentioned string matching network name " ejitec ", the result who resolves
Figure GDA00003193968000121
The content of the configuration file that arrangement is come out is wpa_supplicant.conf
Figure GDA00003193968000122
Since parsed the configuration information that all need, carried out the configuration of cordless communication network according to configuration information.
As a kind of embodiment, describedly carry out the configuration of cordless communication network according to configuration information, be achieved as follows: wpa_supplicant-i$IFACE-B-c wpa_supplicant.conf
As a kind of embodiment, in the embodiment of the invention, utilizing WPA(Wi-Fi Protected Access, Wi-Fi Protected Access) instrument carries out network configuration, is achieved as follows:
The main order of wpa_supplicant//network configuration.
Killall wpa_supplicant//kill process
Sleep2//sleep 2 seconds
Ifconfig eth1up//startup network interface card
Sleep2//sleep 2 seconds
Wpa_supplicant-i eth1-B-c//configuration file
Step S5212 according to IP distribution state and user's fan-in network name and password, upgrades routing table, finishes cordless communication network and connects;
If static IP then directly according to the IP address that finds, upgrades routing table, finish cordless communication network and connect;
If dynamic IP then according to DHCP mode distributing IP address, is upgraded routing table, finish cordless communication network and connect.
If the pattern of dynamic assignment IP address, then by equipment (client) by DHCP application IP address, obtain the IP address after, upgrade routing table, finish cordless communication network and connect.
DynamicHost arranges agreement (Dynamic Host Configuration Protocol, DHCP) be the procotol of a local area network (LAN), the work of use udp protocol mainly contains two purposes: give the internal network keeper as the means of all computers being made central management to the user for internal network or Internet service provider's automatic IP address allocation.
As a kind of embodiment, application IP address, and upgrade routing table, be achieved as follows:
Dhclient eth1//application obtains the IP address.
Route add default gateway SERVER_IP eth1//renewal routing table.
Wherein, SERVER_IP is for ordering the character string of output to get by resolving ifconfig.
Eth1 is the interface name.
For example
route?add?default?gateway192.168.11.1eth1
Step S522 when if the mode of operation of wireless network is debugging mode, then according to wireless network IP address, seeks the strongest point to point network of signal, and network name is resolved, and after successfully parsing network name, finishes wireless communication and connect.
As described in step S100, default IP address is 192.168.1.1, and under debugging mode, equipment can only be operated under point-to-point (Ad-Hoc) pattern.
Under this pattern, do not need WAP (wireless access point) (Access Point, AP) participate in, two radio node direct communications, manual assignment must be ordered by ifconfig in the IP address of these two radio nodes, when these two nodes are configured to ad hoc mode, and set after the IP address, just can direct communication.
During the IP address setting, two radio nodes are at the same network segment, and for example the IP address of one of them is set to 192.168.1.1, and then another can be set to 192.168.1.2.
As long as at the same network segment, and they are set to " point-to-point " pattern, and according to existing technology as can be known, two radio nodes just can intercom mutually.
The embodiment of the invention wireless network connected system and device and method, it is by interface detecting and configuration interface, and the wireless network of finishing equipment connects, and makes the equipment wireless network connection convenient, quick, need not user intervention, improve the excellent perception degree that the user uses.It has following advantage: 1) restart when hotspot, perhaps swinging of signal regularly reconnects automatically.2) can operate in the embedded environment simultaneously or in the common computer.3) 2 kinds of operational modes, general mode and debugging modes are arranged.In the general mode, the user-specified network name, the input password can be realized from being dynamically connected network.4) in the time of in operating in debugging mode, wireless network card enters ad hoc mode (Ad-Hoc) automatically, and it is the strongest wireless signal of search ambient signals automatically, if also be ad hoc mode, then connects automatically; Under debugging mode, wireless network automatically disposes, and network name and password do not need input.Particularly under the situation that the user knows nothing surrounding environment, two wireless devices can pass through debugging mode, and are directly interconnected, need not any configuration, very convenient.
Should be noted that at last that obviously those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these revise and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification.

Claims (8)

1. a cordless communication network method of attachment comprises at least two equipment, and described equipment has a wireless network card interface and/or cordless communication network device at least; Also comprise a wireless network jockey, described wireless network jockey is linked into a wherein equipment by the wireless network card interface of described equipment, and by inserting described cordless communication network device, realize that described at least two equipment connect by cordless communication network; It is characterized in that, comprise the following steps:
Step S100 arranges all wireless network card interfaces that can connect in the wireless network jockey, and wireless network connects parameter; Among the step S100, described wireless network connects parameter and comprises:
The gateway ip address of correspondence under the wireless network card interface normal mode of operation; The gateway ip address of correspondence under the debugging mode; The length of one's sleep M; Stand-by period N; Connectivity detects number of times K; The number of times X of PING wireless network; Signal strength values Y;
Wherein, corresponding gateway ip address is 192.168.1.1 under the described debugging mode;
Stand-by period N is 2~4 seconds;
The length of one's sleep, M was 8~11 seconds;
It is 2~10 times that connectivity detects number of times K;
The number of times X of PING wireless network is 2~4 times;
Signal strength signal intensity Y is 55~65;
Step S200 is connected to equipment and powers at the wireless network jockey, behind fan-in network name and the password, searches the wireless network card interface that described equipment can connect;
Step S300 will find out all wireless network card interface lists that described equipment can connect;
Step S400 selects a wireless network card interface in the wireless network card interface list, detects the connectivity of wireless network card interface;
Step S500 after detecting cordless communication network and can connecting, judges whether cordless communication network connects; If connect, then withdraw from and return; Otherwise, when not having cordless communication network to connect, carry out cordless communication network and connect;
Wherein, step S400 detects the connectivity of wireless network card interface, comprises the steps:
Step S410 after selecting the wireless network card interface, according to corresponding IP address, judges the mode of operation of cordless communication network; If normal mode of operation then forwards step S420 to; Otherwise, judge with after the debug address of presetting is consistent, forward step S500 to;
Step S420 if the mode of operation of equipment is normal mode of operation, then searches and obtains the device gateway IP address of corresponding network;
When searching the device gateway IP address of corresponding network, if search successfully, then corresponding cordless communication network has connectivity, forwards step S430 to; Otherwise corresponding cordless communication network does not have connectivity, forwards step S450 to;
Step S430, if obtain the gateway ip address success, corresponding cordless communication network has connectivity, namely network can be used, and then continuous probe is carried out in corresponding device gateway IP address;
The IP address of continuous probe device gateway X time; If survey the number of times of logical device gateway less than X time, then wireless network can not connect, and does not have availability, forwards step S450 to; Otherwise the number of times of surveying the IP address of logical device gateway equals X time, and wireless network has connectivity, has availability, forwards step S440 to;
Step S440, if the logical gateway success of continuous probe, then wireless network has connectivity, carries out the detection of signal strength signal intensity;
Carry out the detection of signal strength signal intensity, if signal strength signal intensity then a little less than the network signal, does not reach preset strength less than-YdBm, do not have connectivity, forward step S450 to; Otherwise network signal reaches preset strength, has connectivity, forwards step S500 to;
Step S450, if cordless communication network can not connect communication, namely it does not have connectivity, then judges whether to reach connectivity and detects number of times K;
Detect number of times if reach connectivity, then sleep M after second, return step S420, carry out whether available detection of network connection next time;
Step S460, reached connectivity detection number of times K if connectivity detects number of times, then this cordless communication network does not have connectivity, returns step S300, from the wireless network card interface, select another wireless network card interface to detect, until there not being the wireless network card interface to detect.
2. cordless communication network method of attachment according to claim 1 is characterized in that, also comprises the steps:
Step S600 behind time of advent cordless communication network connect hours T, returns step S400, detects the connectivity of wireless network card interface again; Wherein, time T 〉=120 second.
3. cordless communication network method of attachment according to claim 1 and 2 is characterized in that, among the described step S200, searches the wireless network card interface that described equipment can connect, and comprises the steps:
Step S210 searches available wireless network card interface, judges whether that success finds the wireless network card interface that can connect, and searches the IP address interface name of the available wireless communication network interface of output;
Step S220 searches the IP address interface name of output, obtains the IP address by the character string filter method.
4. cordless communication network method of attachment according to claim 1 and 2 is characterized in that, among the described step S500, carries out cordless communication network and connects, and comprises the steps:
Step S510 starts wireless network card;
Step S520 after starting wireless network card and cordless communication network, according to mode of operation and the wireless network IP address of wireless network, searches the wireless network of coupling, finishes network connection.
5. cordless communication network method of attachment according to claim 4 is characterized in that, described step S520 comprises the steps:
Step S521 when if the mode of operation of wireless network is normal mode of operation, then according to wireless network IP address, finds the wireless network of coupling, resolves network parameter, carries out network configuration, finishes network connection;
Step S522 when if the mode of operation of wireless network is debugging mode, then according to wireless network IP address, seeks the strongest point to point network of signal, and network name is resolved, and after successfully parsing network name, finishes wireless communication and connect.
6. cordless communication network method of attachment according to claim 5 is characterized in that, described step S521 comprises the following steps:
Step S5211 mates according to network name, then a series of AP(access points of coupling) according to keyword a series of character strings are decomposed into the one group character string relevant with AP; In this group character string, obtain the signal strength signal intensity of AP, according to signal strength signal intensity these character strings are sorted then; Analyze encryption method then, according to encryption method, select the configuration network parameter, carry out network configuration;
Step S5212 according to IP distribution state and user's fan-in network name and password, upgrades routing table, finishes cordless communication network and connects.
7. cordless communication network method of attachment according to claim 6 is characterized in that, described step S5212 comprises the following steps:
If static IP then directly according to the IP address that finds, upgrades routing table, finish cordless communication network and connect;
If dynamic IP then arranges agreement according to the DHCP(DynamicHost) mode distributing IP address, upgrade routing table, finish cordless communication network and connect.
8. cordless communication network method of attachment according to claim 6 is characterized in that, among the described step S5211, utilizes the WPA instrument to carry out network configuration.
CN 201010580835 2010-12-09 2010-12-09 Wireless communication network connection method Expired - Fee Related CN102026263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010580835 CN102026263B (en) 2010-12-09 2010-12-09 Wireless communication network connection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010580835 CN102026263B (en) 2010-12-09 2010-12-09 Wireless communication network connection method

Publications (2)

Publication Number Publication Date
CN102026263A CN102026263A (en) 2011-04-20
CN102026263B true CN102026263B (en) 2013-08-28

Family

ID=43866971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010580835 Expired - Fee Related CN102026263B (en) 2010-12-09 2010-12-09 Wireless communication network connection method

Country Status (1)

Country Link
CN (1) CN102026263B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299809A (en) * 2011-09-16 2011-12-28 迈奔灵动科技(北京)有限公司 Internet protocol (IP)-multicast-technology-based wireless connection method and system
CN102883322A (en) * 2012-09-28 2013-01-16 东莞宇龙通信科技有限公司 Mobile terminal and WiFi connection method for mobile terminal
US9439234B2 (en) * 2012-12-19 2016-09-06 Apple Inc. System and method for intelligently selecting a network interface
CN103594040B (en) * 2013-11-12 2016-06-15 上海滕维信息科技有限公司 A kind of electronic ink screen information display system and using method
CN103593685A (en) * 2013-11-12 2014-02-19 上海滕维信息科技有限公司 Electronic information display system and using method thereof
CN103594029B (en) * 2013-11-12 2016-06-15 上海滕维信息科技有限公司 A kind of electronic information display label having storage function and using method
CN103594039B (en) * 2013-11-12 2016-06-15 上海滕维信息科技有限公司 A kind of electronic ink screen information display label and using method
CN103702437A (en) * 2013-12-16 2014-04-02 海信集团有限公司 Connection control device for wireless network and connection control method for wireless network
CN105577293B (en) * 2014-10-13 2018-10-30 炬芯(珠海)科技有限公司 A kind of test method of bluetooth equipment, apparatus and system
CN105530644B (en) * 2016-02-19 2020-11-27 台州市吉吉知识产权运营有限公司 Wireless authentication method and system
CN107371199B (en) * 2016-05-13 2019-10-22 华为技术有限公司 A method, gateway and system for wireless local area network switching
CN109673008B (en) * 2017-10-17 2022-04-22 华为技术有限公司 Method, device and equipment for determining state of terminal equipment
CN108768705A (en) * 2018-05-16 2018-11-06 威海职业学院 A kind of link method and device of cordless communication network
CN113992578B (en) * 2021-09-09 2023-11-03 新华三大数据技术有限公司 Method, device, equipment and storage medium for switching servers of cloud desktop terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1628479A (en) * 2002-06-13 2005-06-15 都科摩欧洲通信技术研究所有限公司 Proactive deployment of decision mechanisms for optimal handover
CN1666473A (en) * 2002-07-10 2005-09-07 皇家飞利浦电子股份有限公司 Interface selection from multiple networks
CN101006703A (en) * 2005-08-03 2007-07-25 株式会社东芝 Seamless network interface selection, handoff and management in multi-ip network interface mobile devices
CN101662401A (en) * 2008-08-27 2010-03-03 联想(北京)有限公司 Construction method and network nodes of chain wireless network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6961762B1 (en) * 2000-02-14 2005-11-01 Sygate Technologies, Inc. Automatic switching network points based on configuration profiles

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1628479A (en) * 2002-06-13 2005-06-15 都科摩欧洲通信技术研究所有限公司 Proactive deployment of decision mechanisms for optimal handover
CN1666473A (en) * 2002-07-10 2005-09-07 皇家飞利浦电子股份有限公司 Interface selection from multiple networks
CN101006703A (en) * 2005-08-03 2007-07-25 株式会社东芝 Seamless network interface selection, handoff and management in multi-ip network interface mobile devices
CN101662401A (en) * 2008-08-27 2010-03-03 联想(北京)有限公司 Construction method and network nodes of chain wireless network

Also Published As

Publication number Publication date
CN102026263A (en) 2011-04-20

Similar Documents

Publication Publication Date Title
CN102026263B (en) Wireless communication network connection method
CN100418066C (en) System and method for realizing zero-allocation wireless computing, and computering apparatus for leading in zero-allocation wireless computing
US9998880B2 (en) Method and apparatus for forming Wi-Fi P2P group using Wi-Fi direct
CN100486173C (en) Configuring of network settings of thin client devices using portable storage media
US10104118B2 (en) Devices, systems, and methods for detecting proximity-based mobile malware propagation
US8005952B2 (en) Method for intelligently selecting wireless access point
US20180249313A1 (en) Smart device, electronic apparatus, and nfc-based network connection method
JP4660100B2 (en) Server device
JP4892884B2 (en) Mobile phone terminal with built-in wireless LAN, mobile phone system, and personal information protection method thereof
CN101202686B (en) Determining identifiers for wireless networks with hidden identifiers
WO2005121981A1 (en) Information terminal, set information distribution server, right information distribution server, network connection setting program and method
EP2112844A2 (en) Methods and apparatus for setting up wireless LAN
US20100124213A1 (en) Wireless terminal device, communication method, and computer-readable recording medium
EP2978250A1 (en) Method, related device, and system for configuring wireless local area network device
JP2005176021A (en) Information processor and program
WO2002005516A1 (en) Communication unit and its controlling method
CN101247610A (en) Method, equipment and system for managing multi-short distance wireless technical communication
EP1947818B1 (en) A communication system and a communication method
TW202112101A (en) Key generation and terminal network distribution method, device and equipment
JP2008258666A (en) Wireless access system and wireless access method
CN101155106B (en) Method and device for building WLAN security system
US9088961B1 (en) Method for selecting and configuring wireless connections in an electronic device
JP2008131429A (en) Wireless LAN communication system setting method and wireless LAN access point
JP5456141B2 (en) Communication device and wireless communication method
US20020069269A1 (en) Selection of a candidate peripheral device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: SUZHOU AOKECHUANG INFORMATION TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: SUZHOU EJITEC CO., LTD.

Effective date: 20150707

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150707

Address after: Xinghu Street Industrial Park of Suzhou city in Jiangsu province 215000 room A4-506 No. 218

Patentee after: SUZHOU ACQUITRONIX INFORMATION TECHNOLOGY CO., LTD.

Address before: Suzhou City, Jiangsu Province, Suzhou Industrial Park 215021 Xinghu Street No. 218 nano garden building A4 room 505

Patentee before: Suzhou Ejitec Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130828

Termination date: 20161209