CN104936211A - Wireless resource distribution method - Google Patents

Wireless resource distribution method Download PDF

Info

Publication number
CN104936211A
CN104936211A CN201510206237.XA CN201510206237A CN104936211A CN 104936211 A CN104936211 A CN 104936211A CN 201510206237 A CN201510206237 A CN 201510206237A CN 104936211 A CN104936211 A CN 104936211A
Authority
CN
China
Prior art keywords
free time
module
broadcast
power consumption
stamp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510206237.XA
Other languages
Chinese (zh)
Inventor
黄儒鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510206237.XA priority Critical patent/CN104936211A/en
Publication of CN104936211A publication Critical patent/CN104936211A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a wireless resource distribution method. The method comprises that the working state of a low-power Bluetooth module is detected; when the working state is one selected from a broadcasting state, a scanning state or a standby state, an initial idle time stamp of the low-power Bluetooth module is set; and when the initial idle time stamp is reached, wireless resource which is occupied by the initial idle time stamp at present is distributed to a target module. The wireless resource distribution method can be used to improve the resource utilization rate as well as the user experience.

Description

A kind of wireless resource allocation methods
Technical field
The present invention relates to communication technical field, particularly relate to a kind of wireless resource allocation methods.
Background technology
Wireless symbiont techn, mainly refers to that the multiple wireless technology sharing Radio Resource (as 2.4GHz frequency range) in same terminal can keep normal work simultaneously.In existing wireless symbiont techn, first wireless module is in the process using Radio Resource, other wireless modules cannot use this Radio Resource, such as, WLAN (WirelessLocal Area Networks, WLAN) module and BLE (Bluetooth Low Energy, low-power consumption bluetooth) module all works in 2.4GHz frequency range, when WLAN module takies in the process of Radio Resource, BLE module cannot be set up bluetooth and connect, cause resource utilization lower, reduce Consumer's Experience.
Summary of the invention
The embodiment of the present invention provides a kind of wireless resource allocation methods, can improve resource utilization, promotes Consumer's Experience.
Embodiments provide a kind of wireless resource allocation methods, comprising:
Detect the operating state of low-power consumption bluetooth module;
When described operating state is broadcast state, scanning mode or holding state, the initial free time arranging described low-power consumption bluetooth module stabs;
When arriving described initial free time stamp, by current for the described low-power consumption bluetooth module allocation of radio resources taken to object module.
In the embodiment of the present invention, by detecting the operating state of low-power consumption bluetooth module, when operating state is broadcast state, scanning mode or holding state, the initial free time arranging low-power consumption bluetooth module stabs, when arriving stamp of initial free time, by current for the low-power consumption bluetooth module allocation of radio resources taken to object module, can resource utilization be improved, promote Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of wireless resource allocation methods provided in first embodiment of the invention;
Fig. 2 is the schematic flow sheet of a kind of wireless resource allocation methods provided in second embodiment of the invention;
Fig. 3 is the schematic flow sheet of a kind of wireless resource allocation methods provided in third embodiment of the invention;
Fig. 4 A is a kind of broadcast state sequential chart provided in first embodiment of the invention;
Fig. 4 B is a kind of broadcast state sequential chart provided in second embodiment of the invention;
Fig. 4 C is a kind of scanning mode sequential chart provided in the embodiment of the present invention;
Fig. 5 is the structural representation of a kind of terminal provided in first embodiment of the invention;
Fig. 6 is the structural representation of the setting unit of Fig. 5 in first embodiment of the invention;
Fig. 7 is the structural representation of the setting unit of Fig. 5 in second embodiment of the invention;
Fig. 8 is the structural representation of the setting unit of Fig. 5 in third embodiment of the invention;
Fig. 9 is the structural representation of the setting unit of Fig. 5 in fourth embodiment of the invention;
Figure 10 is the structural representation of the resource allocation unit of Fig. 5 in the embodiment of the present invention;
Figure 11 is the structural representation of the priority acquiring unit of Figure 10 in the embodiment of the present invention;
Figure 12 is the structural representation of a kind of terminal provided in second embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of wireless resource allocation methods, when the operating state of BLE module is broadcast state, scanning mode or holding state, the initial free time arranging BLE module stabs, when arriving stamp of initial free time, by current for the BLE module allocation of radio resources taken to object module, can resource utilization be improved, promote Consumer's Experience.
The operating state of the BLE module that the embodiment of the present invention is mentioned to can comprise holding state, broadcast state, scanning mode, initiation connection status and connection status.When the operating state of BLE module is holding state, terminal can not be broadcasted and scanning information, also can not be connected to other equipment, then BLE module can not use Radio Resource.When the operating state of BLE module be broadcast state or scanning mode time, BLE module has part-time not use Radio Resource.If then the operating state of BLE module is holding state, broadcast state or scanning mode, the initial free time that terminal can arrange BLE module within the free time of each operating state stabs.If the operating state of BLE module is for initiating connection status, BLE module is using Radio Resource, then control terminal does not distribute this Radio Resource to other modules.If the operating state of BLE module be connection status time, whether terminal can detect BLE module current in transmission data, when BLE module is current, when transmitting data, BLE module uses Radio Resource, then control terminal does not distribute this Radio Resource to other modules.When BLE module is current do not transmit data time, BLE module can send connection event according to cycle connect hours of presetting to opposite end, with the validity guaranteeing that between terminal with opposite end, bluetooth is connected, terminal can to during this connect hours end cycle from being sent connection event, by current for the BLE module allocation of radio resources taken to object module.
The Radio Resource that the embodiment of the present invention is mentioned to can be 2.4GHz, and optionally, along with the development of BLE technology, BLE module may work in other frequency ranges, such as 5.0GHz frequency range etc., specifically not by the restriction of the embodiment of the present invention.
The object module that the embodiment of the present invention is mentioned to is and the wireless module of BLE module work in same frequency range.At least one wireless module and BLE module work can be there is such as, in same frequency range, WLAN module or ZigBee module etc. in the embodiment of the present invention.
Above-mentioned wireless resource allocation methods may operate in the terminals such as smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer or wearable intelligent equipment.
Fig. 1 is the schematic flow sheet of a kind of wireless resource allocation methods provided in first embodiment of the invention, and as shown in the figure, the wireless resource allocation methods in the embodiment of the present invention at least can comprise:
S101, detects the operating state of low-power consumption bluetooth module.
Terminal can detect the operating state of BLE module.The mode of operation that bluetooth connects can be: broadcast terminal sends broadcast message, after end of scan receives broadcast message, scan request is sent to broadcast terminal, broadcast terminal returns scanning response according to scan request, after end of scan receives scanning response, initiate connection request to broadcast terminal, broadcast terminal is connected according to setting up bluetooth between connection request with end of scan.Then the operating state of BLE module can comprise holding state, broadcast state, scanning mode, initiation connection status and connection status.
S102, when operating state is broadcast state, scanning mode or holding state, the initial free time arranging low-power consumption bluetooth module stabs.
When the operating state of BLE module is broadcast state, scanning mode or holding state, the initial free time that terminal can arrange BLE module stabs.Concrete, when the operating state of BLE module is holding state, terminal can not be broadcasted and scanning information, also can not be connected to other equipment, then BLE module can not use Radio Resource.When the operating state of BLE module be broadcast state or scanning mode time, BLE module has part-time not use Radio Resource.When then the operating state of BLE module is holding state, broadcast state or scanning mode, the initial free time that terminal can arrange BLE module stabs.When the operating state of BLE module is for initiating connection status, BLE module is using Radio Resource, then control terminal does not distribute this Radio Resource to other modules.When the operating state of BLE module is connection status, and detect that BLE module is when transmitting data, BLE module uses Radio Resource, then control terminal does not distribute this Radio Resource to other modules.When the operating state of BLE module is connection status, and when detecting that BLE module does not transmit data, terminal can arrange initial free time stamp of BLE module.
In an alternative embodiment, when the operating state of BLE module is broadcast state, terminal can obtain the termination transmitting time stamp being sent broadcast message by default broadcast channel, whether the broadcast type judging BLE module is the first broadcast type, when the broadcast type of BLE module is the first broadcast type, termination transmitting time stamp is set to stamp of initial free time.
First broadcast type of BLE module can be: only send broadcast message, does not receive the scan request of end of scan transmission or initiates connection request etc.From BLE agreement, a broadcast message can send in turn respectively in three broadcast channels (passage 37/38/39), and cycle airtime of each passage is generally less than 10ms.In addition, between two broadcast messages, broadcast time delay can be set usually, to improve the probability of end of scan receiving broadcasting information.For the broadcast state sequential chart shown in Fig. 4 A, when terminal sends broadcast message 1 by passage 37, the termination transmitting time stamp sending broadcast message 1 can be obtained, i.e. moment of being sent of broadcast message 1, when the broadcast type of further judgement BLE module is the first broadcast type, termination transmitting time stamp is set to stamp of initial free time.When terminal sends broadcast message 1 by passage 38, the termination transmitting time stamp sending broadcast message 1 can be obtained, and termination transmitting time stamp is set to stamp of initial free time.When terminal sends broadcast message 1 by passage 39, the termination transmitting time stamp sending broadcast message 1 can be obtained, and termination transmitting time stamp is set to stamp of initial free time.
Further alternative, the broadcast type of BLE module can comprise the first broadcast type and the second broadcast type, after whether the broadcast type of terminal judges BLE module is the first broadcast type, when the broadcast type of BLE module is the second broadcast type, judge whether the scan request receiving end of scan transmission, when not receiving scan request, performing and termination transmitting time stamp is set to stamp of initial free time.
Second broadcast type of BLE module can be: after sending broadcast message, can receive the scan request of end of scan transmission or initiate connection request etc.BLE agreement defines the Packet Delay that terminal sends two packets continuously in a passage.For the broadcast state sequential chart shown in Fig. 4 B, when terminal sends broadcast message 1 by passage 37, the termination transmitting time stamp sending broadcast message 1 can be obtained, i.e. moment of being sent of broadcast message 1, when judging that the broadcast type of BLE module is the second broadcast type, and when not receiving the scan request of end of scan transmission, termination transmitting time stamp can be set to stamp of initial free time by terminal.When terminal sends broadcast message 1 by passage 38, the termination transmitting time stamp sending broadcast message 1 can be obtained, when judging the scan request receiving end of scan transmission, terminal returns in the process of scanning response to end of scan to be needed to use Radio Resource, then can not distribute this Radio Resource to object module by control terminal.When terminal sends broadcast message 1 by passage 39, can obtain the termination transmitting time stamp sending broadcast message 1, when judging the scan request not receiving end of scan transmission, termination transmitting time stamp can be set to stamp of initial free time by terminal.
In an alternative embodiment, when the operating state of BLE module is scanning mode, terminal can obtain the terminating reception timestamp that BLE module receives the broadcast message that broadcast terminal sends, and is stamp of initial free time by terminating reception time stamp setting.
For the scanning mode sequential chart shown in Fig. 4 C, terminal can scan broadcast message when being in scanning mode, and then obtain the terminating reception timestamp that BLE module receives the broadcast message that broadcast terminal sends, i.e. moment of receiving of broadcast message, and be stamp of initial free time by terminating reception time stamp setting.
In an alternative embodiment, when the operating state of BLE module is holding state, the initial free time that terminal can arrange BLE module stabs.Concrete, when terminal detects that the operating state of BLE module is holding state, the initial free time that can arrange BLE module stabs, and this initial free time stabs as terminal detects that the operating state of BLE module is the moment of holding state.
In an alternative embodiment, when the operating state of BLE module is connection status, and BLE module is not when transmitting data, BLE module sends connection event according to cycle connect hours of presetting to opposite end, with the validity guaranteeing that between terminal with opposite end, bluetooth is connected, then terminal can obtain the termination transmitting time stamp that BLE module sends connection event, i.e. moment of being sent of connection event, and the termination transmitting time of connection event stamp is set to stamp of initial free time.
S103, when arriving stamp of initial free time, by current for the low-power consumption bluetooth module allocation of radio resources taken to object module.
When arriving stamp of initial free time, terminal by current for the BLE module allocation of radio resources taken to object module, so that object module uses this Radio Resource, can improve resource utilization.
In an alternative embodiment, when the operating state of BLE module be broadcast state or scanning mode time, terminal arranges initial free time of BLE module after stamp, the termination free time stamp of BLE module can be set, when arriving termination free time stamp, terminal can by allocation of radio resources to BLE module.When the operating state of BLE module is connection status, and BLE module is not when transmitting data, terminal arranges initial free time of BLE module after stamp, the termination free time stamp of BLE module can be set, when arriving termination free time stamp, terminal can by allocation of radio resources to BLE module.Further alternative, cycle connect hours can be deducted the transmission duration of connection event by terminal, obtains the free time length of BLE module, is stabbed initial free time and is added with free time length, obtain and stop free time stamp.
Further alternative, when the operating state of BLE module is broadcast state, terminal can obtain cycle airtime of default broadcast channel, obtain the transmission duration being sent broadcast message by default broadcast channel, cycle airtime and transmission duration are subtracted each other, obtain the free time length of BLE module, initial free time is stabbed and is added with free time length, obtain and stop free time stamp.
For the broadcast state sequential chart shown in Fig. 4 A, the broadcast type of BLE module is the first broadcast type, and terminal wheel flows through passage 37,38 and 39 and sends broadcast message 1, after broadcast time delay, sends broadcast message 2.When terminal sends broadcast message 1 by passage 37, can cycle airtime of Acquisition channel 37, and obtain the transmission duration being sent broadcast message 1 by passage 37, cycle airtime and transmission duration are subtracted each other, obtains the free time length of BLE module, initial free time is stabbed and is added with free time length, obtain and stop free time stamp, namely sent the initial time of broadcast message 1 by passage 38, when arrive stop free time stamp time, terminal by allocation of radio resources to BLE module.When terminal sends broadcast message 1 by passage 39, can cycle airtime of Acquisition channel 39, and obtain the transmission duration being sent broadcast message 1 by passage 39, cycle airtime is deducted transmission duration, and adds broadcast time delay, to obtain the free time length of BLE module, initial free time is stabbed and is added with free time length, obtain and stop free time stamp, namely send the initial time of broadcast message 2, when arrive stop free time stamp time, terminal by allocation of radio resources to BLE module.
For the broadcast state sequential chart shown in Fig. 4 B, the broadcast type of BLE module is the second broadcast type, terminal wheel flows through passage 37,38 and 39 and sends broadcast message 1, the scan request that end of scan sends is received after sending broadcast message by passage 38, and then send scanning response to end of scan, then there is not free time length in cycle airtime of passage 38.When terminal sends broadcast message by passage 37, can cycle airtime of Acquisition channel 37, and obtain the transmission duration being sent broadcast message by passage 37, cycle airtime and transmission duration are subtracted each other, obtains the free time length of BLE module, initial free time is stabbed and is added with free time length, obtain and stop free time stamp, namely sent the initial time of broadcast message by passage 38, when arrive stop free time stamp time, terminal by allocation of radio resources to BLE module.When terminal sends broadcast message by passage 39, can cycle airtime of Acquisition channel 39, and obtain the transmission duration being sent broadcast message by passage 39, cycle airtime is deducted transmission duration, obtain the free time length of BLE module, initial free time is stabbed and is added with free time length, obtain and stop free time stamp, when arrive stop free time stamp time, terminal by allocation of radio resources to BLE module.
Further alternative, when the operating state of BLE module is scanning mode, terminal can obtain cycle sweep time of BLE module, obtain the reception duration that BLE module receives the broadcast message that broadcast terminal sends, cycle sweep time and reception duration are subtracted each other, obtain the free time length of BLE module, initial free time is stabbed and is added with free time length, obtain and stop free time stamp.
For the scanning mode sequential chart shown in Fig. 4 C, terminal can scan broadcast message when being in scanning mode, obtain cycle sweep time of BLE module, obtain the reception duration that BLE module receives the broadcast message that broadcast terminal sends, cycle sweep time and reception duration are subtracted each other, obtain the free time length of BLE module, initial free time is stabbed and is added with free time length, obtain and stop free time stamp, namely scan the initial time of broadcast message next time, when arrive stop free time stamp time, terminal by allocation of radio resources to BLE module.
In an alternative embodiment, when the operating state of BLE module is holding state, the initial free time arranging BLE module stabs, when arriving stamp of initial free time, by current for the BLE module allocation of radio resources taken to object module, when detecting that the operating state of BLE module is updated to non-standby state, terminal can by allocation of radio resources to BLE module.Wherein non-standby state can comprise broadcast state, scanning mode, initiation connection status or connection status.
In an alternative embodiment, terminal can obtain the priority of each wireless module, determines that the wireless module that priority is the highest is object module, and by allocation of radio resources to object module.Such as, the wireless module sharing this Radio Resource comprises BLE module, WLAN module and ZigBee module, terminal by allocation of radio resources to before object module, the priority of WLAN module and ZigBee module can be obtained, determine that the wireless module that priority is the highest is object module, and by allocation of radio resources to object module.
Further alternative, terminal can obtain each wireless module in preset time period and be in the rate of connections of connection status, according to rate of connections, determines the priority of each wireless module.Such as, the wireless module sharing Radio Resource with BLE module comprises WLAN module and ZigBee module, terminal can obtain the number of times that within nearest January, WLAN module connects, such as 30 times, terminal can also obtain the number of times that within nearest January, ZigBee module connects, such as 5 times, then terminal can determine that the priority of WLAN module is higher than ZigBee module, and then determine that WLAN module is object module, by allocation of radio resources to WLAN module.
It is to be noted, the embodiment of the present invention determines that the priority of each wireless module is including but not limited to aforesaid way, such as, terminal can determine the transmission range of each wireless module, according to transmission range, determine the priority of each wireless module, etc., specifically not by the restriction of the embodiment of the present invention.
In the wireless resource allocation methods shown in Fig. 1, detect the operating state of BLE module, when operating state is broadcast state, scanning mode or holding state, the initial free time arranging BLE module stabs, when arriving stamp of initial free time, by current for the BLE module allocation of radio resources taken to object module, can resource utilization be improved, promote Consumer's Experience.
Fig. 2 is the schematic flow sheet of a kind of wireless resource allocation methods provided in second embodiment of the invention, and as shown in the figure, the wireless resource allocation methods in the embodiment of the present invention can comprise:
S201, detects the operating state of low-power consumption bluetooth module.
Terminal can detect the operating state of BLE module.The operating state of BLE module can comprise holding state, broadcast state, scanning mode, initiation connection status and connection status.
S202, when operating state be broadcast state or scanning mode time, initial free time stamp of low-power consumption bluetooth module is set.
When the operating state of BLE module be broadcast state or scanning mode time, terminal can arrange initial free time stamp of BLE module.Concrete, when the operating state of BLE module be broadcast state or scanning mode time, BLE module has part-time not use Radio Resource, then terminal can arrange initial free time stamp of BLE module.
In an alternative embodiment, when the operating state of BLE module is broadcast state, terminal can obtain the termination transmitting time stamp being sent broadcast message by default broadcast channel, whether the broadcast type judging BLE module is the first broadcast type, when the broadcast type of BLE module is the first broadcast type, termination transmitting time stamp is set to stamp of initial free time.
First broadcast type of BLE module can be: only send broadcast message, does not receive the scan request of end of scan transmission or initiates connection request etc.From BLE agreement, a broadcast message can send in turn respectively in three broadcast channels (passage 37/38/39), and cycle airtime of each passage is generally less than 10ms.In addition, between two broadcast messages, broadcast time delay can be set usually, to improve the probability of end of scan receiving broadcasting information.For the broadcast state sequential chart shown in Fig. 4 A, when terminal sends broadcast message 1 by passage 37, the termination transmitting time stamp sending broadcast message 1 can be obtained, i.e. moment of being sent of broadcast message 1, when the broadcast type of further judgement BLE module is the first broadcast type, termination transmitting time stamp is set to stamp of initial free time.When terminal sends broadcast message 1 by passage 38, the termination transmitting time stamp sending broadcast message 1 can be obtained, and termination transmitting time stamp is set to stamp of initial free time.When terminal sends broadcast message 1 by passage 39, the termination transmitting time stamp sending broadcast message 1 can be obtained, and termination transmitting time stamp is set to stamp of initial free time.
Further alternative, the broadcast type of BLE module can comprise the first broadcast type and the second broadcast type, after whether the broadcast type of terminal judges BLE module is the first broadcast type, when the broadcast type of BLE module is the second broadcast type, judge whether the scan request receiving end of scan transmission, when not receiving scan request, performing and termination transmitting time stamp is set to stamp of initial free time.
Second broadcast type of BLE module can be: after sending broadcast message, can receive the scan request of end of scan transmission or initiate connection request etc.BLE agreement defines the Packet Delay that terminal sends two packets continuously in a passage.For the broadcast state sequential chart shown in Fig. 4 B, when terminal sends broadcast message 1 by passage 37, the termination transmitting time stamp sending broadcast message 1 can be obtained, i.e. moment of being sent of broadcast message 1, when judging that the broadcast type of BLE module is the second broadcast type, and when not receiving the scan request of end of scan transmission, termination transmitting time stamp can be set to stamp of initial free time by terminal.When terminal sends broadcast message 1 by passage 38, the termination transmitting time stamp sending broadcast message 1 can be obtained, when judging the scan request receiving end of scan transmission, terminal returns in the process of scanning response to end of scan to be needed to use Radio Resource, then can not distribute this Radio Resource to object module by control terminal.When terminal sends broadcast message 1 by passage 39, can obtain the termination transmitting time stamp sending broadcast message 1, when judging the scan request not receiving end of scan transmission, termination transmitting time stamp can be set to stamp of initial free time by terminal.
In an alternative embodiment, when the operating state of BLE module is scanning mode, terminal can obtain the terminating reception timestamp that BLE module receives the broadcast message that broadcast terminal sends, and is stamp of initial free time by terminating reception time stamp setting.
For the scanning mode sequential chart shown in Fig. 4 C, terminal can scan broadcast message when being in scanning mode, and then obtain the terminating reception timestamp that BLE module receives the broadcast message that broadcast terminal sends, i.e. moment of receiving of broadcast message, and be stamp of initial free time by terminating reception time stamp setting.
S203, arranges the termination free time stamp of low-power consumption bluetooth module.
Terminal arranges initial free time of BLE module after stamp, can arrange the termination free time stamp of BLE module.
In an alternative embodiment, when the operating state of BLE module is broadcast state, terminal can obtain cycle airtime of default broadcast channel, obtain the transmission duration being sent broadcast message by default broadcast channel, cycle airtime and transmission duration are subtracted each other, obtain the free time length of BLE module, initial free time is stabbed and is added with free time length, obtain and stop free time stamp.
For the broadcast state sequential chart shown in Fig. 4 A, the broadcast type of BLE module is the first broadcast type, and terminal wheel flows through passage 37,38 and 39 and sends broadcast message 1, after broadcast time delay, sends broadcast message 2.When terminal sends broadcast message 1 by passage 37, can cycle airtime of Acquisition channel 37, and obtain the transmission duration being sent broadcast message 1 by passage 37, cycle airtime and transmission duration are subtracted each other, obtain the free time length of BLE module, initial free time is stabbed and is added with free time length, obtain and stop free time stamp, namely termination free time stamp sends the initial time of broadcast message 1 by passage 38, when arrive stop free time stamp time, terminal by allocation of radio resources to BLE module.When terminal sends broadcast message 1 by passage 39, can cycle airtime of Acquisition channel 39, and obtain the transmission duration being sent broadcast message 1 by passage 39, cycle airtime is deducted transmission duration, and adds broadcast time delay, to obtain the free time length of BLE module, initial free time is stabbed and is added with free time length, obtain and stop free time stamp, namely send the initial time of broadcast message 2, when arrive stop free time stamp time, terminal by allocation of radio resources to BLE module.
For the broadcast state sequential chart shown in Fig. 4 B, the broadcast type of BLE module is the second broadcast type, terminal wheel flows through passage 37,38 and 39 and sends broadcast message 1, the scan request that end of scan sends is received after sending broadcast message by passage 38, and then send scanning response to end of scan, then there is not free time length in cycle airtime of passage 38.When terminal sends broadcast message by passage 37, can cycle airtime of Acquisition channel 37, and obtain the transmission duration being sent broadcast message by passage 37, cycle airtime and transmission duration are subtracted each other, obtains the free time length of BLE module, initial free time is stabbed and is added with free time length, obtain and stop free time stamp, namely sent the initial time of broadcast message by passage 38, when arrive stop free time stamp time, terminal by allocation of radio resources to BLE module.When terminal sends broadcast message by passage 39, can cycle airtime of Acquisition channel 39, and obtain the transmission duration being sent broadcast message by passage 39, cycle airtime is deducted transmission duration, obtain the free time length of BLE module, initial free time is stabbed and is added with free time length, obtain and stop free time stamp, when arrive stop free time stamp time, terminal by allocation of radio resources to BLE module.
In an alternative embodiment, when the operating state of BLE module is scanning mode, terminal can obtain cycle sweep time of BLE module, obtain the reception duration that BLE module receives the broadcast message that broadcast terminal sends, cycle sweep time and reception duration are subtracted each other, obtain the free time length of BLE module, initial free time is stabbed and is added with free time length, obtain and stop free time stamp.
For the scanning mode sequential chart shown in Fig. 4 C, terminal can scan broadcast message when being in scanning mode, obtain cycle sweep time of BLE module, obtain the reception duration that BLE module receives the broadcast message that broadcast terminal sends, cycle sweep time and reception duration are subtracted each other, obtain the free time length of BLE module, initial free time is stabbed and is added with free time length, obtain and stop free time stamp, namely scan the initial time of broadcast message next time, when arrive stop free time stamp time, terminal by allocation of radio resources to BLE module.
S204, when arriving stamp of initial free time, by current for the low-power consumption bluetooth module allocation of radio resources taken to object module.
When arriving initial free time stamp, terminal can by current for the BLE module allocation of radio resources taken to object module, so that object module uses this Radio Resource.
In an alternative embodiment, terminal can obtain the priority of each wireless module, determines that the wireless module that priority is the highest is object module, and by allocation of radio resources to object module.Such as, the wireless module sharing this Radio Resource comprises BLE module, WLAN module and ZigBee module, terminal by allocation of radio resources to before object module, the priority of WLAN module and ZigBee module can be obtained, determine that the wireless module that priority is the highest is object module, and by allocation of radio resources to object module.
Further alternative, terminal can obtain each wireless module in preset time period and be in the rate of connections of connection status, according to rate of connections, determines the priority of each wireless module.Such as, the wireless module sharing Radio Resource with BLE module comprises WLAN module and ZigBee module, terminal can obtain the number of times that within nearest January, WLAN module connects, such as 30 times, terminal can also obtain the number of times that within nearest January, ZigBee module connects, such as 5 times, then terminal can determine that the priority of WLAN module is higher than ZigBee module, and then determine that WLAN module is object module, by allocation of radio resources to WLAN module.
It is to be noted, the embodiment of the present invention determines that the priority of each wireless module is including but not limited to aforesaid way, such as, terminal can determine the transmission range of each wireless module, according to transmission range, determine the priority of each wireless module, etc., specifically not by the restriction of the embodiment of the present invention.
S205, when arriving termination free time stamp, by allocation of radio resources to low-power consumption bluetooth module.
When arriving termination free time stamp, terminal by allocation of radio resources to BLE module, and then can not affect BLE module use Radio Resource
In the wireless resource allocation methods shown in Fig. 2, when operating state be broadcast state or scanning mode time, the initial free time arranging BLE module stabs, the termination free time stamp of BLE module is set, when arriving stamp of initial free time, by current for the BLE module allocation of radio resources taken to object module, when arriving termination free time stamp, by allocation of radio resources to BLE module, can resource utilization be improved, promote Consumer's Experience.
Fig. 3 is the schematic flow sheet of a kind of wireless resource allocation methods provided in third embodiment of the invention, and as shown in the figure, the wireless resource allocation methods in the embodiment of the present invention can comprise:
S301, detects the operating state of low-power consumption bluetooth module.
Terminal can detect the operating state of BLE module.The operating state of BLE module can comprise holding state, broadcast state, scanning mode, initiation connection status and connection status.
S302, when operating state is holding state, the initial free time arranging low-power consumption bluetooth module stabs.
When the operating state of BLE module is holding state, the initial free time that terminal can arrange BLE module stabs.Concrete, when the operating state of BLE module is holding state, terminal can not be broadcasted and scanning information, also can not be connected to other equipment, then BLE module can not use Radio Resource.When terminal detects that the operating state of BLE module is holding state, the initial free time that can arrange BLE module stabs, and this initial free time stabs as terminal detects that the operating state of BLE module is the moment of holding state.
S303, when arriving stamp of initial free time, by current for the low-power consumption bluetooth module allocation of radio resources taken to object module.
When arriving stamp of initial free time, terminal by current for the BLE module allocation of radio resources taken to object module, so that object module uses this Radio Resource, can improve resource utilization.
In an alternative embodiment, terminal can obtain the priority of each wireless module, determines that the wireless module that priority is the highest is object module, and by allocation of radio resources to object module.Such as, the wireless module sharing this Radio Resource comprises BLE module, WLAN module and ZigBee module, terminal by allocation of radio resources to before object module, the priority of WLAN module and ZigBee module can be obtained, determine that the wireless module that priority is the highest is object module, and by allocation of radio resources to object module.
Further alternative, terminal can obtain each wireless module in preset time period and be in the rate of connections of connection status, according to rate of connections, determines the priority of each wireless module.Such as, the wireless module sharing Radio Resource with BLE module comprises WLAN module and ZigBee module, terminal can obtain the number of times that within nearest January, WLAN module connects, such as 30 times, terminal can also obtain the number of times that within nearest January, ZigBee module connects, such as 5 times, then terminal can determine that the priority of WLAN module is higher than ZigBee module, and then determine that WLAN module is object module, by allocation of radio resources to WLAN module.
It is to be noted, the embodiment of the present invention determines that the priority of each wireless module is including but not limited to aforesaid way, such as, terminal can determine the transmission range of each wireless module, according to transmission range, determine the priority of each wireless module, etc., specifically not by the restriction of the embodiment of the present invention.
S304, when detecting that operating state is updated to non-standby state, by allocation of radio resources to low-power consumption bluetooth module.
When detecting that the operating state of BLE module is updated to non-standby state, terminal can by allocation of radio resources to BLE module.Wherein non-standby state can comprise broadcast state, scanning mode, initiation connection status or connection status.
In the wireless resource allocation methods shown in Fig. 3, when operating state is holding state, the initial free time arranging BLE module stabs, when arriving stamp of initial free time, by current for the BLE module allocation of radio resources taken to object module, when detecting that operating state is updated to non-standby state, by allocation of radio resources to BLE module, can resource utilization be improved, promote Consumer's Experience.
Fig. 5 is the structural representation of a kind of terminal provided in first embodiment of the invention, and the terminal as shown in the figure in the embodiment of the present invention at least can comprise: working state detection units 501, setting unit 502 and resource allocation unit 503, wherein:
Working state detection units 501, for detecting the operating state of BLE module.
The mode of operation that bluetooth connects can be: broadcast terminal sends broadcast message, after end of scan receives broadcast message, scan request is sent to broadcast terminal, broadcast terminal returns scanning response according to scan request, after end of scan receives scanning response, initiate connection request to broadcast terminal, broadcast terminal is connected according to setting up bluetooth between connection request with end of scan.Then the operating state of BLE module can comprise holding state, broadcast state, scanning mode, initiation connection status and connection status.
Setting unit 502, for when described operating state is broadcast state, scanning mode or holding state, the initial free time arranging described BLE module stabs.
Concrete, when the operating state of BLE module is holding state, terminal can not be broadcasted and scanning information, also can not be connected to other equipment, then BLE module can not use Radio Resource.When the operating state of BLE module be broadcast state or scanning mode time, BLE module has part-time not use Radio Resource.If then the operating state of BLE module is holding state, broadcast state or scanning mode, the initial free time that setting unit 502 can arrange BLE module stabs.If the operating state of BLE module is for initiating connection status, BLE module is using Radio Resource, then setting unit 502 control terminal does not distribute this Radio Resource to other modules.If the operating state of BLE module be connection status time, whether setting unit 502 is current in transmission data to detect BLE module, when BLE module is current, when transmitting data, BLE module uses Radio Resource, then control terminal does not distribute this Radio Resource to other modules.When BLE module is current do not transmit data time, BLE module can send connection event according to cycle connect hours of presetting to opposite end, with the validity guaranteeing that between terminal with opposite end, bluetooth is connected, then setting unit 502 can arrange initial free time stamp of BLE module, i.e. moment of being sent of connection event.
Resource allocation unit 503, for when arriving described initial free time stamp, by current for the described BLE module allocation of radio resources taken to object module.
As the optional execution mode of one, setting unit 502, also for when described operating state be broadcast state or scanning mode time, arrange described BLE module termination free time stamp.
Resource allocation unit 503, also for when arriving stamp of described termination free time, gives described BLE module by described allocation of radio resources.
As the optional execution mode of one, setting unit 502, also for when described operating state is holding state, the initial free time arranging described BLE module stabs.This initial free time stabs as terminal detects that the operating state of BLE module is the moment of holding state.
Resource allocation unit 503, time also for detecting that the operating state of described BLE module is updated to non-standby state, gives described BLE module by described allocation of radio resources.Wherein non-standby state can comprise broadcast state, scanning mode, initiation connection status or connection status.
Such as, when the operating state of BLE module is connection status, and BLE module is not when transmitting data, setting unit 502 arranges initial free time of BLE module after stamp, the termination free time stamp of BLE module can be set, when arriving termination free time stamp, resource allocation unit 503 can by allocation of radio resources to BLE module.Optionally, cycle connect hours can be deducted the transmission duration of connection event by setting unit 502, obtains the free time length of BLE module, is stabbed initial free time and is added with free time length, obtain and stop free time stamp.
As the optional execution mode of one, the setting unit 502 in the embodiment of the present invention can as shown in Figure 6, comprise further:
First acquiring unit 601, for when described operating state is broadcast state, obtains the termination transmitting time stamp being sent broadcast message by default broadcast channel.
Judging unit 602, for judging whether the broadcast type of described BLE module is the first broadcast type.
First setting unit 603, for when the broadcast type of described BLE module is the first broadcast type, is set to described initial free time stamp by described termination transmitting time stamp.
First broadcast type of BLE module can be: only send broadcast message, does not receive the scan request of end of scan transmission or initiates connection request etc.From BLE agreement, a broadcast message can send in turn respectively in three broadcast channels (passage 37/38/39), and cycle airtime of each passage is generally less than 10ms.In addition, between two broadcast messages, broadcast time delay can be set usually, to improve the probability of end of scan receiving broadcasting information.For the broadcast state sequential chart shown in Fig. 4 A, when terminal sends broadcast message 1 by passage 37, first acquiring unit 601 can obtain the termination transmitting time stamp sending broadcast message 1, i.e. moment of being sent of broadcast message 1, when judging unit 602 judges that the broadcast type of BLE module is the first broadcast type, termination transmitting time stamp is set to stamp of initial free time by the first setting unit 603.When terminal sends broadcast message 1 by passage 38, the first acquiring unit 601 can obtain the termination transmitting time stamp sending broadcast message 1, and termination transmitting time stamp is set to stamp of initial free time by the first setting unit 603.When terminal sends broadcast message 1 by passage 39, the first acquiring unit 601 can obtain the termination transmitting time stamp sending broadcast message 1, and termination transmitting time stamp is set to stamp of initial free time by the first setting unit 603.
Further alternative, the broadcast type of BLE module can comprise the first broadcast type and the second broadcast type, then judging unit 602, also for when the broadcast type of described BLE module is the second broadcast type, judges whether the scan request receiving end of scan transmission.
First setting unit 603, also for when not receiving described scan request, is set to described initial free time stamp by described termination transmitting time stamp.
Second broadcast type of BLE module can be: after sending broadcast message, can receive the scan request of end of scan transmission or initiate connection request etc.BLE agreement defines the Packet Delay that terminal sends two packets continuously in a passage.For the broadcast state sequential chart shown in Fig. 4 B, when terminal sends broadcast message 1 by passage 37, first acquiring unit 601 can obtain the termination transmitting time stamp sending broadcast message 1, i.e. moment of being sent of broadcast message 1, when judging unit 602 judges that the broadcast type of BLE module is the second broadcast type, and when not receiving the scan request of end of scan transmission, termination transmitting time stamp can be set to stamp of initial free time by the first setting unit 603.When terminal sends broadcast message 1 by passage 38, first acquiring unit 601 can obtain the termination transmitting time stamp sending broadcast message 1, when judging unit 602 judges the scan request receiving end of scan transmission, terminal returns in the process of scanning response to end of scan to be needed to use Radio Resource, then can not distribute this Radio Resource to object module by control terminal.When terminal sends broadcast message 1 by passage 39, first acquiring unit 601 can obtain the termination transmitting time stamp sending broadcast message 1, when judging unit 602 judges the scan request not receiving end of scan transmission, termination transmitting time stamp can be set to stamp of initial free time by the first setting unit 603.
As the optional execution mode of one, the setting unit 502 in the embodiment of the present invention can as shown in Figure 7, comprise further:
Second acquisition unit 701, for when described operating state is scanning mode, obtains the terminating reception timestamp that described BLE module receives the broadcast message that broadcast terminal sends.
Second setting unit 702, for by described terminating reception time stamp setting being stamp of described initial free time.
For the scanning mode sequential chart shown in Fig. 4 C, terminal can scan broadcast message when being in scanning mode, second acquisition unit 701 obtains the terminating reception timestamp that BLE module receives the broadcast message that broadcast terminal sends, in i.e. moment of receiving of broadcast message, terminating reception time stamp setting is stamp of initial free time by the second setting unit 702.
Further alternative, the setting unit 502 in the embodiment of the present invention can as shown in Figure 8, comprise further:
Cycle airtime acquiring unit 801, for when described operating state is broadcast state, obtains cycle airtime of presetting broadcast channel.
Send duration acquiring unit 802, for obtaining the transmission duration being sent broadcast message by described default broadcast channel.
First free time length acquiring unit 803, for being subtracted each other in described cycle airtime and described transmission duration, obtains the free time length of described BLE module.
Very first time stamp acquiring unit 804, being added with described free time length for being stabbed described initial free time, obtaining stamp of described termination free time.
For the broadcast state sequential chart shown in Fig. 4 A, the broadcast type of BLE module is the first broadcast type, and terminal wheel flows through passage 37,38 and 39 and sends broadcast message 1, after broadcast time delay, sends broadcast message 2.When terminal sends broadcast message 1 by passage 37, cycle airtime acquiring unit 801 can cycle airtime of Acquisition channel 37, send duration acquiring unit 802 and obtain the transmission duration being sent broadcast message 1 by passage 37, cycle airtime and transmission duration subtract each other by the first free time length acquiring unit 803, obtain the free time length of BLE module, initial free time stabs and is added with free time length by very first time stamp acquiring unit 804, obtain and stop free time stamp, namely the initial time of broadcast message 1 is sent by passage 38, when arriving termination free time stamp, resource allocation unit 503 by allocation of radio resources to BLE module.When terminal sends broadcast message 1 by passage 39, cycle airtime acquiring unit 801 can cycle airtime of Acquisition channel 39, send duration acquiring unit 802 and obtain the transmission duration being sent broadcast message 1 by passage 39, cycle airtime is deducted transmission duration by the first free time length acquiring unit 803, and add broadcast time delay, to obtain the free time length of BLE module, initial free time stabs and is added with free time length by very first time stamp acquiring unit 804, obtain and stop free time stamp, namely the initial time of broadcast message 2 is sent, when arriving termination free time stamp, resource allocation unit 503 by allocation of radio resources to BLE module.
For the broadcast state sequential chart shown in Fig. 4 B, the broadcast type of BLE module is the second broadcast type, terminal wheel flows through passage 37,38 and 39 and sends broadcast message 1, the scan request that end of scan sends is received after sending broadcast message by passage 38, and then send scanning response to end of scan, then there is not free time length in cycle airtime of passage 38.When terminal sends broadcast message by passage 37, cycle airtime acquiring unit 801 can cycle airtime of Acquisition channel 37, send duration acquiring unit 802 and obtain the transmission duration being sent broadcast message by passage 37, cycle airtime and transmission duration subtract each other by the first free time length acquiring unit 803, obtain the free time length of BLE module, initial free time stabs and is added with free time length by very first time stamp acquiring unit 804, obtain and stop free time stamp, namely the initial time of broadcast message is sent by passage 38, when arriving termination free time stamp, resource allocation unit 503 by allocation of radio resources to BLE module.When terminal sends broadcast message by passage 39, cycle airtime acquiring unit 801 can cycle airtime of Acquisition channel 39, send duration acquiring unit 802 and obtain the transmission duration being sent broadcast message by passage 39, cycle airtime is deducted transmission duration by the first free time length acquiring unit 803, obtain the free time length of BLE module, initial free time stabs and is added with free time length by very first time stamp acquiring unit 804, obtain and stop free time stamp, when arriving termination free time stamp, resource allocation unit 503 by allocation of radio resources to BLE module.
Further alternative, the setting unit 502 in the embodiment of the present invention can as shown in Figure 9, comprise further:
Cycle sweep time acquiring unit 901, for when described operating state is scanning mode, obtains cycle sweep time of described BLE module.
Receiving duration acquiring unit 902, receiving the reception duration of the broadcast message that broadcast terminal sends for obtaining described BLE module.
Second free time length acquiring unit 903, for being subtracted each other in described cycle sweep time and described reception duration, obtains the free time length of described BLE module.
Second timestamp acquiring unit 904, being added with described free time length for being stabbed described initial free time, obtaining stamp of described termination free time.
For the scanning mode sequential chart shown in Fig. 4 C, terminal can scan broadcast message when being in scanning mode, cycle sweep time acquiring unit 901 obtains cycle sweep time of BLE module, receive duration acquiring unit 902 and obtain the reception duration that BLE module receives the broadcast message that broadcast terminal sends, cycle sweep time and reception duration subtract each other by the second free time length acquiring unit 903, obtain the free time length of BLE module, initial free time stabs and is added with free time length by the second timestamp acquiring unit 904, obtain and stop free time stamp, namely scan the initial time of broadcast message next time, when arriving termination free time stamp, resource allocation unit 503 by allocation of radio resources to BLE module.
As the optional execution mode of one, the resource allocation unit 503 in the embodiment of the present invention can as shown in Figure 10, comprise further:
Priority acquiring unit 1001, for obtaining the priority of each wireless module.
Determining unit 1002, for determining that the wireless module that priority is the highest is object module.
Wireless resource allocation unit 1003, for giving described object module by described allocation of radio resources.
Such as, the wireless module sharing this Radio Resource comprises BLE module, WLAN module and ZigBee module, priority acquiring unit 1001 can obtain the priority of WLAN module and ZigBee module, determining unit 1002 determines that the wireless module that priority is the highest is object module, wireless resource allocation unit 1003 by allocation of radio resources to object module.
Further alternative, the priority acquiring unit 1001 in the embodiment of the present invention can as shown in figure 11, comprise further:
Rate of connections acquiring unit 1101, is in the rate of connections of connection status for obtaining wireless module described in each in preset time period.
Priority determining unit 1102, for according to described rate of connections, determines the priority of wireless module described in each.
Such as, the wireless module sharing Radio Resource with BLE module comprises WLAN module and ZigBee module, rate of connections acquiring unit 1101 can obtain the number of times that within nearest January, WLAN module connects, such as 30 times, rate of connections acquiring unit 1101 can also obtain the number of times that within nearest January, ZigBee module connects, such as 5 times, then priority determining unit 1102 can determine that the priority of WLAN module is higher than ZigBee module, determining unit 1002 determines that WLAN module is object module, wireless resource allocation unit 1003 by allocation of radio resources to WLAN module.
It is to be noted, the priority of each wireless module that embodiment of the present invention priority acquiring unit 1001 gets is including but not limited to aforesaid way, such as, priority acquiring unit 1001 can determine the transmission range of each wireless module, according to transmission range, determine the priority of each wireless module, etc., specifically not by the restriction of the embodiment of the present invention.
In the terminal shown in Fig. 5, working state detection units 501 detects the operating state of BLE module, when operating state is broadcast state, scanning mode or holding state, the initial free time that setting unit 502 arranges BLE module stabs, when arriving stamp of initial free time, current for the BLE module allocation of radio resources taken to object module, can be improved resource utilization by resource allocation unit 503, promotes Consumer's Experience.
Figure 12 is the structural representation of a kind of terminal provided in second embodiment of the invention, and as shown in the figure, described terminal can comprise: at least one input unit 1203, at least one output device 1204, at least one processor 1201, such as CPU, memory 1205 and at least one bus 1202.
Wherein, above-mentioned bus 1202 is for connecting above-mentioned input unit 1203, output device 1204, processor 1201 and memory 1205.
Wherein, above-mentioned input unit 1203 specifically can be the communication interface of terminal, for receiving the broadcast message that broadcast terminal sends or the scan request etc. receiving end of scan transmission, communication interface is network interface such as, and network interface can comprise wireline interface or the wave point (as WI-FI interface) of standard.
Above-mentioned output device 1204 specifically can be the communication interface of terminal, for sending broadcast message by presetting broadcast channel or send scan request etc. to broadcast terminal, communication interface is network interface such as, and network interface can comprise wireline interface or the wave point (as WI-FI interface) of standard.
Above-mentioned memory 1205 can be high-speed RAM memory, also can be non-labile memory (non-volatile memory), such as magnetic disc store, stabs for storing initial free time and stops free time stamp etc.Above-mentioned memory 1205 is also for storing batch processing code, and above-mentioned input unit 1203, output device 1204 and processor 1201, for calling the program code stored in memory 1205, perform and operate as follows:
Processor 1201, for detecting the operating state of BLE module.
Processor 1201, also for when operating state is broadcast state, scanning mode or holding state, the initial free time arranging BLE module stabs.
Processor 1201, also for when arriving stamp of initial free time, by current for the BLE module allocation of radio resources taken to object module.
As the optional execution mode of one, processor 1201 arranges initial free time of BLE module after stamp, can also perform following operation:
When operating state be broadcast state or scanning mode time, processor 1201 arrange BLE module termination free time stamp.
Current for the BLE module allocation of radio resources taken to after object module, can also be performed following operation by processor 1201:
When arriving termination free time stamp, by allocation of radio resources to BLE module.
As the optional execution mode of one, when operating state is broadcast state, scanning mode or holding state, the initial free time that processor 1201 arranges BLE module stabs, and is specifically as follows:
When operating state is holding state, the initial free time that processor 1201 arranges BLE module stabs.
Current for the BLE module allocation of radio resources taken to after object module, can also be performed following operation by processor 1201:
When detecting that the operating state of BLE module is updated to non-standby state, processor 1201 by allocation of radio resources to BLE module.
As the optional execution mode of one, the initial free time that processor 1201 arranges BLE module stabs, and is specifically as follows:
When operating state is broadcast state, obtain the termination transmitting time stamp being sent broadcast message by default broadcast channel.
Whether the broadcast type judging BLE module is the first broadcast type.
When the broadcast type of BLE module is the first broadcast type, termination transmitting time stamp is set to stamp of initial free time.
Further alternative, the broadcast type of BLE module can comprise the first broadcast type and the second broadcast type, then, after processor 1201 judges whether the broadcast type of BLE module is the first broadcast type, can also perform following operation:
When the broadcast type of BLE module is the second broadcast type, processor 1201 judges whether the scan request receiving end of scan transmission.
When not receiving scan request, termination transmitting time stamp is set to stamp of initial free time by processor 1201.
As the optional execution mode of one, the initial free time that processor 1201 arranges BLE module stabs, and is specifically as follows:
When operating state is scanning mode, obtain the terminating reception timestamp that BLE module receives the broadcast message that broadcast terminal sends.
It is stamp of initial free time by terminating reception time stamp setting.
Further alternative, processor 1201 arranges the termination free time stamp of BLE module, is specifically as follows:
When operating state is broadcast state, obtain cycle airtime of presetting broadcast channel.
Obtain the transmission duration being sent broadcast message by default broadcast channel.
Cycle airtime and transmission duration are subtracted each other, obtains the free time length of BLE module.
Initial free time is stabbed and is added with free time length, obtain and stop free time stamp.
Further alternative, processor 1201 arranges the termination free time stamp of BLE module, is specifically as follows:
When operating state is scanning mode, obtain cycle sweep time of BLE module.
Obtain the reception duration that BLE module receives the broadcast message that broadcast terminal sends.
Cycle sweep time and reception duration are subtracted each other, obtains the free time length of BLE module.
Initial free time is stabbed and is added with free time length, obtain and stop free time stamp.
As the optional execution mode of one, current for the BLE module allocation of radio resources taken to object module, is specifically as follows by processor 1201:
Obtain the priority of each wireless module.
Determine that the wireless module that priority is the highest is object module.
By allocation of radio resources to object module.
Further alternative, processor 1201 obtains the priority of each wireless module, is specifically as follows:
Obtain each wireless module in preset time period and be in the rate of connections of connection status.
According to rate of connections, determine the priority of each wireless module.
Concrete, the terminal introduced in the embodiment of the present invention can in order to implement the part or all of flow process in the wireless resource allocation methods embodiment of composition graphs 1 ~ Fig. 3 of the present invention introduction.
Unit in all embodiments of the present invention, universal integrated circuit can be passed through, such as CPU (CentralProcessing Unit, central processing unit), or realized by ASIC (Application Specific IntegratedCircuit, application-specific integrated circuit (ASIC)).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention device can carry out merging, divide and deleting according to actual needs.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a wireless resource allocation methods, is characterized in that, comprising:
Detect the operating state of low-power consumption bluetooth module;
When described operating state is broadcast state, scanning mode or holding state, the initial free time arranging described low-power consumption bluetooth module stabs;
When arriving described initial free time stamp, by current for the described low-power consumption bluetooth module allocation of radio resources taken to object module.
2. the method for claim 1, is characterized in that, the described initial free time arranging described low-power consumption bluetooth module also comprises after stabbing:
When described operating state be broadcast state or scanning mode time, arrange described low-power consumption bluetooth module termination free time stamp;
Described by current for the described low-power consumption bluetooth module allocation of radio resources taken to after object module, also comprise:
When arriving stamp of described termination free time, give described low-power consumption bluetooth module by described allocation of radio resources.
3. the method for claim 1, is characterized in that, when described operating state is broadcast state, scanning mode or holding state, the initial free time stamp arranging described low-power consumption bluetooth module comprises:
When described operating state is holding state, stamp of described initial free time is set;
Described by current for the described low-power consumption bluetooth module allocation of radio resources taken to after object module, also comprise:
When detecting that described operating state is updated to non-standby state, give described low-power consumption bluetooth module by described allocation of radio resources.
4. the method for claim 1, is characterized in that, the described initial free time arranging described low-power consumption bluetooth module stabs and comprises:
When described operating state is broadcast state, obtain the termination transmitting time stamp being sent broadcast message by default broadcast channel;
Whether the broadcast type judging described low-power consumption bluetooth module is the first broadcast type;
When described broadcast type is the first broadcast type, described termination transmitting time stamp is set to described initial free time stamp.
5. method as claimed in claim 4, it is characterized in that, the broadcast type of described low-power consumption bluetooth module comprises the first broadcast type and the second broadcast type;
Described judge whether the broadcast type of described low-power consumption bluetooth module is the first broadcast type after, also comprise:
When described broadcast type is the second broadcast type, judge whether the scan request receiving end of scan transmission;
When not receiving described scan request, performing and describedly described termination transmitting time stamp being set to described initial free time stamp.
6. the method for claim 1, is characterized in that, the described initial free time arranging described low-power consumption bluetooth module stabs and comprises:
When described operating state is scanning mode, obtain the terminating reception timestamp receiving the broadcast message that broadcast terminal sends;
Be stab described terminating reception time stamp setting described initial free time.
7. method as claimed in claim 2, is characterized in that, the described termination free time stamp arranging described low-power consumption bluetooth module comprises:
When described operating state is broadcast state, obtain cycle airtime of presetting broadcast channel;
Obtain the transmission duration being sent broadcast message by described default broadcast channel;
Described cycle airtime and described transmission duration are subtracted each other, obtains the free time length of described low-power consumption bluetooth module;
Described initial free time is stabbed and is added with described free time length, obtain stamp of described termination free time.
8. method as claimed in claim 2, is characterized in that, the described termination free time stamp arranging described low-power consumption bluetooth module comprises:
When described operating state is scanning mode, obtain cycle sweep time of described low-power consumption bluetooth module;
Obtain the reception duration receiving the broadcast message that broadcast terminal sends;
Described cycle sweep time and described reception duration are subtracted each other, obtains the free time length of described low-power consumption bluetooth module;
Described initial free time is stabbed and is added with described free time length, obtain stamp of described termination free time.
9. the method as described in any one of claim 1 ~ 8, is characterized in that, describedly current for the described low-power consumption bluetooth module allocation of radio resources taken is comprised to object module:
Obtain the priority of each wireless module;
Determine that the wireless module that priority is the highest is object module;
Described object module is given by described allocation of radio resources.
10. method as claimed in claim 9, is characterized in that, described acquisition priority of wireless module described in each comprises:
Obtain wireless module described in each in preset time period and be in the rate of connections of connection status;
According to described rate of connections, determine the priority of wireless module described in each.
CN201510206237.XA 2015-04-27 2015-04-27 Wireless resource distribution method Pending CN104936211A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510206237.XA CN104936211A (en) 2015-04-27 2015-04-27 Wireless resource distribution method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510206237.XA CN104936211A (en) 2015-04-27 2015-04-27 Wireless resource distribution method

Publications (1)

Publication Number Publication Date
CN104936211A true CN104936211A (en) 2015-09-23

Family

ID=54123113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510206237.XA Pending CN104936211A (en) 2015-04-27 2015-04-27 Wireless resource distribution method

Country Status (1)

Country Link
CN (1) CN104936211A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430595A (en) * 2015-10-26 2016-03-23 上海斐讯数据通信技术有限公司 Connection method of bluetooth equipment and bluetooth equipment
CN107135467A (en) * 2017-04-28 2017-09-05 成都新橙北斗智联有限公司 A kind of dual-mode BLE application systems and method
CN113423098A (en) * 2021-04-28 2021-09-21 广州芯之联科技有限公司 Bluetooth scanning event scheduling method and device and Bluetooth equipment
WO2022061874A1 (en) * 2020-09-28 2022-03-31 深圳市汇顶科技股份有限公司 Stream end point control method, electronic device, and storage medium
WO2022193285A1 (en) * 2021-03-19 2022-09-22 华为技术有限公司 Communication method and communication device
CN117135600A (en) * 2023-02-10 2023-11-28 荣耀终端有限公司 Bluetooth broadcast request processing method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1835411A (en) * 2005-03-16 2006-09-20 索尼计算机娱乐公司 Communication apparatus for avoiding communication interfere

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1835411A (en) * 2005-03-16 2006-09-20 索尼计算机娱乐公司 Communication apparatus for avoiding communication interfere

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430595A (en) * 2015-10-26 2016-03-23 上海斐讯数据通信技术有限公司 Connection method of bluetooth equipment and bluetooth equipment
CN107135467A (en) * 2017-04-28 2017-09-05 成都新橙北斗智联有限公司 A kind of dual-mode BLE application systems and method
WO2022061874A1 (en) * 2020-09-28 2022-03-31 深圳市汇顶科技股份有限公司 Stream end point control method, electronic device, and storage medium
WO2022193285A1 (en) * 2021-03-19 2022-09-22 华为技术有限公司 Communication method and communication device
CN113423098A (en) * 2021-04-28 2021-09-21 广州芯之联科技有限公司 Bluetooth scanning event scheduling method and device and Bluetooth equipment
CN117135600A (en) * 2023-02-10 2023-11-28 荣耀终端有限公司 Bluetooth broadcast request processing method and device

Similar Documents

Publication Publication Date Title
CN104936211A (en) Wireless resource distribution method
CN109246775A (en) Residence reselecting and relevant device
EP3518589B1 (en) Power distribution method and device
EP3637824B1 (en) Measurement gap configuration method and device
CN105578573A (en) Authorized frequency band channel occupation time configuration method and device
CN105050190A (en) Method, device and base station for configuring discovery reference signal (DRS) based on unauthorized frequency band
CN105874862A (en) Data transmission method and device
CN104159306A (en) Method, device and system for controlling radio resources
CN106162917A (en) The method for pre-emptively of transfer resource and equipment on a kind of unauthorized carrier wave
WO2015154248A1 (en) Transmission method for system information, base station and user equipment
JP2018514971A (en) Interleaved communication with resource providers and home area networks
CN110312307B (en) Method and equipment for selecting resources in carrier waves
CN104901724A (en) Data transmission method
CN103269498B (en) A kind of detection method of adjacent frequency interference and device
CN112492618A (en) Network sharing method and device, electronic equipment and storage medium
CN107743313B (en) Method, base station and system for realizing time division duplex configuration of auxiliary cell
EP2999285B1 (en) Method for transmitting signal in device to device proximity service, base station and user equipment
CN104349462A (en) Communication mode selection method and user equipment
CN105050123A (en) Load control method for wireless network and terminal
CN111405534A (en) Information transmission method, first terminal and computer storage medium
CN104837208A (en) Terminal
CN103428873A (en) Method for processing information, user terminal and base station
CN106941706A (en) A kind of radio switch-in method and equipment
EP3065445A1 (en) Method, cse, and system for transmitting m2m application request
CN110139269B (en) Code detection method and device of LTE terminal, code detection equipment and readable storage medium

Legal Events

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

Application publication date: 20150923