Battery charging control method and device of robot, electronic equipment and storage medium
By obtaining the status information of the robot battery and dynamically adjusting the charging mode and current, the safety hazards and flexibility of robot charging management in the prior art are solved, and safe and reliable battery charging and longer battery life are achieved.
Patent Information
- Application Number
- CN202411071564.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-12-27
AI Technical Summary
The existing robot charging management methods cannot effectively detect the battery charging status, resulting in the battery being easily over-electrically damaged, posing a safety hazard. In addition, the inherent management method of a single charging chip cannot meet the complex and diverse charging needs.
By obtaining the status information of the robot battery, determining the applicable charging mode, and switching the charging circuit, using stop charging mode, small current charging mode or large current charging mode, dynamically adjusting the charging current according to voltage and temperature information, ensuring charging safety and flexibility .
It effectively avoids safety hazards during robot charging, adapts to complex charging management needs, improves battery life, and adapts to different working environments.
Smart Images

Figure CN119209794A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of robot charging, and in particular to a robot battery charging control method, device, electronic device and storage medium. Background Art
[0002] With the development of artificial intelligence technology, artificial intelligence robots have been widely used in various fields. Most robots use batteries as energy storage units to convert electrical energy. The batteries are discharged when performing tasks and charged during non-task periods. In order to maintain the continuous working ability of robots, the charging management of robots is an important research. At present, robots on the market generally rely on voltage differences for charging, and are not equipped with specific battery charging management methods. These robots cannot effectively detect the charging status of the battery. When the battery voltage is overcharged, it is easy to cause battery damage and overflow, which is a great safety hazard. Some robots are also equipped with battery charging management methods, but the battery charging management methods of these robots only use the inherent charging management method inside a single charging chip, and the inherent charging management method inside a single charging chip is not flexible enough to meet more different product requirements. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a robot battery charging control method, device, electronic device and storage medium, which can effectively avoid potential safety hazards when charging the robot; can adapt to complex and diverse charging management needs to adapt to different working environments of the robot; and can increase the battery life of the robot.
[0004] A first aspect of an embodiment of the present application provides a battery charging control method for a robot, comprising: when an external adapter is inserted into the robot, obtaining battery status information of the robot; determining a battery charging mode currently applicable to the robot based on the battery status information; performing charging circuit switching processing on the robot based on the battery charging mode currently applicable to the robot, obtaining a voltage input source currently applicable to the robot, and charging the battery of the robot according to the voltage input source currently applicable to the robot.
[0005] In a possible implementation, in the step of determining a battery charging mode currently applicable to the robot based on the battery status information, the battery charging mode currently applicable to the robot is any one of a stop charging mode, a low current charging mode, and a high current charging mode.
[0006] In a possible implementation, the step of determining the battery charging mode currently applicable to the robot according to the battery status information includes: if the voltage value in the battery status information is greater than or equal to a first preset voltage value, and the temperature value in the battery status information is less than the first preset temperature value or greater than the second preset temperature value, then determining the stop charging mode as the battery charging mode currently applicable to the robot; if the voltage value in the battery status information is less than the first preset voltage value, and the temperature value in the battery status information is greater than the first preset temperature value and less than a third preset temperature value, then determining the low current charging mode as the battery charging mode currently applicable to the robot; if the voltage value in the battery status information is less than the first preset voltage value, and the temperature value in the battery status information is greater than the fourth preset temperature value and less than the second preset temperature value, then determining the low current charging mode as the battery charging mode currently applicable to the robot; wherein, the first preset temperature value is less than the third preset temperature value, the third preset temperature value is less than the fourth preset temperature value, and the fourth preset temperature value is less than the second preset temperature value.
[0007] In a possible implementation, the battery charging control method of the robot further includes: obtaining insertion source information, where the insertion source information is the power source information connected to the charging interface of the robot; and determining a battery charging mode currently applicable to the robot based on the insertion source information and the battery status information.
[0008] In a possible implementation, the step of determining the battery charging mode currently applicable to the robot based on the insertion source information and the battery status information includes: if the voltage value in the battery status information is less than the second preset voltage value, the temperature value in the battery status information is greater than the third preset temperature value and less than the fourth preset temperature value, and the insertion source information is a power adapter insertion source, then the high current charging mode is determined as the battery charging mode currently applicable to the robot; if the voltage value in the battery status information is less than the second preset voltage value, the temperature value in the battery status information is greater than the third preset temperature value and less than the fourth preset temperature value, and the insertion source information is a device insertion source, then the low current charging mode is determined as the battery charging mode currently applicable to the robot; wherein the third preset temperature value is less than the fourth preset temperature value.
[0009] In a possible implementation, the battery charging control method of the robot further includes: performing status monitoring processing on the battery of the robot to obtain updated status information of the battery; and re-determining the battery charging mode currently applicable to the robot based on the updated status information of the battery.
[0010] In a possible implementation, when an external adapter is inserted into the robot, after the step of obtaining the battery status information of the robot, the method further includes: filtering the battery status information.
[0011] The second aspect of the embodiments of the present application provides a battery charging control device for a robot, comprising an insertion detection module, an information acquisition module, a mode selection module, a circuit switching module and a controller module, wherein the controller module is connected to the insertion detection module, the information acquisition module, the mode selection module and the circuit switching module respectively; wherein: the insertion detection module is used to detect the charging interface of the robot to determine whether an external adapter insertion event occurs in the robot and determine the insertion source; the information acquisition module is used to collect battery status information of the robot; the mode selection module is used to determine the battery charging mode currently applicable to the robot; the circuit switching module is used to perform charging circuit switching processing on the robot; the controller module is used to receive the detection information transmitted by the insertion detection module, receive the battery status information collected by the information acquisition module, call the mode selection module to determine the battery charging mode currently used by the robot according to the detection information and the battery status information, and call the circuit switching module to perform charging circuit switching processing on the robot according to the battery charging mode currently used by the robot.
[0012] A third aspect of an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the electronic device, wherein when the processor executes the computer program, each step of the robot battery charging control method provided in the first aspect is implemented.
[0013] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the robot battery charging control method provided in the first aspect are implemented.
[0014] The battery charging control method, device, electronic device and storage medium of a robot provided in the embodiments of the present application have the following beneficial effects:
[0015] This application obtains the battery status information of the robot when an external adapter is inserted into the robot; determines the battery charging mode currently applicable to the robot based on the battery status information; performs charging circuit switching processing on the robot based on the battery charging mode currently applicable to the robot, obtains the voltage input source currently applicable to the robot, and charges the battery of the robot according to the voltage input source currently applicable to the robot. Based on this method, the potential safety hazards when charging the robot can be effectively avoided; it can adapt to complex and diverse charging management requirements to adapt to different working environments of the robot; and it can increase the battery life of the robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0017] Figure 1 A flowchart of a method for controlling battery charging of a robot provided in an embodiment of the present application;
[0018] Figure 2 A flowchart for implementing the method for controlling battery charging of a robot provided in an embodiment of the present application when determining a battery charging mode currently applicable to the robot;
[0019] Figure 3 A second implementation flow chart of the battery charging control method for a robot provided in an embodiment of the present application;
[0020] Figure 4 A second implementation flow chart of determining a battery charging mode currently applicable to a robot in a battery charging control method for a robot provided in an embodiment of the present application;
[0021] Figure 5 A third implementation flow chart of the battery charging control method for a robot provided in an embodiment of the present application;
[0022] Figure 6 A basic structural block diagram of a battery charging control device for a robot provided in an embodiment of the present application;
[0023] Figure 7 A basic structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0025] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0026] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0027] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0028] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0029] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. "Multiple" means "two or more".
[0030] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0031] See also Figure 1 , Figure 1 This is a flowchart of a method for controlling battery charging of a robot provided in an embodiment of the present application. Figure 1 As shown, the method may specifically include the following steps S11 to S13.
[0032] S11: When an external adapter is inserted into the robot, the battery status information of the robot is obtained.
[0033] In this embodiment, a battery charging control device can be designed based on the hardware circuit inside the robot and deployed inside the robot. Specifically, the battery charging control device is configured with an insertion detection module and an information acquisition module. The insertion detection module can detect the charging interface of the robot in real time to determine whether an external adapter is inserted into the robot. Furthermore, the battery status information of the robot can be collected through the information acquisition module. It should be noted that the battery status information specifically includes the voltage data value and temperature data value of the battery.
[0034] S12: Determine a battery charging mode currently applicable to the robot according to the battery status information.
[0035] In this embodiment, the battery charging control device is also configured with a controller module and a mode selection module, and the controller module can specifically adopt an MCU (Microcontroller Unit) core controller. The mode selection module is provided with a charging control logic, and the charging control logic is specifically manifested as a correspondence between battery status information and battery charging mode. In this embodiment, the controller module can collect the real-time battery status information of the robot by calling the information collection module, and then based on the collected battery status information, the mode selection module is called to perform the corresponding mode selection, so as to determine the battery charging mode currently applicable to the robot.
[0036] In a specific embodiment, the charging control logic is provided with multiple battery charging modes including but not limited to stop charging mode, low current charging mode and high current charging mode. When determining the battery charging mode currently applicable to the robot, it is specifically to determine any one of the multiple battery charging modes such as stop charging mode, low current charging mode and high current charging mode as the battery charging mode currently applicable to the robot. It should be noted that the low current charging mode is charged at a current of 0.5C. The high current charging mode is charged at a current of 2C.
[0037] S13: Perform charging circuit switching processing on the robot according to the battery charging mode currently applicable to the robot, obtain the voltage input source currently applicable to the robot, and charge the battery of the robot according to the voltage input source currently applicable to the robot.
[0038] In this embodiment, the battery charging control device is also configured with a circuit switching module. The controller module can switch the circuit of the robot based on the battery charging mode currently applicable to the robot by calling the circuit switching module, so as to obtain the voltage input source currently applicable to the robot, thereby charging the robot according to the voltage input source currently applicable to the robot, and realizing the functions of charging current control, charging stop, etc. of the robot. Specifically, the circuit switching module specifically uses a MOS (metal oxide semiconductor, metal-oxide-semiconductor) tube circuit for circuit switching. A MOS tube circuit is a circuit constructed on the principle of using a MOS tube gate (g) to control the on and off of a MOS tube source (s) and a drain (d). In this embodiment, the battery charging control device switches the MOS tube circuit of the robot's charging chip circuit based on the battery charging mode currently applicable to the robot determined by the charging control logic, and can charge the robot's battery through the charging chip circuit with the voltage input source of the external adapter in the battery charging mode currently applicable to the robot determined by the charging control logic.
[0039] It can be seen from the above that the robot battery charging control method provided in the embodiment of the present application obtains the battery status information of the robot and adapts a suitable battery charging mode to the robot in combination with the real-time battery status of the robot, so that the robot has a more flexible and efficient charging function, can be applicable to complex and diverse charging management requirements, and adapt to different working environments of the robot; it can improve the battery life of the robot. Moreover, by determining different battery charging modes based on different battery status information, it is possible to forcibly stop charging when the battery voltage and temperature are abnormal, thereby effectively avoiding the potential safety hazards when the robot is charging, and avoiding the safety accidents of battery spontaneous combustion caused by battery overheating or excessive voltage.
[0040] In some embodiments of this application, please refer to Figure 2 , Figure 2 This is a flowchart for implementing the method for controlling the battery charging of a robot provided in an embodiment of the present application when determining the battery charging mode currently applicable to the robot. Figure 2 As shown, the method may specifically include the following steps S21 to S23.
[0041] S21: if the voltage value in the battery status information is greater than or equal to a first preset voltage value, and the temperature value in the battery status information is less than a first preset temperature value or greater than a second preset temperature value, determining the stop charging mode as a currently applicable battery charging mode for the robot;
[0042] S22: if the voltage value in the battery status information is less than the first preset voltage value, and the temperature value in the battery status information is greater than the first preset temperature value and less than a third preset temperature value, determining the low current charging mode as the battery charging mode currently applicable to the robot;
[0043] S23: If the voltage value in the battery status information is less than the first preset voltage value, and the temperature value in the battery status information is greater than the fourth preset temperature value and less than the second preset temperature value, the low current charging mode is determined as the battery charging mode currently applicable to the robot.
[0044] In this embodiment, when the battery charging control device configures the mode selection module, the charging control logic in the mode selection module can be set in combination with the two battery status information of voltage and temperature. The corresponding relationship between different battery states and different battery charging modes is programmed in the charging control logic. In this embodiment, a voltage critical value and four temperature critical values are set in the charging control logic, which are the first preset voltage value, the first preset temperature value, the second preset temperature value, the third preset temperature value, and the fourth preset temperature value. Among them, the first preset voltage value can be set to the rated voltage value of the robot battery; the four temperature critical values are arranged from small to large as the first preset temperature value, the third preset temperature value, the fourth preset temperature value, and the second preset temperature value. Five temperature state intervals can be divided by the four temperature critical values, and the corresponding relationship between the battery state and the battery charging mode is programmed based on the one voltage critical value and the five temperature state intervals. Specifically, a voltage value greater than or equal to a first preset voltage value and a temperature value less than a first preset temperature value or greater than a second preset temperature value are combined as selection conditions to establish a corresponding relationship with the stop charging mode; a voltage value less than the first preset voltage value and a temperature value greater than the first preset temperature value and less than the third preset temperature value are combined as selection conditions to establish a corresponding relationship with the low current charging mode; a voltage value less than the first preset voltage value and a temperature value greater than a fourth preset temperature value and less than the second preset temperature value are combined as selection conditions to establish a corresponding relationship with the high current charging mode. In the event of an external adapter being inserted into the robot, after obtaining the battery status information of the robot, the charging control logic can be adapted according to the battery status information. If the voltage value in the battery status information is greater than or equal to the first preset voltage value, and the temperature value in the battery status information is less than the first preset temperature value or greater than the second preset temperature value, the stop charging mode is determined as the battery charging mode currently applicable to the robot. If the voltage value in the battery status information is less than the first preset voltage value, and the temperature value in the battery status information is greater than the first preset temperature value and less than the third preset temperature value, the low current charging mode is determined as the battery charging mode currently applicable to the robot. If the voltage value in the battery status information is less than the first preset voltage value, and the temperature value in the battery status information is greater than the fourth preset temperature value and less than the second preset temperature value, the low current charging mode is determined as the battery charging mode currently applicable to the robot.
[0045] In a specific embodiment, the first preset voltage value is preferably 8.3V (volts), the first preset temperature value is preferably 0°C (degrees Celsius), the second preset temperature value is preferably 45°C (degrees Celsius), the third preset temperature value is preferably 15°C (degrees Celsius), and the fourth preset temperature value is preferably 35°C (degrees Celsius). The charging current in the low current charging mode is preferably 0.5C (charge amount), and the charging current in the high current charging mode is preferably 2C (charge amount).
[0046] In some embodiments of this application, please refer to Figure 3 , Figure 3 This is a second implementation flow chart of the battery charging control method for a robot provided in an embodiment of the present application. Figure 3 As shown, it may specifically include the following steps S31 to S32.
[0047] S31: Acquire insertion source information, where the insertion source information is information about the power source connected to the charging interface of the robot;
[0048] S32: Determine a battery charging mode currently applicable to the robot according to the insertion source information and the battery status information.
[0049] In this embodiment, in addition to considering the battery status information of the robot, the insertion source information and the battery status information can also be combined as a consideration for determining the battery charging mode currently applicable to the robot, and the battery charging mode currently applicable to the robot is determined according to the insertion source information and the battery status information. In this embodiment, the battery charging control device can identify the insertion source of the current charging interface when performing real-time detection on the charging interface of the robot through the insertion detection module, thereby obtaining the insertion source information. It can be understood that the insertion source information is the power supply information connected to the robot charging interface. Specifically, based on the fact that some computers currently available on the market will cause damage to the power system of the computer when the output is a large current (2C), and will not cause damage to the power system of the computer when the output is a small current (0.5C), the insertion source information can be divided into two types: the power adapter insertion source and the device insertion source. By considering the insertion source to determine the battery charging mode, it is achieved that the charging function can be guaranteed while being compatible with the computer's use safety.
[0050] In some embodiments of this application, please refer to Figure 4 , Figure 4 This is a second implementation flow chart of determining the battery charging mode currently applicable to the robot in the battery charging control method of the robot provided in the embodiment of the present application. Figure 4 As shown, it may specifically include the following steps S41 to S42.
[0051] S41: If the voltage value in the battery status information is less than the second preset voltage value, the temperature value in the battery status information is greater than the third preset temperature value and less than the fourth preset temperature value, and the insertion source information is a power adapter insertion source, then the high current charging mode is determined as the battery charging mode currently applicable to the robot;
[0052] S42: If the voltage value in the battery status information is less than the second preset voltage value, the temperature value in the battery status information is greater than the third preset temperature value and less than the fourth preset temperature value, and the insertion source information is a device insertion source, then the low current charging mode is determined as the battery charging mode currently applicable to the robot.
[0053] In this embodiment, when the battery charging control device configures the mode selection module, the charging control logic in the mode selection module can be set in combination with the two battery status information of voltage and temperature and the insertion source information. Two voltage critical values and four temperature critical values are set in the charging control logic, and one voltage critical value, i.e., the second preset voltage value, is added. Among them, the second preset voltage value is less than the first preset voltage value, and specifically, the second preset voltage value can be set to 98% of the first preset voltage value. Specifically, the voltage value is less than the second preset voltage value, the temperature value is greater than the third preset temperature value and less than the fourth preset temperature value, and the insertion source information is the power adapter insertion source, combined as a selection condition to establish a corresponding relationship with the large current charging mode; the voltage value is less than the second preset voltage value, the temperature value is greater than the third preset temperature value and less than the fourth preset temperature value, and the insertion source information is the device insertion source, combined as a selection condition to establish a corresponding relationship with the small current charging mode. In the case of an external adapter insertion event in the robot, after obtaining the battery status information and the insertion source information of the robot, the charging control logic can be adapted according to the battery status information and the insertion source information. If the voltage value in the battery status information is less than the second preset voltage value, the temperature value in the battery status information is greater than the third preset temperature value and less than the fourth preset temperature value, and the insertion source information is a power adapter insertion source, the high current charging mode is determined as the battery charging mode currently applicable to the robot. If the voltage value in the battery status information is less than the second preset voltage value, the temperature value in the battery status information is greater than the third preset temperature value and less than the fourth preset temperature value, and the insertion source information is a device insertion source, the low current charging mode is determined as the battery charging mode currently applicable to the robot. This embodiment combines voltage, temperature, and insertion source to consider multiple situations. When the insertion source is determined to be a device insertion, in order to avoid causing damage to the power system of the device, it can be forcibly controlled to charge at a low current (0.5C) within the normal range of temperature and voltage, ensuring the charging function while also being compatible with the safety of the device. Moreover, by writing different charging control logics for charging management, it can adapt to complex and diverse charging management needs to adapt to the working environment of the robot in different parts of the world (overheating, overcooling), and improve the service life of the battery.
[0054] In some embodiments of this application, please refer to Figure 5 , Figure 5 This is a third implementation flow chart of the battery charging control method for a robot provided in an embodiment of the present application. Figure 5 As shown, it may specifically include the following steps S51 to S52.
[0055] S51: Performing status monitoring processing on the battery of the robot to obtain updated status information of the battery;
[0056] S52: Re-determine the battery charging mode currently applicable to the robot according to the updated battery status information.
[0057] In this embodiment, the battery charging control device can also be configured with a battery monitoring module, through which the battery monitoring module performs real-time status monitoring processing on the robot's battery, and the updated battery status information can be obtained at any time, so as to re-determine the battery charging mode currently applicable to the robot according to the updated battery status information. By constantly monitoring the battery voltage, temperature and the entire charging process status, the battery charging mode applicable to the robot can be changed in time, and the charging current can be adjusted, so that the robot has a more flexible and efficient charging function.
[0058] In some embodiments of the present application, after obtaining the battery status information of the robot, the battery status information can be further filtered. After filtering including but not limited to a limiting filtering algorithm and a median filtering algorithm, more accurate and effective voltage and temperature values can be obtained, thereby improving the accuracy of determining the battery charging mode currently applicable to the robot.
[0059] It is understandable that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0060] In some embodiments of this application, please refer to Figure 6 , Figure 6 This is a basic structural block diagram of a robot battery charging control device provided in an embodiment of the present application. The various units included in the device in this embodiment are used to execute the various steps in the above method embodiment. For details, please refer to the relevant description in the above method embodiment. For ease of explanation, only the parts related to this embodiment are shown. Figure 6As shown, the battery charging control device of the robot includes: an insertion detection module 61, an information acquisition module 62, a mode selection module 63, a circuit switching module 64 and a controller module 65, wherein the controller module 65 is connected to the insertion detection module 61, the information acquisition module 62, the mode selection module 63 and the circuit switching module 64 respectively; wherein: the insertion detection module 61 is used to detect the charging interface of the robot to determine whether an external adapter insertion event occurs in the robot and determine the insertion source; the information acquisition module 62 is used to collect the battery status information of the robot; the mode selection module 63 is used to determine the battery charging mode currently applicable to the robot; the circuit switching module 64 is used to perform charging circuit switching processing on the robot; the controller module 65 is used to receive the detection information transmitted by the insertion detection module 61, receive the battery status information collected by the information acquisition module 62, call the mode selection module 63 to determine the battery charging mode currently used by the robot according to the detection information and the battery status information, and call the circuit switching module 64 to perform charging circuit switching processing on the robot according to the battery charging mode currently used by the robot.
[0061] It should be understood that the battery charging control device of the above-mentioned robot corresponds one-to-one with the battery charging control method of the above-mentioned robot, and will not be described in detail here.
[0062] In some embodiments of this application, please refer to Figure 7 , Figure 7 This is a basic structural block diagram of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device 7 of this embodiment includes: a processor 71, a memory 72, and a computer program 73 stored in the memory 72 and executable on the processor 71, such as a program of a battery charging control method for a robot. When the processor 71 executes the computer program 73, the steps in each embodiment of the battery charging control method for each robot described above are implemented. Alternatively, when the processor 71 executes the computer program 73, the functions of each module in the embodiment corresponding to the battery charging control device for the above-mentioned robot are implemented. Please refer to the relevant description in the embodiment for details, which will not be repeated here.
[0063] Exemplarily, the computer program 73 can be divided into one or more modules (units), and the one or more modules are stored in the memory 72 and executed by the processor 71 to complete the present application. The one or more modules can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 73 in the electronic device 7. For example, the computer program 73 can be divided into an insertion detection module, an information collection module, a mode selection module, a circuit switching module and a controller module, and the specific functions of each module are as described above.
[0064] The electronic device may include, but is not limited to, a processor 71 and a memory 72. Those skilled in the art will appreciate that Figure 7 It is only an example of the electronic device 7 and does not constitute a limitation of the electronic device 7. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0065] The processor 71 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0066] The memory 72 may be an internal storage unit of the electronic device 7, such as a hard disk or memory of the electronic device 7. The memory 72 may also be an external storage device of the electronic device 7, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 7. Further, the memory 72 may also include both an internal storage unit and an external storage device of the electronic device 7. The memory 72 is used to store the computer program and other programs and data required by the electronic device. The memory 72 may also be used to temporarily store data that has been output or is to be output.
[0067] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0068] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented. In this embodiment, the computer-readable storage medium can be non-volatile or volatile.
[0069] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0070] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0071] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0072] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0073] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A robot battery charging control method, characterized in that: include: When an external adapter is inserted into the robot, obtaining battery status information of the robot; Determining a battery charging mode currently applicable to the robot according to the battery status information; The charging circuit of the robot is switched according to the battery charging mode currently applicable to the robot, the voltage input source currently applicable to the robot is obtained, and the battery of the robot is charged according to the voltage input source currently applicable to the robot.
2. The robot battery charging control method according to claim 1, characterized in that: In the step of determining the battery charging mode currently applicable to the robot according to the battery status information, the battery charging mode currently applicable to the robot is any one of a stop charging mode, a low current charging mode and a high current charging mode.
3. The robot battery charging control method according to claim 2, characterized in that: The step of determining the battery charging mode currently applicable to the robot according to the battery status information comprises: If the voltage value in the battery status information is greater than or equal to a first preset voltage value, and the temperature value in the battery status information is less than a first preset temperature value or greater than a second preset temperature value, the stop charging mode is determined as a battery charging mode currently applicable to the robot; If the voltage value in the battery status information is less than the first preset voltage value, and the temperature value in the battery status information is greater than the first preset temperature value and less than a third preset temperature value, the low current charging mode is determined as the battery charging mode currently applicable to the robot; If the voltage value in the battery status information is less than the first preset voltage value, and the temperature value in the battery status information is greater than a fourth preset temperature value and less than a second preset temperature value, the low current charging mode is determined as the battery charging mode currently applicable to the robot; The first preset temperature value is smaller than the third preset temperature value, the third preset temperature value is smaller than the fourth preset temperature value, and the fourth preset temperature value is smaller than the second preset temperature value.
4. The robot battery charging control method according to claim 3, characterized in that: The battery charging control method of the robot further includes: Obtaining insertion source information, where the insertion source information is information about the power source connected to the charging interface of the robot; A battery charging mode currently applicable to the robot is determined according to the insertion source information and the battery status information.
5. The robot battery charging control method according to claim 4, characterized in that: The step of determining the battery charging mode currently applicable to the robot according to the insertion source information and the battery status information comprises: If the voltage value in the battery status information is less than the second preset voltage value, the temperature value in the battery status information is greater than the third preset temperature value and less than the fourth preset temperature value, and the insertion source information is a power adapter insertion source, the high current charging mode is determined as the battery charging mode currently applicable to the robot; If the voltage value in the battery status information is less than the second preset voltage value, the temperature value in the battery status information is greater than the third preset temperature value and less than the fourth preset temperature value, and the insertion source information is a device insertion source, the low current charging mode is determined as the battery charging mode currently applicable to the robot; Wherein, the third preset temperature value is lower than the fourth preset temperature value.
6. The robot battery charging control method according to any one of claims 1 to 5, characterized in that: The battery charging control method of the robot further includes: Performing status monitoring processing on the battery of the robot to obtain updated status information of the battery; The battery charging mode currently applicable to the robot is re-determined according to the updated battery status information.
7. The robot battery charging control method according to any one of claims 1 to 5, characterized in that: After the step of obtaining the battery status information of the robot when an external adapter is inserted into the robot, the method further includes: The battery status information is filtered.
8. A battery charging control device for a robot, characterized in that: The battery charging control device of the robot is used to execute the steps of the method according to any one of claims 1 to 7, comprising an insertion detection module, an information acquisition module, a mode selection module, a circuit switching module and a controller module, wherein the controller module is respectively connected to the insertion detection module, the information acquisition module, the mode selection module and the circuit switching module; wherein: The insertion detection module is used to detect the charging interface of the robot to determine whether an external adapter insertion event occurs in the robot and to determine the insertion source; The information acquisition module is used to collect battery status information of the robot; The mode selection module is used to determine the battery charging mode currently applicable to the robot; The circuit switching module is used to perform charging circuit switching processing on the robot; The controller module is used to receive the detection information transmitted by the insertion detection module, receive the battery status information collected by the information acquisition module, call the mode selection module to determine the battery charging mode currently used by the robot according to the detection information and the battery status information, and call the circuit switching module to perform charging circuit switching processing on the robot according to the battery charging mode currently used by the robot.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
