Nothing Special   »   [go: up one dir, main page]

CN109542205A - Electronic equipment, data processing method and storage medium - Google Patents

Electronic equipment, data processing method and storage medium Download PDF

Info

Publication number
CN109542205A
CN109542205A CN201811360828.2A CN201811360828A CN109542205A CN 109542205 A CN109542205 A CN 109542205A CN 201811360828 A CN201811360828 A CN 201811360828A CN 109542205 A CN109542205 A CN 109542205A
Authority
CN
China
Prior art keywords
battery
data
equipment
processed
processor
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
CN201811360828.2A
Other languages
Chinese (zh)
Other versions
CN109542205B (en
Inventor
杨鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811360828.2A priority Critical patent/CN109542205B/en
Publication of CN109542205A publication Critical patent/CN109542205A/en
Application granted granted Critical
Publication of CN109542205B publication Critical patent/CN109542205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] 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
    • 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)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the present application provides a kind of electronic equipment, data processing method and storage medium, electronic equipment includes the first equipment and the second equipment of communication connection, first equipment includes the first battery, first memory, comparator and first processor, first processor is electrically connected with the first battery, first memory and comparator respectively, and the second equipment includes the second battery;First memory is stored with the first pending data;Comparator is used to compare the size of the first electricity of the first battery and the second electricity of the second battery, to obtain comparison result;First processor be used for according to comparison result from the first equipment and the second equipment selection target equipment to handle the first pending data.The embodiment of the present application can reduce the consumption of electricity in the lower equipment of electricity.

Description

Electronic device, data processing method, and storage medium
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to an electronic device, a data processing method, and a storage medium.
Background
With the development of communication technology, electronic devices such as smart phones are becoming more and more popular. During the use of the electronic device, a battery in the electronic device serves as a power source to supply power to electrical consumers of the electronic device, such as a processor, a display screen, and the like.
The split type equipment can comprise a host and an extension which are connected, the host can be provided with a main battery, and the main battery can supply power for the host. The extension set can be provided with a sub battery which can supply power for the extension set. The power consumption situations of the host and the extension are possibly different, and the situation that the power of the host is exhausted and the power of the extension is sufficient exists. There may also be situations where the extension power is exhausted and the host power is sufficient. Resulting in the whole split type device not being able to be used normally.
Disclosure of Invention
Embodiments of the present application provide an electronic device, a data processing method, and a storage medium, which can reduce consumption of a battery with a low electric quantity in the electronic device.
The embodiment of the application provides an electronic device, which comprises a first device and a second device which are in communication connection, wherein the first device comprises a first battery, a first memory, a comparator and a first processor, the first processor is respectively electrically connected with the first battery, the first memory and the comparator, and the second device comprises a second battery;
the first memory stores first data to be processed;
the comparator is used for comparing the first electric quantity of the first battery with the second electric quantity of the second battery to obtain a comparison result;
the first processor is used for selecting target equipment from the first equipment and the second equipment according to the comparison result so as to process the first data to be processed.
The embodiment of the application provides a data processing method, which is applied to electronic equipment, wherein the electronic equipment comprises a first device and a second device which are in communication connection, and the method comprises the following steps:
the first equipment receives first data to be processed;
the first equipment acquires a first electric quantity of the first equipment and a second electric quantity of the second equipment;
the first equipment compares the first electric quantity with the second electric quantity to obtain a comparison result;
and the first equipment selects target equipment from the first equipment and the second equipment according to the comparison result so as to process the first data to be processed.
An embodiment of the present application provides a storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method as described above.
In the embodiment of the application, the first processor can select the target equipment with more electric quantity according to the result obtained by comparing the comparator, and the first data to be processed is processed by the target equipment, so that the consumption of the electric quantity in the equipment with lower electric quantity can be reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is an exploded view of the electronic device shown in fig. 1.
Fig. 3 is a block diagram of the first device shown in fig. 2.
Fig. 4 is a block diagram of the second device shown in fig. 2.
Fig. 5 is a block diagram of an electronic device provided in an embodiment of the present application.
Fig. 6 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 7 is a schematic flowchart of a data processing method according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides electronic equipment, a data processing method and a storage medium. The details will be described below separately. The electronic device may be a smartphone, a tablet computer, or the like.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, and fig. 2 is an exploded view of the electronic device shown in fig. 1. The electronic device 10 may include a first device 100 and a second device 200. The first device 100 and the second device 200 may be physically connected, such as the first device 100 and the second device 200 being detachably and fixedly connected. When the first device 100 and the second device 200 are physically connected or physically separated, the communication may be achieved through a wired or wireless manner, for example, the communication between the first device 100 and the second device 200 may be achieved through a manner of plugging a signal line with an interface. For example, the first device 100 and the second device 200 communicate wirelessly via bluetooth, WIreless Fidelity (WiFi), and the like.
In the description of the present application, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features.
It should be noted that the first device 100 and the second device 200 may only implement communication without physical connection. For example, the first device 100 is a smart phone, the second device 200 is an Augmented Reality (AR) device, an earphone, a smart band, and other accessories, and the first device 100 and the second device 200 implement communication in a wireless manner.
It should also be noted that, in the description of the present application, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
The first device 100 may be a master device of the electronic device 10, and the first device 100 may be used alone. In some embodiments, the first device 100 may include a first circuit board 120, a first battery 140, and a first housing 160. The first circuit board 120 and the first battery 140 may be mounted in the first case 160. The first battery 140 is electrically connected to the first circuit board 120, and the first battery 140 provides power for the first device 100.
Referring to fig. 3, fig. 3 is a block diagram of the first device shown in fig. 2. The first device 100 may include a first processor 122, a first memory 124, and a first communication circuit 126. The first processor 122, the first memory 124, and the first communication circuit 126 may all be integrated on the first circuit board 120. It should be noted that the first processor 122, the first memory 124 and the first communication circuit 126 may also be disposed separately from the first circuit board 120 according to requirements.
The first communication circuit 126 may be electrically connected to the first processor 122. The first communication circuit 126 may include a first short-range communication circuit and/or a first wired communication circuit. Wherein the first short-range communication circuit may comprise bluetooth or WiFi. The first wired communication circuit may include a Universal Serial Bus (USB) interface.
The first memory 124 may be electrically connected to the first processor 122. The first memory 124 may be used to store computer programs and data. The first memory 124 stores computer programs containing instructions or programs executable in the first processor 122, for example, the first memory 124 stores first data to be processed in the first apparatus 100. The computer program may constitute various functional modules. The first data to be processed may be data of an operating program, a process, and the like.
The first processor 122 is electrically connected to the first battery 140. The first processor 122 may serve as a control center of the first device 100, may connect various parts of the entire first device 100 by using various interfaces and lines, and perform various functions of the first device 100 and process data by running or loading a computer program stored in the first memory 124 and calling data stored in the first memory 124, thereby performing overall monitoring of the first device 100. In some embodiments, the first processor 122 may process the first data to be processed stored in the first memory 124.
The first casing 160 may serve as an external frame of the first device 100, and forms a main structure of the first device 100. The first housing 160 may be made of plastic material, metal material, ceramic material, glass material, etc. In some embodiments, the first housing 160 is provided with a placement groove 162, the placement groove 162 can place the second device 200, and the second device 200 placed in the placement groove 162 can be wrapped by the sidewall of the placement groove 162 to limit the position of the second device 200. The first housing 160 may not be provided with the placement groove 162, and the second device 200 may be directly provided on the outer surface of the first housing 160.
Note that the first apparatus 100 is not limited to the above components. For example, first device 100 may include a first camera assembly that may include a camera, an ambient light sensor, an infrared sensor, a flash, etc. The first camera assembly may be directly disposed on the first circuit board 120 of the first device 100, or may be electrically connected to the first circuit board 120 of the first device 100 through a signal line.
Also for example, the first device 100 may include a first display screen that may display a picture.
Wherein the second device 400 may be a sub-device of the electronic device 10, and the second device 400 may be used alone. The second device 400 may also be a master device of the electronic device 10, and the first device 200 may also be a slave device of the electronic device 10.
In some embodiments, the second device 200 may include a second display 202 and a third display 204, and the second display 202 and the third display 204 may be fixedly connected by a connection portion 206 to form an integral structure. The second display screen 202, the connecting portion 206, and the third display screen 204 may be made of a flexible material to form an integral structure, so as to form a full-screen display screen. That is, the second display 202, the connecting portion 206, and the third display 204 are integrally formed, and the second display 202, the connecting portion 206, and the third display 204 can display images together. The second display 202, the connecting portion 206 and the third display 204 can be folded or folded.
Note that the second display 202, the connection portion 206, and the third display 204 may not be integrally formed. The connecting portion 206 may be made of a flexible material, the connecting portion 206 may be bent and folded, and the second display 202 and the third display 204 may move relative to the connecting portion 206, or be bent and folded. The connection unit 206 may or may not display a screen.
In some embodiments, the second display 202, the connection portion 206, and the third display 204 may be disposed within the placement slot 162 of the first housing 160, enabling physical connection of the first device 100 and the second device 200. The second display 202, the connecting portion 206 and the third display 204 can also be detached from the placement groove 162, so as to physically separate the first device 100 and the second device 200. The first device 100 and the second device 200 can be detachably and fixedly connected by clamping, buckling and the like. Wherein the second display 202 and the third display 204 may be disposed on two opposite sides of the first casing 160. Wherein the connection portion 206 may be provided on one side surface of the first housing 160.
In some embodiments, the second device 200 may include a second circuit board 220 and a second battery 240. The second circuit board 220 and the second battery 240 may be disposed within the second display screen 202, and the second circuit board 220 and the second battery 240 may also be disposed within the third display screen 204. It should be noted that the second circuit board 220 and the second battery 240 may also be separately disposed, for example, the second circuit board 220 is disposed in the second display 202, and the second battery 240 is disposed in the third display 204. The second circuit board 220 is electrically connected to a second battery 240, and the second battery 240 provides power for the second device 200.
Referring to fig. 4, fig. 4 is a block diagram of the second apparatus shown in fig. 2. The second device 200 may include a second processor 222, a second memory 224, and second communication circuitry 226. The second processor 222, the second memory 224, and the second communication circuit 226 may all be integrated on the second circuit board 220. It should be noted that the second processor 222, the second memory 224 and the second communication circuit 226 may be disposed separately from the second circuit board 220 according to requirements.
The second communication circuit 226 may be electrically connected to the second processor 222. The second communication circuit 226 may include a second short-range communication circuit and/or a second wired communication circuit. Wherein the second short-range communication circuit may comprise bluetooth or WiFi. The second wired communication circuit may include a Universal Serial Bus (USB) interface. The second communication circuit 226 and the first communication circuit 126 may implement wired or wireless communication.
The second memory 224 may be electrically connected to the second processor 222. The second memory 224 may be used for storing computer programs and data. The second memory 224 stores computer programs including instructions or programs executable in the second processor 222, for example, the second memory 224 stores second data to be processed in the second device 200. In some embodiments, the second memory 224 stores computer programs and data that are smaller than the first memory 124.
The second processor 222 is electrically connected to the second battery 240. The second processor 222 may serve as a control center of the second device 200, may connect various parts of the entire second device 200 using various interfaces and lines, and perform various functions of the second device 200 and process data by running or loading a computer program stored in the second memory 224 and calling data stored in the second memory 224, thereby performing overall monitoring of the second device 200. In some embodiments, the second processor 222 may process the second data to be processed stored in the second memory 224.
In some embodiments, the second processor 222 has less capacity to process computer programs and data than the first memory 124.
In some embodiments, the storage capacity of second battery 240 is less than the storage capacity of first battery 140.
In some embodiments, the second processor 222 may also process the first data to be processed stored in the first memory 124.
Referring to fig. 5, fig. 5 is a block diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 10 may also include a first fuel gauge 142, a second fuel gauge 242, and a comparator 128.
Therein, the first fuel gauge 142 may be disposed within the first device 100, such as the first fuel gauge 142 being integrated on the first circuit board 120 of the first device 100. It should be noted that the first fuel gauge 142 may also be disposed between the first battery 140 and the first circuit board 120. The first electricity meter 142 may be electrically connected to the first battery 140, and the first electricity meter 142 may obtain a first remaining capacity of the first battery 140. And the first electricity meter 142 may transmit the first remaining circuit of the first battery 140 it acquires to the comparator 128.
It should be noted that the first fuel gauge 142 is not limited to obtain the first remaining capacity of the first battery 140, and the first fuel gauge 142 may also obtain the first remaining capacity percentage of the first battery 140. The first remaining capacity percentage is a ratio of the current state of charge to the fully charged state of the first battery 140.
Therein, the second electricity meter 242 may be provided within the second device 200, such as the second electricity meter 242 being integrated on the second circuit board 220 of the second device 100. It should be noted that the second electricity meter 242 may also be disposed between the second battery 240 and the second circuit board 220. The second electricity meter 242 may be electrically connected to the second battery 240, and the second electricity meter 242 may obtain a second remaining capacity of the second battery 240. And the second electricity meter 242 may transmit the second remaining amount of the second battery 240 it acquired to the second processor 222 and to the comparator 128 by communication of the second communication circuit 226 with the first communication circuit 126.
It should be noted that the second electricity meter 242 is not limited to obtain the second remaining capacity of the second battery 240, and the second electricity meter 242 may also obtain the second remaining capacity percentage of the second battery 240. Wherein the second remaining capacity percentage is a ratio of the current state of charge to the fully charged state of the second battery 240.
Therein, the comparator 128 may be provided within the first device 100, such as the comparator 128 being integrated on the first circuit board 120 of the first device 100. The comparator 128 may be electrically connected to the first processor 122, and the comparator 128 may also be directly integrated on the first processor 122.
It should be noted that the comparator 128 is not limited to be disposed in the first device 100. The comparator 128 may also be provided within the second device 200, such as the comparator 128 being integrated on the second circuit board 220 of the second device 200. The comparator 128 may be electrically connected to the second processor 222, and the comparator 128 may also be directly integrated on the second processor 222.
In some embodiments, the comparator 128 may acquire the first remaining amount of the first battery 140 from the first electricity meter 142, and the comparator 128 may acquire the second remaining amount of the second battery 240 from the second electricity meter 242. Then, the comparator 128 may compare the first remaining capacity of the first battery 140 with the second remaining capacity of the second battery 240 and may derive a comparison result, and the comparator 128 may transmit the comparison result to the first processor 122. It should be noted that the first processor 122 may also obtain the comparison result from the comparator 128.
Wherein the comparison result comprises: the first remaining capacity of the first battery 140 is greater than the second remaining capacity of the second battery 240, the first remaining capacity of the first battery 140 is less than the second remaining capacity of the second battery 240, and the first remaining capacity of the first battery 140 is substantially equal to the second remaining capacity of the second battery 240. It is understood that the first remaining capacity of the first battery 140 is approximately equal to the second remaining capacity of the second battery 240 within a small range. The range in which the first remaining capacity of the first battery 140 is substantially equal to the second remaining capacity of the second battery 240 may be set according to actual needs.
In some embodiments, the comparator 128 may obtain a first percentage of remaining charge of the first battery 140 from the first fuel gauge 142, and the comparator 128 may obtain a second percentage of remaining charge of the second battery 240 from the second fuel gauge 242. The comparator 128 may then compare the magnitudes of the first percentage of remaining charge of the first battery 140 and the second percentage of remaining charge of the second battery 240 and may derive a comparison result, and the comparator 128 may transmit the comparison result to the first processor 122. It should be noted that the first processor 122 may also obtain the comparison result from the comparator 128.
Wherein the comparison result comprises: the first percentage of remaining capacity of the first battery 140 is greater than the second percentage of remaining capacity of the second battery 240, the first percentage of remaining capacity of the first battery 140 is less than the second percentage of remaining capacity of the second battery 240, and the first percentage of remaining capacity of the first battery 140 is substantially equal to the second percentage of remaining capacity of the second battery 240. It is understood that the first percentage of remaining charge of the first battery 140 is approximately equal to the second percentage of remaining charge of the second battery 240 within a small range. The range in which the first remaining capacity percentage of the first battery 140 is substantially equal to the second remaining capacity percentage of the second battery 240 may be set according to actual needs.
After the first processor 122 obtains the comparison result between the first remaining capacity percentage of the first battery 140 and the second remaining capacity percentage of the second battery 240 from the comparator 128, the first processor 122 may select a target device from the first device 100 and the second device 200 to process the first to-be-processed data or/and the second to-be-processed data according to the comparison result.
Specifically, when the comparison result of the comparator 128 is that the first remaining capacity percentage of the first battery 140 is smaller than the second capacity percentage of the second battery, the first processor 122 may select the second device 200 as the target device to process the first to-be-processed data through the second device 200. The first apparatus 100 may transmit the first data to be processed to the second apparatus 200 through communication of the first communication circuit 126 and the second communication circuit 226, and process the first data to be processed by the second processor 222 of the second apparatus 200. The second processor 222 may directly display the first data to be processed by the second display 202 and the third display 204 after processing the first data to be processed, and the second processor 222 may also transmit the processing result to the first device 100 after processing the first data to be processed. Meanwhile, the second processor 222 may also process the second data to be processed.
Further, when the comparison result of the comparator 128 is that the first remaining capacity percentage of the first battery 140 is smaller than the second capacity percentage of the second battery, and the difference between the second capacity percentage of the second battery and the first remaining capacity percentage of the first battery 140 is greater than the preset value, the first processor 122 may select the second device 200 as the target device to process the first to-be-processed data through the second device 200. Wherein, the preset value can be 10%, 12%, 15%, 17%, 20%, etc.
When the comparison result of the comparator 128 is that the first remaining capacity percentage of the first battery 140 is greater than the second capacity percentage of the second battery, the first processor 122 may select the first device 100 as the target device to process the second to-be-processed data through the first processor 122 of the first device 100. The second device 200 may transmit the second data to be processed to the first device 100 through communication of the first communication circuit 126 and the second communication circuit 226, and process the second data to be processed by the first processor 122 of the first device 100. After the first processor 122 processes the second data to be processed, the processing result may be returned to the second device 200, and may be displayed by the second display 202 and the third display 204. Meanwhile, the first processor 122 may also process the first data to be processed, and the first processor 122 may also transmit a processing result of processing the first data to be processed to the second device 200, which may be displayed by the second display 202 and the third display 204.
Further, when the comparison result of the comparator 128 is that the first remaining capacity percentage of the first battery 140 is greater than the second capacity percentage of the second battery, and the difference between the first remaining capacity percentage of the first battery 140 and the second capacity percentage of the second battery is greater than the preset value, the first processor 122 may select the first device 100 as a target device to process the second data to be processed by the first device 100. Wherein, the preset value can be 10%, 12%, 15%, 17%, 20%, etc.
Therefore, the equipment with more residual electric quantity percentage processes data, the electric quantity of the battery in the equipment with more residual electric quantity percentage can be quickened, and the electric quantity of the battery in the equipment with less residual electric quantity percentage can be saved. The standby time period of the electronic device 10 may be increased. And when the difference of the residual capacity percentages of the batteries is not large, the residual capacity percentages of the batteries are not large, and the data transfer processing is not needed, but the data transfer processing is carried out under the condition that the difference of the residual capacity percentages of the batteries is larger than a certain threshold value.
When the comparison result of the comparator 128 is that the first remaining capacity percentage of the first battery 140 is substantially equal to the second remaining capacity percentage of the second battery, the first processor 122 may select the target device from the first device 100 to process the second data to be processed through the first processor 122 of the first device 100, because the processing capacity of the first processor 122 in the first device 100 is greater than the processing capacity of the second processor 222 in the second device 200. Meanwhile, the first processor 122 may also process the first data to be processed. It is understood that when the comparison result of the comparator 128 is that the first remaining capacity percentage of the first battery 140 is substantially equal to the second capacity percentage of the second battery, the first processor 122 may process the first data to be processed, and the second processor 222 may process the second data to be processed.
It should be noted that the first percentage of remaining capacity of the first battery 140 is substantially equal to the second percentage of remaining capacity of the second battery, and the difference between the first percentage of remaining capacity of the first battery 140 and the second percentage of remaining capacity of the second battery ranges from 0% to 5%.
Under the condition that the residual electric quantity percentages of the two batteries are approximately equal, the data processing can be accelerated by processing the data by the processor with strong processing capacity, the processing speed can be improved relatively, and the electric quantity is saved in a phase-changing manner. And the battery capacity of the end of the processor with stronger processing capability is larger, so that the residual electric quantity of the two batteries of the two devices can be relatively balanced, the standby time of the electronic device 10 can be prolonged, and the user can use the electronic device 10 normally.
The above is a specific example of the processing of data by the electronic device 10 having at least two parts according to the embodiment of the present application. The specific structure of the electronic device 10 is not limited thereto, nor is the manner in which the electronic device 10 processes data.
For example, please refer to fig. 6, and fig. 6 is another schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The first device 100 and the second device 200 in the electronic device 10 may be fixedly connected. The second device 200 may be fixed to the first device 100, and the second device 200 may be detachable from the first device 100.
Among other things, the first housing 160 of the first device 100 may include a first body 164, a second body 166, and a rotation shaft 168. The first body 164 and the rotating shaft 168 are connected by a hinge, for example, the first body 164 and the rotating shaft 168 are connected by a pin, and the first body 164 can rotate around the rotating shaft 168. The second body 166 and the rotating shaft 168 are connected by a hinge, for example, the second body 166 and the rotating shaft 168 are connected by a pin, and the second body 166 can rotate around the rotating shaft 168.
In some embodiments, the first body 164 and the second body 166 can be folded together by rotating the shaft 168 to form a folded state. In the folded state, the first body 164 and the second body 166 are at least partially overlapped, and the first body 164 and the second body 166 are located on the same side of the rotation shaft 168. The first and second bodies 164 and 166 may be separated by rotating a rotation shaft 168 to form an open state. In the open state, the first and second bodies 164 and 166 do not overlap, and the first and second bodies 164 and 166 are located at both sides of the rotation shaft 168, respectively.
Wherein the second display 202 of the second device 200 may be disposed on the first body 164, the third display 204 of the second device 200 may be disposed on the second body 166, and the connection portion 206 of the second device 200 may be disposed on the rotation shaft 168. The second display 202 and the third display 204 may be folded by a connection portion 206.
The following is described from the perspective of a method of processing data.
Referring to fig. 7, fig. 7 is a schematic flowchart illustrating a data processing method according to an embodiment of the present disclosure. With reference to fig. 1 to 6, the data processing method may include:
301. the first device 100 receives first data to be processed.
Therein, the first data to be processed may be stored in the first memory 124 of the first device 100.
302. The first device 100 acquires a first power of the first device 100 and a second power of the second device 200.
The first capacity of the first device 100 may be a first remaining capacity of the first battery 140 in the first device 100, and the first capacity of the first device 100 may also be a first remaining capacity percentage of the first battery 140 in the first device 100. The first remaining capacity or the first remaining capacity percentage of the first battery 140 may be acquired by a first electricity meter 142 within the first device 100.
The first electricity meter 142 may transmit the acquired data to the comparator 128 after acquiring the first remaining capacity or the first remaining capacity percentage of the first battery 140. Of course, it may be actively acquired by the comparator 128.
The second capacity of the second device 200 may be a second remaining capacity of the second battery 240 in the second device 200, and the second capacity of the second device 200 may also be a second remaining capacity percentage of the second battery 240 in the second device 200. The second remaining capacity or the second remaining capacity percentage of the second battery 240 may be acquired by a second capacity meter 242 within the second device 200.
The second electricity meter 242 may transmit the acquired data to the comparator 128 after acquiring the second remaining amount or the second remaining amount percentage of the second battery 240. Of course, it may be actively acquired by the comparator 128.
303. The first device 100 compares the first power amount and the second power amount to obtain a comparison result.
The first device 100 may compare the first remaining capacity percentage of the first battery 140 with the second remaining capacity percentage of the second battery 242 by the comparator 128 disposed in the first device 100 to obtain a comparison result.
Wherein the comparison result comprises: the first percentage of remaining capacity of the first battery 140 is greater than the second percentage of remaining capacity of the second battery 240, the first percentage of remaining capacity of the first battery 140 is less than the second percentage of remaining capacity of the second battery 240, and the first percentage of remaining capacity of the first battery 140 is substantially equal to the second percentage of remaining capacity of the second battery 240. It is understood that the first percentage of remaining charge of the first battery 140 is approximately equal to the second percentage of remaining charge of the second battery 240 within a small range. The range in which the first remaining capacity percentage of the first battery 140 is substantially equal to the second remaining capacity percentage of the second battery 240 may be set according to actual needs.
It should be noted that, when the comparator 128 is disposed in the second device 200, the second device 200 compares the first power amount with the second power amount to obtain a comparison result.
304. The first apparatus 100 selects a target apparatus from the first apparatus 100 and the second apparatus 200 to process the first data to be processed according to the comparison result.
When the comparison result of the comparator 128 is that the first remaining capacity percentage of the first battery 140 is smaller than the second capacity percentage of the second battery, the first processor 122 may select the second apparatus 200 as the target apparatus to process the first to-be-processed data through the second apparatus 200. The first apparatus 100 may transmit the first data to be processed to the second apparatus 200 through communication of the first communication circuit 126 and the second communication circuit 226, and process the first data to be processed by the second processor 222 of the second apparatus 200. The second processor 222 may directly display the first data to be processed by the second display 202 and the third display 204 after processing the first data to be processed, and the second processor 222 may also transmit the processing result to the first device 100 after processing the first data to be processed. Meanwhile, the second processor 222 may also process the second data to be processed.
Further, when the comparison result of the comparator 128 is that the first remaining capacity percentage of the first battery 140 is smaller than the second capacity percentage of the second battery, and the difference between the second capacity percentage of the second battery and the first remaining capacity percentage of the first battery 140 is greater than the preset value, the first processor 122 may select the second device 200 as the target device to process the first to-be-processed data through the second device 200. Wherein, the preset value can be 10%, 12%, 15%, 17%, 20%, etc.
When the comparison result of the comparator 128 is that the first remaining capacity percentage of the first battery 140 is greater than the second capacity percentage of the second battery, the first processor 122 may select the first device 100 as the target device to process the second to-be-processed data through the first processor 122 of the first device 100. The second device 200 may transmit the second data to be processed to the first device 100 through communication of the first communication circuit 126 and the second communication circuit 226, and process the second data to be processed by the first processor 122 of the first device 100. After the first processor 122 processes the second data to be processed, the processing result may be returned to the second device 200, and may be displayed by the second display 202 and the third display 204. Meanwhile, the first processor 122 may also process the first data to be processed, and the first processor 122 may also transmit a processing result of processing the first data to be processed to the second device 200, which may be displayed by the second display 202 and the third display 204.
Further, when the comparison result of the comparator 128 is that the first remaining capacity percentage of the first battery 140 is greater than the second capacity percentage of the second battery, and the difference between the first remaining capacity percentage of the first battery 140 and the second capacity percentage of the second battery is greater than the preset value, the first processor 122 may select the first device 100 as a target device to process the second data to be processed by the first device 100. Wherein, the preset value can be 10%, 12%, 15%, 17%, 20%, etc.
Therefore, the equipment with more residual electric quantity percentage processes data, the electric quantity of the battery in the equipment with more residual electric quantity percentage can be quickened, and the electric quantity of the battery in the equipment with less residual electric quantity percentage can be saved. And when the difference of the residual capacity percentages of the batteries is not large, the residual capacity percentages of the batteries are not large, and the data transfer processing is not needed, but the data transfer processing is carried out under the condition that the difference of the residual capacity percentages of the batteries is larger than a certain threshold value.
When the comparison result of the comparator 128 is that the first remaining capacity percentage of the first battery 140 is substantially equal to the second remaining capacity percentage of the second battery, the first processor 122 may select the target device from the first device 100 to process the second data to be processed through the first processor 122 of the first device 100, because the processing capacity of the first processor 122 in the first device 100 is greater than the processing capacity of the second processor 222 in the second device 200. Meanwhile, the first processor 122 may also process the first data to be processed. It is understood that when the comparison result of the comparator 128 is that the first remaining capacity percentage of the first battery 140 is substantially equal to the second capacity percentage of the second battery, the first processor 122 may process the first data to be processed, and the second processor 222 may process the second data to be processed.
It should be noted that the first percentage of remaining capacity of the first battery 140 is substantially equal to the second percentage of remaining capacity of the second battery, and the difference between the first percentage of remaining capacity of the first battery 140 and the second percentage of remaining capacity of the second battery ranges from 0% to 5%.
Under the condition that the residual electric quantity percentages of the two batteries are approximately equal, the data processing can be accelerated by processing the data by the processor with strong processing capacity, the processing speed can be improved relatively, and the electric quantity is saved in a phase-changing manner. And the battery capacity at the end of the processor with the stronger processing capability is larger, so that the residual capacities of the two batteries of the two devices can be relatively balanced, and the user can normally use the electronic device 10.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the data processing method described in the foregoing embodiment
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The electronic device, the data processing method, and the storage medium provided in the embodiments of the present application are described in detail above. The principles and implementations of the present application are described herein using specific examples, which are presented only to aid in understanding the present application. Meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. An electronic device, comprising a first device and a second device which are connected in communication, wherein the first device comprises a first battery, a first memory, a comparator and a first processor, the first processor is electrically connected with the first battery, the first memory and the comparator respectively, and the second device comprises a second battery;
the first memory stores first data to be processed;
the comparator is used for comparing the first electric quantity of the first battery with the second electric quantity of the second battery to obtain a comparison result;
the first processor is used for selecting target equipment from the first equipment and the second equipment according to the comparison result so as to process the first data to be processed.
2. The electronic device of claim 1, wherein when the comparison result is that the first power of the first battery is smaller than the second power of the second battery, the first processor is configured to select the second device as a target device for processing the first data to be processed by the second device.
3. The electronic device of claim 2, wherein when the comparison result is that the first power of the first battery is less than the second power of the second battery, the first device transmits the first data to be processed to the second device, and the second device receives the first data to be processed and processes the first data to be processed.
4. The electronic device of claim 2, wherein when the comparison result indicates that the first power of the first battery is smaller than the second power of the second battery, and the difference between the first power of the first battery and the second power of the second battery is greater than a preset value, the first processor is configured to select the second device as a target device to process the first to-be-processed data through the second device.
5. The electronic device of claim 1, wherein when the comparison result is that the first power amount of the first battery is equal to the second power amount of the second battery, the first processor is configured to select a device with a high processing capability from the first device and the second device as a target device to process the first data to be processed.
6. The electronic device of claim 1, wherein the first processor is configured to select the first device as a target device and process the first to-be-processed data when the comparison result indicates that a first power of the first battery is greater than a second power of the second battery.
7. The electronic device of any of claims 1-6, wherein a capacity of the first battery is greater than a capacity of the second battery, and wherein a processing capacity of the first processor is greater than a processing capacity of the second processor.
8. The electronic device of any of claims 1-6, wherein the second device comprises a display screen for displaying results of processing the data to be processed.
9. A data processing method is applied to an electronic device, and is characterized in that the electronic device comprises a first device and a second device which are connected in a communication mode, and the method comprises the following steps:
the first equipment receives first data to be processed;
the first equipment acquires a first electric quantity of the first equipment and a second electric quantity of the second equipment;
the first equipment compares the first electric quantity with the second electric quantity to obtain a comparison result;
and the first equipment selects target equipment from the first equipment and the second equipment according to the comparison result so as to process the first data to be processed.
10. The data processing method of claim 9, wherein the first device selects a target device from the first device and the second device to process the first data to be processed according to the comparison result, comprising:
if the comparison result shows that the electric quantity of the first battery is smaller than the electric quantity of the second battery, the first equipment selects the second electronic equipment as target equipment, and the second equipment processes the first data to be processed; or,
if the comparison result is that the electric quantity of the first battery is equal to the electric quantity of the second battery, the first device selects the first device and the second electronic device with strong processing capacity as target devices to process the first to-be-processed data; or,
and if the comparison result shows that the electric quantity of the first battery is larger than that of the second battery, the first equipment selects the first equipment as target equipment and processes the first to-be-processed data.
11. A storage medium having a computer program stored thereon, which, when being executed by a processor, carries out the steps of the method as claimed in claim 9.
CN201811360828.2A 2018-11-15 2018-11-15 Electronic device, data processing method, and storage medium Active CN109542205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811360828.2A CN109542205B (en) 2018-11-15 2018-11-15 Electronic device, data processing method, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811360828.2A CN109542205B (en) 2018-11-15 2018-11-15 Electronic device, data processing method, and storage medium

Publications (2)

Publication Number Publication Date
CN109542205A true CN109542205A (en) 2019-03-29
CN109542205B CN109542205B (en) 2023-11-10

Family

ID=65847464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811360828.2A Active CN109542205B (en) 2018-11-15 2018-11-15 Electronic device, data processing method, and storage medium

Country Status (1)

Country Link
CN (1) CN109542205B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365851A (en) * 2019-08-01 2019-10-22 Oppo(重庆)智能科技有限公司 Method of supplying power to and Related product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1430341A (en) * 2001-12-28 2003-07-16 株式会社东芝 Radio communication device, radio communication method and radio communication system used by it
US6901275B1 (en) * 1999-09-30 2005-05-31 Kabushiki Kaisha Toshiba Communication system, and communication device and communication method for use in the communication system
CN1701570A (en) * 2003-06-02 2005-11-23 松下电器产业株式会社 Device, method, and program for performing master/slave switching process
CN102882565A (en) * 2012-08-31 2013-01-16 珠海市魅族科技有限公司 Data processing and transmitting method and associated equipment
CN102983889A (en) * 2012-11-13 2013-03-20 黑龙江省电力有限公司信息通信分公司 Method of information cooperative processing between smart mobile phone and computer through Bluetooth wireless pairing
CN103744619A (en) * 2013-12-24 2014-04-23 中国科学院深圳先进技术研究院 Method, device and system for improving data processing speed of device
CN104335642A (en) * 2012-05-26 2015-02-04 高通股份有限公司 Smart battery wear leveling for audio devices
CN107071618A (en) * 2017-04-26 2017-08-18 歌尔科技有限公司 A kind of method and apparatus for connecting ears bluetooth earphone

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6901275B1 (en) * 1999-09-30 2005-05-31 Kabushiki Kaisha Toshiba Communication system, and communication device and communication method for use in the communication system
CN1430341A (en) * 2001-12-28 2003-07-16 株式会社东芝 Radio communication device, radio communication method and radio communication system used by it
CN1701570A (en) * 2003-06-02 2005-11-23 松下电器产业株式会社 Device, method, and program for performing master/slave switching process
CN104335642A (en) * 2012-05-26 2015-02-04 高通股份有限公司 Smart battery wear leveling for audio devices
CN102882565A (en) * 2012-08-31 2013-01-16 珠海市魅族科技有限公司 Data processing and transmitting method and associated equipment
CN102983889A (en) * 2012-11-13 2013-03-20 黑龙江省电力有限公司信息通信分公司 Method of information cooperative processing between smart mobile phone and computer through Bluetooth wireless pairing
CN103744619A (en) * 2013-12-24 2014-04-23 中国科学院深圳先进技术研究院 Method, device and system for improving data processing speed of device
CN107071618A (en) * 2017-04-26 2017-08-18 歌尔科技有限公司 A kind of method and apparatus for connecting ears bluetooth earphone

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365851A (en) * 2019-08-01 2019-10-22 Oppo(重庆)智能科技有限公司 Method of supplying power to and Related product

Also Published As

Publication number Publication date
CN109542205B (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN109347171B (en) Split type electronic device, charging control method and storage medium
KR102609837B1 (en) Electronic device and method of communicating with an external device via a power supply line
EP3373408B1 (en) Apparatus and method for charging battery based on temperature
US10840730B2 (en) Electronic device and method for controlling power supply
US11556163B2 (en) Electronic device including connector and method for controlling power transmission/reception in electronic device
JP2023082122A (en) Execution method by portable communication device and device thereof
US11340676B2 (en) Method of identifying external electronic device based on power information and electronic device and storage medium for supporting same
KR20200120134A (en) Electronic device and method for controlling transmission power thereof
CN114221400B (en) Impedance detection method of charging cable, electronic equipment and power supply equipment
US12027896B2 (en) Charging cable port detection and current enforcement
US10585467B2 (en) Electronic device for charging battery by using terminal exposed to outside and operation method thereof
KR20210039731A (en) Electronic device comprising grip sensor and method for controlling electronic device comprising grip sensor
EP3700027B1 (en) Apparatus and method for performing antenna function by using usb connector
US20210399561A1 (en) Electronic device and method for receiving power from external electronic device
CN109542205A (en) Electronic equipment, data processing method and storage medium
JP2015032976A (en) Information processing apparatus, charging control method and program
KR20140077349A (en) Usb memory for mobile phone
US11394225B2 (en) Method and apparatus for changing impedance of terminal included in connector
KR20210015467A (en) A wireless charging device communicating with an electronic device and a communication method of the wireless charging device
KR20210027931A (en) Method for controlling power using socket and electronic device supporting the same
CN111190467B (en) Electronic device, data processing method, and storage medium
KR102627633B1 (en) Electronic device including logic circuit for determining connecting state of connector
KR20210042496A (en) Controlling method for charging battery of electronic device and electronic device thereof
TWI546674B (en) Data transmitting device having multi-transmission modes and method of switching multi-transmission modes thereof
US20240209983A1 (en) Handheld gimbal, handheld gimbal control method and apparatus, and storage medium

Legal Events

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