CN109542205B - Electronic device, data processing method, and storage medium - Google Patents

Electronic device, data processing method, and storage medium Download PDF

Info

Publication number
CN109542205B
CN109542205B CN201811360828.2A CN201811360828A CN109542205B CN 109542205 B CN109542205 B CN 109542205B CN 201811360828 A CN201811360828 A CN 201811360828A CN 109542205 B CN109542205 B CN 109542205B
Authority
CN
China
Prior art keywords
battery
data
processed
processor
electric quantity
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
CN201811360828.2A
Other languages
Chinese (zh)
Other versions
CN109542205A (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. 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
    • 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 provides electronic equipment, a data processing method and a storage medium, wherein the electronic equipment comprises first equipment and second equipment which are in communication connection, the first equipment comprises a first battery, a first memory, a comparator and a first processor, the first processor is respectively and electrically connected with the first battery, the first memory and the comparator, and the second equipment 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 a target device from the first device and the second device according to the comparison result so as to process the first data to be processed. The embodiment of the application can reduce the consumption of the electric quantity in the equipment with lower electric quantity.

Description

Electronic device, data processing method, and storage medium
Technical Field
The present application 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 smartphones are becoming more popular. During use of the electronic device, a battery in the electronic device is used as a power source to supply power to power consuming devices of the electronic device, such as a processor, a display screen, and the like.
The split device may include a host and an extension connected, where the host may have a main battery therein, and the main battery may supply power to the host. The extension may have a sub-battery therein, which may power the extension. The power consumption of the host and the extension may be different, and there is a case where the power of the host is exhausted and the power of the extension is sufficient. There may also be situations where the extension power is exhausted and the host power is sufficient. Resulting in the whole split device not being able to be used normally.
Disclosure of Invention
The embodiment of the application provides electronic equipment, a data processing method and a storage medium, which can reduce the consumption of a battery with lower electric quantity in the electronic equipment.
The embodiment of the application provides electronic equipment, which comprises first equipment and second equipment which are in communication connection, wherein the first equipment comprises a first battery, a first memory, a comparator and a first processor, the first processor is respectively and electrically connected with the first battery, the first memory and the comparator, and the second equipment 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 configured to select a target device from the first device and the second device according to the comparison result 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 first equipment and second equipment which are in communication connection, and the method comprises the following steps:
the first device receives first data to be processed;
the first device obtains a first electric quantity of the first device and a second electric quantity of the second device;
the first device compares the first electric quantity with the second electric quantity to obtain a comparison result;
and the first device selects a target device from the first device and the second device 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 having stored thereon a computer program 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 comparison of the comparator, and the first data to be processed is processed by the target equipment, so that the consumption of electric quantity in the equipment with lower electric quantity can be reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the description of the embodiments will be briefly described below.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a split 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 according to 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 flowchart of a data processing method according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides an electronic device, a data processing method and a storage medium. Each of which will be described in detail below. The electronic device may be a smart phone, tablet computer, etc.
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 application, and fig. 2 is a split 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 a detachable fixed connection of the first device 100 and the second device 200. Communication may be achieved by a wired or wireless manner when the first device 100 and the second device 200 are physically connected or physically separated, for example, communication between the first device 100 and the second device 200 may be achieved by plugging an interface with a signal line. For example, the first device 100 and the second device 200 communicate wirelessly via bluetooth, WIreless-Fidelity (WiFi), or the like.
In the description of the present application, the terms "first," "second," and the like 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 defining "a first" or "a 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 just implement communication, and not make a physical connection. For example, the first device 100 is a smart phone, the second device 200 is an accessory such as an augmented reality (Augmented Reality, AR) device, an earphone, a smart band, etc., and the first device 100 and the second device 200 communicate wirelessly.
It should also be noted that, in the description of the present application, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically connected, electrically connected or can be communicated with each other; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art according to the specific circumstances.
The first device 100 may be used as 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 within the first housing 160. The first battery 140 is electrically connected to the first circuit board 120, and the first battery 140 provides electric power to 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 the requirement.
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. Wherein the first wired communication circuit may comprise a universal serial bus (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 computer program stored in the first memory 124 includes instructions or programs executable in the first processor 122, for example, the first memory 124 stores first data to be processed in the first device 100. The computer program may constitute various functional modules. The first data to be processed may be running program, process, etc.
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 using various interfaces, lines, and perform various functions of the first device 100 and process data by running or loading computer programs 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 housing 160 may serve as an external frame of the first device 100, forming a main body 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 may place the second device 200, and the placement of the second device 200 in the placement groove 162 may be wrapped by a sidewall around the periphery of the placement groove 162 to limit 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 device 100 is not limited to the above components. For example, the first device 100 may include a first camera assembly, which may include a camera, an ambient light sensor, an infrared sensor, a flash, and the like. The first camera component 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, which may display a picture.
Wherein the second device 400 may be a sub-device of the electronic device 10, the second device 400 may be used alone. It should be noted that, 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, where the second display 202 and the third display 204 may be fixedly connected by a connection 206 to form a unitary structure. The second display 202, the connection portion 206, and the third display 204 may be made of a flexible material to form an integral structure, so as to form a full-screen display. That is, the second display 202, the connection portion 206, and the third display 204 are integrally formed, and the second display 202, the connection portion 206, and the third display 204 can commonly display a screen. The second display 202, the connecting portion 206 and the third display 204 may be folded and folded.
It should be noted that the second display 202, the connecting portion 206, and the third display 204 may not be integrally formed. The connection portion 206 may be made of a flexible material, and the connection portion 206 may be bent or folded, and the second display 202 and the third display 204 may be movable relative to the connection portion 206, or bent or folded. The connection unit 206 may or may not display a screen.
In some embodiments, the second display 202, the connection 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 connection 206, and the third display 204 may also be detachable from the placement slot 162 to enable physical separation of the first device 100 and the second device 200. The first device 100 and the second device 200 may be detachably and fixedly connected by a clamping connection, a buckling connection, or the like. Wherein the second display 202 and the third display 204 may be disposed on two opposite sides of the first housing 160. Wherein the connection portion 206 may be provided on one side 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 202, and the second circuit board 220 and the second battery 240 may also be disposed within the third display 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 the second battery 240, and the second battery 240 provides power to the second device 200.
Referring to fig. 4, fig. 4 is a block diagram of the second device shown in fig. 2. The second device 200 may include a second processor 222, a second memory 224, and a second communication circuit 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 the requirement.
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. Wherein the second wired communication circuit may comprise a universal serial bus (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 to store computer programs and data. The second memory 224 stores computer programs including instructions or programs executable in the second processor 222, such as the second memory 224 stores second data to be processed in the second device 200. In some embodiments, the computer programs and data stored by the second memory 224 are smaller than the computer programs and data stored by 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, lines, and perform various functions of the second device 200 and process data by running or loading computer programs 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 capability to process computer programs and data than the first memory 124.
In some embodiments, the storage capacity of the second battery 240 is less than the storage capacity of the 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 application. The electronic device 10 may also include a first fuel gauge 142, a second fuel gauge 242, and a comparator 128.
Wherein 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 electricity meter 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 power of the first battery 140. And the first fuel gauge 142 may transmit the first remaining circuitry of the first battery 140 it acquired to the comparator 128.
Note that, the first fuel gauge 142 is not limited to acquiring the first remaining power of the first battery 140, and the first fuel gauge 142 may acquire the first remaining power percentage of the first battery 140. The first remaining capacity percentage is a ratio of the current state of charge to the full state of charge of the first battery 140.
Wherein the second fuel gauge 242 may be disposed within the second device 200, such as the second fuel gauge 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 power of the second battery 240. And the second electricity meter 242 may transmit the second remaining amount of the second battery 240, which it has 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.
Note that, the second fuel gauge 242 is not limited to obtain the second remaining power of the second battery 240, and the second fuel gauge 242 may obtain the second remaining power percentage of the second battery 240. The second remaining charge percentage is a ratio of the current charge state to the full charge state of the second battery 240.
Wherein 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 being 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 a 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 be directly integrated on the second processor 222.
In some embodiments, the comparator 128 may obtain a first remaining power of the first battery 140 from the first fuel gauge 142, and the comparator 128 may obtain a second remaining power of the second battery 240 from the second fuel gauge 242. Then, the comparator 128 may compare the magnitudes of the first remaining power of the first battery 140 and the second remaining power 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 power of the first battery 140 is greater than the second remaining power of the second battery 240, the first remaining power of the first battery 140 is less than the second remaining power of the second battery 240, and the first remaining power of the first battery 140 is approximately equal to the second remaining power of the second battery 240. It is understood that the first remaining power of the first battery 140 is approximately equal to the second remaining power of the second battery 240 within a smaller range. The range in which the first remaining power of the first battery 140 is substantially equal to the second remaining power of the second battery 240 may be set according to actual needs.
In some embodiments, the comparator 128 may obtain a first percentage of the remaining power of the first battery 140 from the first fuel gauge 142 and the comparator 128 may obtain a second percentage of the remaining power of the second battery 240 from the second fuel gauge 242. Then, the comparator 128 may compare the first remaining capacity percentage of the first battery 140 with the second remaining capacity percentage 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 percentage of the first battery 140 is greater than the second remaining capacity percentage of the second battery 240, the first remaining capacity percentage of the first battery 140 is less than the second remaining capacity percentage of the second battery 240, and the first remaining capacity percentage of the first battery 140 is approximately equal to the second remaining capacity percentage of the second battery 240. It will be appreciated that it is within a smaller range that the first remaining capacity percentage of the first battery 140 is approximately equal to the second remaining capacity percentage of the second battery 240. The range in which the first remaining capacity percentage of the first battery 140 is approximately 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 of the first remaining power percentage of the first battery 140 and the second remaining power 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 according to the comparison result to process the first data to be processed or/and the second data to be processed.
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 remaining capacity percentage of the second battery, the first processor 122 may select the second device 200 as the target device to process the first data to be processed through the second device 200. The first device 100 may transmit the first data to be processed to the second device 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 device 200. The second processor 222 may directly display the processed first data on the second display 202 and the third display 204, and the second processor 222 may also transmit the processing result to the first device 100 after processing the first data. Meanwhile, the second processor 222 may also process 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 remaining capacity percentage of the second battery, and the difference between the second remaining capacity percentage of the second battery and the first remaining capacity percentage of the first battery 140 is larger than the preset value, the first processor 122 may select the second device 200 as the target device to process the first data to be processed 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 remaining capacity percentage of the second battery, the first processor 122 may select the first device 100 as the target device to process the second data to be processed through the first processor 122 of the first device 100. The second device 200 may communicate the second data to be processed to the first device 100 via the 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, and 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 the target device to process the second data to be processed through 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 period of the electronic device 10 may be increased. When the difference of the percentages of the residual electric quantity among the batteries is not large, the percentages of the residual electric quantity of the batteries are not large, data transfer processing is not needed, and when the difference of the percentages of the residual electric quantity of the batteries is larger than a certain threshold value, the data transfer processing is only carried out.
When the comparison result of the comparator 128 is that the first remaining capacity percentage of the first battery 140 is approximately equal to the second remaining capacity percentage of the second battery, the first processor 122 may select the first device 100 as the target device 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 can be appreciated 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 remaining capacity percentage of the second battery, the first processor 122 can process the first data to be processed, and the second processor 222 can process the second data to be processed.
It should be noted that, the first remaining capacity percentage of the first battery 140 is approximately equal to the second remaining capacity percentage of the second battery, and the difference between the first remaining capacity percentage of the first battery 140 and the second remaining capacity percentage of the second battery is in the range of 0 to 5%.
Under the condition that the percentages of the residual electric quantity of the two batteries are approximately equal, the data processing by the processor with strong processing capacity can accelerate the data processing, so that the processing speed can be relatively improved, and the electric quantity is saved by phase change. And the battery capacity of one 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 reach relative balance, the standby time of the electronic device 10 can be prolonged, and the user can use the electronic device 10 normally.
The foregoing is a specific illustration of one embodiment of the present application for processing data with an electronic device 10 having at least two portions. 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, referring to fig. 6, fig. 6 is a schematic diagram of another structure of an electronic device according to an embodiment of the application. 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.
The first housing 160 of the first apparatus 100 may include a first body 164, a second body 166, and a rotation shaft 168. The first body 164 and the rotation shaft 168 are connected by a hinge, for example, the first body 164 and the rotation shaft 168 are connected by a pin, and the first body 164 can rotate around the rotation shaft 168. The second body 166 and the rotation shaft 168 are connected by a hinge, for example, the second body 166 and the rotation shaft 168 are connected by a pin, and the second body 166 can rotate around the rotation shaft 168.
In some embodiments, the first body 164 and the second body 166 may be folded together by rotation of the rotation 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 together, the first body 164 and the second body 166 being located on the same side of the rotation shaft 168. The first body 164 and the second body 166 may be separated by rotation of the rotation shaft 168 to form an opened state. In the open state, the first body 164 and the second body 166 do not overlap, and the first body 164 and the second body 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 through the connection 206.
The following is a description from the point of view of the method of processing data.
Referring to fig. 7, fig. 7 is a flowchart illustrating a data processing method according to an embodiment of the application. Referring to fig. 1 to 6, the data processing method may include:
301. the first device 100 receives first data to be processed.
Wherein the first data to be processed may be stored in the first memory 124 of the first device 100.
302. The first device 100 obtains a first power of the first device 100 and a second power of the second device 200.
The first power of the first device 100 may be a first remaining power of the first battery 140 in the first device 100, and the first power of the first device 100 may also be a first remaining power percentage of the first battery 140 in the first device 100. The first remaining power or the first remaining power percentage of the first battery 140 may be obtained by the first power 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 amount or the first remaining amount percentage of the first battery 140. Of course, it may be actively acquired by the comparator 128.
The second power of the second device 200 may be the second remaining power of the second battery 240 in the second device 200, and the second power of the second device 200 may also be a second remaining power percentage of the second battery 240 in the second device 200. The second remaining power or the second remaining power percentage of the second battery 240 may be obtained through a second power meter 242 within the second device 200.
The second fuel gauge 242 may transmit the acquired data to the comparator 128 after acquiring the second remaining power or the second percentage of the remaining power 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 with the second power amount to obtain a comparison result.
Wherein, the first device 100 may compare the first remaining power percentage of the first battery 140 with the second remaining power percentage of the second battery 242 through the comparator 128 provided in the first device 100 to obtain a comparison result.
Wherein, the comparison result comprises: the first remaining capacity percentage of the first battery 140 is greater than the second remaining capacity percentage of the second battery 240, the first remaining capacity percentage of the first battery 140 is less than the second remaining capacity percentage of the second battery 240, and the first remaining capacity percentage of the first battery 140 is approximately equal to the second remaining capacity percentage of the second battery 240. It will be appreciated that it is within a smaller range that the first remaining capacity percentage of the first battery 140 is approximately equal to the second remaining capacity percentage of the second battery 240. The range in which the first remaining capacity percentage of the first battery 140 is approximately equal to the second remaining capacity percentage of the second battery 240 may be set according to actual needs.
When the comparator 128 is disposed in the second device 200, the second device 200 compares the first power with the second power to obtain a comparison result.
304. The first device 100 selects a target device from the first device 100 and the second device 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 device 200 as the target device to process the first data to be processed through the second device 200. The first device 100 may transmit the first data to be processed to the second device 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 device 200. The second processor 222 may directly display the processed first data on the second display 202 and the third display 204, and the second processor 222 may also transmit the processing result to the first device 100 after processing the first data. Meanwhile, the second processor 222 may also process 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 remaining capacity percentage of the second battery, and the difference between the second remaining capacity percentage of the second battery and the first remaining capacity percentage of the first battery 140 is larger than the preset value, the first processor 122 may select the second device 200 as the target device to process the first data to be processed 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 remaining capacity percentage of the second battery, the first processor 122 may select the first device 100 as the target device to process the second data to be processed through the first processor 122 of the first device 100. The second device 200 may communicate the second data to be processed to the first device 100 via the 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, and 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 the target device to process the second data to be processed through 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. When the difference of the percentages of the residual electric quantity among the batteries is not large, the percentages of the residual electric quantity of the batteries are not large, data transfer processing is not needed, and when the difference of the percentages of the residual electric quantity of the batteries is larger than a certain threshold value, the data transfer processing is only carried out.
When the comparison result of the comparator 128 is that the first remaining capacity percentage of the first battery 140 is approximately equal to the second remaining capacity percentage of the second battery, the first processor 122 may select the first device 100 as the target device 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 can be appreciated 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 remaining capacity percentage of the second battery, the first processor 122 can process the first data to be processed, and the second processor 222 can process the second data to be processed.
It should be noted that, the first remaining capacity percentage of the first battery 140 is approximately equal to the second remaining capacity percentage of the second battery, and the difference between the first remaining capacity percentage of the first battery 140 and the second remaining capacity percentage of the second battery is in the range of 0 to 5%.
Under the condition that the percentages of the residual electric quantity of the two batteries are approximately equal, the data processing by the processor with strong processing capacity can accelerate the data processing, so that the processing speed can be relatively improved, and the electric quantity is saved by phase change. And the battery capacity of the processor with stronger processing capability is larger, so that the residual electric quantity of the two batteries of the two devices can reach relative balance, and the user can use the electronic device 10 normally.
An embodiment of the present application also provides a storage medium having a computer program stored therein, which when run on a computer performs the data processing method according to the above embodiment
It should be noted that, those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a computer program to instruct related hardware, and the computer program may be stored in a computer readable storage medium, where the storage medium may include, but is not limited to: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The electronic device, the data processing method and the storage medium provided by the embodiment of the application are described in detail. Specific examples are set forth herein to illustrate the principles and embodiments of the present application and are provided to aid in the understanding of the present application. Meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (9)

1. The electronic equipment is characterized by comprising first equipment and second equipment which are in communication connection, wherein the first equipment comprises a first battery, a first memory, a comparator and a first processor, the first processor is respectively and electrically connected with the first battery, the first memory and the comparator, the second equipment comprises a second battery, a second memory and a second processor, and the second processor is respectively and electrically connected with the second battery and the second memory; the first device and the second device are detachably connected, so that the first device and the second device can be separated from each other or connected into a whole; the second device comprises a second display screen, a third display screen and a connecting part connected between the second display screen and the third display screen, wherein the second display screen, the connecting part and the third display screen are integrally formed; the first device comprises a first shell and a placing groove arranged in the first shell, and the second display screen, the connecting part and the third display screen are detachably arranged in the placing groove; the second display screen, the connecting part and the third display screen can be bent or folded, so that the second display screen and the third display screen are arranged on two opposite surfaces of the first shell, and the connecting part is arranged on one side surface of the first shell; the second battery is arranged in the second display screen or the third display screen;
the first memory stores first data to be processed;
the second memory stores second 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;
when the comparison result is that the first electric quantity of the first battery is not equal to the second electric quantity of the second battery, and the difference value between the first electric quantity of the first battery and the second electric quantity of the second battery is larger than a preset value, the first processor is used for selecting the equipment with more electric quantity in the first equipment and the second equipment as target equipment so as to process the first data to be processed and/or the second data to be processed through the target equipment;
when the comparison result is that the first electric quantity of the first battery is equal to the second electric quantity of the second battery, the first processor is used for selecting the first equipment and the second equipment with strong processing capacity as target equipment so as to process the first data to be processed and/or the second data to be processed through the target equipment;
the first processor may process the first data to be processed and the second data to be processed simultaneously; and/or the second processor may process the first data to be processed and the second data to be processed simultaneously;
after the first processor processes the second data to be processed, transmitting a processing result to the first device or the second device; and/or the second processor transmits a processing result to the first device or the second device after processing the first data to be processed.
2. The electronic device of claim 1, wherein the first processor is configured to select the second device as a target device to process the first data to be processed by the second device when the comparison result is that the first power of the first battery is less than the second power of the second battery.
3. The electronic device according to claim 2, 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 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 is that the first power of the first battery is smaller than the second power of the second battery, and a 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, so as to process the first data to be processed through the second device.
5. The electronic device of claim 1, wherein the first processor is configured to select a high-throughput device of the first device and the second device as a target device to process the first data to be processed when the comparison result is that the first power level of the first battery is equal to the second power level of the second battery.
6. The electronic device of any one of claims 1-5, wherein a capacity of the first battery is greater than a capacity of the second battery, and wherein a processing power of the first processor is greater than a processing power of the second processor.
7. The electronic device of any one of claims 1 to 5, wherein the second device comprises a display screen for displaying results of processing the data to be processed.
8. A data processing method applied to the electronic device of any one of claims 1 to 7, wherein the electronic device comprises a first device and a second device that are communicatively connected, the method comprising:
the first device receives first data to be processed, and the second device receives second data to be processed;
the first device obtains a first electric quantity of the first device and a second electric quantity of the second device;
the first device compares the first electric quantity with the second electric quantity to obtain a comparison result;
when the comparison result is that the first electric quantity of the first battery is not equal to the second electric quantity of the second battery, and the difference value between the first electric quantity of the first battery and the second electric quantity of the second battery is larger than a preset value, the first device selects the device with more electric quantity in the first device and the second device as a target device, so that the first data to be processed and/or the second data to be processed are processed through the target device;
and when the comparison result is that the first electric quantity of the first battery is equal to the second electric quantity of the second battery, the first device is used for selecting the first device and the second device with strong processing capacity as target devices so as to process the first data to be processed and/or the second data to be processed through the target devices.
9. A storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the method of claim 8.
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 CN109542205A (en) 2019-03-29
CN109542205B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365851B (en) * 2019-08-01 2021-03-09 Oppo(重庆)智能科技有限公司 Power supply method 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

Also Published As

Publication number Publication date
CN109542205A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
EP3373408B1 (en) Apparatus and method for charging battery based on temperature
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
US11556163B2 (en) Electronic device including connector and method for controlling power transmission/reception in electronic device
US9722376B2 (en) Connecting device and method for recognizing device
US11569686B2 (en) Electronic device for wirelessly charging external device
JP6774309B2 (en) Information processing system, information processing device, operating device, and power supply method
KR20200120134A (en) Electronic device and method for controlling transmission power thereof
US11742753B2 (en) Electronic device having voltage divider adaptively changing voltage division ratio
US11933851B2 (en) Device and method for controlling charging on basis of battery charging or discharging time
CN109378877A (en) Charging circuit, charging method, electronic equipment and storage medium
US20230268748A1 (en) Charging cable port detection and current enforcement
US20200265001A1 (en) Communication method using input/output interface, and apparatus therefor
US11775040B2 (en) Electronic device and method for receiving power from external electronic device
CN109542205B (en) Electronic device, data processing method, and storage medium
CN103905611A (en) Image acquisition unit compatible matching method and electronic device
EP3700027B1 (en) Apparatus and method for performing antenna function by using usb connector
KR20210043351A (en) Apparatus and method for charging battery
EP3629428B1 (en) Method and apparatus for changing impedance of terminal included in connector
KR20140077349A (en) Usb memory for mobile phone
JP2018511879A (en) Interface identification method and terminal
CN111190467B (en) Electronic device, data processing method, and storage medium
EP3758407B1 (en) Electronic device using bluetooth communication and operating method thereof
KR20210042496A (en) Controlling method for charging battery of electronic device and electronic device thereof
KR20200102256A (en) Electronic device including logic circuit for determining connecting state of connector

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