CN106455139B - WiFi module works at the same time the method, apparatus and system in double mode - Google Patents
WiFi module works at the same time the method, apparatus and system in double mode Download PDFInfo
- Publication number
- CN106455139B CN106455139B CN201611019895.9A CN201611019895A CN106455139B CN 106455139 B CN106455139 B CN 106455139B CN 201611019895 A CN201611019895 A CN 201611019895A CN 106455139 B CN106455139 B CN 106455139B
- Authority
- CN
- China
- Prior art keywords
- channel
- wifi module
- wifi
- trunking
- mode
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/08—Access point devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/04—Terminal devices adapted for relaying to or from another terminal or user
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention relates to a kind of WiFi modules to work at the same time the method, apparatus and system in double mode, the double mode is STA mode and ap mode, wherein this method includes the steps that WiFi module work the step of STA mode and WiFi module work are in ap mode, by the wireless router or other trunkings for being connected the network routing forwarding of AP to STA mode, only a WiFi module is needed to can be realized as STA mode and ap mode in this way.The present invention realizes that Android smart machine is worked at the same time in STA mode and ap mode using single WiFi module, therefore reduces a WiFi module, and reduce pcb board size and antenna amount accordingly, saves the cost of surrounding hardware.
Description
Technical field
The invention belongs to technical field of intelligent interaction, and in particular to a kind of WiFi module is worked at the same time in the side of double mode
Method, equipment and system.
Background technique
Android is the operating system of freedom and open source code that Google company is developed based on Linux platform, is opened
The platform put develops software for third party developer and provides wide in range free environment, therefore its application field is increasingly extensive, example
Such as TV, digital camera, game machine field.With the increase of online demand, existing Android smart machine uses two
WiFi module, as shown in Figure 1, the work of one of WiFi module, in STA mode, another WiFi module works in ap mode,
Android device is enabled to operate in STA mode and ap mode simultaneously.In STA mode, Android device is as wireless
Terminal is connected to the trunkings such as wireless router by the WiFi module to work in STA mode, so as to realize
The wireless networking capabilities of Android device;In ap mode, Android device provides wirelessly access, other are with WiFi
WiFi module of the wireless terminal of function by work in ap mode accesses external network, realizes other nothings with WiFi function
The wireless networking capabilities of line terminal.But this mode needs Android device to be equipped with two WiFi modules, will cause hardware in this way
The increase of cost.
Summary of the invention
The present invention provides a kind of WiFi modules to work at the same time the method, apparatus and system in double mode, uses single
WiFi module realizes that STA mode and ap mode work at the same time.
Work at the same time the method in double mode the invention proposes a kind of WiFi module, the double mode be STA mode and
Ap mode, wherein WiFi module work in STA mode the following steps are included:
Step 211, user opens STA mode;
Step 212, processing equipment judges whether the WiFi driving of coexistance model has been loaded, and loads altogether if not loading
Deposit the WiFi driving of mode;
Step 213, after WiFi drive load, processing equipment is that WiFI module configures wireless network;
WiFi module work in ap mode the following steps are included:
Step 221, user opens ap mode;
Step 222, processing equipment judges whether the WiFi driving of coexistance model has loaded, and loads and coexists if not loading
The WiFi of mode drives;
Step 223, processing equipment judges whether WiFi module connects trunking;
Step 224, if WiFi module has connected trunking, processing equipment obtains to be relayed in WiFi module connection
Used channel after equipment starts access authentication service using the channel got, so as to other ends with WiFi function
End equipment connects the upper WiFi module;If WiFi module does not connect trunking, processing equipment uses preset silent
Channel starting access authentication service is recognized, so that other terminal devices with WiFi function connect the upper WiFi module;
Step 225, processing equipment starting configuration services and routing rule is arranged, to connect the terminal of the WiFi module
Equipment can access outer net by same WiFi module;
Step 226, processing equipment judges whether currently used channel needs to change, and if necessary to change, then uses
Channel after change restarts access authentication service, restarts configuration and services and reset routing rule;If you do not need to change, then
It continues to execute step 226 and judges whether currently used channel needs to change.
Further, in the step 226, in situations where, currently used channel needs to change:
Currently used channel is preset default channel, when WiFi module connects upper trunking and connects in upper
When used channel is with currently used channel difference after equipment, need currently used channel being changed to WiFi
Module connects used channel after upper trunking;
Alternatively, currently used channel is that WiFi module connects used channel after upper trunking, when WiFi mould
Change occurs for the trunking of block connection and WiFi module connects upper new trunking, and connects institute after upper new trunking
When the channel used and currently used channel difference, need for currently used channel to be changed in WiFi module connection
Used channel after new trunking;
Alternatively, currently used channel is that WiFi module connects used channel after upper trunking, when WiFi mould
When the channel that block uses changes, need currently used channel being changed to the channel that WiFi module newly uses.
Further, in the step 224 and step 226, the access authentication service is hostapd service.
Further, in the step 225 and step 226, the configuration service is that dnsmasq is serviced.
Realize that the WiFi module as described in any one of preceding is worked at the same time in the side of double mode the invention also provides a kind of
The equipment of method, the double mode are STA mode and ap mode, which includes the processing equipment and the WiFi module.
Further, the equipment is Android smart machine.
The present invention also proposes that a kind of WiFi module works at the same time the system in double mode, the double mode be STA mode and
Ap mode, the system comprise the following modules:
First setup module opens STA mode;
First judgment module, judges whether the WiFi driving of coexistance model has loaded, and mould coexists in load if not loading
The WiFi of formula drives;
First starting module configures wireless network after WiFi drive load for WiFI module;
The system also includes with lower module:
Second setup module, is used to open ap mode;
Whether the second judgment module has loaded for judging that the WiFi of coexistance model drives, has loaded altogether if not loading
Deposit the WiFi driving of mode;
Third judgment module, for judging whether WiFi module connects upper trunking;
Second starting module obtains if WiFi module has connected trunking and relays and set in WiFi module connection
Standby rear used channel, starts access authentication service using the channel got, so as to other terminals with WiFi function
Equipment connects the upper WiFi module;If WiFi module does not connect trunking, started using preset default channel
Access authentication service, so that other terminal devices with WiFi function connect the upper WiFi module;
Third starting module, for starting configuration service and routing rule being arranged, to connect the end of the WiFi module
End equipment can access outer net by same WiFi module;
4th judgment module if necessary to change, is then used for judging whether currently used channel needs to change
Channel after change restarts access authentication service, restarts configuration and services and reset routing rule;If you do not need to change, then
Continue to judge whether currently used channel needs to change.
Further, the 4th judgment module in situations where, judges that currently used channel needs to change:
Currently used channel is preset default channel, when WiFi module connects upper trunking and connects in upper
When used channel is with currently used channel difference after equipment, need currently used channel being changed to WiFi
Module connects used channel after upper trunking;
Alternatively, currently used channel is that WiFi module connects used channel after upper trunking, when WiFi mould
Change occurs for the trunking of block connection and WiFi module connects upper new trunking, and connects institute after upper new trunking
When the channel used and currently used channel difference, need for currently used channel to be changed in WiFi module connection
Used channel after new trunking;
Alternatively, currently used channel is that WiFi module connects used channel after upper trunking, when WiFi mould
When the channel that block uses changes, need currently used channel being changed to the channel that WiFi module newly uses.
Further, the access authentication service is hostapd service.
Further, the configuration service is that dnsmasq is serviced.
Beneficial effects of the present invention:
The present invention realizes STA mode and ap mode using the WiFi module of coexistance model is supported while running, and can incite somebody to action
The wireless router that the network routing forwarding of AP is connected to STA mode only needs a WiFi module to can be realized as STA in this way
Mode and ap mode realize the side of STA mode and ap mode while operation using two WiFi modules compared to the prior art
Case saves the cost of a WiFi module;Due to using a WiFi module, corresponding pcb board size and antenna amount can
To reduce, the cost of surrounding hardware is also saved in this way.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of double WiFi modules in the Android smart machine of the prior art;
Fig. 2 is the method flow diagram of WiFi module work of the invention in STA mode;
Fig. 3 is the method flow diagram of WiFi module work of the invention in ap mode;
Fig. 4 is the system structure diagram of WiFi module work of the invention in STA mode;
Fig. 5 is the system structure diagram of WiFi module work of the invention in ap mode.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference
Attached drawing, the present invention is described in more detail.But as known to those skilled in the art, the invention is not limited to attached drawings and following reality
Apply example.
The present invention provides a kind of single WiFi modules to work at the same time the method, equipment and system in double mode, described double
Mode is STA mode and ap mode, wherein this method can be used in Android device, the Android device indicate with
Equipment of the Android as operating system, such as Android phone, Android tablet computer, Android computer, Android
Set-top box, Android game cartridge, Android intelligent television, Android intelligent advisement player, Android meeting machine, Android
The intelligent interaction devices such as intelligent education machine.
Fig. 2 and Fig. 3 gives the method flow diagram for working at the same time single WiFi module in STA mode and ap mode.
As shown in Fig. 2, WiFi module work includes the following steps: in STA mode
Step 211, open STA mode: user opens STA mode in software set interface;
Step 212, judge driving whether loaded: the CPU of Android device judge coexistance model WiFi drive whether
It has been loaded that, since the WiFi driving of the coexistance model of same WiFi module only needs to load once, so if opening simultaneously STA
Mode and ap mode, then needing to judge whether the WiFi driving of the coexistance model of the WiFi module has loaded, if loaded
It does not need then to load again, needs to load the WiFi driving of coexistance model if not loading to be STA mode in software layer
Corresponding network interface is mapped out with ap mode, the mode for loading the WiFi driving of coexistance model can be with are as follows: calls similar
Insmod xxx.ko ifname=wlan0if2name=ap0 order loads the WiFi driving of coexistance model, wherein specific life
Parameter is enabled to will be different in different mode;
Step 213, starting wpa_supplicant service: after WiFi drive load, CPU starts wpa_supplicant
Service, the interaction of interaction and operating user interface and bottom layer driving for operating user interface, as operating user interface
Intermediate communication between bottom layer driving;One starting of wpa_supplicant service, trunking and WiFi module establish connection,
WiFi module can be the channel access wireless network of its distribution by trunking;The trunking is for realizing network
Interconnection, trunking for example can be router.
As shown in figure 3, method of the WiFi module work in ap mode:
Step 221, open ap mode: user opens AP function in software set interface;
Step 222, judging whether driving has loaded: CPU judges whether the WiFi driving of coexistance model has loaded, if
Load does not need then to load again, needs to load the WiFi driving of coexistance model if not loading;
Step 223, judging whether WiFi has connected: CPU judges whether WiFi module connects trunking;
Step 224, starting hostapd service: if WiFi module has connected trunking, CPU obtains WiFi mould
Block connects used channel after upper trunking, is serviced using the channel starting hostapd got, so that other have
The terminal device of WiFi function connects the upper WiFi module, passes through the channel access wireless network got;If WiFi module
Trunking is not connected, then CPU is serviced using preset default channel starting hostapd, so that other are with WiFi function
The terminal device of energy connects the upper WiFi module;
Step 225, starting dnsmasq services and be arranged routing rule: after starting hostapd service, CPU distributes IP address
It is configured with DNS, and corresponding routing rule is set, it can be by same to connect the terminal device of the WiFi module
WiFi module accesses outer net;
Step 226, CPU judges whether currently used channel needs to change, if necessary to change, then after using change
Channel restart hostapd service, restart dnsmasq and service and reset routing rule;If you do not need to change, then continue
It executes step 226 and judges whether currently used channel needs to change.
In situations where, currently used channel needs to change:
Currently used channel is preset default channel, when WiFi module connects upper trunking and connects in upper
When used channel is with currently used channel difference after equipment, need currently used channel being changed to WiFi
Module connects used channel after upper trunking;
Alternatively, currently used channel is that WiFi module connects used channel after upper trunking, when WiFi mould
Change occurs for the trunking of block connection and WiFi module connects upper new trunking, and connects institute after upper new trunking
When the channel used and currently used channel difference, need for currently used channel to be changed in WiFi module connection
Used channel after new trunking;
Alternatively, currently used channel is that WiFi module connects used channel after upper trunking, when WiFi mould
When the channel that block uses changes, need currently used channel being changed to the channel that WiFi module newly uses.
By the above method, the present invention, which can be realized, realizes STA mode and ap mode work simultaneously by same WiFi module
Make, and the channel that ap mode is used is consistent with the channel that STA mode uses.
The invention also provides a kind of methods for realizing that above-mentioned single WiFi module is worked at the same time in STA and ap mode to set
Standby, which includes CPU and single WiFi module, and CPU is connect with the WiFi module.The equipment can be Android device, institute
Stating Android device indicates equipment using Android as operating system, for example, Android phone, Android tablet computer,
Android computer, Android set-top box, Android game cartridge, Android intelligent television, Android intelligent advisement player,
The intelligent interaction devices such as Android meeting machine, Android intelligent education machine.
WiFi module works in STA mode, and CPU judges whether the WiFi driving of coexistance model has loaded, due to same
The WiFi driving of the coexistance model of WiFi module only needs to load once, so if STA mode and ap mode are opened simultaneously, that
It needs to judge whether the WiFi driving of the coexistance model of the WiFi module has loaded, does not need to add again if having loaded
It carries, needs to load the WiFi driving of coexistance model if not loading to be that STA mode and ap mode map out in software layer
Corresponding network interface, the mode for loading the WiFi driving of coexistance model can be with are as follows: calls similar insmod xxx.ko
Ifname=wlan0if2name=ap0 order loads the WiFi driving of coexistance model, and wherein specific instructions parameter is in different moulds
Formula will be different;After WiFi drive load, CPU starts wpa_supplicant service, the friendship for operating user interface
Mutual and operating user interface and bottom layer driving interaction, as the intermediate communication between operating user interface and bottom layer driving;
One starting of wpa_supplicant service, trunking and WiFi module establish connection, and WiFi module can pass through trunking
For the channel access wireless network of its distribution;For realizing the interconnection of network, trunking for example can be the trunking
Router.
When WiFi module work is in ap mode, CPU judges whether the WiFi driving of coexistance model has loaded, if added
Load does not need then to load again, needs to load the WiFi driving of coexistance model if not loading;Whether CPU judges WiFi module
Trunking in connection;If WiFi module has connected trunking, after CPU obtains the upper trunking of WiFi module connection
Used channel is serviced using the channel starting hostapd got, so that other terminal devices with WiFi function connect
The WiFi module is connected, the channel access wireless network got is passed through;If WiFi module does not connect trunking,
CPU is serviced using preset default channel starting hostapd, to be somebody's turn to do in other terminal device connections with WiFi function
WiFi module;After starting hostapd service, CPU distributes IP address and DNS configuration, and corresponding routing rule is arranged, so as to
The terminal device of the WiFi module can access outer net by same WiFi module in connection;CPU judges currently used letter
Whether road, which needs, is changed, and if necessary to change, is then restarted hostapd using the channel after change and is serviced, restarts dnsmasq service
And reset routing rule;If you do not need to change, then continue to judge whether currently used channel needs to change.
In situations where, currently used channel needs to change:
Currently used channel is preset default channel, when WiFi module connects upper trunking and connects in upper
When used channel is with currently used channel difference after equipment, need currently used channel being changed to WiFi
Module connects used channel after upper trunking;
Alternatively, currently used channel is that WiFi module connects used channel after upper trunking, when WiFi mould
Change occurs for the trunking of block connection and WiFi module connects upper new trunking, and connects institute after upper new trunking
When the channel used and currently used channel difference, need for currently used channel to be changed in WiFi module connection
Used channel after new trunking;
Alternatively, currently used channel is that WiFi module connects used channel after upper trunking, when WiFi mould
When the channel that block uses changes, need currently used channel being changed to the channel that WiFi module newly uses.
The equipment, which can be realized, realizes that STA mode and ap mode work at the same time by same WiFi module, and makes AP
The channel that mode uses is consistent with the channel that STA mode uses.
The present invention also proposes that a kind of single WiFi module works at the same time the system in STA and ap mode, such as Fig. 4 and Fig. 5 institute
Show.As shown in figure 4, the system comprises the following modules:
First setup module opens STA mode: opening STA mode in software set interface;
First judgment module, judges whether driving has loaded: judge whether the WiFi driving of coexistance model has loaded, due to
The WiFi driving of the coexistance model of same WiFi module only needs to load once, so if opening simultaneously STA mode and AP mould
Formula does not need again if having loaded then needing to judge whether the WiFi driving of the coexistance model of the WiFi module has loaded
Secondary load needs to load the WiFi driving of coexistance model if not loading, and the mode for loading the WiFi driving of coexistance model can
With are as follows: call the WiFi of similar insmod xxx.ko ifname=wlan0if2name=ap0 order load coexistance model to drive
Dynamic, wherein specific instructions parameter will be different in different mode;
Starting wpa_supplicant service: first starting module after WiFi drive load, starts wpa_
Supplicant service, the interaction of interaction and operating user interface and bottom layer driving for operating user interface, as two
Intermediate communication between person;One starting of wpa_supplicant service, trunking and WiFi module establish connection, and WiFi module is
It can be the channel access wireless network of its distribution by trunking.
As shown in figure 5, the system also includes with lower module:
Second setup module opens ap mode: opening AP function in software set interface;
Second judgment module, judges whether driving has loaded: judge whether the WiFi driving of coexistance model has loaded, if
It has been loaded that, do not need to load again, needed to load the WiFi driving of coexistance model if not loading;
Third judgment module, judges whether WiFi has connected: judging whether WiFi module connects trunking;
Starting hostapd service: second starting module if WiFi module has connected trunking, obtains WiFi
Module connects used channel after upper trunking, is serviced using the channel starting hostapd got, so that other have
The terminal device of WiFi function connects the upper WiFi module, passes through the channel access wireless network got;If WiFi module
Trunking is not connected, then is serviced using preset default channel starting hostapd, so that other are with WiFi function
Terminal device connects the upper WiFi module;
Third starting module, starting dnsmasq services and are arranged routing: after starting hostapd service, distribute IP address with
DNS configuration, and corresponding routing rule is set, it can be by same WiFi to connect the terminal device of the WiFi module
Module accesses outer net;
4th judgment module if necessary to change, is then used for judging whether currently used channel needs to change
Channel after change restarts hostapd service, restarts dnsmasq and services and reset routing rule;If you do not need to change,
Then continue to judge whether currently used channel needs to change.
4th judgment module in situations where, judges that currently used channel needs to change:
Currently used channel is preset default channel, when WiFi module connects upper trunking and connects in upper
When used channel is with currently used channel difference after equipment, need currently used channel being changed to WiFi
Module connects used channel after upper trunking;
Alternatively, currently used channel is that WiFi module connects used channel after upper trunking, when WiFi mould
Change occurs for the trunking of block connection and WiFi module connects upper new trunking, and connects institute after upper new trunking
When the channel used and currently used channel difference, need for currently used channel to be changed in WiFi module connection
Used channel after new trunking;
Alternatively, currently used channel is that WiFi module connects used channel after upper trunking, when WiFi mould
When the channel that block uses changes, need currently used channel being changed to the channel that WiFi module newly uses.
In order to illustrate more clearly of technical solution proposed by the present invention, the present embodiment passes through Android game cartridge with mobile phone
Be described for multi-screen interactive online game.
WiFi mode and ap mode are opened on the Android game cartridge for the WiFi module for being integrated with coexistance model, are allowed
WiFi mode and ap mode work at the same time, and the WiFi module is then connected upper wireless router, which can visit
Ask outer net.Since the ap mode of WiFi module is opened, so the Android game cartridge can be used as AP use, therefore mobile phone can
The Android game cartridge in connection.When starting multi-screen interactive online game on mobile phone, mobile phone and the Android game cartridge
Game interaction is carried out, due to being online game, mobile phone connects the upper Android game cartridge at this time, then passes through the Android game
Box routing forwarding accesses outer net to the wireless router that WiFi module is connected, so as to realize multi-screen interactive online game just
It is often used and runs.
More than, embodiments of the present invention are illustrated.But the present invention is not limited to above embodiment.It is all
Within the spirit and principles in the present invention, any modification, equivalent substitution, improvement and etc. done should be included in guarantor of the invention
Within the scope of shield.
Claims (10)
1. a kind of WiFi module works at the same time the method in double mode, the double mode is STA mode and ap mode, and feature exists
In:
WiFi module work in STA mode the following steps are included:
Step 211, user opens STA mode;
Step 212, processing equipment judges whether the WiFi driving of coexistance model has been loaded, and mould coexists in load if not loading
The WiFi of formula drives;
Step 213, after WiFi drive load, processing equipment is that WiFi module configures wireless network;
The processing equipment is that WiFi module configuration wireless network includes: starting configuration service, the friendship for operating user interface
Mutual and operating user interface and bottom layer driving interaction, as the intermediate communication between operating user interface and bottom layer driving;Match
One starting of the service of setting, trunking and WiFi module establish connection, and WiFi module can be its distribution by trunking
Channel access wireless network;
WiFi module work in ap mode the following steps are included:
Step 221, user opens ap mode;
Step 222, processing equipment judges whether the WiFi driving of coexistance model has loaded, and coexistance model is loaded if not loading
WiFi driving;
Step 223, processing equipment judges whether WiFi module connects trunking;
Step 224, if WiFi module has connected trunking, processing equipment obtains WiFi module and connects upper trunking
Used channel afterwards starts access authentication service using the channel got, so that other terminals with WiFi function are set
It is standby to connect the upper WiFi module;If WiFi module does not connect trunking, processing equipment is believed using preset default
Road starts access authentication service, so that other terminal devices with WiFi function connect the upper WiFi module;
Step 225, processing equipment starting configuration services and routing rule is arranged, to connect the terminal device of the WiFi module
Outer net can be accessed by same WiFi module;
Step 226, whether the channel that the channel and STA mode that processing equipment is used based on ap mode use is unanimously current to judge
Whether used channel, which needs, is changed, if the channel that uses of ap mode and the channel that STA mode uses are inconsistent, judgement is worked as
It is preceding used in channel need to change, then restart access authentication service using the channel after change, restart configuration service and again
Routing rule is set;If you do not need to change, then continue to execute step 226 and judge whether currently used channel needs to become
More.
2. the method according to claim 1, wherein in situations where, currently being made in the step 226
Channel needs to change:
Currently used channel is preset default channel, is set when WiFi module connects upper trunking and connects to relay
When standby rear used channel and currently used channel difference, need currently used channel being changed to WiFi module
Used channel after trunking in connection;
Alternatively, currently used channel is that WiFi module connects used channel after upper trunking, when WiFi module connects
Change occurs for the trunking connect and WiFi module connects upper new trunking, and is used after connecting upper new trunking
Channel and when currently used channel difference, need for currently used channel to be changed to WiFi module connection it is upper it is new in
The used channel after equipment;
Alternatively, currently used channel is that WiFi module connects used channel after upper trunking, when trunking makes
When channel changes, need currently used channel being changed to the channel that trunking newly uses.
3. according to the method described in claim 2, it is characterized in that, in the step 224 and step 226, the access authentication
Service is that hostapd is serviced.
4. method according to any one of claim 1-3, which is characterized in that in the step 225 and step 226, institute
Stating configuration service is that dnsmasq is serviced.
5. a kind of realize that the method worked at the same time such as WiFi module of any of claims 1-4 in double mode is set
Standby, the double mode is STA mode and ap mode, which is characterized in that the equipment includes the processing equipment and the WiFi mould
Block.
6. equipment according to claim 5, which is characterized in that the equipment is Android smart machine.
7. a kind of WiFi module works at the same time the system in double mode, the double mode is STA mode and ap mode, and feature exists
In the system comprises the following modules:
First setup module opens STA mode;
First judgment module, judges whether the WiFi driving of coexistance model has loaded, and coexistance model is loaded if not loading
WiFi driving;
First starting module configures wireless network after WiFi drive load for WiFi module;
First starting module is that WiFi module configuration wireless network includes: starting configuration service, is used for operating user interface
Interaction and operating user interface and bottom layer driving interaction, it is logical as the centre between operating user interface and bottom layer driving
Letter;One starting of configuration service, trunking and WiFi module establish connection, and WiFi module can be its point by trunking
The channel access wireless network matched;
The system also includes with lower module:
Second setup module, is used to open ap mode;
Whether the second judgment module has loaded for judging that the WiFi of coexistance model drives, and mould coexists in load if not loading
The WiFi of formula drives;
Third judgment module, for judging whether WiFi module connects upper trunking;
Second starting module, if WiFi module has connected trunking, after obtaining the upper trunking of WiFi module connection
Used channel starts access authentication service using the channel got, so as to other terminal devices with WiFi function
The WiFi module in connection;If WiFi module does not connect trunking, the starting access of preset default channel is used
Authentication service, so that other terminal devices with WiFi function connect the upper WiFi module;
Third starting module is set for starting configuration service and routing rule being arranged to connect the terminal of the WiFi module
It is standby to access outer net by same WiFi module;
Whether the 4th judgment module, channel that the channel for being used based on ap mode is used with STA mode unanimously judge to work as
Whether channel used in preceding needs to change, if the channel that the channel that uses of ap mode and STA mode use is inconsistent, judges
Currently used channel needs to change, then restarts access authentication service using the channel after change, restarts configuration service and lays equal stress on
New setting routing rule;If you do not need to change, then continue to judge whether currently used channel needs to change.
8. system according to claim 7, which is characterized in that the 4th judgment module in situations where, judges current institute
The channel used needs to change:
Currently used channel is preset default channel, is set when WiFi module connects upper trunking and connects to relay
When standby rear used channel and currently used channel difference, need currently used channel being changed to WiFi module
Used channel after trunking in connection;
Alternatively, currently used channel is that WiFi module connects used channel after upper trunking, when WiFi module connects
Change occurs for the trunking connect and WiFi module connects upper new trunking, and is used after connecting upper new trunking
Channel and when currently used channel difference, need for currently used channel to be changed to WiFi module connection it is upper it is new in
The used channel after equipment;
Alternatively, currently used channel is that WiFi module connects used channel after upper trunking, when trunking makes
When channel changes, need currently used channel being changed to the channel that trunking newly uses.
9. system according to claim 8, which is characterized in that the access authentication service is hostapd service.
10. the system according to any one of claim 7-9, which is characterized in that the configuration service is that dnsmasq takes
Business.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611019895.9A CN106455139B (en) | 2016-11-18 | 2016-11-18 | WiFi module works at the same time the method, apparatus and system in double mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611019895.9A CN106455139B (en) | 2016-11-18 | 2016-11-18 | WiFi module works at the same time the method, apparatus and system in double mode |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106455139A CN106455139A (en) | 2017-02-22 |
CN106455139B true CN106455139B (en) | 2019-12-03 |
Family
ID=58220258
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611019895.9A Active CN106455139B (en) | 2016-11-18 | 2016-11-18 | WiFi module works at the same time the method, apparatus and system in double mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106455139B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107454615B (en) * | 2017-07-19 | 2020-05-19 | 中国移动通信集团福建有限公司 | Set top box double-wifi control method |
CN108282907B (en) * | 2018-01-29 | 2023-04-07 | 深圳市同科联赢科技有限公司 | Electronic device, wireless networking system, wireless networking device, control method for wireless networking device, and storage device |
CN108990155A (en) * | 2018-06-20 | 2018-12-11 | 青岛海信电器股份有限公司 | A kind of method and terminal selecting channel |
CN111328116A (en) * | 2020-01-20 | 2020-06-23 | 广州华欣电子科技有限公司 | Control method and system for dual-mode coexistence of wireless equipment and wireless equipment |
CN111200877B (en) * | 2020-03-12 | 2022-12-20 | 深圳康佳电子科技有限公司 | Network connection method, terminal and storage medium |
CN111867143A (en) * | 2020-04-27 | 2020-10-30 | 广州朗国电子科技有限公司 | Communication method and device among multiple devices in education whiteboard and education whiteboard |
WO2021253273A1 (en) * | 2020-06-17 | 2021-12-23 | 天彩电子(深圳)有限公司 | Wireless transmission method and system based on wifi multiplexing technology |
CN113242564B (en) * | 2021-07-12 | 2021-11-05 | 广州朗国电子科技股份有限公司 | Method for simultaneous working of STA and AP of single WIFI module and related equipment |
CN114125778B (en) * | 2021-11-23 | 2024-06-18 | 京东方科技集团股份有限公司 | Wireless service method based on android system and related equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103529793A (en) * | 2013-10-18 | 2014-01-22 | 中山司南物联网科技有限公司 | Control system and control method for Internet of things based on STA (Station) mode and AP (Access Point) mode of WIFI (Wireless Fidelity) |
CN103813365A (en) * | 2014-03-11 | 2014-05-21 | 福州瑞芯微电子有限公司 | WDS support system, device and method based on Android system |
CN104126322A (en) * | 2013-09-30 | 2014-10-29 | 华为终端有限公司 | Channel switchover method, device and equipment |
CN104185224A (en) * | 2014-08-15 | 2014-12-03 | 深圳市同洲电子股份有限公司 | Wifi chip and control method during coexistence of station (STA) mode and access point (AP) mode |
CN104486762A (en) * | 2014-12-22 | 2015-04-01 | 广东美的厨房电器制造有限公司 | Access control method of intelligent home appliance and intelligent home appliance system |
-
2016
- 2016-11-18 CN CN201611019895.9A patent/CN106455139B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104126322A (en) * | 2013-09-30 | 2014-10-29 | 华为终端有限公司 | Channel switchover method, device and equipment |
CN103529793A (en) * | 2013-10-18 | 2014-01-22 | 中山司南物联网科技有限公司 | Control system and control method for Internet of things based on STA (Station) mode and AP (Access Point) mode of WIFI (Wireless Fidelity) |
CN103813365A (en) * | 2014-03-11 | 2014-05-21 | 福州瑞芯微电子有限公司 | WDS support system, device and method based on Android system |
CN104185224A (en) * | 2014-08-15 | 2014-12-03 | 深圳市同洲电子股份有限公司 | Wifi chip and control method during coexistence of station (STA) mode and access point (AP) mode |
CN104486762A (en) * | 2014-12-22 | 2015-04-01 | 广东美的厨房电器制造有限公司 | Access control method of intelligent home appliance and intelligent home appliance system |
Also Published As
Publication number | Publication date |
---|---|
CN106455139A (en) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106455139B (en) | WiFi module works at the same time the method, apparatus and system in double mode | |
CN104168557A (en) | Upgrading method for operating systems and upgrading device for operating systems | |
CN103491653A (en) | WiFi and 3G coexisting method based on Android intelligent terminal | |
CN105703985A (en) | Method for realizing quick network access of intelligent device and device interconnection | |
CN109462844A (en) | A kind of system and method that list WiFi chip runs multi-platform SDK | |
CN105451001A (en) | Visible dialogue system and method based on cloud technology | |
CN105893193A (en) | Connection control method of adb (Android Debug Bridge) and related equipment | |
CN103595949A (en) | Video call transfer method, terminal and system | |
CN105392182B (en) | The setting method and system of the network configuration information of WIFI equipment | |
CN105933992A (en) | Sensor wireless data gateway application system | |
WO2017205475A3 (en) | Optimal tune away scheme for circuit switched calls on virtual subscriber identity module | |
CN102694814B (en) | Have the high-definition video player of wireless networking capabilities and WAP (wireless access point) function concurrently | |
CN104967762A (en) | Configuration method for wireless Internet camera and configuration system thereof | |
CN104519482A (en) | Equipment parameter configuration method and device | |
CN111787496B (en) | Method and equipment for switching calls between mobile phones | |
CN105025273B (en) | Connection method, cipher set-up method and the system of storied building visible intercommunication system | |
CN103987075A (en) | Method for adding Internet access device with mobile phone APP | |
CN105828387A (en) | Wireless communication system, service processing method and device | |
CN105635497A (en) | Terminal call transfer method and call transfer terminal | |
CN105554724B (en) | A kind of system of the seamless certification of roaming based on virtual SIM card | |
CN103780637B (en) | Information sharing apparatus and method | |
KR20130125948A (en) | A method for providing digital album service and a device therefor | |
CN109617723A (en) | A kind of cloud communication system of broadcasting equipment | |
CN104092742A (en) | Method for conducing remote setting and maintaining on another intelligent device through smart phone | |
CN105791456B (en) | Device, system and method for realizing mobile terminal addressing between circuit domain and packet domain |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |