CN106332217A - Wireless routing method and mobile terminal - Google Patents

Wireless routing method and mobile terminal Download PDF

Info

Publication number
CN106332217A
CN106332217A CN201610703835.2A CN201610703835A CN106332217A CN 106332217 A CN106332217 A CN 106332217A CN 201610703835 A CN201610703835 A CN 201610703835A CN 106332217 A CN106332217 A CN 106332217A
Authority
CN
China
Prior art keywords
mobile terminal
wifi
data
wifi module
module
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.)
Pending
Application number
CN201610703835.2A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610703835.2A priority Critical patent/CN106332217A/en
Publication of CN106332217A publication Critical patent/CN106332217A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a wireless routing method and a mobile terminal, relates to the technical field of communication and is to solve the problem of poor user use experience for the mobile terminal. The method comprises the following steps: a first WiFi module of a first mobile terminal receives first data to be sent to a target terminal by a second mobile terminal; a second WiFi module of the first mobile terminal sends the first data to a WiFi wireless router; the target terminal obtains the first data through the WiFi wireless router; the second WiFi module receives second data sent by the target terminal through the WiFi wireless router; and the second data is sent to the second mobile terminal through the first WiFi module, wherein the first WiFi module is in an AP work mode, and the second WiFi module is in an STA work mode. The wireless routing method is mainly applied to the mobile terminal.

Description

A kind of method of wireless routing and mobile terminal
Technical field
The present embodiments relate to communication technical field, particularly relate to method and the mobile terminal of a kind of wireless routing.
Background technology
Along with the development day by day of mobile terminal and mobile Internet, more people passes through obtaining information in mobile terminal.Due to Operator's cellular mobile network flow is the most limited and price comparison is expensive, and therefore user is obvious all the more to the dependence of free WiFi, WiFi has become as a part indispensable in life.
The coverage of WiFi is limited by road device hardware and WiFi communication environments by wireless.Have wireless is launched by road device WiFi scope less, and if WiFi travel to mobile phone when needing through wall, mobile terminal will be unable to search WiFi letter Number.Therefore, mobile terminal needs just to connect WiFi from wireless router is close.This makes the range of activity of user limited, gives User causes the biggest inconvenience, have impact on user's experience to mobile terminal.
Summary of the invention
The embodiment of the present invention provides method and the mobile terminal of a kind of wireless routing, to solve due to WiFi wireless router Range of signal is limited and mobile terminal cannot be connected user that WiFi caused is to poor the asking of mobile terminal experience Topic.
First aspect, it is provided that a kind of method of wireless routing, is applied to the first mobile terminal, and described method includes:
First WiFi module of described first mobile terminal receives the second mobile terminal and is sent to the first of target terminal Data;
By the second WiFi module of described first mobile terminal, described first data are sent to WiFi wireless router, Described target terminal obtains described first data by described WiFi wireless router;
Described second WiFi module receives the second data that described target terminal is sent by described WiFi wireless router;
By described first WiFi module, described second data are sent to described second mobile terminal;
Wherein, described first WiFi module is AP mode of operation, and described second WiFi module is STA mode of operation.
Second aspect, it is provided that a kind of method of wireless routing, is applied to the second mobile terminal, and described method includes:
Sending the first data to the first WiFi module of the first mobile terminal, wherein, described first data are for sending to mesh The data of mark terminal, described first data are sent to WiFi wireless routing by the second WiFi module of described first mobile terminal Device, described target terminal obtains described first data by described WiFi wireless router;
Receiving the second data that described first WiFi module sends, wherein, described second data are that described target terminal leads to Cross described WiFi wireless router and send the data to described second WiFi module;
Wherein, described first WiFi module is AP mode of operation, and described second WiFi module is STA mode of operation.
The third aspect, it is provided that a kind of mobile terminal, including:
First WiFi module, is sent to the first data of target terminal for receiving the second mobile terminal;
Second WiFi module, for sending the first data that described first WiFi module receives to WiFi wireless routing Device, described target terminal obtains described first data by described WiFi wireless router;
Described second WiFi module, is additionally operable to receive that described target terminal is sent by described WiFi wireless router the Two data;
Described first WiFi module, is additionally operable to the second data by described second WiFi module receives and sends to described second Mobile terminal;
Wherein, described first WiFi module is AP mode of operation, and described second WiFi module is STA mode of operation.
Fourth aspect, it is provided that a kind of mobile terminal, including:
Data transmission blocks, for sending the first data to the first WiFi module of the first mobile terminal, wherein, described the One data are to send the data to target terminal, and described first data are sent out by the second WiFi module of described first mobile terminal Delivering to WiFi wireless router, described target terminal obtains described first data by described WiFi wireless router;
Data reception module, for receiving the second data that described first WiFi module sends, wherein, described second data The data to described second WiFi module are sent by described WiFi wireless router for described target terminal;
Wherein, described first WiFi module is AP mode of operation, and described second WiFi module is STA mode of operation.
So, in the embodiment of the present invention, by arranging the first WiFi module in mobile terminal and the second WiFi module also It is made to be operated in ap mode and STA mode respectively, so that this mobile terminal not only can be set up with WiFi wireless router Connect and carry out data transmission, it is also possible to be connected with other mobile terminals as access point and carry out data transmission.Utilize this The scheme of bright embodiment can increase the mobile terminal WiFi transfer as other mobile terminals, thus avoids in prior art And the situation that make mobile terminal cannot connect WiFi limited due to WiFi wireless router range of signal.Therefore, this is utilized The scheme of bright embodiment improves user's experience to mobile terminal.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, required in the embodiment of the present invention being described below Accompanying drawing to be used is briefly described, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the present invention, For those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain according to these accompanying drawings Obtain other accompanying drawing.
Fig. 1 is the flow chart of the method for the wireless routing of first embodiment of the invention;
Fig. 2 is the flow chart of the method for the wireless routing of second embodiment of the invention;
Fig. 3 is the flow chart of the method for the wireless routing of third embodiment of the invention;
Fig. 4 is the annexation schematic diagram of each mobile terminal in the embodiment of the present invention three;
Fig. 5 is one of schematic diagram of mobile terminal of fourth embodiment of the invention;
Fig. 6 is the two of the schematic diagram of the mobile terminal of fourth embodiment of the invention;
Fig. 7 is one of schematic diagram of the second WiFi module in fourth embodiment of the invention;
Fig. 8 is in fourth embodiment of the invention the two of the schematic diagram of the second WiFi module;
Fig. 9 is the schematic diagram of the first connection establishment module in fourth embodiment of the invention;
Figure 10 is the schematic diagram of the second connection establishment module in fourth embodiment of the invention;
Figure 11 is the schematic diagram of the mobile terminal of fifth embodiment of the invention;
Figure 12 is the schematic diagram of the mobile terminal of sixth embodiment of the invention;
Figure 13 is one of schematic diagram of mobile terminal of seventh embodiment of the invention;
Figure 14 is the two of the schematic diagram of the mobile terminal of seventh embodiment of the invention;
Figure 15 is the schematic diagram of the mobile terminal of eighth embodiment of the invention;
Figure 16 is the schematic diagram of the mobile terminal of ninth embodiment of the invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments wholely.Based on this Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise Example, broadly falls into the scope of protection of the invention.
Current mobile terminal typically uses a semiduplex WiFi module.WiFi module has two kinds of mode of operation: AP (Access Point, access point) pattern and STA (Station, website) pattern.Under ap mode, mobile terminal provides wireless Access service, it is allowed to other wireless device accesses, it is provided that data access.Under STA mode, mobile terminal is similar to wireless end End, itself does not accept wireless access, and it may be coupled to AP.
The transmission of semiduplex data allows data to transmit in the two directions, but at a time, this transmission means Only allowing data to transmit in one direction, therefore it is actually the simplex of a kind of switching direction.So current shifting Dynamic terminal, in some moment, can only carry out one-way communication with other equipment.Due to only one of which WiFi module, then a certain Individual moment mobile terminal can only operate in a kind of pattern, STA mode or ap mode.
First embodiment
As it is shown in figure 1, the method for the wireless routing of first embodiment of the invention, it is applied to the first mobile terminal, including:
Step 101, the first WiFi module of the first mobile terminal receive the second mobile terminal and are sent to target terminal First data.
In embodiments of the present invention, the terminal of the transfer WiFi as other mobile terminals is referred to as the first mobile terminal, The other-end setting up wireless connections with the first mobile terminal is referred to as the second mobile terminal.
Wherein, the first mobile terminal arranges two WIFi modules, be the first WiFi module and the 2nd WiFi mould respectively Block.Wherein, the first WiFi module is operated in ap mode, and the second WiFi module is operated in STA mode.
The first WiFi module being operated under ap mode can set up wireless connections with the second mobile terminal, and is operated in STA The second WiFi module under pattern can set up wireless connections with WIFi wireless router, thus process the second mobile terminal and need to send The data (the second data) that need to send to the second mobile terminal to data (the first data) or the target terminal of target terminal.
Step 102, by the second WiFi module of the first mobile terminal by first data send to WiFi wireless router, Target terminal obtains the first data by WiFi wireless router.
After receiving the first data by the first WiFi module, the second WiFi module send it to WiFi without circuit By device, to be sent it to target terminal by WiFi wireless router.
Step 103, the second WiFi module receive the second data that target terminal is sent by WiFi wireless router.
Step 104, by the first WiFi module by second data send to the second mobile terminal.
In this step, in order to send the data to the second mobile terminal accurately, can be carried out by following either type Process:
Mode one, the terminal iidentification obtained in the second data, it is judged that terminal iidentification whether with the mark of the second mobile terminal Match.If the mark coupling of terminal iidentification and the second mobile terminal, then by the first WiFi module, the second data are sent extremely Second mobile terminal.
The terminal iidentification that mode two, reception WiFi wireless router send, it is judged that whether terminal iidentification moves end with second The mark of end matches.If the mark coupling of terminal iidentification and the second mobile terminal, then by the first WiFi module by the second number According to sending to the second mobile terminal.
The difference of mode one and mode two is, during in mode one, terminal iidentification is included in the second data, in mode In two, WiFi wireless router then needs individually to retransmit terminal iidentification.
By above it can be seen that in the embodiment of the present invention, by arranging the first WiFi module and second in mobile terminal WiFi module also makes it be operated in ap mode and STA mode respectively, so that this mobile terminal not only can be wireless with WiFi Router is set up to connect and is also carried out data transmission, it is also possible to is connected with other mobile terminals as access point and carries out data biography Defeated.The scheme utilizing the embodiment of the present invention can increase the mobile terminal WiFi transfer as other mobile terminals, thus avoids And the situation that make mobile terminal cannot connect WiFi due to WiFi wireless router range of signal limited in prior art.Cause This, utilize the scheme of the embodiment of the present invention to improve user's experience to mobile terminal.
Second embodiment
As in figure 2 it is shown, the method for the wireless routing of second embodiment of the invention, it is applied to the second mobile terminal, including:
Step 201, send the first data to the first WiFi module of the first mobile terminal.
Wherein, the first data are to send the data to target terminal, and the first data pass through the second of the first mobile terminal WiFi module sends to WiFi wireless router, and target terminal obtains the first data by WiFi wireless router;
Step 202, receive first WiFi module send the second data.
Wherein, the second data are that target terminal passes through WiFi wireless router and sends to the data of the second WiFi module;
Wherein, the first WiFi module is AP mode of operation, and the second WiFi module is STA mode of operation.
By above it can be seen that in the embodiment of the present invention, by arranging the first WiFi module and second in mobile terminal WiFi module also makes it be operated in ap mode and STA mode respectively, so that this mobile terminal not only can be wireless with WiFi Router is set up to connect and is also carried out data transmission, it is also possible to is connected with other mobile terminals as access point and carries out data biography Defeated.The scheme utilizing the embodiment of the present invention can increase the mobile terminal WiFi transfer as other mobile terminals, thus avoids And the situation that make mobile terminal cannot connect WiFi due to WiFi wireless router range of signal limited in prior art.Cause This, utilize the scheme of the embodiment of the present invention to improve user's experience to mobile terminal.
3rd embodiment
As it is shown on figure 3, the method for the wireless routing of third embodiment of the invention, it is applied to mobile terminal, including:
Step 301, the first WiFi module and the second WiFi module are set in the first mobile terminal.
Wherein, the first WiFi module is operated in ap mode, and the second WiFi module is operated in STA mode.Certainly, specifically should Also the first WiFi module can be arranged to STA mode in, the second WiFi module is arranged to ap mode, its principle is identical.
Step 302, control second WiFi module search WiFi wireless router launch WiFi signal, based on search WiFi signal, sets up wireless connections with WiFi wireless router.
Concrete, based on the described WiFi signal searched, send the second connection request to described WiFi wireless router. When after the instruction that described second connection request receiving the transmission of described WiFi wireless router is verified, by described second WiFi module sets up the wireless connections of described first mobile terminal and described WiFi wireless router.
Such as, after WiFi wireless router is started working, control the described second WiFi module described WiFi of search wireless The WiFi signal that router is launched.Second WiFi module sends the second connection request to WiFi wireless router, in this second company The request of connecing includes the connection password for connecting WiFi wireless router.This connection password is tested by WiFi wireless router Card, if this connection password is correct, then sends the information being verified the second connection request to the second WiFi module.Afterwards, Two WiFi module and WiFi wireless router set up wireless connections.
Step 303, control first WiFi module open Wi-Fi hotspot share network, share network based on Wi-Fi hotspot, with Second mobile terminal sets up wireless connections.
Concrete, share network based on described Wi-Fi hotspot, the first connection receiving described second mobile terminal transmission please Ask, and according to described first connection request, described second mobile terminal is verified.When described second mobile terminal is tested Card result be by time, to the described second mobile terminal transmission instruction that is verified of described first connection request, and pass through institute State the first WiFi module and set up the wireless connections of described first mobile terminal and described second mobile terminal.
Accordingly, for the second mobile terminal, the Wi-Fi hotspot searching for described first mobile terminal unlatching shares net Network, shares network based on the Wi-Fi hotspot searched, and sets up wireless connections with described first mobile terminal.Concrete, based on searching Rope to Wi-Fi hotspot share network, send the first connection request to described first mobile terminal.Move when receiving described first After the instruction that described first connection request that dynamic terminal sends is verified, set up and described the by described first WiFi module The wireless connections of one mobile terminal.
Such as, after the first WiFi module is started working, receive the first connection request of the second mobile terminal, this first Connection request includes the user name for connecting the first WiFi module and connects password.First WiFi module to this user name and Connecting password to verify, if this user name and connection password are correct, then connecting to the second mobile terminal transmission described first please Ask the instruction being verified, set up the wireless connections with described first mobile terminal by described first WiFi module.
As shown in Figure 4, the first mobile terminal may be connected to WiFi wireless router, and can be as multiple second mobile terminals WiFi transfer.Wherein, step 302 and step 303 there is no sequencing relation.
Step 304, the first WiFi module of the first mobile terminal receive the second mobile terminal and are sent to target terminal First data.
Step 305, by the second WiFi module of the first mobile terminal by first data send to WiFi wireless router, Target terminal obtains the first data by WiFi wireless router.
Step 306, the second WiFi module receive the second data that target terminal is sent by WiFi wireless router;
Step 307, by the first WiFi module by second data send to the second mobile terminal.
By above it can be seen that utilize the scheme of the embodiment of the present invention can increase mobile terminal as other mobile terminals WiFi transfer, thus avoid prior art makes owing to WiFi wireless router range of signal is limited mobile terminal without Method connects the situation of WiFi.Therefore, the scheme utilizing the embodiment of the present invention improves user's experience to mobile terminal.Meanwhile, The most also the data safety of the second mobile terminal can be ensured.
4th embodiment
Fig. 5 is the block diagram of the mobile terminal of fourth embodiment of the invention.Mobile terminal 500 shown in Fig. 5 includes: first WiFi module the 501, second WiFi module 502.
Wherein, the first WiFi module 501, the first data of target terminal it are sent to for receiving the second mobile terminal; Second WiFi module 502, sends to WiFi wireless router, target for the first data received by the first WiFi module 501 Terminal obtains the first data by WiFi wireless router;
Second WiFi module 502, is additionally operable to receive the second data that target terminal is sent by WiFi wireless router;The One WiFi module 501, the second data being additionally operable to receive the second WiFi module 502 send to the second mobile terminal.Wherein, One WiFi module is AP mode of operation, and the second WiFi module is STA mode of operation.
As shown in Figure 6, mobile terminal 500 also includes:
Control module 503, for controlling the WiFi signal that the first WiFi module search WiFi wireless router is launched;First Connection establishment module 504, for based on the WiFi signal searched, sets up wireless connections with WiFi wireless router;Control mould Block 503 is additionally operable to, and controls the second WiFi module unlatching Wi-Fi hotspot and shares network;Second connection establishment module 505, for based on Wi-Fi hotspot shares network, sets up wireless connections with the second mobile terminal.
Wherein, as it is shown in fig. 7, the second WiFi module 502 includes:
Mark obtains submodule 5021, for obtaining the terminal iidentification in the second data;First judges submodule 5022, uses In judging that mark obtains terminal iidentification that submodule 5021 the obtains mark whether with the second mobile terminal and matches;First sends Submodule 5023, if judging that submodule 5022 judges the mark coupling of terminal iidentification and the second mobile terminal for first, then will Second data send to the second mobile terminal.
Wherein, as shown in Figure 8, the second WiFi module 502 includes:
Receive submodule 5024, for receiving the terminal iidentification that WiFi wireless router sends;Second judges submodule 5025, match for judging to receive terminal iidentification that submodule 5024 the receives mark whether with the second mobile terminal;Second Send submodule 5026, if judging that submodule 5025 judges the mark coupling of terminal iidentification and the second mobile terminal for second, Then the second data are sent to the second mobile terminal.
Wherein, as it is shown in figure 9, the first connection establishment module 504 includes:
Connection request sends submodule 5041, for based on the WiFi signal searched, sending to WiFi wireless router Second connection request;First connection establishment submodule 5042, for when receiving the second connection that WiFi wireless router sends After the instruction that requests verification is passed through, set up the wireless connections of mobile terminal and WiFi wireless router by the second WiFi module.
Wherein, as shown in Figure 10, the second connection establishment module 505 includes:
Connection request receives submodule 5051, for sharing network based on Wi-Fi hotspot, receives the second mobile terminal and sends The first connection request;Checking submodule 5052, for receiving, according to connection request, the first connection request that submodule receives, right Second mobile terminal is verified;Second connection establishment submodule 5053, for when to verifying that submodule is to the second mobile terminal The result be by time, send, to the second mobile terminal, the instruction that the first connection request is verified, and by first WiFi module sets up mobile terminal and the wireless connections of the second mobile terminal.
Mobile terminal 500 is capable of each process that in the embodiment of the method for Fig. 1 or Fig. 3, mobile terminal realizes, for keeping away Exempt to repeat, repeat no more here.
By above it can be seen that utilize the scheme of the embodiment of the present invention can increase mobile terminal as other mobile terminals WiFi transfer, thus avoid prior art makes owing to WiFi wireless router range of signal is limited mobile terminal without Method connects the situation of WiFi.Therefore, the scheme utilizing the embodiment of the present invention improves user's experience to mobile terminal.Meanwhile, The most also the data safety of the second mobile terminal can be ensured.
5th embodiment
Figure 11 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 1100 shown in Figure 11 includes: At least one processor 1101, memorizer 1102, at least one network interface 1104 and user interface 1103.Mobile terminal 1100 In each assembly be coupled by bus system 1105.It is understood that bus system 1105 be used for realizing these assemblies it Between connection communication.Bus system 1105, in addition to including data/address bus, also includes power bus, controls bus and status signal Bus.But for the sake of understanding explanation, in fig. 11 various buses are all designated as bus system 1105.
Wherein, user interface 1103 can include display, keyboard or pointing device (such as, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
The memorizer 1102 being appreciated that in the embodiment of the present invention can be volatile memory or non-volatile memories Device, maybe can include volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read only memory (Read-Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), erasable programmable are only Read memorizer (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, Or flash memory EEPROM).Volatile memory can be random access memory (Random Access Memory, RAM), and it is used Make External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static random-access Memorizer (Stat ic RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random are deposited Access to memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhancement mode Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links dynamic random access memory (Synch link DRAM, SLDRAM) and direct rambus are random Access memorizer (Direct Ram bus RAM, DRRAM).The memorizer 1102 of system and method described herein is intended to include But it is not limited to these and the memorizer of other applicable type any.
In some embodiments, memorizer 1102 stores following element, executable module or data structure, or Their subset of person, or their superset: operating system 11021 and application program 11022.
Wherein, operating system 11021, comprise various system program, such as ccf layer, core library layer, driving layer etc., be used for Realize various basic business and process hardware based task.Application program 11022, comprises various application program, such as matchmaker Body player (Media Player), browser (Browser) etc., be used for realizing various applied business.Realize the present invention to implement The program of example method may be embodied in application program 11022.
In embodiments of the present invention, by calling program or the instruction of memorizer 1102 storage, concrete, can be application The program stored in program 11022 or instruction, processor 1101 is used for:
First WiFi module of the first mobile terminal receives the second mobile terminal and is sent to the first data of target terminal; Being sent the first data to WiFi wireless router by the second WiFi module of the first mobile terminal, target terminal passes through WiFi Wireless router obtains the first data;Second WiFi module receives the second number that target terminal is sent by WiFi wireless router According to;By the first WiFi module, the second data are sent to the second mobile terminal;Wherein, the first WiFi module is AP Working mould Formula, the second WiFi module is STA mode of operation.
The method that the invention described above embodiment discloses can apply in processor 1101, or real by processor 1101 Existing.Processor 1101 is probably a kind of IC chip, has the disposal ability of signal.During realizing, said method Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 1101 or software form.Above-mentioned Processor 1101 can be general processor, digital signal processor (Digital Signal Processor, DSP), special Integrated circuit (Appl ication Specific Integrated Circui t, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor are patrolled Collect device, discrete hardware components.Can realize or perform disclosed each method, step and the box in the embodiment of the present invention Figure.The processor etc. that general processor can be microprocessor or this processor can also be any routine.In conjunction with the present invention The step of the method disclosed in embodiment can be embodied directly in hardware decoding processor and perform, or uses decoding processor In hardware and software module combination execution complete.Software module may be located at random access memory, and flash memory, read only memory can In the storage medium that this areas such as program read-only memory or electrically erasable programmable memorizer, depositor are ripe.This storage Medium is positioned at memorizer 1102, and processor 1101 reads the information in memorizer 1102, completes said method in conjunction with its hardware Step.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its Combination realizes.Realizing for hardware, processing unit can be implemented in one or more special IC (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, Controller, microcontroller, microprocessor, for performing in other electronic unit or a combination thereof of the application function.
Software is realized, skill herein can be realized by the module (such as process, function etc.) performing function herein Art.Software code is storable in performing in memorizer and by processor.Memorizer can be within a processor or outside processor Portion realizes.
Alternatively, processor 1101 is additionally operable to: control the WiFi that the second WiFi module search WiFi wireless router is launched Signal;Based on the WiFi signal searched, set up wireless connections with WiFi wireless router;Control the first WiFi module to open Wi-Fi hotspot shares network;Share network based on Wi-Fi hotspot, set up wireless connections with the second mobile terminal.
Alternatively, processor 1101 is additionally operable to: obtain the terminal iidentification in the second data;Judge that whether terminal iidentification is with The mark of two mobile terminals matches;If the mark coupling of terminal iidentification and the second mobile terminal, then by the first WiFi module Second data are sent to the second mobile terminal.
As another embodiment, processor 1101 is additionally operable to: receive the terminal iidentification that WiFi wireless router sends;Sentence Disconnected terminal iidentification whether mark with the second mobile terminal matches;If the mark coupling of terminal iidentification and the second mobile terminal, Then by the first WiFi module, the second data are sent to the second mobile terminal.
As another embodiment, processor 1101 is additionally operable to: share network based on Wi-Fi hotspot, receives second and moves end The first connection request that end sends;According to the first connection request, the second mobile terminal is verified;When to the second mobile terminal The result be by time, send, to the second mobile terminal, the instruction that the first connection request is verified, and by first WiFi module sets up the first mobile terminal and the wireless connections of the second mobile terminal.
As another embodiment, processor 1101 is additionally operable to: based on the WiFi signal searched, to WiFi wireless routing Device sends the second connection request;After receiving the instruction that is verified of the second connection request that WiFi wireless router sends, The wireless connections of the first mobile terminal and WiFi wireless router are set up by the second WiFi module.
Mobile terminal 1100 is capable of each process that in previous embodiment, mobile terminal realizes, for avoiding repeating, this In repeat no more.
By above it can be seen that utilize the scheme of the embodiment of the present invention can increase mobile terminal as other mobile terminals WiFi transfer, thus avoid prior art makes owing to WiFi wireless router range of signal is limited mobile terminal without Method connects the situation of WiFi.Therefore, the scheme utilizing the embodiment of the present invention improves user's experience to mobile terminal.Meanwhile, The most also the data safety of the second mobile terminal can be ensured.
Sixth embodiment
Figure 12 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile end in Figure 12 End 1200 can be mobile phone, panel computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted Computer etc..
Mobile terminal 1200 in Figure 12 include radio frequency (Radio Frequency, RF) circuit 1210, memorizer 1220, Input block 1230, display unit 1240, processor 1260, voicefrequency circuit 1270, WiFi (Wireless Fidelity) module 12120 and power supply 1290.
Wherein, input block 1230 can be used for receiving numeral or the character information of user's input, and produce and move eventually The user setup of end 1200 and function control relevant signal input.Specifically, in the embodiment of the present invention, this input block 1230 can include contact panel 1231.Contact panel 1231, also referred to as touch screen, can collect user and thereon or neighbouring touch Touch operation (such as user uses any applicable object such as finger, stylus or adnexa operation on contact panel 1231), and Corresponding attachment means is driven according to formula set in advance.Optionally, contact panel 1231 can include touch detecting apparatus and Two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect the letter that touch operation brings Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into Contact coordinate, then give this processor 1260, and order that processor 1260 sends can be received and performed.Furthermore, it is possible to The polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave are used to realize contact panel 1231.Except contact panel 1231, input block 1230 can also include other input equipments 1232, and other input equipments 1232 can include but not limited to One or many in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. Kind.
Wherein, display unit 1240 can be used for showing the information inputted by user or the information being supplied to user and movement The various menu interfaces of terminal 1200.Display unit 1240 can include display floater 1241, optionally, can use LCD or have The forms such as machine light emitting diode (Organic Light-Emitting Diode, OLED) configure display floater 1241.
It should be noted that contact panel 1231 can cover display floater 1241, formed and touch display screen, when this touch display screen Detect thereon or after neighbouring touch operation, send processor 1260 to determine the type of touch event, with post processing Device 1260 provides corresponding visual output according to the type of touch event on touch display screen.
Touch display screen and include Application Program Interface viewing area and conventional control viewing area.This Application Program Interface viewing area And the arrangement mode of this conventional control viewing area does not limit, can be arranged above and below, left-right situs etc. can be distinguished two and show Show the arrangement mode in district.This Application Program Interface viewing area is displayed for the interface of application program.Each interface is permissible The interface elements such as the icon and/or the widget desktop control that comprise at least one application program.This Application Program Interface viewing area It can also be the empty interface not comprising any content.This conventional control viewing area is for showing the control that utilization rate is higher, such as, The application icons etc. such as settings button, interface numbering, scroll bar, phone directory icon.
Wherein processor 1260 is the control centre of mobile terminal 1200, utilizes various interface and the whole mobile phone of connection Various piece, be stored in the software program in first memory 1221 and/or module by running or performing, and call and deposit Storage data in second memory 1222, perform the various functions of mobile terminal 1200 and process data, thus to moving eventually End 1200 carries out integral monitoring.Optionally, processor 1260 can include one or more processing unit.
In embodiments of the present invention, by call the software program and/or module stored in this first memory 1221 and/ Or the data in this second memory 1222, processor 1260 is used for:
First WiFi module of the first mobile terminal receives the second mobile terminal and is sent to the first data of target terminal; Being sent the first data to WiFi wireless router by the second WiFi module of the first mobile terminal, target terminal passes through WiFi Wireless router obtains the first data;Second WiFi module receives the second number that target terminal is sent by WiFi wireless router According to;By the first WiFi module, the second data are sent to the second mobile terminal;Wherein, the first WiFi module is AP Working mould Formula, the second WiFi module is STA mode of operation.
Optionally, processor 1260 is used for: control the WiFi letter that the first WiFi module search WiFi wireless router is launched Number;Based on the WiFi signal searched, set up wireless connections with WiFi wireless router;Control the second WiFi module and open WiFi Focus shares network;Share network based on Wi-Fi hotspot, set up wireless connections with the second mobile terminal.
Optionally, processor 1260 is used for: obtain the terminal iidentification in the second data;Judge that whether terminal iidentification is with second The mark of mobile terminal matches;If the mark coupling of terminal iidentification and the second mobile terminal, then will by the first WiFi module Second data send to the second mobile terminal.
Optionally, processor 1260 is used for: receive the terminal iidentification that WiFi wireless router sends;Judge that terminal iidentification is No and the second mobile terminal mark matches;If the mark coupling of terminal iidentification and the second mobile terminal, then by first Second data are sent to the second mobile terminal by WiFi module.
Optionally, processor 1260 is used for: share network based on Wi-Fi hotspot, receives the first of the second mobile terminal transmission Connection request;According to the first connection request, the second mobile terminal is verified;When to the result of the second mobile terminal being By time, send, to the second mobile terminal, the instruction that the first connection request is verified, and set up by the first WiFi module One mobile terminal and the wireless connections of the second mobile terminal.
Optionally, processor 1260 is used for: based on the WiFi signal searched, send second even to WiFi wireless router Connect request;When after the instruction that the second connection request receiving the transmission of WiFi wireless router is verified, by the 2nd WiFi Module sets up the wireless connections of the first mobile terminal and WiFi wireless router.
Mobile terminal 1200 is capable of each process that in previous embodiment, mobile terminal realizes, for avoiding repeating, this In repeat no more.
By above it can be seen that utilize the scheme of the embodiment of the present invention can increase mobile terminal as other mobile terminals WiFi transfer, thus avoid prior art makes owing to WiFi wireless router range of signal is limited mobile terminal without Method connects the situation of WiFi.Therefore, the scheme utilizing the embodiment of the present invention improves user's experience to mobile terminal.Meanwhile, The most also the data safety of the second mobile terminal can be ensured.
7th embodiment
Figure 13 is the block diagram of the mobile terminal of fourth embodiment of the invention.Mobile terminal 1300 shown in Figure 13 includes:
Data transmission blocks 1301, for sending the first data to the first WiFi module of the first mobile terminal, wherein, the One data are to send the data to target terminal, and the first data are sent to WiFi by the second WiFi module of the first mobile terminal Wireless router, target terminal obtains the first data by WiFi wireless router;Data reception module 1302, for reception The second data that one WiFi module sends, wherein, the second data are that target terminal passes through the transmission of WiFi wireless router to second The data of WiFi module;Wherein, the first WiFi module is AP mode of operation, and the second WiFi module is STA mode of operation.
As shown in figure 14, mobile terminal 1300 also includes: network search module 1303, opens for search the first mobile terminal The Wi-Fi hotspot opened shares network;Connection establishment module 1304, is total to for the Wi-Fi hotspot searched based on network search module Enjoy network, set up wireless connections with the first mobile terminal.
Wherein, connection establishment module 1304 includes: connection request sending module, for based on the Wi-Fi hotspot searched altogether Enjoy network, send the first connection request to the first mobile terminal;Connection establishment submodule, for when receiving the first mobile terminal After the instruction that the first connection request sent is verified, set up the wireless company with the first mobile terminal by the first WiFi module Connect.
Mobile terminal 1300 is capable of each process that in earlier figures 2 or embodiment illustrated in fig. 3, mobile terminal realizes, for Avoid repeating, repeat no more here.
By above it can be seen that utilize the scheme of the embodiment of the present invention can increase mobile terminal as other mobile terminals WiFi transfer, thus avoid prior art makes owing to WiFi wireless router range of signal is limited mobile terminal without Method connects the situation of WiFi.Therefore, the scheme utilizing the embodiment of the present invention improves user's experience to mobile terminal.Meanwhile, The most also the data safety of the second mobile terminal can be ensured.
8th embodiment
Figure 15 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 1500 shown in Figure 15 includes: At least one processor 1501, memorizer 1502, at least one network interface 1504 and user interface 1503.Mobile terminal 1500 In each assembly be coupled by bus system 1505.It is understood that bus system 1505 be used for realizing these assemblies it Between connection communication.Bus system 1505, in addition to including data/address bus, also includes power bus, controls bus and status signal Bus.But for the sake of understanding explanation, in fig .15 various buses are all designated as bus system 1505.
Wherein, user interface 1503 can include display, keyboard or pointing device (such as, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
The memorizer 1502 being appreciated that in the embodiment of the present invention can be volatile memory or non-volatile memories Device, maybe can include volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read only memory (Read-Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), erasable programmable are only Read memorizer (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, Or flash memory EEPROM).Volatile memory can be random access memory (Random Access Memory, RAM), and it is used Make External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static random-access Memorizer (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random-access Memorizer (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhancement mode Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronize Connect dynamic random access memory (Synch link DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memorizer 1502 of system and method described herein is intended to include but not limited to this A little and arbitrarily other applicable type memorizer.
In some embodiments, memorizer 1502 stores following element, executable module or data structure, or Their subset of person, or their superset: operating system 15021 and application program 15022.
Wherein, operating system 15021, comprise various system program, such as ccf layer, core library layer, driving layer etc., be used for Realize various basic business and process hardware based task.Application program 15022, comprises various application program, such as matchmaker Body player (Media Player), browser (Browser) etc., be used for realizing various applied business.Realize the present invention to implement The program of example method may be embodied in application program 15022.
In embodiments of the present invention, by calling program or the instruction of memorizer 1502 storage, concrete, can be application The program stored in program 15022 or instruction, processor 1501 is used for:
Sending the first data to the first WiFi module of the first mobile terminal, wherein, the first data are for sending to target eventually The data of end, the first data are sent to WiFi wireless router, target terminal by the second WiFi module of the first mobile terminal The first data are obtained by WiFi wireless router;Receiving the second data that the first WiFi module sends, wherein, the second data are Target terminal sends the data to the second WiFi module by WiFi wireless router;Wherein, the first WiFi module is AP work Pattern, the second WiFi module is STA mode of operation.
The method that the invention described above embodiment discloses can apply in processor 1501, or real by processor 1501 Existing.Processor 1501 is probably a kind of IC chip, has the disposal ability of signal.During realizing, said method Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 1501 or software form.Above-mentioned Processor 1501 can be general processor, digital signal processor (Digital Signal Processor, DSP), special Integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components.Can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General The processor etc. that processor can be microprocessor or this processor can also be any routine.In conjunction with embodiment of the present invention institute The step of disclosed method can be embodied directly in hardware decoding processor and perform, or with the hardware in decoding processor And software module combination execution completes.Software module may be located at random access memory, and flash memory, read only memory are able to programme read-only In the storage medium that this areas such as memorizer or electrically erasable programmable memorizer, depositor are ripe.This storage medium is positioned at Memorizer 1502, processor 1501 reads the information in memorizer 1502, completes the step of said method in conjunction with its hardware.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its Combination realizes.Realizing for hardware, processing unit can be implemented in one or more special IC (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, Controller, microcontroller, microprocessor, for performing in other electronic unit or a combination thereof of the application function.
Software is realized, skill herein can be realized by the module (such as process, function etc.) performing function herein Art.Software code is storable in performing in memorizer and by processor.Memorizer can be within a processor or outside processor Portion realizes.
Alternatively, processor 1501 is additionally operable to: the Wi-Fi hotspot searching for the first mobile terminal unlatching shares network;Based on searching Rope to Wi-Fi hotspot share network, set up wireless connections with the first mobile terminal.
Alternatively, processor 1501 is additionally operable to: share network based on the Wi-Fi hotspot searched, and sends out to the first mobile terminal Send the first connection request;After receiving the instruction that is verified of the first connection request that the first mobile terminal sends, by the One WiFi module sets up the wireless connections with the first mobile terminal.
Mobile terminal 1500 is capable of each process that in previous embodiment, mobile terminal realizes, for avoiding repeating, this In repeat no more.
By above it can be seen that utilize the scheme of the embodiment of the present invention can increase mobile terminal as other mobile terminals WiFi transfer, thus avoid prior art makes owing to WiFi wireless router range of signal is limited mobile terminal without Method connects the situation of WiFi.Therefore, the scheme utilizing the embodiment of the present invention improves user's experience to mobile terminal.Meanwhile, The most also the data safety of the second mobile terminal can be ensured.
9th embodiment
Figure 16 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile end in Figure 16 End 1600 can be mobile phone, panel computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted Computer etc..
Mobile terminal 1600 in Figure 16 include radio frequency (Radio Frequency, RF) circuit 1610, memorizer 1620, Input block 1630, display unit 1640, processor 1660, voicefrequency circuit 1670, WiFi (Wireless Fidelity) module 16160 and power supply 1690.
Wherein, input block 1630 can be used for receiving numeral or the character information of user's input, and produce and move eventually The user setup of end 1600 and function control relevant signal input.Specifically, in the embodiment of the present invention, this input block 1630 can include contact panel 1631.Contact panel 1631, also referred to as touch screen, can collect user and thereon or neighbouring touch Touch operation (such as user uses any applicable object such as finger, stylus or adnexa operation on contact panel 1631), and Corresponding attachment means is driven according to formula set in advance.Optionally, contact panel 1631 can include touch detecting apparatus and Two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect the letter that touch operation brings Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into Contact coordinate, then give this processor 1660, and order that processor 1660 sends can be received and performed.Furthermore, it is possible to The polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave are used to realize contact panel 1631.Except contact panel 1631, input block 1630 can also include other input equipments 1632, and other input equipments 1632 can include but not limited to One or many in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. Kind.
Wherein, display unit 1640 can be used for showing the information inputted by user or the information being supplied to user and movement The various menu interfaces of terminal 1600.Display unit 1640 can include display floater 1641, optionally, can use LCD or have The forms such as machine light emitting diode (Organic Light-Emitting Diode, OLED) configure display floater 1641.
It should be noted that contact panel 1631 can cover display floater 1641, formed and touch display screen, when this touch display screen Detect thereon or after neighbouring touch operation, send processor 1660 to determine the type of touch event, with post processing Device 1660 provides corresponding visual output according to the type of touch event on touch display screen.
Touch display screen and include Application Program Interface viewing area and conventional control viewing area.This Application Program Interface viewing area And the arrangement mode of this conventional control viewing area does not limit, can be arranged above and below, left-right situs etc. can be distinguished two and show Show the arrangement mode in district.This Application Program Interface viewing area is displayed for the interface of application program.Each interface is permissible The interface elements such as the icon and/or the widget desktop control that comprise at least one application program.This Application Program Interface viewing area It can also be the empty interface not comprising any content.This conventional control viewing area is for showing the control that utilization rate is higher, such as, The application icons etc. such as settings button, interface numbering, scroll bar, phone directory icon.
Wherein processor 1660 is the control centre of mobile terminal 1600, utilizes various interface and the whole mobile phone of connection Various piece, be stored in the software program in first memory 1621 and/or module by running or performing, and call and deposit Storage data in second memory 1622, perform the various functions of mobile terminal 1600 and process data, thus to moving eventually End 1600 carries out integral monitoring.Optionally, processor 1660 can include one or more processing unit.
In embodiments of the present invention, by call the software program and/or module stored in this first memory 1621 and/ Or the data in this second memory 1622, processor 1660 is used for:
Sending the first data to the first WiFi module of the first mobile terminal, wherein, the first data are for sending to target eventually The data of end, the first data are sent to WiFi wireless router, target terminal by the second WiFi module of the first mobile terminal The first data are obtained by WiFi wireless router;Receiving the second data that the first WiFi module sends, wherein, the second data are Target terminal sends the data to the second WiFi module by WiFi wireless router;Wherein, the first WiFi module is AP work Pattern, the second WiFi module is STA mode of operation.
Optionally, processor 1660 is used for: the Wi-Fi hotspot searching for the first mobile terminal unlatching shares network;Based on search To Wi-Fi hotspot share network, set up wireless connections with the first mobile terminal.
Optionally, processor 1660 is used for: share network based on the Wi-Fi hotspot searched, and sends to the first mobile terminal First connection request;When after the instruction that the first connection request receiving the first mobile terminal transmission is verified, by first WiFi module sets up the wireless connections with the first mobile terminal.
Mobile terminal 1600 is capable of each process that in previous embodiment, mobile terminal realizes, for avoiding repeating, this In repeat no more.
By above it can be seen that utilize the scheme of the embodiment of the present invention can increase mobile terminal as other mobile terminals WiFi transfer, thus avoid prior art makes owing to WiFi wireless router range of signal is limited mobile terminal without Method connects the situation of WiFi.Therefore, the scheme utilizing the embodiment of the present invention improves user's experience to mobile terminal.Meanwhile, The most also the data safety of the second mobile terminal can be ensured.
Those of ordinary skill in the art are it is to be appreciated that combine the list of each example that the embodiments described herein describes Unit and algorithm steps, it is possible to being implemented in combination in of electronic hardware or computer software and electronic hardware.These functions are actually Perform with hardware or software mode, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel Each specifically should being used for can be used different methods to realize described function, but this realization is it is not considered that exceed The scope of the present invention.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, the system of foregoing description, The specific works process of device and unit, is referred to the corresponding process in preceding method embodiment, does not repeats them here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be passed through other Mode realizes.Such as, device embodiment described above is only schematically, such as, the division of unit, it is only one Logic function divides, actual can have when realizing other dividing mode, the most multiple unit or assembly can in conjunction with or can To be integrated into another system, or some features can be ignored, or does not performs.Another point, shown or discussed each other Coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit or communication connection, Can be electrical, machinery or other form.
The unit illustrated as separating component can be or may not be physically separate, shows as unit Parts can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network On unit.Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.
If function is using the form realization of SFU software functional unit and as independent production marketing or use, can store In a computer read/write memory medium.Based on such understanding, technical scheme is the most in other words to existing The part having part that technology contributes or this technical scheme can embody with the form of software product, this computer Software product is stored in a storage medium, including some instructions with so that a computer equipment (can be individual's meter Calculation machine, server, or the network equipment etc.) perform each embodiment method of the present invention all or part of step.And it is aforesaid Storage medium includes: the various media that can store program code such as USB flash disk, portable hard drive, ROM, RAM, magnetic disc or CD.
Above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any familiar Those skilled in the art, in the technical scope that the invention discloses, can readily occur in change or replace, should contain Within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with scope of the claims.

Claims (18)

1. a method for wireless routing, is applied to the first mobile terminal, it is characterised in that described method includes:
First WiFi module of described first mobile terminal receives the second mobile terminal and is sent to the first data of target terminal;
By the second WiFi module of described first mobile terminal, described first data are sent to WiFi wireless router, described Target terminal obtains described first data by described WiFi wireless router;
Described second WiFi module receives the second data that described target terminal is sent by described WiFi wireless router;
By described first WiFi module, described second data are sent to described second mobile terminal;
Wherein, described first WiFi module is AP mode of operation, and described second WiFi module is STA mode of operation.
Method the most according to claim 1, it is characterised in that the first WiFi module at described first mobile terminal receives Before second mobile terminal is sent to the step of the first data of target terminal, described method also includes:
Control described second WiFi module and search for the WiFi signal that described WiFi wireless router is launched;
Based on the described WiFi signal searched, set up wireless connections with described WiFi wireless router;
Control described first WiFi module unlatching Wi-Fi hotspot and share network;
Share network based on described Wi-Fi hotspot, set up wireless connections with described second mobile terminal.
Method the most according to claim 1, it is characterised in that described several by described second by described first WiFi module According to sending the step to described second mobile terminal, including:
Obtain the terminal iidentification in described second data;
Judge that the described terminal iidentification mark whether with described second mobile terminal matches;
If described terminal iidentification mates with the mark of described second mobile terminal, then by described first WiFi module by described the Two data send to described second mobile terminal.
Method the most according to claim 1, it is characterised in that described several by described second by described first WiFi module According to sending the step to described second mobile terminal, including:
Receive the terminal iidentification that described WiFi wireless router sends;
Judge that the described terminal iidentification mark whether with described second mobile terminal matches;
If described terminal iidentification mates with the mark of described second mobile terminal, then by described first WiFi module by described the Two data send to described second mobile terminal.
Method the most according to claim 2, it is characterised in that described share network based on described Wi-Fi hotspot, with described Second mobile terminal sets up the step of wireless connections, including:
Share network based on described Wi-Fi hotspot, receive the first connection request that described second mobile terminal sends;
According to described first connection request, described second mobile terminal is verified;
When to the result of described second mobile terminal be by time, send described first to described second mobile terminal and connect The instruction that requests verification is passed through, and set up described first mobile terminal and described second by described first WiFi module and move end The wireless connections of end.
Method the most according to claim 2, it is characterised in that described based on the described WiFi signal searched, with described WiFi wireless router sets up the step of wireless connections, including:
Based on the described WiFi signal searched, send the second connection request to described WiFi wireless router;
When after the instruction that described second connection request receiving the transmission of described WiFi wireless router is verified, by described Second WiFi module sets up the wireless connections of described first mobile terminal and described WiFi wireless router.
7. a method for wireless routing, is applied to the second mobile terminal, it is characterised in that described method includes:
Sending the first data to the first WiFi module of the first mobile terminal, wherein, described first data are for sending to target eventually The data of end, described first data are sent to WiFi wireless router by the second WiFi module of described first mobile terminal, Described target terminal obtains described first data by described WiFi wireless router;
Receiving the second data that described first WiFi module sends, wherein, described second data are that described target terminal passes through institute State WiFi wireless router and send the data to described second WiFi module;
Wherein, described first WiFi module is AP mode of operation, and described second WiFi module is STA mode of operation.
Method the most according to claim 7, it is characterised in that send out at described the first WiFi module to the first mobile terminal Before sending the step of the first data, described method also includes:
The Wi-Fi hotspot searching for described first mobile terminal unlatching shares network;
Share network based on the Wi-Fi hotspot searched, set up wireless connections with described first mobile terminal.
Method the most according to claim 8, it is characterised in that described share network based on the Wi-Fi hotspot searched, with Described first mobile terminal sets up the step of wireless connections, including:
Share network based on the Wi-Fi hotspot searched, send the first connection request to described first mobile terminal;
After receiving the instruction that is verified of described first connection request that described first mobile terminal sends, by described the One WiFi module sets up the wireless connections with described first mobile terminal.
10. a mobile terminal, it is characterised in that including:
First WiFi module, is sent to the first data of target terminal for receiving the second mobile terminal;
Second WiFi module, for sending the first data that described first WiFi module receives to WiFi wireless router, institute State target terminal and obtain described first data by described WiFi wireless router;
Described second WiFi module, is additionally operable to receive the second number that described target terminal is sent by described WiFi wireless router According to;
Described first WiFi module, is additionally operable to send the second data that described second WiFi module receives extremely described second move Terminal;
Wherein, described first WiFi module is AP mode of operation, and described second WiFi module is STA mode of operation.
11. mobile terminals according to claim 10, it is characterised in that described mobile terminal also includes:
Control module, searches for, for controlling described second WiFi module, the WiFi signal that described WiFi wireless router is launched;
First connection establishment module, for the described WiFi signal searched based on described second WiFi module, with described WiFi Wireless router sets up wireless connections;
Described control module is additionally operable to, and controls described first WiFi module unlatching Wi-Fi hotspot and shares network;
Second connection establishment module, shares network for the Wi-Fi hotspot opened based on described first WiFi module, with described the Two mobile terminals set up wireless connections.
12. mobile terminals according to claim 10, it is characterised in that described second WiFi module includes:
Mark obtains submodule, for obtaining the terminal iidentification in described second data;
First judges submodule, for judging whether the terminal iidentification that described mark acquisition submodule obtains moves with described second The mark of terminal matches;
First sends submodule, if judging that submodule judges described terminal iidentification and described second mobile terminal for described first Mark coupling, then described second data are sent extremely described second mobile terminal.
13. mobile terminals according to claim 10, it is characterised in that described second WiFi module includes:
Receive submodule, for receiving the terminal iidentification that described WiFi wireless router sends;
Second judges submodule, for judge terminal iidentification that described reception submodule receives whether with described second mobile terminal Mark match;
Second sends submodule, if judging that submodule judges described terminal iidentification and described second mobile terminal for described second Mark coupling, then described second data are sent extremely described second mobile terminal.
14. mobile terminals according to claim 11, it is characterised in that described first connection establishment module includes:
Connection request sends submodule, for based on the described WiFi signal searched, sending to described WiFi wireless router Second connection request;
First connection establishment submodule, for testing when described second connection request receiving the transmission of described WiFi wireless router After the instruction passed through of card, set up the wireless of described mobile terminal and described WiFi wireless router by described second WiFi module Connect.
15. mobile terminals according to claim 11, it is characterised in that described second connection establishment module includes:
Connection request receives submodule, for sharing network based on described Wi-Fi hotspot, receives described second mobile terminal and sends The first connection request;
Checking submodule, for receiving, according to described connection request, the first connection request that submodule receives, moves described second Dynamic terminal is verified;
Second connection establishment submodule, for when being logical to described checking submodule to the result of described second mobile terminal Out-of-date, send, to described second mobile terminal, the instruction that described first connection request is verified, and by a described WiFi Module sets up the wireless connections of described mobile terminal and described second mobile terminal.
16. 1 kinds of mobile terminals, it is characterised in that including:
Data transmission blocks, for sending the first data, wherein, described first number to the first WiFi module of the first mobile terminal According to for sending the data to target terminal, described first data are sent extremely by the second WiFi module of described first mobile terminal WiFi wireless router, described target terminal obtains described first data by described WiFi wireless router;
Data reception module, for receiving the second data that described first WiFi module sends, wherein, described second data are institute State target terminal and send the data to described second WiFi module by described WiFi wireless router;
Wherein, described first WiFi module is AP mode of operation, and described second WiFi module is STA mode of operation.
17. mobile terminals according to claim 16, it is characterised in that described mobile terminal also includes:
Network search module, the Wi-Fi hotspot opened for searching for described first mobile terminal shares network;
Connection establishment module, shares network, with described first for the Wi-Fi hotspot searched based on described network search module Mobile terminal sets up wireless connections.
18. mobile terminals according to claim 17, it is characterised in that described connection establishment module includes:
Connection request sending module, for sharing network based on the Wi-Fi hotspot searched, sends to described first mobile terminal First connection request;
Connection establishment submodule, for being verified when described first connection request receiving described first mobile terminal transmission Instruction after, set up and the wireless connections of described first mobile terminal by described first WiFi module.
CN201610703835.2A 2016-08-22 2016-08-22 Wireless routing method and mobile terminal Pending CN106332217A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610703835.2A CN106332217A (en) 2016-08-22 2016-08-22 Wireless routing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610703835.2A CN106332217A (en) 2016-08-22 2016-08-22 Wireless routing method and mobile terminal

Publications (1)

Publication Number Publication Date
CN106332217A true CN106332217A (en) 2017-01-11

Family

ID=57741262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610703835.2A Pending CN106332217A (en) 2016-08-22 2016-08-22 Wireless routing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106332217A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107426726A (en) * 2017-07-07 2017-12-01 珠海市魅族科技有限公司 Network sharing method and device, terminal and storage medium
CN107580359A (en) * 2017-09-29 2018-01-12 努比亚技术有限公司 Hotspot sharing method, mobile terminal and computer-readable recording medium
CN107770840A (en) * 2017-09-29 2018-03-06 努比亚技术有限公司 Focus signal display method, mobile terminal and computer-readable recording medium
CN110536016A (en) * 2019-08-31 2019-12-03 Oppo广东移动通信有限公司 Network share method and relevant device
CN115053500A (en) * 2020-01-02 2022-09-13 加布里埃尔·拉维 Method and system for supporting communication between multiple client communication devices in a wireless local area network

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668324A (en) * 2008-09-04 2010-03-10 华为技术有限公司 Routing method, routing device and routing system of relay network
US8909197B2 (en) * 2010-05-14 2014-12-09 Samsung Electronics Co., Ltd. Method and system for providing Wi-Fi service by Wi-Fi device
CN104486762A (en) * 2014-12-22 2015-04-01 广东美的厨房电器制造有限公司 Access control method of intelligent home appliance and intelligent home appliance system
CN104640234A (en) * 2015-02-13 2015-05-20 小米科技有限责任公司 Method and device for accessing to wireless network
CN104735813A (en) * 2015-03-10 2015-06-24 小米科技有限责任公司 Network connection establishment method and device
CN105228224A (en) * 2015-10-29 2016-01-06 小米科技有限责任公司 The cut-in method of wireless network and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668324A (en) * 2008-09-04 2010-03-10 华为技术有限公司 Routing method, routing device and routing system of relay network
US8909197B2 (en) * 2010-05-14 2014-12-09 Samsung Electronics Co., Ltd. Method and system for providing Wi-Fi service by Wi-Fi device
CN104486762A (en) * 2014-12-22 2015-04-01 广东美的厨房电器制造有限公司 Access control method of intelligent home appliance and intelligent home appliance system
CN104640234A (en) * 2015-02-13 2015-05-20 小米科技有限责任公司 Method and device for accessing to wireless network
CN104735813A (en) * 2015-03-10 2015-06-24 小米科技有限责任公司 Network connection establishment method and device
CN105228224A (en) * 2015-10-29 2016-01-06 小米科技有限责任公司 The cut-in method of wireless network and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107426726A (en) * 2017-07-07 2017-12-01 珠海市魅族科技有限公司 Network sharing method and device, terminal and storage medium
CN107580359A (en) * 2017-09-29 2018-01-12 努比亚技术有限公司 Hotspot sharing method, mobile terminal and computer-readable recording medium
CN107770840A (en) * 2017-09-29 2018-03-06 努比亚技术有限公司 Focus signal display method, mobile terminal and computer-readable recording medium
CN107580359B (en) * 2017-09-29 2020-11-03 新沂市摩尔网络科技有限公司 Wireless hotspot sharing method, mobile terminal and computer readable storage medium
CN107770840B (en) * 2017-09-29 2020-12-18 努比亚技术有限公司 Hot signal display method, mobile terminal and computer readable storage medium
CN110536016A (en) * 2019-08-31 2019-12-03 Oppo广东移动通信有限公司 Network share method and relevant device
WO2021036556A1 (en) * 2019-08-31 2021-03-04 Oppo广东移动通信有限公司 Network sharing method and related device
CN115053500A (en) * 2020-01-02 2022-09-13 加布里埃尔·拉维 Method and system for supporting communication between multiple client communication devices in a wireless local area network

Similar Documents

Publication Publication Date Title
CN106714251B (en) A kind of method for connecting network and mobile terminal
CN106332217A (en) Wireless routing method and mobile terminal
CN106304276A (en) A kind of wireless network processing method and mobile terminal
CN106162830A (en) The method of attachment of a kind of WLAN and mobile terminal
CN107567046A (en) A kind of cell accessing method and mobile terminal
CN104902531A (en) Network connection method, application authentication server, terminal and router
CN106535100A (en) Method for locating mobile terminal, mobile terminal and server
CN106469113A (en) Applied program testing method and system
CN107277050A (en) A kind of data processing method, server, terminal and computer-readable recording medium
CN106131828A (en) A kind of WiFi password sharing method, mobile terminal and Cloud Server
CN107333325A (en) A kind of network search method and mobile terminal
CN106534200A (en) Identity authentication method and mobile terminal
CN106413101B (en) Avoid the method and mobile terminal of itself interference channel
CN106095296A (en) The changing method of a kind of application program and mobile terminal
CN106792544A (en) A kind of method and terminal for detecting terminal location
CN106302782A (en) A kind of method for network access control and mobile terminal
CN106095128A (en) The character input method of a kind of mobile terminal and mobile terminal
CN106354509A (en) Screen lock interface setting method and mobile terminal
CN106445294A (en) Control method of application program and mobile terminal
CN106775421A (en) Method and mobile terminal that a kind of sectional drawing interface is recovered
CN107567022A (en) A kind of wireless connection method, terminal and computer-readable recording medium
CN106650406A (en) Data processing method, mobile terminal and target terminal
CN106254545A (en) A kind of long-range control method and device
CN106528326A (en) Base-band chip software switching method and mobile terminal
CN106376045A (en) Method for switching communication systems of mobile terminal and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170111