CN102404725B - Method for safely building WiFi connection by SSID in application program - Google Patents
Method for safely building WiFi connection by SSID in application program Download PDFInfo
- Publication number
- CN102404725B CN102404725B CN201110349101.6A CN201110349101A CN102404725B CN 102404725 B CN102404725 B CN 102404725B CN 201110349101 A CN201110349101 A CN 201110349101A CN 102404725 B CN102404725 B CN 102404725B
- Authority
- CN
- China
- Prior art keywords
- ssid
- wifi
- mobile terminal
- key
- mode
- 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
Links
Abstract
The invention belongs to the transmission technical field of wireless network and specifically relates to a method for safely building WiFi connection by SSID in application program. The method uses the open API of mobile operation system, controls and manages WiFi module by program and configures SSID to automatically build WiFi connection by the application program, and exchanges data in safe manner. The method is characterized in that SSID comprises program identifiers and SSID connecting key; the SSID connecting key is encrypted by encrypting program and a process (authorization from user should be acquired after automatically building the WiFi connection, or else, the connection will be removed) is confirmed by the connection to improve the safety.
Description
Technical field
The invention belongs to wireless network transmission technology field, be specifically related to a kind of SSID that utilizes and set up safely the method that WiFi connects in application program.
Background technology
Be accompanied by the development of hardware technology, the utility ratio of WiFi in mobile terminal improves constantly, popularizing along with mobile terminal (panel computer, smart mobile phone, electronic reader etc.) simultaneously, rely between mobile terminal the application of information exchange also increasing, the such as exchange of electronic business card etc. between the exchange of multimedia messages, mobile terminal between mobile terminal.
Exchanges data based on WiFi between present stage mobile terminal roughly has following several form:
1, be jointly connected in a WLAN (wireless local area network) by wireless routing device, which needs each mobile terminal to have authority to be connected into this mobile LAN.If these mobile terminals do not have authority or there is no such a wireless routing device, which is by inapplicable.
2, a mobile terminal is opened ap mode, and other mobile terminals form the network that can communicate by letter by this AP.The advantage of this mode is not need to rely on wireless routing device.But need to have the mobile terminal of supporting AP function, and have the following disadvantages, if AP is arranged to without cryptoguard, exist by the risk that other people arbitrarily connect, the method also needs the user of other mobile terminals to find SSID, and password etc. is set.
No matter the common feature of above-mentioned which kind of mode is the not responsible WiFi establishment of connection of application layer, and management WiFi connected mode, state etc.For the content exchange process in following application scenarios, be all difficult to reach the requirements such as good user's experience and fail safe:
If meeting for the first time, several mobile phone users need to exchange application layer message, and user wants to exchange by the mode of WiFi, first needs to open WiFi, and a user need to be arranged to ap mode by WiFi, in addition need to set SSID and password, then password is notified to all users.After all users connect, application program just can be carried out the transmission of content.
Therefore, in traditional approach, share the operation of content user in mobile terminal by WiFi more loaded down with trivial details, and have security risk.
Summary of the invention
The object of the present invention is to provide a kind of simple and convenient, safe and reliable method of setting up WiFi connection.
The method of setting up WiFi connection provided by the invention, utilize the open API of Mobile operating system, pass through to set the SSID value of WiFi at application layer software, realize automatic program identification, set up network connection, transmission application layer data, and ensure the open-destination that network only exchanges needs, other mobile terminals that do not move same software cannot obtain connection authority.Therefore claim the present invention to utilize SSID to set up safely the method that WiFi connects in application program.
The method of setting up WiFi connection provided by the invention, its application layer software is in the time of the SSID of configuration AP, and other information that WiFi connected to key information and application layer needs are attached in SSID.
In the inventive method, SSID at least comprises program identification and is connected key (WiFi connects key) with SSID, and program identification is connected key with WiFi can be by application layer self-defining, but requires to ensure that same application uses same program identification.
In the inventive method, WiFi connects key and presents with encrypted test mode, and other additional informations of program identification and application layer can be both can be expressly also that ciphertext presents.
In the inventive method, the key that encryption WiFi connection key needs is by application maintenance, and regular more new key of connection server.
Application program in the present invention has following two kinds of operational modes:
Server mode, it is ap mode that the mobile terminal in server mode need to configure WiFi, and SSID is arranged to specific form.This form at least comprises program identification and is connected key with WiFi.Wherein program identification refers to produced by application program a kind of for identifying the information of this application program; WiFi connect key refer to server mode mobile terminal produce, connect the needed key of the corresponding AP of this SSID, also claim SSID connect key.
Client mode, the mobile terminal in client mode is non-ap mode without configuration WiFi, and the SSID information of AP in scanning surrounding environment is analyzed after acquisition SSID information, and the program identification information of resolving is wherein connected key with SSID.Then the mobile terminal of client mode is according to the key that obtains SSID and parse, and request connects corresponding SSID.
The present invention comprises SSID configuration, SSID scanning, connects the processes such as confirmation, exchanges data in application.
SSID setting up procedure:
Before connection is set up, first mobile phone users runtime server pattern in application program, now application program ensures the operation of WiFi module, and is arranged to ap mode.Before the SSID of this mobile terminal of configuration, application program generates the key that a SSID connects, and the key information after the application program identification in the program of being stored in (can be both can be expressly also ciphertext) and encryption is kept in SSID.
SSID scanning process:
After the mobile terminal of the pattern in client has completed SSID and has arranged, start scanning SSID around, the ssid list that end of scan post analysis obtains, and each SSID is resolved, if do not find the SSID that comprises program identifier, continue to rescan after dormancy certain hour.If found the SSID that comprises program identifier, the SSID obtaining is resolved, therefrom extract application program identification is connected key and application layer needs other information with SSID etc., and SSID is connected to key be decrypted with being stored in key in program, obtain the plaintext that corresponding SSID connects key.
Connect confirmation process:
After client mode mobile terminal has obtained and is connected key with SSID No. SSID, just can set up WiFi and connect.After WiFi connection has been set up, client mode mobile device sends a request that connects confirmation, whether server mode mobile terminal can prompting user allow to connect after receiving this request, only has to have sent to connect and confirms that the client mode mobile terminal of asking and obtain user to allow just has authority to carry out exchanges data.
Data exchange process:
After having set up WLAN (wireless local area network) by the way, many mobile terminals can carry out application layer data exchange by server mode mobile terminal.Broadcast by IP layer or other modes obtain the application layer data exchange that can realize point-to-point or broadcast type behind the IP address of other mobile terminals in WLAN (wireless local area network).
Brief description of the drawings
Fig. 1 server mode mobile terminal WiFi configuration flow.
Fig. 2 client mode mobile terminal WiFi configuration flow.
Fig. 3 client mode mobile scanning terminal program flow diagram.Client mobile scanning terminal SSID therefrom extract the program flow diagram of SSID, address name information and encrypted message has around been described.
Fig. 4 WiFi connects foundation and connects confirmation procedure chart.Describe client mode terminal and connected, connected confirmation process from initiating WiFi.
Embodiment
One, a side user opens the application program on mobile terminal, and is arranged to server mode, and now this user side application program is carried out following operation (as shown in Figure 1):
A, generate WiFi and connect key, and be encrypted to ciphertext with the encipheror in software;
The key of b, extraction procedure mark and ciphertext form forms No. SSID;
Whether c, detection system WiFi open, and open WiFi module if do not open;
Whether d, detection system WiFi in AP mode of operation, if not in ap mode, WiFi is arranged to ap mode, and SSID is set is No. SSID in step b.
Two, the user of client mode handheld device opens client mode, and now corresponding application program for mobile terminal is carried out following operation (as shown in Figure 2):
Whether a detection system WiFi opens, if do not open, opens WiFi module;
B detection system WiFi, whether in AP mode of operation, if in ap mode, is arranged to WiFi non-ap mode.
Three, client is setting the SSID information starting after WiFi information around scanning.Its process following (shown in Fig. 3):
A, start to scan SSID, each scanning obtains the list of a SSID;
B, traversal ssid list, once judge each SSID, if contain program identification, preserves this SSID;
Do not find any SSID that comprises program identification if c once travels through, rescan SSID until overtime end sweep phase;
Have if d once travels through the SSID that comprises program identifier, application layer software extracts the key of corresponding SSID, and is decrypted into expressly, preserves SSID simultaneously and is connected key with the SSID of plaintext form.
Four, when client mode mobile terminal has obtained SSID and SSID key, just can connect, its process following (shown in Fig. 4):
A, client mode mobile terminal administration software extract the connection that SSID corresponding to this user and password are set up WiFi;
B, when WiFi connect has set up after, client mode mobile terminal application layer software send to one connect confirmation request;
C, receive to connect to confirm, after request, whether prompting user agrees to connect when server mode mobile terminal, only had to have sent connection request and obtained the mobile terminal that user agrees to and could set up the WiFi moving with this server mode and be connected.Otherwise the WiFi having set up connects and will be disconnected.
Claims (5)
1. in application program, utilize SSID to set up safely the method that WiFi connects, it is characterized in that:
Pass through to set the SSID of WiFi at application layer software, realize automatic program identification, set up network connection, transmission application layer data, and ensure the open-destination that network only exchanges needs, other mobile terminals that do not move same software cannot obtain connection authority; Application layer software is in the time of the SSID of configuration AP, and other information that WiFi connected to key information and application layer needs are attached in SSID; SSID at least comprises program identification and is connected key with WiFi, and program identification is connected key by application layer self-defining with WiFi, and same application uses same program identification; WiFi connects key and presents with encrypted test mode, and other additional informations of program identification and application layer are that plaintext or ciphertext present; Application program has following two kinds of operational modes: server mode and client mode; The method detailed process of setting up WiFi connection comprises SSID configuration, SSID scanning, connects and confirm and exchanges data:
SSID layoutprocedure: before connection is set up, first mobile phone users runtime server pattern in application program, now application program ensures the operation of WiFi module, and is arranged to ap mode; Before the SSID of this mobile terminal of configuration, application program generates a WiFi and connects key, and the key information after the application program identification in the program of being stored in and encryption is kept in SSID;
SSID scanning process: after the mobile terminal of the pattern in client has completed SSID and arranges, start scanning SSID around, the ssid list that end of scan post analysis obtains, and each SSID is resolved, if do not find the SSID that comprises program identifier, continue to rescan after dormancy certain hour; If found the SSID that comprises program identifier, the SSID obtaining is resolved, therefrom extract application program identification is connected key and application layer needs other information with WiFi, and with the key after the encryption being stored in program, WiFi is connected to key and be decrypted, obtain the plaintext that corresponding WiFi connects key;
Connect confirmation process: after client mode mobile terminal has obtained SSID and is connected key with WiFi, set up WiFi connection; After WiFi connection has been set up, client mode mobile terminal sends a request that connects confirmation, whether server mode mobile terminal can prompting user allow to connect after receiving this request, only has to have sent to connect and confirms that the client mode mobile terminal of asking and obtain user to allow just has authority to carry out exchanges data;
Data exchange process: set up by the way after WLAN (wireless local area network) when many mobile terminals, carried out application layer data exchange by server mode mobile terminal; Broadcast or other modes by IP layer obtain behind the IP address of other mobile terminals in WLAN (wireless local area network), realize the application layer data exchange of point-to-point or broadcast type.
2. the SSID that utilizes in application program according to claim 1 sets up safely the method that WiFi connects, it is characterized in that: when a side user opens the application program on mobile terminal, and be arranged to server mode, now the application program on this customer mobile terminal is carried out following operation:
A, generate WiFi and connect key, and be encrypted to ciphertext with the encipheror in software;
B, extraction procedure mark are connected key and form SSID with the WiFi of ciphertext form;
Whether c, detection system WiFi open, and open WiFi module if do not open;
Whether d, detection system WiFi in ap mode, if not in ap mode, WiFi is arranged to ap mode, and SSID is set is the SSID in step b.
3. the SSID that utilizes in application program according to claim 2 sets up safely the method that WiFi connects, and it is characterized in that: when the user of client mode mobile terminal opens client mode, now corresponding application program for mobile terminal is carried out following operation:
Whether a, detection system WiFi open, if do not open, open WiFi module;
B, detection system WiFi, whether in ap mode, if in ap mode, are arranged to WiFi non-ap mode.
4. the SSID that utilizes in application program according to claim 3 sets up safely the method that WiFi connects, and it is characterized in that: client mobile terminal is setting the SSID information starting after WiFi information around scanning, and its process is as follows:
A, start to scan SSID, each scanning obtains the list of a SSID;
B, traversal ssid list, once judge each SSID, if contain program identification, preserves this SSID;
Do not find any SSID that comprises program identification if c once travels through, rescan SSID until overtime end sweep phase;
Exist the SSID that comprises program identifier, application layer software to extract corresponding WiFi connection key if d once travels through, and be decrypted into expressly, preserve SSID simultaneously and be connected key with the WiFi of plaintext form.
5. the SSID that utilizes in application program according to claim 4 sets up safely the method that WiFi connects, and it is characterized in that: be connected key when client mode mobile terminal has obtained SSID with WiFi, just connect, its process is as follows:
A, client mode mobile terminal administration software extract SSID corresponding to this user and are connected Key Establishing WiFi connection with WiFi;
B, when WiFi connect has set up after, client mode mobile terminal application layer software send to one connect confirmation request;
C, receive to connect to confirm, after request, whether prompting user agrees to connect when server mode mobile terminal, only had to have sent connection request and obtained the mobile terminal that user agrees to and could set up with the WiFi of this server mode mobile terminal and be connected; Otherwise the WiFi having set up connects and will be disconnected.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110349101.6A CN102404725B (en) | 2011-11-08 | 2011-11-08 | Method for safely building WiFi connection by SSID in application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110349101.6A CN102404725B (en) | 2011-11-08 | 2011-11-08 | Method for safely building WiFi connection by SSID in application program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102404725A CN102404725A (en) | 2012-04-04 |
CN102404725B true CN102404725B (en) | 2014-07-09 |
Family
ID=45886410
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110349101.6A Expired - Fee Related CN102404725B (en) | 2011-11-08 | 2011-11-08 | Method for safely building WiFi connection by SSID in application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102404725B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI548299B (en) * | 2014-07-18 | 2016-09-01 | 合邦電子股份有限公司 | Method for setting wireless network device and wireless network device using the same |
Families Citing this family (31)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102883449B (en) * | 2012-09-21 | 2016-08-03 | 腾讯科技(深圳)有限公司 | A kind of realize the method for data sharing, associated terminal and system |
CN103813470B (en) * | 2012-11-06 | 2017-04-12 | 普罗斯股份有限公司 | Point-to-point wireless transmission system and method |
CN103812644B (en) * | 2012-11-09 | 2017-04-26 | 华为终端有限公司 | Information configuration method, device and system |
CN103826195B (en) * | 2012-11-16 | 2017-10-10 | 北京新媒传信科技有限公司 | Equipment is set to perform method, device, terminal device and the system of corresponding operating automatically |
CN103037538B (en) * | 2012-12-17 | 2016-02-24 | 广州市动景计算机科技有限公司 | Data transmission method and mobile terminal |
CN103179647A (en) * | 2013-03-11 | 2013-06-26 | 广东欧珀移动通信有限公司 | Method and mobile terminal for intelligently controlling wifi (wireless fidelity) module |
CN103442351B (en) * | 2013-08-14 | 2016-04-06 | 福州瑞芯微电子股份有限公司 | A kind of method protecting wireless network |
GB201319591D0 (en) * | 2013-11-06 | 2013-12-18 | Microsoft Corp | Network Access |
CN103619017A (en) * | 2013-11-22 | 2014-03-05 | 福州瑞芯微电子有限公司 | Method and system for wireless router authorized connection based on NFC technology |
CN103702395A (en) * | 2013-12-30 | 2014-04-02 | 中科创达软件股份有限公司 | Method and device for establishing communication channel. and electronic equipment |
CN103997771A (en) * | 2014-05-15 | 2014-08-20 | 无锡风铃电子商务有限公司 | System and method for achieving application and message triggering based on wireless access recognition technology |
CN105282006A (en) * | 2014-06-27 | 2016-01-27 | 北京奇虎科技有限公司 | Business card information exchange method, device and system |
CN104144421A (en) * | 2014-07-29 | 2014-11-12 | 诚迈科技(南京)股份有限公司 | Automatic network configuration system |
CN106537962B (en) * | 2014-08-18 | 2020-03-20 | 北京贝虎机器人技术有限公司 | Wireless network configuration, access and access method, device and equipment |
CN104320376B (en) * | 2014-08-28 | 2018-09-25 | 无锡天脉聚源传媒科技有限公司 | Connection method and the device of cloud and target cloud are initiated in a kind of request |
CN104244455A (en) * | 2014-09-01 | 2014-12-24 | 小米科技有限责任公司 | Wireless local area network access information sharing method and device |
CN105657857B (en) * | 2014-11-12 | 2019-11-19 | 深圳市腾讯计算机系统有限公司 | Wireless network connecting method and device |
CN104581993B (en) * | 2014-12-15 | 2019-05-03 | 华为技术有限公司 | It is wirelessly connected the method and terminal of the method established, data transmission |
CN104540188A (en) * | 2014-12-19 | 2015-04-22 | 天脉聚源(北京)科技有限公司 | Method and device for generating access information of wireless network application platform |
CN104507141A (en) * | 2014-12-26 | 2015-04-08 | 北京奇虎科技有限公司 | File receiving method for client side and receiver client side |
CN104717296A (en) * | 2015-03-25 | 2015-06-17 | 阳海龙 | Social contact interactive method, device, terminal and system |
CN104796897A (en) * | 2015-05-08 | 2015-07-22 | 李兴松 | WIFI authentication mechanism and algorithm based on handheld device APP |
CN105554746B (en) * | 2016-03-08 | 2018-10-23 | 叶茂森 | A kind of WIFI LAN communication systems based on encryption SSID |
CN105916188A (en) * | 2016-04-18 | 2016-08-31 | 肖华薇 | WLAN (wireless local area network) connection method, device and system |
CN105844881A (en) * | 2016-04-21 | 2016-08-10 | 奇弩(北京)科技有限公司 | Method for establishing connection between robot and remote controller |
CN106102043A (en) * | 2016-06-02 | 2016-11-09 | 上海新时达电气股份有限公司 | WIFI equipment and transmission system |
CN108377533B (en) * | 2016-11-25 | 2021-05-07 | 上海掌门科技有限公司 | Method and equipment for sending and collecting equipment identification information |
CN106604278B (en) * | 2016-12-14 | 2020-10-13 | 炫彩互动网络科技有限公司 | Multi-authority mobile network sharing method |
CN107241723B (en) * | 2017-06-21 | 2020-07-24 | 山东容弗新信息科技有限公司 | Power patrol detection equipment, intelligent terminal and networking method |
CN107182073B (en) * | 2017-07-31 | 2021-02-05 | 合肥美菱物联科技有限公司 | Network access system and method for configuration equipment |
CN112738867B (en) * | 2020-12-28 | 2023-06-30 | 乐鑫信息科技(上海)股份有限公司 | Intelligent device resetting method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101605077A (en) * | 2008-06-10 | 2009-12-16 | 上海贝尔阿尔卡特股份有限公司 | A kind of providing by the WiFi network moved method and the device thereof that inserts |
CN101656964A (en) * | 2009-09-16 | 2010-02-24 | 中兴通讯股份有限公司 | Realization method of Wi-Fi metropolitan area network and home gateway |
CN101668290A (en) * | 2008-09-04 | 2010-03-10 | 深圳华为通信技术有限公司 | Method and device for configuring wireless local area network (WLAN) |
-
2011
- 2011-11-08 CN CN201110349101.6A patent/CN102404725B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101605077A (en) * | 2008-06-10 | 2009-12-16 | 上海贝尔阿尔卡特股份有限公司 | A kind of providing by the WiFi network moved method and the device thereof that inserts |
CN101668290A (en) * | 2008-09-04 | 2010-03-10 | 深圳华为通信技术有限公司 | Method and device for configuring wireless local area network (WLAN) |
CN101656964A (en) * | 2009-09-16 | 2010-02-24 | 中兴通讯股份有限公司 | Realization method of Wi-Fi metropolitan area network and home gateway |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI548299B (en) * | 2014-07-18 | 2016-09-01 | 合邦電子股份有限公司 | Method for setting wireless network device and wireless network device using the same |
Also Published As
Publication number | Publication date |
---|---|
CN102404725A (en) | 2012-04-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102404725B (en) | Method for safely building WiFi connection by SSID in application program | |
CN111565137A (en) | System and method for binding WiFi distribution network and equipment | |
CN102984689B (en) | System and method for verifying mobile terminal | |
CN104378145B (en) | The matching method and system of bluetooth equipment | |
EP2495944B1 (en) | Generation and scanning of barcode-data for registering in a wireless network | |
EP2355585B1 (en) | Connecting wireless communications, wireless communications terminal and wireless communications system | |
EP2291017B1 (en) | Method for network connection | |
CN105992306B (en) | Binding method of terminal and home gateway | |
CN104105096B (en) | A kind of radio switch-in method of IPC equipment | |
CN103716795A (en) | Wireless network safe access method, apparatus and system | |
US20160242033A1 (en) | Communication service using method and electronic device supporting the same | |
CN103957580B (en) | A kind of WIFI quickly networkings matching method and module for Intelligent hardware | |
CN112261604B (en) | Network distribution method of intelligent terminal, configuration terminal, intelligent terminal and medium | |
CN105530589A (en) | Bluetooth beacon device, wireless LAN terminal authentication access system and wireless LAN terminal authentication access method | |
JP2006345205A (en) | Wireless lan connection control method, wireless lan connection control system, and setting wireless relay device | |
CN102916869A (en) | Instant messaging method and system | |
CN102088702B (en) | Method and system for accessing wireless network into user residential gateway | |
US20140259124A1 (en) | Secure wireless network connection method | |
CN102143492B (en) | Method for establishing virtual private network (VPN) connection, mobile terminal and server | |
CN109121124A (en) | A kind of client-based bluetooth mesh equipment networking process implementation method | |
CN103634795A (en) | Wireless communication apparatus and method | |
CN104660405A (en) | Business equipment authentication method and equipment | |
US20170272948A1 (en) | Method and apparatus for establishment of private commnunication between devices | |
US20130304879A1 (en) | Configuration of an end device for an access to a wireless communication network | |
CN104754495A (en) | Smart household device connecting method and smart terminal |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140709 Termination date: 20191108 |
|
CF01 | Termination of patent right due to non-payment of annual fee |