技术领域technical field
本发明涉及电子设备控制技术领域,特别是涉及一种电子设备控制方法、一种电子设备控制装置、一种电子设备、一种计算机可读存储介质。The present invention relates to the technical field of electronic equipment control, in particular to an electronic equipment control method, an electronic equipment control device, an electronic equipment, and a computer-readable storage medium.
背景技术Background technique
随着硬件技术的快速发展,电子设备的功能越来越丰富,例如,电子设备具有蓝牙功能、无线网络功能、信息提示功能等等,然而电子设备的功能越来越丰富给用户带来较佳体验的同时,需要较大的电量来支持这些功能正常运行。With the rapid development of hardware technology, the functions of electronic devices are becoming more and more abundant. For example, electronic devices have Bluetooth functions, wireless network functions, information prompt functions, etc. However, the functions of electronic devices are becoming more and more abundant to bring better At the same time of experience, a large amount of power is required to support the normal operation of these functions.
现有技术中,在电子设备处于工作状态时,电子设备的电池需要为电子设备的所有功能单元供电,也就是说,使得电子设备的所有功能单元都处于工作状态,从而造成电子设备的耗电量较大,电池中剩余的电量很快被消耗掉,电池的供电时长较短。In the prior art, when the electronic device is in the working state, the battery of the electronic device needs to supply power to all the functional units of the electronic device, that is to say, to make all the functional units of the electronic device in the working state, thus causing power consumption of the electronic device If the power is large, the remaining power in the battery will be consumed quickly, and the power supply time of the battery will be short.
发明内容Contents of the invention
本发明实施例的目的在于提供一种电子设备控制方法,以延长电池为电子设备的供电时长,并延长电子设备电池的使用寿命。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a method for controlling an electronic device, so as to prolong the duration of a battery powering the electronic device and prolong the service life of the battery of the electronic device. The specific technical scheme is as follows:
第一方面,本发明实施例提供了一种电子设备控制方法,应用于电子设备,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for controlling an electronic device, which is applied to an electronic device, and the method includes:
检测所述电子设备中处于供电状态的电池的当前剩余电量;Detecting the current remaining power of the battery in the electronic device in the power supply state;
确定属于所述当前剩余电量对应的级别的功能单元,并作为第一类功能单元;Determine the functional units belonging to the level corresponding to the current remaining power, and use them as the first type of functional units;
控制所述处于供电状态的电池为所述第一类功能单元供电。The battery in the power supply state is controlled to supply power to the first type of functional unit.
可选的,所述电子设备包括:主电池和副电池,所述处于供电状态的电池为所述主电池,所述方法还包括:Optionally, the electronic device includes: a main battery and a secondary battery, the battery in a power supply state is the main battery, and the method further includes:
在满足预设的电池切换条件时,将所述主电池由供电状态切换至未供电状态,并启动所述副电池;When a preset battery switching condition is met, switching the main battery from a power supply state to a non-power supply state, and starting the secondary battery;
确定需要所述副电池供电的所述电子设备的功能单元,并作为第二类功能单元;Determining the functional units of the electronic device that need to be powered by the secondary battery as the second type of functional units;
控制所述副电池为所述第二类功能单元供电。The secondary battery is controlled to supply power to the second type of functional unit.
可选的,在控制所述副电池为所述第二类功能单元供电之后,所述方法还包括:Optionally, after controlling the secondary battery to supply power to the second type functional unit, the method further includes:
收集所述电子设备的当前运行状态信息;collecting current operating status information of the electronic device;
将所述当前运行状态信息发送至与所述电子设备通信连接的服务器,以使得所述服务器根据所述当前运行状态信息对所述电子设备进行状态诊断。Sending the current running state information to a server communicatively connected to the electronic device, so that the server performs a state diagnosis on the electronic device according to the current running state information.
可选的,在所述启动所述副电池之后,所述方法还包括:Optionally, after the starting of the secondary battery, the method further includes:
生成电池管理通知消息。Generate battery management notification messages.
可选的,在所述电子设备为智能机器人的情况下,所述第一类功能单元包括以下功能单元中的至少一种:底盘、机械臂、运动关节、上层控制板、路由器、屏幕、安全控制板、传感器。Optionally, when the electronic device is an intelligent robot, the first type of functional unit includes at least one of the following functional units: chassis, mechanical arm, kinematic joint, upper control board, router, screen, security Control panel, sensor.
可选的,所述第二类功能单元包括以下功能单元中的至少一种:上层控制板、路由器、屏幕、安全控制板、传感器。Optionally, the second type of functional unit includes at least one of the following functional units: an upper control board, a router, a screen, a security control board, and a sensor.
可选的,在所述检测所述电子设备中处于供电状态的电池的当前剩余电量之后,所述方法还包括:Optionally, after the detection of the current remaining power of the battery in the power supply state in the electronic device, the method further includes:
判断所述当前剩余电量是否小于预定电量;judging whether the current remaining power is less than a predetermined power;
若为是,生成针对电量的通知消息。If yes, generate a notification message for the battery level.
第二方面,本发明实施例还提供了一种电子设备控制装置,应用于电子设备,所述装置包括:In the second aspect, an embodiment of the present invention also provides an electronic device control device, which is applied to electronic devices, and the device includes:
电量检测模块,用于检测所述电子设备中处于供电状态的电池的当前剩余电量;A power detection module, configured to detect the current remaining power of the battery in the power supply state in the electronic device;
第一类功能单元确定模块,用于根据所述当前剩余电量,确定需要所述处于供电状态的电池供电的所述电子设备的功能单元,并作为第一类功能单元;A first-type functional unit determination module, configured to determine a functional unit of the electronic device that needs to be powered by the battery in the power supply state according to the current remaining power, and use it as a first-type functional unit;
第一控制模块,用于控制所述处于供电状态的电池为所述第一类功能单元供电。A first control module, configured to control the battery in the power supply state to supply power to the first type of functional unit.
可选的,所述装置还包括:Optionally, the device also includes:
副电池启动模块,用于在所述电子设备包括主电池和副电池,且所述处于供电状态的电池为所述主电池时,在满足预设的电池切换条件时,将所述主电池由供电状态切换至未供电状态,并启动所述副电池;The secondary battery starting module is used to switch the primary battery from The power supply state is switched to the non-power supply state, and the secondary battery is started;
第二类功能单元确定模块,用于确定需要所述副电池供电的所述电子设备的功能单元,并作为第二类功能单元;A second-type functional unit determining module, configured to determine a functional unit of the electronic device that needs to be powered by the secondary battery as a second-type functional unit;
第二控制模块,用于控制所述副电池为所述第二类功能单元供电。The second control module is configured to control the secondary battery to supply power to the second type of functional unit.
可选的,所述装置还包括:Optionally, the device also includes:
运行状态信息收集模块,用于在控制所述副电池为所述第二类功能单元供电之后,收集所述电子设备的当前运行状态信息;A running state information collection module, configured to collect current running state information of the electronic device after controlling the secondary battery to supply power to the second type of functional unit;
运行状态信息发送模块,用于将所述当前运行状态信息发送至与所述电子设备通信连接的服务器,以使得所述服务器根据所述当前运行状态信息对所述电子设备进行状态诊断。A running state information sending module, configured to send the current running state information to a server communicatively connected to the electronic device, so that the server can diagnose the state of the electronic device according to the current running state information.
可选的,所述装置还包括:Optionally, the device also includes:
第一通知消息生成模块,用于在所述启动所述副电池之后,生成电池管理通知消息。A first notification message generation module, configured to generate a battery management notification message after the secondary battery is started.
可选的,在所述电子设备为智能机器人的情况下,所述第一类功能单元包括以下功能单元中的至少一种:底盘、机械臂、运动关节、上层控制板、路由器、屏幕、安全控制板、传感器。Optionally, when the electronic device is an intelligent robot, the first type of functional unit includes at least one of the following functional units: chassis, mechanical arm, kinematic joint, upper control board, router, screen, security Control panel, sensor.
可选的,所述第二类功能单元包括以下功能单元中的至少一种:上层控制板、路由器、屏幕、安全控制板、传感器。Optionally, the second type of functional unit includes at least one of the following functional units: an upper control board, a router, a screen, a security control board, and a sensor.
可选的,所述装置还包括:Optionally, the device also includes:
预定电量判断模块,用于在所述检测所述电子设备中处于供电状态的电池的当前剩余电量之后,判断所述当前剩余电量是否小于预定电量;A predetermined power judging module, configured to determine whether the current remaining power is less than the predetermined power after detecting the current remaining power of the battery in the power supply state in the electronic device;
第二通知消息生成模块,用于如果所述预定电量判断模块判断出当前剩余电量小于预定电量时,生成针对电量的通知消息。The second notification message generating module is configured to generate a notification message for the battery capacity if the predetermined battery capacity judging module determines that the current remaining battery capacity is less than the predetermined battery capacity.
第三方面,本发明实施例还提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;In the third aspect, the embodiment of the present invention also provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein, the processor, the communication interface, and the memory complete communication with each other through the communication bus;
存储器,用于存放计算机程序;memory for storing computer programs;
处理器,用于执行存储器上所存放的程序时,实现权利要求1-7任一所述的方法步骤。When the processor is used to execute the program stored in the memory, it realizes the method steps described in any one of claims 1-7.
第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-7任一所述的方法步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of claims 1-7 is implemented. The method steps described above.
与现有技术相比,本发明实施例的技术方案,通过检测电子设备中处于供电状态的电池的当前剩余电量;根据当前剩余电量,确定属于所述当前剩余电量对应的级别的第一类功能单元;控制处于供电状态的电池为所述第一类功能单元供电。因此,在电子设备处于供电状态时,电子设备的电池能够为与电池当前剩余电量对应级别的第一类功能单元供电,保证第一类功能单元能够正常工作,从而实现了电子设备电池的分级管理,延长了电池的供电时长。Compared with the prior art, the technical solution of the embodiment of the present invention detects the current remaining power of the battery in the power supply state in the electronic device; according to the current remaining power, determines the first type of function belonging to the level corresponding to the current remaining power unit; controlling the battery in the power supply state to supply power to the first type of functional unit. Therefore, when the electronic device is in the power supply state, the battery of the electronic device can supply power to the first type of functional unit corresponding to the current remaining battery capacity, ensuring that the first type of functional unit can work normally, thereby realizing the hierarchical management of the battery of the electronic device , extending the battery life.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例所提供的一种电子设备控制方法的流程图;FIG. 1 is a flow chart of an electronic device control method provided by an embodiment of the present invention;
图2为本发明实施例所提供的一种电子设备控制方法的另一流程图;FIG. 2 is another flow chart of an electronic device control method provided by an embodiment of the present invention;
图3为本发明实施例所提供的一种电子设备控制方法的另一流程图;FIG. 3 is another flow chart of an electronic device control method provided by an embodiment of the present invention;
图4为本发明实施例所提供的一种电子设备控制装置的结构示意图;FIG. 4 is a schematic structural diagram of an electronic device control device provided by an embodiment of the present invention;
图5为本发明实施例所提供的一种电子设备控制装置的另一结构示意图;FIG. 5 is another schematic structural diagram of an electronic equipment control device provided by an embodiment of the present invention;
图6为本发明实施例所提供的一种电子设备控制装置的另一结构示意图;FIG. 6 is another schematic structural diagram of an electronic equipment control device provided by an embodiment of the present invention;
图7为本发明实施例所提供的一种电子设备的结构示意图。FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
为了解决现有技术问题,本发明实施例提供了一种电子设备控制方法、装置、电子设备及存储介质,以延长电池为电子设备的供电时长,降低电池的充电频率,延长电子设备电池的使用寿命。In order to solve the problems in the prior art, the embodiment of the present invention provides an electronic device control method, device, electronic device and storage medium, so as to prolong the power supply time of the battery for the electronic device, reduce the charging frequency of the battery, and prolong the use of the battery of the electronic device life.
第一方面,下面首先对本发明实施例所提供的电子设备控制方法进行介绍。In the first aspect, the electronic device control method provided by the embodiment of the present invention will be firstly introduced below.
需要说明的是,本发明实施例所提供的一种电子设备控制方法应用于电子设备中,该电子设备可以为:智能手机、平板电脑、笔记本电脑、智能家居产品(如:智能音箱)、智能车载设备、智能穿戴设备、智能机器人等,这都是合理的。It should be noted that the method for controlling an electronic device provided by the embodiment of the present invention is applied to an electronic device, and the electronic device may be: a smart phone, a tablet computer, a notebook computer, a smart home product (such as a smart speaker), a smart Vehicle-mounted equipment, smart wearable devices, smart robots, etc., are all reasonable.
如图1所示,本发明实施例所提供的一种电子设备控制方法,包括如下步骤:As shown in FIG. 1, an electronic device control method provided by an embodiment of the present invention includes the following steps:
S101,检测所述电子设备中处于供电状态的电池的当前剩余电量;S101. Detect the current remaining power of the battery in the electronic device in the power supply state;
在电子设备处于工作状态时,检测为电子设备供电的电池的当前剩余电量,需要说明的是,电子设备中可以只有一块电池,此时,在电子设备处于工作状态时,该电池处于供电状态,即该电池为电子设备供电;电子设备也可以有多块电池,此时,在电子设备处于工作状态时,其中一块电池处于供电状态,其他电池处于未供电状态,其中,所述多块电池的电池容量可以相同,也可以不同,这些都是合理的。When the electronic device is in the working state, detect the current remaining power of the battery powering the electronic device. It should be noted that there may be only one battery in the electronic device. At this time, when the electronic device is in the working state, the battery is in the power supply state. That is, the battery supplies power to the electronic device; the electronic device may also have multiple batteries. At this time, when the electronic device is in the working state, one of the batteries is in the power supply state, and the other batteries are in the non-power state. The battery capacity can be the same or different, these are reasonable.
举例而言,假设电子设备有两块电池,分别为主电池和副电池,其中,主电池的电池容量既可以与副电池的电池容量相同,也可以与副电池的电池容量不同。在电子设备处于工作状态时,优先由主电池为电子设备供电,此时,检测主电池的当前剩余电量;若主电池因电量低于预设值或因故障等其他原因不能为电子设备供电时,由副电池为电子设备供电,此时,检测副电池的当前剩余电量。For example, assume that the electronic device has two batteries, namely a main battery and a secondary battery, wherein the battery capacity of the main battery can be the same as that of the secondary battery or can be different from that of the secondary battery. When the electronic device is in working condition, the main battery is given priority to supply power to the electronic device. At this time, the current remaining power of the main battery is detected; , the electronic device is powered by the secondary battery, and at this time, the current remaining power of the secondary battery is detected.
S102,根据所述当前剩余电量,确定需要所述处于供电状态的电池供电的所述电子设备的功能单元,并作为第一类功能单元;S102, according to the current remaining power, determine the functional unit of the electronic device that needs to be powered by the battery in the power supply state, and use it as the first type of functional unit;
需要说明的是,电池为电子设备供电时,为使得用户能够体验到电子设备丰富的功能,需要电池为电子设备的所有功能单元供电,然而,电子设备的各个功能单元对于电子设备的正常运行而言具有不同的重要程度,为此,本发明实施例中,为电子设备的功能单元设置了不同的级别,不同的当前剩余电量对应不同级别的功能单元,并且,电池的当前剩余电量越低,对应的功能单元的级别越高。需要说明的是,功能单元对于电子设备的正常运行而言具有的重要程度越高,其对应的级别越高。It should be noted that when the battery supplies power to the electronic equipment, in order to enable the user to experience the rich functions of the electronic equipment, the battery needs to supply power to all the functional units of the electronic equipment. Therefore, in the embodiment of the present invention, different levels are set for the functional units of the electronic device, and different current remaining power levels correspond to different levels of functional units, and the lower the current remaining power level of the battery, the The higher the level of the corresponding functional unit. It should be noted that, the higher the importance of the functional unit for the normal operation of the electronic device, the higher its corresponding level.
需要强调的是,功能单元的级别可以是系统设定的,也可以由用户进行设定,这都是合理的。而且,在机器人处于不同的应用场景或者执行不同的任务时,同一功能单元的级别可能会发生变化,也就是说,在某一种应用场景中,某一功能单元的级别较高,但是,在另一种应用场景中,该功能单元的级别可能较低;或者,机器人在执行某些任务时,某一功能单元的级别较高,而在执行另一项任务时,该功能单元的级别可能较低。这都是合理的。It should be emphasized that the level of the functional unit can be set by the system or by the user, which is reasonable. Moreover, when the robot is in different application scenarios or performs different tasks, the level of the same functional unit may change, that is, in a certain application scenario, the level of a certain functional unit is higher, but, in In another application scenario, the level of the functional unit may be lower; or, when the robot performs certain tasks, the level of a certain functional unit is higher, and when performing another task, the level of the functional unit may be lower. This is all reasonable.
下面将以电子设备为智能机器人为例进行详细说明。The following will take the electronic device as an intelligent robot as an example to describe in detail.
可选的,在所述电子设备为智能机器人的情况下,所述第一类功能单元包括以下信息中的至少一种:底盘、机械臂、运动关节、上层控制板、路由器、屏幕、安全控制板、传感器。Optionally, when the electronic device is an intelligent robot, the first type of functional unit includes at least one of the following information: chassis, mechanical arm, kinematic joints, upper control board, router, screen, security control board, sensor.
需要说明的是,智能机器人的底盘用于使得智能机器人能够移动,且在电池的当前剩余电量较低时,底盘可以强制回滚到充电桩进行充电,因此,可以为底盘设置较高的级别;It should be noted that the chassis of the intelligent robot is used to enable the intelligent robot to move, and when the current remaining power of the battery is low, the chassis can be forced to roll back to the charging pile for charging. Therefore, a higher level can be set for the chassis;
智能机器人的机械臂与运动关节使得机器人能够为用户提供服务,在智能机器人的电量较高时,电池可以为机械臂与运动关节供电,以使得智能机器人为用户提供服务;在智能机器人的电量较低时,电池可以不为机械臂与运动关节供电,而为智能机器人的底盘供电,以使得底盘能够强制回滚到充电桩为电池充电,可见,可以为机械臂与运动关节设置较低的级别;The mechanical arm and kinematic joints of the intelligent robot enable the robot to provide services for users. When the power of the intelligent robot is high, the battery can supply power for the mechanical arm and the kinematic joints, so that the intelligent robot can provide services for the user; when the power of the intelligent robot is low When it is low, the battery can supply power to the chassis of the intelligent robot instead of powering the manipulator and the kinematic joints, so that the chassis can be forced to roll back to the charging pile to charge the battery. It can be seen that a lower level can be set for the manipulator and kinematic joints ;
智能机器人的上层控制板用于与用户进行交互,可以在紧急情况下发生求救信息或者报警信息等,因此,在智能机器人需要与用户进行交互的情况下,可以为上层控制板设置相对较高的级别;The upper control board of the intelligent robot is used to interact with the user, and can generate help information or alarm information in an emergency. Therefore, when the intelligent robot needs to interact with the user, a relatively high setting can be set for the upper control board. level;
智能机器人的路由器用于使得智能机器人与服务器通信连接,可以允许远程管理人员读取智能机器人的运行状态,因此,在需要远程管理人员对智能机器人进行控制的情况下,可以为智能机器人的路由器设置较高的级别;The router of the intelligent robot is used to connect the intelligent robot to the server, which can allow the remote management personnel to read the running status of the intelligent robot. Therefore, when the remote management personnel are required to control the intelligent robot, it is possible to set higher level;
智能机器人的屏幕可用于显示智能机器人的运行状态信息,用户可以从中获取智能机器人的运行状态,因此,在用户需要获取智能机器人的运行状态信息时,可以为智能机器人的屏幕设置较高的级别。The screen of the smart robot can be used to display the running status information of the smart robot, from which the user can obtain the running status of the smart robot. Therefore, when the user needs to get the running status information of the smart robot, a higher level can be set for the screen of the smart robot.
智能机器人的安全控制板用于使得机器人能够安全工作,避免倾倒或与其他物体发生碰撞,由于安全性对智能机器人是很重要的,因此,可以为智能机器人的安全控制板设置最高的级别,以使得在不同的当前剩余电量下,电池均可以为安全控制板进行供电。The safety control board of the intelligent robot is used to enable the robot to work safely and avoid falling over or colliding with other objects. Since safety is very important to the intelligent robot, the highest level can be set for the safety control board of the intelligent robot to This enables the battery to supply power to the safety control board under different current remaining power levels.
智能机器人的传感器用于感知机器人周围的环境,避免倾倒或与其他物体发生碰撞而导致一些安全事故,其对智能机器人的安全也是至关重要的,因此,可以为智能机器人的传感器设置较高的级别。The sensor of the intelligent robot is used to perceive the environment around the robot, avoiding some safety accidents caused by falling over or colliding with other objects, which is also crucial to the safety of the intelligent robot. Therefore, a higher value can be set for the sensor of the intelligent robot. level.
举例而言,在智能机器人处于工作状态时,若处于供电状态的电池的当前剩余电量为100%,则说明处于供电状态的电池的电量较高,此时处于供电状态的电池可以为机器人的所有功能单元供电,因此,第一类功能单元可以为智能机器人的底盘、机械臂、运动关节、上层控制板、路由器、屏幕、安全控制板、传感器等所有功能单元;For example, when the intelligent robot is in the working state, if the current remaining power of the battery in the power supply state is 100%, it means that the power of the battery in the power supply state is relatively high. At this time, the battery in the power supply state can be used for all Functional units supply power. Therefore, the first type of functional units can provide all functional units such as the chassis, mechanical arms, kinematic joints, upper control boards, routers, screens, safety control boards, and sensors of intelligent robots;
若处于供电状态的电池的当前剩余电量为50%,则说明处于供电状态的电池的当前剩余电量有所下降,此时,处于供电状态的电池可以为级别较高的功能单元供电,此时第一类功能单元可以为智能机器人的底盘、上层控制板、路由器、屏幕、安全控制板、传感器等级别较高的功能单元,而不包括级别较低的机械臂和运动关节,以防止因机械臂和运动关节大量耗电而导致电池的剩余电量很快被消耗掉。If the current remaining power of the battery in the power supply state is 50%, it means that the current remaining power of the battery in the power supply state has decreased. At this time, the battery in the power supply state can supply power for higher-level functional units. A class of functional units can be higher-level functional units such as the chassis, upper control board, router, screen, safety control board, and sensor of the intelligent robot, excluding the lower-level mechanical arms and kinematic joints, in order to prevent damage caused by the mechanical arm. The remaining power of the battery is quickly consumed due to the large power consumption of the joints and sports joints.
若处于供电状态的电池的当前剩余电量为30%,则说明处于供电状态的电池的当前剩余电量进一步下降,此时,可以从级别较高的多个功能单元中选取相对其他功能单元来说,级别更高的功能单元,处于供电状态的电池为这些级别更高的功能单元供电,此时第一类功能单元可以为上层控制板、安全控制板和传感器,以使得智能机器人能够安全工作,避免倾倒或与其他物体发生碰撞,并能够与用户进行交互。If the current remaining power of the battery in the power supply state is 30%, it means that the current remaining power of the battery in the power supply state has further decreased. At this time, you can choose from multiple functional units with higher levels. Higher-level functional units, the batteries in the power supply state supply power to these higher-level functional units. At this time, the first type of functional units can be the upper control board, safety control board and sensors, so that the intelligent robot can work safely and avoid Topple over or collide with other objects and be able to interact with the user.
若处于供电状态的电池的当前剩余电量为10%,则说明处于供电状态的电池的当前剩余电量进一步下降,此时,处于供电状态的电池可以为级别最高的功能单元,此时,第一类功能单元可以为底盘、安全控制板,以使得在保证智能机器人安全的情况下,可以回滚到充电桩进行充电。If the current remaining power of the battery in the power supply state is 10%, it means that the current remaining power of the battery in the power supply state has further decreased. At this time, the battery in the power supply state can be the highest-level functional unit. At this time, the first type The functional unit can be the chassis and safety control board, so that the intelligent robot can be rolled back to the charging pile for charging under the condition of ensuring the safety of the intelligent robot.
需要强调的是,由于在不同的情况下,同一功能单元对机器人的正常运行而言具有不同的重要程度,因此,在不同的情况下,同一当前剩余电量对应的第一类功能单元也可能不同,这是合理的。It should be emphasized that since the same functional unit has different degrees of importance to the normal operation of the robot in different situations, the first type of functional unit corresponding to the same current remaining power may also be different in different situations , which is reasonable.
另外,上述描述中只是示例性地列举出了电池的当前剩余电量分别为100%、50%、30%、10%时,对应的第一类功能单元,本发明实施例对当前剩余电量与第一类功能单元的对应关系不做具体限定。In addition, the above description only exemplifies the corresponding first-type functional units when the current remaining power of the battery is 100%, 50%, 30%, and 10%. The corresponding relationship of one type of functional units is not specifically limited.
S103,控制所述处于供电状态的电池为所述第一类功能单元供电。S103. Control the battery in the power supply state to supply power to the first type of functional unit.
在根据处于供电状态的电池的当前剩余电量,确定了第一类功能单元之后,控制处于供电状态的电池为该第一类功能单元供电,而不像现有技术那样,处于供电状态的电池为电子设备的所有功能单元供电,电子设备的电池能够为与电池当前剩余电量对应级别的第一类功能单元供电,保证第一类功能单元能够正常工作,从而实现了电子设备电池的分级管理,延长了电池的供电时长。After the first type of functional unit is determined according to the current remaining power of the battery in the power supply state, the battery in the power supply state is controlled to supply power to the first type of functional unit, unlike the prior art, the battery in the power supply state is All the functional units of the electronic equipment are powered, and the battery of the electronic equipment can supply power for the first type of functional units corresponding to the current remaining power of the battery, so as to ensure the normal operation of the first type of functional units, thereby realizing the hierarchical management of the electronic equipment batteries and extending the battery life. The battery power supply time.
例如,假设电子设备为智能机器人时,如果处于供电状态的电池的当前剩余电量为100%时,则说明处于供电状态的电池的当前剩余电量较高,此时确定的第一类功能单元可以为智能机器人的所有功能单元,因此,处于供电状态的电池可以为智能机器人的底盘、机械臂、运动关节、上层控制板、路由器、屏幕、安全控制板、传感器等所有功能单元供电。For example, assuming that the electronic device is an intelligent robot, if the current remaining power of the battery in the power supply state is 100%, it means that the current remaining power of the battery in the power supply state is relatively high, and the first type of functional unit determined at this time can be All functional units of the intelligent robot, therefore, the battery in the power supply state can supply power for all functional units of the intelligent robot such as the chassis, mechanical arms, kinematic joints, upper control board, router, screen, safety control board, and sensors.
再例如,如果处于供电状态的电池的当前剩余电量为30%时,则说明处于供电状态的电池的当前剩余电量较低,此时确定的第一类功能单元可以为智能机器人的上层控制板、安全控制板和传感器等对于智能机器人的正常运行而言具有较高重要程度的功能单元,即第一类功能单元为级别较高的功能单元,因此,处于供电状态的电池可以为智能机器人的上层控制板、安全控制板和传感器等级别较高的功能单元供电。For another example, if the current remaining power of the battery in the power supply state is 30%, it means that the current remaining power of the battery in the power supply state is low, and the first type of functional unit determined at this time can be the upper control board of the intelligent robot, Safety control boards, sensors and other functional units that are of high importance to the normal operation of intelligent robots, that is, the first type of functional units are higher-level functional units. Therefore, the battery in the power supply state can be the upper layer of the intelligent robot. Higher-level functional units such as control boards, safety control boards, and sensors are powered.
与现有技术相比,本发明实施例的技术方案,通过检测电子设备中处于供电状态的电池的当前剩余电量;根据当前剩余电量,确定属于所述当前剩余电量对应的级别的第一类功能单元;控制处于供电状态的电池为所述第一类功能单元供电。因此,在电子设备处于供电状态时,电子设备的电池能够为与电池当前剩余电量对应级别的第一类功能单元供电,保证第一类功能单元能够正常工作,从而实现了电子设备电池的分级管理,延长了电池的供电时长。Compared with the prior art, the technical solution of the embodiment of the present invention detects the current remaining power of the battery in the power supply state in the electronic device; according to the current remaining power, determines the first type of function belonging to the level corresponding to the current remaining power unit; controlling the battery in the power supply state to supply power to the first type of functional unit. Therefore, when the electronic device is in the power supply state, the battery of the electronic device can supply power to the first type of functional unit corresponding to the current remaining battery capacity, ensuring that the first type of functional unit can work normally, thereby realizing the hierarchical management of the battery of the electronic device , extending the battery life.
进一步的,在图1所示实施例的基础上,如图2所示,在电子设备包括主电池和副电池,且处于供电状态的电池为主电池时,所述方法还可以包括:Further, on the basis of the embodiment shown in FIG. 1, as shown in FIG. 2, when the electronic device includes a main battery and a secondary battery, and the battery in the power supply state is the main battery, the method may further include:
S104,在满足预设的电池切换条件时,将主电池由供电状态切换至未供电状态,并启动副电池;S104, when the preset battery switching condition is met, switch the main battery from the power supply state to the non-power supply state, and start the secondary battery;
在电子设备包括主电池和副电池时,在电子设备处于工作状态时,既可以是主电池处于供电状态,也可以是副电池处于供电状态;且主电池的电池容量可以与副电池的电池容量相同,或者,考虑到电子设备的体积等因素,副电池的电池容量小于主电池的电池容量,这些都是合理的,本发明实施例对主电池的电池容量与副电池的电池容量的的大小关系不做具体限定。When the electronic device includes a main battery and a secondary battery, when the electronic device is in working condition, both the main battery and the secondary battery can be in the power supply state; and the battery capacity of the main battery can be equal to the battery capacity of the secondary battery The same, or, considering factors such as the volume of the electronic device, the battery capacity of the secondary battery is smaller than the battery capacity of the main battery. The relationship is not specifically limited.
当处于供电状态的电池为主电池时,在满足预设的电池切换条件时,将主电池由供电状态切换至未供电状态,此时,开启副电池,即将副电池由未供电状态切换至供电状态。When the battery in the power supply state is the main battery, when the preset battery switching conditions are met, the main battery is switched from the power supply state to the non-power supply state. At this time, the secondary battery is turned on, that is, the secondary battery is switched from the non-power supply state to the power supply state. state.
需要说明的是,预设的电池切换条件既可以是主电池的当前剩余电量为预设值,例如,该预设值可以为10%、5%等,或者由于故障原因导致主电池不能为电子设备供电,当然,预设的电池切换条件也可以是导致主电池不能为电子设备供电的其他条件,本发明对预设的电池切换条件不做具体限定。It should be noted that the preset battery switching condition can be that the current remaining power of the main battery is a preset value, for example, the preset value can be 10%, 5%, etc., or the main battery cannot be charged due to a failure. The device supplies power. Of course, the preset battery switching condition may also be other conditions that cause the main battery to fail to supply power to the electronic device. The present invention does not specifically limit the preset battery switching condition.
S105,确定需要所述副电池供电的所述电子设备的功能单元,并作为第二类功能单元;S105. Determine a functional unit of the electronic device that needs to be powered by the secondary battery, and use it as a second type of functional unit;
在副电池由未供电状态切换至供电状态时,确定需要副电池供电的第二类功能单元,需要说明的是,第二类功能单元既可以与第一类功能单元相同,也可以与第一类功能单元不同,这都是合理的。When the auxiliary battery switches from the non-powered state to the powered state, determine the second type of functional unit that needs to be powered by the auxiliary battery. It should be noted that the second type of functional unit can be the same as the first type of functional unit, or it can be the same Class functional units are different, which is all reasonable.
需要强调的是,在副电池的电池容量与主电量的电池容量相同时,可以根据副电池的当前剩余电量来确定第二类功能单元。当副电池的当前剩余电量较高时,如副电池的当前剩余电量为100%时,第二类功能单元可以为电子设备的所有功能单元;而当副电池的当前剩余电量较低时,如副电池的当前剩余电量为30%时,第二类功能单元可以为对于电子设备的正常运行具有较高重要程度的功能单元,即级别较高的功能单元。It should be emphasized that when the battery capacity of the auxiliary battery is the same as that of the main battery, the second type of functional unit may be determined according to the current remaining power of the auxiliary battery. When the current remaining power of the secondary battery is relatively high, such as when the current remaining power of the secondary battery is 100%, the second type of functional unit may be all functional units of the electronic device; and when the current remaining power of the secondary battery is low, such as When the current remaining power of the secondary battery is 30%, the second type of functional unit may be a functional unit that is more important to the normal operation of the electronic device, that is, a higher-level functional unit.
在副电池的电池容量小于主电池的电池容量时,既可以根据副电池的当前剩余电量来确定第二功能单元,也可以将对于电子设备的正常运行具有较高重要程度的功能单元,即级别较高的功能单元。举例而言,若副电池的电池容量为主电池的电池容量的90%,则在启动副电池时,第二类功能单元可以为电子设备的所有功能单元;当副电池的当前剩余电量为20%时,第二类功能单元为对于电子设备的正常运行具有较高重要程度的功能单元,即级别较高的功能单元。而若副电池的电池容量为主电池的电池容量的20%,则在启动副电池时,第二类功能单元为对于电子设备的正常运行具有较高重要程度的功能单元,即级别较高的功能单元。When the battery capacity of the auxiliary battery is smaller than the battery capacity of the main battery, the second functional unit can be determined according to the current remaining power of the auxiliary battery, or the functional unit that is more important to the normal operation of the electronic device, that is, the level Higher functional unit. For example, if the battery capacity of the auxiliary battery is 90% of the battery capacity of the main battery, then when the auxiliary battery is activated, the second type of functional units can be all functional units of the electronic device; when the current remaining power of the auxiliary battery is 20 %, the second type of functional unit is a functional unit with a higher degree of importance to the normal operation of the electronic device, that is, a higher-level functional unit. And if the battery capacity of the auxiliary battery is 20% of the battery capacity of the main battery, then when the auxiliary battery is activated, the second type of functional unit is a functional unit that is more important to the normal operation of the electronic device, that is, a higher-level functional unit. functional unit.
但是,在实际应用中,考虑到电子设备的体积或结构设计,很多情况下,副电池的电池容量比主电池的电池容量小很多,因此,第二类功能单元通常为对于电子设备的正常运行具有较高重要程度的功能单元,即级别较高的功能单元。However, in practical applications, considering the volume or structural design of electronic equipment, in many cases, the battery capacity of the secondary battery is much smaller than that of the main battery. Therefore, the second type of functional unit is usually necessary for the normal operation of electronic equipment A functional unit with a higher degree of importance, that is, a higher-level functional unit.
下面将以电子设备为智能机器人为例进行说明。The following description will be made by taking the electronic device as an intelligent robot as an example.
可选的,在电子设备为智能机器人时,第二类功能单元可以包括以下功能单元中的至少一种:上层控制板、路由器、屏幕、安全控制板、传感器。Optionally, when the electronic device is an intelligent robot, the second type of functional unit may include at least one of the following functional units: an upper control board, a router, a screen, a safety control board, and a sensor.
考虑到智能机器人的体积或结构设计,副电池的电池容量要比主电池的电池容量小很多,此时,副电池在由未供电状态切换至供电状态时,第二类功能单元不为电子设备的所有功能模块供电,而是对于电子设备的正常运行具有较高重要程度的功能单元,即级别较高的功能单元。Considering the size or structural design of the intelligent robot, the battery capacity of the auxiliary battery is much smaller than that of the main battery. At this time, when the auxiliary battery is switched from the unpowered state to the powered state, the second type of functional unit is not an electronic device. It is a functional unit with a higher degree of importance for the normal operation of electronic equipment, that is, a higher-level functional unit.
举例而言,由于上层控制板、路由器、屏幕、安全控制板、传感器等功能单元的级别较高,因此,第二功能单元可以包括安全控制板,有利于保证机器人能够安全工作,避免倾倒或与其他物体发生碰撞;第二功能单元可以包括上层控制板,有利于智能机器人与用户交互,并及时告知用户电子设备的主电池不能正常供电。再例如,第二类功能单元可以包括屏幕,此时可以将电子设备的主电池不能正常供电的信息显示在屏幕中,以使得用户能够及时查看。当然,第二类功能单元也可以是上层控制板、路由器、屏幕、安全控制板、传感器中的任意一种或者任意多种,这都是合理的。For example, since the functional units such as the upper control board, router, screen, safety control board, and sensor are at a higher level, the second functional unit may include a safety control board, which is beneficial to ensure that the robot can work safely and avoid falling or contact with the robot. Collision with other objects; the second functional unit may include an upper control board, which is beneficial to the interaction between the intelligent robot and the user, and timely informs the user that the main battery of the electronic device cannot supply power normally. For another example, the second type of functional unit may include a screen, and at this time, the information that the main battery of the electronic device cannot supply power normally may be displayed on the screen, so that the user can check it in time. Of course, the second type of functional unit can also be any one or multiple of the upper control board, router, screen, security control board, and sensor, which is reasonable.
S106,控制所述副电池为所述第二类功能单元供电。S106. Control the secondary battery to supply power to the second type of functional unit.
电子设备的副电池处于供电状态时,在第二类功能单元确定之后,电子设备的副电池为第二类功能单元供电,例如,假设第二类功能单元为上层控制板,则副电池为上层控制板供电;再例如,假设第二类功能单元为屏幕,则电子设备的副电池为电子设备的屏幕供电。When the secondary battery of the electronic device is in the power supply state, after the second type of functional unit is determined, the secondary battery of the electronic device supplies power for the second type of functional unit. For example, assuming that the second type of functional unit is the upper control board, the secondary battery is the upper layer The control board supplies power; for another example, assuming that the second type of functional unit is a screen, the secondary battery of the electronic device supplies power for the screen of the electronic device.
与现有技术相比,本发明实施例的技术方案,通过检测电子设备中处于供电状态的电池的当前剩余电量;根据当前剩余电量,确定属于所述当前剩余电量对应的级别的第一类功能单元;控制处于供电状态的电池为所述第一类功能单元供电。因此,在电子设备处于供电状态时,电子设备的电池能够为与电池当前剩余电量对应级别的第一类功能单元供电,保证第一类功能单元能够正常工作,从而实现了电子设备电池的分级管理,延长了电池的供电时长。而且,当电子设备的主电池不能正常为电子设备供电时,还可以由电子设备的副电池为电子设备供电,从而能确保电子设备级别较高的功能单元处于工作状态。Compared with the prior art, the technical solution of the embodiment of the present invention detects the current remaining power of the battery in the power supply state in the electronic device; according to the current remaining power, determines the first type of function belonging to the level corresponding to the current remaining power unit; controlling the battery in the power supply state to supply power to the first type of functional unit. Therefore, when the electronic device is in the power supply state, the battery of the electronic device can supply power to the first type of functional unit corresponding to the current remaining battery capacity, ensuring that the first type of functional unit can work normally, thereby realizing the hierarchical management of the battery of the electronic device , extending the battery life. Moreover, when the main battery of the electronic device cannot normally supply power to the electronic device, the secondary battery of the electronic device can also supply power to the electronic device, thereby ensuring that the higher-level functional units of the electronic device are in a working state.
进一步的,在图2所示实施例的基础上,如图3所示,在控制所述副电池为所述第二类功能单元供电之后,所述方法还包括:Further, on the basis of the embodiment shown in FIG. 2 , as shown in FIG. 3 , after controlling the secondary battery to supply power to the second type of functional unit, the method further includes:
S107,收集所述电子设备的当前运行状态信息;S107. Collect current operating state information of the electronic device;
在电子设备的副电池为第二类功能单元供电之后,电子设备收集其当前运行状态信息,其中,该当前运行状态信息可以包含:电子设备的主电池的当前剩余电量,也可以是电子设备的主电池发生故障不能正常供电,或者也可以是求救类信息,这都是合理的,本发明对当前运行状态信息的内容不做具体限定。After the secondary battery of the electronic device supplies power to the second type of functional unit, the electronic device collects its current operating state information, wherein the current operating state information may include: the current remaining power of the main battery of the electronic device, or the current remaining power of the electronic device. It is reasonable that the main battery fails to provide normal power supply, or it may be a help message, and the present invention does not specifically limit the content of the current operating state information.
S108,将所述当前运行状态信息发送至与所述电子设备通信连接的服务器,以使得所述服务器根据所述当前运行状态信息对所述电子设备进行状态诊断。S108. Send the current running state information to a server communicatively connected to the electronic device, so that the server performs a state diagnosis on the electronic device according to the current running state information.
在电子设备收集到当前运行状态信息后,将当前运行状态信息发送到与电子设备通信连接的服务器,服务器接收到该当前运行状态信息时,对该当前运行状态信息进行诊断,并进行相应的控制。例如,在判断出电子设备的主电池的当前剩余电量为10%时,管理人员可以及时为智能机器人充电。After the electronic device collects the current operating status information, it sends the current operating status information to the server connected to the electronic device, and when the server receives the current operating status information, it diagnoses the current operating status information and performs corresponding control . For example, when it is judged that the current remaining power of the main battery of the electronic device is 10%, the manager can charge the intelligent robot in time.
与现有技术相比,本发明实施例的技术方案,通过检测电子设备中处于供电状态的电池的当前剩余电量;根据当前剩余电量,确定属于所述当前剩余电量对应的级别的第一类功能单元;控制处于供电状态的电池为所述第一类功能单元供电。因此,在电子设备处于供电状态时,电子设备的电池能够为与电池当前剩余电量对应级别的第一类功能单元供电,保证第一类功能单元能够正常工作,从而实现了电子设备电池的分级管理,延长了电池的供电时长。而且,当电子设备的主电池不能正常为电子设备供电时,还可以由电子设备的副电池为电子设备供电,从而能确保电子设备的重要功能单元可以正常处于工作状态,并可以保证使用电子设备的用户能够及时得知电子设备的主电池不能正常供电。并且,在电子设备的副电池启动之后,与电子设备通信的服务器能够及时对电子的当前运行状态进行诊断,从而有利于管理人员对电子设备进行管理。Compared with the prior art, the technical solution of the embodiment of the present invention detects the current remaining power of the battery in the power supply state in the electronic device; according to the current remaining power, determines the first type of function belonging to the level corresponding to the current remaining power unit; controlling the battery in the power supply state to supply power to the first type of functional unit. Therefore, when the electronic device is in the power supply state, the battery of the electronic device can supply power to the first type of functional unit corresponding to the current remaining battery capacity, ensuring that the first type of functional unit can work normally, thereby realizing the hierarchical management of the battery of the electronic device , extending the battery life. Moreover, when the main battery of the electronic device cannot normally supply power to the electronic device, the secondary battery of the electronic device can also supply power to the electronic device, thereby ensuring that the important functional units of the electronic device can be in normal working condition and ensuring the use of the electronic device The user of the electronic device can know in time that the main battery of the electronic device cannot supply power normally. Moreover, after the secondary battery of the electronic device is activated, the server communicating with the electronic device can diagnose the current operating state of the electronic device in time, which is beneficial for managers to manage the electronic device.
可选的,在本发明的一种实施例中,在所述启动所述副电池之后,所述方法还包括:Optionally, in an embodiment of the present invention, after the starting of the secondary battery, the method further includes:
生成电池管理通知消息。Generate battery management notification messages.
电池管理通知消息是指当主电池切换至副电池时,生成的通知主电池不能正常供电的消息,例如,该消息可以为通知用户为主电池充电。在电子设备的副电池启动之后,说明此时主电池的当前剩余电量较低或者由于故障原因等主电池不能正常供电,此时电子设备会生成电池管理通知消息,其中,该电池管理通知信息可以有多种形式。具体的,在第二类功能单元包括屏幕时,该电池管理通知消息可以以文字显示在电子设备的屏幕中;在第二类功能单元包括上层控制板时,该电池管理通知消息可以以语音的形式播放出来。而且,该电池管理通知消息的内容既可以是简单的报警消息,也可以是“主电池无法正常供电,副电池已经启动”等类似的消息。本发明对电池管理通知消息的形式及具体内容不做限定。通过该实施例的技术方案,可以为使得用户及时对电池进行管理。例如,及时为主电池充电等。The battery management notification message refers to a message generated when the main battery is switched to the secondary battery, notifying that the main battery cannot supply power normally. For example, the message can notify the user to charge the main battery. After the secondary battery of the electronic device starts up, it means that the current remaining power of the main battery is low or the main battery cannot supply power normally due to a fault, and the electronic device will generate a battery management notification message at this time, wherein the battery management notification message can be There are many forms. Specifically, when the second type of functional unit includes a screen, the battery management notification message can be displayed in text on the screen of the electronic device; when the second type of functional unit includes an upper control board, the battery management notification message can be displayed in voice The form plays out. Moreover, the content of the battery management notification message may be a simple alarm message, or a similar message such as "the main battery cannot supply power normally, and the secondary battery has started". The present invention does not limit the form and specific content of the battery management notification message. Through the technical solution of this embodiment, the user can manage the battery in time. For example, charging the main battery in time, etc.
可选的,在本发明上述任一实施例中,在所述检测所述电子设备中处于供电状态的电池的当前剩余电量之后,所述方法还包括:Optionally, in any of the above-mentioned embodiments of the present invention, after the detection of the current remaining power of the battery in the power supply state in the electronic device, the method further includes:
判断所述当前剩余电量是否小于预定电量;judging whether the current remaining power is less than a predetermined power;
若为是,生成针对电量的通知消息。If yes, generate a notification message for the battery level.
在检测出电子设备的当前剩余电量之后,判断当前剩余电量是否小于预定电量,当判断结果为是时,发出通知消息,该通知消息用于提示用户处于供电状态的电池的当前剩余电量不足,以使得用户及时进行充电。After detecting the current remaining power of the electronic device, it is judged whether the current remaining power is less than the predetermined power. Allows the user to charge in time.
需要说明的时,该预定电量可以是电子设备系统设定的,也可以是用户根据自身需要进行设定的;而且,预定电量的大小也可大可小,本发明对预定电量的大小不做具体限定。When it needs to be explained, the predetermined amount of electricity can be set by the electronic equipment system, or can be set by the user according to their own needs; moreover, the size of the predetermined amount of electricity can also be large or small, and the present invention does not make any adjustments to the size of the predetermined amount of electricity. Specific limits.
第二方面,相应于上述第一方面所提供的方法实施例,本发明实施例还提供了一种电子设备控制装置,如图4所示,所述装置可以包括:In the second aspect, corresponding to the method embodiment provided in the first aspect above, the embodiment of the present invention also provides an electronic equipment control device, as shown in FIG. 4 , the device may include:
电量检测模块410,用于检测所述电子设备中处于供电状态的电池的当前剩余电量;A power detection module 410, configured to detect the current remaining power of the battery in the power supply state in the electronic device;
第一类功能单元确定模块420,用于根据所述当前剩余电量,确定需要所述处于供电状态的电池供电的所述电子设备的功能单元,并作为第一类功能单元;The first-type functional unit determination module 420 is configured to determine, according to the current remaining power, a functional unit of the electronic device that needs to be powered by the battery in the power supply state, and use it as a first-type functional unit;
第一控制模块430,用于控制所述处于供电状态的电池为所述第一类功能单元供电。The first control module 430 is configured to control the battery in the power supply state to supply power to the first type of functional unit.
与现有技术相比,本发明实施例的技术方案,通过检测电子设备中处于供电状态的电池的当前剩余电量;根据当前剩余电量,确定属于所述当前剩余电量对应的级别的第一类功能单元;控制处于供电状态的电池为所述第一类功能单元供电。因此,在电子设备处于供电状态时,电子设备的电池能够为与电池当前剩余电量对应级别的第一类功能单元供电,保证第一类功能单元能够正常工作,从而实现了电子设备电池的分级管理,延长了电池的供电时长。Compared with the prior art, the technical solution of the embodiment of the present invention detects the current remaining power of the battery in the power supply state in the electronic device; according to the current remaining power, determines the first type of function belonging to the level corresponding to the current remaining power unit; controlling the battery in the power supply state to supply power to the first type of functional unit. Therefore, when the electronic device is in the power supply state, the battery of the electronic device can supply power to the first type of functional unit corresponding to the current remaining battery capacity, ensuring that the first type of functional unit can work normally, thereby realizing the hierarchical management of the battery of the electronic device , extending the battery life.
可选的,如图5所示,所述装置还可以包括:Optionally, as shown in Figure 5, the device may also include:
副电池启动模块440,用于在所述电子设备包括主电池和副电池,且所述处于供电状态的电池为所述主电池时,在满足预设的电池切换条件时,将所述主电池由供电状态切换至未供电状态,并启动所述副电池;The auxiliary battery starting module 440 is configured to start the main battery when the electronic device includes a main battery and an auxiliary battery, and the battery in the power supply state is the main battery when a preset battery switching condition is met. switch from the power supply state to the non-power supply state, and start the secondary battery;
第二类功能单元确定模块450,用于确定需要所述副电池供电的所述电子设备的功能单元,并作为第二类功能单元;The second-type functional unit determination module 450 is configured to determine the functional units of the electronic device that need to be powered by the secondary battery as the second-type functional units;
第二控制模块460,用于控制所述副电池为所述第二类功能单元供电。The second control module 460 is configured to control the secondary battery to supply power to the second type of functional unit.
与现有技术相比,本发明实施例的技术方案,通过检测电子设备中处于供电状态的电池的当前剩余电量;根据当前剩余电量,确定属于所述当前剩余电量对应的级别的第一类功能单元;控制处于供电状态的电池为所述第一类功能单元供电。因此,在电子设备处于供电状态时,电子设备的电池能够为与电池当前剩余电量对应级别的第一类功能单元供电,保证第一类功能单元能够正常工作,从而实现了电子设备电池的分级管理,延长了电池的供电时长。而且,当电子设备的主电池不能正常为电子设备供电时,还可以由电子设备的副电池为电子设备供电,从而能确保电子设备级别较高的功能单元处于工作状态。Compared with the prior art, the technical solution of the embodiment of the present invention detects the current remaining power of the battery in the power supply state in the electronic device; according to the current remaining power, determines the first type of function belonging to the level corresponding to the current remaining power unit; controlling the battery in the power supply state to supply power to the first type of functional unit. Therefore, when the electronic device is in the power supply state, the battery of the electronic device can supply power to the first type of functional unit corresponding to the current remaining battery capacity, ensuring that the first type of functional unit can work normally, thereby realizing the hierarchical management of the battery of the electronic device , extending the battery life. Moreover, when the main battery of the electronic device cannot normally supply power to the electronic device, the secondary battery of the electronic device can also supply power to the electronic device, thereby ensuring that the higher-level functional units of the electronic device are in a working state.
可选的,如图6所示,所述装置还可以包括:Optionally, as shown in Figure 6, the device may also include:
运行状态信息收集模块470,用于在控制所述副电池为所述第二类功能单元供电之后,收集所述电子设备的当前运行状态信息;A running state information collection module 470, configured to collect current running state information of the electronic device after controlling the secondary battery to supply power to the second type of functional unit;
运行状态信息发送模块480,用于将所述当前运行状态信息发送至与所述电子设备通信连接的服务器,以使得所述服务器根据所述当前运行状态信息对所述电子设备进行状态诊断。The running state information sending module 480 is configured to send the current running state information to a server communicatively connected with the electronic device, so that the server can diagnose the state of the electronic device according to the current running state information.
与现有技术相比,本发明实施例的技术方案,通过检测电子设备中处于供电状态的电池的当前剩余电量;根据当前剩余电量,确定属于所述当前剩余电量对应的级别的第一类功能单元;控制处于供电状态的电池为所述第一类功能单元供电。因此,在电子设备处于供电状态时,电子设备的电池能够为与电池当前剩余电量对应级别的第一类功能单元供电,保证第一类功能单元能够正常工作,从而实现了电子设备电池的分级管理,延长了电池的供电时长。而且,当电子设备的主电池不能正常为电子设备供电时,还可以由电子设备的副电池为电子设备供电,从而能确保电子设备级别较高的功能单元处于工作状态。并且,在电子设备的副电池启动之后,与电子设备通信的服务器能够及时对电子的当前运行状态进行诊断,从而有利于管理人员对电子设备进行管理。Compared with the prior art, the technical solution of the embodiment of the present invention detects the current remaining power of the battery in the power supply state in the electronic device; according to the current remaining power, determines the first type of function belonging to the level corresponding to the current remaining power unit; controlling the battery in the power supply state to supply power to the first type of functional unit. Therefore, when the electronic device is in the power supply state, the battery of the electronic device can supply power to the first type of functional unit corresponding to the current remaining battery capacity, ensuring that the first type of functional unit can work normally, thereby realizing the hierarchical management of the battery of the electronic device , extending the battery life. Moreover, when the main battery of the electronic device cannot normally supply power to the electronic device, the secondary battery of the electronic device can also supply power to the electronic device, thereby ensuring that the higher-level functional units of the electronic device are in a working state. Moreover, after the secondary battery of the electronic device is activated, the server communicating with the electronic device can diagnose the current operating state of the electronic device in time, which is beneficial for managers to manage the electronic device.
可选的,所述装置还可以包括:Optionally, the device may also include:
第一通知消息生成模块,用于在所述启动所述副电池之后,生成电池管理通知消息。A first notification message generation module, configured to generate a battery management notification message after the secondary battery is started.
可选的,在所述电子设备为智能机器人的情况下,所述第一类功能单元包括以下功能单元中的至少一种:底盘、机械臂、运动关节、上层控制板、路由器、屏幕、安全控制板、传感器。Optionally, when the electronic device is an intelligent robot, the first type of functional unit includes at least one of the following functional units: chassis, mechanical arm, kinematic joint, upper control board, router, screen, security Control boards, sensors.
可选的,所述第二类功能单元包括以下功能单元中的至少一种:上层控制板、路由器、屏幕、安全控制板、传感器。Optionally, the second type of functional unit includes at least one of the following functional units: an upper control board, a router, a screen, a security control board, and a sensor.
可选的,所述装置还可以包括:Optionally, the device may also include:
预定电量判断模块,用于在所述检测所述电子设备中处于供电状态的电池的当前剩余电量之后,判断所述当前剩余电量是否小于预定电量;A predetermined power judging module, configured to determine whether the current remaining power is less than the predetermined power after detecting the current remaining power of the battery in the power supply state in the electronic device;
第二通知消息生成模块,用于如果所述预定电量判断模块判断出当前剩余电量小于预定电量时,生成针对电量的通知消息。The second notification message generating module is configured to generate a notification message for the battery capacity if the predetermined battery capacity judging module determines that the current remaining battery capacity is less than the predetermined battery capacity.
本发明实施例还提供了一种电子设备,如图7所示,包括处理器701、通信接口702、存储器703和通信总线704,其中,处理器701,通信接口702,存储器703通过通信总线704完成相互间的通信,The embodiment of the present invention also provides an electronic device, as shown in FIG. complete the mutual communication,
存储器703,用于存放计算机程序;Memory 703, used to store computer programs;
处理器701,用于执行存储器703上所存放的程序时,实现本发明实施例所提供的电子设备控制方法。The processor 701 is configured to implement the electronic device control method provided by the embodiment of the present invention when executing the program stored in the memory 703 .
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the electronic device and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include a random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital SignalProcessing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。Above-mentioned processor can be general-purpose processor, comprises central processing unit (Central Processing Unit, CPU), network processor (Network Processor, NP) etc.; Can also be Digital Signal Processor (Digital Signal Processing, DSP), ASIC (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
与现有技术相比,本发明实施例的技术方案,通过检测电子设备中处于供电状态的电池的当前剩余电量;根据当前剩余电量,确定属于所述当前剩余电量对应的级别的第一类功能单元;控制处于供电状态的电池为所述第一类功能单元供电。因此,在电子设备处于供电状态时,电子设备的电池能够为与电池当前剩余电量对应级别的第一类功能单元供电,保证第一类功能单元能够正常工作,从而实现了电子设备电池的分级管理,延长了电池的供电时长。Compared with the prior art, the technical solution of the embodiment of the present invention detects the current remaining power of the battery in the power supply state in the electronic device; according to the current remaining power, determines the first type of function belonging to the level corresponding to the current remaining power unit; controlling the battery in the power supply state to supply power to the first type of functional unit. Therefore, when the electronic device is in the power supply state, the battery of the electronic device can supply power to the first type of functional unit corresponding to the current remaining power of the battery, ensuring that the first type of functional unit can work normally, thereby realizing the hierarchical management of the battery of the electronic device , extending the battery life.
第四方面,在本发明提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现本发明实施例所提供的电子设备控制方法。In a fourth aspect, in yet another embodiment provided by the present invention, a computer-readable storage medium is also provided, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the embodiment of the present invention is realized The electronic device control method is provided.
与现有技术相比,本发明实施例的技术方案,通过检测电子设备中处于供电状态的电池的当前剩余电量;根据当前剩余电量,确定属于所述当前剩余电量对应的级别的第一类功能单元;控制处于供电状态的电池为所述第一类功能单元供电。因此,在电子设备处于供电状态时,电子设备的电池能够为与电池当前剩余电量对应级别的第一类功能单元供电,保证第一类功能单元能够正常工作,从而实现了电子设备电池的分级管理,延长了电池的供电时长。Compared with the prior art, the technical solution of the embodiment of the present invention detects the current remaining power of the battery in the power supply state in the electronic device; according to the current remaining power, determines the first type of function belonging to the level corresponding to the current remaining power unit; controlling the battery in the power supply state to supply power to the first type of functional unit. Therefore, when the electronic device is in the power supply state, the battery of the electronic device can supply power to the first type of functional unit corresponding to the current remaining battery capacity, ensuring that the first type of functional unit can work normally, thereby realizing the hierarchical management of the battery of the electronic device , extending the battery life.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. any such actual relationship or order exists between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备、计算机可读存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the apparatus, electronic equipment, and computer-readable storage medium, since they are basically similar to the method embodiments, the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiments.
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710525739.8ACN108733188A (en) | 2017-06-30 | 2017-06-30 | A kind of electronic equipment control method, device, electronic equipment and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710525739.8ACN108733188A (en) | 2017-06-30 | 2017-06-30 | A kind of electronic equipment control method, device, electronic equipment and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN108733188Atrue CN108733188A (en) | 2018-11-02 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710525739.8APendingCN108733188A (en) | 2017-06-30 | 2017-06-30 | A kind of electronic equipment control method, device, electronic equipment and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN108733188A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110297535A (en)* | 2019-07-05 | 2019-10-01 | Oppo(重庆)智能科技有限公司 | Mobile terminal method of supplying power to, mobile terminal power supply unit and mobile terminal |
| CN110601292A (en)* | 2019-09-17 | 2019-12-20 | Oppo(重庆)智能科技有限公司 | Battery management method, device, storage medium and electronic equipment |
| CN111464671A (en)* | 2019-01-18 | 2020-07-28 | 青岛海信移动通信技术股份有限公司 | Electronic equipment and charging method thereof |
| CN110177035B (en)* | 2019-05-15 | 2021-12-14 | 北京猎户星空科技有限公司 | Data receiving and sending method, device and data receiving and sending system |
| CN114204660A (en)* | 2021-11-05 | 2022-03-18 | 南方电网数字电网研究院有限公司 | Circuit control method and device of outdoor sensor and computer equipment |
| CN114340315A (en)* | 2021-12-03 | 2022-04-12 | 隆讯(徐州)智能科技有限公司 | System and monitoring method for realizing intelligent monitoring of cabinet status in IDC computer room |
| CN117695068A (en)* | 2024-01-04 | 2024-03-15 | 浙江强脑科技有限公司 | Low-power control method, device and equipment for leg prosthesis and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1665097A (en)* | 2004-03-01 | 2005-09-07 | 宏碁股份有限公司 | Power Supply System for Portable Electronic Devices |
| CN101867198A (en)* | 2009-04-20 | 2010-10-20 | 龙旗科技(上海)有限公司 | Realizing device and control method for standby battery of mobile phone |
| JP2012085238A (en)* | 2010-10-14 | 2012-04-26 | Ricoh Co Ltd | Image processing device, power control method and power control program therefor, and recording medium |
| US20120131367A1 (en)* | 2010-11-18 | 2012-05-24 | Panasonic Corporation | Device and method for controlling secondary battery |
| CN102638615A (en)* | 2012-03-28 | 2012-08-15 | 惠州Tcl移动通信有限公司 | Cellphone and control method thereof |
| US20120331313A1 (en)* | 2011-06-24 | 2012-12-27 | Ricoh Company, Limited | Image forming apparatus, power supply control method, and computer-readable storage medium |
| WO2013109242A1 (en)* | 2012-01-16 | 2013-07-25 | Honeywell International Inc. | Accurate determination of remaining time to battery empty in a powered air purifying respirator |
| CN104824927A (en)* | 2015-04-30 | 2015-08-12 | 成都迈奥信息技术有限公司 | Dual-power anti-lost induction-charging watchband |
| US20150282071A1 (en)* | 2012-09-25 | 2015-10-01 | Kyocera Corporation | Portable terminal and display control method |
| CN106300553A (en)* | 2016-09-30 | 2017-01-04 | 成都普诺思博科技有限公司 | A kind of mobile power management system of robot and method |
| CN106797133A (en)* | 2017-01-05 | 2017-05-31 | 深圳市大疆创新科技有限公司 | Control method, control device and electronic installation |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1665097A (en)* | 2004-03-01 | 2005-09-07 | 宏碁股份有限公司 | Power Supply System for Portable Electronic Devices |
| CN101867198A (en)* | 2009-04-20 | 2010-10-20 | 龙旗科技(上海)有限公司 | Realizing device and control method for standby battery of mobile phone |
| JP2012085238A (en)* | 2010-10-14 | 2012-04-26 | Ricoh Co Ltd | Image processing device, power control method and power control program therefor, and recording medium |
| US20120131367A1 (en)* | 2010-11-18 | 2012-05-24 | Panasonic Corporation | Device and method for controlling secondary battery |
| US20120331313A1 (en)* | 2011-06-24 | 2012-12-27 | Ricoh Company, Limited | Image forming apparatus, power supply control method, and computer-readable storage medium |
| WO2013109242A1 (en)* | 2012-01-16 | 2013-07-25 | Honeywell International Inc. | Accurate determination of remaining time to battery empty in a powered air purifying respirator |
| CN102638615A (en)* | 2012-03-28 | 2012-08-15 | 惠州Tcl移动通信有限公司 | Cellphone and control method thereof |
| US20150282071A1 (en)* | 2012-09-25 | 2015-10-01 | Kyocera Corporation | Portable terminal and display control method |
| CN104824927A (en)* | 2015-04-30 | 2015-08-12 | 成都迈奥信息技术有限公司 | Dual-power anti-lost induction-charging watchband |
| CN106300553A (en)* | 2016-09-30 | 2017-01-04 | 成都普诺思博科技有限公司 | A kind of mobile power management system of robot and method |
| CN106797133A (en)* | 2017-01-05 | 2017-05-31 | 深圳市大疆创新科技有限公司 | Control method, control device and electronic installation |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111464671A (en)* | 2019-01-18 | 2020-07-28 | 青岛海信移动通信技术股份有限公司 | Electronic equipment and charging method thereof |
| CN110177035B (en)* | 2019-05-15 | 2021-12-14 | 北京猎户星空科技有限公司 | Data receiving and sending method, device and data receiving and sending system |
| CN110297535A (en)* | 2019-07-05 | 2019-10-01 | Oppo(重庆)智能科技有限公司 | Mobile terminal method of supplying power to, mobile terminal power supply unit and mobile terminal |
| CN110297535B (en)* | 2019-07-05 | 2021-08-13 | Oppo(重庆)智能科技有限公司 | Mobile terminal power supply method, mobile terminal power supply device and mobile terminal |
| CN110601292A (en)* | 2019-09-17 | 2019-12-20 | Oppo(重庆)智能科技有限公司 | Battery management method, device, storage medium and electronic equipment |
| CN114204660A (en)* | 2021-11-05 | 2022-03-18 | 南方电网数字电网研究院有限公司 | Circuit control method and device of outdoor sensor and computer equipment |
| CN114340315A (en)* | 2021-12-03 | 2022-04-12 | 隆讯(徐州)智能科技有限公司 | System and monitoring method for realizing intelligent monitoring of cabinet status in IDC computer room |
| CN117695068A (en)* | 2024-01-04 | 2024-03-15 | 浙江强脑科技有限公司 | Low-power control method, device and equipment for leg prosthesis and storage medium |
| Publication | Publication Date | Title |
|---|---|---|
| CN108733188A (en) | A kind of electronic equipment control method, device, electronic equipment and storage medium | |
| JP6391700B2 (en) | Method for processing impedance abnormality of power adapter, terminal and charging circuit | |
| US9952645B2 (en) | Firmware update and power system thereof | |
| US9070924B2 (en) | Battery cover release | |
| CN106133541B (en) | Backup power supply system, degradation estimating device, and degradation estimating method | |
| CN106547331A (en) | Power distribution unit capable of managing residual power | |
| CN114899849A (en) | Load scheduling method, device, equipment and storage medium for energy storage equipment | |
| TW201119173A (en) | Method of using power supply to execute remote monitoring of an electronic system | |
| CN104092929A (en) | Video safeguard system | |
| EP2730994B1 (en) | Charging and discharging management device and mobile terminal | |
| JP2020043730A (en) | Electronic apparatus, processing method of the same, and electronic apparatus processing program | |
| CN115384352A (en) | A vehicle battery detection method, device and storage medium | |
| CN103837835B (en) | A kind of mobile equipment cell container decline degree detecting method and device thereof | |
| CN109412819A (en) | Method and device for warning device power down | |
| CN106707194B (en) | Rechargeable battery detection method and electronic equipment | |
| CN114567518B (en) | Device state prompting method and device, electronic device and storage medium | |
| CN109032320A (en) | Battery back unit test method and relevant device | |
| CN113852690A (en) | Battery pack management method and device, storage medium, electronic equipment and battery replacement station | |
| JP2023014966A (en) | Smart battery device and its electronic equipment | |
| CN115441526A (en) | Charging control method and device, electronic equipment and computer readable storage medium | |
| CN108306076A (en) | Battery chamber of data center air-conditioning inter-linked controlling method and system | |
| CN107272864B (en) | Reset circuit, battery and electronic equipment | |
| CN110514988A (en) | Relay fault detection method, device, electric vehicle | |
| CN104569843A (en) | Battery management method and device for low-power equipment | |
| CN115203621A (en) | Evaluation method, evaluation device, electronic equipment and storage medium |
| 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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20181102 |