CN108449787B - Connection control method and device and electronic equipment - Google Patents

Connection control method and device and electronic equipment Download PDF

Info

Publication number
CN108449787B
CN108449787B CN201810497450.4A CN201810497450A CN108449787B CN 108449787 B CN108449787 B CN 108449787B CN 201810497450 A CN201810497450 A CN 201810497450A CN 108449787 B CN108449787 B CN 108449787B
Authority
CN
China
Prior art keywords
wireless connection
electric quantity
connection request
sound signal
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810497450.4A
Other languages
Chinese (zh)
Other versions
CN108449787A (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

Images

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

Abstract

The embodiment of the application discloses a connection control method and device and electronic equipment. The method comprises the following steps: the electronic equipment receives a wireless connection request; acquiring current residual electric quantity; detecting whether the current residual electric quantity is lower than a preset electric quantity value; and if the current residual electric quantity is lower than the preset electric quantity value, not establishing wireless connection with the equipment sending the wireless connection request. According to the method, after the electronic equipment receives the wireless connection request, the current residual electric quantity is obtained, whether the current residual electric quantity is lower than a preset electric quantity value or not is detected, if the current residual electric quantity is lower than the preset electric quantity value, wireless connection is not established with the equipment sending the wireless connection request, and therefore the electronic equipment can have better endurance time in a state of low electric quantity, and user experience is improved.

Description

Connection control method and device and electronic equipment
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a connection control method and apparatus, and an electronic device.
Background
With the development of random wireless communication technology, more electronic devices are beginning to support wireless communication, so that data interaction can be performed between the more electronic devices by establishing wireless connection. However, the electronic device needs to consume more power during the wireless communication establishment and the subsequent data interaction process, which is not favorable for the long-term endurance of the electronic device.
Disclosure of Invention
In view of the foregoing problems, the present application provides a connection control method, device and electronic device to achieve extending of a duration of the electronic device.
In a first aspect, the present application provides a connection control method applied to an electronic device, the method including: the electronic equipment receives a wireless connection request; acquiring current residual electric quantity; detecting whether the current residual electric quantity is lower than a preset electric quantity value; and if the current residual electric quantity is lower than the preset electric quantity value, not establishing wireless connection with the equipment sending the wireless connection request.
In a second aspect, the present application provides a connection control apparatus, operable on an electronic device, the apparatus comprising: a communication unit for receiving a wireless connection request; the electric quantity obtaining unit is used for obtaining the current residual electric quantity; the electric quantity detection unit is used for detecting whether the current residual electric quantity is lower than a preset electric quantity value or not; the communication unit is configured to not establish a wireless connection with the device that sends the wireless connection request if the electric quantity detection unit detects that the current remaining electric quantity is lower than the preset electric quantity value.
In a third aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a fourth aspect, the present application provides a computer-readable storage medium comprising a stored program, wherein the method described above is performed when the program is executed.
According to the connection control method, the connection control device and the electronic equipment, after the electronic equipment receives a wireless connection request, the current residual capacity is obtained, whether the current residual capacity is lower than a preset capacity value or not is detected, if the current residual capacity is lower than the preset capacity value, wireless connection is not established with equipment sending the wireless connection request, and therefore the electronic equipment can have better endurance time in a state that the capacity is lower, and user experience is improved.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a network environment diagram illustrating a connection control method proposed in the present application;
fig. 2 shows a flow chart of a connection control method proposed by the present application;
fig. 3 shows a flow chart of another connection control method proposed by the present application;
fig. 4 shows a flow chart of yet another connection control method proposed by the present application;
fig. 5 is a block diagram illustrating a configuration of a connection control apparatus according to the present application;
fig. 6 is a block diagram showing the structure of another connection control apparatus proposed in the present application;
fig. 7 is a block diagram illustrating a structure of another connection control apparatus proposed in the present application;
fig. 8 shows a block diagram of an electronic device proposed in the present application;
fig. 9 shows a block diagram of an electronic device for executing the connection control method according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
After the rise of the electromagnetic wave technology, more electronic devices can realize wireless communication through the electromagnetic wave technology. The wireless communication includes long-distance wireless communication and short-distance wireless communication. Among the short-distance wireless communication technologies, EnOcean, Zigbee, Z-Wave and Bluetooth (Bluetooth) are currently the mainstream technologies.
Among them, Bluetooth technology is mainly divided into BT3.0+ HS and the Wibree standard added in version 4.0, that is, Bluetooth Low Energy (BLE). Bluetooth Low Energy (BLE) technology is a robust wireless technology that is low cost, short range, interoperable, operating in the 2.4G frequency band. BLE adopts variable connection time interval, several milliseconds to several seconds, utilizes quick connection mode, can be in "non-connection" state energy saving at ordinary times, and link both ends are only known each other this moment, only opens the link when necessary, then closes the link in the time as short as possible, consequently possess extremely low operation and standby power consumption.
The inventor finds that, in the case of an electronic device having a bluetooth communication function, identification information of a device that has successfully made a bluetooth connection is stored locally, so that when the device that has successfully made a connection is detected again, the connection can be automatically established. In addition, other short-range wireless connection technologies with automatic reconnection mechanisms can also be reconnected similarly to Bluetooth connection. However, when the electronic device establishes a wireless connection, it needs to transmit or receive electromagnetic waves, which increases power consumption, and if the electronic device is in a low power state and the wireless connection is still established, it inevitably increases power consumption of the electronic device, which reduces endurance time. Therefore, the inventor proposes a connection control method and device and an electronic device for prolonging the endurance time of the electronic device in the application.
The application environment to which the present application relates will be described first.
As shown in fig. 1, an electronic device 200 and an electronic device 210. In the present application, the electronic device 200 may be a mobile phone, a tablet computer, or the like, and the electronic device 210 may be an earphone, a sound, or the like. The electronic device 200 and the electronic device 210 have wireless communication functions supporting the same communication protocol. For example, the electronic device 200 and the electronic device 210 both have bluetooth communication functions, after the electronic device 210 enters the coverage of the bluetooth signal broadcast by the electronic device 200, the electronic device 210 can establish a bluetooth connection with the electronic device 210 under the operation of the user, and after the electronic device 210 leaves the coverage of the bluetooth signal broadcast by the electronic device 200 and returns to the coverage again, the electronic device 200 can automatically attempt to establish a bluetooth connection with the electronic device 210.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2, a connection control method provided by the present application is applied to an electronic device, and the method includes:
step S110: the electronic device receives a wireless connection request.
The wireless connection request may be a wireless connection request sent by a device that is connected for the first time, or a wireless connection request sent by a device that has successfully established a wireless connection with the electronic device. As a mode, the electronic device stores identification information for uniquely identifying an identity of a device that has successfully established a wireless connection, and then, after receiving a wireless connection request carrying the identification information, the electronic device reads the identification information carried by the wireless connection request, checks whether the identification information carried by the wireless connection request is the previously stored identification information, and if so, determines that the received wireless connection request is a wireless connection request sent by the device that has successfully established a wireless connection with the electronic device. Wherein, successfully establishing the wireless connection includes completing the interaction of the control signaling or the successfully transmitted data based on the wireless connection protocol.
It should be noted that the type of the wireless connection request is related to the wireless connection mode supported by the electronic device, for example, in the case that the electronic device supports the bluetooth communication function or the WIFI communication function, the wireless connection request may be a connection request based on the bluetooth communication protocol or a connection request based on the IEEE protocol.
Step S120: and acquiring the current residual capacity.
Step S130: and detecting whether the current residual electric quantity is lower than a preset electric quantity value.
The preset electric quantity value can be configured for the user according to the requirement of the user. Or may be configured by the electronic device based on historical data or environmental data. For example, when the electronic device detects that the power consumption of the electronic device in a certain time period is greater than a preset value, it represents that the current power consumption of the electronic device is relatively large, and then, in order to facilitate long-time endurance of the electronic device, the preset power value may be increased. Moreover, when it is detected that the power consumption in a certain period of time is greater than a preset value, the future power consumption can be estimated, for example, when it is detected that the number of currently started applications is greater than a preset number, the power consumption in the future period of time is represented to be higher, and then the preset power value can be increased, so that the endurance can be better.
Step S140: and if the current residual electric quantity is lower than the preset electric quantity value, not establishing wireless connection with the equipment sending the wireless connection request.
As one way, not establishing a wireless connection with the device that transmitted the wireless connection request includes returning rejection information to the device that transmitted the wireless connection request, or not directly processing the received wireless connection request.
Step S150: and if the current electric quantity is not lower than the preset electric quantity value, establishing wireless connection with the equipment sending the wireless connection request.
According to the connection control method, after the electronic equipment receives the wireless connection request, the current residual electric quantity is obtained, whether the current residual electric quantity is lower than the preset electric quantity value or not is detected, if the current residual electric quantity is lower than the preset electric quantity value, wireless connection is not established with the equipment sending the wireless connection request, and therefore the electronic equipment can have better endurance time in a state that the electric quantity is lower, and user experience is improved.
Referring to fig. 3, a connection control method provided by the present application is applied to an electronic device, and the method includes:
step S210: the electronic device receives a wireless connection request.
Step S220: detecting whether the electronic equipment is in a sound signal transmission state.
Wherein, the specific state of the sound signal transmission is related to the functions supported by the electronic device. For example, if the electronic device supports a mobile communication function, the sound signal transmission state includes a voice communication state. And if the electronic equipment supports the audio and video playing function, the sound signal transmission state comprises an audio signal output state. When the electronic equipment operates the call interface currently, the electronic equipment is judged to be in a voice communication state. And when detecting that the electronic equipment runs a music playing interface or a video playing interface, judging that the electronic equipment is in an audio signal output state.
Step S230: if the electronic device is not in the audio signal transmission state, step S250 is executed.
Step S230: and if the electronic equipment is in a sound signal transmission state, detecting whether the connection moment of the successfully established wireless connection is after the sound signal transmission state starts.
Generally, an electronic device can transmit an audio signal to other devices to enable the other devices to play the audio signal. And, the audio signal may be transmitted to other devices in a wireless transmission manner. It can be determined whether the electronic device establishes a wireless connection with another device for the purpose of audio playback by detecting whether the connection time of the successfully established wireless connection is after the start of the sound signal transmission state.
Step S240: and if the connection time of the successfully established wireless connection is after the sound signal transmission state is started, establishing wireless connection with the equipment sending the wireless connection request.
In this case, after detecting that the connection time of the successfully established wireless connection is after the sound signal transmission state starts, the characterization is to transmit the audio signal to other devices for playing, and in this case, a wireless connection request sent by the device that has successfully established the wireless connection is received again, and it is characterized that when the current sound signal transmission state has not ended, the electronic device is disconnected from the wireless communication before the other devices, and then when the other devices, that is, the device that has successfully established the wireless connection with the electronic device after the current sound signal transmission state starts, send a wireless connection request again, the device that has sent the wireless connection request may establish the wireless connection with the device that has sent the wireless connection request, so that the other devices may continue to play the audio signal transmitted by the electronic device. It is to be understood that other devices referred to in this embodiment are devices other than the electronic device that executes the main body of the steps in this embodiment.
The following describes the above-mentioned contents in a voice call environment by taking a mobile phone as an electronic device and an earphone as another device as examples. After the mobile phone is connected with the incoming calls of other mobile phones, the representation starts to enter a sound signal transmission state, and then after the incoming calls of other mobile phones are connected, wireless connection is established with the earphone based on a Bluetooth mode, the sound signals transmitted by other mobile phones are transmitted to the earphone for playing. Then after the headset leaves the bluetooth signal coverage broadcast by the handset, e.g., the user walks away with the headset, the headset may disconnect the established bluetooth connection from the handset based on the characteristics of the bluetooth communication protocol itself. Then, after the earphone returns to the coverage of the bluetooth signal broadcast by the mobile phone, the earphone will again make a bluetooth connection with the mobile phone through common knowledge, that is, a wireless connection request based on the bluetooth communication protocol is sent to the mobile phone again, and then the mobile phone will make a wireless connection with the earphone under the condition that the mobile phone still connects the incoming calls of other mobile phones, that is, still in the state of sound signal transmission.
Step S250: and if the connection moment of the successfully established wireless connection is before the transmission state of the sound signal, acquiring the current residual electric quantity.
And if the connection time of the successfully established wireless connection is before the sound signal transmission state is started, the electronic equipment is characterized to establish the wireless connection with other equipment and is not related to the sound signal transmission state of the electronic equipment, and whether the wireless connection request is accepted or not is determined based on the residual capacity.
Step S260: and detecting whether the current residual electric quantity is lower than a preset electric quantity value.
Step S270: and if the current residual electric quantity is lower than the preset electric quantity value, not establishing wireless connection with the equipment sending the wireless connection request.
Step S280: and if the current electric quantity is not lower than the preset electric quantity value, establishing wireless connection with the equipment sending the wireless connection request.
The connection control method provided by the application establishes wireless connection with the equipment sending the wireless connection request when the electronic equipment detects that the equipment sending the wireless connection request is the associated equipment in the current sound signal transmission state after receiving the wireless connection request, and detects that the device that sent the wireless connection request is not the associated device currently in a voice signal transmission state, detecting whether the current remaining power is lower than a preset power value, if the current remaining power is lower than the preset power value, not establishing wireless connection with the equipment sending the wireless connection request, therefore, the electronic equipment can have better endurance time in a state of lower electric quantity, user experience is improved, and high-quality user experience can be better provided in a sound signal transmission state of the electronic equipment.
Referring to fig. 4, a connection control method provided by the present application is applied to an electronic device, and the method includes:
step S310: the electronic device receives a wireless connection request.
Step S320: and acquiring the power consumption of the electronic equipment in a preset time period before the current time.
Step S330: detecting whether the power consumption is greater than a power consumption threshold.
In the present embodiment, the power consumption threshold is set in the same manner as the preset electric quantity value in the foregoing embodiment.
Step S340: and if the power consumption is not greater than the power consumption threshold, establishing wireless connection with the equipment sending the wireless connection request.
Step S350: and if the power consumption is larger than the power consumption threshold, acquiring the current residual power.
Step S360: and detecting whether the current residual electric quantity is lower than a preset electric quantity value.
Step S370: and if the current residual electric quantity is lower than the preset electric quantity value, not establishing wireless connection with the equipment sending the wireless connection request.
Step S380: and if the current electric quantity is not lower than the preset electric quantity value, establishing wireless connection with the equipment sending the wireless connection request.
According to the connection control method, after the electronic equipment receives the wireless connection request, whether the wireless connection is established with the equipment sending the wireless connection request or not is determined according to the current residual electric quantity according to the electric consumption of the electronic equipment in a period of time before, so that the electronic equipment can more flexibly determine whether the wireless connection request is received or not in a state that the electric quantity is low, and the user experience is improved.
Referring to fig. 5, a connection control apparatus 400 provided in the present application operates on an electronic device, where the apparatus 400 includes: a communication unit 410, a power acquisition unit 420, and a power detection unit 430.
A communication unit 410 for receiving a wireless connection request.
The wireless connection request is sent by the device which successfully establishes wireless connection with the electronic device.
A power acquiring unit 420, configured to acquire a current remaining power.
The power detection unit 430 is configured to detect whether the current remaining power is lower than a preset power value.
The communication unit 410 is configured to not establish a wireless connection with the device that sends the wireless connection request if the power detection unit 430 detects that the current remaining power is lower than the preset power value.
The communication unit 410 is further configured to establish a wireless connection with the device that sends the wireless connection request if the power detection unit 430 detects that the current remaining power is not lower than the preset power value.
Referring to fig. 6, a connection control apparatus 500 provided by the present application, operating on an electronic device, includes: a communication unit 510, a sound signal transmission state detection unit 520, an electric quantity acquisition unit 530, and an electric quantity detection unit 540.
A communication unit 510 for receiving a wireless connection request.
A sound signal transmission state detection unit 520, configured to detect whether the electronic device is in a sound signal transmission state, and if the electronic device is in the sound signal transmission state, detect whether the connection time of the successfully established wireless connection is after the sound signal transmission state starts;
the communication unit 510 is further configured to establish a wireless connection with the device that sent the wireless connection request if the connection time of the successfully established wireless connection detected by the sound signal transmission state detection unit 520 is after the sound signal transmission state starts.
An electric quantity obtaining unit 530, configured to obtain a current remaining electric quantity if the connection time of the successfully established wireless connection detected by the sound signal transmission state detecting unit 520 is before the start of the sound signal transmission state.
The power detection unit 540 is configured to detect whether the current remaining power is lower than a preset power value.
The communication unit 510 is configured to not establish a wireless connection with the device that sends the wireless connection request if the power detection unit 540 detects that the current remaining power is lower than the preset power value.
The communication unit 510 is further configured to establish a wireless connection with the device that sends the wireless connection request if the power detection unit 430 detects that the current remaining power is not lower than the preset power value.
Referring to fig. 7, a connection control apparatus 600 provided by the present application operates on an electronic device, where the apparatus 600 includes: a communication unit 610, a power consumption amount monitoring unit 620, a power consumption amount detection unit 630, a power amount acquisition unit 640, and a power amount detection unit 650.
A communication unit 610 for receiving a wireless connection request.
And a power consumption monitoring unit 620, configured to obtain power consumption of the electronic device in a preset time period before the current time.
A power consumption detecting unit 630, configured to detect whether the power consumption is greater than a power consumption threshold.
A communication unit 610, configured to establish a wireless connection with a device that sends the wireless connection request if the power consumption detection unit 630 detects that the power consumption is not greater than the power consumption threshold.
The power obtaining unit 640 is configured to obtain a current remaining power amount if the power consumption detecting unit 630 detects that the power consumption is greater than the power consumption threshold.
The power detection unit 650 is configured to detect whether the current remaining power is lower than a preset power value.
The communication unit 610 is configured to not establish a wireless connection with the device that sends the wireless connection request if the power detection unit 650 detects that the current remaining power is lower than the preset power value.
The communication unit 610 is further configured to establish a wireless connection with the device that sends the wireless connection request if the power detection unit 650 detects that the current remaining power is not lower than the preset power value.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
To sum up, the connection control method, the connection control device and the electronic equipment provided by the application acquire the current residual capacity after the electronic equipment receives the wireless connection request, detect whether the current residual capacity is lower than the preset electric quantity value, if the current residual capacity is lower than the preset electric quantity value, do not establish wireless connection with the equipment sending the wireless connection request, so that the electronic equipment can have better endurance time in a state of lower electric quantity, and user experience is improved.
An electronic device provided by the present application will be described with reference to fig. 8 and 9.
Referring to fig. 8, based on the connection control method and apparatus, an electronic device 100 capable of executing the connection control method is further provided in the embodiment of the present application. The electronic device 100 includes an electronic body 10, and the electronic body 10 includes a housing 12 and a first screen 120 disposed on the housing 12. The housing 12 may be made of metal, such as steel or aluminum alloy. In this embodiment, the first screen 120 and the second screen 121 generally include a display panel 111, and may also include a circuit and the like for responding to a touch operation performed on the display panel 111. The Display panel 111 may be a Liquid Crystal Display (LCD) panel, and in some embodiments, the Display panel 111 is a touch screen 109.
As shown in fig. 9, in an actual application scenario, the electronic device 100 may be used as a smartphone terminal, in which case the electronic body 10 generally further includes one or more processors 102 (only one is shown in the figure), a memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122. It will be understood by those skilled in the art that the present application is not intended to be limited to the configuration of the electronics body portion 10. For example, the electronics body section 10 may include more or fewer components than shown, or have a different configuration than shown.
Those skilled in the art will appreciate that all other components are peripheral devices with respect to the processor 102, and the processor 102 is coupled to the peripheral devices through a plurality of peripheral interfaces 124. The peripheral interface 124 may be implemented based on the following criteria: universal Asynchronous Receiver/Transmitter (UART), General Purpose Input/Output (GPIO), Serial Peripheral Interface (SPI), and Inter-Integrated Circuit (I2C), but the present invention is not limited to these standards. In some examples, the peripheral interface 124 may comprise only a bus; in other examples, the peripheral interface 124 may also include other elements, such as one or more controllers, for example, a display controller for interfacing with the display panel 111 or a memory controller for interfacing with a memory. These controllers may also be separate from the peripheral interface 124 and integrated within the processor 102 or a corresponding peripheral.
The memory 104 may be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 104. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 104 may further include memory remotely located from the processor 102, which may be connected to the electronic body portion 10 or the first screen 120 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The wireless module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The wireless module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The wireless module 106 may communicate with various networks, such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Mobile Communication (Enhanced Data GSM Environment, EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (WiFi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE 802.10A, IEEE802.11 b, IEEE802.1 g, and/or IEEE802.11 n), Voice over internet protocol (VoIP), world wide mail Access (Microwave for Wireless Communication), Wi-11 Wireless Access (wimax), and any other suitable protocol for instant messaging, and may even include those protocols that have not yet been developed.
The audio circuitry 110, speaker 101, sound jack 103, microphone 105 collectively provide an audio interface between a user and the electronic body portion 10 or the first screen 120. Specifically, the audio circuit 110 receives sound data from the processor 102, converts the sound data into an electrical signal, and transmits the electrical signal to the speaker 101. The speaker 101 converts an electric signal into a sound wave audible to the human ear. The audio circuitry 110 also receives electrical signals from the microphone 105, converts the electrical signals to sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be retrieved from the memory 104 or through the wireless module 106. In addition, audio data may also be stored in the memory 104 or transmitted via the wireless module 106. The wireless module 106 may be a bluetooth communication module, a WIFI communication module, or a module supporting other wireless communication protocols.
The sensor 114 is disposed in the electronic body portion 10 or the first screen 120, and examples of the sensor 114 include, but are not limited to: light sensors, operational sensors, pressure sensors, infrared heat sensors, distance sensors, gravitational acceleration sensors, and other sensors.
Specifically, the light sensors may include a light sensor 114F, a pressure sensor 114G. Among them, the pressure sensor 114G may be a sensor that detects pressure generated by pressing on the electronic apparatus 100. That is, the pressure sensor 114G detects pressure resulting from contact or pressing between the user and the electronic device, for example, contact or pressing between the user's ear and the electronic device. Thus, pressure sensor 114G may be used to determine whether contact or pressure has occurred between the user and electronic device 100, as well as the magnitude of the pressure.
Referring to fig. 9 again, in the embodiment shown in fig. 9, the light sensor 114F and the pressure sensor 114G are disposed adjacent to the display panel 111. The light sensor 114F can turn off the display output when an object is near the first screen 120, for example, when the electronic body 10 moves to the ear.
As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), detect the magnitude and direction of gravity when the electronic device is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping) and the like for recognizing the attitude of the electronic device 100. In addition, the electronic body 10 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer and a thermometer, which are not described herein,
in this embodiment, the input module 118 may include the touch screen 109 disposed on the first screen 120, and the touch screen 109 may collect a touch operation of a user on or near the touch screen 109 (for example, an operation of the user on or near the touch screen 109 using any suitable object or accessory such as a finger, a stylus, etc.) and drive a corresponding connection device according to a preset program. Optionally, the touch screen 109 may include a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 102, and can receive and execute commands sent by the processor 102. In addition, the touch detection function of the touch screen 109 may be implemented by using resistive, capacitive, infrared, and surface acoustic wave types. In addition to the touch screen 109, in other variations, the input module 118 may include other input devices, such as keys. The keys may include, for example, character keys for inputting characters, and control keys for triggering control functions. Examples of such control keys include a "back to home" key, a power on/off key, and the like.
The first screen 120 is used to display information input by a user, information provided to the user, and various graphic user interfaces of the electronic main body part 10, which may be composed of graphics, text, icons, numbers, videos, and any combination thereof, and in one example, the touch screen 109 may be provided on the display panel 111 so as to be integrated with the display panel 111.
The power module 122 is used to provide power supply to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (e.g., batteries or ac power), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components related to the generation, management, and distribution of power in the electronic body 10 or the first screen 120.
The electronic device 100 further comprises a locator 119, the locator 119 being configured to determine an actual location of the electronic device 100. In this embodiment, the locator 119 implements the positioning of the electronic device 100 by using a positioning service, which is understood to be a technology or a service for obtaining the position information (e.g., longitude and latitude coordinates) of the electronic device 100 by using a specific positioning technology and marking the position of the positioned object on the electronic map.
It should be understood that the electronic device 100 described above is not limited to a smartphone terminal, but it should refer to a computer device that can be used in mobile. Specifically, the electronic device 100 refers to a mobile computer device equipped with an intelligent operating system, and the electronic device 100 includes, but is not limited to, a smart phone, a smart watch, a tablet computer, and the like.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments. In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. A connection control method applied to an electronic device, the method comprising:
the electronic equipment receives a wireless connection request, wherein the wireless connection request is sent by equipment which successfully establishes wireless connection with the electronic equipment;
detecting whether the electronic equipment is in a sound signal transmission state;
if the electronic equipment is in a sound signal transmission state, detecting whether the connection moment of the successfully established wireless connection is behind the sound signal transmission state;
if the connection time of the wireless connection which is successfully established is after the sound signal transmission state is started, establishing wireless connection with the equipment which sends the wireless connection request;
if the connection time of the successfully established wireless connection is before the transmission state of the sound signal starts, acquiring the current residual electric quantity;
detecting whether the current residual electric quantity is lower than a preset electric quantity value;
and if the current residual electric quantity is lower than the preset electric quantity value, not establishing wireless connection with the equipment sending the wireless connection request.
2. The method of claim 1, wherein if the current power is not lower than the preset power value, establishing a wireless connection with a device sending the wireless connection request.
3. The method of claim 1, wherein the sound signal transmission state comprises:
the electronic equipment is in a voice communication state; or
The electronic device is in an audio signal output state.
4. The method of claim 1, wherein the step of obtaining the current remaining power further comprises:
acquiring the power consumption of the electronic equipment in a preset time period before the current time;
and when the power consumption is detected to be larger than the power consumption threshold, the current residual power is acquired.
5. A connection control apparatus, operable with an electronic device, the apparatus comprising:
the communication unit is used for receiving a wireless connection request, wherein the wireless connection request is sent by equipment which successfully establishes wireless connection with the electronic equipment;
a sound signal transmission state detection unit for detecting whether the electronic device is in a sound signal transmission state; if the electronic equipment is in a sound signal transmission state, detecting whether the connection moment of the successfully established wireless connection is behind the sound signal transmission state;
the communication unit is used for establishing wireless connection with the equipment sending the wireless connection request if the connection time of the wireless connection successfully established is after the sound signal transmission state is started
The electric quantity obtaining unit is used for obtaining the current residual electric quantity if the connection moment of the successfully established wireless connection is before the transmission state of the sound signal starts;
the electric quantity detection unit is used for detecting whether the current residual electric quantity is lower than a preset electric quantity value or not;
the communication unit is configured to not establish a wireless connection with the device that sends the wireless connection request if the electric quantity detection unit detects that the current remaining electric quantity is lower than the preset electric quantity value.
6. The apparatus according to claim 5, wherein the communication unit is further configured to establish a wireless connection with the device that sent the wireless connection request if the power detection unit detects that the current remaining power is not lower than the preset power value.
7. An electronic device comprising one or more processors and memory;
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-4.
8. A computer-readable storage medium having program code executable by a processor, the computer-readable storage medium comprising a stored program, wherein the method of any of claims 1-4 is performed when the program is run.
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 CN108449787A (en) 2018-08-24
CN108449787B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291833B (en) * 2019-07-23 2023-01-13 华为技术有限公司 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
CN112866983B (en) * 2021-01-19 2024-01-12 维沃移动通信有限公司 Control method, control device and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101690651B1 (en) * 2010-02-25 2016-12-29 삼성전자주식회사 Method and apparatus for performing handover
CN102394987B (en) * 2011-11-11 2013-11-20 大唐移动通信设备有限公司 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
CN104639743B (en) * 2015-01-13 2018-01-19 广东欧珀移动通信有限公司 A kind of ultralow electricity processing method of terminal and terminal

Also Published As

Publication number Publication date
CN108449787A (en) 2018-08-24

Similar Documents

Publication Publication Date Title
CN105098848B (en) Wireless charging method and system and mobile terminal
CN108990105B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN107742523B (en) Voice signal processing method and device and mobile terminal
CN107231159B (en) Radio frequency interference processing method, device, storage medium and terminal
CN107566985B (en) Method and device for determining main SIM card of mobile terminal
CN109413526B (en) Earphone control method, earphone control device, electronic equipment and storage medium
CN108966296B (en) Signal prompting method, mobile terminal and computer readable storage medium
CN109151212B (en) Equipment control method and device and electronic equipment
CN108668328B (en) Network switching method and mobile terminal
CN107959952B (en) Method and terminal for detecting inter-system cell
CN108449787B (en) Connection control method and device and electronic equipment
CN108495349B (en) Switching method of operator network and mobile terminal
CN107948919B (en) Shared information processing method and mobile terminal
EP3419266A1 (en) Method and terminal for situation-dependent call control
CN108235237B (en) Data reporting method and device, mobile terminal and computer readable medium
CN111818593A (en) Network switching method and terminal
CN109151741B (en) Multimedia message receiving method and terminal
CN111371705A (en) Download task execution method and electronic equipment
CN108934025B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN108566684B (en) Communication connection establishing method and related equipment
CN108200546B (en) Data reporting method and device, mobile terminal and computer readable medium
CN108848566B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN108924868B (en) WiFi disconnection adjusting method and device, mobile terminal and storage medium
CN108901062B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN108990104B (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