CN108449787A - Connect control method, device and electronic equipment - Google Patents

Connect control method, device and electronic equipment Download PDF

Info

Publication number
CN108449787A
CN108449787A CN201810497450.4A CN201810497450A CN108449787A CN 108449787 A CN108449787 A CN 108449787A CN 201810497450 A CN201810497450 A CN 201810497450A CN 108449787 A CN108449787 A CN 108449787A
Authority
CN
China
Prior art keywords
electronic equipment
remaining capacity
equipment
current remaining
connection request
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
CN201810497450.4A
Other languages
Chinese (zh)
Other versions
CN108449787B (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810497450.4A priority Critical patent/CN108449787B/en
Publication of CN108449787A publication Critical patent/CN108449787A/en
Application granted granted Critical
Publication of CN108449787B publication Critical patent/CN108449787B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/0277Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof according to available power supply, e.g. switching off when a low battery condition is detected
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • 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)
  • Telephone Function (AREA)

Abstract

The embodiment of the present application discloses a kind of connection control method, device and electronic equipment.The method includes:The electronic equipment receives radio connection request;Obtain current remaining capacity;Detect whether the current remaining capacity is less than preset charge value;If the current remaining capacity is less than the preset charge value, does not establish and be wirelessly connected with the equipment for sending the radio connection request.This method is after electronic equipment receives radio connection request, obtain current remaining capacity, detect whether the current remaining capacity is less than preset charge value again, if the current remaining capacity is less than the preset charge value, it does not establish and is wirelessly connected with the equipment for sending the radio connection request, so that electronic equipment can have better cruise duration, the user experience is improved in the state that electricity is relatively low.

Description

Connect control method, device and electronic equipment
Technical field
This application involves technical field of electronic equipment, more particularly, to a kind of connection control method, device and electronics Equipment.
Background technology
The development of random wireless communication technique, more electronic equipments start to support wireless communication, so that more Data interaction can be carried out between electronic equipment by way of establishing and being wirelessly connected.However, electronic equipment is in channel radio In letter foundation and subsequent data exchange process, needs to consume more electricity, be unfavorable for the long-term continuation of the journey of electronic equipment.
Invention content
In view of the above problems, present applicant proposes a kind of connection control method, device and electronic equipments, are extended with realizing The cruise duration of electronic equipment.
In a first aspect, this application provides a kind of connection control method, it is applied to electronic equipment, the method includes:Institute It states electronic equipment and receives radio connection request;Obtain current remaining capacity;Detect whether the current remaining capacity is less than Preset charge value;If the current remaining capacity is less than the preset charge value, do not asked with the transmission wireless connection The equipment asked, which is established, to be wirelessly connected.
Second aspect, this application provides a kind of connection control devices, run on electronic equipment, and described device includes:It is logical Unit is believed, for receiving radio connection request;Electricity acquiring unit, for obtaining current remaining capacity;Electric power detection unit, For detecting whether the current remaining capacity is less than preset charge value;The communication unit, if being examined for the electricity Survey unit and detect that current remaining capacity is less than the preset charge value, not with the equipment that sends the radio connection request It establishes and is wirelessly connected.
The third aspect, this application provides a kind of electronic equipment, including one or more processors and memory;One Or multiple programs, wherein one or more of programs are stored in the memory and are configured as by one or more A processor executes, and one or more of programs are configured to carry out above-mentioned method.
Fourth aspect, a kind of computer read/write memory medium provided by the present application, the computer-readable storage are situated between Matter includes the program of storage, wherein above-mentioned method is executed when described program is run.
A kind of connection control method, device and electronic equipment provided by the present application are received in electronic equipment and are wirelessly connected After request, current remaining capacity is obtained, then detects whether the current remaining capacity is less than preset charge value, if described Current remaining capacity is less than the preset charge value, does not connect wirelessly with the equipment foundation for sending the radio connection request It connects, so that electronic equipment can have better cruise duration, improve user's body in the state that electricity is relatively low It tests.
These aspects or other aspects of the application can more straightforward in the following description.
Description of the drawings
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 accompanying drawings in the following description is only some embodiments 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 a kind of network environment figure for connection control method that the application proposes;
Fig. 2 shows a kind of flow charts for connection control method that the application proposes;
Fig. 3 shows the flow chart for another connection control method that the application proposes;
Fig. 4 shows the flow chart for another connection control method that the application proposes;
Fig. 5 shows a kind of structure diagram for connection control device that the application proposes;
Fig. 6 shows the structure diagram for another connection control device that the application proposes;
Fig. 7 shows the structure diagram for another connection control device that the application proposes;
Fig. 8 shows the structure diagram for a kind of electronic equipment that the application proposes;
Fig. 9 shows the knot of the electronic equipment for executing the connection control method according to the embodiment of the present application of the application Structure block diagram.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall in the protection scope of this application.
After electromagnetic wave technology rise, more electronic equipments can realize wireless communication by electromagnetic wave technology. Wireless communication includes long-distance radio communication and short-distance wireless communication.Wherein, in short-distance wireless communication technology, EnOcean, Zigbee, Z-Wave and Bluetooth (bluetooth) are the technologies of current relatively mainstream.
Wherein, Bluetooth (bluetooth) technology is broadly divided into the Wibree standards being added in BT3.0+HS and 4.0 versions It is exactly Bluetooth Low Energy (BLE).Low-power consumption bluetooth (BLE) technology is low cost, short distance, the Shandong of interoperable Stick wireless technology is operated in 2.4G frequency ranges.BLE is using can be changed Connection Time interval, several milliseconds to several seconds, using quickly connecting Mode is connect, " disconnected " state is usually may be at and saves the energy, both link ends only know other side each other at this time, only exist Link is just opened when necessary, then closes link in the shortest possible time, therefore possesses extremely low operation and stand-by power consumption.
And inventor has found, bluetooth company can will be successfully carried out in the case where electronic equipment has function of Bluetooth communication The identification information storage of the equipment connect can be certainly when to detect the equipment for being successfully established connection again in local It is dynamic to establish connection.Connect in addition, other short-distance wireless interconnection techniques with Auto-reconnect mechanism can be also similar to bluetooth It connects and equally carries out reconnection.But electronic equipment establish be wirelessly connected when, since it is desired that transmitting or receive electromagnetic wave, so The consumption of electricity can be increased, and if in the state that electronic equipment is in low battery, it still establishes and is wirelessly connected, then will necessarily The electric quantity consumption for increasing electronic equipment, shortens cruise duration.Therefore, it inventors herein proposes and realizes extension electronic equipment in the application Cruise duration connection control method, device and electronic equipment.
First the application environment involved by the application will be introduced below.
As shown in Figure 1, electronic equipment 200 and electronic equipment 210.In the application, electronic equipment 200 can be mobile phone, The equipment such as tablet computer, and electronic equipment 210 can be the equipment such as earphone, sound equipment.Electronic equipment 200 and electronic equipment 210 Has the wireless communication function for supporting the same communications protocols.For example, electronic equipment 200 and electronic equipment 210 are provided with bluetooth Communication function, after being entered in electronic equipment 210 in the coverage area of the Bluetooth signal of the broadcast of electronic equipment 200, electronics is set Standby 210 can establish bluetooth connection under the operation of user in electronic equipment 210, and when electronic equipment 210 is set leaving electronics In the coverage area of the Bluetooth signals of standby 200 broadcast, and after turning again in coverage area, electronic equipment 200 can be automatic It attempts to establish bluetooth connection with electronic equipment 210.
Present embodiments are specifically described below in conjunction with attached drawing.
Referring to Fig. 2, a kind of connection control method provided by the present application, is applied to electronic equipment, the method includes:
Step S110:The electronic equipment receives radio connection request.
Wherein, which can be the radio connection request that the equipment connected for the first time is sent, or with The electronic equipment was successfully established the radio connection request that the equipment being wirelessly connected is sent.As a kind of mode, electronic equipment For being successfully established the equipment being wirelessly connected, it can be stored and be used for the identification information of unique mark identity, then electronics Equipment reads the identification information that radio connection request carries, checks after receiving the radio connection request for carrying identification information Whether the identification information that the radio connection request carries is the identification information stored before, if it is, the nothing that judgement receives Line connection request is the radio connection request for being successfully established the equipment being wirelessly connected with the electronic equipment and sending.Wherein, at It includes completing the interaction of control signaling based on radio-link protocol or successfully having transmitted that work(, which was established and is wirelessly connected, Data.
It should be noted that the type of radio connection request is related with the radio connection that electronic equipment is supported, example Such as, in the case where electronic equipment supports function of Bluetooth communication or energy is led in WIFI communications, which can be base In the connection request of Bluetooth communication protocol or connection request based on IEEE agreements.
Step S120:Obtain current remaining capacity.
Step S130:Detect whether the current remaining capacity is less than preset charge value.
Wherein, preset charge value can be that user configures according to the demand of oneself.It can also be by electronic equipment according to going through History data or environmental data are configured.For example, detecting the power consumption of electronic equipment within a certain period of time in electronic equipment When amount is more than preset value, characterization of electronic equipment current power consumption is larger, then in order to continue a journey conducive to the long-time of electronic equipment, it can To improve preset charge value.Furthermore it can also be when detecting that power consumption within a certain period of time is more than preset value, to not The power consumption come is estimated, for example, when detecting that the application program currently having been started up is more than predetermined number, is characterized in future The power consumption of a period of time is higher, then preset charge value can be then improved, so as to preferably continue a journey.
Step S140:If the current remaining capacity is less than the preset charge value, described do not connect wirelessly with sending The equipment for connecing request, which is established, to be wirelessly connected.
As a kind of mode, it includes to described in transmission not establish wireless connection with the equipment for sending the radio connection request The equipment of radio connection request returns to refusal information, or does not directly handle the radio connection request received.
Step S150:If the current electricity is not less than the preset charge value, asked with the wireless connection is sent The equipment asked, which is established, to be wirelessly connected.
A kind of connection control method provided by the present application obtains current after electronic equipment receives radio connection request Remaining capacity, then detect whether the current remaining capacity is less than preset charge value, if the current remaining capacity is low In the preset charge value, does not establish and be wirelessly connected with the equipment for sending the radio connection request, so that electronics is set It is standby can to have better cruise duration, the user experience is improved in the state that electricity is relatively low.
Referring to Fig. 3, a kind of connection control method provided by the present application, is applied to electronic equipment, the method includes:
Step S210:The electronic equipment receives radio connection request.
Step S220:Detect whether the electronic equipment is in transmission of sound signals state.
Wherein, transmission of sound signals state is specially which kind of state is related with the function that electronic equipment is supported.For example, such as Fruit electronic equipment supports mobile communication function, then transmission of sound signals state includes voice communication state.And if electronics is set It is standby to support audio and video playing function, then transmission of sound signals state includes audio signal output state.Wherein, electronic equipment is worked as When preceding operation call interface, judgement electronic equipment is in voice communication state.And works as and detect that electronic equipment runs music When interface or video playing interface, judgement electronic equipment is in audio signal output state.
Step S230:If the electronic equipment is not at transmission of sound signals state, step S250 is executed.
Step S230:If the electronic equipment is in transmission of sound signals state, what is be successfully established described in detection wirelessly connects Whether the connection moment connect is after the transmission of sound signals state starts.
Audio signal transmission can be given other equipment by usual electronic equipment, and other equipment is made to play out.Also, Audio signal transmission can be given to other equipment in a manner of wireless transmission.So it is successfully established described in detection by detecting Whether the connection moment of wireless connection is after the transmission of sound signals state starts, it can be determined that electronic equipment is set with other It is standby to establish whether the purpose that is wirelessly connected is exactly to carry out audio broadcasting to make other equipment.
Step S240:If the connection moment of the wireless connection being successfully established starts in the transmission of sound signals state Later, then it establishes and is wirelessly connected with the equipment for sending the radio connection request.
In this case, at the connection moment for detecting the wireless connection being successfully established in the transmission of sound signals shape After state starts, characterization is in order to play out audio signal transmission to other equipment, then in this case, connecing again It receives this and has been successfully established the radio connection request that the equipment being wirelessly connected is sent, be then characterized in a current voice signal When transmission state is also not finished, electronic equipment is disconnected with the wireless communication before other equipment, then in other equipment, namely It is that the equipment that a current transmission of sound signals state starts to be successfully established wireless connection with electronic equipment afterwards is sent again When radio connection request, then can establish and be wirelessly connected with the equipment for sending the radio connection request, in order to so that other Equipment continues broadcasting electronic equipment and transmits the audio signal come.It is understood that other involved by the present embodiment Equipment is the equipment other than the electronic equipment of the executive agent of step in the present embodiment.
Below again using mobile phone as electronic equipment, earphone as other equipment under voice communication environment to above-mentioned interior Appearance illustrates.After mobile phone connects the incoming call of other mobile phones, characterization initially enters a kind of transmission of sound signals state, then connecing After leading to other cell phone incoming calls, then the mode based on bluetooth is established with earphone after being wirelessly connected, and can other mobile phones be transmitted the language of coming Sound signal passes to earphone and plays out again.After so outside the Bluetooth signal coverage area that earphone leaves mobile phone broadcast, such as User goes at a distance with earphone, the characteristic based on Bluetooth communication protocol itself, and earphone can disconnect the indigo plant having built up with mobile phone Tooth connects.After so in the Bluetooth signal coverage area that earphone turns again to mobile phone broadcast, earphone can common sense and mobile phone again Bluetooth connection is established, i.e., sends the radio connection request based on Bluetooth communication protocol again to mobile phone, then still being connect in mobile phone It in the case of the incoming call for leading to other mobile phones, namely is still under transmission of sound signals state, then mobile phone can establish and earphone Wireless connection.
Step S250:If the connection moment of the wireless connection being successfully established starts in the transmission of sound signals state Before, current remaining capacity is obtained.
And if the connection moment of the wireless connection being successfully established before the transmission of sound signals state starts, Then characterization of electronic equipment is wirelessly connected unrelated with the transmission of sound signals state residing for electronic equipment with other equipment foundation, then It will determine whether to receive radio connection request based on remaining capacity.
Step S260:Detect whether the current remaining capacity is less than preset charge value.
Step S270:If the current remaining capacity is less than the preset charge value, described do not connect wirelessly with sending The equipment for connecing request, which is established, to be wirelessly connected.
Step S280:If the current electricity is not less than the preset charge value, asked with the wireless connection is sent The equipment asked, which is established, to be wirelessly connected.
A kind of connection control method provided by the present application, after electronic equipment receives radio connection request, detection is sent should The equipment of radio connection request is when being presently in the associate device of transmission of sound signals state, then with send the wireless connection The equipment of request, which is established, to be wirelessly connected, and it is not to be presently in transmission of sound signals to detect the equipment for sending the radio connection request When the associate device of state, then detect whether the current remaining capacity is less than preset charge value, if described current remains Remaining electricity is less than the preset charge value, does not establish and is wirelessly connected with the equipment for sending the radio connection request, to make Better cruise duration can be had in the state that electricity is relatively low by obtaining electronic equipment, and the user experience is improved, furthermore, The transmission of sound signals state of electronic equipment can be allow preferably to provide the user experience of high quality.
Referring to Fig. 4, a kind of connection control method provided by the present application, is applied to electronic equipment, the method includes:
Step S310:The electronic equipment receives radio connection request.
Step S320:Obtain power consumption of the electronic equipment in the preset time period before current time.
Step S330:Detect whether the power consumption is more than power consumption threshold value.
In the present embodiment, the set-up mode of the preset charge value in the set-up mode and previous embodiment of power consumption threshold value It is identical.
Step S340:If the power consumption is not more than the power consumption threshold value, the equipment with the radio connection request is sent It establishes and is wirelessly connected.
Step S350:If the power consumption is more than the power consumption threshold value, current remaining capacity is obtained.
Step S360:Detect whether the current remaining capacity is less than preset charge value.
Step S370:If the current remaining capacity is less than the preset charge value, described do not connect wirelessly with sending The equipment for connecing request, which is established, to be wirelessly connected.
Step S380:If the current electricity is not less than the preset charge value, asked with the wireless connection is sent The equipment asked, which is established, to be wirelessly connected.
A kind of connection control method provided by the present application, electronic equipment receive radio connection request after, according to it is previous The power consumption of section time, to determine whether to determine whether and send the radio connection request according to current remaining capacity Equipment establish and be wirelessly connected, being capable of more flexible determination so that electronic equipment can be in the state that electricity be relatively low Whether radio connection request is received, the user experience is improved.
Referring to Fig. 5, a kind of connection control device 400 provided by the present application, runs on electronic equipment, described device 400 Including:Communication unit 410, electricity acquiring unit 420 and electric power detection unit 430.
Communication unit 410, for receiving radio connection request.
The radio connection request is to be successfully established the equipment being wirelessly connected with the electronic equipment to send.
Electricity acquiring unit 420, for obtaining current remaining capacity.
Electric power detection unit 430, for detecting whether the current remaining capacity is less than preset charge value.
The communication unit 410, if detecting current remaining capacity less than described for the electric power detection unit 430 Preset charge value is not established with the equipment for sending the radio connection request and is wirelessly connected.
The communication unit 410, if being additionally operable to the electric power detection unit 430 detects that current remaining capacity is not less than The preset charge value is established with the equipment for sending the radio connection request and is wirelessly connected.
Referring to Fig. 6, a kind of connection control device 500 provided by the present application, runs on electronic equipment, described device 500 Including:Communication unit 510, transmission of sound signals state detection unit 520, electricity acquiring unit 530 and electric power detection unit 540。
Communication unit 510, for receiving radio connection request.
Transmission of sound signals state detection unit 520, for detecting whether the electronic equipment is in transmission of sound signals State, if the electronic equipment is in transmission of sound signals state, the connection moment for the wireless connection being successfully established described in detection Whether after the transmission of sound signals state starts;
Communication unit 510, if being additionally operable to the transmission of sound signals state detection unit 520 detects described be successfully established Connection moment of wireless connection be and to send the radio connection request after the transmission of sound signals state starts Equipment, which is established, to be wirelessly connected.
Electricity acquiring unit 530, if detecting described be successfully established for transmission of sound signals state detection unit 520 The connection moment of wireless connection before the transmission of sound signals state starts, obtains current remaining capacity.
Electric power detection unit 540, for detecting whether the current remaining capacity is less than preset charge value.
The communication unit 510, if detecting current remaining capacity less than described for the electric power detection unit 540 Preset charge value is not established with the equipment for sending the radio connection request and is wirelessly connected.
The communication unit 510, if being additionally operable to the electric power detection unit 430 detects that current remaining capacity is not less than The preset charge value is established with the equipment for sending the radio connection request and is wirelessly connected.
Referring to Fig. 7, a kind of connection control device 600 provided by the present application, runs on electronic equipment, described device 600 Including:Communication unit 610, power consumption monitoring unit 620, power consumption amount detection unit 630, electricity acquiring unit 640 and electricity Detection unit 650.
Communication unit 610, for receiving radio connection request.
Power consumption monitoring unit 620, for obtaining the electronic equipment in the preset time period before current time Power consumption.
Power consumption amount detection unit 630, for detecting whether the power consumption is more than power consumption threshold value.
Communication unit 610, if detecting that the power consumption is not more than the power consumption threshold for power consumption amount detection unit 630 Value is established with the equipment for sending the radio connection request and is wirelessly connected.
Electricity acquiring unit 640, if detecting that the power consumption is more than the power consumption threshold for power consumption amount detection unit 630 Value, obtains current remaining capacity.
Electric power detection unit 650, for detecting whether the current remaining capacity is less than preset charge value.
The communication unit 610, if detecting current remaining capacity less than described for the electric power detection unit 650 Preset charge value is not established with the equipment for sending the radio connection request and is wirelessly connected.
The communication unit 610, if being additionally operable to the electric power detection unit 650 detects that current remaining capacity is not less than The preset charge value is established with the equipment for sending the radio connection request and is wirelessly connected.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description It with the specific work process of unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In conclusion a kind of connection control method, device and electronic equipment provided by the present application, receive in electronic equipment After radio connection request, current remaining capacity is obtained, then detects whether the current remaining capacity is less than preset electricity Value is not built if the current remaining capacity is less than the preset charge value with the equipment for sending the radio connection request It is vertical to be wirelessly connected, so that electronic equipment can have better cruise duration, improve in the state that electricity is relatively low User experience.
A kind of electronic equipment provided by the present application is illustrated below in conjunction with Fig. 8 and Fig. 9.
Referring to Fig. 8, based on above-mentioned connection control method, device, the embodiment of the present application also provides one kind and can execute The electronic equipment 100 of aforementioned connection control method.Electronic equipment 100 includes electronic body portion 10, and the electronic body portion 10 is wrapped The first screen 120 for including shell 12 and being arranged on the shell 12.Metal, such as steel, aluminium alloy can be used in the shell 12 It is made.In the present embodiment, first screen, 120 and second screen 121 generally includes display panel 111, may also comprise use The circuit etc. of touch control operation is carried out to the display panel 111 in response.The display panel 111 can be a liquid crystal display Panel (LiquidCrystal Display, LCD), in some embodiments, the display panel 111 are simultaneously a touch Screen 109.
As shown in figure 9, in actual application scenarios, the electronic equipment 100 can be used as intelligent mobile phone terminal into enforcement With, in this case the electronic body portion 10 also typically include one or more (one is only shown in figure) processors 102, Memory 104, RF (Radio Frequency, radio frequency) module 106, voicefrequency circuit 110, sensor 114, input module 118, Power module 122.It will appreciated by the skilled person that the application does not cause the structure in the electronic body portion 10 It limits.For example, the electronic body portion 10 may also include than more either less components as shown in the figure or with in figure Shown different configuration.
It will appreciated by the skilled person that for the processor 102, every other component belongs to It is coupled by multiple Peripheral Interfaces 124 between peripheral hardware, the processor 102 and these peripheral hardwares.The Peripheral Interface 124 can Based on following standard implementation:Universal Asynchronous Receive/sending device (Universal Asynchronous Receiver/ Transmitter, UART), universal input/output (General Purpose Input Output, GPIO), serial peripheral connect Mouthful (Serial Peripheral Interface, SPI), internal integrated circuit (Inter-Integrated Circuit, I2C), but it is not limited to above-mentioned standard.In some instances, the Peripheral Interface 124 can only include bus;In other examples In, the Peripheral Interface 124 may also include other elements, such as one or more controller, such as connecting the display The display controller of panel 111 or storage control for connecting memory.In addition, these controllers can also be from described Detached in Peripheral Interface 124, and be integrated in the processor 102 or corresponding peripheral hardware in.
The memory 104 can be used for storing software program and module, and the processor 102 is stored in institute by operation The software program and module in memory 104 are stated, to perform various functions application and data processing.The memory 104 may include high speed random access memory, may also include nonvolatile memory, and such as one or more magnetic storage device dodges It deposits or other non-volatile solid state memories.In some instances, the memory 104 can further comprise relative to institute The remotely located memory of processor 102 is stated, these remote memories can pass through network connection to the electronic body portion 10 Or first screen 120.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile communication Net and combinations thereof.
The wireless module 106 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, from And it is communicated with communication network or other equipment.The wireless module 106 may include various existing for executing these The circuit element of function, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, memory etc..The wireless module 106 can with various networks for example internet, intranet, wireless network into Row communication is communicated by wireless network and other equipment.Above-mentioned wireless network may include cellular telephone networks, nothing Line LAN or Metropolitan Area Network (MAN).Above-mentioned wireless network can use various communication standards, agreement and technology, including but and unlimited In global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communication Technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code Division multiple access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time-division Multiple access technology (time division multiple access, TDMA), adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.10A, IEEE 802.11b, IEEE802.11g and/ Or IEEE 802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other for mail, Instant Messenger The agreement and any other suitable communications protocol of news and short message, or even may include that those are not developed currently yet Agreement.
Voicefrequency circuit 110, loud speaker 101, sound jack 103, microphone 105 provide user and the electronic body jointly Audio interface between portion 10 or first screen 120.Specifically, the voicefrequency circuit 110 connects from the processor 102 Voice data is received, voice data is converted into electric signal, by electric signal transmission to the loud speaker 101.The loud speaker 101 will Electric signal is converted to the sound wave that human ear can be heard.The voicefrequency circuit 110 receives electric signal also from the microphone 105, will Electric signal is converted to voice data, and gives the processor 102 to be further processed data transmission in network telephony.Audio number According to can from the memory 104 or pass through the wireless module 106 obtain.In addition, audio data can also store to It is sent in the memory 104 or by the wireless module 106.The wireless module 106 can be Bluetooth communication mould Block, WIFI communication modules or the module for supporting other wireless communication protocols.
The setting of the sensor 114 is in the electronic body portion 10 or in first screen 120, the sensor 114 example includes but is not limited to:Optical sensor, operation sensor, pressure sensor, infrared heat sensor, Distance-sensing Device, gravity accelerometer and other sensors.
Specifically, the optical sensor may include light sensor 114F, pressure sensor 114G.Wherein, pressure sensing Device 114G can detect the sensor by pressing the pressure generated in electronic equipment 100.That is, pressure sensor 114G detection by with The pressure that contact between family and electronic equipment or pressing generate, for example, by between the ear and electronic equipment of user contact or Press the pressure generated.Therefore, whether pressure sensor 114G may be used to determine occurs between user and electronic equipment 100 Contact or the size of pressing and pressure.
Referring to Fig. 9, specifically in the embodiment shown in fig. 9, the light sensor 114F and the pressure Sensor 114G is arranged adjacent to the display panel 111.The light sensor 114F can have object close to first screen When curtain 120, such as when the electronic body portion 10 is moved in one's ear, the processor 102 closes display output.
As a kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) and accelerate The size of degree can detect that size and the direction of gravity, can be used to identify the application of 100 posture of the electronic equipment when static (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.. In addition, the electronic body portion 10 can also configure the other sensors such as gyroscope, barometer, hygrometer, thermometer, herein no longer It repeats,
In the present embodiment, the input module 118 may include the touch screen being arranged on first screen 120 109, the touch screen 109 collect user on it or neighbouring touch operation (for example user is any using finger, stylus etc. Operation of the suitable object or attachment on the touch screen 109 or near the touch screen 109), and according to presetting The corresponding attachment device of driven by program.Optionally, the touch screen 109 may include touch detecting apparatus and touch controller. Wherein, the touch orientation of the touch detecting apparatus detection user, and the signal that touch operation is brought is detected, it transmits a signal to The touch controller;The touch controller receives touch information from the touch detecting apparatus, and by the touch information It is converted into contact coordinate, then gives the processor 102, and order that the processor 102 is sent can be received and executed. Furthermore, it is possible to realize touching for the touch screen 109 using more classifying types such as resistance-type, condenser type, infrared ray and surface acoustic wave Touch detection function.In addition to the touch screen 109, in other change embodiments, the input module 118 can also include it His input equipment, such as button.The button for example may include the character keys for inputting character, and for triggering control work( The control button of energy.The example of the control button includes " returning to main screen " button, on/off button etc..
The information and the electronics that first screen 120 is used to show information input by user, is supplied to user The various graphical user interface of body part 10, these graphical user interface can by figure, text, icon, number, video and its Arbitrary to combine to constitute, in an example, the touch screen 109 may be disposed on the display panel 111 thus with described Display panel 111 constitutes an entirety.
The power module 122 is used to provide supply of electric power to the processor 102 and other each components.Specifically, The power module 122 may include power-supply management system, one or more power supply (such as battery or alternating current), charging circuit, Power-fail detection circuit, inverter, indicator of the power supply status and any other with the electronic body portion 10 or described the The generation, management of electric power and the relevant component of distribution in one screen 120.
The electronic equipment 100 further includes locator 119, and the locator 119 is for determining 100 institute of the electronic equipment The physical location at place.In the present embodiment, the locator 119 realizes the positioning of the electronic equipment 100 using positioning service, The positioning service, it should be understood that the location information of the electronic equipment 100 is obtained by specific location technology (as passed through Latitude coordinate), it is marked on the electronic map by the technology of the position of positioning object or service.
It should be understood that above-mentioned electronic equipment 100 is not limited to intelligent mobile phone terminal, should refer to can move The computer equipment used in dynamic.Specifically, electronic equipment 100, refers to the mobile computer for being equipped with intelligent operating system Equipment, electronic equipment 100 include but not limited to smart mobile phone, smartwatch, tablet computer, etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for description purposes only, it is not understood to indicate or imply relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discuss suitable Sequence, include according to involved function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be by the application Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (system of such as computer based system including processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicating, propagating or passing Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Interconnecting piece (electronic equipment), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or combination thereof.Above-mentioned In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be executed with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium In matter, which includes the steps that one or a combination set of embodiment of the method when being executed.In addition, in each embodiment of the application In each functional unit can be integrated in a processing module, can also be that each unit physically exists alone, can also two A or more than two units are integrated in a module.The form that hardware had both may be used in above-mentioned integrated module is realized, also may be used It is realized in the form of using software function module.If the integrated module realized in the form of software function module and as Independent product sale in use, can also be stored in a computer read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application System, those skilled in the art can be changed above-described embodiment, change, replace and become within the scope of application Type.
Finally it should be noted that:Above example is 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 Technical scheme described in the above embodiments is modified or equivalent replacement of some of the technical features;And These modifications or replacements, 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 connection control method, which is characterized in that it is applied to electronic equipment, the method includes:
The electronic equipment receives radio connection request;
Obtain current remaining capacity;
Detect whether the current remaining capacity is less than preset charge value;
If the current remaining capacity is less than the preset charge value, do not built with the equipment for sending the radio connection request It is vertical to be wirelessly connected.
2. if according to the method described in claim 1, it is characterized in that, the current electricity is not less than the preset electricity Value is established with the equipment for sending the radio connection request and is wirelessly connected.
3. method according to claim 1 or 2, which is characterized in that the radio connection request be and the electronic equipment The equipment being wirelessly connected was successfully established to send.
4. according to the method described in claim 3, it is characterized in that, electronic equipment reception radio connection request is obtained with described Further include between the step of taking current remaining capacity:
Detect whether the electronic equipment is in transmission of sound signals state;
If the electronic equipment is in transmission of sound signals state, the connection moment for the wireless connection being successfully established described in detection is It is no after the transmission of sound signals state starts;
If the connection moment of the wireless connection being successfully established after the transmission of sound signals state starts, with transmission The equipment of the radio connection request, which is established, to be wirelessly connected;
If the connection moment of the wireless connection being successfully established before the transmission of sound signals state starts, described in execution Obtain current remaining capacity.
5. according to the method described in claim 4, it is characterized in that, the transmission of sound signals state includes:
The electronic equipment is in voice communication state;Or
The electronic equipment is in audio signal output state.
6. according to the method described in claim 1, it is characterized in that, also being wrapped before described the step of obtaining current remaining capacity It includes:
Obtain power consumption of the electronic equipment in the preset time period before current time;
When detecting that the power consumption is more than power consumption threshold value, the current remaining capacity of the acquisition is executed.
7. a kind of connection control device, which is characterized in that run on electronic equipment, described device includes:
Communication unit, for receiving radio connection request;
Electricity acquiring unit, for obtaining current remaining capacity;
Electric power detection unit, for detecting whether the current remaining capacity is less than preset charge value;
The communication unit, if detecting that current remaining capacity is less than the preset electricity for the electric power detection unit Value is not established with the equipment for sending the radio connection request and is wirelessly connected.
8. device according to claim 7, which is characterized in that the communication unit, if being additionally operable to the electric power detection list Member detects that current remaining capacity is not less than the preset charge value, is established with the equipment for sending the radio connection request It is wirelessly connected.
9. a kind of electronic equipment, which is characterized in that including one or more processors and memory;
One or more programs, wherein one or more of programs are stored in the memory and are configured as by described One or more processors execute, and one or more of programs are configured to carry out any methods of claim 1-6.
10. a kind of computer readable storage medium for the program code that can perform with processor, which is characterized in that the calculating Machine read/write memory medium include storage program, wherein when described program run perform claim require 1-6 it is any described in Method.
CN201810497450.4A 2018-05-22 2018-05-22 Connection control method and device and electronic equipment Active CN108449787B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810497450.4A CN108449787B (en) 2018-05-22 2018-05-22 Connection control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810497450.4A CN108449787B (en) 2018-05-22 2018-05-22 Connection control method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108449787A true CN108449787A (en) 2018-08-24
CN108449787B CN108449787B (en) 2021-08-17

Family

ID=63204537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810497450.4A Active CN108449787B (en) 2018-05-22 2018-05-22 Connection control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108449787B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291833A (en) * 2019-07-23 2021-01-29 华为技术有限公司 Equipment control method, system and related device
CN112866983A (en) * 2021-01-19 2021-05-28 维沃移动通信有限公司 Control method, control device and electronic equipment
WO2021195947A1 (en) * 2020-03-31 2021-10-07 Oppo广东移动通信有限公司 Electronic tag, and method and apparatus for processing electronic tag

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110207460A1 (en) * 2010-02-25 2011-08-25 Samsung Electronics Co., Ltd. Method and apparatus for performing handover
CN102394987A (en) * 2011-11-11 2012-03-28 大唐移动通信设备有限公司 Mobile communication terminal electricity saving method and equipment thereof
CN103533619A (en) * 2012-07-05 2014-01-22 华为技术有限公司 Mobile communication terminal and power management method thereof
CN103974364A (en) * 2013-02-04 2014-08-06 无锡南理工科技发展有限公司 DTN routing method under sparse type car networking scenes and based on node transmission matching coordinating values
CN104639743A (en) * 2015-01-13 2015-05-20 广东欧珀移动通信有限公司 Ultralow-power processing method for terminal and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110207460A1 (en) * 2010-02-25 2011-08-25 Samsung Electronics Co., Ltd. Method and apparatus for performing handover
CN102394987A (en) * 2011-11-11 2012-03-28 大唐移动通信设备有限公司 Mobile communication terminal electricity saving method and equipment thereof
CN103533619A (en) * 2012-07-05 2014-01-22 华为技术有限公司 Mobile communication terminal and power management method thereof
CN103974364A (en) * 2013-02-04 2014-08-06 无锡南理工科技发展有限公司 DTN routing method under sparse type car networking scenes and based on node transmission matching coordinating values
CN104639743A (en) * 2015-01-13 2015-05-20 广东欧珀移动通信有限公司 Ultralow-power processing method for terminal and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291833A (en) * 2019-07-23 2021-01-29 华为技术有限公司 Equipment control method, system and related device
WO2021195947A1 (en) * 2020-03-31 2021-10-07 Oppo广东移动通信有限公司 Electronic tag, and method and apparatus for processing electronic tag
CN112866983A (en) * 2021-01-19 2021-05-28 维沃移动通信有限公司 Control method, control device and electronic equipment
CN112866983B (en) * 2021-01-19 2024-01-12 维沃移动通信有限公司 Control method, control device and electronic equipment

Also Published As

Publication number Publication date
CN108449787B (en) 2021-08-17

Similar Documents

Publication Publication Date Title
CN110730504B (en) Paging indication method, device and system
CN110944351B (en) Measurement configuration method, equipment and system
CN108647048A (en) Doze mode regulating methods, device, mobile terminal and storage medium
CN108990105A (en) Wireless communication transmission method, device, mobile terminal and computer-readable storage medium
CN109756942B (en) Switching method, terminal and network equipment
CN107948919B (en) Shared information processing method and mobile terminal
CN108777731A (en) Key configurations method, apparatus, mobile terminal and storage medium
CN108964838A (en) transmission rate adjusting method, device and electronic device
CN108449787A (en) Connect control method, device and electronic equipment
CN110611580B (en) Cell management method, terminal and network side equipment
CN108769299A (en) Screen control method, device and mobile terminal
CN108880751A (en) transmission rate adjusting method, device and electronic device
CN110221882A (en) Display methods, device, mobile terminal and storage medium
CN109062533A (en) Sounding control method, device, electronic device and storage medium
CN108934025A (en) Wireless communication transmission method, device, mobile terminal and computer-readable storage medium
CN108920224A (en) Dialog information processing method, device, mobile terminal and storage medium
CN108494851A (en) Application program recommends method, apparatus and mobile terminal
CN110119231A (en) Message display method, device, mobile terminal and storage medium
CN108683812A (en) volume adjusting method, device and mobile terminal
CN108901062A (en) Wireless communication transmission method, device, mobile terminal and computer-readable storage medium
CN108039928A (en) Received signal strength test method, device, system and electronic equipment
CN108990104A (en) Wireless communication transmission method, device, mobile terminal and computer-readable storage medium
CN108632822A (en) Detection method, device and the mobile terminal of wireless access point
CN108882335A (en) Method for connecting network, device and electronic device
CN108848566A (en) Wireless communication transmission method, device, mobile terminal and computer-readable 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