Wireless network connection method, terminal and mobile terminal

A technology for wireless network connection and mobile terminal, applied in the field of wireless network connection, terminal and mobile terminal, can solve problems such as increased cost and inflexible operation, and achieves reduction of equipment cost, simple and convenient operation, and improved user experience Effect

Inactive Publication Date: 2014-05-28
SHENZHEN GIONEE COMM EQUIP
6 Cites 49 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0003] Controlling non-input terminal devices to connect to wireless networks is now mainly: to configure special display terminals and keyboard input terminals for non-input terminal devices, such ...
View more

Method used

Further, after establishing connection successfully with described wireless hotspot, the required information of connecting wireless hotspot is preserved in the configuration file of system wireless agreement, and present Android system is for safety consideration, does not provide corresponding interface at upper stratum Obtain the relevant information of the protocol layer AP (Access Point, wireless access node). Therefore, in order ...
View more

Abstract

The embodiment of the invention discloses a wireless network connection method. The wireless network connection method comprises the steps that a wireless point-to-point connection request message sent by a mobile terminal is obtained, wireless point-to-point connection is established for the mobile terminal according to the obtained wireless point-to-point connection request message sent by the mobile terminal, information of a wireless hot point sent by the mobile terminal is obtained according to wireless point-to-point connection established for the mobile terminal, and network connection is conducted between the mobile terminal and the wireless hot point according to the information of the obtained wireless hot point sent by the mobile terminal. The embodiment of the invention further discloses a terminal and the mobile terminal. By the adoption of the wireless network connection method, the terminal and the mobile terminal, network connection can be established between the terminal and the wireless hot point under the condition that a display screen and a keyboard do not need to be configured, operation is easier and more convenient, equipment cost is reduced, and user experience is improved.

Application Domain

Connection management

Technology Topic

Wireless networkNetwork connection

Image

  • Wireless network connection method, terminal and mobile terminal
  • Wireless network connection method, terminal and mobile terminal
  • Wireless network connection method, terminal and mobile terminal

Examples

  • Experimental program(1)

Example Embodiment

[0026] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
[0027] The mobile terminal and the terminal described in the present invention both have wireless WIFI function (including P2P connection). The mobile terminal refers to a mobile device with input devices such as a display screen and a keyboard, including a mobile phone, a tablet PAD, etc.; the terminal is Refers to wearable devices and home multimedia devices, etc. In the embodiment of the present invention, the terminal can receive hotspot information of a wireless hotspot through a P2P connection network, and connect to the wireless hotspot according to the hotspot information.
[0028] Please refer to figure 1 , figure 1 It is a flowchart of the first embodiment of a wireless network connection method proposed by the present invention. The embodiment of the present invention establishes a wireless point-to-point connection with the mobile terminal to obtain the hotspot information of the wireless hotspot sent by the mobile terminal, and then according to the obtained all The hotspot information of the wireless hotspot establishes a network connection with the wireless hotspot. As shown in the figure, the embodiment of the present invention includes at least:
[0029] Step S110: Acquire wireless point-to-point connection request information sent by the mobile terminal. In the specific implementation, first confirm that the WIFI function is turned on. When the system WIFI function control request is received, the WIFI function module of the terminal is turned on. The WIFI function module includes the base station mode function and the P2P point-to-point function; then the switch is switched according to the received valid P2P state switching event The status of the P2P point-to-point port. When the system receives a valid P2P state switching event, it switches to the default search monitoring state or the independent monitoring request state (the terminal is not easy to initiate a wireless point-to-point connection). The P2P state switching event can be realized by a control event triggered by the terminal, for example, when detecting When the acceleration triggered by the gravity sensor of the movable smart watch is greater than the specified threshold, it is determined as a P2P state switching event. When the terminal is switched to the default search state or the separate monitoring request state, the mobile terminal can search for the terminal device in the default search state or the monitoring request state at this time. The terminal default P2P function starts to run, and can receive data from external devices (such as mobile terminals). ) Connection request.
[0030] Step S120: Establish a wireless point-to-point connection with the mobile terminal according to the acquired wireless point-to-point connection request information sent by the mobile terminal. According to the connection request information sent by the mobile terminal obtained in step S110, the wireless point-to-point connection can be completed. At the same time, after the wireless point-to-point connection is successful, the terminal sends basic information such as its own name, MAC, and IP to the mobile terminal, and the mobile terminal can send the hotspot information of the wireless hotspot to the terminal based on this information.
[0031] Step S130: According to the wireless point-to-point connection established with the mobile terminal, obtain the hotspot information of the wireless hotspot sent by the mobile terminal. In specific implementation, after the terminal and the mobile terminal have successfully established a wireless point-to-point connection, the data packet of the designated network port is monitored to obtain the hotspot information of the wireless hotspot sent from the mobile terminal.
[0032] Optionally, when acquiring the hotspot information of the wireless hotspot sent by the mobile terminal, the terminal may confirm whether it has received the hotspot information of the wireless hotspot, and if the hotspot information of the wireless hotspot is received, it will send out a prompt message. The hotspot information of the wireless hotspot can continue to monitor the hotspot information of the wireless hotspot sent by the mobile terminal. Among them, the hotspot information of the wireless hotspot includes service identification information such as SSID, BSSID, etc., and verification information such as Password, verification information, etc.
[0033] Step S140: Establish a network connection with the wireless hotspot according to the acquired hotspot information of the wireless hotspot sent by the mobile terminal.
[0034] In specific implementation, first search for wireless hotspots in the network. There may be multiple wireless hotspots in the current network, and hotspot information of all wireless hotspots existing in the network can be obtained to generate a wireless hotspot information list.
[0035] Then, according to the searched wireless hotspots in the network, a wireless hotspot that matches the service identification information is determined, and the received wireless hotspot information sent by the mobile terminal includes service identification information such as SSID and BSSID. The service identification information compares and searches the information list of the wireless hotspots to find the wireless hotspots that match the service identification information; if the searched wireless hotspots cannot match the received hotspot information sent by the mobile terminal, It means that the wireless hotspot may be hidden and not broadcast. At this time, the terminal needs to add a new network interface to the system and use the received SSID and password to try to connect to the designated wireless hotspot.
[0036] Finally, if it is determined that a wireless hotspot matching the service identification information is obtained, the wireless hotspot matching the service identification information establishes a network connection. In specific implementation, the terminal uses the WIFI function and connects to the wireless hotspot in base station mode, initiates a connection request to the wireless hotspot with the same service identification information (such as SSID, BSSID) received from the mobile terminal; and sends verification information such as a password, request The wireless hotspot establishes a network connection according to the verification information. When the wireless hotspot determines that the received verification information matches the verification information set by the hotspot AP information interface, the terminal and the wireless hotspot can establish a wireless network connection .
[0037] Optionally, after the terminal successfully establishes a network connection with the wireless hotspot and receives the information packet sent by the wireless hotspot, it can send feedback information to the mobile terminal, and at the same time display the current status on the terminal so that the user can determine The terminal successfully establishes a connection with the wireless hotspot. In addition, because the wireless point-to-point connection is not automatically disconnected after a successful connection, based on the connected wireless point-to-point connection, after the completion of the transmission of hotspot information, we can also use the wireless point-to-point connection for other applications, such as transferring files and transmitting other control information.
[0038] figure 2 It is a flowchart of another embodiment of a wireless network connection method provided by the present invention. As shown in the figure, the implementation of the present invention includes at least:
[0039] Step S201: The mobile terminal sends the wireless point-to-point connection request information to the terminal. In specific implementation, like the terminal, the mobile terminal first confirms to turn on the WIFI function and enables the P2P peer-to-peer function module. If the mobile terminal does not turn on the WIFI function, it can remind the user to turn on the WIFI function, and at the same time turn on the WIFI P2P peer-to-peer default search monitoring Status to search for the P2P point-to-point signal of the terminal. After the P2P point-to-point signal is found, it is added to the available point-to-point list provided by the mobile terminal. Then, according to the available P2P list provided, the user can select the terminal to which the connection request information is sent (because there may be multiple connected P2P devices). Finally, send connection request information to the terminal selected by the user.
[0040] Step S202: the terminal establishes a wireless point-to-point connection with the mobile terminal, which is the same as step S120 in the previous embodiment, and will not be repeated in this embodiment.
[0041] Step S203: The mobile terminal obtains hotspot information for establishing a network connection with the wireless hotspot. In a specific implementation, the hotspot information of the wireless hotspot input by the user can be obtained; the network connection with the wireless hotspot is established according to the obtained hotspot information of the wireless hotspot input by the user; if it is established with the wireless hotspot If the network connection is successful, the acquired hotspot information of the wireless hotspot input by the user is sent to the terminal.
[0042] Optionally, if the WIFI of the mobile terminal is turned off, the user is reminded to open and connect to the wireless hotspot in the current network before further operation. This operation is mainly to improve the simplicity of the user operation, that is, the obtained hotspot information It is the hotspot information that the mobile terminal has connected to the wireless hotspot.
[0043] Further, after successfully establishing a connection with the wireless hotspot, the information required to connect to the wireless hotspot is stored in the configuration file of the system wireless protocol. For security reasons, the current Android system does not provide a corresponding interface at the upper layer to obtain the protocol layer. AP (Access Point, wireless access node) related information, so in order to improve the simplicity of operation, the embodiment of the present invention creatively adds an interface to obtain the related information of the currently connected wireless hotspot AP in the system and the WIFI protocol. This is a special The interface used to obtain the SSID, BSSID, password and other information of the connected hotspot. Since this is a private interface added to the system, absolute security can be guaranteed.
[0044] Step S204: The mobile terminal sends the hotspot information for establishing a network connection with the wireless hotspot to the terminal according to the establishment of a wireless point-to-point connection with the terminal. In specific implementation, after the wireless point-to-point connection is successful, the terminal sends its own name, MAC, IP and other basic information to the mobile terminal. The mobile terminal can send network data packets to the designated port of the terminal based on these basic information, and the data part of the network data packet It is the hotspot information of the wireless hotspot acquired in step S203.
[0045] Step S205: The terminal searches for wireless hotspots in the network. There may be multiple wireless hotspots in the current network, and hotspot information of all wireless hotspots existing in the network can be obtained to generate a wireless hotspot information list.
[0046] In step S206, the terminal determines a wireless hotspot that matches the service identification information sent in step S204 according to the searched wireless hotspots in the network. In a specific implementation, the received wireless hotspot information sent by the mobile terminal includes service identification information such as SSID and BSSID, and the information list of the wireless hotspot can be found by comparing the service identification information with the service identification information. Matching wireless hotspot; if the searched wireless hotspot cannot match the hotspot information sent by the received mobile terminal, it means that the wireless hotspot may have been hidden and not broadcast. At this time, the terminal needs to add a new network interface to the system. And use the received SSID and password information to try to connect to the designated wireless hotspot.
[0047] Step S207: If the terminal determines that it obtains a wireless hotspot matching the service identification information, it establishes a network connection with the wireless hotspot matching the service identification information. In specific implementation, the terminal uses the WIFI function and connects to the wireless hotspot in base station mode, initiates a connection request to the wireless hotspot with the same service identification information (such as SSID, BSSID) received from the mobile terminal; and sends verification information such as a password, request The wireless hotspot establishes a network connection according to the verification information. When the wireless hotspot determines that the received verification information matches the verification information set by the hotspot AP information interface, the terminal and the wireless hotspot can establish a wireless network connection .
[0048] Step S208: The terminal sends connection status information to the mobile terminal. In specific implementation, when the terminal successfully establishes a connection with the wireless hotspot and receives the information packet of the wireless hotspot, the current status can be displayed on the terminal, and at the same time, feedback information can be sent to the mobile terminal, and the mobile terminal monitors the terminal processing In response to the hotspot information, if no response is received over time, the hotspot information can be re-sent to the terminal within a preset number of times until the terminal is successfully connected to the wireless hotspot.
[0049] Please refer to image 3 , image 3 It is a schematic structural diagram of an embodiment of a terminal proposed by the present invention. As shown in the figure, the embodiment of the present invention at least includes a request information acquisition unit 310, a point-to-point connection establishment unit 320, a hotspot information acquisition unit 330, and a wireless hotspot connection unit 340, where:
[0050] The request information obtaining unit 310 is configured to obtain wireless point-to-point connection request information sent by the mobile terminal. Specifically, first confirm that the WIFI function is turned on. When the system WIFI function control request is received, the WIFI function module of the terminal is turned on. The WIFI function module includes the base station mode function and the P2P point-to-point function; then the P2P is switched according to the received valid P2P state switching event The status of the point-to-point port. When the system receives a valid P2P state switching event, it switches to the default search monitoring state or separate monitoring request state (the terminal is not easy to initiate a wireless point-to-point connection). The P2P state switching event can be realized by a control event triggered by the terminal, such as when detecting When the acceleration triggered by the gravity sensor of the movable smart watch is greater than the specified threshold, it is determined as a P2P state switching event. When the terminal is switched to the default search state or the separate monitoring request state, the mobile terminal can search for the terminal device in the default search state or the monitoring request state at this time. The terminal default P2P function starts to run, and can receive data from external devices (such as mobile terminals). ) Connection request.
[0051] The point-to-point connection establishment unit 320 is configured to establish a wireless point-to-point connection with the mobile terminal according to the connection request information sent by the mobile terminal acquired by the request information acquisition unit 310. Specifically, according to the connection request information sent by the mobile terminal obtained by the request information obtaining unit 310, the wireless point-to-point connection can be completed. At the same time, after the wireless point-to-point connection is successful, the terminal sends basic information such as its own name, MAC, and IP to the mobile terminal, and the mobile terminal can send the hotspot information of the wireless hotspot to the terminal based on this information.
[0052] The hotspot information obtaining unit 330 is configured to obtain the hotspot information of the wireless hotspot sent by the mobile terminal according to the wireless point-to-point connection established by the point-to-point connection establishment unit 320 with the mobile terminal. Specifically, after the terminal and the mobile terminal have successfully established a wireless point-to-point connection, the data packet of the designated network port is monitored to obtain the wireless hotspot information sent from the mobile terminal.
[0053] Optionally, when acquiring the hotspot information of the wireless hotspot sent by the mobile terminal, the terminal can confirm whether the hotspot information of the wireless hotspot is received, and if the hotspot information of the wireless hotspot is received, a prompt message will be sent out. The hotspot information of the wireless hotspot can continue to monitor the hotspot information of the wireless hotspot sent by the mobile terminal. Among them, the hotspot information of the wireless hotspot includes service identification information such as SSID, BSSID, etc., and verification information such as Password, verification information, etc.
[0054] The wireless hotspot connection unit 340 is configured to establish a network connection with the wireless hotspot according to the hotspot information of the wireless hotspot sent by the mobile terminal and acquired by the hotspot information acquiring unit 330. Specifically, the wireless hotspot connection unit 340 further includes Figure 4 The wireless hotspot search unit 441, the wireless hotspot determination unit 442, the network connection establishment unit 443, and the request network establishment unit 444 are shown, wherein:
[0055] The wireless hotspot search unit 441 is used to search for wireless hotspots in the network. Specifically, searching for wireless hotspots in the network, there may be multiple wireless hotspots in the current network, hotspot information of all wireless hotspots existing in the network can be obtained, and a wireless hotspot information list can be generated.
[0056] The wireless hotspot determining unit 442 is configured to determine a wireless hotspot that matches the service identification information based on the wireless hotspots in the network searched by the wireless hotspot searching unit 441. Specifically, the received wireless hotspot information sent by the mobile terminal includes service identification information such as SSID and BSSID. According to the service identification information, the information list of the wireless hotspot can be found by comparing with the service identification information. Matching wireless hotspot; if the searched wireless hotspot cannot match the hotspot information sent by the received mobile terminal, it means that the wireless hotspot may have been hidden and not broadcast. At this time, the terminal needs to add a new network interface to the system, and Use the received SSID and password to try to connect to the designated wireless hotspot.
[0057] The network connection establishment unit 443 is configured to, if the wireless hotspot determining unit 442 determines that the wireless hotspot matching the service identification information is obtained, then the wireless hotspot matching the service identification information establishes a network connection. Specifically, the terminal uses the WIFI function to connect to the wireless hotspot in the base station mode, and initiates a connection request to the wireless hotspot with the same service identification information (such as SSID, BSSID) received from the mobile terminal.
[0058] The request network establishment unit 444 is configured to request the wireless hotspot to establish a network connection according to the verification information. Specifically, sending verification information such as a password to the wireless hotspot, requesting the wireless hotspot to establish a network connection according to the verification information, and when the wireless hotspot determines that the received verification information matches the verification information set by the hotspot AP information interface, The terminal can establish a wireless network connection with the wireless hotspot.
[0059] Optionally, after the terminal successfully establishes a network connection with the wireless hotspot and receives the information packet sent by the wireless hotspot, it can send feedback information to the mobile terminal, and at the same time display the current status on the terminal so that the user can determine The terminal successfully establishes a connection with the wireless hotspot. In addition, because the wireless point-to-point connection is not automatically disconnected after a successful connection, based on the connected wireless point-to-point connection, after the completion of the transmission of hotspot information, we can also use the wireless point-to-point connection for other applications, such as transferring files and transmitting other control information.
[0060] Please refer to Figure 5 , Figure 5 It is a schematic structural diagram of an embodiment of a mobile terminal proposed by the present invention. As shown in the figure, the embodiment of the present invention at least includes a request information sending unit 510 and a hotspot information sending unit 520, where:
[0061] The request information sending unit 510 is configured to send the wireless point-to-point connection request information to the terminal and establish a wireless point-to-point connection with the terminal. Specifically, like the terminal, the mobile terminal first confirms that the WIFI function is turned on and the P2P peer-to-peer function module is enabled. If the mobile terminal does not turn on the WIFI function, it can remind the user to turn on the WIFI function, and turn on the WIFI P2P peer-to-peer default search monitoring state , To search for the P2P point-to-point signal of the terminal, after searching for the P2P point-to-point signal, add it to the available point-to-point list provided by the mobile terminal. Then, according to the available point-to-point list provided, the user can select the terminal for which the connection request information is sent (because there may be multiple connected point-to-point devices). Finally, send connection request information to the terminal selected by the user. After receiving the connection request information, the terminal can establish a wireless point-to-point connection with the mobile terminal.
[0062] The hotspot information sending unit 520 is configured to send the hotspot information for establishing a network connection with the wireless hotspot to the terminal according to the establishment of a wireless point-to-point connection with the terminal, so that the terminal can send the terminal to the terminal according to the acquired The hotspot establishes network connection hotspot information, and establishes a network connection with the wireless hotspot. Specifically, the hotspot information sending unit 520 further includes: Image 6 The hotspot information acquiring unit 621, the wireless hotspot connecting unit 623, and the information sending unit 623 are shown, wherein:
[0063] The hotspot information obtaining unit 621 is configured to obtain the hotspot information of the wireless hotspot input by the user.
[0064] The wireless hotspot connection unit 622 is configured to establish a network connection with the wireless hotspot according to the hotspot information of the wireless hotspot input by the user acquired by the hotspot information acquiring unit 621.
[0065] The information sending unit 623 is configured to, if the wireless hotspot connection unit 622 successfully establishes a network connection with the wireless hotspot, call the private interface added as described above to obtain the hotspot information stored in the protocol file of the connected hotspot (ie establish a wireless connection with it) Basic information required). Specifically, after the wireless point-to-point connection is successful, the terminal sends its own name, MAC, IP and other basic information to the mobile terminal. The mobile terminal can send network data packets to the designated port of the terminal based on these basic information. The data part of the network data packet is The hotspot information required to connect to the hotspot read through the private interface.
[0066] The embodiment of the present invention provides a method, terminal and mobile terminal for wireless network connection. Acquire wireless point-to-point connection request information sent by the mobile terminal; establish a wireless point-to-point connection with the mobile terminal according to the acquired wireless point-to-point connection request information sent by the mobile terminal; acquire according to the wireless point-to-point connection established with the mobile terminal Hotspot information of the wireless hotspot sent by the mobile terminal; establishing a network connection with the wireless hotspot according to the acquired hotspot information of the wireless hotspot sent by the mobile terminal. The terminal can establish a network connection with the wireless hotspot without the need to configure a display screen and a keyboard, which makes the operation more simple and convenient, reduces the equipment cost, and improves the user experience.
[0067] The steps in the method of the embodiment of the present invention can be adjusted, merged, and deleted in order according to actual needs.
[0068] The units in the device of the embodiment of the present invention can be combined, divided, and deleted according to actual needs.
[0069] The unit in the embodiment of the present invention may be implemented by a general integrated circuit, such as a CPU (Central Processing Unit, central processing unit), or by an ASIC (Application Specific Integrated Circuit, application specific integrated circuit).
[0070] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
[0071] The above-disclosed are only preferred embodiments of the present invention. Of course, the scope of rights of the present invention cannot be limited by this. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.

Similar technology patents

Graphene film and preparation method therefor

Owner:CHANGZHOU FUXI TECH CO LTD

Classification and recommendation of technical efficacy words

  • Reduce equipment costs
  • easy to operate

Method and device for producing high-purity natural graphite

Owner:HEILONGJIANG UNIVERSITY OF SCIENCE AND TECHNOLOGY

PCB glue removing method in mode of vertically depositing copper wires

InactiveCN104735927AReduce equipment costsIncreased productivity in degumming
Owner:SHENZHEN SUNTAK MULTILAYER PCB

Low-temperature therapeutic equipment using coolant

InactiveCN101797179AReduce equipment costsPrevent backflow of brine
Owner:ZHEJIANG UNIV

Lancet device

InactiveUS7303573B2inexpensively mass-producedeasy to operate
Owner:ABBOTT DIABETES CARE INC

Rapid and non-invasive optical detection of internal bleeding

InactiveUS20050065436A1easy to operaterapid and accurate result
Owner:HO WINSTON ZONH +2
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products