CN106211142B - WiFi AP terminal wide area network access method - Google Patents

WiFi AP terminal wide area network access method Download PDF

Info

Publication number
CN106211142B
CN106211142B CN201610541167.8A CN201610541167A CN106211142B CN 106211142 B CN106211142 B CN 106211142B CN 201610541167 A CN201610541167 A CN 201610541167A CN 106211142 B CN106211142 B CN 106211142B
Authority
CN
China
Prior art keywords
mobile phone
application module
module
wifi
intelligent terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610541167.8A
Other languages
Chinese (zh)
Other versions
CN106211142A (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.)
Fujian Electronic Information Technology Co ltd Song Airlines
Original Assignee
Fujian Electronic Information Technology Co ltd Song Airlines
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 Fujian Electronic Information Technology Co ltd Song Airlines filed Critical Fujian Electronic Information Technology Co ltd Song Airlines
Priority to CN201610541167.8A priority Critical patent/CN106211142B/en
Publication of CN106211142A publication Critical patent/CN106211142A/en
Application granted granted Critical
Publication of CN106211142B publication Critical patent/CN106211142B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Abstract

The invention relates to a WiFi AP terminal wide area network access method, which maintains the original WiFi access mode of a mobile phone unchanged, a WiFi hotspot is started on intelligent terminal equipment to serve as an AP, the mobile phone with a 3G or 4G module for surfing the internet is accessed to the AP according to the standard WiFi access mode, and special application programs are installed on the AP and the Station, so that the intelligent terminal equipment can be accessed to a wide area network through the mobile phone, and the internet access defect of the intelligent equipment without direct internet surfing capability in the prior art is overcome.

Description

WiFi AP terminal wide area network access method
Technical Field
The invention relates to a WiFi AP terminal wide area network access method.
Background
At present, intelligent terminals are increasingly popularized, most of the intelligent terminals have a direct internet surfing function, and part of the terminals can also be used as WiFi hotspots to provide internet surfing for other devices. However, in a mobile application place or when there is a specific requirement, the intelligent terminal device needs to be configured with a data communication module (such as a 3G or 4G module) to have the internet access function, which increases the manufacturing cost and the application cost of the device. There are two existing methods for accessing a wide area network: one is that the mobile phone is used as a hot spot, and the other is that a mobile phone system is transformed through point-to-point communication to realize a gateway function. The first method needs an operator to actively switch the mobile phone wifi to a hot spot mode in the using process, and the operation is complex. And the second type is only suitable for the mobile phone with the customized firmware, and cannot be used immediately. The prior art does not solve the problem of surfing the Internet of intelligent equipment without direct surfing capability.
Disclosure of Invention
The invention aims to provide a WiFi AP terminal wide area network access method to overcome the defects in the prior art.
In order to achieve the purpose, the technical scheme of the invention is as follows: a WiFi AP terminal wide area network access method comprises an intelligent terminal device with a first application module and a mobile phone with a second application module, and is realized according to the following steps:
step S1: the intelligent terminal equipment starts a WiFi hotspot as an AP, starts the first application module and waits for the access of the mobile phone;
step S2: the mobile phone is used as a Station and is accessed to a WiFi hotspot of the intelligent terminal equipment through a WiFi communication module;
step S3: the first application module allocates IP to the mobile phone in a DHCP form through a WiFi hotspot; in DHCP communication, informing a WiFi communication module of the mobile phone that a gateway of a WiFi hotspot and a DNS (domain name server) are empty, and further in communication, the mobile phone cannot guide network communication information to the intelligent terminal equipment;
step S4: the mobile phone starts the second application module, sends inquiry information to the intelligent terminal equipment through the WiFi communication module, and inquires the equipment identification code of the intelligent terminal equipment;
step S5: the first application module responds to the query information and sends the equipment identification code of the intelligent terminal equipment to the second application module through the WiFi hotspot;
step S6: the second application module judges whether the equipment identification code is legal or not according to a built-in preset equipment list, and turns to the step S7 after the equipment identification code is legal;
step S7: the second application module starts the HTTP proxy service function of the mobile phone, acquires a proxy port number, sends the proxy port number to the first application module through the WiFi communication module, and starts the HTTP proxy service function of the intelligent terminal equipment;
step S8: the first application module sets a proxy port number of the HTTP of the intelligent terminal equipment according to the acquired proxy port number; the first application module sends the internet surfing request data to the second application module through a WiFi hotspot by adopting a TCP/IP protocol according to the proxy port number and the IP allocated to the mobile phone;
step S9: the second application module is used as an HTTP proxy, an Internet surfing request is sent through an Internet surfing module of the mobile phone, and received response data are sent to the first application module through a WiFi communication module, so that HTTP network communication capacity of the first application module is achieved.
In an embodiment of the present invention, in step S3, the gateway and DNS of the mobile operator existing in the mobile phone may be specified.
In an embodiment of the present invention, in the step S9, the second application module is only responsible for forwarding the HTTP, and does not modify the internet request data or the response data, and only functions as a proxy for the HTTP.
In an embodiment of the present invention, the internet is connected to a wide area network in an HTTP manner.
In an embodiment of the present invention, the internet access module is a 3G or 4G internet access module.
Compared with the prior art, the invention has the following beneficial effects: the WiFi AP terminal wide area network access method provided by the invention has the advantages that on the basis of maintaining the original WiFi access mode of the mobile phone unchanged, a WiFi hotspot is started on the intelligent terminal equipment as an AP, the mobile phone with a 3G or 4G module for surfing the Internet is used as a Station, the AP is accessed according to the standard WiFi access mode, and the AP and the mobile phone Station are provided with special application programs, so that the intelligent terminal equipment can be accessed into the wide area network through the mobile phone, the method is extremely convenient and stable, the cost is lower, and the Internet access defect of the intelligent equipment without direct Internet access capability in the prior art is overcome.
Drawings
Fig. 1 is a system schematic diagram of a WiFi AP terminal wide area network access method in the present invention.
Detailed Description
The technical scheme of the invention is specifically explained below with reference to the accompanying drawings.
In the existing Station, access to the AP is usually performed, and the AP accesses to the internet through its own internet module (which may be a local area network module or a 3G/4G module). The intelligent terminal device serving as the AP in this embodiment does not have an internet access module and does not have a function of directly accessing the internet, and therefore, one of the mobile phones connected as the Station needs to be designated as an internet access device. By running the built-in specific programs of both sides, the AP forwards the Internet surfing request to the Station, and the Station serves as an Internet surfing agent to realize the Internet surfing function. The invention provides a WiFi AP terminal wide area network access method, which comprises an intelligent terminal device and a mobile phone, wherein the intelligent terminal device is provided with a first application module, the mobile phone is provided with a second application module, and further, in the embodiment, the first application module is an application program A arranged on the intelligent terminal device, and the second application module is an application program B arranged on the mobile phone.
Further, in this embodiment, the intelligent terminal device needs to have a WiFi hotspot function, and an application a is built in the intelligent terminal device and used for sending the device identification code and setting the internet access agent. After the intelligent terminal device starts the WiFi hotspot to serve as the AP, the application program A communicates with an application program B on the mobile phone, sends a device identification code, and receives the internet access agent information sent by the device identification code. And then all the internet access requests of the intelligent terminal equipment are forwarded to an application program B by the application program A for proxy processing.
Further, in this embodiment, an application B for controlling the intelligent terminal device is installed on a mobile phone having 3G or 4G mobile communication. The mobile phone needs to start WiFi to be connected to the intelligent terminal device to be used as a Station, and an application program B is started. And the application program B communicates with the intelligent terminal equipment serving as the AP to obtain the equipment identification code of the terminal and confirm whether the terminal is allowed to surf the internet or not. And under the condition of allowing to surf the internet, the application program B sends internet agent information to the intelligent terminal equipment. And the application program B accesses the Internet through a 3G or 4G module of the mobile phone and processes the Internet access request of the intelligent terminal equipment in an agent mode.
Further, in this embodiment, the method is specifically implemented as follows:
step S1: the intelligent terminal device starts a WiFi hotspot as an AP, starts an application program A and waits for the access of a mobile phone;
step S2: the mobile phone is used as a Station and is accessed to a WiFi hotspot of the intelligent terminal equipment through a WiFi communication module;
step S3: the application program A allocates IP to the mobile phone in a DHCP form through a WiFi hotspot; in DHCP communication, notifying a WiFi communication module of the mobile phone that a gateway and a DNS of a WiFi hotspot are empty, and also designating the gateway and the DNS of an existing mobile operator of the mobile phone, so that in communication, the mobile phone cannot guide network communication information to the intelligent terminal equipment; in this embodiment, DHCP is a network protocol, and when a device accesses a server using the protocol, an IP address is automatically assigned to the access device, and a gateway and a DNS are set so that the access device can access an external network. The intelligent terminal automatically starts an application program A and DHCP service after being started, the application program A empties a gateway and a DNS of DHCP, and the gateway and the DNS received by the access equipment are naturally empty; the DHCP protocol running on the mobile phone is a client, and runs when needed, if the client cannot surf the internet or wants to connect to a server through WiFi, the client can automatically run when the WiFi is started;
step S4: the mobile phone starts the application program B, sends inquiry information to the intelligent terminal equipment through the WiFi communication module, and inquires the equipment identification code of the intelligent terminal equipment;
step S5: the first application module responds to the query information and sends a device identification code of the intelligent terminal device to the second application module through the WiFi hotspot;
step S6: the application program B judges whether the equipment identification code is legal or not according to a built-in preset equipment list, and the step is switched to the step S7 after the equipment identification code is judged to be legal; if the terminal equipment is illegal, the intelligent terminal equipment cannot perform subsequent interactive response and cannot complete the internet surfing function;
step S7: the application program B starts an HTTP proxy service function of the mobile phone, acquires a proxy port number and sends the proxy port number to an application program A supporting the HTTP proxy service function through a WiFi communication module; in this embodiment, HTTP is also a network protocol, which is owned by the operating system as with the current DHCP in both the mobile phone and the smart device; both HTTP and DHCP can be started or stopped by programs, and configuration can be modified in the programs and then the programs are started to run;
step S8: the application program A sets the proxy port number of the HTTP of the intelligent terminal equipment according to the acquired proxy port number; the application program A adopts a TCP/IP protocol to send the internet surfing request data to an application program B through a WiFi hotspot according to the proxy port number and the IP allocated to the mobile phone;
step S9: the application program B is used as an HTTP proxy, an Internet surfing request is sent through an Internet surfing module of the mobile phone, such as a 3G or 4G Internet surfing module and a local area network Internet surfing module, and received response data is sent to the application program B through a WiFi communication module, so that HTTP network communication capacity of the application program A is achieved.
Further, in the embodiment, in step S9, the application B is only responsible for forwarding the HTTP, and does not modify the internet access request data or the response data, and only functions as a proxy for the HTTP. The Internet access is connected with the wide area network in an HTTP mode.
The above are preferred embodiments of the present invention, and all changes made according to the technical scheme of the present invention that produce functional effects do not exceed the scope of the technical scheme of the present invention belong to the protection scope of the present invention.

Claims (1)

1. A WiFiAP terminal wide area network access method is characterized by comprising an intelligent terminal device with a first application module and a mobile phone with a second application module, and is realized according to the following steps:
step S1: the intelligent terminal equipment starts a WiFi hotspot as an AP, starts the first application module and waits for the access of the mobile phone;
step S2: the mobile phone is used as a Station and is accessed to a WiFi hotspot of the intelligent terminal equipment through a WiFi communication module;
step S3: the first application module allocates IP to the mobile phone in a DHCP form through a WiFi hotspot; in DHCP communication, informing a WiFi communication module of the mobile phone that a gateway of a WiFi hotspot accessed by the WiFi communication module and a DNS are empty;
step S4: the mobile phone starts the second application module, sends inquiry information to the intelligent terminal equipment through the WiFi communication module, and inquires the equipment identification code of the intelligent terminal equipment;
step S5: the first application module responds to the query information and sends the equipment identification code of the intelligent terminal equipment to the second application module through the WiFi hotspot;
step S6: the second application module judges whether the equipment identification code is legal or not according to a built-in preset equipment list, and turns to the step S7 after the equipment identification code is legal;
step S7: the second application module starts the HTTP proxy service function of the mobile phone, acquires a proxy port number, sends the proxy port number to the first application module through a WiFi communication module, and starts the HTTP proxy service function of the intelligent terminal equipment;
step S8: the first application module sets a proxy port number of the HTTP of the intelligent terminal equipment according to the acquired proxy port number; the first application module sends the internet surfing request data to the second application module through a WiFi hotspot by adopting a TCP/IP protocol according to the proxy port number and the IP allocated to the mobile phone;
step S9: the second application module is used as an HTTP proxy, an Internet surfing request is sent through an Internet surfing module of the mobile phone, and received response data are sent to the first application module through a WiFi communication module, so that HTTP network communication capacity of the first application module is achieved;
in step S9, the second application module is only responsible for forwarding HTTP, and only plays a role of proxy for HTTP without any modification to the internet access request data or response data;
in step S3, the gateway and DNS of the mobile operator that the mobile phone already has can be specified;
the Internet surfing is connected with a wide area network in an HTTP mode;
the internet access module is a 3G or 4G internet access module.
CN201610541167.8A 2016-07-12 2016-07-12 WiFi AP terminal wide area network access method Active CN106211142B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610541167.8A CN106211142B (en) 2016-07-12 2016-07-12 WiFi AP terminal wide area network access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610541167.8A CN106211142B (en) 2016-07-12 2016-07-12 WiFi AP terminal wide area network access method

Publications (2)

Publication Number Publication Date
CN106211142A CN106211142A (en) 2016-12-07
CN106211142B true CN106211142B (en) 2020-08-14

Family

ID=57474002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610541167.8A Active CN106211142B (en) 2016-07-12 2016-07-12 WiFi AP terminal wide area network access method

Country Status (1)

Country Link
CN (1) CN106211142B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107105097A (en) * 2017-04-28 2017-08-29 努比亚技术有限公司 Information management method, mobile terminal, GSM and storage medium
CN109669737B (en) * 2018-12-19 2023-04-18 百度在线网络技术(北京)有限公司 Application processing method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202101A (en) * 2011-06-13 2011-09-28 中兴通讯股份有限公司 Data transmission method, terminal and computer
CN102281304A (en) * 2011-09-01 2011-12-14 上海果壳电子有限公司 Host-side device user-mode Internet surfing agent system and Internet surfing agent method thereof
CN105376835A (en) * 2015-11-24 2016-03-02 北京智享科技有限公司 Portable equipment and method for connecting mobile terminal with portable equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103313430A (en) * 2013-06-07 2013-09-18 杭州爱纬斯电子有限公司 WiFi (wireless fidelity) connecting method using mobile terminal to configure network access equipment through WiFi and related equipment
KR20160071826A (en) * 2014-12-12 2016-06-22 삼성전자주식회사 Method for connecting wireless network and electronic device thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202101A (en) * 2011-06-13 2011-09-28 中兴通讯股份有限公司 Data transmission method, terminal and computer
CN102281304A (en) * 2011-09-01 2011-12-14 上海果壳电子有限公司 Host-side device user-mode Internet surfing agent system and Internet surfing agent method thereof
CN105376835A (en) * 2015-11-24 2016-03-02 北京智享科技有限公司 Portable equipment and method for connecting mobile terminal with portable equipment

Also Published As

Publication number Publication date
CN106211142A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
EP3557913B1 (en) Network slice selection policy updating method and apparatus
US10798629B2 (en) VoWifi call processing method of mobile terminal, system, and mobile terminal
CN110073686B (en) Session activation method, device and system
US10212685B2 (en) Network management of subscriptions for IoT devices
KR102157185B1 (en) Apparatus and method for providing a service connection through access layer in wireless communication system
CN105359562B (en) Control device, control method, communication system, and computer-readable storage medium
WO2017202269A1 (en) Method for updating network slice identity, network element, terminal, and storage medium
CN107026813B (en) Access authentication method and system of WiFi network and portal server
CN101102189A (en) A gateway system and method for implementing multi-media access
CN108377479B (en) Multi-card mobile terminal and service processing method and device thereof
US10225709B2 (en) System and method for a global wireless indirect internet connect system
US9713176B2 (en) Telecommunication method and telecommunication system
CN109803252B (en) Secondary eSIM card logout method, eSIM server, terminal and system
KR20140010206A (en) Apparatus and method for connecting wireless network in consideration of radio frequency band
KR20150094182A (en) Method and apparatus for controlling of accessibility to network according to user equipment capability and subscription information
CN106211142B (en) WiFi AP terminal wide area network access method
US10863555B2 (en) Access method, apparatus, device, and system
US9197719B2 (en) Method for communicating data between a system and a mobile network through an IP channel, corresponding portable object and system
JP2017528087A (en) How to download subscriber information to the identification unit
JP2022501879A (en) Access authentication
CN112637929B (en) Equipment access control method, device and medium based on 5G network intelligent gateway
CN104754689B (en) home gateway access management method and system
CN106657154B (en) Wireless access method, system, WiFi platform and operator number taking platform
CN101677285B (en) Wireless device dynamic access method and system
CN106341374B (en) Method and device for limiting access of unlicensed user equipment to home gateway

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant