WO2020156151A1 - 通信控制方法、装置、移动终端及存储介质 - Google Patents

通信控制方法、装置、移动终端及存储介质 Download PDF

Info

Publication number
WO2020156151A1
WO2020156151A1 PCT/CN2020/072045 CN2020072045W WO2020156151A1 WO 2020156151 A1 WO2020156151 A1 WO 2020156151A1 CN 2020072045 W CN2020072045 W CN 2020072045W WO 2020156151 A1 WO2020156151 A1 WO 2020156151A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
scanning
broadcast
speed
receiving speed
Prior art date
Application number
PCT/CN2020/072045
Other languages
English (en)
French (fr)
Inventor
陈岩
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020156151A1 publication Critical patent/WO2020156151A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • 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

Definitions

  • This application relates to the field of mobile terminal technology, and more specifically, to a communication control method, device, mobile terminal, and storage medium.
  • Mobile terminals such as mobile phones and tablet computers, have become one of the most commonly used consumer electronic products in people's daily lives.
  • the popularization of the use of mobile terminals has brought convenience to people's lives.
  • various services can be performed accordingly, such as offline payment, opening door access, etc.
  • wireless communication technologies such as Bluetooth Low Energy (BLE) and Wi-Fi Aware
  • BLE Bluetooth Low Energy
  • Wi-Fi Aware more and more offline payment scenarios, door opening and other application scenarios can be based on the above wireless communication technologies.
  • this application proposes a communication control method, device, mobile terminal, and storage medium to reduce the power consumption of the mobile terminal.
  • an embodiment of the present application provides a communication control method, which is applied to a mobile terminal, and the method includes: when detecting that the mobile terminal changes from a stationary state to a moving state, scanning for broadcast messages sent by a broadcasting device; Detect whether the mobile terminal continues to be in motion every designated time interval; if the mobile terminal continues to be in motion, it is acquired that the mobile terminal is in motion before the current time and received the broadcast equipment within a set period of time.
  • the receiving speed of the broadcast message when the receiving speed is less than the set speed, the scanning duty cycle of scanning the broadcast message sent by the broadcasting device is reduced, and the scanning duty cycle is the ratio of the single scanning time to the scanning interval.
  • the embodiments of the present application provide a communication control device, which is applied to a mobile terminal, and the device includes: a broadcast scanning module, a status detection module, a speed acquisition module, and a parameter adjustment module, wherein the broadcast scanning module is used When it is detected that the mobile terminal changes from a stationary state to a moving state, scan the broadcast message sent by the broadcasting device; the state detection module is used to detect whether the mobile terminal continues to be in the moving state every specified time interval; The obtaining module is configured to obtain the receiving speed of the broadcast message sent by the broadcasting device during the set time period when the mobile terminal remains in the moving state before the current time if the mobile terminal continues to be in motion; the parameter adjustment module It is used to reduce the scanning duty ratio of the broadcast message sent by the scanning broadcasting device when the receiving speed is lower than the set speed, and the scanning duty ratio is the ratio of the single scanning time to the scanning interval.
  • an embodiment of the present application provides a mobile terminal, including: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and Is configured to be executed by the one or more processors, and the one or more programs are configured to execute the communication control method provided in the first aspect described above.
  • an embodiment of the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores program code, and the program code can be invoked by a processor to execute the communication provided in the first aspect. Control Method.
  • Fig. 1 shows a schematic diagram of an application scenario suitable for an embodiment of the present application.
  • Fig. 2 shows another schematic diagram of an application scenario suitable for an embodiment of the present application.
  • FIG. 3 shows another schematic diagram of an application scenario applicable to the embodiments of the present application.
  • Fig. 4 shows a flow chart of a communication control method according to an embodiment of the present application.
  • Fig. 5 shows a flow chart of a communication control method according to another embodiment of the present application.
  • Fig. 6 shows a flow chart of a communication control method according to another embodiment of the present application.
  • Fig. 7 shows a block diagram of a communication control device according to an embodiment of the present application.
  • Fig. 8 shows a block diagram of a parameter adjustment module in a communication control device according to an embodiment of the present application.
  • Fig. 9 is a block diagram of a mobile terminal for executing a communication control method according to an embodiment of the present application.
  • Fig. 10 is a storage unit for storing or carrying program codes for implementing the communication control method according to the embodiment of the present application.
  • beacon-based Offline payment scenarios such as Bluetooth Low Energy (BLE) and Wi-Fi Aware
  • access control application scenarios based on Beacon.
  • the user does not need to scan the QR code, perform corresponding touch operations through the interface of the application, or use the mobile phone to point the scanning device, etc., only the mobile terminal is in the broadcasting device (such as payment equipment, gates, etc.) Within the radiation range of the broadcast message, and then perform relevant identity information verification (such as face information verification, fingerprint information verification, etc.) to realize offline payment, open access control, etc.
  • relevant identity information verification such as face information verification, fingerprint information verification, etc.
  • broadcasting devices such as payment devices, access control devices, etc.
  • broadcasting devices will send broadcast messages, and the terminals around the broadcasting device scan the broadcast messages, so that the terminal receives the broadcast After the message, you can perform corresponding operations according to the broadcast message, complete offline payment, open the door, etc. Since this method does not require users to perform operations such as scanning codes on the interface of the mobile terminal, it is very convenient for users to use and is deeply loved by users.
  • the inventor found that when the mobile terminal uses the above-mentioned wireless communication method for offline payment, door opening and other operations, it will open the scanning mode for a long time, scan the broadcast message sent by the broadcast device, and make the central processing unit frequently wake up ( CPU, Central Processing Unit), which increases system power consumption.
  • the inventor has put forward the communication control method, device, mobile terminal, and storage medium provided by the embodiments of the application after a long period of research. According to the motion state of the mobile terminal, the scanning of broadcast messages is dynamically adjusted to save mobile The power consumption of the terminal.
  • FIG. 1 shows an application scenario diagram of a communication control method provided by an embodiment of the present application.
  • the application scenario includes a communication system 10, and the communication system 10 includes a mobile terminal 100, a broadcasting device 200 and a server 300.
  • the mobile terminal 100 is connected to the server 300 via a network
  • the broadcasting device 200 is connected to the server 300 via a network.
  • the mobile terminal 100 and the server 300 may be connected through a wireless connection, such as a 2G, 3G, 4G, or other mobile network data connection or a wifi connection
  • the broadcasting device 200 and the server 300 are connected through a wired or wireless connection.
  • the broadcasting device 200 may send a broadcasting message to the mobile terminal 100 in a wireless communication mode, where the wireless communication mode includes a Bluetooth BLE mode or a Wi-Fi Aware mode.
  • the mobile terminal 100 may be a mobile phone, a tablet computer, or other smart devices that can perform mobile electronic payments
  • the broadcast device 200 may be a smart device that can broadcast messages, such as a payment device in a supermarket (such as a cash register, etc.) , Turnstiles and other equipment in public places.
  • the number of the aforementioned broadcasting devices 200 is not limited in the embodiment of the present application, and may be one or multiple.
  • the broadcast device 200 can send broadcast messages through BLE, Wi-Fi Aware, and other communication methods.
  • the mobile terminal 100 When the mobile terminal 100 is located near the broadcast device 200 and enters the radiation range of the broadcast message of the broadcast device 200, it can receive the broadcast message sent by the broadcast device 200. Broadcast news.
  • the mobile terminal 100 uses the corresponding communication method to scan the above-mentioned broadcast message to receive the above-mentioned broadcast message, and uses the broadcast message to interact with the server 300 for corresponding data, perform identity verification, etc., so as to complete offline payment, door opening and other operations.
  • a mobile terminal can receive a broadcast message sent by a payment device, and obtain information such as a device identification (for example, a device ID) of the payment device from the broadcast message.
  • the server completes the deduction after verifying the relevant identity information according to the binding of the payment account corresponding to the mobile terminal and the device identification, thereby completing the payment operation, and furthermore does not require the user to operate the mobile terminal, so that the user does not need to manually Perform payment operations.
  • the user brings the mobile terminal 100 into a motion state and moves to the payment device 210.
  • the mobile terminal 100 can detect that it has entered the mobile state from a static state and perform the broadcast message sent by the payment device 210. scanning. As shown in FIG. 3, after moving to the payment device 210, the mobile terminal 100 can obtain the device identification of the payment device 210 according to the broadcast message received from the payment device 210, and send the device identification and the corresponding mobile terminal 100 to the server. For the payment account, the binding of the payment account and the device identification is completed, and the payment operation can be completed after the payment device 210 completes the identity verification.
  • an embodiment of the present application provides a communication control method, which can be applied to a mobile terminal, and the communication control method may include:
  • Step S110 When it is detected that the mobile terminal changes from a stationary state to a moving state, scan the broadcast message sent by the broadcast device.
  • the mobile terminal can detect the motion state of the mobile terminal in real time to determine whether the mobile terminal scans the broadcast message sent by the broadcasting device according to whether the mobile terminal is in the motion state.
  • the mobile terminal When the mobile terminal detects that it has changed from a stationary state to a moving state, it can start scanning to scan for broadcast messages sent by the broadcast device. For example, turn on BLE scanning, or turn on Wi-Fi Aware scanning to scan broadcast messages sent by broadcast devices.
  • the mobile terminal scans the broadcast message sent by the broadcast device, and can obtain information such as the device ID of the broadcast device according to the broadcast message, so that it can be used in subsequent processes such as payment and verification in the process of opening the door.
  • the BLE scan or Wi-Fi Aware scan of the mobile terminal is in the off state, that is, the broadcast message sent by the broadcast device is not scanned. That is to say, if the user is using the mobile terminal to make payments or open the door, when the mobile terminal is in a static state, the mobile terminal is already within the radiation range of the broadcast message of the broadcast device, and the mobile terminal has scanned the broadcast device's broadcast Message, and the device ID in the broadcast message of the broadcast device has been received for payment or opening the door control process. Therefore, the BLE scan or Wi-Fi Aware scan of the mobile terminal is turned off to prevent the mobile terminal from being in communication for a long time Scan the state and frequently wake up the CPU, thereby saving the power consumption of the mobile terminal.
  • the mobile terminal may detect its motion state through a motion sensor.
  • the motion sensor may be a sensor that can still work normally when the mobile terminal is in the off-screen state.
  • the motion sensor can be in the wake-up state for a long time and can wake up the wireless access point (AP, Wireless Access Point) of the mobile phone. That is to say, when the user uses the mobile terminal, the mobile terminal can be in the off-screen state, and the aforementioned motion sensor can monitor the motion state of the mobile terminal.
  • the specific motion sensor described above may not be a limitation.
  • it may be an AMD motion detection sensor, or for example, a motion_detect sensor.
  • the specific method of detecting the motion state of the mobile terminal may not be limited in the embodiment of the present application.
  • Step S120 Detect whether the mobile terminal continues to be in a motion state every designated time interval.
  • the communication scan of the mobile terminal is started to scan the broadcast message sent by the broadcast device.
  • the mobile terminal can continue to detect the motion state of the mobile terminal to dynamically control the scanning state of the mobile terminal, that is, dynamically control the scanning of the broadcast message by the mobile terminal.
  • the mobile terminal can detect whether the mobile terminal continues to be in a motion state every designated time interval. In other words, after the mobile terminal detects that it has changed from a static state to a moving state, and then turns on the scanning state, after scanning the broadcast messages sent by the broadcast device, it can scan the broadcast messages in the scanning state this time, The movement state of the mobile terminal is detected by the way of detecting the movement state of the mobile terminal by specifying the time interval. According to the motion state of the mobile terminal detected each time, it is determined whether to continue scanning the broadcast message sent by the broadcast device.
  • the specific value of the designated duration is not limited in the embodiments of the present application.
  • the designated duration can be 2 seconds (S), 5S, 10S, and so on.
  • the above-mentioned detection of the motion state of the mobile terminal every specified time interval can be realized by using an alarm clock and a pedometer sensor, that is, every time after a period (specified time length) of the alarm clock, Obtain the number of steps detected by the pedometer sensor, and determine whether the mobile terminal is in a motion state according to the number of steps. Wherein, if the number of steps detected by the pedometer sensor is greater than the set number of steps, it is confirmed that the mobile terminal is in a motion state; if the number of steps detected by the pedometer sensor is less than or equal to the set number of steps, it is confirmed that the mobile terminal is not in a motion state.
  • the specific numerical value of the set number of steps is not limited, for example, it may be 0 or 50.
  • the mobile terminal after detecting the motion state of the mobile terminal each time, it can be determined whether the mobile terminal continues to be in the motion state. In other words, if it is detected that the mobile terminal is in motion, it can be determined that the mobile terminal is still in motion because the mobile terminal was in motion before. If it is detected that the mobile terminal is in a stationary state, it can be determined that the mobile terminal is not in motion. .
  • the mobile terminal If it is detected that the mobile terminal continues to be in motion, it means that the user is carrying the mobile terminal in a moving state, and the user may be carrying the mobile terminal into the radiation range of the broadcast message of the broadcasting device, so the above communication of the mobile terminal can be continued Scan to scan broadcast messages sent by broadcast equipment.
  • the mobile terminal If it is detected that the mobile terminal has not continued to be in motion, it means that the mobile terminal has been within the radiation range of the broadcast message of the broadcast device, and the mobile terminal has scanned the broadcast message of the broadcast device, and may have obtained the broadcast message for correlation Operational information, so the mobile terminal can turn off the above-mentioned communication scanning to avoid the mobile terminal being in the communication scanning state for a long time and frequently waking up the CPU, thereby saving the power consumption of the mobile terminal.
  • Step S130 If the mobile terminal continues to be in the motion state, obtain the receiving speed of the broadcast message sent by the broadcast device during the set time period during which the mobile terminal stays in the motion state before the current time.
  • the mobile terminal in the process of detecting whether the mobile terminal continues to be in a motion state every designated time interval, after each detection of whether the mobile terminal is continuously in a motion state, if it is detected that the mobile terminal is in a motion state, the mobile terminal may According to the actual situation of the mobile terminal scanning the broadcast message of the broadcast device, that is, according to the situation that the broadcast device near the mobile terminal sends out the broadcast message, the parameters of scanning the broadcast message of the broadcast device are adjusted.
  • the mobile terminal may obtain the receiving speed of the broadcast message sent by the broadcast device within a set time period during which the mobile terminal is in the motion state before the current time after detecting whether it continues to be in motion. According to the receiving speed, the number of broadcast messages sent by the broadcast device near the mobile terminal is determined.
  • the above-mentioned current time may be the time when the mobile terminal detects that it is in a moving state each time. For example, the mobile terminal detects that it changes from a stationary state to a moving state at time T1, and starts scanning for broadcast messages sent by the broadcast device. , At T2 time after the specified time interval, it is detected that the mobile terminal continues to be in motion, then the current time is T2 time, that is, the broadcast message sent by the shutdown device is received within the set time period before the T2 time is acquired. Receiving speed.
  • the mobile terminal is in motion at the above current time, and is also in motion before the current time.
  • the mobile terminal is in the process of enabling the communication scan before the current time, so the set time before the current time can be obtained.
  • the number of broadcast messages received in a segment and based on the number, calculate the broadcast speed of receiving broadcast messages within the above-mentioned set time period.
  • the receiving speed of the mobile terminal After calculating the receiving speed of the mobile terminal to receive the broadcast message sent by the broadcasting device within the above set time period, when the receiving speed is low, it can be determined that there are fewer broadcasting devices within the range where the mobile terminal can scan the broadcast message , Or the number of broadcast messages sent by the broadcast device is small, so the current mobile terminal does not need to scan too much.
  • the receiving speed is high, it can be determined that there are more broadcasting devices within the range of the broadcast message that can be scanned by the mobile terminal, or the number of broadcast messages sent by the broadcasting device is larger. Therefore, the mobile terminal can perform more Scan to receive more broadcast messages.
  • the specific value of the above set time period may not be a limitation.
  • the set time period may be a time period of 2S before the current time, a time period of 10S before the current time, or the current time.
  • Step S140 When the receiving speed is less than the set speed, reduce the scanning duty cycle of the broadcast message sent by the scanning broadcast device, where the scanning duty cycle is the ratio of the single scanning time to the scanning interval.
  • the receiving speed can be compared with the set speed to determine that the receiving speed is greater than the set speed.
  • the specific value of the set speed may not be a limitation.
  • the set speed may be 50 or 100.
  • the receiving speed when the receiving speed is lower than the set speed, it means that there are fewer broadcasting devices within the range that the mobile terminal can scan for broadcasting messages, or the number of broadcasting messages sent by the broadcasting devices is small. There is no need to perform too much scanning, so the scanning duty cycle of scanning broadcast messages sent by the broadcast device can be reduced.
  • the scanning duty cycle is the ratio of the single scanning time to the scanning interval. It can be understood that when the mobile terminal performs BLE scanning or Wi-Fi Aware scanning, it will scan at a certain scanning frequency, and then adjacent scanning There will be a time interval between, and each scan has a single scan time. By reducing the scanning duty cycle of scanning broadcasting equipment, that is, reducing the single scanning time or increasing the scanning interval (reducing the scanning frequency), the actual scanning time of the mobile terminal is reduced, thereby reducing the power consumption of the mobile terminal.
  • the receiving speed is greater than or equal to the set speed, it means that there are more broadcasting devices within the range that the mobile terminal can scan for broadcasting messages, or there are more broadcasting messages sent by broadcasting devices. Therefore, the previous scanning duty cycle can be maintained or the scanning duty cycle can be increased to ensure the reception of the broadcast message.
  • the communication control method scans the broadcast message sent by the broadcast device when it is currently detected that the mobile terminal changes from a stationary state to a moving state, and during the scanning process, monitors whether the mobile terminal continues to be in motion at a specified interval Status, if the mobile terminal continues to be in motion, you can obtain the receiving speed of the mobile terminal receiving broadcast messages from the broadcasting device during the set time period during which the mobile terminal stays in motion before the current time, and when the receiving speed is less than the set speed , To reduce the scanning duty cycle of scanning broadcast messages sent by broadcast equipment, thereby reducing the scanning time of the mobile terminal and saving the power consumption of the mobile terminal.
  • another embodiment of the present application provides a communication control method, which can be applied to a mobile terminal, and the communication control method may include:
  • Step S210 When it is detected that the mobile terminal changes from a stationary state to a moving state, scan the broadcast message sent by the broadcast device.
  • Step S220 Detect whether the mobile terminal continues to be in a motion state every designated time interval.
  • Step S230 If the mobile terminal continues to be in the motion state, obtain the receiving speed of the broadcast message sent by the broadcast device during the set time period when the mobile terminal remains in the motion state before the current time.
  • steps S210 to S230 can refer to the content of the above-mentioned embodiment, which will not be repeated here.
  • Step S240 When the receiving speed is less than the set speed, reduce the scanning duty cycle of the broadcast message sent by the scanning broadcast device, where the scanning duty cycle is the ratio of the single scanning time to the scanning interval.
  • the receiving speed when the receiving speed is less than the set speed, it means that there are fewer broadcasting devices within the range that the mobile terminal can scan for broadcasting messages, or the number of broadcasting messages sent by the broadcasting devices is small, and the current mobile The terminal does not need to perform too much scanning, so the scanning duty cycle of scanning the broadcast message sent by the broadcast device can be reduced.
  • reducing the scanning duty cycle of the broadcast message sent by the scanning broadcast device may include:
  • the scanning duty cycle of the mobile terminal scanning the broadcast message sent by the broadcasting device is the ratio of the single scanning time to the scanning interval, that is, the scanning duty cycle is determined by the single scanning time and the scanning interval.
  • the scanning interval is fixed, the shorter the single scanning time for the mobile terminal to scan the broadcast message, the smaller the scanning duty cycle of the mobile terminal to scan the broadcast message.
  • the single scan time is fixed, the larger the scan interval for the mobile terminal to scan for broadcast messages, the smaller the scan duty cycle for the mobile terminal to scan for broadcast messages.
  • the scanning frequency of the mobile terminal scanning for broadcast messages while keeping the single scanning time constant, that is, to increase the scanning interval for the mobile terminal to scan for broadcast messages, thereby reducing the scanning occupation of the mobile terminal for scanning broadcast messages sent by the broadcast equipment. Empty ratio. It is also possible to keep the scanning frequency of the mobile terminal scanning for broadcast messages unchanged, that is, to keep the scanning interval of the mobile terminal scanning for broadcast messages unchanged, while reducing the single scanning time for the mobile terminal to scan for broadcast messages, thereby reducing the mobile terminal scanning for broadcasts Scan duty cycle of broadcast messages sent by the device.
  • the mobile terminal does not need to scan too much, by reducing the scanning duty cycle of scanning broadcast equipment, that is, reducing the single scanning time or increasing the scanning interval (reducing the scanning frequency), the actual scanning time of the mobile terminal is reduced, Thereby reducing the power consumption of the mobile terminal.
  • the scanning duty cycle of the broadcast message sent by the scanning broadcast device is reduced.
  • the scanning duty cycle may be determined according to the difference between the set speed and the receiving speed. A duty cycle, and then the scanning duty cycle is reduced by the scanning duty cycle.
  • the first duty cycle that needs to be reduced for the scanning duty cycle is determined, which may be based on the relationship between the preset difference and the scanning duty cycle that needs to be reduced. Determine the duty cycle corresponding to the calculated difference.
  • the correspondence relationship between the preset difference and the scanning duty cycle that needs to be reduced may be a correspondence relationship in which the scanning duty cycle that needs to be reduced is proportional to the difference, that is, the difference between the set speed and the receiving speed The larger the value, the larger the scan duty cycle that needs to be reduced.
  • the mobile terminal when the above receiving speed is greater than or equal to the above set speed, it means that there are more broadcasting devices that can be scanned near the mobile terminal, or there are more broadcasting messages sent by the broadcasting devices. Therefore, the mobile terminal is still A larger scan duty cycle is required to receive broadcast messages from broadcast equipment.
  • the mobile terminal can increase the scanning duty cycle of scanning broadcast messages sent by the broadcast device, that is, while keeping the single scanning time constant, increase the scanning frequency of the mobile terminal scanning broadcast messages, or keep moving While the scanning frequency of the terminal scanning the broadcast message remains unchanged, the single scanning time for the mobile terminal to scan the broadcast message is increased, thereby increasing the scanning duty cycle to ensure the reception of the broadcast message sent by the broadcast device near the mobile terminal.
  • the mobile terminal when the mobile terminal determines that the receiving speed is greater than or equal to the set speed, it can also compare the receiving speed with the receiving speed of the previous detection, that is, during the scanning process, if the detection speed is If the receiving speed is increased compared to the receiving speed of the previous detection (the receiving speed of this detection is greater than the receiving speed of the previous detection), the scanning duty ratio of the mobile terminal for scanning broadcast messages can be increased.
  • the receiving speed detected last time is the receiving speed detected when the mobile terminal continues to be in a moving state during the scanning process. It is understandable that during the scanning process, if the receiving speed of the mobile terminal to receive broadcast messages increases, it means that the number of broadcast devices near the mobile terminal increases or the number of broadcast messages sent by the broadcast device increases. Therefore, the scanning duty cycle can be increased to ensure Reception of broadcast messages sent by broadcast equipment.
  • the scanning duty ratio of the mobile terminal scanning broadcast messages can be maintained . It is understandable that when the receiving speed is greater than the set speed, it means that the receiving speed of the broadcast message is still at a relatively high level. Therefore, although the receiving speed of this detection is lower than the receiving speed of the previous detection, the current scanning rate still needs to be maintained. Empty ratio to ensure the reception of broadcast messages. Of course, it is also possible to reduce the scanning duty cycle to a lower value when the receiving speed drops to achieve the effect of saving power consumption.
  • Step S260 If the mobile terminal does not continue to be in the motion state, stop scanning for broadcast messages sent by the broadcast device, and terminate the step of detecting whether the mobile terminal is continuously in the motion state every designated time interval.
  • the mobile terminal can stop the above-mentioned communication scanning, that is, stop scanning the broadcast message sent by the broadcasting device, so as to avoid the mobile terminal in the communication scanning state for a long time and frequently wake up the CPU, thereby saving the power consumption of the mobile terminal.
  • step S220 may be terminated, that is, the detection of whether the mobile terminal continues to be in a motion state every designated time interval is terminated.
  • the motion state of the mobile terminal can be detected in real time according to step S210 to determine whether the mobile terminal enters from a static state according to whether the mobile terminal is in a motion state. Go to the motion state, and then scan the broadcast messages sent by the broadcast device.
  • the communication control method scans the broadcast message sent by the broadcast device when it is currently detected that the mobile terminal changes from a stationary state to a moving state, and during the scanning process, monitors whether the mobile terminal continues to be in motion at a specified interval Status, if the mobile terminal continues to be in motion, you can obtain the receiving speed of the mobile terminal receiving broadcast messages from the broadcasting device during the set time period during which the mobile terminal stays in motion before the current time, and when the receiving speed is less than the set speed , Reduce the scanning duty cycle of the broadcast message sent by the scanning broadcast device, and increase the scanning duty cycle when the receiving speed is greater than or equal to the set speed.
  • the scanning is stopped and the detection of the motion state by the set interval is terminated, thereby reducing the scanning time of the mobile terminal and saving the power consumption of the mobile terminal.
  • another embodiment of the present application provides a communication control method, which can be applied to a mobile terminal, and the communication control method may include:
  • Step S310 When it is detected that the mobile terminal changes from a stationary state to a moving state, scan the broadcast message sent by the broadcast device.
  • Step S320 Detect whether the mobile terminal continues to be in a motion state every designated time interval.
  • Step S330 If the mobile terminal continues to be in the motion state, obtain the receiving speed of the broadcast message sent by the broadcast device during the set time period during which the mobile terminal remains in the motion state before the current time.
  • steps S310 to S330 can refer to the content of the above-mentioned embodiment, which will not be repeated here.
  • Step S340 when the receiving speed is less than the set speed, determine whether the receiving speed is greater than a speed threshold, where the speed threshold is less than the set speed.
  • the receiving speed can be compared with the set speed. If the receiving speed is less than the set speed, it means that there are fewer broadcasting devices within the range that the mobile terminal can scan for broadcasting messages, or the broadcasting device issued by the broadcasting device The number of messages is small, and currently mobile terminals do not need to scan too much.
  • the set speed can be further judged to determine whether the number of broadcast messages sent by the broadcast device that can be scanned by the mobile terminal is lower than the target level. If it is lower than the target level, it means that the mobile terminal It can be scanned that the broadcast device within the range of the broadcast message is close to 0 or equal to 0, or it means that the number of broadcast messages sent by the broadcast device is close to 0 or equal to 0. Specifically, it can be judged whether the receiving speed is greater than the speed threshold. If the receiving speed is not greater than (less than or equal to) the speed threshold, it means that the number of broadcast messages sent by the broadcast device that can be scanned by the current mobile terminal is lower than the target level.
  • the mobile terminal may be in an area where there is no broadcast equipment around or where the broadcast equipment does not send out broadcast messages; if the above receiving speed is greater than the speed threshold, it means that the number of broadcast messages sent by the broadcast equipment currently available for scanning by the mobile terminal is still higher than the target At present, the number of broadcast devices around the mobile terminal is low but there is still a certain number, or the broadcast messages sent by the broadcast device are low but there are still a certain number.
  • the speed threshold is less than the set speed, and the specific value of the speed threshold may not be a limitation. For example, the speed threshold may be 20 or 0.
  • Step S350 If the receiving speed is greater than the speed threshold, reduce the scanning duty ratio of the broadcast message sent by the scanning broadcast device.
  • step S340 if it is determined in step S340 that the receiving speed is greater than the speed threshold, it means that the current mobile terminal is still within a certain number of surrounding broadcast devices or a certain number of broadcast messages sent by the broadcast device. At this time, although the above receiving speed is lower than the set speed, the mobile terminal still needs to scan the broadcast message, but the number of times the mobile terminal is required to scan does not need to be too high. If the previous scan duty cycle is still used at this time, the broadcast message is scanned , It will waste more energy, so the mobile terminal can reduce the scanning duty cycle of scanning broadcast messages. Specifically, the single scanning time for scanning broadcast messages can be reduced or the scanning interval can be increased (reducing the scanning frequency), thereby reducing the actual scanning time and reducing the power consumption of the mobile terminal.
  • Step S360 If the receiving speed is less than or equal to the speed threshold, stop scanning the broadcast message sent by the broadcast device.
  • step S340 if it is determined in step S340 that the receiving speed is less than or equal to the speed threshold, it means that the current mobile terminal may be in an area with no broadcasting equipment around or in an area where the broadcasting equipment does not send broadcast messages. Although the mobile terminal is in a mobile state, the mobile terminal does not receive many broadcast messages in the current area. If the broadcast message is still scanned at this time, the energy consumption of the mobile terminal will be wasted. Therefore, it is possible to stop scanning for broadcast messages sent by the broadcast device and reduce the power consumption of the mobile terminal.
  • Step S370 After stopping the scan for a set time period, when it is detected that the mobile terminal is in a motion state again, scan the broadcast message sent by the broadcast device.
  • the mobile terminal After stopping scanning for broadcast messages sent by broadcast equipment, the mobile terminal can continue to detect the motion state of the mobile terminal. If it detects that the mobile terminal is in motion again, it will scan for broadcast messages sent by the broadcast equipment. The mobile terminal is in motion, but there may still be no broadcast equipment around or very few broadcast messages, so you can continue to stop scanning for broadcast messages, that is, turn off the BLE scan or Wi-Fi Aware scan of the mobile terminal.
  • the broadcast message can be scanned again. It is understandable that because the set speed detected before stopping scanning is low, that is, there are not many broadcasting devices near the mobile terminal, or there are fewer broadcasting messages sent out, if the scanning is stopped, the scanning is started when the motion state is detected. , It will lead to waste of energy consumption of the mobile terminal. Therefore, it is possible to scan the broadcast messages sent by the broadcasting device when the mobile terminal is in the motion state after the set time period is detected, so as to reduce the power consumption of the mobile terminal.
  • Step S380 When the receiving speed is greater than or equal to the set speed, increase the scanning duty cycle.
  • Step S390 If the mobile terminal is not continuing to be in the motion state, stop scanning for broadcast messages sent by the broadcasting device, and terminate the step of detecting whether the mobile terminal is continuously in the motion state every designated time interval.
  • steps S380 to S390 can refer to the content of the above-mentioned embodiment, which will not be repeated here.
  • the communication control method scans the broadcast message sent by the broadcast device when it is currently detected that the mobile terminal changes from a stationary state to a moving state, and during the scanning process, monitors whether the mobile terminal continues to be in motion at a specified interval Status, if the mobile terminal continues to be in motion, you can obtain the receiving speed of the mobile terminal receiving broadcast messages from the broadcasting device during the set time period during which the mobile terminal stays in motion before the current time, and when the receiving speed is less than the set speed , To determine whether the receiving speed is greater than the speed threshold, and then when the receiving speed is greater than the speed threshold, reduce the scanning duty cycle of scanning broadcast messages sent by the broadcasting device.
  • the receiving speed is less than or equal to the speed threshold, stop scanning for broadcast messages sent by the broadcast device.
  • the receiving speed is greater than or equal to the set speed, increase the scan duty cycle.
  • the scanning is stopped and the detection of the motion state by the set interval is terminated, thereby reducing the scanning time of the mobile terminal and saving the power consumption of the mobile terminal.
  • the communication control device 400 includes: a broadcast scanning module 410, a status detection module 420, a speed acquisition module 430, and a parameter adjustment module 440.
  • the broadcast scanning module 410 is configured to scan the broadcast message sent by the broadcast device when it is detected that the mobile terminal changes from a stationary state to a moving state;
  • the state detection module 420 is configured to detect the mobile terminal every designated time interval Whether the terminal continues to be in motion;
  • the speed acquiring module 430 is configured to, if the mobile terminal continues to be in motion, acquire that the mobile terminal has been in motion before the current time and received the broadcast device within a set time period.
  • the receiving speed of the broadcast message; the parameter adjustment module 440 is used to reduce the scanning duty cycle of scanning the broadcast message sent by the broadcasting device when the receiving speed is less than the set speed, and the scanning duty cycle is a single time The ratio of scan time to scan interval.
  • the aforementioned parameter adjustment module 440 may include: a speed judgment unit 441 and an adjustment execution unit 442.
  • the speed judging unit 441 may be used to judge whether the receiving speed is greater than a speed threshold when the receiving speed is less than the set speed, where the speed threshold is less than the set speed; the adjustment execution unit 442 may If the receiving speed is greater than the speed threshold, reducing the scanning duty cycle of scanning broadcast messages sent by the broadcasting device.
  • the communication control device 400 may further include: a scanning stop module.
  • the scanning stop module is configured to stop scanning the broadcast message sent by the broadcast device if the receiving speed is less than or equal to the speed threshold.
  • the above-mentioned broadcast scanning module 410 is further configured to scan the broadcast message sent by the broadcast device when the mobile terminal is again detected in a motion state after stopping the scan for a set time period.
  • reducing the scanning duty cycle of the broadcast message sent by the scanning broadcast device by the parameter adjustment module 440 may include: reducing the scanning frequency of the broadcast message sent by the scanning broadcast device; or reducing the broadcast sent by the scanning broadcast device The single scan time of the message.
  • the communication control device 400 may further include a parameter adding module.
  • the parameter increasing module may be used to increase the scanning duty cycle when the receiving speed is greater than or equal to the set speed.
  • the communication control device 400 may further include a detection termination module.
  • the detection termination module may be used to stop scanning the broadcast message sent by the broadcasting device if the mobile terminal is not continuously in motion, and terminate the step of detecting whether the mobile terminal is continuously in motion every specified time interval.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
  • the solution provided by this application scans the broadcast message sent by the broadcast device when it is detected that the mobile terminal changes from a stationary state to a moving state, and then detects whether the mobile terminal continues to be in a moving state every specified time interval.
  • the terminal continues to be in motion.
  • reduce the scanning speed sent by the broadcasting device The scanning duty cycle of the broadcast message, the scanning duty cycle is the ratio of the single scanning time to the scanning interval, so that when the mobile terminal is in motion, the scanning of the broadcast message is controlled, and the scanning duty cycle is dynamically adjusted to save mobile terminals Power consumption.
  • the mobile terminal 100 may be a mobile terminal capable of running applications, such as a smart phone, a tablet computer, or an e-book.
  • the mobile terminal 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs.
  • One or more application programs may be stored in the memory 120 and configured to be Or multiple processors 110 execute, and one or more programs are configured to execute the method described in the foregoing method embodiment.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts of the entire mobile terminal 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and calling data stored in the memory 120.
  • Various functions and processing data of the mobile terminal 100 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a modem.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • modem modem
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented by a communication chip alone.
  • the memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 120 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 120 may include a program storage area and a data storage area.
  • the program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions for implementing the following method embodiments, etc.
  • the data storage area can also store data (such as phone book, audio and video data, chat record data) created by the terminal 100 during use.
  • FIG. 10 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable medium 800 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 800 has storage space for the program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products.
  • the program code 810 may be compressed in a suitable form, for example.

Landscapes

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

Abstract

本申请公开了一种通信控制方法、装置、移动终端及存储介质,该通信控制方法应用于移动终端,该通信控制方法包括:当检测到所述移动终端由静止状态变为运动状态时,扫描广播设备发出的广播消息;每间隔指定时长检测所述移动终端是否继续处于运动状态;如果所述移动终端继续处于运动状态,获取所述移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度;在所述接收速度小于所述设定速度时,降低扫描广播设备发出的广播消息的扫描占空比,所述扫描占空比为单次扫描时间与扫描间隔的比值。本方法能降低移动终端扫描广播设备的广播消息时的功耗。

Description

通信控制方法、装置、移动终端及存储介质
相关申请的交叉引用
本申请要求于2019年2月1日提交的申请号为201910105373.8的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。
技术领域
本申请涉及移动终端技术领域,更具体地,涉及一种通信控制方法、装置、移动终端及存储介质。
背景技术
移动终端,例如手机、平板电脑等,已经成为人们日常生活中最常用的消费型电子产品之一。移动终端的使用普及给人们的生活带来了便利,通过使用移动终端上的各种应用,能够相应地进行各种业务,例如可以进行线下支付、开启门禁等。
随着低功耗蓝牙(Bluetooth Low Energy,BLE)、Wi-Fi Aware等无线通信技术的发展,越来越多的线下支付场景、门禁开启等应用场景可以基于上述无线通信技术进行。
发明内容
鉴于上述问题,本申请提出了一种通信控制方法、装置、移动终端及存储介质,以降低移动终端的功耗。
第一方面,本申请实施例提供了一种通信控制方法,应用于移动终端,所述方法包括:当检测到所述移动终端由静止状态变为运动状态时,扫描广播设备发出的广播消息;每间隔指定时长检测所述移动终端是否继续处于运动状态;如果所述移动终端继续处于运动状态,获取所述移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度;在所述接收速度小于所述设定速度时,降低扫描广播设备发出的广播消息的扫描占空比,所述扫描占空比为单次扫描时间与扫描间隔的比值。
第二方面,本申请实施例提供了一种通信控制装置,应用于移动终端,所述装置包括:广播扫描模块、状态检测模块、速度获取模块以及参数调整模块,其中,所述广播扫描模块用于当检测到所述移动终端由静止状态变为运动状态时,扫描广播设备发出的广播消息;所述状态检测模块用于每间隔指定时长检测所述移动终端是否继续处于运动状态;所述速度获取模块用于如果所述移动终端继续处于运动状态,获取所述移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度;所述参数调整模块用于在所述接收速度小于所述设定速度时,降低扫描广播设备发出的广播消息的扫描占空比,所述扫描占空比为单次扫描时间与扫描间隔的比值。
第三方面,本申请实施例提供了一种移动终端,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述第一方面提供的通信控制方法。
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的通信控制方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了一种适用于本申请实施例的应用场景的一种示意图。
图2示出了一种适用于本申请实施例的应用场景的另一种示意图。
图3示出了一种适用于本申请实施例的应用场景的又一种示意图。
图4示出了根据本申请一个实施例的通信控制方法流程图。
图5示出了根据本申请另一个实施例的通信控制方法流程图。
图6示出了根据本申请又一个实施例的通信控制方法流程图。
图7示出了根据本申请一个实施例的通信控制装置的一种框图。
图8示出了根据本申请一个实施例的通信控制装置中参数调整模块的框图。
图9是本申请实施例的用于执行根据本申请实施例的通信控制方法的移动终端的框图。
图10是本申请实施例的用于保存或者携带实现根据本申请实施例的通信控制方法的程序代码的存储单元。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
目前,随着低功耗蓝牙(Bluetooth Low Energy,BLE)、Wi-Fi Aware等无线通信技术的发展技术的发展,基于上述无线通信技术的应用越来越多,例如基于信标(Beacon)的线下支付场景、基于Beacon的门禁应用场景。在这些应用场景中,用户无需进行扫描二维码、通过应用程序的界面进行相应触控操作、或者用手机对准扫描设备等,仅需移动终端处于广播设备(例如支付设备、闸机等)的广播消息的辐射范围内,然后进行相关的身份信息验证(例如人脸信息验证、指纹信息验证等)即可实现线下支付、开启门禁等。
在上述基于上述无线通信技术的支付场景、门禁场景等应用场景中,广播设备(例如支付设备、门禁设备等)会发送广播消息,广播设备周围的终端对广播消息进行扫描,从而终端接收到广播消息后,可以根据广播消息进行相应的操作,完成线下支付、开启门禁等。由于此种方式无需用户于移动终端的界面进行扫码等操作,因此非常方便用户的使用,深受用户喜爱。
发明人经过长时间的研究发现,移动终端在使用上述无线通信方式进行线下支付、门禁开启等操作时,会长时间开启扫描模式,扫描广播设备发出的广播消息,使得频繁唤醒中央处理器(CPU,Central Processing Unit),而使系统功耗变高。针对上述问题,发明人经过长时间的研究并提出了本申请实施例提供的通信控制方法、装置、移动终端以及存储介质,根据移动终端的运动状态,动态调整对广播消息的扫描,从而节省移动终端的功耗。
下面对本申请实施例的通信控制方法的应用场景进行介绍。
请参阅图1,示出了本申请实施例提供的通信控制方法的应用场景图,该应用场景包括通信系统10,该通信系统10包括:移动终端100、广播设备200及服务器300。移动终端100与服务器300网络连接,广播设备200与服务器300网络连接。其中,移动终端100与服务器300可以通过无线连接方式连接,例如2G、3G、4G等移动网络数据连接或者wifi连接,广播设备200与服务器300通过有线方式或者无线方式连接。广播设备200 可以通过无线通信模式发送广播消息至移动终端100,其中,该无线通信模式包括蓝牙BLE模式或者Wi-Fi Aware模式。
其中,上述移动终端100可以是手机、平板电脑以及其他可以进行移动电子支付的智能设备,上述广播设备200可以为能够进行消息广播的智能设备,例如超市内的支付设备(例如收款机等),公共场所的闸机等设备。上述广播设备200的数量在本申请实施例中可以不作为限定,可以为1个,也可以为多个。广播设备200可以通过BLE、Wi-Fi Aware等通信方式发出广播消息,当移动终端100位于广播设备200的附近,进入到广播设备200的广播消息的辐射范围内时,可以接收到广播设备200发送的广播消息。移动终端100利用相应的通信方式扫描上述广播消息,从而接收到上述广播消息,并且利用广播消息与服务器300进行相应数据交互,进行身份验证等,从而完成线下支付、门禁开启等操作。
在一种线下支付的应用场景中,移动终端可以接收支付设备发出的广播消息,从广播消息中获取支付设备的设备标识(例如设备ID)等信息。并且服务器根据移动终端对应的支付账号和设备标识的绑定,进行相关身份信息验证后完成扣款,从而完成支付操作,进而也不需要用户操作移动终端,从而使得整个过程中,用户不需要手动进行支付操作。如图2所示,用户在选取商品后,携带移动终端100进入运动状态向支付设备210移动,此时移动终端100可以检测到其由静止状态进入移动状态并对支付设备210发出的广播消息进行扫描。如图3所示,在移动至支付设备210后,移动终端100可以根据从支付设备210接收的广播消息中,获取支付设备210的设备标识,并向服务器发送该设备标识以及移动终端100对应的支付账号,完成支付账号和设备标识的绑定,之后于支付设备210完成身份验证之后则可以完成支付操作。
下面对本申请实施例的通信控制方法进行详细介绍。
请参阅图4,本申请实施例提供了一种通信控制方法,可应用于移动终端,该通信控制方法可以包括:
步骤S110:当检测到所述移动终端由静止状态变为运动状态时,扫描广播设备发出的广播消息。
在本申请实施例中,移动终端可以对移动终端的运动状态进行实时检测,以根据移动终端是否处于运动状态,确定移动终端是否对广播设备发出的广播消息进行扫描。
当移动终端检测到由静止状态变为运动状态时,则可以开启扫描,以对广播设备发出的广播消息进行扫描。例如,开启BLE扫描,或者开启Wi-Fi Aware扫描,对广播设备发出的广播消息进行扫描。移动终端对广播设备发出的广播消息进行扫描,可以根据广播消息获取到广播设备的设备ID等信息,以便用于后续进行支付、开启门禁过程中的验证等过程。
可以理解的是,用户在使用移动终端利用BLE方式或者Wi-Fi Aware方式等方式进行支付、开启门禁等过程中,会携带移动终端进行移动,以移动至广播设备附件,使移动终端进入至广播设备的广播消息的辐射范围,进而可以扫描到广播设备发出的广播消息。因此,在移动终端的BLE或者Wi-Fi Aware开启的情况下,当检测出移动终端由静止状态变为运动状态时,可以开启移动终端的BLE扫描或者Wi-Fi Aware扫描,对广播设备发出的广播消息进行扫描,以接收到广播设备发出的广播消息,并利用广播消息完成后续的支付操作、开启门禁操作等。
而移动终端处于静止状态时,则移动终端的BLE扫描或者Wi-Fi Aware扫描处于关闭状态,即不对广播设备发出的广播消息进行扫描。也就是说,如果用户在使用移动终端进行支付或者开启门禁等过程中,移动终端处于静止状态时,则移动终端已经处于广播设备的广播消息的辐射范围内,移动终端已经扫描到广播设备的广播消息,并且已经接收到广播设备的广播消息中的设备ID等用于进行支付或者开启门禁过程的信 息,因此,移动终端的BLE扫描或者Wi-Fi Aware扫描处于关闭状态,避免移动终端长期处于通信扫描状态而频繁唤醒CPU,从而节省移动终端的功耗。
在本申请实施例中,移动终端可以通过运动传感器对其运动状态进行检测。其中,该运动传感器可以为移动终端处于熄屏状态时,仍可以正常工作的传感器,该运动传感器可以长期处于唤醒状态,并且可以唤醒手机的无线访问接入点(AP,Wireless Access Point)。也就是说,用户在使用移动终端过程中,可以使移动终端处于熄屏状态,并且上述运动传感器可以对移动终端的运动状态进行监测。具体的上述运动传感器可以不作为限定,例如可以是AMD运动检测传感器,又例如可以是motion_detect传感器等。
当然,具体检测移动终端的运动状态的方式在本申请实施例中可以不作为限定。
步骤S120:每间隔指定时长检测所述移动终端是否继续处于运动状态。
在检测到移动终端从静止状态变为运动状态时,开启移动终端的通信扫描,对广播设备发出的广播消息进行扫描。在扫描过程中,移动终端可以继续检测移动终端的运动状态,以动态控制移动终端的扫描状态,即动态控制移动终端对广播消息的扫描。
在一些实施方式中,移动终端可以每间隔指定时长检测移动终端是否继续处于运动状态。也就是说,移动终端在上述检测出由静止状态变为运动状态,从而开启扫描状态,对广播设备发出的广播消息进行扫描之后,可以在本次开启扫描状态对广播消息进行扫描的过程中,采用间隔指定时长对移动终端的运动状态进行检测的方式,检测移动终端的运动状态。以根据每次检测到的移动终端的运动状态,确定是否继续对广播设备发出的广播消息进行扫描。其中,指定时长的具体数值在本申请实施例中可以不作为限定,例如,指定时长可以为2秒(S),也可以为5S,也可以为10S等。作为一种实施方式,上述每间隔指定时长对移动终端的运动状态进行检测,可以采用alarm闹钟与计步传感器配合实现,也就是说,每次在alarm闹钟计时的一个周期(指定时长)后,获取计步传感器检测的步数,并根据步数确定移动终端是否处于运动状态。其中,如果计步传感器检测的步数大于设定步数,则确认移动终端处于运动状态;如果计步传感器检测的步数小于或等于设定步数,则确认移动终端不处于运动状态。设定步数的具体数值可以不作为限定,例如,可以为0,也可以为50等。
可以理解的是,在每次对移动终端的运动状态进行检测之后,则可以确定移动终端是否继续处于运动状态。也就是说,如果检测出移动终端处于运动状态,由于此前移动终端处于运动状态,因此可以确定移动终端继续处于运动状态,如果检测出移动终端处于静止状态,则可以确定移动终端未继续处于运动状态。
如果检测出移动终端继续处于运动状态,则表示用户扔携带移动终端处于移动中的状态,用户可能正携带移动终端进入至广播设备的广播消息的辐射范围内,因此可以继续开启移动终端的上述通信扫描,以扫描广播设备发出的广播消息。
而如果检测出移动终端未继续处于运动状态,则表示移动终端已经处于广播设备的广播消息的辐射范围内,移动终端已经扫描到广播设备的广播消息,并且可能获取到了广播消息中用于进行相关操作的信息,因此移动终端可以关闭上述通信扫描,避免移动终端长期处于通信扫描状态而频繁唤醒CPU,从而节省移动终端的功耗。
步骤S130:如果所述移动终端继续处于运动状态,获取所述移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度。
在本申请实施例中,在每间隔指定时长检测移动终端是否继续处于运动状态的过程中,在每次检测移动终端是否继续处于运动状态以后,如果检测出移动终端处于运动状态时,移动终端可以根据移动终端实际扫描广播设备的广播消息的情况,即根据移动终端附近的广播设备发出广播消息的情况,对扫描广播设备的广播消息的参数进行调整。
在一些实施方式中,移动终端可以在每次检测是否继续处于运动状态之后,可以获取移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度,以根据该接收速度,确定移动终端附近的广播设备发出的广播消息的数量。
可以理解的是,上述当前时间可以是移动终端在每次检测到其处于运动状态时的时间,例如,移动终端在T1时间检测到由静止状态变为运动状态,开始扫描广播设备发出的广播消息,在间隔指定时长后的T2时间,检测到移动终端继续处于运动状态,则当前时间为T2时间,也就是说,在T2时间获取T2时间前设定时间段内接收关闭设备发出的广播消息的接收速度。
在本申请实施例中,移动终端在上述当前时间处于运动状态,而当前时间之前也处于运动状态,移动终端在当前时间前处于开启上述通信扫描的过程,因此可以获取当前时间之前的设定时间段内接收到的广播消息的数量,并且根据该数量,计算出在上述设定时间段内接收广播消息的广播速度。
在计算出移动终端在上述设定时间段内接收广播设备发出的广播消息的接收速度之后,则该接收速度较小时,可以确定出在移动终端可以扫描到广播消息的范围内的广播设备较少,或者广播设备发出的广播消息的数量较少,因此目前移动终端不需要进行太多的扫描。而该接收速度较大时,可以确定出在移动终端可以扫描到的广播消息的范围内的广播设备较多,或者广播设备发出的广播消息的数量较多,因此目前移动终端可以进行较多的扫描,以接收较多的广播消息。
在本申请实施例中,上述设定时间段的具体数值可以不作为限定,例如,设定时间段可以为当前时间之前2S的时间段,也可以为当前时间之前10S时间段,也可以为当前时间之前20S的时间段等。
步骤S140:在所述接收速度小于所述设定速度时,降低扫描广播设备发出的广播消息的扫描占空比,所述扫描占空比为单次扫描时间与扫描间隔的比值。
在本申请实施例中,在获取到移动终端在上述设定时间段内接收广播设备发出的广播消息的接收速度之后,可以将该接收速度与设定速度进行比较,以确定出接收速度大于设定速度、接收速度小于设定速度、或者接受速度等于设定速度。其中,设定速度的具体数值可以不作为限定,例如,设定速度可以为50,也可以为100等。
在一些实施方式中,当接收速度小于设定速度时,则表示当前在移动终端可以扫描到广播消息的范围内的广播设备较少,或者广播设备发出的广播消息的数量较少,目前移动终端不需要进行太多的扫描,因此可以降低扫描广播设备发出的广播消息的扫描占空比。其中,扫描占空比为单次扫描时间与扫描间隔的比值,可以理解的是,移动终端在进行BLE扫描或者Wi-Fi Aware扫描时,会以一定的扫描频率进行扫描,则相邻的扫描之间会存在时间间隔,并且每次扫描有单次扫描时间。通过降低扫描广播设备的扫描占空比,即降低单次扫描时间或者提升扫描间隔(降低扫描频率),使得移动终端实际扫描的时间减小,从而降低移动终端的功耗。
在本申请实施例中,如果上述接收速度大于或者等于上述设定速度时,则表示当前处于移动终端可以扫描到广播消息的范围内的广播设备较多,或者广播设备发出的广播消息较多,因此,可以保持之前的扫描占空比或者提升扫描占空比,以保证广播消息的接收。
本申请实施例提供的通信控制方法,通过当前检测到移动终端由静止状态变为运动状态时,扫描广播设备发出的广播消息,并且在扫描过程中,每间隔指定时长监测移动终端是否继续处于运动状态,如果移动终端继续处于运动状态,则可以获取移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度,并且在接收速度小于设定速度时,降低扫描广播设备发出的广播消息 的扫描占空比,从而降低移动终端扫描的时间,节省移动终端的功耗。
请参阅图5,本申请另一个实施例提供了一种通信控制方法,可应用于移动终端,该通信控制方法可以包括:
步骤S210:当检测到所述移动终端由静止状态变为运动状态时,扫描广播设备发出的广播消息。
步骤S220:每间隔指定时长检测所述移动终端是否继续处于运动状态。
步骤S230:如果所述移动终端继续处于运动状态,获取所述移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度。
在本申请实施例中,步骤S210至步骤S230可以参阅上述实施例的内容,在此不再赘述。
步骤S240:在所述接收速度小于所述设定速度时,降低扫描广播设备发出的广播消息的扫描占空比,所述扫描占空比为单次扫描时间与扫描间隔的比值。
在本申请实施例中,在接收速度小于设定速度时,则表示当前在移动终端可以扫描到广播消息的范围内的广播设备较少,或者广播设备发出的广播消息的数量较少,目前移动终端不需要进行太多的扫描,因此可以降低扫描广播设备发出的广播消息的扫描占空比。
在一些实施方式中,上述降低扫描广播设备发出的广播消息的扫描占空比,可以包括:
降低扫描广播设备发出的广播消息的扫描频率;或者
减小扫描广播设备发出的广播消息的单次扫描时间。
可以理解的是,移动终端扫描广播设备发出的广播消息的扫描占空比为单次扫描时间与扫描间隔的比值,即扫描占空比由单次扫描时间以及扫描间隔确定。当扫描间隔固定时,移动终端扫描广播消息的单次扫描时间越小,则移动终端扫描广播消息的扫描占空比越小。当单次扫描时间固定时,移动终端扫描广播消息的扫描间隔越大,则移动终端扫描广播消息的扫描占空比越小。因此,可以在保持单次扫描时间不变的同时,降低移动终端扫描广播消息的扫描频率,即增大移动终端扫描广播消息的扫描间隔,从而降低移动终端扫描广播设备发出的广播消息的扫描占空比。也可以在保持移动终端扫描广播消息的扫描频率不变的同时,即保持移动终端扫描广播消息的扫描间隔不变的同时,降低移动终端扫描广播消息的单次扫描时间,从而降低移动终端扫描广播设备发出的广播消息的扫描占空比。
从而实现在移动终端无需进行太多的扫描时,通过降低扫描广播设备的扫描占空比,即降低单次扫描时间或者提升扫描间隔(降低扫描频率),使得移动终端实际扫描的时间减小,从而降低移动终端的功耗。
在一些实施方式中,在接收速度小于设定速度时,降低扫描广播设备发出的广播消息的扫描占空比,可以根据设定速度与接收速度的差值,确定扫描占空比需要降低的第一占空比,然后将扫描占空比降低该扫描占空比。
在该方式下,根据设定速度与接收速度的差值,确定扫描占空比需要降低的第一占空比,可以是根据预先设定的差值与需要降低的扫描占空比的关系,确定计算获得的差值所对应的占空比。其中,预先设定的差值与需要降低的扫描占空比的对应关系,可以是需要降低的扫描占空比与差值成正比的对应关系,也就是说,设定速度与接收速度的差值越大,则需要降低的扫描占空比越大。步骤S250:在所述接收速度大于或等于所述设定速度时,则增加所述扫描占空比。
在本申请实施例中,在上述接收速度大于或等于上述设定速度时,则表示当前移动终端附近可以扫描到的广播设备较多,或者广播设备发出的广播消息较多,因此,移动终端仍然需要较大扫描占空比,以接收广播设备发出的广播消息。在一些方式中, 移动终端可以增大扫描广播设备发出的广播消息的扫描占空比,即在保持单次扫描时间不变的同时,增大移动终端扫描广播消息的扫描频率,或者在保持移动终端扫描广播消息的扫描频率不变的同时,增大移动终端扫描广播消息的单次扫描时间,从而增大扫描占空比,以保证移动终端附近的广播设备发出的广播消息的接收。
在一些实施方式中,移动终端在判断出上述接收速度大于或者等于设定速度时,还可以将接收速度与前一次检测的接收速度进行比较,也就是说在扫描过程中,若本次检测的接收速度相比前一次检测的接收速度上升(本次检测的接收速度大于前一次检测的接收速度),则可以增加移动终端扫描广播消息的扫描占空比。其中,前一次检测的接收速度为扫描过程中前一次检测到移动终端继续处于运动状态时,检测到的接收速度。可以理解的,在扫描过程中,如果移动终端接收广播消息的接收速度上升,则表示移动终端附近的广播设备增多或者广播设备发出的广播消息的数量增加,因此可以增加扫描占空比,以保证广播设备发出的广播消息的接收。
若本次检测的接收速度相比前一次检测的接收速度下降或保持(即本次检测的接收速度小于或等于前一次检测的接收速度),则可以保持移动终端扫描广播消息的扫描占空比。可以理解的,在接收速度大于设定速度时,表示广播消息的接收速度仍处于较高水平,因此虽然本次检测的接收速度相比前一次检测的接收速度下降,但是仍需保持当前扫描占空比,以保证广播消息的接收。当然,也可以在接收速度下降时,对扫描占空比降低较低的值,达到节省功耗的效果。
步骤S260:如果所述移动终端未继续处于运动状态,则停止扫描广播设备发出的广播消息,且终止所述每间隔指定时长检测所述移动终端是否继续处于运动状态的步骤。
可以理解的是,如果检测出移动终端未继续处于运动状态,则表示移动终端已经处于广播设备的广播消息的辐射范围内,移动终端已经扫描到广播设备的广播消息,并且可能获取到了广播消息中用于进行相关操作的信息,因此移动终端可以停止上述通信扫描,即停止扫描广播设备发出的广播消息,避免移动终端长期处于通信扫描状态而频繁唤醒CPU,从而节省移动终端的功耗。
另外,由于移动终端停止了本次扫描过程,因此,可以终止步骤S220,即终止每间隔指定时长检测移动终端是否继续处于运动状态。
在终止上述每间隔指定时长检测移动终端是否继续处于运动状态之后,则可以按照步骤S210中对移动终端的运动状态进行实时检测,以根据移动终端是否处于运动状态,确定移动终端是否由静止状态进入到运动状态,然后对广播设备发出的广播消息进行扫描。
本申请实施例提供的通信控制方法,通过当前检测到移动终端由静止状态变为运动状态时,扫描广播设备发出的广播消息,并且在扫描过程中,每间隔指定时长监测移动终端是否继续处于运动状态,如果移动终端继续处于运动状态,则可以获取移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度,并且在接收速度小于设定速度时,降低扫描广播设备发出的广播消息的扫描占空比,在接收速度大于或等于设定速度时,增加扫描占空比。另外,在检测出移动终端未继续处于运动状态时,停止扫描并且终止间隔设定时长对运动状态的检测,从而降低移动终端扫描的时间,节省移动终端的功耗。
请参阅图6,本申请又一个实施例提供了一种通信控制方法,可应用于移动终端,该通信控制方法可以包括:
步骤S310:当检测到所述移动终端由静止状态变为运动状态时,扫描广播设备发出的广播消息。
步骤S320:每间隔指定时长检测所述移动终端是否继续处于运动状态。
步骤S330:如果所述移动终端继续处于运动状态,获取所述移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度。
在本申请实施例中,步骤S310至步骤S330可以参阅上述实施例的内容,在此不再赘述。
步骤S340:在所述接收速度小于所述设定速度时,判断所述接收速度是否大于速度阈值,其中,所述速度阈值小于所述设定速度。
在得到接收速度之后,可以将接收速度与设定速度比较,如果接收速度小于设定速度时,表示当前在移动终端可以扫描到广播消息的范围内的广播设备较少,或者广播设备发出的广播消息的数量较少,目前移动终端不需要进行太多的扫描。
在本申请实施例中,可以对设定速度进行进一步判断,以确定移动终端当前可以扫描到的广播设备发出的广播消息的数量是否低于目标水平,如果低于目标水平,则表示在移动终端可以扫描到广播消息的范围内的广播设备接近于0或等于0,或者表示广播设备发出的广播消息的数量接近于0或等于0。具体的,可以判断上述接收速度是否大于速度阈值,如果上述接收速度不大于(小于或等于)速度阈值,表示当前移动终端当前可以扫描到的广播设备发出的广播消息的数量低于目标水平,当前移动终端可能处于周围没有广播设备的区域或者广播设备没有发出广播消息的区域内;如果上述接收速度大于速度阈值,表示当前移动终端当前可用扫描到的广播设备发出的广播消息的数量仍高于目标水平,当前移动终端周围广播设备的数量较低但仍有一定的数量,或者广播设备发出的广播消息较低但仍有一定的数量。其中,速度阈值小于设定速度,速度阈值的具体数值可以不作为限定,例如速度阈值可以为20,也可以为0等。
步骤S350:如果所述接收速度大于所述速度阈值,则降低扫描广播设备发出的广播消息的扫描占空比。
在本申请实施例中,如果步骤S340判断出上述接收速度大于速度阈值时,表示当前移动终端仍处于周围广播设备有一定数量或者广播设备发出的广播消息有一定数量的范围内。此时虽然上述接收速度小于设定速度,移动终端仍然需要对广播消息进行扫描,但是需求移动终端进行扫描的次数无需太高,如果此时仍以此前的扫描占空比,对广播消息进行扫描,则会浪费较多能耗,因此移动终端可以降低扫描广播消息的扫描占空比。具体的,可以降低扫描广播消息的单次扫描时间或者增加扫描间隔(降低扫描频率),从而使实际扫描的时间减小,降低移动终端的功耗。
步骤S360:如果所述接收速度小于或等于所述速度阈值,则停止扫描广播设备发出的广播消息。
在本申请实施例中,如果步骤S340判断出接收速度小于或等于速度阈值,表示当前移动终端可能处于周围没有广播设备的区域或者广播设备没有发出广播消息的区域内。虽然移动终端处于移动状态中,但是移动终端在当前区域并没有接收到较多的广播消息,如果此时仍对广播消息进行扫描,则会浪费移动终端的能耗。因此,可以停止扫描广播设备发出的广播消息,降低移动终端的功耗。
步骤S370:在停止扫描的设定时长后,当再次检测到所述移动终端处于运动状态时,扫描广播设备发出的广播消息。
在上述停止扫描广播设备发出的广播消息之后,移动终端可以继续对移动终端的运动状态进行检测,如果再次检测到移动终端处于运动状态,则会执行扫描广播设备发出的广播消息,而此时虽然移动终端在运动,但是周围可能仍然没有广播设备发出广播消息或者发出的广播消息极少,因此可以继续保持停止扫描广播消息的状态,即关闭移动终端的BLE扫描或者Wi-Fi Aware扫描。
在一些实施方式中,可以在上述停止扫描的设定时长后,当检测到移动终端处于运动状态时,再对广播消息进行扫描。可以理解的是,由于停止扫描前检测到的设定 速度较低,即移动终端附近没有较多的广播设备,或者发出的广播消息较少,如果在停止扫描后,检测到运动状态就开启扫描,则会导致移动终端的能耗的浪费。因此,可以在设定时长后,当检测到运动状态时,再执行当移动终端处于运动状态,对广播设备发出的广播消息进行扫描,从而降低移动终端的功耗。
步骤S380:在所述接收速度大于或等于所述设定速度时,则增加所述扫描占空比。
步骤S390:如果所述移动终端未继续处于运动状态,则停止扫描广播设备发出的广播消息,且终止所述每间隔指定时长检测所述移动终端是否继续处于运动状态的步骤。
在本申请实施例中,步骤S380至步骤S390可以参阅上述实施例的内容,在此不再赘述。
本申请实施例提供的通信控制方法,通过当前检测到移动终端由静止状态变为运动状态时,扫描广播设备发出的广播消息,并且在扫描过程中,每间隔指定时长监测移动终端是否继续处于运动状态,如果移动终端继续处于运动状态,则可以获取移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度,并且在接收速度小于设定速度时,判断接收速度是否大于速度阈值,然后在接收速度大于速度阈值时,降低扫描广播设备发出的广播消息的扫描占空比。在接收速度小于或等于速度阈值时,停止扫描广播设备发出的广播消息。在接收速度大于或等于设定速度时,增加扫描占空比。另外,在检测出移动终端未继续处于运动状态时,停止扫描并且终止间隔设定时长对运动状态的检测,从而降低移动终端扫描的时间,节省移动终端的功耗。
请参阅图7,其示出了本申请实施例提供的一种通信控制装置400的结构框图,该通信控制装置400包括:广播扫描模块410、状态检测模块420、速度获取模块430以及参数调整模块440。其中,所述广播扫描模块410用于当检测到所述移动终端由静止状态变为运动状态时,扫描广播设备发出的广播消息;所述状态检测模块420用于每间隔指定时长检测所述移动终端是否继续处于运动状态;所述速度获取模块430用于如果所述移动终端继续处于运动状态,获取所述移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度;所述参数调整模块440用于在所述接收速度小于所述设定速度时,降低扫描广播设备发出的广播消息的扫描占空比,所述扫描占空比为单次扫描时间与扫描间隔的比值。
在本申请实施例中,请参见图8,上述参数调整模块440可以包括:速度判断单元441以及调整执行单元442。其中,速度判断单元441可以用于在所述接收速度小于所述设定速度时,判断所述接收速度是否大于速度阈值,其中,所述速度阈值小于所述设定速度;调整执行单元442可以用于如果所述接收速度大于所述速度阈值,则降低扫描广播设备发出的广播消息的扫描占空比。
进一步的,该通信控制装置400还可以包括:扫描停止模块。扫描停止模块用于如果所述接收速度小于或等于所述速度阈值,则停止扫描广播设备发出的广播消息。
进一步的,上述广播扫描模块410还用于在停止扫描的设定时长后,当再次检测到所述移动终端处于运动状态时,扫描广播设备发出的广播消息。
在本申请实施例中,上述参数调整模块440降低扫描广播设备发出的广播消息的扫描占空比,可以包括:降低扫描广播设备发出的广播消息的扫描频率;或者减小扫描广播设备发出的广播消息的单次扫描时间。
在本申请实施例中,该通信控制装置400还可以包括参数增加模块。参数增加模块可以用于在所述接收速度大于或等于所述设定速度时,则增加所述扫描占空比。
在本申请实施例中,该通信控制装置400还可以包括检测终止模块。检测终止模块可以用于如果所述移动终端未继续处于运动状态,则停止扫描广播设备发出的广播消 息,且终止所述每间隔指定时长检测所述移动终端是否继续处于运动状态的步骤。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
综上所述,本申请提供的方案,通过当检测到移动终端由静止状态变为运动状态时,扫描广播设备发出的广播消息,然后每间隔指定时长检测移动终端是否继续处于运动状态,如果移动终端继续处于运动状态,获取移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度,在接收速度小于设定速度时,降低扫描广播设备发出的广播消息的扫描占空比,扫描占空比为单次扫描时间与扫描间隔的比值,从而实现移动终端处于运动状态时,控制对广播消息的扫描,并且动态调整扫描占空比,节省移动终端的功耗。
请参考图9,其示出了本申请实施例提供的一种移动终端的结构框图。该移动终端100可以是智能手机、平板电脑、电子书等能够运行应用程序的移动终端。本申请中的移动终端100可以包括一个或多个如下部件:处理器110、存储器120以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。
处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个移动终端100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行移动终端100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
请参考图10,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计 算机程序产品中。程序代码810可以例如以适当形式进行压缩。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种通信控制方法,其特征在于,应用于移动终端,所述方法包括:
    当检测到所述移动终端由静止状态变为运动状态时,扫描广播设备发出的广播消息;
    每间隔指定时长检测所述移动终端是否继续处于运动状态;
    如果所述移动终端继续处于运动状态,获取所述移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度;
    在所述接收速度小于设定速度时,降低扫描广播设备发出的广播消息的扫描占空比,所述扫描占空比为单次扫描时间与扫描间隔的比值。
  2. 根据权利要求1所述的方法,其特征在于,所述在所述接收速度小于所述设定速度时,降低扫描广播设备发出的广播消息的扫描占空比,包括:
    在所述接收速度小于所述设定速度时,判断所述接收速度是否大于速度阈值,其中,所述速度阈值小于所述设定速度;
    如果所述接收速度大于所述速度阈值,则降低扫描广播设备发出的广播消息的扫描占空比。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    如果所述接收速度小于或等于所述速度阈值,则停止扫描广播设备发出的广播消息。
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:
    在停止扫描的设定时长后,当再次检测到所述移动终端处于运动状态时,扫描广播设备发出的广播消息。
  5. 根据权利要求1-3任一项所述的方法,其特征在于,所述降低扫描广播设备发出的广播消息的扫描占空比,包括:
    降低扫描广播设备发出的广播消息的扫描频率;或者
    减小扫描广播设备发出的广播消息的单次扫描时间。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,在如果所述移动终端继续处于运动状态,获取所述移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度之后,所述方法还包括:
    在所述接收速度大于或等于所述设定速度时,则增加所述扫描占空比。
  7. 根据权利要求1-5任一项所述的方法,其特征在于,在如果所述移动终端继续处于运动状态,获取所述移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度之后,所述方法还包括:
    在所述接收速度大于或等于所述设定速度时,保持所述扫描占空比。
  8. 根据权利要求1-5任一项所述的方法,其特征在于,在如果所述移动终端继续处于运动状态,获取所述移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度之后,所述方法还包括:
    在所述接收速度大于或等于所述设定速度时,将所述接收速度作为本次检测的接收速度,并将所述本次检测的接收速度与前一次检测到的接收速度进行比较;
    如果所述本次检测的接收速度大于所述前一次检测到的接收速度,增加所述扫描占空比。
  9. 根据权利要求8所述的方法,其特征在于,在将所述本次检测的接收速度与前一次检测到的接收速度进行比较之后,所述方法还包括:
    如果所述本次检测的接收速度小于或等于所述前一次检测到的接收速度,保持所 述扫描占空比。
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述在所述接收速度小于所述设定速度时,降低扫描广播设备发出的广播消息的扫描占空比,包括:
    在所述接收速度小于所述设定速度时,根据所述设定速度与所述接收速度的差值,确定所述扫描占空比需要降低的第一占空比;
    将所述扫描占空比降低所述第一占空比。
  11. 根据权利要求10所述的方法,其特征在于,所述根据所述设定速度与所述接收速度的差值,确定所述扫描占空比需要降低的第一占空比,包括:
    根据预先设定的差值与需要降低的扫描占空比的对应关系,确定所述设定速度与所述接收速度的差值对应的第一占空比。
  12. 根据权利要求11所述的方法,其特征在于,所述对应关系包括:
    需要降低的扫描占空比与差值成正比。
  13. 根据权利要求1-12任一项所述的方法,其特征在于,所述方法还包括:
    如果所述移动终端未继续处于运动状态,则停止扫描广播设备发出的广播消息,且终止所述每间隔指定时长检测所述移动终端是否继续处于运动状态的步骤。
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述移动终端包括运动传感器,在所述当检测到所述移动终端由静止状态变为运动状态时,扫描广播设备发出的广播消息之前,所述方法还包括:
    通过所述运动传感器在所述移动终端处于亮屏状态或者在熄屏状态下检测所述移动终端的运动状态。
  15. 根据权利要求14所述的方法,其特征在于,所述移动终端包括alarm闹钟以及计步传感器,所述每间隔指定时长检测所述移动终端是否继续处于运动状态,包括:
    通过每次在所述alarm闹钟计时的指定时长后,获取所述计步传感器检测的步数;
    根据所述步数,确定所述移动终端是否继续处于运动状态。
  16. 一种通信控制装置,其特征在于,应用于移动终端,所述装置包括:广播扫描模块、状态检测模块、速度获取模块以及参数调整模块,其中,
    所述广播扫描模块用于当检测到所述移动终端由静止状态变为运动状态时,扫描广播设备发出的广播消息;
    所述状态检测模块用于每间隔指定时长检测所述移动终端是否继续处于运动状态;
    所述速度获取模块用于如果所述移动终端继续处于运动状态,获取所述移动终端在当前时间之前保持运动状态过程中的设定时间段内接收广播设备发出的广播消息的接收速度;
    所述参数调整模块用于在所述接收速度小于设定速度时,降低扫描广播设备发出的广播消息的扫描占空比,所述扫描占空比为单次扫描时间与扫描间隔的比值。
  17. 根据权利要求16所述的控制装置,其特征在于,所述参数调整模块包括速度判断单元以及调整执行单元,其中,
    所述速度判断单元用于在所述接收速度小于所述设定速度时,判断所述接收速度是否大于速度阈值,其中,所述速度阈值小于所述设定速度;
    所述调整执行单元用于如果所述接收速度大于所述速度阈值,则降低扫描广播设备发出的广播消息的扫描占空比。
  18. 根据权利要求17所述的装置,其特征在于,所述装置还包括:扫描停止模块,所述扫描停止模块用于如果所述接收速度小于或等于所述速度阈值,则停止扫描广播设备发出的广播消息。
  19. 一种移动终端,其特征在于,包括:
    一个或多个处理器;
    存储器;
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-15任一项所述的方法。
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-15任一项所述的方法。
PCT/CN2020/072045 2019-02-01 2020-01-14 通信控制方法、装置、移动终端及存储介质 WO2020156151A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910105373.8A CN109618393B (zh) 2019-02-01 2019-02-01 通信控制方法、装置、移动终端及存储介质
CN201910105373.8 2019-02-01

Publications (1)

Publication Number Publication Date
WO2020156151A1 true WO2020156151A1 (zh) 2020-08-06

Family

ID=66019479

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/072045 WO2020156151A1 (zh) 2019-02-01 2020-01-14 通信控制方法、装置、移动终端及存储介质

Country Status (2)

Country Link
CN (1) CN109618393B (zh)
WO (1) WO2020156151A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618393B (zh) * 2019-02-01 2021-03-02 Oppo广东移动通信有限公司 通信控制方法、装置、移动终端及存储介质
CN112449412B (zh) * 2019-08-28 2024-01-05 阿里巴巴集团控股有限公司 设备唤醒方法以及执行该方法的相关设备
CN112469014A (zh) * 2019-09-06 2021-03-09 华为技术有限公司 配置蓝牙连接参数的方法和电子设备
CN111885494B (zh) * 2020-08-05 2021-07-23 深圳云里物里科技股份有限公司 一种社交距离告警方法、装置、设备及介质
CN112925404B (zh) * 2021-02-03 2024-01-26 蓝色创源(北京)科技有限公司 省电方法、装置、电子设备、存储介质及计算机设备
CN114363871B (zh) * 2021-05-14 2023-03-03 华为技术有限公司 一种无线连接的方法以及电子设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841624A (zh) * 2012-11-21 2014-06-04 华为终端有限公司 扫描无线网络的方法、设备及系统
CN104661181A (zh) * 2013-11-22 2015-05-27 富士通株式会社 终端设备、扫描方法以及信息处理系统
WO2018132001A1 (en) * 2017-01-10 2018-07-19 Sl Patent B.V. Flexible tamperproof suitcase locker
CN108605279A (zh) * 2016-02-04 2018-09-28 三星电子株式会社 一种用于在无线通信系统中控制扫描周期的方法和设备
CN108702583A (zh) * 2015-12-23 2018-10-23 英特尔公司 上下文驱动连接协议
US20180332369A1 (en) * 2017-05-15 2018-11-15 Fuji Xerox Co., Ltd. System and method for calibration-lessly compensating bias of sensors for localization and tracking
CN109618393A (zh) * 2019-02-01 2019-04-12 Oppo广东移动通信有限公司 通信控制方法、装置、移动终端及存储介质

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070147317A1 (en) * 2005-12-23 2007-06-28 Motorola, Inc. Method and system for providing differentiated network service in WLAN
US8427942B2 (en) * 2010-06-03 2013-04-23 Deutsche Telekom Ag Method, apparatus, and system for connecting a mobile client to wireless networks
US9204335B2 (en) * 2012-05-02 2015-12-01 Intel Corporation Wireless discovery using a reduced traffic load process
CN103458440B (zh) * 2013-08-29 2017-12-12 惠州Tcl移动通信有限公司 基于运动状态调整wifi扫描频率的方法和移动终端
US9414292B1 (en) * 2014-03-25 2016-08-09 Sprint Spectrum L.P. Controlling detection of an access node for wireless device communication
CN106507445B (zh) * 2016-12-07 2020-01-14 Oppo广东移动通信有限公司 一种无线保真Wi-Fi扫描方法及移动终端
CN107682825A (zh) * 2017-09-23 2018-02-09 广东欧珀移动通信有限公司 扫描频率控制方法及相关产品
CN107820302B (zh) * 2017-11-30 2021-01-26 Oppo广东移动通信有限公司 移动终端无线局域网扫描方法和装置、计算机设备
CN109195149B (zh) * 2018-08-20 2021-03-09 Oppo广东移动通信有限公司 Nan扫描调整方法及相关设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841624A (zh) * 2012-11-21 2014-06-04 华为终端有限公司 扫描无线网络的方法、设备及系统
CN104661181A (zh) * 2013-11-22 2015-05-27 富士通株式会社 终端设备、扫描方法以及信息处理系统
CN108702583A (zh) * 2015-12-23 2018-10-23 英特尔公司 上下文驱动连接协议
CN108605279A (zh) * 2016-02-04 2018-09-28 三星电子株式会社 一种用于在无线通信系统中控制扫描周期的方法和设备
WO2018132001A1 (en) * 2017-01-10 2018-07-19 Sl Patent B.V. Flexible tamperproof suitcase locker
US20180332369A1 (en) * 2017-05-15 2018-11-15 Fuji Xerox Co., Ltd. System and method for calibration-lessly compensating bias of sensors for localization and tracking
CN109618393A (zh) * 2019-02-01 2019-04-12 Oppo广东移动通信有限公司 通信控制方法、装置、移动终端及存储介质

Also Published As

Publication number Publication date
CN109618393A (zh) 2019-04-12
CN109618393B (zh) 2021-03-02

Similar Documents

Publication Publication Date Title
WO2020156151A1 (zh) 通信控制方法、装置、移动终端及存储介质
US11887557B2 (en) Method for image processing based on vertical synchronization signals and electronic device
JP6355735B2 (ja) 省エネルギーモードを開始するための方法及び装置
US20210243694A1 (en) Channel monitoring method and device
JP6343099B2 (ja) Mcuチップのウェイクアップ方法及び装置
CN106507445B (zh) 一种无线保真Wi-Fi扫描方法及移动终端
CN110268755B (zh) 非激活定时器超时处理方法及装置
JP2016538663A (ja) バックグラウンドアプリケーションを制御する方法および装置ならびに端末装置
JP2017537483A (ja) 電子デバイスを覚醒させる方法および装置
US20130194172A1 (en) Disabling automatic display shutoff function using face detection
CN107613087B (zh) 一种控制方法及移动终端
US20150138141A1 (en) Control method and control apparatus of electronic device, and electronic device
TW201939212A (zh) 設備的喚醒方法、裝置及電子設備
CN110262692A (zh) 一种触摸屏扫描方法、装置及介质
CN107070670A (zh) 控制广播发送者发送广播消息的方法、装置和终端设备
CN111479016A (zh) 终端使用时长提醒方法及装置、终端及存储介质
CN111290565A (zh) Doze模式的控制方法、装置、终端及存储介质
CN110636598A (zh) 终端省电的控制方法、装置、移动终端及存储介质
CN106603526B (zh) WiFi/热点的开启方法及装置
WO2015184822A1 (zh) 移动终端的省电方法及装置
CN106502740B (zh) 应用安装方法和装置
CN109511139B (zh) Wifi控制方法、装置、移动设备、计算机可读存储介质
US11805475B2 (en) Access control barring method and apparatus
CN115100699A (zh) 指纹解锁模组、方法及相关装置
CN113132535A (zh) 一种屏幕状态控制方法、装置、存储介质及移动终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20747945

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20747945

Country of ref document: EP

Kind code of ref document: A1