CN105898795B - Method for realizing dual-mode coexistence on WIFI chip and electronic equipment - Google Patents

Method for realizing dual-mode coexistence on WIFI chip and electronic equipment Download PDF

Info

Publication number
CN105898795B
CN105898795B CN201610183074.2A CN201610183074A CN105898795B CN 105898795 B CN105898795 B CN 105898795B CN 201610183074 A CN201610183074 A CN 201610183074A CN 105898795 B CN105898795 B CN 105898795B
Authority
CN
China
Prior art keywords
mode
channel
time slot
file
communication sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610183074.2A
Other languages
Chinese (zh)
Other versions
CN105898795A (en
Inventor
洪阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201610183074.2A priority Critical patent/CN105898795B/en
Publication of CN105898795A publication Critical patent/CN105898795A/en
Application granted granted Critical
Publication of CN105898795B publication Critical patent/CN105898795B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access, e.g. scheduled or random access
    • H04W74/08Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access]
    • H04W74/0833Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access] using a random access procedure
    • H04W74/0841Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access] using a random access procedure with collision treatment
    • H04W74/085Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access] using a random access procedure with collision treatment collision avoidance
    • 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/08Access point devices
    • H04W88/10Access point devices adapted for operation in multiple networks, e.g. multi-mode access points

Abstract

The invention discloses a method for realizing dual-mode coexistence on a WIFI chip and electronic equipment, wherein the method comprises the following steps: obtaining a control instruction for indicating coexistence of an STA mode and an AP mode; responding to the control instruction, loading an NV file, wherein the NV file at least comprises control information aiming at a communication channel under the coexistence of an STA mode and an AP mode; and under the control of the NV file, controlling a communication channel of a frequency band supported by the WIFI chip so as to enable the STA mode and the AP mode to coexist.

Description

Method for realizing dual-mode coexistence on WIFI chip and electronic equipment
Technical Field
The present invention relates to a communication mode management technology of a communication device, and in particular, to a method for implementing dual-mode coexistence on a WIFI chip and an electronic device.
Background
An electronic device, such as a WIIF chip in a smart phone, may have an STA (Station) mode or an AP (Access Point) mode; wherein, when the WIIF chip uses one of the STA mode and the AP mode, the problem of channel collision does not occur. However, when the same wifi chip, both Station and AP, are in STA mode and AP mode at the same time, there is channel conflict. It can be seen that the wifi chip of the prior art cannot realize the coexistence of the STA mode and the AP mode.
Disclosure of Invention
The embodiment of the invention provides a method for realizing dual-mode coexistence on a WIFI chip and electronic equipment, which can at least solve the problems in the prior art.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a method for realizing dual-mode coexistence on a WIFI chip, which comprises the following steps:
obtaining a control instruction for indicating coexistence of an STA mode and an AP mode;
responding to the control instruction, loading an NV file, wherein the NV file at least comprises control information aiming at a communication channel under the coexistence of an STA mode and an AP mode;
and under the control of the NV file, controlling a communication channel of a frequency band supported by the WIFI chip so as to enable the STA mode and the AP mode to coexist.
An embodiment of the present invention further provides an electronic device, where the electronic device includes:
an information acquisition unit, configured to acquire a control instruction for indicating coexistence of an STA mode and an AP mode;
a processing unit, configured to respond to the control instruction, load an NV file, where the NV file at least includes control information for a communication channel when an STA mode and an AP mode coexist; and under the control of the NV file, controlling a communication channel of a frequency band supported by the WIFI chip so as to enable the STA mode and the AP mode to coexist.
According to the method for realizing dual-mode coexistence on the WIFI chip and the electronic device, the control information for the communication channel under the coexistence condition of the STA mode and the AP mode of the NV file can be obtained by loading the NV file, so that the WIFI chip can coexist in the STA mode and the AP mode. Therefore, the electronic equipment can be used as an access point to access the network and can also be used as an access point to provide the network for other equipment, the working mode of the WIFI chip in the electronic equipment is expanded, and the application scene of the electronic equipment is promoted.
Drawings
Fig. 1 is a schematic flow chart illustrating a method for implementing dual mode coexistence on a WIFI chip according to an embodiment of the present invention;
fig. 2 is a schematic view of an operation interface for selecting a working mode of a WIFI chip according to an embodiment of the present invention;
fig. 3 is a schematic diagram of 2.4G frequency band and channel frequency division in the embodiment of the present invention;
fig. 4 is a schematic diagram of 5G frequency band and channel frequency division in the embodiment of the present invention;
FIG. 5 is a diagram illustrating timeslot division according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a time-sharing workflow according to an embodiment of the present invention;
fig. 7 is a schematic view of a composition structure of an electronic device according to an embodiment of the invention.
Detailed Description
The invention is described in further detail below with reference to the figures and specific examples.
The first embodiment,
The embodiment of the present invention provides a method for implementing dual-mode coexistence on a WIFI chip, as shown in fig. 1, including:
step 101: obtaining a control instruction for indicating coexistence of an STA mode and an AP mode;
step 102: responding to the control instruction, loading an NV file, wherein the NV file at least comprises control information aiming at a communication channel under the coexistence of an STA mode and an AP mode;
step 103: and under the control of the NV file, controlling a communication channel of a frequency band supported by the WIFI chip so as to enable the STA mode and the AP mode to coexist.
Here, the STA mode is used to indicate a mode that can establish a communication connection with a network side through WIFI and interact data with the network side through the communication connection;
the AP mode is used for representing a mode which can establish communication connection with a network side through a WIFI chip, interact data with the network side through the communication connection, and allow other electronic equipment to access as a wireless access point and access the network through the wireless access point.
The manner of obtaining the control instruction for indicating the coexistence of the STA mode and the AP mode may be that a user selects which mode the WIFI function of the current electronic device is in through a setting interface, for example, referring to fig. 2, an option of "STA mode and AP mode" may be selected from the drawing, so as to obtain the control instruction for dual-mode coexistence.
It should be noted that the scenario shown in fig. 2 is only one possible operation manner, and in addition, the scenario may not be directly displayed in the STA mode, and when the "wireless local area network" is selected, the STA mode is determined to be entered, and when the "personal hotspot" is selected, the AP mode is determined to be entered, and if the option of "wireless local area network and personal hotspot coexisting" is provided and can be selected, the obtained control instruction for indicating the coexistence of the STA mode and the AP mode may be determined.
Further, the loading the NV file in response to the control instruction may be: and calling a preset NV file from the WIFI chip when the control instruction is detected.
The content included in the NV file may include, in addition to the control information for the communication channel in the coexistence of the STA mode and the AP mode, the control information for the communication channel that needs to be acquired when the WIFI chip is in the STA mode, and the control information for the communication channel that needs to be acquired when the WIFI chip is in the AP mode. That is, for each mode, the NV file may have an identification information, and once a control instruction indicating that the mode is in a certain mode is received, the corresponding identification information is found from the NV file according to the identification corresponding to the mode, and the control information of the communication channel in the mode is extracted and obtained based on the identification information.
Further, the frequency bands supported by the WIFI chip under the control of the NV file may generally include two types, namely 2.5G and 5G.
Therefore, by adopting the scheme, the control information for the communication channel under the coexistence of the STA mode and the AP mode of the NV file can be obtained by loading the NV file, so that the WIFI chip can be in the coexistence of the STA mode and the AP mode. Therefore, the electronic equipment can be used as an access point to access the network and can also be used as an access point to provide the network for other equipment, the working mode of the WIFI chip in the electronic equipment is expanded, and the application scene of the electronic equipment is promoted.
Example II,
The embodiment of the present invention provides a method for implementing dual-mode coexistence on a WIFI chip, as shown in fig. 1, including:
step 101: obtaining a control instruction for indicating coexistence of an STA mode and an AP mode;
step 102: responding to the control instruction, loading an NV file, wherein the NV file at least comprises control information aiming at a communication channel under the coexistence of an STA mode and an AP mode;
step 103: and under the control of the NV file, controlling a communication channel of a frequency band supported by the WIFI chip so as to enable the STA mode and the AP mode to coexist.
Here, the STA mode is used to indicate a mode that can establish a communication connection with a network side through WIFI and interact data with the network side through the communication connection;
the AP mode is used for representing a mode which can establish communication connection with a network side through a WIFI chip, interact data with the network side through the communication connection, and allow other electronic equipment to access as a wireless access point and access the network through the wireless access point.
The manner of obtaining the control instruction for indicating the coexistence of the STA mode and the AP mode may be that a user selects which mode the WIFI function of the current electronic device is in through a setting interface, for example, referring to fig. 2, an option of "STA mode and AP mode" may be selected from the drawing, so as to obtain the control instruction for dual-mode coexistence.
It should be noted that the scenario shown in fig. 2 is only one possible operation manner, and in addition, the scenario may not be directly displayed in the STA mode, and when the "wireless local area network" is selected, the STA mode is determined to be entered, and when the "personal hotspot" is selected, the AP mode is determined to be entered, and if the option of "wireless local area network and personal hotspot coexisting" is provided and can be selected, the obtained control instruction for indicating the coexistence of the STA mode and the AP mode may be determined.
Further, the loading the NV file in response to the control instruction may be: and calling a preset NV file from the WIFI chip when the control instruction is detected.
The content included in the NV file may include, in addition to the control information for the communication channel in the coexistence of the STA mode and the AP mode, the control information for the communication channel that needs to be acquired when the WIFI chip is in the STA mode, and the control information for the communication channel that needs to be acquired when the WIFI chip is in the AP mode. That is, for each mode, the NV file may have an identification information, and once a control instruction indicating that the mode is in a certain mode is received, the corresponding identification information is found from the NV file according to the identification corresponding to the mode, and the control information of the communication channel in the mode is extracted and obtained based on the identification information.
Further, the present embodiment provides a specific implementation manner, and the following description is given by taking an implementation manner in which the STA mode and the AP mode are in different transmission frequency bands as an example in the present embodiment, specifically as follows:
the controlling the communication channel of the frequency band supported by the WIFI chip under the control of the NV file comprises:
selecting a first communication sub-channel and a second communication sub-channel which are distributed in different transmission frequency bands under the condition that an STA mode and the AP mode coexist from the NV file;
the first communication sub-channel is controlled for supporting data interaction in an STA mode, and the second communication sub-channel is controlled for supporting data interaction in an AP mode.
Wherein, the first communication sub-channel and the second communication sub-channel with different transmission frequency bands can be set according to different scenes corresponding to different frequency bands supported by WIFI, such as:
in a scenario one, which is the most commonly used scenario of 2.4G, if the WIFI chip only supports a frequency band of 2.4G, referring to fig. 3, channel allocation of a 2.5G frequency band is taken as an example, wherein, assuming that each channel frequency band distribution diagram of WIFI 2.4G, there are non-interfering channels (1, 6, 11) in the whole frequency band. Then the first communication sub-channel may be designated as channel 1 and the second communication sub-channel as channel 6; alternatively, the first communication sub-channel is channel 11 and the second communication sub-channel is channel 1.
In a second scenario, when the WIFI chip can support channels of two frequency bands, i.e., 2.4G and 5G, first, a division diagram (fig. 4) of the 5G frequency band is combined to describe channel frequency band division in the 5G frequency band, where 802.11a.n is shown in fig. 4, and distribution diagrams of channel frequency bands of WIFI 5G under different bandwidths in the ac specification are shown. The channels available for WiFi 5G in China are CH 36-48 and CH 149-165.
It can be seen from fig. 3 and 4 that the frequency bands of 2.4G and 5G are far apart. That is to say, when the WIFI chip can support channels of two frequency bands, 2.4G and 5G, the first communication sub-channel may be set to be a channel supported by any one of the 2.4G frequency bands, and the second communication sub-channel may be set to be a channel supported by any one of the 5G frequency bands, for example, the first communication sub-channel may be set to be the channel 6, and the second communication sub-channel may be set to be the channel 40.
Preferably, for the scenario provided in this embodiment, it may further be specified that the transmission frequency band of the first communication sub-channel is set to be higher than the transmission frequency band of the second communication sub-channel. That is to say, for the second scenario, when the WIFI chip can support channels of two frequency bands, namely 2.4G and 5G, the first communication sub-channel may be set to be a channel frequency band supported by any one of the 5G frequency bands, and the second communication sub-channel may be set to be a channel frequency band supported by any one of the 2.4G frequency bands. For example, the first communication sub-channel may be set to be channel 48 and the second communication sub-channel may be set to be channel 11.
Therefore, by adopting the scheme, the control information for the communication channel under the coexistence of the STA mode and the AP mode of the NV file can be obtained by loading the NV file, so that the WIFI chip can be in the coexistence of the STA mode and the AP mode. Therefore, the electronic equipment can be used as an access point to access the network and can also be used as an access point to provide the network for other equipment, the working mode of the WIFI chip in the electronic equipment is expanded, and the application scene of the electronic equipment is promoted.
Example III,
The embodiment of the present invention provides a method for implementing dual-mode coexistence on a WIFI chip, as shown in fig. 1, including:
step 101: obtaining a control instruction for indicating coexistence of an STA mode and an AP mode;
step 102: responding to the control instruction, loading an NV file, wherein the NV file at least comprises control information aiming at a communication channel under the coexistence of an STA mode and an AP mode;
step 103: and under the control of the NV file, controlling a communication channel of a frequency band supported by the WIFI chip so as to enable the STA mode and the AP mode to coexist.
Here, the STA mode is used to indicate a mode that can establish a communication connection with a network side through WIFI and interact data with the network side through the communication connection;
the AP mode is used for representing a mode which can establish communication connection with a network side through a WIFI chip, interact data with the network side through the communication connection, and allow other electronic equipment to access as a wireless access point and access the network through the wireless access point.
The manner of obtaining the control instruction for indicating the coexistence of the STA mode and the AP mode may be that a user selects which mode the WIFI function of the current electronic device is in through a setting interface, for example, referring to fig. 2, an option of "STA mode and AP mode" may be selected from the drawing, so as to obtain the control instruction for dual-mode coexistence.
It should be noted that the scenario shown in fig. 2 is only one possible operation manner, and in addition, the scenario may not be directly displayed in the STA mode, and when the "wireless local area network" is selected, the STA mode is determined to be entered, and when the "personal hotspot" is selected, the AP mode is determined to be entered, and if the option of "wireless local area network and personal hotspot coexisting" is provided and can be selected, the obtained control instruction for indicating the coexistence of the STA mode and the AP mode may be determined.
Further, the loading the NV file in response to the control instruction may be: and calling a preset NV file from the WIFI chip when the control instruction is detected.
The content included in the NV file may include, in addition to the control information for the communication channel in the coexistence of the STA mode and the AP mode, the control information for the communication channel that needs to be acquired when the WIFI chip is in the STA mode, and the control information for the communication channel that needs to be acquired when the WIFI chip is in the AP mode. That is, for each mode, the NV file may have an identification information, and once a control instruction indicating that the mode is in a certain mode is received, the corresponding identification information is found from the NV file according to the identification corresponding to the mode, and the control information of the communication channel in the mode is extracted and obtained based on the identification information.
Further, the present embodiment provides a specific implementation manner different from the foregoing embodiment, and the following description is given by taking an implementation manner in which the STA mode and the AP mode are in different transmission periods as an example, and the specific implementation manner is as follows:
the controlling the communication channel of the frequency band supported by the WIFI chip under the control of the NV file comprises:
selecting a first communication sub-channel and a second communication sub-channel which are allocated with different working time slots under the condition that an STA mode and the AP mode coexist from the NV file;
the first communication sub-channel is controlled for supporting data interaction in an STA mode, and the second communication sub-channel is controlled for supporting data interaction in an AP mode.
That is, in this scenario, first, the first communication sub-channel and the second communication sub-channel both use the same frequency band, but operate in different time slots. The present embodiment can be described by using a channel in the 2.4G band shown in fig. 3, and can also be described by using a channel in the 5G band shown in fig. 4, and the band is not limited here.
Specifically, the first communication sub-channel includes an uplink working time slot set as at least one first time slot and a downlink working time slot set as at least one second time slot; correspondingly, the second communication sub-channel comprises an uplink working time slot set as at least one third time slot and a downlink working time slot set as at least one fourth time slot; the first time slot, the second time slot, the third time slot and the fourth time slot are all different.
It should be noted that, for the time slot division of the communication sub-channels, the time slot division may be preset at the terminal side and the network side according to the actual situation, for example, a radio frame duration may be set to be N, where M time slots are provided, that is, the duration of each time slot is not greater than N/M, in this embodiment, at least four time slots may exist in one radio frame, for example, referring to fig. 5, it is assumed that a first communication sub-channel adopts a time slot 1 as a first time slot, that is, an uplink time slot, a time slot 2 as a second time slot, that is, a downlink time slot, a second communication sub-channel adopts a time slot 3 as an uplink time slot, and a time slot 4 as a fourth time slot, that is, a downlink time slot. By such time slot division as in fig. 5, the first communication sub-channel and the second communication sub-channel can be distinguished in time, so as to avoid the problem of channel collision between the two modes of STA and AP. It can be understood that fig. 5 only shows an example where each communication subchannel has two time slots, in the actual processing, more uplink and downlink time slots can be set for each communication subchannel, and the specific data processing manner for each time slot is the same as that in the example in fig. 5, and therefore, details are not described here.
In addition, it should be noted that the setting of the uplink timeslot and the downlink timeslot corresponding to the first communication sub-channel may be also set in advance on the network side, for example, when it is determined that the electronic device enters a scenario in which an STA mode and an AP mode coexist, a notification may be sent to the network side in advance, so that the network side obtains the scenario in which the electronic device is to enter a dual-mode coexistence, and the electronic device uses communication sub-channels in different timeslots to respectively interact data in the two modes, at this time, the network side may respectively interact data to the electronic device side through different uplink and downlink timeslots according to preset information for communication sub-channels in different modes.
In this embodiment, referring to fig. 6, a flow may be described again, and when the WIFI chip is in any one of the STA mode and the AP mode, the WIIF chip may be controlled to operate in the default frequency band and channel; once the WIFI chip is controlled to be in a scene where the STA mode and the AP mode coexist, the STA mode and the AP mode are subjected to time-sharing control based on control information in the NV file, and finally the STA mode and the AP mode can coexist.
Therefore, by adopting the scheme, the control information for the communication channel under the coexistence of the STA mode and the AP mode of the NV file can be obtained by loading the NV file, so that the WIFI chip can be in the coexistence of the STA mode and the AP mode. Therefore, the electronic equipment can be used as an access point to access the network and can also be used as an access point to provide the network for other equipment, the working mode of the WIFI chip in the electronic equipment is expanded, and the application scene of the electronic equipment is promoted.
Example four,
An embodiment of the present invention provides an electronic device, as shown in fig. 7, the electronic device includes:
an information obtaining unit 71, configured to obtain a control instruction for instructing coexistence of the STA mode and the AP mode;
a processing unit 72, configured to respond to the control instruction, load an NV file, where the NV file at least includes control information for a communication channel when the STA mode and the AP mode coexist; and under the control of the NV file, controlling a communication channel of a frequency band supported by the WIFI chip so as to enable the STA mode and the AP mode to coexist.
Here, the STA mode is used to indicate a mode that can establish a communication connection with a network side through WIFI and interact data with the network side through the communication connection;
the AP mode is used for representing a mode which can establish communication connection with a network side through a WIFI chip, interact data with the network side through the communication connection, and allow other electronic equipment to access as a wireless access point and access the network through the wireless access point.
The manner of obtaining the control instruction for indicating the coexistence of the STA mode and the AP mode may be that a user selects which mode the WIFI function of the current electronic device is in through a setting interface, for example, referring to fig. 2, an option of "STA mode and AP mode" may be selected from the drawing, so as to obtain the control instruction for dual-mode coexistence.
It should be noted that the scenario shown in fig. 2 is only one possible operation manner, and in addition, the scenario may not be directly displayed in the STA mode, and when the "wireless local area network" is selected, the STA mode is determined to be entered, and when the "personal hotspot" is selected, the AP mode is determined to be entered, and if the option of "wireless local area network and personal hotspot coexisting" is provided and can be selected, the obtained control instruction for indicating the coexistence of the STA mode and the AP mode may be determined.
Further, the loading the NV file in response to the control instruction may be: and calling a preset NV file from the WIFI chip when the control instruction is detected.
In addition to the control information for the communication channel when the STA mode and the AP mode coexist, the content included in the NV file may be control information for the communication channel when the WIFI chip is in the STA mode, and the processing unit 72 is configured to acquire the control information for the communication channel when the WIFI chip is in the AP mode. That is, for each mode, the NV file may have an identification information, and once a control instruction indicating that the mode is in a certain mode is received, the corresponding identification information is found from the NV file according to the identification corresponding to the mode, and the control information of the communication channel in the mode is extracted and obtained based on the identification information.
Further, the frequency bands supported by the WIFI chip under the control of the NV file may generally include two types, namely 2.5G and 5G.
Therefore, by adopting the scheme, the control information for the communication channel under the coexistence of the STA mode and the AP mode of the NV file can be obtained by loading the NV file, so that the WIFI chip can be in the coexistence of the STA mode and the AP mode. Therefore, the electronic equipment can be used as an access point to access the network and can also be used as an access point to provide the network for other equipment, the working mode of the WIFI chip in the electronic equipment is expanded, and the application scene of the electronic equipment is promoted.
Example V,
An embodiment of the present invention provides an electronic device, as shown in fig. 7, the electronic device includes:
an information obtaining unit 71, configured to obtain a control instruction for instructing coexistence of the STA mode and the AP mode;
a processing unit 72, configured to respond to the control instruction, load an NV file, where the NV file at least includes control information for a communication channel when the STA mode and the AP mode coexist; and under the control of the NV file, controlling a communication channel of a frequency band supported by the WIFI chip so as to enable the STA mode and the AP mode to coexist.
Here, the STA mode is used to indicate a mode that can establish a communication connection with a network side through WIFI and interact data with the network side through the communication connection;
the AP mode is used for representing a mode which can establish communication connection with a network side through a WIFI chip, interact data with the network side through the communication connection, and allow other electronic equipment to access as a wireless access point and access the network through the wireless access point.
The manner of obtaining the control instruction for indicating the coexistence of the STA mode and the AP mode may be that a user selects which mode the WIFI function of the current electronic device is in through a setting interface, for example, referring to fig. 2, an option of "STA mode and AP mode" may be selected from the drawing, so as to obtain the control instruction for dual-mode coexistence.
It should be noted that the scenario shown in fig. 2 is only one possible operation manner, and in addition, the scenario may not be directly displayed in the STA mode, and when the "wireless local area network" is selected, the STA mode is determined to be entered, and when the "personal hotspot" is selected, the AP mode is determined to be entered, and if the option of "wireless local area network and personal hotspot coexisting" is provided and can be selected, the obtained control instruction for indicating the coexistence of the STA mode and the AP mode may be determined.
Further, the loading the NV file in response to the control instruction may be: and calling a preset NV file from the WIFI chip when the control instruction is detected.
The content included in the NV file may include, in addition to the control information for the communication channel in the coexistence of the STA mode and the AP mode, the control information for the communication channel that needs to be acquired when the WIFI chip is in the STA mode, and the control information for the communication channel that needs to be acquired when the WIFI chip is in the AP mode. That is, for each mode, the NV file may have an identification information, and once a control instruction indicating that the mode is in a certain mode is received, the corresponding identification information is found from the NV file according to the identification corresponding to the mode, and the control information of the communication channel in the mode is extracted and obtained based on the identification information.
Further, the present embodiment provides a specific implementation manner, and the following description is given by taking an implementation manner in which the STA mode and the AP mode are in different transmission frequency bands as an example in the present embodiment, specifically as follows:
a processing unit 72, configured to select, from the NV file, a first communication sub-channel and a second communication sub-channel that are allocated in different transmission frequency bands and allocated in a case where the STA mode and the AP mode coexist; the first communication sub-channel is controlled for supporting data interaction in an STA mode, and the second communication sub-channel is controlled for supporting data interaction in an AP mode.
Wherein, the first communication sub-channel and the second communication sub-channel with different transmission frequency bands can be set according to different scenes corresponding to different frequency bands supported by WIFI, such as:
in a scenario one, which is the most commonly used scenario of 2.4G, if the WIFI chip only supports a frequency band of 2.4G, referring to fig. 3, channel allocation of a 2.5G frequency band is taken as an example, wherein, assuming that each channel frequency band distribution diagram of WIFI 2.4G, there are non-interfering channels (1, 6, 11) in the whole frequency band. Then the first communication sub-channel may be designated as channel 1 and the second communication sub-channel as channel 6; alternatively, the first communication sub-channel is channel 11 and the second communication sub-channel is channel 1.
In a second scenario, when the WIFI chip can support channels of two frequency bands, i.e., 2.4G and 5G, first, a division diagram (fig. 4) of the 5G frequency band is combined to describe channel frequency band division in the 5G frequency band, where 802.11a.n is shown in fig. 4, and distribution diagrams of channel frequency bands of WIFI 5G under different bandwidths in the ac specification are shown. The channels available for WiFi 5G in China are CH 36-48 and CH 149-165.
It can be seen from fig. 3 and 4 that the frequency bands of 2.4G and 5G are far apart. That is to say, when the WIFI chip can support channels of two frequency bands, 2.4G and 5G, the first communication sub-channel may be set to be a channel supported by any one of the 2.4G frequency bands, and the second communication sub-channel may be set to be a channel supported by any one of the 5G frequency bands, for example, the first communication sub-channel may be set to be the channel 6, and the second communication sub-channel may be set to be the channel 37.
Preferably, for the scenario provided in this embodiment, it may further be specified that the transmission frequency band of the first communication sub-channel is set to be higher than the transmission frequency band of the second communication sub-channel. That is to say, for the second scenario, when the WIFI chip can support channels of two frequency bands, namely 2.4G and 5G, the first communication sub-channel may be set to be a channel frequency band supported by any one of the 5G frequency bands, and the second communication sub-channel may be set to be a channel frequency band supported by any one of the 2.4G frequency bands. For example, the first communication sub-channel may be set to be channel 48 and the second communication sub-channel may be set to be channel 11.
Therefore, by adopting the scheme, the control information for the communication channel under the coexistence of the STA mode and the AP mode of the NV file can be obtained by loading the NV file, so that the WIFI chip can be in the coexistence of the STA mode and the AP mode. Therefore, the electronic equipment can be used as an access point to access the network and can also be used as an access point to provide the network for other equipment, the working mode of the WIFI chip in the electronic equipment is expanded, and the application scene of the electronic equipment is promoted.
Example six,
An embodiment of the present invention provides an electronic device, as shown in fig. 7, the electronic device includes:
an information obtaining unit 71, configured to obtain a control instruction for instructing coexistence of the STA mode and the AP mode;
a processing unit 72, configured to respond to the control instruction, load an NV file, where the NV file at least includes control information for a communication channel when the STA mode and the AP mode coexist; and under the control of the NV file, controlling a communication channel of a frequency band supported by the WIFI chip so as to enable the STA mode and the AP mode to coexist.
Here, the STA mode is used to indicate a mode that can establish a communication connection with a network side through WIFI and interact data with the network side through the communication connection;
the AP mode is used for representing a mode which can establish communication connection with a network side through a WIFI chip, interact data with the network side through the communication connection, and allow other electronic equipment to access as a wireless access point and access the network through the wireless access point.
The manner of obtaining the control instruction for indicating the coexistence of the STA mode and the AP mode may be that a user selects which mode the WIFI function of the current electronic device is in through a setting interface, for example, referring to fig. 2, an option of "STA mode and AP mode" may be selected from the drawing, so as to obtain the control instruction for dual-mode coexistence.
It should be noted that the scenario shown in fig. 2 is only one possible operation manner, and in addition, the scenario may not be directly displayed in the STA mode, and when the "wireless local area network" is selected, the STA mode is determined to be entered, and when the "personal hotspot" is selected, the AP mode is determined to be entered, and if the option of "wireless local area network and personal hotspot coexisting" is provided and can be selected, the obtained control instruction for indicating the coexistence of the STA mode and the AP mode may be determined.
Further, the loading the NV file in response to the control instruction may be: and calling a preset NV file from the WIFI chip when the control instruction is detected.
The content included in the NV file may include, in addition to the control information for the communication channel in the coexistence of the STA mode and the AP mode, the control information for the communication channel that needs to be acquired when the WIFI chip is in the STA mode, and the control information for the communication channel that needs to be acquired when the WIFI chip is in the AP mode. That is, for each mode, the NV file may have an identification information, and once a control instruction indicating that the mode is in a certain mode is received, the corresponding identification information is found from the NV file according to the identification corresponding to the mode, and the control information of the communication channel in the mode is extracted and obtained based on the identification information.
Further, the present embodiment provides a specific implementation manner different from the foregoing embodiment, and the following description is given by taking an implementation manner in which the STA mode and the AP mode are in different transmission periods as an example, and the specific implementation manner is as follows:
the processing unit 72 is configured to select, from the NV file, a first communication sub-channel and a second communication sub-channel that are allocated in different working timeslots under the coexistence of the STA mode and the AP mode; the first communication sub-channel is controlled for supporting data interaction in an STA mode, and the second communication sub-channel is controlled for supporting data interaction in an AP mode.
That is, in this scenario, first, the first communication sub-channel and the second communication sub-channel both use the same frequency band, but operate in different time slots. The present embodiment can be described by using a channel in the 2.4G band shown in fig. 3, and can also be described by using a channel in the 5G band shown in fig. 4, and the band is not limited here.
Specifically, the first communication sub-channel includes an uplink working time slot set as at least one first time slot and a downlink working time slot set as at least one second time slot; correspondingly, the second communication sub-channel comprises an uplink working time slot set as at least one third time slot and a downlink working time slot set as at least one fourth time slot; the first time slot, the second time slot, the third time slot and the fourth time slot are all different.
It should be noted that, for the time slot division of the communication sub-channels, the time slot division may be preset at the terminal side and the network side according to the actual situation, for example, a radio frame duration may be set to be N, where M time slots are provided, that is, the duration of each time slot is not greater than N/M, in this embodiment, at least four time slots may exist in one radio frame, for example, referring to fig. 5, it is assumed that a first communication sub-channel adopts a time slot 1 as a first time slot, that is, an uplink time slot, a time slot 2 as a second time slot, that is, a downlink time slot, a second communication sub-channel adopts a time slot 3 as an uplink time slot, and a time slot 4 as a fourth time slot, that is, a downlink time slot. By such time slot division as in fig. 5, the first communication sub-channel and the second communication sub-channel can be distinguished in time, so as to avoid the problem of channel collision between the two modes of STA and AP. It can be understood that fig. 5 only shows an example where each communication subchannel has two time slots, in the actual processing, more uplink and downlink time slots can be set for each communication subchannel, and the specific data processing manner for each time slot is the same as that in the example in fig. 5, and therefore, details are not described here.
In addition, it should be noted that the setting of the uplink timeslot and the downlink timeslot corresponding to the first communication sub-channel may be also set in advance on the network side, for example, when it is determined that the electronic device enters a scenario in which an STA mode and an AP mode coexist, a notification may be sent to the network side in advance, so that the network side obtains the scenario in which the electronic device is to enter a dual-mode coexistence, and the electronic device uses communication sub-channels in different timeslots to respectively interact data in the two modes, at this time, the network side may respectively interact data to the electronic device side through different uplink and downlink timeslots according to preset information for communication sub-channels in different modes.
Therefore, by adopting the scheme, the control information for the communication channel under the coexistence of the STA mode and the AP mode of the NV file can be obtained by loading the NV file, so that the WIFI chip can be in the coexistence of the STA mode and the AP mode. Therefore, the electronic equipment can be used as an access point to access the network and can also be used as an access point to provide the network for other equipment, the working mode of the WIFI chip in the electronic equipment is expanded, and the application scene of the electronic equipment is promoted.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (6)

1. A method for realizing dual-mode coexistence on a WIFI chip is characterized by comprising the following steps:
obtaining a control instruction for indicating coexistence of an STA mode and an AP mode;
responding to the control instruction, loading an NV file, wherein the NV file at least comprises control information aiming at a communication channel under the coexistence of an STA mode and an AP mode;
selecting a first communication sub-channel and a second communication sub-channel which are distributed in different transmission frequency bands under the condition that an STA mode and the AP mode coexist from the NV file; wherein a transmission frequency band of the first communication sub-channel is higher than a transmission frequency band of the second communication sub-channel;
controlling the first communication sub-channel for supporting data interaction of an STA mode and controlling the second communication sub-channel for supporting data interaction of an AP mode, so that the STA mode and the AP mode coexist;
wherein, in response to the control instruction, loading the NV file is: when the control instruction is detected, calling a preset NV file from the WIFI chip; the NV file comprises first identification information corresponding to the STA mode and second identification information corresponding to the AP mode; the first identification information is used for extracting control information of a communication channel in the STA mode; the second identification information is used for extracting control information of a communication channel in the AP mode.
2. A method for realizing dual-mode coexistence on a WIFI chip is characterized by comprising the following steps:
obtaining a control instruction for indicating coexistence of an STA mode and an AP mode;
responding to the control instruction, loading an NV file, wherein the NV file at least comprises control information aiming at a communication channel under the coexistence of an STA mode and an AP mode;
selecting a first communication sub-channel and a second communication sub-channel which are allocated with different working time slots under the condition that an STA mode and the AP mode coexist from the NV file;
the first communication sub-channel is controlled for supporting data interaction in an STA mode, and the second communication sub-channel is controlled for supporting data interaction in an AP mode.
3. The method according to claim 2, wherein the first communication sub-channel comprises an uplink working time slot set as at least one first time slot and a downlink working time slot set as at least one second time slot; correspondingly, the second communication sub-channel comprises an uplink working time slot set as at least one third time slot and a downlink working time slot set as at least one fourth time slot;
the first time slot, the second time slot, the third time slot and the fourth time slot are all different.
4. An electronic device, characterized in that the electronic device comprises:
an information acquisition unit, configured to acquire a control instruction for indicating coexistence of an STA mode and an AP mode;
a processing unit, configured to respond to the control instruction, load an NV file, where the NV file at least includes control information for a communication channel when an STA mode and an AP mode coexist; selecting a first communication sub-channel and a second communication sub-channel which are distributed in different transmission frequency bands under the condition that an STA mode and the AP mode coexist from the NV file; controlling the first communication sub-channel for supporting data interaction of an STA mode and controlling the second communication sub-channel for supporting data interaction of an AP mode, so that the STA mode and the AP mode coexist; wherein a transmission frequency band of the first communication sub-channel is higher than a transmission frequency band of the second communication sub-channel; wherein, in response to the control instruction, loading the NV file is: when the control instruction is detected, calling a preset NV file from the WIFI chip; the NV file comprises first identification information corresponding to the STA mode and second identification information corresponding to the AP mode; the first identification information is used for extracting control information of a communication channel in the STA mode; the second identification information is used for extracting control information of a communication channel in the AP mode.
5. An electronic device, characterized in that the electronic device comprises:
an information acquisition unit, configured to acquire a control instruction for indicating coexistence of an STA mode and an AP mode;
a processing unit, configured to respond to the control instruction, load an NV file, where the NV file at least includes control information for a communication channel when an STA mode and an AP mode coexist; selecting a first communication sub-channel and a second communication sub-channel which are allocated with different working time slots under the condition that an STA mode and the AP mode coexist from the NV file; the first communication sub-channel is controlled for supporting data interaction in an STA mode, and the second communication sub-channel is controlled for supporting data interaction in an AP mode.
6. The electronic device according to claim 5, wherein the first communication sub-channel comprises an uplink operating time slot set as at least one first time slot and a downlink operating time slot set as at least one second time slot; correspondingly, the second communication sub-channel comprises an uplink working time slot set as at least one third time slot and a downlink working time slot set as at least one fourth time slot;
the first time slot, the second time slot, the third time slot and the fourth time slot are all different.
CN201610183074.2A 2016-03-28 2016-03-28 Method for realizing dual-mode coexistence on WIFI chip and electronic equipment Active CN105898795B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610183074.2A CN105898795B (en) 2016-03-28 2016-03-28 Method for realizing dual-mode coexistence on WIFI chip and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610183074.2A CN105898795B (en) 2016-03-28 2016-03-28 Method for realizing dual-mode coexistence on WIFI chip and electronic equipment

Publications (2)

Publication Number Publication Date
CN105898795A CN105898795A (en) 2016-08-24
CN105898795B true CN105898795B (en) 2021-11-16

Family

ID=57013918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610183074.2A Active CN105898795B (en) 2016-03-28 2016-03-28 Method for realizing dual-mode coexistence on WIFI chip and electronic equipment

Country Status (1)

Country Link
CN (1) CN105898795B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572510A (en) * 2016-10-31 2017-04-19 青岛海信电器股份有限公司 Channel selection method and intelligent terminal
CN106817742B (en) * 2016-12-30 2020-07-24 南京中科创达软件科技有限公司 Method for realizing wireless WiFi dual-working mode on Android
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
CN108462994B (en) * 2018-03-09 2022-03-22 Oppo广东移动通信有限公司 Channel selection method for personal hot spot and related product
CN108990155A (en) * 2018-06-20 2018-12-11 青岛海信电器股份有限公司 A kind of method and terminal selecting channel
CN111200877B (en) * 2020-03-12 2022-12-20 深圳康佳电子科技有限公司 Network connection method, terminal and storage medium
CN113473356A (en) * 2021-05-24 2021-10-01 杭州涂鸦信息技术有限公司 Positioning method, electronic device and storage device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104185224A (en) * 2014-08-15 2014-12-03 深圳市同洲电子股份有限公司 Wifi chip and control method during coexistence of station (STA) mode and access point (AP) mode
CN104717684A (en) * 2015-03-30 2015-06-17 福州瑞芯微电子有限公司 WIFI mode virtual co-existence method and device
CN105592491A (en) * 2015-09-25 2016-05-18 深圳市美贝壳科技有限公司 Method for coexistence of AP mode and P2P mode of dual-WIFI module

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8045922B2 (en) * 2007-11-23 2011-10-25 Texas Instruments Incorporated Apparatus for and method of bluetooth and wireless local area network coexistence using a single antenna in a collocated device
US8072913B2 (en) * 2008-02-03 2011-12-06 Broadcom Corporation Collaborative coexistence of co-located mobile WiMAX, wireless LAN, and/or bluetooth radios
EP2399426B1 (en) * 2009-02-18 2016-09-14 LG Electronics Inc. Coexistent channel access method
US20120093240A1 (en) * 2010-01-18 2012-04-19 Atheros Communications, Inc. Interference detection in a powerline communication network
CN102457919B (en) * 2010-11-02 2016-04-13 中兴通讯股份有限公司 A kind of large bandwidth wireless network Working mode switching method of backward compatibility and system
US9433003B2 (en) * 2012-03-07 2016-08-30 Qualcomm Incorporated Multi-radio coexistence via timing controls for radios using the same radio access technology
KR20130125276A (en) * 2012-05-08 2013-11-18 한국전자통신연구원 Short probe rosponse
US20130324113A1 (en) * 2012-05-30 2013-12-05 Bruno Jechoux Radio communication device and method for operating a radio communication device
KR102094287B1 (en) * 2012-07-25 2020-03-31 삼성전자 주식회사 Method and apparatus for transmitting control channel in intra-cell carrier aggregation system
WO2014064322A1 (en) * 2012-10-22 2014-05-01 Nokia Corporation Interference avoidance and power savings for coexistence among different radio access technologies
CN202873086U (en) * 2012-10-31 2013-04-10 上海斐讯数据通信技术有限公司 Wireless double-frequency AP (Access Point)
CN103529793B (en) * 2013-10-18 2015-12-23 中山司南物联网科技有限公司 The Internet of Things control system of a kind of STA mode based on WIFI and ap mode and control method thereof
US9344914B2 (en) * 2014-05-21 2016-05-17 Qualcomm Incorporated Modem assisted contention handling of multiple active connections in wireless communications

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104185224A (en) * 2014-08-15 2014-12-03 深圳市同洲电子股份有限公司 Wifi chip and control method during coexistence of station (STA) mode and access point (AP) mode
CN104717684A (en) * 2015-03-30 2015-06-17 福州瑞芯微电子有限公司 WIFI mode virtual co-existence method and device
CN105592491A (en) * 2015-09-25 2016-05-18 深圳市美贝壳科技有限公司 Method for coexistence of AP mode and P2P mode of dual-WIFI module

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
多工作模式的IEEE802.11无线接入点的设计与实现;柏宁宁;《中国优秀硕士论文》;20101001;全文 *

Also Published As

Publication number Publication date
CN105898795A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN105898795B (en) Method for realizing dual-mode coexistence on WIFI chip and electronic equipment
EP3745768A1 (en) Resource selection method and terminal device
EP3402281B1 (en) Uplink laa channel access detaction
CN110235502A (en) Flexible structure of time slot for cellular communication in unlicensed spectrum
US20130051277A1 (en) Method and apparatus for allocating resources for device-to-device discovery
CN104982050A (en) Facilitating multiple subscriber identity support in a wireless device
WO2013030773A1 (en) Method and apparatus for allocating device-to-device discovery portion
US11611982B2 (en) Multi-subframe scheduling method, device and terminal
US20190208530A1 (en) Wireless Communication Method, Base Station, and Terminal
CN111096039A (en) Base station device and user device
CN111052802B (en) Carrier switching method on unlicensed spectrum, base station and terminal equipment
US20220272665A1 (en) Method and device for transmitting data and storage medium
EP3576477B1 (en) Wireless communication method, terminal device, and network device
CN107959954B (en) Wireless communication method and terminal equipment
US11672022B2 (en) Channel access method, access point and station
US20230138775A1 (en) Method for mapping pusch signal, terminal, and network-side device
EP3563616B1 (en) Method and apparatus for allocating uplink resources
CN115720366A (en) Transmission processing method, device and equipment
US20230328716A1 (en) Sidelink SL-Based Positioning Method and Apparatus, and Terminal
CN107708119B (en) Communication equipment, communication frequency band allocation method thereof and readable storage medium
CN115175345B (en) Wireless communication method, user equipment and network equipment
CN109565838B (en) Information transmission method, device, base station and terminal
US20170013619A1 (en) Data transmission method and station
CN112564873A (en) Reference signal transmission method and communication device
CN113302963A (en) Scheduling serving cells using signaling messages

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