CN110072269A - Scan control method, device, mobile terminal and storage medium - Google Patents

Scan control method, device, mobile terminal and storage medium Download PDF

Info

Publication number
CN110072269A
CN110072269A CN201910258107.9A CN201910258107A CN110072269A CN 110072269 A CN110072269 A CN 110072269A CN 201910258107 A CN201910258107 A CN 201910258107A CN 110072269 A CN110072269 A CN 110072269A
Authority
CN
China
Prior art keywords
mobile terminal
scanning
broadcast message
broadcasting equipment
scan pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910258107.9A
Other languages
Chinese (zh)
Other versions
CN110072269B (en
Inventor
陈岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910258107.9A priority Critical patent/CN110072269B/en
Publication of CN110072269A publication Critical patent/CN110072269A/en
Application granted granted Critical
Publication of CN110072269B publication Critical patent/CN110072269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • 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

Landscapes

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

Abstract

This application discloses a kind of scan control method, device, mobile terminal and storage mediums, are related to technical field of mobile terminals.The described method includes: when the broadcast message that mobile terminal is issued with the scanning of the first scan pattern to broadcasting equipment, obtain the first scanning result, and it wakes up application processor and the first scanning result is handled, first scan pattern is switched to the second scan pattern, it is scanned with the broadcast message that the second scan pattern issues broadcasting equipment, obtain the second scanning result in predetermined period, application processor is waken up at interval of predetermined period to handle the second scanning result, and judge the broadcast message whether issued including broadcasting equipment in second scanning result, when in second scanning result not including the broadcast message of broadcasting equipment sending, second scan pattern is switched to the first scan pattern.The case where the application is according to the broadcast message of scanning, switching uses the first scan pattern and the second scan pattern, to reduce the power consumption of mobile terminal.

Description

Scan control method, device, mobile terminal and storage medium
Technical field
This application involves technical field of mobile terminals, eventually more particularly, to a kind of scan control method, device, movement End and storage medium.
Background technique
With the development of science and technology, payment technology has also obtained swift and violent development, brings greatly to people's lives Convenience.When pay under line by mobile terminal at present, generally requires user and pass through mobile scanning terminal businessman two dimensional code Or showing that two dimensional code is scanned for businessman by mobile terminal, payment process is relatively complicated, and user experience is bad.
Summary of the invention
In view of the above problems, present applicant proposes a kind of scan control method, device, mobile terminal and storage medium, To solve the above problems.
In a first aspect, the embodiment of the present application provides a kind of scan control method, it is applied to mobile terminal, it is described mobile whole End includes application processor, which comprises is issued when the mobile terminal is scanned with the first scan pattern to broadcasting equipment Broadcast message when, obtain the first scanning result, and wake up the application processor and first scanning result is handled; First scan pattern is switched to the second scan pattern;The broadcasting equipment is issued with second scan pattern wide It broadcasts message to be scanned, obtains the second scanning result in predetermined period;It is waken up at the application at interval of the predetermined period Whether reason device handles second scanning result, and judge in second scanning result to include that the broadcasting equipment is sent out Broadcast message out;When not including broadcast message that the broadcasting equipment issues in second scanning result, by described the Two scan patterns are switched to first scan pattern.
Second aspect, the embodiment of the present application provide a kind of scan controller, are applied to mobile terminal, described mobile whole End includes application processor, and described device includes: that the first scanning result obtains module, for sweeping when the mobile terminal with first When retouching the broadcast message that Mode scans are issued to broadcasting equipment, the first scanning result is obtained, and wake up the application processor pair First scanning result is handled;First mode switching module is swept for first scan pattern to be switched to second Retouch mode;Second scanning result obtains module, and the broadcast for being issued with second scan pattern to the broadcasting equipment disappears Breath is scanned, and obtains the second scanning result in predetermined period;Scanning result judgment module, at interval of the default week Phase wakes up the application processor and handles second scanning result, and judges whether wrap in second scanning result Include the broadcast message that the broadcasting equipment issues;Second mode switching module, for not including in second scanning result When the broadcast message that the broadcasting equipment issues, second scan pattern is switched to first scan pattern.
The third aspect, the embodiment of the present application provide a kind of mobile terminal, comprising: memory;Application processor;One or Multiple processors are coupled with the memory and the application processor respectively;One or more programs, wherein one Or multiple application programs are stored in the memory and are configured as being executed by one or more of processors, described one A or multiple programs are configured to carry out the above method.
Fourth aspect, the embodiment of the present application provides a kind of computer-readable storage medium, described computer-readable Program code is stored in storage medium, said program code can be called by processor and execute the above method.
Scan control method, device, mobile terminal and storage medium provided by the embodiments of the present application, when mobile terminal with When the broadcast message that the scanning of the first scan pattern is issued to broadcasting equipment, first scanning result is obtained, and is waken up using processing Device handles the first scanning result, the first scan pattern is switched to the second scan pattern, with the second scan pattern to this The broadcast message that broadcasting equipment issues is scanned, and is obtained the second scanning result in predetermined period, is called out at interval of predetermined period Whether the application processor of waking up handles the second scanning result, and judge in second scanning result to include that broadcasting equipment is sent out Broadcast message out, when in second scanning result not including the broadcast message of broadcasting equipment sending, by the second scan pattern It is switched to the first scan pattern, so that switching is swept using the first scan pattern and second the case where according to the broadcast message of scanning Mode is retouched, to reduce the power consumption of mobile terminal.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 shows the schematic diagram of the verifying system of scan control method provided by the embodiments of the present application;
Fig. 2 shows the schematic diagrames of payment verification provided by the embodiments of the present application;
Fig. 3 shows the schematic diagram of gate inhibition's verifying provided by the embodiments of the present application;
Fig. 4 shows the flow diagram of the scan control method of the application one embodiment offer;
Fig. 5 shows the flow diagram of the scan control method of another embodiment of the application offer;
Fig. 6 shows the module frame chart of scan controller provided by the embodiments of the present application;
Fig. 7 shows the embodiment of the present application for executing the mobile device of the scan control method according to the embodiment of the present application Block diagram;
Fig. 8 shows realizing for saving or carrying according to the scan control of the embodiment of the present application for the embodiment of the present application The storage unit of the program code of method.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described.
Currently, with channel radios such as Bluetooth Low Energy (Bluetooth Low Energy, BLE), WIFIWIFI Aware The development of letter technology, based on above-mentioned wireless communication technique using more and more, such as propped up under the line based on beacon (Beacon) Pay scene, the access control applications scene based on Beacon.In these application scenarios, user is without scanning the two-dimensional code, passing through application The interface of program carries out corresponding touch control operation or is directed at scanning device etc. with mobile phone, it is only necessary to which mobile terminal is in broadcasting equipment In the radiation scope of the broadcast message of (such as payment devices, gate equipment, access control equipment etc.), relevant identity letter is then carried out Breath verifying (such as face information verifying, finger print information verifying etc.), which can be realized, to be paid under line, opens gate, opening gate etc., The use of very convenient user, therefore be greatly favored by consumers.In the payment scene based on above-mentioned wireless communication technique, gate field In the application scenarios such as scape, gate inhibition's scene, broadcasting equipment (such as payment devices, gate equipment, broadcasting equipment etc.) can send broadcast Message, the mobile terminal around broadcasting equipment are scanned broadcast message, thus after mobile terminal receives broadcast message, it can To carry out corresponding operation according to broadcast message, complete payment under line, open gate, opening gate etc..
Referring to Fig. 1, Fig. 1 shows the schematic diagram of the verifying system of scan control method provided by the embodiments of the present application. It wherein, include mobile terminal 100, broadcasting equipment 200 and server 300 in the system that Fig. 1 is related to.Wherein, mobile terminal 100 It can be mobile phone or tablet computer etc., the account number that user binds in advance is stored in the mobile terminal 100.The broadcasting equipment 200 for acquiring the authentication information of user and being transferred to server 300, and server 300 is used for according to the certification letter received Breath completes verification operation.
In system operation, broadcasting equipment 200 can be sent with the wireless communications mode of setting and be broadcast the message, In, the coverage area of broadcast message transmitted by the virtual coil characterization broadcasting equipment 200 in Fig. 1 around broadcasting equipment 200.It is optional , which includes bluetooth BLE mode or WIFIWIFI Aware mode.Correspondingly, mobile terminal 100 can be with With the wireless signal near the wireless communications mode search of setting, thus when mobile terminal 100 enters dotted line shown in Fig. 1 When enclosing in range, so that it may receive the broadcast message of the transmission of broadcasting equipment 200.
It is mobile after the broadcast message that mobile terminal 100 can receive the transmission of broadcasting equipment 200 as a kind of mode Terminal 100 can be established based on currently employed wireless communications mode with broadcasting equipment 200 and is wirelessly connected, and then establish nothing After line connection, mobile terminal 100 can get setting for unique identification's broadcasting equipment from the data that broadcasting equipment stores Standby mark.And alternatively mode, for the ease of reducing the power consumption of mobile terminal 100, broadcasting equipment 200 can be at oneself The device identification of oneself is carried in the broadcast message of transmission, so that mobile terminal 100 is receiving the transmission of broadcasting equipment 200 Broadcast message after, can from broadcast message 200 in get send the broadcast message broadcasting equipment 200 device identification.
Optionally, mobile terminal 100 can pass through mobile communication after the device identification for getting broadcasting equipment 200 The account number of acquired device identification and oneself storage is sent server 300 by the base station 310 of network and gateway 311. Furthermore the account number of device identification and oneself storage that mobile terminal 100 can also be will acquire by hotspot 320 is sent to Server 300.And after server 300 receives the device identification and account number of the transmission of mobile terminal 100, it will be by the equipment Mark and account number are bound, to characterize the owning user of account number near the affiliated broadcasting equipment 200 of the device identification. In turn, when broadcasting equipment 200 is in verification process, after sending server 300 for the authentication information of acquisition, server 300 can To complete account in the case where the device identification of the corresponding account number of authentication verification information and the broadcasting equipment 200 is bound Verification operation.
Specifically, by taking payment verification as an example, as shown in Fig. 2, because mobile terminal 100 can pass through 200 institute of broadcasting equipment The broadcast message of transmission and the device identification for getting broadcasting equipment 200 carry out mobile terminal so that not needing user Operate (for example, mobile terminal can be placed in trouser pocket always in figure), mobile terminal 100 can complete payment account with The bindings of the device identification of broadcasting equipment 200.And in payment process, user only needs to acquire at broadcasting equipment 200 After authentication information, broadcasting equipment 200 can send the authentication information of acquisition to server 300 and complete payment, and then also not User's operation mobile terminal is needed, so that user does not need to carry out delivery operation manually in whole process.
By taking gate inhibition verifies as an example, as shown in figure 3, because mobile terminal 100 can be by wide transmitted by broadcasting equipment 200 It broadcasts message and gets the device identification of broadcasting equipment 200, (example is operated to mobile terminal so that not needing user Such as, mobile terminal can be placed in trouser pocket always in figure), mobile terminal 100 can complete user account number and set with broadcast The upload verifying of standby 200 device identification.And in gate inhibition's verification process, user, which only needs to acquire at broadcasting equipment 200, to be recognized After demonstrate,proving information, broadcasting equipment 200 can send the authentication information of acquisition to server 300 and complete matching verifying, Jin Erye User's operation mobile terminal is not needed, so that user does not need to carry out gate inhibition's verification operation manually in whole process.
But inventor has found by long-term research, with based on Bluetooth Low Energy BLE and WIFIWIFI Aware skill The fast development of art, the type and quantity of the broadcasting equipment based on Bluetooth Low Energy BLE technology or WIFIWIFI Aware technology It is more and more, correspondingly, mobile terminal can receive always the broadcast message that multiple broadcasting equipments are sent, so as to cause mobile terminal A large amount of data packet is received, frequently to wake up the application processor of mobile terminal, leads to the power consumption and junk information of mobile terminal Increase, in order to solve the problems, such as that the application processor of mobile terminal is awakened as frequently as those utilized in conventional solutions, inventor's discovery be can be set using processing The wake-up period of device, still, the wake-up period that application processor is arranged will lead to, when not receiving data packet in wake-up period Application processor can be still waken up, the power consumption for also resulting in mobile terminal increases.In view of the above-mentioned problems, inventors herein proposing this Shen Please the embodiment scan control method, device, mobile terminal and the storage medium that provide, by according to the broadcast message of scanning Situation, switching uses the first scan pattern and the second scan pattern, to reduce the power consumption of mobile terminal.Wherein, specific scanning Control method is described in detail in subsequent embodiment.
Referring to Fig. 4, Fig. 4 shows the flow diagram of the scan control method of the application one embodiment offer.It should Scan control method is used for the case where broadcast message according to scanning, and switching uses the first scan pattern and the second scan pattern, To reduce the power consumption of mobile terminal.In the particular embodiment, the scan control method is controlled applied to scanning as shown in FIG. 6 Device 400 processed and mobile terminal 100 (Fig. 7) configured with the scan controller 400.To be with mobile terminal below Example, illustrates the detailed process of the present embodiment, it will of course be understood that, mobile terminal applied by the present embodiment can be intelligence Mobile phone, tablet computer, wearable electronic equipment etc. do not do specific restriction herein, wherein the mobile terminal includes application processing Device.It will be explained in detail below for process shown in Fig. 4, the scan control method can specifically include following step It is rapid:
Step S101: when the broadcast message that the mobile terminal is issued with the scanning of the first scan pattern to broadcasting equipment, The first scanning result is obtained, and wakes up the application processor and first scanning result is handled.
In the present embodiment, broadcasting equipment can be sent out based on blue low-power consumption tooth BLE mode or based on WIFI Aware mode It broadcasts the message out.By taking Bluetooth Low Energy BLE as an example, broadcasting equipment can be in the process for issuing broadcast message with bluetooth BLE mode In, the device identification of the unique identification broadcasting equipment is carried in the specific fields of the data packet issued, it is possible to understand that, it should It is medium that device identification can add prefix, suffix or word in specific fields, it is not limited here.
Disappear correspondingly, mobile terminal can also carry out broadcast based on Bluetooth Low Energy BLE mode or WIFI Aware mode The scanning of breath to scan the broadcast message for receiving broadcasting equipment and issuing by Bluetooth Low Energy BLE, or receives broadcasting equipment and leads to The broadcast message of WIFI Aware sending is crossed, so that mobile terminal can obtain entrained be somebody's turn to do from the broadcast message received The device identification of broadcasting equipment.For example, if the scanning that mobile terminal is broadcast the message by Bluetooth Low Energy BLE mode, and When scanning the broadcast message that the broadcasting equipment is issued based on Bluetooth Low Energy BLE mode, then broadcast message can be corresponded to Data packet parsed, to obtain the device identification carried in the data packet.
It broadcasts the message it should be noted that if broadcasting equipment is sent with WIFIWIFI Aware mode, then, which sets The standby device identification that can also broadcast oneself in a similar manner, is obtained in a similar manner correspondingly, mobile terminal can also be adopted The equipment mark mark of broadcasting equipment is got, details are not described herein.
Further, in order to avoid the device identification that broadcasting equipment issues is intercepted and captured by other illegality equipments, as a kind of side Formula, broadcasting equipment can be encrypted device identification during generating the data packet of broadcast message, so that Even if other illegality equipments can get broadcast message by illegal means, but also can only obtain the equipment after encryption Mark, i.e., can not directly acquire the device identification, so as to improve the safety of broadcasting equipment.
In addition, in one case, if the data for thering are other illegal users to crack the broadcast message that broadcasting equipment is sent After the format of packet, broadcasting equipment transmission broadcast can be imitated by other illegal electronic equipments for having access server and is disappeared Breath, even if so that user is not currently in the coverage area of the wireless signal of legal broadcasting equipment, illegal electronic equipment Still the device identification of the user identifier of user and some broadcasting equipment can be sent to server, to indicate that server carries out Verifying, and broadcasting equipment is opened when being proved to be successful, and then security risk is caused to user.
As a kind of improvement above problem mode, broadcasting equipment can disappear during generating broadcast message in broadcast Specific field is added in the data packet of breath for storing specified mark, which is for identifying the broadcast message It is no to be sent by legal broadcasting equipment.In this manner, it when mobile terminal receives broadcast message, identifies received wide Whether broadcast has specified mark in message;It, will be received if having specified mark in the received broadcast message of identification Broadcast message is determined as broadcast message transmitted by broadcasting equipment, obtains the broadcast from the broadcast message that broadcasting equipment is sent The device identification of equipment.
Furthermore the specified mark can also dynamically be updated, to further promote the safety of broadcast message Property.For example, the corresponding specified mark of each broadcasting equipment can be stored in the server, and can be regularly to institute The specified mark of each broadcasting equipment of storage is updated, and when server to the specified mark of some broadcasting equipment more After new, updated specified mark can be pushed to corresponding broadcasting equipment, so that the broadcasting equipment will be updated specified Mark be written in the broadcast message of generation.It is corresponding, when mobile terminal upon receiving the broadcast message, can will parse Specified mark is sent to server and is verified, receive server return in the case where being verified, can will just connect The device identification that the device identification of the broadcasting equipment carried in the broadcast message received is sent as legal broadcasting equipment.
It should be noted that the included specified mark of broadcast message can for fixed configurations and dynamic update this In the case of two kinds, as a kind of mode, mobile terminal can determine currently according to the format of the specified mark parsed Specified mark in received broadcast message is fixed configurations, or can dynamically update, and then according to determining finger The configuration mode of fixed mark determines subsequent verification mode.For example, the specified mark of fixed configurations can be set with word Accord with " G " beginning, and can set the specified mark of dynamic configuration with character " D " beginning, and then mobile terminal can according to from The first character of the specified mark parsed in broadcast message determines its configuration mode.In addition, different broadcasting equipments It can be identified respectively using different specified marks, for example, G1, G2, G3......., certainly, different broadcast are set It is standby to be identified using identical specified mark, for example, all legal broadcasting equipments are identified with G0, It is not limited here.
Specifically, mobile terminal in the case where determining specified mark is fixed configurations, can directly pass through mobile whole Whether the format for the specified mark that end verifying is parsed meets specified rule to be verified, and when mobile terminal is true Surely in the case that specified mark is dynamic configuration, mobile terminal can send server for the specified mark, to service Device is verified according to the specified mark of latest configuration.So make to be sent out even if different broadcasting equipments through the above way In the case that the configuration mode of specified mark in the broadcast message sent is different, mobile terminal can be flexibly adapted to, And then improve the adaptation ability between mobile terminal and different broadcasting equipments.
Further, mobile terminal is previously provided with the first scan pattern, then the mobile terminal is opened in broadcast scan service After dynamic, the broadcast message that can be issued based on first scan pattern to broadcasting equipment is scanned, wherein the first scanning mould Formula is real-time report mode, i.e., broadcasts the message when mobile terminal is issued in scanning to broadcasting equipment, such as broadcasting equipment is arrived in scanning When the beacon data packet of sending, then the application processor of mobile terminal can be waken up immediately, if user is constantly in broadcast and sets When in standby transmitting range, then the application processor of the mobile terminal can be constantly in wake-up states.As a kind of mode, work as shifting When the broadcast message that dynamic terminal is issued with the scanning of the first scan pattern to broadcasting equipment, the first scanning result is obtained, it is possible to understand that , which includes at least the broadcast message that the broadcasting equipment issues, correspondingly, mobile terminal wakes up its application Processor handles the first scanning result, is paid, is opened the door for example, waking up application processor and responding the first scanning result Deng operation, it is not limited here.
Step S102: first scan pattern is switched to the second scan pattern.
In the present embodiment, it is scanned each to when broadcasting the message due to the first scan pattern, can wake up mobile terminal Application processor, also, when mobile terminal is in the transmitting range of broadcasting equipment, then the application processor of mobile terminal It can be waken up always, to will increase the power consumption of mobile terminal, shorten the cruising ability of mobile terminal, user experience is bad.Make For a kind of enforceable mode, determining that mobile terminal scans the broadcast message issued to broadcasting equipment with the first scan pattern Afterwards, the first scan pattern can be switched to the second scan pattern, wherein after the completion of second scan pattern can be preset It is stored in mobile terminal local, and in the broadcast message for determining that mobile terminal is issued with the scanning of the first scan pattern to broadcasting equipment Afterwards, second scan pattern is locally obtained from mobile terminal, and the first scan pattern is switched to the second scan pattern as shifting The Current Scan mode of dynamic terminal.
Wherein, which can report mode for batch processing, i.e., when mobile scanning terminal to broadcasting equipment is sent out Broadcast message out will not wake up movement such as when the beacon data packet that mobile scanning terminal to broadcasting equipment issues at once The application processor of terminal, but the broadcasting equipment in designated time period is sent out to can just wake up application processor after specified time Broadcast message out carries out batch processing, for example, waking up application processor response scanning result the operation such as is paid, is opened the door, It is not limited here.As a kind of mode, mobile terminal may include BLE firmware, then mobile terminal can be every specified Period reports scanning result to application processor by BLE firmware, and wake up the application processor to scanning result into Row processing, therefore, even if mobile terminal is in the transmitting range of broadcasting equipment, which can also be not required to locate always Extend the cruising ability of mobile terminal in wake-up states so as to reduce the power consumption of mobile terminal, to promote user experience.
Step S103: being scanned with the broadcast message that second scan pattern issues the broadcasting equipment, is obtained The second scanning result in predetermined period.
As a kind of mode, after the first scan pattern is switched to the second scan pattern, mobile terminal can continue with The broadcast message that second scan pattern issues broadcasting equipment is scanned, wherein the broadcasting equipment may include a broadcast Equipment also may include multiple and different broadcasting equipments, it is not limited here.In the present embodiment, when mobile terminal is with second After the broadcast message that scan pattern issues broadcasting equipment is scanned, scanning result in available predetermined period is denoted as Second scanning result, it is possible to understand that, because the second scan pattern is batch processing scan pattern, i.e., it can wake up and answer by predetermined period The second scanning result is handled with processor, therefore, mobile terminal can cache the second scanning knot in the predetermined period Fruit, and the second scanning result of caching is reported into application processor at the end of predetermined period.As a kind of mode, this is default Period can be arranged, in addition, the predetermined period can preset completion automatically by user's manual setting by mobile terminal After be stored in mobile terminal local, server is stored in after the completion of can presetting and by network transmission to mobile terminal, Further, which can be set as fixed value, also can be set as dynamic value, it is not limited here.
Step S104: at interval of the predetermined period wake up the application processor to second scanning result at Reason, and judge the broadcast message whether issued including the broadcasting equipment in second scanning result.
In the present embodiment, in the process being scanned with the second scan pattern to the broadcast message that broadcasting equipment issues In, application processor being waken up at interval of predetermined period, the second scanning result is handled, it at the same time, can be to second Whether content included by scanning result is detected, to judge in second scanning result to include what the broadcasting equipment issued Broadcast message.
Specifically, as a kind of mode, can in the second scanning result the broadcast message that issues of broadcasting equipment into Line flag, then mobile terminal can judge in second scanning result whether include label by way of judge that this second is swept Whether retouch in result includes broadcast message that the broadcasting equipment issues, it is possible to understand that, when including in second scanning result When label, the broadcast message issued in second scanning result including the broadcasting equipment can be determined, when the second scanning knot When not including label in fruit, it can determine do not include broadcast message that the broadcasting equipment issues in second scanning result.Its In, it, can be by multiple broadcast when the broadcast message that the broadcasting equipment for including in second scanning result issues is multiple Message carries out identical label, for example, label is X ", multiple broadcast messages can also be carried out to different labels, for example, It is successively labeled as " X1 ", " X2 ", " X3 " ..., it is not limited here.
Alternatively, it when the broadcast message that mobile scanning terminal to broadcasting equipment issues, can will broadcast the message Temporary cache then includes data in the second scanning result, that is to say, that and the second scanning result is non-empty, and when mobile terminal does not have When the broadcast message for thering is scanning to issue to broadcasting equipment, then cache information will not be generated, then not include number in the second scanning result According to, that is to say, that the second scanning result is sky.Therefore, after obtaining the second scanning result, it can be determined that second scanning result Whether include inside data, that is, judges whether second scanning result is " sky ", when determining in second scanning result including data, When determining that second scanning result is " non-empty ", it can determine in second scanning result including broadcasting equipment sending Broadcast message, can be true when determining that second scanning result is " sky " when determining that in second scanning result do not include data It does not include the broadcast message that the broadcasting equipment issues in fixed second scanning result.It will of course be understood that, it can also use Other more modes judge the broadcast message whether issued including the broadcasting equipment in second scanning result, herein no longer It repeats.
Step S105: when in second scanning result not including the broadcast message of the broadcasting equipment sending, by institute It states the second scan pattern and is switched to first scan pattern.
It in the present embodiment, does not include the broadcast of the broadcasting equipment sending in the second scanning result when determining that result characterizes When message, it is characterized in mobile terminal in predetermined period and illustrates mobile whole without scanning the broadcast message issued to broadcasting equipment End has had been moved off in the transmitting range of broadcasting equipment, therefore, the second scan pattern can be switched to the first scan pattern, with It reduces the power consumption of mobile terminal, extend the cruising ability of mobile terminal, promote user experience.
Specifically, because the second scan pattern can periodically be waken up application processor by predetermined period, i.e., regardless of the The broadcast message whether issued including the broadcasting equipment in two scanning results, can periodically wake up application processor, because This, the environment where mobile terminal does not have the emission source of broadcasting equipment, i.e. mobile terminal does not scan broadcasting equipment sending When broadcast message, application processor still can be periodically waken up, so that the power consumption of mobile terminal is caused to increase, therefore, as A kind of mode when can not include the broadcast message that the broadcasting equipment issues in the second scanning result, scans mould for second Formula is switched to the first scan pattern, it is possible to understand that, the first scan pattern is real time scan mode, i.e. the first scan pattern is being swept Application processor is waken up when retouching the broadcast message of broadcasting equipment sending, and is disappeared in no scanning to the broadcast that broadcasting equipment issues It will not wake up application processor when breath, therefore, broadcasting equipment sending do not scanned with the second scan pattern in mobile terminal When broadcast message, the second scan pattern is switched to the first scan pattern, the power consumption of mobile terminal can be reduced.
It certainly, can be with when scanning to broadcasting equipment the broadcast message issued again with the first scan pattern when mobile terminal The first scan pattern is switched into the second scan pattern again, and the S101- step S105 that repeats the above steps, details are not described herein.
Scan control method, device, mobile terminal and the storage medium that the application one embodiment provides, when mobile whole When the broadcast message that end is issued with the scanning of the first scan pattern to broadcasting equipment, first scanning result is obtained, and wake up application Processor handles the first scanning result, the first scan pattern is switched to the second scan pattern, with the second scan pattern The broadcast message issued to the broadcasting equipment is scanned, and the second scanning result in predetermined period is obtained, at interval of default week Whether the phase wakes up the application processor and handles the second scanning result, and judge in second scanning result to include described wide The broadcast message for broadcasting equipment sending will when in second scanning result not including the broadcast message of the broadcasting equipment sending Second scan pattern is switched to the first scan pattern, so that switching uses the first scanning the case where according to the broadcast message of scanning Mode and the second scan pattern, to reduce the power consumption of mobile terminal.
Referring to Fig. 5, Fig. 5 shows the flow diagram of the scan control method of another embodiment of the application offer. This method is applied to above-mentioned mobile terminal, which includes application processor and screen, will be directed to stream shown in fig. 5 below Journey is explained in detail, and the scan control method can specifically include following steps:
Step S201: it when detecting that the mobile terminal becomes motion state from stationary state, controls described mobile whole The broadcast message that the broadcasting equipment issues is scanned with first scan pattern in end.
In the present embodiment, the motion state of mobile terminal can be measured in real time, with according to mobile terminal whether It is kept in motion, it is determined whether the broadcast message that control mobile terminal issues broadcasting equipment is scanned.As a kind of side Formula can control mobile terminal and swept with the first scan pattern when detecting mobile terminal by stationary state varying motion state Retouch the broadcast message of broadcasting equipment sending.
It is understood that user using mobile terminal in the way of BLE or in the way of WIFI Aware etc. in the way of into During row payment, opening gate etc., mobile terminal can be carried and moved, to be moved near broadcasting equipment, made mobile whole End enters to the radiation scope of the broadcast message of broadcasting equipment, and then can scan the broadcast message of broadcasting equipment sending.Cause This can open BLE scanning or the WIFI of mobile terminal when detecting mobile terminal by stationary state varying motion state Aware scanning, to broadcasting equipment issue broadcast message be scanned, with receive broadcasting equipment sending broadcast message when, Subsequent delivery operation, opening gate operation etc. are completed using broadcast message.
And mobile terminal is when remaining static, then the BLE scanning or WIFI Aware scanning of mobile terminal are in closing Closed state, i.e., the broadcast message not issued to broadcasting equipment are scanned.That is, if user using mobile terminal into During row payment or opening gate etc., mobile terminal remains static, then mobile terminal has been in broadcasting equipment In the radiation scope of broadcast message, mobile terminal has scanned the broadcast message of broadcasting equipment, and broadcast has been received Device id in the broadcast message of equipment etc. is used to carry out the information of payment or opening gate process, therefore, mobile terminal BLE scanning or WIFI Aware scanning are in close state, and avoid mobile terminal from being chronically at communication scanner state and frequent Application processor is waken up, to save the power consumption of mobile terminal.
In the embodiment of the present application, mobile terminal can detect its motion state by motion sensor.Wherein, The motion sensor can for mobile terminal be in put out screen state when, the sensor that still can work normally, the motion sensor Wake-up states can be chronically at, and the application processor of mobile phone can be waken up.That is, user is using mobile terminal In the process, mobile terminal can be made to be in and put out screen state, and above-mentioned motion sensor can be to the motion state of mobile terminal It is monitored.Specifically, above-mentioned motion sensor can be not as restriction, such as can be AMD motion detection sensor, and example It such as can be motion_detect sensor.
Certainly, specifically the mode of the motion state of detection mobile terminal in the embodiment of the present application can be not as restriction.
Step S202: when the mobile terminal scans the broadcast issued to the broadcasting equipment with first scan pattern When message, the current state of the screen is detected.
In the present embodiment, mobile terminal further includes screen.Then when mobile terminal is scanned with the first scan pattern to broadcast When the broadcast message that equipment issues, the current state of the screen can also be detected.
As a kind of mode, the present intensity of screen can be detected, it is possible to understand that, due to working as mobile terminal The present intensity of screen may change in real time, therefore, in order to promote the standard that the present intensity of screen of mobile terminal detects True property, can be with the present intensity of the screen of mobile terminal described in real-time detection.Wherein, the present intensity of the screen of mobile terminal can To be specific brightness value, for example, the present intensity of the screen of the mobile terminal can be 50 nits, it can be 80 nits Deng;The present intensity of the screen of the mobile terminal is also possible to ratio, for example, the screen intensity of the present intensity is 50%, it can be 80% etc., wherein 50% refers to the present intensity of the screen of mobile terminal for the 50% of maximum brightness, 80% The present intensity for indicating the screen of mobile terminal is the 80% of maximum brightness.Therefore, the screen of detection mobile terminal can be passed through The mode of present intensity detect the current state of the screen, when the brightness value or brightness ratio of the screen for detecting the mobile terminal When example is non-zero, it can determine that the current state of the screen of the mobile terminal is bright screen state;When the screen for detecting the mobile terminal When the brightness value or brightness ratio of curtain are 0, it can determine that the current state of the screen of the mobile terminal is to put out screen state.
Alternatively, it state value can detect corresponding to the screen to mobile terminal, wherein work as movement When the screen of terminal is in bright screen state, then the screen of the mobile terminal can be with corresponding states value " 1 ", when the screen of mobile terminal In when putting out screen state, then the screen of the mobile terminal can be with corresponding states value " 0 ", therefore, can be by detecting movement end The mode of state value corresponding to the screen at end detects the current state of the screen of the mobile terminal, it is possible to understand that, work as inspection When the corresponding state value of screen for measuring the mobile terminal is " 1 ", it can determine that the current state of the screen of the mobile terminal is Bright screen state;When the corresponding state value of the screen for detecting the mobile terminal is " 0 ", the screen of the mobile terminal can be determined Current state be put out screen state.
Step S203: when the current state of the screen is to put out screen state, the first scanning result is obtained, and described in wake-up Application processor handles first scanning result.
As a kind of mode, when the current state that testing result characterizes the screen of the mobile terminal is to put out screen state, Under normal circumstances, mobile terminal is both placed in packet or in pocket, i.e., the application processor of mobile terminal is in non-wake-up states, Therefore, available first scanning result, and wake up the application processor and the first scanning result is handled, meet user and exists The verification process that mobile terminal can complete payment, open the door is not taken out.
Step S204: when the current state of the screen is bright screen state, detect whether the mobile terminal is in WIFI connection status.
As a kind of mode, when the current state that testing result characterizes the screen of the mobile terminal is bright screen state, Under normal circumstances, mobile terminal can use WIFI network, for example, mobile terminal may use the WIFI network of 2.4GHZ, And when mobile terminal scans by BLE mode the broadcast message that broadcasting equipment is issued by Bluetooth Low Energy BLE, can equally it account for Therefore it necessarily will cause the influence to WIFI rate with the network of 2.4GHZ, for example, causing WIFI to handle up mobile terminal The influence of rate, and then the experience for influencing user's online, game etc..Therefore, in the present embodiment, when testing result characterizes the shifting When the current state of the screen of dynamic terminal is bright screen state, it can detecte whether the mobile terminal is in WIFI connection status, example Such as, when detecting that mobile terminal is carried out data transmission by WIFI, it can determine that the mobile terminal is in WIFI connection status.
Step S205: when the mobile terminal is in the WIFI connection status, the WIFI of the mobile terminal is obtained Rate.
Further, when mobile terminal is in WIFI connection status, the WIFI of the mobile terminal can further be obtained Rate, wherein the WIFI rate of the mobile terminal can be tested the speed software realization by WIFI, can also be passed through and be calculated a period of time Interior changes in flow rate calculates, and specifically, obtains total flow g0 of the mobile terminal at the t0 moment, obtains mobile terminal at the t1 moment Total flow g1, wherein the t1 moment be the t0 moment after a time point, then WIFI rate be g1-g0/t1-t0, wherein T1-t0 is usually fixed constant, such as t1-t0=2s, then can not have 2s to calculate a WIFI rate.
Step S206: when the WIFI rate of the mobile terminal is greater than rate-valve value, the mobile scanning terminal is reduced The scanning duty ratio for the broadcast message that the broadcasting equipment issues, the scanning duty ratio are single sweep operation time and sweep spacing Ratio.
In the present embodiment, acquisition for mobile terminal rate-valve value, wherein the rate-valve value can by user's manual setting, It can be arranged automatically by mobile terminal or be transmitted to mobile terminal after being provided with by server, in addition, the rate-valve value It can be previously provided with and be stored in mobile terminal local, server is stored in after can also presetting, it is not limited here.Make It can be by the WIFI rate and rate-valve value of the mobile terminal after obtaining the WIFI rate of the mobile terminal for a kind of mode It is compared, to judge whether the WIFI rate of the mobile terminal is greater than rate-valve value, wherein when the WIFI speed of the mobile terminal When rate is greater than rate-valve value, it is believed that mobile terminal is just in high speed access WIFI network, such as is watching video, playing games Deng therefore, in order to not influence the usage experience of user, the broadcast message of mobile scanning terminal broadcasting equipment sending can be reduced Scan duty ratio, wherein the scanning duty ratio is the ratio of single sweep operation time and sweep spacing.It is understood that mobile Terminal can be scanned with certain scan frequency when carrying out BLE scanning mode, then can have the time between adjacent scanning Interval, and scanning has the single sweep operation time every time.By reducing the scanning duty ratio of scanning broadcasting equipment, i.e. reduction single is swept It retouches the time or promotes sweep spacing (reducing scan frequency), so that the time of mobile terminal actual scanning reduces, to reduce The scanning of mobile terminal occupies the time of 2.4GHZ antenna, reduces influence of the scanning to WIFI rate.
Step S207: the WIFI rate of the mobile terminal is monitored.
Further, after the scanning duty ratio for reducing the broadcast message that broadcasting equipment described in mobile scanning terminal issues, It keeps the broadcast message issued with the scanning duty ratio after reducing to broadcasting equipment to be scanned, and monitors the mobile terminal WIFI rate, wherein the WIFI rate of the mobile terminal can be monitored in real time, can be spaced at preset timed intervals and monitor movement end The WIFI rate at end can also monitor the WIFI rate of the mobile terminal, it is not limited here in the way of user setting.
Step S208: when the WIFI rate of the mobile terminal is less than the rate-valve value, restore the mobile terminal Scan the scanning duty ratio for the broadcast message that the broadcasting equipment issues.
Wherein, when the WIFI rate for monitoring the mobile terminal is less than rate-valve value, characterization mobile terminal is not used High speed WIFI network, i.e. mobile terminal watch video not over WIFI network, play games, therefore, normal by BLE mode The broadcast message that scanning broadcasting equipment issues will not influence experience of the user to watching video, playing games etc., therefore, as one kind Mode can restore the scanning duty ratio of the broadcast message of mobile scanning terminal broadcasting equipment sending.
Step S209: first scan pattern is switched to the second scan pattern.
Step S210: being scanned with the broadcast message that second scan pattern issues the broadcasting equipment, is obtained The second scanning result in predetermined period.
Step S211: at interval of the predetermined period wake up the application processor to second scanning result at Reason, and judge the broadcast message whether issued including the broadcasting equipment in second scanning result.
Wherein, the specific descriptions of step S309- step S211 please refer to step S102- step S104, and details are not described herein.
Step S212: when in second scanning result not including the broadcast message of the broadcasting equipment sending, detection The status information of the mobile terminal.
Step S213: when the status information for detecting the mobile terminal is motion state, by the second scanning mould Formula is switched to first scan pattern.
As a kind of mode, when determining does not include the broadcast message of the broadcasting equipment sending in the second scanning result, It can detecte the status information of the mobile terminal, wherein when the status information for detecting mobile terminal is motion state, then control Mobile terminal processed continues starting scan service function, and the second scan pattern is switched to the first scan pattern;It is moved when detecting It when the status information of dynamic terminal is stationary state, then controls mobile terminal and closes scan service function, is i.e. control mobile terminal stops The only broadcast message that scanning broadcasting equipment issues.
The scan control method that another embodiment of the application provides is transported when detecting that mobile terminal is changed by stationary state When dynamic state, the broadcast message that mobile terminal is issued with the first scan pattern scanning broadcasting equipment is controlled.When mobile terminal is with When the broadcast message that one scanning Mode scans are issued to broadcasting equipment, the current state of screen is detected, when the current shape of the screen State is when putting out screen state, to obtain the first scanning result, and wake up application processor and handle the first scanning result, work as screen Current state be bright screen state when, detection mobile terminal whether be in WIFI connection status, when mobile terminal be in WIFI company When connecing state, the WIFI rate of mobile terminal is obtained, when the WIFI rate of mobile terminal is greater than rate-valve value, is reduced mobile whole End scanning broadcasting equipment issue broadcast message scanning duty ratio, wherein the scanning duty ratio be the single sweep operation time with sweep The ratio for retouching interval time monitors the WIFI rate of mobile terminal, extensive when the WIFI rate of mobile terminal is less than rate-valve value The scanning duty ratio for the broadcast message that the multiple mobile scanning terminal broadcasting equipment issues.First scan pattern is switched to second to sweep Mode is retouched, is scanned with the broadcast message that the second scan pattern issues broadcasting equipment, second obtained in predetermined period is swept It retouches and the second scanning result is handled as a result, waking up the application processor at interval of predetermined period, and judge second scanning It as a result whether include broadcast message that the broadcasting equipment issues in, when not including the broadcasting equipment in second scanning result When the broadcast message of sending, the status information of mobile terminal is detected, when the status information for detecting mobile terminal is motion state When, the second scan pattern is switched to the first scan pattern.Compared to scan control method shown in Fig. 4, the present embodiment also exists It detects that controlling mobile terminal when mobile terminal becomes motion state from stationary state starts to scan, is static shape in mobile terminal Mobile terminal is controlled when state and stops scanning, the applicability of mobile scanning terminal is promoted, in addition, putting out screen according to the screen of mobile terminal When reduce the number that is waken up of application processor, save power consumption, and in the bright screen of the screen of mobile terminal and higher WIFI rate, The duty ratio of scanning is reduced, user experience is promoted.
Referring to Fig. 6, Fig. 6 shows the module frame chart of scan controller 400 provided by the embodiments of the present application.The scanning Control device 400 is applied to above-mentioned mobile terminal, which includes application processor.It will be directed to frame shown in fig. 6 below Figure is illustrated, and the scan controller 400 includes: that the first scanning result obtains module 410, first mode switching module 420, the second scanning result obtains module 430, scanning result judgment module 440 and second mode switching module 450, in which:
First scanning result obtains module 410, for being set with the scanning of the first scan pattern to broadcast when the mobile terminal Preparation go out broadcast message when, obtain the first scanning result, and wake up the application processor to first scanning result into Row processing.Further, it includes: current state detection sub-module, the first scanning knot that first scanning result, which obtains module 410, Fruit acquisition submodule, WIFI connection status detection sub-module, WIFI rate acquisition submodule, scanning duty ratio reduce submodule, WIFI rate monitors submodule and scanning duty ratio restores submodule, in which:
Current state detection sub-module, for being scanned with first scan pattern to the broadcast when the mobile terminal When the broadcast message that equipment issues, the current state of the screen is detected.
First scanning result acquisition submodule, for obtaining first when the current state of the screen is to put out screen state Scanning result, and wake up the application processor and first scanning result is handled.
WIFI connection status detection sub-module, for when the current state of the screen is bright screen state, described in detection Whether mobile terminal is in WIFI connection status.
WIFI rate acquisition submodule is used for when the mobile terminal is in the WIFI connection status, described in acquisition The WIFI rate of mobile terminal.
Scanning duty ratio reduces submodule, for reducing when the WIFI rate of the mobile terminal is greater than rate-valve value The scanning duty ratio for the broadcast message that broadcasting equipment described in the mobile scanning terminal issues, the scanning duty ratio are swept for single Retouch the ratio of time and sweep spacing.
WIFI rate monitors submodule, for monitoring the WIFI rate of the mobile terminal.
Scan duty ratio restore submodule, for when the WIFI rate of the mobile terminal be less than the rate-valve value when, Restore the scanning duty ratio of the broadcast message of the sending of broadcasting equipment described in the mobile scanning terminal.
First mode switching module 420, for first scan pattern to be switched to the second scan pattern.
Second scanning result obtains module 430, wide for being issued with second scan pattern to the broadcasting equipment It broadcasts message to be scanned, obtains the second scanning result in predetermined period.
Scanning result judgment module 440, for waking up the application processor to described the at interval of the predetermined period Two scanning results are handled, and judge that the broadcast whether issued including the broadcasting equipment in second scanning result disappears Breath.
Second mode switching module 450, for not including what the broadcasting equipment issued in second scanning result When broadcast message, second scan pattern is switched to first scan pattern.Further, the second mode switching Module 450 includes: status information detection sub-module and scan pattern switching submodule, in which:
Status information detection sub-module does not include the wide of the broadcasting equipment sending in second scanning result for working as When broadcasting message, the status information of the mobile terminal is detected.
Scan pattern switching submodule, for inciting somebody to action when the status information for detecting the mobile terminal is motion state Second scan pattern is switched to first scan pattern.
Further, the scan controller 400 further include: scan control module, in which:
Scan control module, for controlling institute when detecting that the mobile terminal becomes motion state from stationary state It states mobile terminal and the broadcast message that the broadcasting equipment issues is scanned with first scan pattern.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description device and The specific work process of module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, the mutual coupling of module can be electrical property, mechanical or other The coupling of form.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
Referring to Fig. 7, it illustrates a kind of structural block diagrams of mobile terminal 100 provided by the embodiments of the present application.The movement Terminal 100, which can be smart phone, tablet computer, e-book etc., can run the electronic equipment of application program.In the application Mobile terminal 100 may include one or more such as lower component: processor 110, memory 120, application processor 130, screen 140 and one or more application program, wherein one or more application programs can be stored in memory 120 and be matched It is set to and is executed by one or more processors 110, one or more programs are configured to carry out preceding method embodiment such as and are retouched The method stated.
Wherein, processor 110 may include one or more processing core.Processor 110 utilizes various interfaces and route The various pieces in entire mobile terminal 100 are connected, by running or executing the instruction being stored in memory 120, program, generation Code collection or instruction set, and the data being stored in memory 120 are called, execute the various functions and processing of mobile terminal 100 Data.Optionally, processor 110 can be using Digital Signal Processing (Digital Signal Processing, DSP), scene Programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) at least one of example, in hardware realize.Processor 110 can integrating central processor (Central Processing Unit, CPU), in graphics processor (Graphics Processing Unit, GPU) and modem etc. One or more of combinations.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible for Show the rendering and drafting of content;Modem is for handling wireless communication.It is understood that above-mentioned modem It can not be integrated into processor 110, be realized separately through one piece of communication chip.
Memory 120 may include random access memory (Random Access Memory, RAM), also may include read-only Memory (Read-Only Memory).Memory 120 can be used for store instruction, program, code, code set or instruction set.It deposits Reservoir 120 may include storing program area and storage data area, wherein the finger that storing program area can store for realizing operating system Enable, for realizing at least one function instruction (such as touch function, sound-playing function, image player function etc.), be used for Realize the instruction etc. of following each embodiments of the method.Storage data area can also store the number that terminal 100 is created in use According to (such as phone directory, audio, video data, chat record data) etc..
Further, the screen 140 can be liquid crystal display (Liqu identifies Crystal Display, LCD), can Think Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) etc..The screen 130 for show by The information of user's input is supplied to the information of user and the various graphical user interface of the mobile terminal, these figures are used Family interface can be made of figure, text, icon, number, video and any combination thereof.
Referring to Fig. 8, it illustrates a kind of structural block diagrams of computer readable storage medium provided by the embodiments of the present application. Program code is stored in the computer-readable medium 500, said program code can be called by processor and execute above method reality Apply method described in example.
Computer readable storage medium 500 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory), The electronic memory of EPROM, hard disk or ROM etc.Optionally, computer readable storage medium 500 includes non-volatile meter Calculation machine readable medium (non-transitory computer-readable storage medium).Computer-readable storage Medium 500 has the memory space for the program code 510 for executing any method and step in the above method.These program codes can With from reading or be written in one or more computer program product in this one or more computer program product. Program code 510 can for example be compressed in a suitable form.
In conclusion scan control method provided by the embodiments of the present application, device, mobile terminal and storage medium, when When the broadcast message that mobile terminal is issued with the scanning of the first scan pattern to broadcasting equipment, first scanning result is obtained, and call out Application processor of waking up handles the first scanning result, and the first scan pattern is switched to the second scan pattern, is swept with second It retouches the broadcast message that mode issues the broadcasting equipment to be scanned, obtains the second scanning result in predetermined period, at interval of Predetermined period wakes up the application processor and handles the second scanning result, and judge in second scanning result whether include The broadcast message that the broadcasting equipment issues, when the broadcast message in second scanning result not including the broadcasting equipment sending When, the second scan pattern is switched to the first scan pattern, so that switching uses first the case where according to the broadcast message of scanning Scan pattern and the second scan pattern, to reduce the power consumption of mobile terminal.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (10)

1. a kind of scan control method, which is characterized in that it is applied to mobile terminal, the mobile terminal includes application processor, The described method includes:
When the broadcast message that the mobile terminal is issued with the scanning of the first scan pattern to broadcasting equipment, the first scanning knot is obtained Fruit, and wake up the application processor and first scanning result is handled;
First scan pattern is switched to the second scan pattern;
It is scanned with the broadcast message that second scan pattern issues the broadcasting equipment, obtains the in predetermined period Two scanning results;
It wakes up the application processor at interval of the predetermined period to handle second scanning result, and described in judgement The broadcast message whether issued including the broadcasting equipment in second scanning result;
When in second scanning result not including the broadcast message of the broadcasting equipment sending, by second scan pattern It is switched to first scan pattern.
2. the method according to claim 1, wherein the mobile terminal is scanned with the first scan pattern to broadcast The broadcast message that equipment issues includes: that the broadcasting equipment passes through the Bluetooth Low Energy BLE broadcast message issued or the broadcast The broadcast message that equipment is issued by WIFI Aware.
3. described to work as the shifting according to the method described in claim 2, it is characterized in that, the mobile terminal further includes screen When the broadcast message that dynamic terminal is issued with the scanning of the first scan pattern to broadcasting equipment, the first scanning result is obtained, and wake up institute Application processor is stated to handle first scanning result, comprising:
When the broadcast message that the mobile terminal is issued with first scan pattern scanning to the broadcasting equipment, institute is detected State the current state of screen;
When the current state of the screen is to put out screen state, the first scanning result is obtained, and wake up the application processor pair First scanning result is handled.
4. according to the method described in claim 3, it is characterized in that, when the mobile terminal is scanned with first scan pattern When the broadcast message issued to the broadcasting equipment is the broadcast message that the broadcasting equipment is issued by Bluetooth Low Energy BLE, The method also includes:
When the current state of the screen is bright screen state, detect whether the mobile terminal is in WIFI connection status;
When the mobile terminal is in the WIFI connection status, the WIFI rate of the mobile terminal is obtained;
When the WIFI rate of the mobile terminal is greater than rate-valve value, the hair of broadcasting equipment described in the mobile scanning terminal is reduced The scanning duty ratio of broadcast message out, the scanning duty ratio are the ratio of single sweep operation time and sweep spacing.
5. according to the method described in claim 4, it is characterized in that, described when the WIFI rate of the mobile terminal is greater than rate When threshold value, after the scanning duty ratio for reducing the broadcast message of the sending of broadcasting equipment described in the mobile scanning terminal, further includes:
Monitor the WIFI rate of the mobile terminal;
When the WIFI rate of the mobile terminal is less than the rate-valve value, restores broadcast described in the mobile scanning terminal and set The scanning duty ratio for the broadcast message that preparation goes out.
6. method according to claim 1-5, which is characterized in that described when the mobile terminal is with the first scanning When the broadcast message that Mode scans are issued to broadcasting equipment, the first scanning result is obtained, and wake up the application processor to institute It states before the first scanning result handled, further includes:
When detecting that the mobile terminal becomes motion state from stationary state, controls the mobile terminal and swept with described first Retouch the broadcast message of the sending of broadcasting equipment described in Mode scans.
7. according to the method described in claim 6, it is characterized in that, described does not include described wide in second scanning result When broadcasting the broadcast message of equipment sending, second scan pattern is switched to first scan pattern, comprising:
When in second scanning result not including the broadcast message of the broadcasting equipment sending, the mobile terminal is detected Status information;
When the status information for detecting the mobile terminal is motion state, second scan pattern is switched to described the One scan pattern.
8. a kind of scan controller, which is characterized in that it is applied to mobile terminal, the mobile terminal includes application processor, Described device includes:
First scanning result obtains module, for what is issued with the scanning of the first scan pattern to broadcasting equipment when the mobile terminal When broadcast message, the first scanning result is obtained, and wake up the application processor and handle first scanning result;
First mode switching module, for first scan pattern to be switched to the second scan pattern;
Second scanning result obtains module, the broadcast message for being issued with second scan pattern to the broadcasting equipment into Row scanning, obtains the second scanning result in predetermined period;
Scanning result judgment module ties second scanning for waking up the application processor at interval of the predetermined period Fruit is handled, and judges the broadcast message whether issued including the broadcasting equipment in second scanning result;
Second mode switching module, for when the broadcast message in second scanning result not including the broadcasting equipment sending When, second scan pattern is switched to first scan pattern.
9. a kind of mobile terminal characterized by comprising
Memory;
Application processor;
One or more processors are coupled with the memory and the application processor respectively;
One or more programs, wherein one or more of application programs are stored in the memory and are configured as It is executed by one or more of processors, one or more of programs are configured to carry out such as any one of claim 1-7 The method.
10. a kind of computer-readable storage medium, which is characterized in that be stored with journey in the computer-readable storage medium Sequence code, said program code can be called by processor and execute the method according to claim 1 to 7.
CN201910258107.9A 2019-04-01 2019-04-01 Scanning control method, device, mobile terminal and storage medium Active CN110072269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910258107.9A CN110072269B (en) 2019-04-01 2019-04-01 Scanning control method, device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910258107.9A CN110072269B (en) 2019-04-01 2019-04-01 Scanning control method, device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110072269A true CN110072269A (en) 2019-07-30
CN110072269B CN110072269B (en) 2021-06-22

Family

ID=67366787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910258107.9A Active CN110072269B (en) 2019-04-01 2019-04-01 Scanning control method, device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110072269B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111092631A (en) * 2019-12-31 2020-05-01 成都麦杰康科技有限公司 433M communication system for realizing low power consumption
CN112449412A (en) * 2019-08-28 2021-03-05 阿里巴巴集团控股有限公司 Device wake-up method and related device for executing the method
WO2022068670A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 Method for touching to establish wireless connection between devices, electronic device, and chip

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100103844A1 (en) * 2008-10-27 2010-04-29 Samsung Electronics Co., Ltd. Method for connecting to wireless LAN access point and apparatus using the same
CN102090116A (en) * 2008-07-11 2011-06-08 马维尔国际贸易有限公司 Partial power save mode for access points during device discovery
CN102547920A (en) * 2011-01-07 2012-07-04 美商威睿电通公司 Communication method, access network device, and communication device using the same and communication system
CN102711226A (en) * 2012-05-23 2012-10-03 中兴通讯股份有限公司 Method and device for scanning WIFI (wireless fidelity) access point
CN103458440A (en) * 2013-08-29 2013-12-18 惠州Tcl移动通信有限公司 Method and mobile terminal for adjusting WIFI scanning frequency based on motion state
CN103597883A (en) * 2011-04-18 2014-02-19 马维尔国际贸易有限公司 Reducing power consumption in an wireless communication system
US20140073252A1 (en) * 2012-03-13 2014-03-13 Samsung Electronics Co., Ltd. Information providing method and mobile terminal therefor
CN103813414A (en) * 2012-11-15 2014-05-21 中兴通讯股份有限公司 Mobile terminal Wi-Fi application and control method and mobile terminal
CN104125623A (en) * 2013-04-28 2014-10-29 华为技术有限公司 Wireless local area network discovery method, controller, user equipment and network access equipment
CN105049416A (en) * 2015-06-15 2015-11-11 小米科技有限责任公司 Method and apparatus for accessing to wifi network
CN105096112A (en) * 2014-04-29 2015-11-25 上海奇虎科技有限公司 Short-distance payment method and system and server
CN105898705A (en) * 2016-06-24 2016-08-24 维沃移动通信有限公司 Method for controlling scanning frequency of wireless local area network and mobile terminal
US20160373296A1 (en) * 2012-12-17 2016-12-22 Samsung Electronics Co., Ltd. System and method of controlling surrounding devices, based on topology
US20170230902A1 (en) * 2016-02-04 2017-08-10 Samsung Electronics Co., Ltd. Method and apparatus for controlling scan period in wireless communication system
US20170245198A1 (en) * 2016-02-19 2017-08-24 Lg Electronics Inc. Mobile terminal and method for controlling the same
WO2018000134A1 (en) * 2016-06-27 2018-01-04 华为技术有限公司 Bluetooth connection method and terminal
US20180242339A1 (en) * 2017-02-17 2018-08-23 Avago Technologies General Ip (Singapore) Pte. Ltd. Scalable coexistence scheme for wlan operation with multiple periodic bt connections
CN109348431A (en) * 2018-11-14 2019-02-15 Oppo广东移动通信有限公司 Bluetooth scan method, device, equipment and storage medium
CN109548115A (en) * 2018-11-14 2019-03-29 Oppo广东移动通信有限公司 Bluetooth scan method, device, terminal and storage medium

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102090116A (en) * 2008-07-11 2011-06-08 马维尔国际贸易有限公司 Partial power save mode for access points during device discovery
US20100103844A1 (en) * 2008-10-27 2010-04-29 Samsung Electronics Co., Ltd. Method for connecting to wireless LAN access point and apparatus using the same
CN102547920A (en) * 2011-01-07 2012-07-04 美商威睿电通公司 Communication method, access network device, and communication device using the same and communication system
CN103597883A (en) * 2011-04-18 2014-02-19 马维尔国际贸易有限公司 Reducing power consumption in an wireless communication system
US20140073252A1 (en) * 2012-03-13 2014-03-13 Samsung Electronics Co., Ltd. Information providing method and mobile terminal therefor
CN102711226A (en) * 2012-05-23 2012-10-03 中兴通讯股份有限公司 Method and device for scanning WIFI (wireless fidelity) access point
CN103813414A (en) * 2012-11-15 2014-05-21 中兴通讯股份有限公司 Mobile terminal Wi-Fi application and control method and mobile terminal
US20160373296A1 (en) * 2012-12-17 2016-12-22 Samsung Electronics Co., Ltd. System and method of controlling surrounding devices, based on topology
CN104125623A (en) * 2013-04-28 2014-10-29 华为技术有限公司 Wireless local area network discovery method, controller, user equipment and network access equipment
CN103458440A (en) * 2013-08-29 2013-12-18 惠州Tcl移动通信有限公司 Method and mobile terminal for adjusting WIFI scanning frequency based on motion state
CN105096112A (en) * 2014-04-29 2015-11-25 上海奇虎科技有限公司 Short-distance payment method and system and server
CN105049416A (en) * 2015-06-15 2015-11-11 小米科技有限责任公司 Method and apparatus for accessing to wifi network
US20170230902A1 (en) * 2016-02-04 2017-08-10 Samsung Electronics Co., Ltd. Method and apparatus for controlling scan period in wireless communication system
CN108605279A (en) * 2016-02-04 2018-09-28 三星电子株式会社 A kind of method and apparatus for controlling the scan period in a wireless communication system
US20170245198A1 (en) * 2016-02-19 2017-08-24 Lg Electronics Inc. Mobile terminal and method for controlling the same
CN105898705A (en) * 2016-06-24 2016-08-24 维沃移动通信有限公司 Method for controlling scanning frequency of wireless local area network and mobile terminal
WO2018000134A1 (en) * 2016-06-27 2018-01-04 华为技术有限公司 Bluetooth connection method and terminal
US20180242339A1 (en) * 2017-02-17 2018-08-23 Avago Technologies General Ip (Singapore) Pte. Ltd. Scalable coexistence scheme for wlan operation with multiple periodic bt connections
CN109348431A (en) * 2018-11-14 2019-02-15 Oppo广东移动通信有限公司 Bluetooth scan method, device, equipment and storage medium
CN109548115A (en) * 2018-11-14 2019-03-29 Oppo广东移动通信有限公司 Bluetooth scan method, device, terminal and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JUHEON YI; WEIPING SUN; JONGHOE KOO; SEONGHO BYEON; JAEHYUK CHOI: "BlueScan: Boosting Wi-Fi Scanning Efficiency Using Bluetooth Radio", 《2018 15TH ANNUAL IEEE INTERNATIONAL CONFERENCE ON SENSING, COMMUNICATION, AND NETWORKING (SECON)》 *
NOBUHIRO KAJIKAWA; YUYA MINAMI; EITARO KOHNO; YOSHIAKI KAKUDA: "On Availability and Energy Consumption of the Fast Connection Establishment Method by Using Bluetooth Classic and Bluetooth Low Energy", 《 2016 FOURTH INTERNATIONAL SYMPOSIUM ON COMPUTING AND NETWORKING (CANDAR)》 *
高云全; 李小勇; 方滨兴: "物联网搜索技术综述", 《通信学报》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112449412A (en) * 2019-08-28 2021-03-05 阿里巴巴集团控股有限公司 Device wake-up method and related device for executing the method
CN112449412B (en) * 2019-08-28 2024-01-05 阿里巴巴集团控股有限公司 Equipment awakening method and related equipment for executing same
CN111092631A (en) * 2019-12-31 2020-05-01 成都麦杰康科技有限公司 433M communication system for realizing low power consumption
CN111092631B (en) * 2019-12-31 2021-10-19 成都麦杰康科技有限公司 433M communication system for realizing low power consumption
WO2022068670A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 Method for touching to establish wireless connection between devices, electronic device, and chip

Also Published As

Publication number Publication date
CN110072269B (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN109348458B (en) Network access configuration method and device, electronic equipment and network system
US20180368058A1 (en) Method for controlling device access, and related device and system
CN110072269A (en) Scan control method, device, mobile terminal and storage medium
KR101624903B1 (en) Apparatus and method for reducing power consumption in portable terminal
CN109152095A (en) Wireless network connecting method for terminal
CN107911708B (en) Barrage display method, live broadcast method and related devices
KR20080078973A (en) Method for receiving data service
AU2013324507A1 (en) Low energy short range communication function operation method and apparatus of mobile terminal
CN109699019A (en) Broadcast scan method, apparatus, electronic equipment and storage medium
CN107426806B (en) Method and device for transmitting data by Internet of things terminal
CN110213758B (en) Data communication method based on Bluetooth Mesh, storage medium and electronic equipment
US20140378176A1 (en) Method, apparatus and system for short message-based information push and mobile client supporting the same
US20140086121A1 (en) Methods and apparatus for controlling a wireless station
CN109934976A (en) Access control management method, device, system, electronic equipment and storage medium
CN109618393A (en) Communication control method, device, mobile terminal and storage medium
CN107634952B (en) Method and device for determining brushing amount resource, service equipment, mobile terminal and storage medium
CN109379734A (en) Real-time control method, equipment, storage medium and the device of narrowband internet of things equipment
KR20110055094A (en) Apparatus and method for reducing power consumption in portable terminal
CN111050422B (en) Discontinuous reception control method and terminal
CN109743724A (en) A kind of management method and mobile terminal of embedded SIM card
CN107948919A (en) A kind of shared method for processing information and mobile terminal
CN110020386A (en) Application page sharing method, mobile terminal and computer readable storage medium
CN108391277A (en) Signal connection method, device, mobile terminal and computer readable storage medium
CN106803863A (en) A kind of image sharing method and terminal
CN112612526B (en) Application program control method, device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant