CN110888693A - Method and device for supporting AP and STA coexistence in Android system - Google Patents
Method and device for supporting AP and STA coexistence in Android system Download PDFInfo
- Publication number
- CN110888693A CN110888693A CN201911157582.3A CN201911157582A CN110888693A CN 110888693 A CN110888693 A CN 110888693A CN 201911157582 A CN201911157582 A CN 201911157582A CN 110888693 A CN110888693 A CN 110888693A
- Authority
- CN
- China
- Prior art keywords
- state
- sta
- state machine
- stripped
- android system
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4498—Finite state machines
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4482—Procedural
- G06F9/4484—Executing subprograms
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention provides a method and a device for supporting AP and STA coexistence in an Android system, wherein the method comprises the following steps: decomposing a Wifi controller state machine into a state machine for controlling an AP state and a state machine for controlling an STA state, and transferring to the state machine corresponding to an interface type according to the interface type called and opened by the Android system application layer, wherein the interface type comprises the AP state or the STA state; all AP states in the WifiStatMeschine state machine are stripped, and each STA state in the stripped WifiStatMeschine state machine monitors all stripped AP states. According to the embodiment of the invention, the Wi-Fi state machine is decomposed into two parts, the two parts are respectively and independently connected with the application program and the instruction of the driving layer, each part can ensure the independent operation of the AP and the STA, and the disorder of the Wi-Fi state machine in the Android frame layer is avoided.
Description
Technical Field
The invention relates to the technical field of Android, in particular to a method and a device for supporting AP and STA coexistence in an Android system.
Background
In the native Android system, a wireless network, Wi-Fi for short, cannot support coexistence of an Access Point (AP) and a Station (STA).
Specifically, in the Android system, when the STA is opened by the application, the Android frame interface is called to close the AP, and at this time, only the STA function can be realized. And when the application program opens the AP, the Android frame interface is called to close the STA, and only the AP function can be realized at the moment. If the STA and the AP are forcibly opened by the application program at the same time, a Wi-Fi state machine in the Android frame layer is disordered, and the Wi-Fi function cannot be normally used.
Therefore, a method for supporting the coexistence of AP and STA in the Android system is needed to solve the above problems.
Disclosure of Invention
In order to solve the above problems, embodiments of the present invention provide a method and an apparatus for supporting coexistence of an AP and an STA in an Android system, which overcome the above problems or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a method for supporting AP and STA coexistence in an Android system, including:
decomposing a Wifi controller state machine into a state machine for controlling an AP state and a state machine for controlling an STA state, and transferring to the state machine corresponding to an interface type according to the interface type called and opened by the Android system application layer, wherein the interface type comprises the AP state or the STA state;
all AP states in the WifiStatMeschine state machine are stripped, and each STA state in the stripped WifiStatMeschine state machine monitors all stripped AP states.
Wherein, the stripping all AP states in the WifiStatMeachine state machine and making each STA state in the stripped WifiStatMeachine state machine monitor all stripped AP states, including:
all AP states in the WifiStatMeachine state machine are stripped and stored in a memory, and a memory address is allocated to each STA state in the stripped WifiStatMeachine state machine, so that each STA state in the stripped WifiStatMeachine state machine monitors the memory.
Wherein the method further comprises:
and if the interface state is the AP state, storing the current AP state value in the memory.
Wherein the method further comprises:
and if the interface type is in an STA state, directly switching to a WifiStatMechine state machine after the AP state is stripped.
Wherein after the transferring into the state machine corresponding to the interface type, the method further comprises:
and keeping the state machine inconsistent with the interface type in an opening state.
In a second aspect, an embodiment of the present invention further provides a device for supporting coexistence of an AP and an STA in an Android system, including:
the application layer docking module is used for decomposing the Wifi controller state machine into a state machine for controlling an AP state and a state machine for controlling an STA state, and transferring the state machine corresponding to the interface type according to the interface type called and opened by the Android system application layer, wherein the interface type comprises the AP state or the STA state;
and the driving layer docking module is used for stripping all AP states in the WifiStatMeachine state machine and enabling each STA state in the stripped WifiStatMeachine state machine to monitor all stripped AP states.
Wherein the drive layer docking module is specifically configured to:
all AP states in the WifiStatMeachine state machine are stripped and stored in a memory, and a memory address is allocated to each STA state in the stripped WifiStatMeachine state machine, so that each STA state in the stripped WifiStatMeachine state machine monitors the memory.
Wherein the apparatus further comprises:
and the AP state storage module is used for storing the current AP state value in the memory if the interface state is the AP state.
Wherein the apparatus further comprises:
and the STA state processing module is used for directly switching to the WifiStatemMAC state machine after the AP state is stripped if the interface type is the STA state.
Wherein the apparatus is further configured to:
and keeping the state machine inconsistent with the interface type in an opening state.
Third aspect an embodiment of the present invention provides an electronic device, including:
a processor, a memory, a communication interface, and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method for supporting AP and STA coexistence in the Android system.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the above method for supporting AP and STA coexistence in an Android system.
According to the method and the device for supporting the AP and STA coexistence in the Android system, provided by the embodiment of the invention, the Wi-Fi state machine in the Android system frame layer is decomposed into two parts which are respectively and independently connected with the application program and the instruction of the drive layer, each part can ensure the independent operation of the AP and the STA, and the disorder of the Wi-Fi state machine in the Android frame layer is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for supporting coexistence of an AP and an STA in an Android system according to an embodiment of the present invention;
FIG. 2 is a state diagram included in a native Android System WifiController state machine;
fig. 3 is a schematic diagram of a state machine after the WifiController decomposition according to the embodiment of the present invention;
FIG. 4 is a state diagram included in a WifiStatemMechine state machine in the original ecological Android system;
fig. 5 is a schematic diagram of a state of stripping WifiStateMachine according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a device for supporting coexistence of an AP and an STA in an Android system according to an embodiment of the present invention;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments, but not all embodiments, of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flowchart of a method for supporting coexistence of an AP and an STA in an Android system according to an embodiment of the present invention, as shown in fig. 1, including:
101. decomposing a Wifi controller state machine into a state machine for controlling an AP state and a state machine for controlling an STA state, and transferring to the state machine corresponding to an interface type according to the interface type called and opened by the Android system application layer, wherein the interface type comprises the AP state or the STA state;
102. all AP states in the WifiStatMeschine state machine are stripped, and each STA state in the stripped WifiStatMeschine state machine monitors all stripped AP states.
It can be known from the background content that in the native Android system, when using the Wi-Fi function, the AP and the STA cannot be supported to coexist, that is, when an application program used by a user needs to call an AP interface, the STA interface needs to be closed, otherwise, when the application program used needs to call the STA interface, the AP interface needs to be closed, because if the AP and the STA interface are forcibly opened at the same time, the Wi-Fi state machine in the framework layer cannot be distinguished, so that the Wi-Fi function cannot be normally opened due to a disordered state.
Against the background, the embodiment of the present invention provides a method for simultaneously supporting AP and STA coexistence in Wi-Fi based on an Android system, that is, an application may simultaneously use an AP function and an STA function, and may normally perform Wi-Fi internet access. It should be noted that the Android system may be divided into multiple levels, and may include a driver layer, a Framework layer, and an Application layer from bottom to top, where the Framework layer is a specific implementation layer that is provided for developers to implement some basic functions, and is provided for an upper layer to call through an interface, and may be called repeatedly, so a Wi-Fi state machine is generally defined in the Framework layer, and it is understood that the state machine is a machine that defines many states, and switches the state of the machine according to a message after receiving the message, and the state types include two types, an AP type and an STA type. According to the embodiment of the invention, a WifiController state machine is adopted as the state machine for butting the application layer of the Android system, and a WifiStatMechine state machine is adopted as the state machine for butting the drive layer of the Android system. The WifiController state machine is a high-level Wi-Fi state machine, the states managed by the WifiController state machine are states such as a Wi-Fi switch and a Wi-Fi hotspot switch, and the WifiStatemMAC state machine is more suitable for being in butt joint with an application layer, expresses a finer wifi state, and is more suitable for being in butt joint with a driving layer.
Specifically, in step 101, fig. 2 is a state diagram included in the native Android system wifi controller state machine, as shown in fig. 2, the native Android system wifi controller state machine includes a large number of state examples, and a bottom side of each state represents that the state belongs to an AP state or an STA state, where the DefaultState state includes both the AP state and the STA state. For the original-ecology wifi controller state machine, the embodiment of the present invention decomposes the state machine into an AP state machine that only controls the AP state, which is referred to as a wifi AP controller state machine in the embodiment of the present invention, and an STA state machine that only controls the STA state, which is referred to as a wifi STA controller state machine in the embodiment of the present invention. Fig. 3 is a schematic diagram of a state machine after the wifi controller is decomposed according to the embodiment of the present invention, and as shown in fig. 3, a wifi sta controller state machine separated according to the embodiment of the present invention is above a dotted line, and a wifi ap controller state machine separated according to the embodiment of the present invention is below the dotted line. Then when there is an operation message from the application layer, the corresponding state machine can be selected to complete the operation by identifying the interface type of the message operation, for example: and if the AP state interface is started by the application layer call, correspondingly switching into the WifiAPController state machine, and conversely, if the STA state interface is started by the application layer call, correspondingly switching into the WifiSTAController state machine. It can be seen from the above process that, in the embodiment of the present invention, the wifi controller state machine interfacing to the application layer is decomposed into the wifi AP controller state machine only processing the AP state and the wifi STA controller state machine only processing the STA state, so that the AP and the STA operate independently, and the mutual interference is reduced as much as possible.
Finally, in step 102, in addition to the processing of the wifisontroller state machine, the embodiment of the present invention also processes the WifiStateMachine state machine, and fig. 4 is a state diagram included in the WifiStateMachine state machine in the original ecological Android system, as shown in fig. 4, each state included in the WifiStateMachine state machine also belongs to an AP state or an STA state, and a DefaultState state includes both the AP state and the STA state. In this case, the embodiment of the present invention may strip the AP states, and since the number of STA states in the wifi statemachine state machine is much greater than the number of AP states, in order to achieve system convenience and minimize computation workload, the embodiment of the present invention may strip all the AP states, while keeping the STA state machine in the original wifi statemachine state machine unchanged. Fig. 5 is a schematic diagram of a wifi state machine state that is stripped according to an embodiment of the present invention, and as shown in fig. 5, all states including an AP stripped according to an embodiment of the present invention are shown above a dotted line, in the embodiment of the present invention, these states are collectively referred to as an AP state, then none of the stripped wifi state machines includes the above states, the rest states are only STA states, and then a monitoring function of an AP state is set for each STA state that belongs to, so that the AP function can be simultaneously processed when any STA state is used, and coexistence of the STA state and the AP state is achieved. Taking processing the AP state as an example, when the AP state is processed by the application layer, the driver layer may record a current AP state value using an AP state machine, and then, in order to enable the STA state machine to be used at this time, the embodiment of the present invention may extract the currently recorded AP state value and store it as an APState, and then a storage path of the APState is allocated to each STA state remaining in the stripped WifiStateMachine, so that each STA state remaining in the stripped WifiStateMachine can monitor the AP state, and when the STA state needs to be used at this time, the AP state can be read out directly from the STA state machine, so that the STA and the AP can be used at the same time.
According to the method for supporting the AP and STA coexistence in the Android system, provided by the embodiment of the invention, the Wi-Fi state machine in the Android system framework layer is decomposed into two parts which are respectively and independently connected with the application program and the instruction of the driving layer, each part can ensure the independent operation of the AP and the STA, and the disorder of the Wi-Fi state machine in the Android framework layer is avoided.
On the basis of the above embodiment, stripping all AP states in the WifiStateMachine state machine, and enabling each STA state in the stripped WifiStateMachine state machine to monitor all stripped AP states, including:
all AP states in the WifiStatMeachine state machine are stripped and stored in a memory, and a memory address is allocated to each STA state in the stripped WifiStatMeachine state machine, so that each STA state in the stripped WifiStatMeachine state machine monitors the memory.
As can be seen from the contents of the above embodiments, when processing the WifiStateMachine state machine, the embodiments of the present invention perform monitoring after stripping the state. The stripped state is preferably stored in the memory in the embodiment of the present invention, and it can be understood that the AP state value or the STA state value can be conveniently stored in the memory, and when a monitoring object is allocated to each state in the stripped WifiStateMachine state machine, the memory address can be conveniently and directly allocated, so that the currently stored AP state value or STA state value can be directly read from the memory, and the AP state and the STA state can be conveniently and quickly coexisted.
On the basis of the above embodiment, the method further includes:
and if the interface state is the AP state, storing the current AP state value in the memory.
As can be seen from the above description, the embodiment of the present invention performs state stripping on the driving layer, and the stripped state is the AP state. When the AP state is accessed to the application layer for processing, the WifiAPController state machine is directly accessed to the application layer, all current AP states in the WifiStatMeachine state machine are stripped off in the drive layer, the current AP state value is stored, and then the storage path is distributed to each STA state in each stripped WifiStatMeachine state machine, so that each STA state can acquire the state value of each AP state, and each STA state can monitor the AP state. When any kind of STA state is operated, the current state of the AP can be captured in the STA state, so that the AP state and the STA state can be processed simultaneously.
On the basis of the above embodiment, the method further includes:
and if the interface type is in an STA state, directly switching to a WifiStatMechine state machine after the AP state is stripped.
As can be seen from the above description, the problem to be solved by the embodiments of the present invention is to implement coexistence of AP and STA states, where for an application layer, an access type may be an AP state or an STA state, and when the access type is the STA state, the application layer may directly switch to a wifi STA controller state machine, and the wifi statemachine state machine in a driver layer is only stripped of the AP state, and the remaining STA state machines can still process as usual, and then may directly switch to the wifi statemachine state machine stripped of the AP state to process the STA state.
On the basis of the foregoing embodiment, after the transferring into the state machine corresponding to the interface type, the method further includes:
and keeping the state machine inconsistent with the interface type in an opening state.
As can be seen from the content of the foregoing embodiment, in the embodiment of the present invention, the wifi controller state machine interfacing with the application layer is decomposed into the wifi AP controller state machine only processing the AP state and the wifi STA controller state machine only processing the STA state, and when the processing interface type is the AP state, the wifi AP controller state machine is directly transferred to, and when the processing interface type is the STA state, the wifi STA controller state machine is directly transferred to.
It can be understood that the WifiAPController state machine and the WifiSTAController state machine after being decomposed in the embodiment of the present invention are operated independently, and the embodiment of the present invention needs to process the AP state and the STA state at the same time, and it is preferable for full utilization of system resources that after the embodiment of the present invention is transferred to one of the state machines, the state machine of the other state machine does not need to perform a shutdown operation, thereby saving system resources. Specifically, the wifi AP controller state machine and the wifi STA controller state machine are simultaneously kept in an open state, so that when any type of state is accessed, the state can be directly switched into the corresponding wifi controller state machine according to the type of the state, that is, the state is directly switched into the wifi AP controller state machine when the AP state is accessed, and the state is directly switched into the wifi STA controller state machine when the STA state is accessed, and the two types of state machines are simultaneously opened without influencing each other, and respectively process corresponding states.
Fig. 6 is a schematic structural diagram of a device for supporting coexistence of an AP and an STA in an Android system according to an embodiment of the present invention, as shown in fig. 6, the device includes: an application layer docking module 601 and a driver layer docking module 602, wherein:
the application layer docking module 601 is configured to decompose a wifi controller state machine into a state machine for controlling an AP state and a state machine for controlling an STA state, and transfer to the state machine corresponding to an interface type according to the interface type called and opened by the Android system application layer, where the interface type includes the AP state or the STA state;
the driver layer docking module 602 is configured to strip all AP states in the WifiStateMachine state machine, and enable each STA state in the stripped WifiStateMachine state machine to monitor all stripped AP states.
Specifically, how to implement the technical scheme of the embodiment of the method for supporting the coexistence of the AP and the STA in the Android system shown in fig. 1 through the application layer docking module 601 and the driver layer docking module 602 is similar to the implementation principle and the technical effect, and details are not described here.
According to the device for supporting the AP and the STA to coexist in the Android system, the Wi-Fi state machine in the Android system framework layer is divided into two parts which are respectively and independently connected with the application program and the instruction of the driving layer, each part can guarantee the independent operation of the AP and the STA, and disorder of the Wi-Fi state machine in the Android framework layer is avoided.
On the basis of the above embodiment, the drive layer docking module is specifically configured to:
all AP states in the WifiStatMeachine state machine are stripped and stored in a memory, and a memory address is allocated to each STA state in the stripped WifiStatMeachine state machine, so that each STA state in the stripped WifiStatMeachine state machine monitors the memory.
On the basis of the above embodiment, the apparatus further includes:
and the AP state storage module is used for storing the current AP state value in the memory if the interface state is the AP state.
On the basis of the above embodiment, the apparatus further includes:
and the STA state processing module is used for directly switching to the WifiStatemMAC state machine after the AP state is stripped if the interface type is the STA state.
On the basis of the above embodiment, the apparatus is further configured to:
and keeping the state machine inconsistent with the interface type in an opening state.
Fig. 7 is a block diagram of an electronic device according to an embodiment of the present invention, and referring to fig. 7, the electronic device includes: a processor (processor)701, a communication Interface (Communications Interface)702, a memory (memory)703 and a bus 704, wherein the processor 701, the communication Interface 702 and the memory 703 complete communication with each other through the bus 704. The processor 701 may call logic instructions in the memory 703 to perform the following method: decomposing a Wifi controller state machine into a state machine for controlling an AP state and a state machine for controlling an STA state, and transferring to the state machine corresponding to an interface type according to the interface type called and opened by the Android system application layer, wherein the interface type comprises the AP state or the STA state; all AP states in the WifiStatMeschine state machine are stripped, and each STA state in the stripped WifiStatMeschine state machine monitors all stripped AP states.
An embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer can execute the methods provided by the above method embodiments, for example, the method includes: decomposing a Wifi controller state machine into a state machine for controlling an AP state and a state machine for controlling an STA state, and transferring to the state machine corresponding to an interface type according to the interface type called and opened by the Android system application layer, wherein the interface type comprises the AP state or the STA state; all AP states in the WifiStatMeschine state machine are stripped, and each STA state in the stripped WifiStatMeschine state machine monitors all stripped AP states.
Embodiments of the present invention provide a non-transitory computer-readable storage medium, which stores computer instructions, where the computer instructions cause the computer to perform the methods provided by the above method embodiments, for example, the methods include: decomposing a Wifi controller state machine into a state machine for controlling an AP state and a state machine for controlling an STA state, and transferring to the state machine corresponding to an interface type according to the interface type called and opened by the Android system application layer, wherein the interface type comprises the AP state or the STA state; all AP states in the WifiStatMeschine state machine are stripped, and each STA state in the stripped WifiStatMeschine state machine monitors all stripped AP states.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to each embodiment or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A method for supporting AP and STA coexistence in an Android system is characterized by comprising the following steps:
decomposing a Wifi controller state machine into a state machine for controlling an AP state and a state machine for controlling an STA state, and transferring to the state machine corresponding to an interface type according to the interface type called and opened by the Android system application layer, wherein the interface type comprises the AP state or the STA state;
all AP states in the WifiStatMeschine state machine are stripped, and each STA state in the stripped WifiStatMeschine state machine monitors all stripped AP states.
2. The method of claim 1, wherein the stripping off all AP states in the WifiStatMeschine state machine and enabling each STA state in the stripped WifiStatMeschine state machine to monitor all stripped AP states comprises:
all AP states in the WifiStatMeachine state machine are stripped and stored in a memory, and a memory address is allocated to each STA state in the stripped WifiStatMeachine state machine, so that each STA state in the stripped WifiStatMeachine state machine monitors the memory.
3. The method for supporting AP and STA coexistence in Android system according to claim 2, further comprising:
and if the interface state is the AP state, storing the current AP state value in the memory.
4. The method for supporting AP and STA coexistence in Android system according to claim 2, further comprising:
and if the interface type is in an STA state, directly switching to a WifiStatMechine state machine after the AP state is stripped.
5. The method for supporting AP and STA coexistence in Android system according to claim 1, wherein after the transferring into the state machine corresponding to the interface type, the method further comprises:
and keeping the state machine inconsistent with the interface type in an opening state.
6. An apparatus for supporting AP and STA coexistence in an Android system, comprising:
the application layer docking module is used for decomposing the Wifi controller state machine into a state machine for controlling an AP state and a state machine for controlling an STA state, and transferring the state machine corresponding to the interface type according to the interface type called and opened by the Android system application layer, wherein the interface type comprises the AP state or the STA state;
and the driving layer docking module is used for stripping all AP states in the WifiStatMeachine state machine and enabling each STA state in the stripped WifiStatMeachine state machine to monitor all stripped AP states.
7. The device for supporting coexistence of AP and STA in Android system according to claim 6, wherein the driver layer docking module is specifically configured to:
all AP states in the WifiStatMeachine state machine are stripped and stored in a memory, and a memory address is allocated to each STA state in the stripped WifiStatMeachine state machine, so that each STA state in the stripped WifiStatMeachine state machine monitors the memory.
8. The apparatus for supporting AP and STA coexistence in Android system according to claim 7, further comprising:
and the AP state storage module is used for storing the current AP state value in the memory if the interface state is the AP state.
9. The apparatus for supporting AP and STA coexistence in Android system according to claim 7, further comprising:
and the STA state processing module is used for directly switching to the WifiStatemMAC state machine after the AP state is stripped if the interface type is the STA state.
10. The apparatus for supporting AP and STA coexistence in Android system according to claim 6, wherein said apparatus is further configured to:
and keeping the state machine inconsistent with the interface type in an opening state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911157582.3A CN110888693B (en) | 2019-11-22 | 2019-11-22 | Method and device for supporting AP and STA coexistence in Android system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911157582.3A CN110888693B (en) | 2019-11-22 | 2019-11-22 | Method and device for supporting AP and STA coexistence in Android system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110888693A true CN110888693A (en) | 2020-03-17 |
CN110888693B CN110888693B (en) | 2022-08-30 |
Family
ID=69748466
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911157582.3A Active CN110888693B (en) | 2019-11-22 | 2019-11-22 | Method and device for supporting AP and STA coexistence in Android system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110888693B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114125778A (en) * | 2021-11-23 | 2022-03-01 | 京东方科技集团股份有限公司 | Wireless service method based on android system and related equipment |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130176998A1 (en) * | 2012-01-06 | 2013-07-11 | Nokia Corporation | Mechanism For Coexistence Between Wireless Networks |
US20150065157A1 (en) * | 2013-08-30 | 2015-03-05 | Qualcomm Incorporated | Reverse channel switch request from stations to access points for lte/wi-fi coexistence |
CN105246169A (en) * | 2015-09-11 | 2016-01-13 | 深圳创锐思科技有限公司 | Wireless connection method, wireless connection device and wireless terminal |
CN105578505A (en) * | 2015-12-14 | 2016-05-11 | 美的集团股份有限公司 | State management method of wireless communication module and wireless communication module |
CN105721220A (en) * | 2016-03-11 | 2016-06-29 | 北京奇虎科技有限公司 | Intelligent terminal and network bottom configuration method thereof |
US20160262163A1 (en) * | 2013-10-15 | 2016-09-08 | Aoife Solutions, S.L. | System and method for decentralized control of wireless networks |
US20170094580A1 (en) * | 2015-09-30 | 2017-03-30 | Hisense Mobile Communications Technology Co., Ltd. | Mobile Device And Method For Relaying By Mobile Device |
CN106604413A (en) * | 2016-12-29 | 2017-04-26 | 生迪智慧科技有限公司 | Dual-mode coexistence control method, Wi-Fi chip and communication device |
CN109587829A (en) * | 2018-11-16 | 2019-04-05 | 青岛海信电器股份有限公司 | A kind of method, apparatus and terminal that terminal is used as website and hot spot to work simultaneously |
CN109743771A (en) * | 2019-01-22 | 2019-05-10 | 苏州长风航空电子有限公司 | A kind of method and its system for realizing that vehicle device is network coexisted |
-
2019
- 2019-11-22 CN CN201911157582.3A patent/CN110888693B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130176998A1 (en) * | 2012-01-06 | 2013-07-11 | Nokia Corporation | Mechanism For Coexistence Between Wireless Networks |
US20150065157A1 (en) * | 2013-08-30 | 2015-03-05 | Qualcomm Incorporated | Reverse channel switch request from stations to access points for lte/wi-fi coexistence |
US20160262163A1 (en) * | 2013-10-15 | 2016-09-08 | Aoife Solutions, S.L. | System and method for decentralized control of wireless networks |
CN105246169A (en) * | 2015-09-11 | 2016-01-13 | 深圳创锐思科技有限公司 | Wireless connection method, wireless connection device and wireless terminal |
US20170094580A1 (en) * | 2015-09-30 | 2017-03-30 | Hisense Mobile Communications Technology Co., Ltd. | Mobile Device And Method For Relaying By Mobile Device |
CN105578505A (en) * | 2015-12-14 | 2016-05-11 | 美的集团股份有限公司 | State management method of wireless communication module and wireless communication module |
CN105721220A (en) * | 2016-03-11 | 2016-06-29 | 北京奇虎科技有限公司 | Intelligent terminal and network bottom configuration method thereof |
CN106604413A (en) * | 2016-12-29 | 2017-04-26 | 生迪智慧科技有限公司 | Dual-mode coexistence control method, Wi-Fi chip and communication device |
CN109587829A (en) * | 2018-11-16 | 2019-04-05 | 青岛海信电器股份有限公司 | A kind of method, apparatus and terminal that terminal is used as website and hot spot to work simultaneously |
CN109743771A (en) * | 2019-01-22 | 2019-05-10 | 苏州长风航空电子有限公司 | A kind of method and its system for realizing that vehicle device is network coexisted |
Non-Patent Citations (3)
Title |
---|
I加加: "Android O Wifi中的状态模式-WifiStateMachine的初始化", 《HTTPS:https://BLOG.CSDN.NET/SINAT_20059415/ARTICLE/DETAILS/80752610》 * |
I加加: "Android O wifi状态机消息处理及状态切换流程分析", 《HTTPS:https://BLOG.CSDN.NET/SINAT_20059415/ARTICLE/DETAILS/80842013》 * |
喻丽春等: "基于Wi-Fi Direct和Socks5的网络共享", 《北京信息科技大学学报(自然科学版)》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114125778A (en) * | 2021-11-23 | 2022-03-01 | 京东方科技集团股份有限公司 | Wireless service method based on android system and related equipment |
CN114125778B (en) * | 2021-11-23 | 2024-06-18 | 京东方科技集团股份有限公司 | Wireless service method based on android system and related equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110888693B (en) | 2022-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110535813B (en) | Method and device for processing coexistence of kernel mode protocol stack and user mode protocol stack | |
CN104133610B (en) | The split screen exchange method of mobile terminal and mobile terminal | |
JP7100154B6 (en) | Processor core scheduling method, device, terminal and storage medium | |
CN103677870B (en) | Method for upgrading system and the system using this method upgrading | |
CN109167820A (en) | A kind of method for down loading of application program, device, storage medium and terminal | |
CN111352647A (en) | Virtual machine upgrading method, device, equipment and storage medium | |
CN105630461A (en) | Managing method of android application interface | |
CN103228017A (en) | Method for switching modes among multi-mode terminals | |
CN105450857B (en) | Prevent voice incoming call from interrupting the implementation method and device of the contextual model that data network uses | |
CN110888693B (en) | Method and device for supporting AP and STA coexistence in Android system | |
CN110738156B (en) | Face recognition system and method based on message middleware | |
CN114039930B (en) | Data packet processing method and system | |
CN114710549B (en) | Dynamic management method, system and service node for network card in container platform | |
CN112383414B (en) | Dual-machine hot backup quick switching method and device | |
WO2024078465A1 (en) | Scheduled job processing method, device, and storage medium | |
CN103197954A (en) | Information processing apparatus and method of controlling information processing apparatus | |
WO2024109271A1 (en) | Method and apparatus for adjusting working state of module, device, and medium | |
US10379884B2 (en) | Communication method and apparatus, and electronic device and program product thereof | |
CN111918372A (en) | Communication method and device | |
CN102299938B (en) | Method and device for realizing multicore and multisystem unified platform | |
CN108809763A (en) | A kind of network performance parameter acquisition method, terminal installation and storage medium | |
CN108712298A (en) | Upgrading network equipment method, apparatus, the network equipment and storage medium | |
CN114780211A (en) | Method for managing a secure container and system based on a secure container | |
CN113595938A (en) | Virtual network performance acceleration method, device, equipment and storage medium | |
CN108459858B (en) | Function adjusting method, device, equipment and storage medium of application program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |