Battery parameter updating method, device, equipment, medium and program product
By monitoring data when the chip serial port of the battery device is connected to the battery parameter update device, and sending parameter update instructions when a preset data frame is received, the problem of low efficiency in battery chip parameter update in the prior art is solved, and a more efficient chip status information determination and update process is realized.
Patent Information
- Application Number
- CN202510483068.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-17
- Publication Date
- 2025-05-30
AI Technical Summary
The existing battery chip parameter update method is difficult to accurately determine the chip status information, and the update process takes a long time, resulting in low chip update efficiency.
When the chip serial port of the battery device is connected to the battery parameter update device, data monitoring is performed on the chip serial port, and parameter update instructions are sent to the battery device when the preset data frame is monitored to realize chip parameter update.
This method can accurately determine the status information of the battery chip, reduce the time required to determine the battery state, reduce the time spent on chip updates, and improve the efficiency of chip updates.
Smart Images

Figure CN120073107A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of battery management, and in particular, to a method, device, equipment, medium and program product for updating battery parameters. Background Art
[0002] The chip plays a crucial role in the battery management system. The battery chip can monitor and control the working state of the battery, adjust working parameters such as the voltage, current and temperature of the battery, and ensure the working performance and safety of the battery and its equipment. During the production process or actual use, in order to ensure that the relevant performance of the battery equipment meets the production design requirements, it is necessary to update and modify the relevant parameters of the battery chip to improve the working performance of the chip and the battery.
[0003] In the existing method for updating battery chip parameters, generally a general serial port tool is used to establish a physical connection with the battery chip, and the battery chip parameters are modified by inputting relevant parameter instructions. However, in this solution, it is difficult to accurately determine the status information of the battery chip, and the process of receiving the battery chip from the battery chip connection for parameter update takes a long time, resulting in low chip update efficiency. Summary of the Invention
[0004] The present invention provides a method, device, equipment, medium and program product for updating battery parameters to solve the problem that in the existing method for updating battery chip parameters, it is difficult to accurately determine the status information of the battery chip, and the update process takes a long time, resulting in low chip update efficiency.
[0005] In a first aspect, an embodiment of the present application provides a method for updating battery parameters, including: When it is detected that the chip serial port of the battery device is connected to the battery parameter update device, data monitoring is performed on the chip serial port; When a preset data frame from the chip serial port is monitored, a parameter update instruction is sent to the battery device through the chip serial port, so that the battery device responds to the parameter update instruction to perform chip parameter update, and the preset data frame is used to instruct the battery device to enter a state to be updated to wait for chip parameter update.
[0006] Optionally, when a preset data frame from the chip serial port is monitored, sending a parameter update instruction to the battery device through the chip serial port, so that the battery device responds to the parameter update instruction to perform chip parameter update, includes: When a preset data frame from the chip serial port is monitored and the chip update parameters of the battery device are obtained, a parameter update instruction including the chip update parameters is sent to the battery device through the chip serial port, so that the battery device responds to the parameter update instruction to perform chip parameter update; After the update feedback data sent by the battery device through the chip serial port is monitored, the chip update status of the battery device is determined according to the update feedback data.
[0007] Optionally, obtain the chip update parameters of the battery device, including: Monitor the working condition of the scanning device on the battery parameter update device; When it is monitored that the scanning device starts scanning and the new information scanned by the scanning device is a parameter update identifier, extract the chip update parameters of the battery device from the chip update data associated with the parameter update identifier.
[0008] Optionally, determine the chip update status of the battery device according to the feedback data, including: When the update feedback data is data indicating that the parameter modification is successful, determine that the chip update status of the battery device is chip update successful, and display the chip update successful status on the interface; Update the chip update successful status and chip version information of the battery device to the battery information management system, which is used to store and manage data of different battery devices.
[0009] Optionally, determine the chip update status of the battery device according to the update feedback data, including: When the update feedback data is data indicating that the parameter modification fails, determine that the chip update status of the battery device is chip update failed, and display the chip update successful status on the interface; Update the chip update successful status of the battery device to the battery information management system, and re-execute the chip update task until the chip parameters of the battery device are successfully updated, and then update the chip update successful status and chip version information of the battery device to the battery information management system.
[0010] Optionally, after sending a parameter update instruction to the battery device through the chip serial port, the method includes: Start a timer to time; If the update feedback data sent by the battery device through the chip serial port is not monitored within the preset duration, continue to send the parameter update instruction to the battery device through the chip serial port until the update feedback data is monitored.
[0011] Optionally, before performing data monitoring on the chip serial port when it is detected that the chip serial port of the battery device is accessed, the method further includes: After detecting that the battery parameter update device is started, monitor the scanning information of the scanning device on the battery parameter update device; When the target device information is scanned by the scanning device, according to the serial port chip information of the battery device in the target device information, detect the situation where the chip serial port of the battery device is accessed to the battery parameter update device.
[0012] Optionally, according to the serial port chip information of the battery device in the target device information, detecting the situation where the chip serial port of the battery device accesses the battery parameter update device includes: Matching the serial port scan data pre-stored in the battery parameter update device with the serial port chip information, where the serial port scan data stores the serial port information scanned after the battery parameter update device is powered on and started; If the serial port chip information is matched in the serial port scan data, it is determined that the chip serial port of the battery device accesses the battery parameter update device.
[0013] Optionally, after matching the serial port scan data pre-stored in the battery parameter update device with the serial port chip information, the method further includes: If the serial port chip information is not matched in the serial port scan data, it is determined that the chip serial port of the battery device is not accessed, a user interface reminder is given for the non-access situation of the chip serial port, and the situation where the chip serial port accesses the battery parameter update device is continuously detected; When it is detected that the serial port information of the serial port accessed by the battery parameter update device is the serial port chip information, it is determined that the chip serial port of the battery device accesses the battery parameter update device, and the serial port chip information is updated to the serial port scan data.
[0014] In a second aspect, an embodiment of the present application provides a battery parameter update method, including: When it is detected that the chip serial port of the battery device accesses the battery parameter update device, controlling the chip of the battery device to enter a state to be updated to wait for chip parameter update, and sending a pre-buried preset data frame to the battery parameter update device, so that the battery parameter update device sends a parameter update instruction to the battery device according to the preset data frame; Receiving the parameter update instruction sent by the battery parameter update device, and performing chip parameter update according to the parameter update instruction.
[0015] In a third aspect, an embodiment of the present application provides a battery parameter update device, including: A listening module, configured to perform data listening on the chip serial port when it is detected that the chip serial port of the battery device accesses; A sending module, configured to send a parameter update instruction to the battery device through the chip serial port when a preset data frame from the chip serial port is listened, so that the battery device responds to the parameter update instruction to perform chip parameter update, and the preset data frame is used to instruct the battery device to enter a state to be updated to wait for chip parameter update.
[0016] In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the battery parameter update method are implemented.
[0017] Fifth aspect, an embodiment of the present application provides a readable storage medium storing a computer program, which when executed by a processor implements the steps of the above battery parameter update method.
[0018] Sixth aspect, an embodiment of the present application provides a computer program product, which includes a computer program that when executed by a processor enables the implementation of the steps of the above battery parameter update method.
[0019] In a solution provided by the above battery parameter update method, device, equipment, medium, and program product, when it is detected that the chip serial port of the battery device is connected to the battery parameter update device, data monitoring is performed on the chip serial port; when a preset data frame from the chip serial port is monitored, a parameter update instruction is sent to the battery device through the chip serial port, so that the battery device responds to the parameter update instruction to perform chip parameter update. The preset data frame is used to indicate that the battery device enters a state to be updated to wait for chip parameter update. When the chip sends the pre-embedded preset data frame upon connecting to the battery parameter update device, when the battery parameter update device monitors the preset data frame from the chip serial port, it can determine that the chip of the battery device has been correctly connected to the battery parameter update device, and the chip is in a normal working state and enters the state to be updated. That is, the connection situation of the battery device and the working state of the chip can be determined through the reception situation of the preset data frame. When the preset data frame of the battery device is received, a parameter update instruction can be sent to the battery device to perform chip parameter update. This process can accurately determine the status information of the battery chip, reduce the time required to determine the battery status, reduce the time-consuming of chip update, and improve the efficiency of chip update. Description of the Drawings
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0021] Figure 1 is a schematic structural diagram of a battery chip parameter update system in an embodiment of the present invention; Figure 2 is a schematic flowchart of a battery chip parameter update method in an embodiment of the present invention; Figure 3 is Figure 2 an implementation flowchart of step S20 in Figure 4 and Figure 5 is another schematic flowchart of a battery chip parameter update method in an embodiment of the present invention; Figure 6 It is another flowchart diagram of the method for updating battery chip parameters in an embodiment of the present invention; Figure 7 It is Figure 1 a structural diagram of the battery chip parameter update device in Figure 8 It is Figure 1 a structural diagram of the battery device in Figure 9 It is a structural diagram of an electronic device in an embodiment of the present invention. Detailed implementation manners
[0022] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts belong to the scope of protection of the present invention.
[0023] It should be understood that when used in the specification and the appended claims of the present invention, the term "comprising" indicates the presence of the 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 their combinations. It should also be understood that the term "and / or" used in the specification and the appended claims of the present invention refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0024] In addition, in the description of the specification and the appended claims of the present invention, the terms "first", "second", "third", etc. are only used for distinguishing descriptions, and cannot be understood as indicating or implying relative importance.
[0025] The reference to "an embodiment" or "some embodiments" etc. in the specification of the present invention means that a specific feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present invention. Thus, the phrases "in an embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments" etc. appearing in different places in this specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0026] It should be understood that the magnitudes of the sequence numbers of the steps in the following embodiments do not imply the order of execution. The order of execution of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
[0027] To illustrate the technical solution of the present invention, the following specific embodiments are used for illustration.
[0028] It should be understood that in the traditional battery chip parameter update method, a general serial port tool is usually used to establish a physical connection with the battery chip, and the battery chip parameters are modified by inputting relevant parameter instructions. Such updates are difficult to accurately determine the status information of the battery chip, and the process of receiving the battery chip from the battery chip connection for parameter update takes a long time, resulting in low chip update efficiency. For example, after the serial port tool establishes a physical connection with the battery chip, relevant personnel input and send the to-be-updated instruction of the chip to the battery device. After the battery device receives the to-be-updated instruction, it adjusts the chip status to ensure that the chip can perform parameter update subsequently. Then the battery device sends the update ready status. After relevant personnel receive the update ready status of the battery device, they assemble it into a formal update instruction according to the updated parameters and send the formal update instruction to the battery device for chip parameter update. In this process, after the two devices are connected, it is difficult to accurately determine the status information of the battery chip, such as whether the battery device is correctly connected and whether the chip of the battery device can perform chip update; multiple instructions need to be sent and the device needs to be waited for to be ready, and after determining the device ready status, a formal update instruction needs to be assembled according to the updated parameters. The entire process is complex, the process of receiving the battery chip from the battery chip connection for parameter update takes a long time, resulting in low chip update efficiency, and it is also easy to have input error information.
[0029] In view of the above problems, the battery parameter update method provided by the embodiments of the present invention can be applied in a Figure 1 battery parameter update system as shown. The battery parameter update system includes a battery device and a battery parameter update device, wherein the battery device communicates with the battery parameter update device through a serial port.
[0030] Specifically, when performing the battery device chip update task, relevant personnel connect the battery device to the battery parameter update device through a serial cable. After the battery parameter update device and the battery device are started, the battery parameter update device and the battery device respectively detect the access situation of the serial port of the chip of the battery device (i.e., the serial port of the serial port chip). When the battery device detects that the serial port of the chip of the battery device is connected to the battery parameter update device, it prepares for chip update. After the preparation is completed and it enters the waiting update state, it sends a preset data frame to the battery parameter update device through the chip serial port. This preset data frame is used to instruct the battery device to enter the waiting update state to wait for chip parameter update. During this process, when the battery parameter update device detects that the serial port of the chip of the battery device is connected to the battery parameter update device, it listens for data on the chip serial port; when it listens to the preset data frame from the chip serial port, it sends a parameter update instruction to the battery device through the chip serial port, so that the battery device responds to the parameter update instruction to perform chip parameter update.
[0031] In this embodiment, when the chip is connected to the battery parameter update device, it sends a pre-buried preset data frame. When the battery parameter update device listens to the preset data frame from the chip serial port, it can determine that the chip of the battery device has been correctly connected to the battery parameter update device, and the chip working state is normal and it enters the waiting update state. That is, the access situation of the battery device and the chip working state can be determined through the reception situation of the preset data frame. When receiving the preset data frame of the battery device, it can send a parameter update instruction to the battery device to perform chip parameter update. This process can accurately determine the status information of the battery chip, reduce the time required to determine the battery status, reduce the time-consuming of chip update, and improve the efficiency of chip update. In addition, during this process, relevant personnel only need to connect the serial cable of the battery device to the battery parameter update device, without confirming the access state and battery state of the battery device, and then perform chip parameter update through instructions, reducing the complex operations in the chip update process, and improving the convenience and update cost of chip parameter update.
[0032] Among them, a specific program for chip update is installed on the battery parameter update device. The battery parameter update device can include, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices. In other embodiments, the battery parameter update device can also be a server, and the server can be implemented by an independent server or a server cluster composed of multiple servers.
[0033] In one embodiment, as Figure 2 shown, a battery parameter update method is provided. Taking the battery parameter update device in Figure 1 as an example for description, the method includes the following steps: S10: The battery parameter update device detects that the chip serial port of the battery device is connected to the battery parameter update device, and performs data listening on the chip serial port.
[0034] When performing the chip update task of the battery device, the relevant personnel connect the battery device and the battery parameter update device through a serial cable. One end of the serial cable (such as a USB cable) is connected to the battery device, and the other end is connected to the battery parameter update device. After the battery parameter update device is started, the battery parameter update device subscribes to monitor and process the serial port access event. When the serial cable is connected to the battery parameter update device, the serial port access event subscribed by the battery parameter update device can detect the access situation of the serial cable and the serial cable information.
[0035] After the battery parameter update device is started, the battery parameter update device enables a listening thread to detect the access situation of the chip serial port of the battery device (i.e., the serial port of the serial port chip). The battery parameter update device detects that the chip serial port of the battery device is connected to the battery parameter update device, and performs data listening on the chip serial port, that is, listens to the data of the battery device through the chip serial port.
[0036] At the same time, after the battery device is started, the battery device detects the access situation of the chip serial port of the battery device. When the battery device detects that the chip serial port of the battery device is connected to the battery parameter update device, it controls the chip of the battery device to enter the to-be-updated state to wait for chip parameter update, and sends a pre-buried preset data frame to the battery parameter update device. The preset data frame is used to indicate that the battery device enters the to-be-updated state to wait for chip parameter update.
[0037] S20: When the preset data frame from the chip serial port is monitored, a parameter update instruction is sent to the battery device through the chip serial port, so that the battery device responds to the parameter update instruction to perform chip parameter update. The preset data frame is used to indicate that the battery device enters the to-be-updated state to wait for chip parameter update.
[0038] When the battery parameter update device monitors the preset data frame from the chip serial port, it sends a parameter update instruction to the battery device through the chip serial port. The parameter update instruction protects the chip update parameters of the battery device, that is, the specified update parameter content of the chip. The chip update parameters are set in a pre-agreed format.
[0039] The battery device receives the parameter update instruction sent by the battery parameter update device, and performs chip parameter update according to the parameter update instruction, that is, parses and extracts the chip update parameters in the parameter update instruction according to the pre-agreed format, obtains the chip update parameters, and updates the chip update parameters to the specified chip of the battery device to achieve chip parameter update. There is no need to send an instruction to the battery device to indicate that the battery device enters the to-be-updated state, and judge the access state of the battery device and the chip working state according to the response of the battery device to the instruction, which is simple and convenient.
[0040] In this embodiment, when the chip accesses the battery parameter update device, it sends a pre-buried preset data frame. When the battery parameter update device monitors the preset data frame from the chip serial port, it can determine that the chip of the battery device has been correctly connected to the battery parameter update device, and the chip is in normal working state and enters the waiting-for-update state. That is, the access situation of the battery device and the working state of the chip can be determined through the reception of the preset data frame. When the preset data frame of the battery device is received, a parameter update instruction can be sent to the battery device to update the chip parameters. This process can accurately determine the status information of the battery chip, reduce the time required to determine the battery status, reduce the time-consuming of chip update, and improve the efficiency of chip update. In addition, in this process, relevant personnel only need to connect the serial port line of the battery device to the battery parameter update device, without confirming the access status of the battery device and the battery status, and then update the chip parameters through instructions, reducing the complex operations in the chip update process, and improving the convenience and update cost of chip parameter update.
[0041] In one embodiment, as Figure 3 shown, in step S20, that is, when the preset data frame from the chip serial port is monitored, a parameter update instruction is sent to the battery device through the chip serial port, so that the battery device responds to the parameter update instruction to update the chip parameters, which specifically includes the following steps: S21: When the preset data frame from the chip serial port is monitored and the chip update parameters of the battery device are obtained, a parameter update instruction containing the chip update parameters is sent to the battery device through the chip serial port, so that the battery device responds to the parameter update instruction to update the chip parameters.
[0042] During the process of detecting the access situation of the chip serial port of the battery device after the battery parameter update device is started, the battery parameter update device will also monitor the input situation of the chip update parameters of the battery device to monitor whether the chip update parameters of the battery device input by relevant personnel through the battery parameter update device are received.
[0043] In one embodiment, a scanning device is provided on the battery parameter update device; obtaining the chip update parameters of the battery device includes: monitoring the working condition of the scanning device on the battery parameter update device; when it is monitored that the scanning device starts scanning and the new information scanned by the scanning device is a parameter update identifier, extracting the chip update parameters of the battery device from the chip update data associated with the parameter update identifier.
[0044] In this embodiment, a scanning device is provided on the battery parameter update device, and the scanning device can be a barcode scanner connected to the battery parameter update device, or a barcode scanning probe or a barcode scanning window provided on the battery parameter update device.
[0045] After the battery parameter update device is started, during the process of detecting the chip serial port access situation of the battery device, the battery parameter update device will start another thread to monitor the working condition of the scanning device on the battery parameter update device; when the battery parameter update device monitors that the scanning device starts scanning and the new information scanned by the scanning device is the parameter update identifier, the chip update parameters of the battery device are extracted from the chip update data associated with the parameter update identifier.
[0046] The parameter update identifier is a specified identifier generated according to the chip update parameters in this batch of chip update tasks, such as a two-dimensional code. By scanning the parameter update identifier, the chip update data associated with the parameter update identifier can be obtained. The chip update data includes the battery device information (including serial port chip information, device model, etc.) that needs to update the chip parameters in this batch, and the chip update parameters to be updated to the chips in the battery device.
[0047] Among them, during the process of the scanning device starting to scan and the new information scanned, the scanning status of the scanning device is displayed on the display screen of the battery parameter update device, and when the battery parameter update device scans the chip update data through the scanning device, the scanning result of the scanning device is displayed on the interface, so that relevant personnel can timely learn about the scanning dynamics and the input situation of the chip update data. For example, after the scanning device starts scanning, a reminder of "Scanning information" is displayed on the display screen and a scanning dynamic diagram is shown; when the battery parameter update device scans the chip update data through the scanning device, a reminder of "Scanned the parameter update identifier, obtained the chip update data" is displayed on the display screen.
[0048] In this embodiment, after the battery parameter update device is started, it monitors the working condition of the scanning device on the battery parameter update device; when it monitors that the scanning device starts scanning and the new information scanned by the scanning device is the parameter update identifier, the chip update parameters of the battery device are extracted from the chip update data associated with the parameter update identifier. The parameter update identifier can be generated in advance, and then the battery device information and the chip update parameters can be directly obtained by scanning the code, which is simple and convenient, without the need to input the chip update parameters, reducing the situation of information input errors, and improving the accuracy and update efficiency of the chip parameter update.
[0049] Among them, in the case of obtaining the chip update parameters of the battery device, the battery parameter update device packs the chip update parameters of the battery device according to a predetermined format to generate a parameter update instruction, and the parameter update instruction is used to instruct the battery device to update the chip according to the chip update parameters of the parameter update instruction.
[0050] When a preset data frame from the chip serial port is monitored and the chip update parameters of the battery device are obtained, the battery parameter update device sends a parameter update instruction containing the chip update parameters to the battery device through the chip serial port, so that the battery device responds to the parameter update instruction and updates the chip parameters according to the chip update parameters in the parameter update instruction. After sending the parameter update instruction containing the chip update parameters to the battery device through the chip serial port, the battery parameter update device can generate the status information in the chip parameter update and display the status information in the chip parameter update on the interface through the display screen, facilitating relevant personnel to timely understand the progress of the chip update task.
[0051] Among them, the process of parameter update of the chip is referred to above and will not be elaborated here. After the battery device completes the chip parameter update, it sends the update feedback data of this chip parameter update to the battery parameter update device through the chip serial port to report the update operation result of this chip parameter update.
[0052] In this embodiment, when the chip update parameters of the battery device are obtained, the battery parameter update device packs the chip update parameters of the battery device according to a predetermined format, generates a parameter update instruction, and directly sends it to the battery device for chip parameter update when a preset data frame from the chip serial port is monitored, without the need for relevant personnel to assemble the parameters on-site, reducing the workload and the situation of data input and assembly errors, with higher accuracy, and retrieving the data processing time, improving the chip update efficiency.
[0053] S22: After monitoring the update feedback data sent by the battery device through the chip serial port, determine the chip update status of the battery device according to the update feedback data.
[0054] After sending the parameter update instruction containing the chip update parameters to the battery device through the chip serial port, the battery parameter update device continues to monitor the data of the chip serial port. After the battery parameter update device monitors the update feedback data sent by the battery device through the chip serial port, it determines the chip update status of the battery device according to the update feedback data.
[0055] For example, when the monitored update feedback data is data indicating that the parameter modification is successful, it is determined that the chip update status of the battery device is chip update successful; when the update feedback data is data indicating that the parameter modification fails, it is determined that the chip update status of the battery device is chip update failed. In this embodiment, when a preset data frame from the chip serial port is monitored and the chip update parameters of the battery device are obtained, a parameter update instruction including the chip update parameters is sent to the battery device through the chip serial port, so that the battery device responds to the parameter update instruction to update the chip parameters; after the update feedback data sent by the battery device through the chip serial port is monitored, the chip update status of the battery device is determined according to the update feedback data. Only when the chip of the battery device is ready (i.e., enters the to-be-updated state) and the chip update parameters of the battery device are obtained, a parameter update instruction including the chip update parameters is sent to the battery device for chip update, which is more accurate and also improves the chip update efficiency; in addition, determining the chip update status according to the update feedback data of the battery device facilitates relevant personnel to determine the situation of this chip update.
[0056] In one embodiment, in step S22, that is, when a preset data frame from the serial port of the battery device is monitored, a parameter update instruction is sent to the battery device through the serial port of the battery device, so that the battery device responds to the parameter update instruction to update the chip parameters, which specifically includes the following steps: SA221: When the update feedback data is data indicating that the parameter modification is successful, determine that the chip update status of the battery device is chip update successful, and display the chip update successful status on the interface.
[0057] After the battery parameter update device monitors the update feedback data sent by the battery device through the chip serial port, when the battery parameter update device determines that the update feedback data is data indicating that the parameter modification is successful, determine that the chip update status of the battery device is chip update successful, and display the chip update successful status on the interface, which facilitates relevant personnel to intuitively know that the chip parameters of the battery device are updated successfully and facilitates the execution of other subsequent tasks.
[0058] For example, when the battery parameter update device determines that the update feedback data is data indicating that the parameter modification is successful, determine that the chip update status of the battery device is chip update successful, and the battery parameter update device displays a green tick icon interface through the display interface of the display screen, and reminds on the display interface that the parameter update operation is successful.
[0059] SA222: Update the chip update successful status and chip version information of the battery device to the battery information management system.
[0060] After determining that the chip update status of the battery device is successful, the battery parameter update device updates the chip update success status and chip version information of the battery device to the battery information management system. Among them, the battery information management system is used to store and manage data of different battery devices. Updating the chip update success status and chip version information of the battery device to the battery information management system facilitates subsequent relevant personnel to maintain and analyze battery device data, and can also prevent the battery device from repeating chip parameter updates.
[0061] In this embodiment, when the update feedback data is data indicating that the parameter modification is successful, it is determined that the chip update status of the battery device is successful, and the status of successful chip update is displayed on the interface, which is simple and intuitive, facilitating relevant personnel to directly know that the chip parameter update of the battery device is successful; updating the chip update success status and chip version information of the battery device to the battery information management system, which is used to store and manage data of different battery devices, facilitating subsequent relevant personnel to maintain and analyze battery device data, and can also prevent the battery device from repeating chip parameter updates.
[0062] In one embodiment, in step S22, that is, when a preset data frame from the serial port of the battery device is monitored, a parameter update instruction is sent to the battery device through the serial port of the battery device, so that the battery device responds to the parameter update instruction to perform chip parameter update, which specifically includes the following steps: SB221: When the update feedback data is data indicating that the parameter modification fails, it is determined that the chip update status of the battery device is a chip update failure, and the status of successful chip update is displayed on the interface.
[0063] After the battery parameter update device monitors the update feedback data sent by the battery device through the chip serial port, when the battery parameter update device determines that the update feedback data is data indicating that the parameter modification fails, it is determined that the chip update status of the battery device is a chip update failure, and the status of successful chip update is displayed on the interface.
[0064] For example, when the battery parameter update device determines that the update feedback data is data indicating that the parameter modification fails, it is determined that the chip update status of the battery device is a chip update failure. The battery parameter update device displays an icon of a red cross (such as ×) on the display interface of the display screen, and reminds on the display interface that the parameter update operation fails and needs to be updated again.
[0065] SB222: Update the chip update success status of the battery device to the battery information management system, and re-execute the chip update task until the chip parameters of the battery device are successfully updated, and then update the chip update success status and chip version information of the battery device to the battery information management system.
[0066] After determining that the chip update status of the battery device is a chip update failure, the battery parameter update device updates the chip update success status of the battery device to the battery information management system and re-executes the chip update task. After the battery device successfully updates the chip parameters, the chip update success status and chip version information of the battery device are updated to the battery information management system.
[0067] In this embodiment, when the update feedback data is data indicating that the parameter modification fails, the battery parameter update device determines that the chip update status of the battery device is a chip update failure and displays the chip update success status on the interface, which is simple and intuitive, facilitating relevant personnel to directly know that the chip parameter update of the battery device fails and perform the chip parameter update again. The chip update success status of the battery device is updated to the battery information management system, and the chip update task is re-executed. After the battery device successfully updates the chip parameters, the chip update success status and chip version information of the battery device are updated to the battery information management system, facilitating subsequent relevant personnel to maintain and analyze the battery device data and avoiding repeated chip parameter updates for this battery device.
[0068] In one embodiment, as Figure 4 shown, before step S10, that is, before detecting that the chip serial port of the battery device is connected to the battery parameter update device and before performing data monitoring on the chip serial port, the method further specifically includes the following steps: S01: After detecting that the battery parameter update device is started, monitor the scanning information of the scanning device on the battery parameter update device.
[0069] After detecting that the battery parameter update device is started, the battery parameter update device starts a thread to monitor the input of the scanning device on the battery parameter update device, that is, monitor the scanning information of the scanning device on the battery parameter update device to determine whether the scanning information of the scanning device is the target device information. The target device information is the battery device information that needs to perform chip parameter update, and the battery device information includes device model, device code, and serial port chip information (such as serial port name and serial port number, and the serial port number is used to open the chip serial port).
[0070] S02: When the target device information is scanned by the scanning device, detect the connection situation of the chip serial port of the battery device to the battery parameter update device according to the serial port chip information of the battery device in the target device information.
[0071] When the target device information is scanned by the scanning device, the battery parameter update device performs a chip serial port scan on the battery device according to the serial port chip information of the battery device in the target device information to detect the connection situation of the chip serial port of the battery device to the battery parameter update device.
[0072] For example, when the battery parameter update device scans that the serial port information accessed by the serial port includes the serial port chip information of the battery device, it determines that the chip serial port of the battery device has been scanned, that is, it determines that the chip serial port of the battery device has been accessed to the battery parameter update device.
[0073] In this embodiment, after detecting that the battery parameter update device is started, the scanning information of the scanning device on the battery parameter update device is monitored; when the target device information is scanned by the scanning device, according to the serial port chip information of the battery device in the target device information, the access situation of the chip serial port of the battery device to the battery parameter update device is detected; by monitoring the scanning information of the scanning device on the battery parameter update device, the basic information of the serial port scan can be quickly determined, and there is no need to search for and manually input the serial port chip information of the battery device to perform the chip serial port scan of the battery device, which improves the efficiency of the chip serial port scan and is convenient for improving the efficiency of subsequent chip parameter update.
[0074] In one embodiment, step S02, that is, according to the serial port chip information of the battery device in the target device information, detecting the access situation of the chip serial port of the battery device to the battery parameter update device, specifically includes the following steps: S021: Match the serial port scan data pre-stored in the battery parameter update device with the serial port chip information of the battery device.
[0075] Among them, the serial port scan data stores the serial port information scanned after the battery parameter update device is powered on and started. The battery parameter update device performs serial port scanning every time it is started to determine the serial port accessed to the battery parameter update device, and records and stores the serial port information of the accessed serial port in the serial port scan data, which is convenient for subsequent judgment of the access of the battery device and execution of related tasks, reduces the time-consuming for detecting the access situation of the battery device, and improves the efficiency of chip parameter update.
[0076] After detecting that the battery parameter update device is started and the target device information is scanned by the scanning device, the battery parameter update device matches the serial port scan data pre-stored in the battery parameter update device with the serial port chip information of the battery device to determine whether the serial port chip information of the battery device is stored in the serial port scan data.
[0077] S022: If the serial port chip information is matched in the serial port scan data, it is determined that the chip serial port of the battery device is accessed to the battery parameter update device.
[0078] If the serial port chip information is matched in the serial port scan data, indicating that the chip serial port of the battery device has been detected to be accessed to the battery parameter update device before, the battery parameter update device does not need to perform chip serial port scanning, directly determines that the chip serial port of the battery device is accessed to the battery parameter update device, and opens the chip serial port corresponding to the serial port chip information to perform data monitoring on the chip serial port. S023: If the serial port chip information is not matched in the serial port scan data, it is determined that the chip serial port of the battery device is not connected. An interface reminder is given for the unconnected situation of the chip serial port, and the situation of the chip serial port accessing the battery parameter update device is continuously detected.
[0079] If the serial port chip information is not matched in the serial port scan data, the battery parameter update device determines that the chip serial port of the battery device is not connected. The battery parameter update device needs to give an interface reminder for the unconnected situation of the chip serial port, so that relevant personnel can know in time to improve the user experience, and continuously detect the situation of the chip serial port accessing the battery parameter update device.
[0080] S024: When it is detected that the serial port information of the serial port accessed by the battery parameter update device is the serial port chip information, it is determined that the chip serial port of the battery device is connected to the battery parameter update device, and the serial port chip information is updated to the serial port scan data.
[0081] When it is detected that the serial port information of the serial port accessed by the battery parameter update device is the serial port chip information, that is, when the battery parameter update device scans the chip serial port of the battery device, the battery parameter update device determines that the chip serial port of the battery device is connected to the battery parameter update device, and updates the serial port chip information to the serial port scan data for subsequent use.
[0082] In this embodiment, the serial port scan data prestored in the battery parameter update device is matched with the serial port chip information. The serial port scan data stores the serial port information scanned after the battery parameter update device is powered on and starts. If the serial port chip information is matched in the serial port scan data, the chip serial port corresponding to the serial port chip information is opened, and it is determined that the chip serial port of the battery device is connected to the battery parameter update device. If the serial port chip information is not matched in the serial port scan data, it is determined that the chip serial port of the battery device is not connected. An interface reminder is given for the unconnected situation of the chip serial port, and the situation of the chip serial port accessing the battery parameter update device is continuously detected. When it is detected that the serial port information of the serial port accessed by the battery parameter update device is the serial port chip information, it is determined that the chip serial port of the battery device is connected to the battery parameter update device, and the serial port chip information is updated to the serial port scan data. Real-time serial port scanning is performed when the battery parameter update device starts, and the serial port information of the accessed serial port scanned is stored in the serial port scan data. Subsequently, when the serial port chip information of the battery device is scanned, information matching is performed, and then the situation of the chip serial port of the battery device accessing the battery parameter update device can be determined according to the matching situation, which is simple, convenient and efficient.
[0083] In one embodiment, as Figure 5 shown, after step S20 or S21, that is, after sending a parameter update instruction to the battery device through the chip serial port, the method specifically includes the following steps: S30: Start the timer for timing; S40: If no update feedback data sent by the battery device through the chip serial port is monitored within the preset duration, continue to send a parameter update instruction to the battery device through the chip serial port until the update feedback data is monitored.
[0084] After sending a parameter update instruction to the battery device through the chip serial port, the battery parameter update device starts the timer for timing. If the battery parameter update device does not monitor the update feedback data sent by the battery device through the chip serial port within the preset duration, it means that the parameter update instruction may not have been received to execute the chip update task, or the battery device has an error when executing the chip update task. Then the battery parameter update device continues to send a parameter update instruction to the battery device through the chip serial port and performs timing, so that the battery device can re-update the chip parameters according to the newly received parameter update instruction and send the update feedback data to the battery parameter update device.
[0085] If no update feedback data sent by the battery device through the chip serial port is monitored when the timing reaches the preset duration, the battery parameter update device continues to send a parameter update instruction to the battery device through the chip serial port until the update feedback data is monitored, until the update feedback data is monitored or the number of times of sending the parameter update instruction reaches the preset number of times (such as 3 times). If the battery parameter update device still does not monitor the update feedback data sent by the battery device through the chip serial port after the number of times of sending the parameter update instruction reaches the preset number of times, it means that the battery device has a fault and cannot perform chip parameter update. Then the battery parameter update device displays the abnormal state of the battery device through the display screen to remind the relevant personnel to stop the chip update task and perform fault detection and repair on the battery device to ensure the normal operation of the battery device.
[0086] In this embodiment, after sending a parameter update instruction to the battery device through the chip serial port, the battery parameter update device starts the timer for timing; if no update feedback data sent by the battery device through the chip serial port is monitored within the preset duration, continue to send a parameter update instruction to the battery device through the chip serial port until the update feedback data is monitored, which can ensure that the battery device can update the chip parameters in time, reduce the situation where the chip parameter update fails due to data transmission faults or battery device abnormalities, and ensure the efficiency of chip parameter update.
[0087] In one embodiment, after step S10, that is, when it is detected that the chip serial port of the battery device is connected to the battery parameter update device and after data monitoring of the chip serial port, the method further specifically includes the following steps: S50: If the preset data frame of the battery device is not monitored within the calibration duration, or if a parameter update instruction is not sent to the battery device within the calibration duration after receiving the preset data frame, the battery parameter update device gives an abnormal update function prompt to prompt relevant personnel to perform a reset operation on the battery parameter update device.
[0088] When it is detected that the chip serial port of the battery device is connected to the battery parameter update device, after data monitoring of the chip serial port, the battery parameter update device needs to judge its own abnormal situation. If the preset data frame of the battery device is not monitored within the calibration duration, it means that the battery parameter update device may malfunction and cannot receive the preset data frame normally, and the update function is abnormal. The battery parameter update device gives an abnormal update function prompt to prompt relevant personnel to perform a reset operation on the battery parameter update device. If a parameter update instruction is not sent to the battery device within the calibration duration after receiving the preset data frame, it means that the update function of the battery parameter update device is abnormal and it cannot send relevant instructions normally. Then the battery parameter update device gives an abnormal update function prompt to prompt relevant personnel to perform a reset operation on the battery parameter update device.
[0089] Among them, the battery parameter update device can give an abnormal update function prompt on the display screen and display a reset operation QR code on the display screen for relevant personnel to use a scanning device to scan the reset operation QR code and input a reset instruction by scanning the reset operation QR code. In other embodiments, relevant personnel use a scanning device to scan a pre-prepared reset operation QR code picture and input a reset instruction by scanning the reset operation QR code picture; relevant personnel can also input a reset instruction through a reset control on the display screen.
[0090] S50: After receiving the reset instruction of the battery parameter update device, respond to the reset instruction to perform a reset operation on the battery parameter update device. After the abnormal update function prompt of the battery parameter update device, the battery parameter update device monitors whether it receives the reset instruction of the battery parameter update device through the scanning device or monitors whether it receives the reset instruction of the battery parameter update device through the reset control. After receiving the reset instruction of the battery parameter update device, the battery parameter update device responds to the reset instruction to clear the relevant information of the battery device entered this time (such as the serial port chip information of the battery device in the serial port scan data, the chip update parameters of the battery device), and performs a reset operation on the battery parameter update device (i.e., an initialization operation). After initializing the battery parameter update device, restart the battery parameter update device to execute the chip update task of the battery device, effectively enhancing the chip update efficiency and fault tolerance rate of the battery parameter update device.
[0091] In this embodiment, when it is detected that the chip serial port of the battery device is connected to the battery parameter update device, after data monitoring of the chip serial port, if the preset data frame of the battery device is not monitored within the calibration duration, or the parameter update instruction is not sent to the battery device within the calibration duration after receiving the preset data frame, an update function abnormality prompt of the battery parameter update device is given to prompt relevant personnel to perform a reset operation on the battery parameter update device; after the reset instruction of the battery parameter update device is monitored, the reset instruction is responded to perform a reset operation on the battery parameter update device, facilitating the restart and execution of subsequent chip update tasks, and effectively enhancing the chip update efficiency and fault tolerance rate of the battery parameter update device.
[0092] In one embodiment, as Figure 6 shown, a battery parameter update method is provided. Taking the battery device in Figure 1 as an example, the method includes the following steps: S10: When it is detected that the chip serial port of the battery device is connected to the battery parameter update device, control the chip of the battery device to enter the to-be-updated state to wait for chip parameter update, and send a pre-buried preset data frame to the battery parameter update device, so that the battery parameter update device sends a parameter update instruction to the battery device according to the preset data frame.
[0093] When performing the chip update task of the battery device, relevant personnel connect the battery device and the battery parameter update device through a serial cable. After the battery device is started, the battery device detects the connection status of the chip serial port of the battery device. When the battery device detects that the chip serial port of the battery device is connected to the battery parameter update device, it controls the chip of the battery device to enter the to-be-updated state to wait for chip parameter update, and sends a pre-buried preset data frame to the battery parameter update device. The preset data frame is used to instruct the battery device to enter the to-be-updated state to wait for chip parameter update.
[0094] When performing the chip update task of the battery device, relevant personnel connect the battery device and the battery parameter update device through a serial cable. After the battery parameter update device is started, the battery parameter update device detects the connection status of the chip serial port of the battery device (i.e., the serial port of the serial port chip). When the battery parameter update device detects that the chip serial port of the battery device is connected to the battery parameter update device, it performs data monitoring on the chip serial port, that is, monitors the data of the battery device through the chip serial port. When the battery parameter update device monitors the preset data frame from the chip serial port, it sends a parameter update instruction to the battery device through the chip serial port. The parameter update instruction protects the chip update parameters of the battery device, that is, the specified update parameter content of the chip. The chip update parameters are set according to a pre-agreed format.
[0095] S20: Receive the parameter update instruction sent by the battery parameter update device, and perform chip parameter update according to the parameter update instruction.
[0096] The battery device receives the parameter update instruction sent by the battery parameter update device, and updates the chip parameters according to the parameter update instruction, that is, parses and extracts the chip update parameters in the parameter update instruction according to a pre-agreed format, obtains the chip update parameters, and updates the chip update parameters to the specified chip of the battery device to achieve chip parameter update.
[0097] After the battery device completes the chip parameter update, the battery device sends the update feedback data of the current chip parameter update to the battery parameter update device, so that the battery parameter update device can determine the chip update status of the battery device according to the update feedback data. Among them, the functions and execution processes of the battery device are as described above and will not be elaborated here.
[0098] In this embodiment, when the chip accesses the battery parameter update device, it sends a pre-buried preset data frame. When the battery parameter update device monitors the preset data frame from the chip serial port, it can determine that the chip of the battery device has been correctly connected to the battery parameter update device, and the chip is in normal working state and enters the waiting update state. That is, the access situation of the battery device and the working state of the chip can be determined through the reception of the preset data frame. When the preset data frame of the battery device is received, a parameter update instruction can be sent to the battery device to update the chip parameters. This process can accurately determine the status information of the battery chip, reduce the time required to determine the battery status, reduce the time-consuming of chip update, and improve the efficiency of chip update.
[0099] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
[0100] In one embodiment, a battery parameter update device is provided, and the battery parameter update device corresponds one-to-one to the above battery parameter update method. As Figure 7 shown, the battery parameter update device includes a monitoring module 701 and a sending module 702. The detailed description of each functional module is as follows: The monitoring module 701 is configured to perform data monitoring on the chip serial port when it detects that the chip serial port of the battery device accesses the battery parameter update device; The sending module 702 is configured to send a parameter update instruction to the battery device through the chip serial port when it monitors the preset data frame from the chip serial port, so that the battery device responds to the parameter update instruction to perform chip parameter update. The preset data frame is used to instruct the battery device to enter the waiting update state to wait for chip parameter update.
[0101] Optionally, the battery parameter update device further includes an obtaining module and a determining module: The sending module 702 is specifically configured to, when a preset data frame from the chip serial port is monitored and the chip update parameters of the battery device are obtained through the obtaining module, send a parameter update instruction including the chip update parameters to the battery device through the chip serial port, so that the battery device responds to the parameter update instruction to update the chip parameters; After the determination module monitors the update feedback data sent by the battery device through the chip serial port through the monitoring module 701, the determination module is used to determine the chip update status of the battery device according to the update feedback data.
[0102] Optionally, the obtaining module is specifically configured to: Monitor the working condition of the scanning device on the battery parameter update device; When it is monitored that the scanning device starts scanning and the new information scanned by the scanning device is a parameter update identifier, extract the chip update parameters of the battery device from the chip update data associated with the parameter update identifier.
[0103] Optionally, the battery parameter update device further includes a display module, and the determination module is specifically configured to: When the update feedback data is data indicating that the parameter modification is successful, determine that the chip update status of the battery device is chip update successful, and display the chip update successful status through the display module on the interface; Update the chip update successful status and chip version information of the battery device to the battery information management system, and the battery information management system is used to store and manage data of different battery devices.
[0104] Optionally, the determination module is further specifically configured to: When the update feedback data is data indicating that the parameter modification fails, determine that the chip update status of the battery device is chip update failed, and display the chip update successful status through the display module on the interface; Update the chip update successful status of the battery device to the battery information management system, and re-execute the chip update task until the chip parameters of the battery device are successfully updated, and then update the chip update successful status and chip version information of the battery device to the battery information management system.
[0105] Optionally, the battery parameter update device further includes a timing module, and the timing module is used to start timing after sending a parameter update instruction to the battery device through the chip serial port; if the update feedback data sent by the battery device through the chip serial port is not monitored by the monitoring module 701 within a preset duration, the sending module 702 is used to continue sending a parameter update instruction to the battery device through the chip serial port until the update feedback data is monitored by the monitoring module 701.
[0106] Optionally, the battery parameter update device further includes a detection module, and the detection module is used to: When it is detected that the chip serial port of the battery device is accessed by the detection module, before listening to the data of the chip serial port, after it is detected that the battery parameter update device is started, the scanning information of the scanning device on the battery parameter update device is listened to by the listening module 701; When the target device information is scanned by the scanning device, according to the serial port chip information of the battery device in the target device information, the access situation of the chip serial port of the battery device to the battery parameter update device is detected.
[0107] Optionally, the detection module is specifically used for: Matching the serial port scanning data prestored in the battery parameter update device with the serial port chip information, where the serial port scanning data stores the serial port information scanned after the battery parameter update device is powered on and started; If the serial port chip information is matched in the serial port scanning data, it is determined that the chip serial port of the battery device is accessed to the battery parameter update device; If the serial port chip information is not matched in the serial port scanning data, it is determined that the chip serial port of the battery device is not accessed, a user interface reminder is given for the non-access situation of the chip serial port, and the access situation of the chip serial port to the battery parameter update device is continuously detected; When it is detected that the serial port information of the serial port accessed by the battery parameter update device is the serial port chip information, it is determined that the chip serial port of the battery device is accessed to the battery parameter update device, and the serial port chip information is updated to the serial port scanning data.
[0108] In an embodiment, a battery device is provided, and this battery device corresponds one-to-one with the above battery parameter update method. As Figure 8 shown, this battery device includes a control module 801, a communication module 802, and an update module 803. The detailed description of each functional module is as follows: The control module 801 is used to control the chip of the battery device to enter the to-be-updated state to wait for chip parameter update when it is detected that the chip serial port of the battery device is accessed to the battery parameter update device; The communication module 802 is used to send a pre-buried preset data frame to the battery parameter update device, so that the battery parameter update device sends a parameter update instruction to the battery device according to the preset data frame, and receive the parameter update instruction sent by the battery parameter update device; The update module 803 is used to update the chip parameters according to the parameter update instruction.
[0109] It should be noted that for the information interaction, execution process, etc. between the above devices / units, since they are based on the same concept as the method embodiment of the present application, for their specific functions and the technical effects brought, reference can be specifically made to the method embodiment part, and details are not described herein again.
[0110] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above-mentioned division of each functional unit and module is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs, 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. Each functional unit and module in the embodiments can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of this application. The specific working processes of the units and modules in the above system can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated here.
[0111] An embodiment of this application also provides an electronic device, as Figure 9 shown. The electronic device 2 includes: at least one processor 20, a memory 21, and a computer program 22 stored in the memory 21 and executable on the at least one processor 20. When the processor 20 executes the computer program 22, it implements the steps in any of the foregoing method embodiments, or when the processor 20 executes the computer program 22, it implements the functions of each module / unit in the foregoing device embodiments.
[0112] Exemplarily, the computer program can be divided into one or more modules / units. The one or more modules / units are stored in the memory and executed by the processor to complete this application. The one or more modules / units can be a series of computer program instruction segments capable of completing specific functions, and these instruction segments are used to describe the execution process of the computer program in the electronic device.
[0113] Those skilled in the art can understand that Figure 9 merely being examples of the electronic device does not constitute a limitation on the electronic device. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, the electronic device may also include input / output devices, network access devices, buses, etc.
[0114] The above-mentioned processor may be a Central Processing Unit (CPU), or other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0115] The memory may be an internal storage unit of the electronic device, such as the hard disk or memory of the electronic device. The memory may also be an external storage device of the electronic device, 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. Further, the memory may also include both the internal storage unit and the external storage device of the electronic device.
[0116] The embodiment of the present application also provides a readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various method embodiments can be implemented.
[0117] The embodiment of the present application provides a computer program product, and when the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned various method embodiments when executed.
[0118] When the integrated 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, to implement all or part of the processes in the above-described embodiment methods of this application, a computer program can be used to instruct relevant hardware to complete. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-described method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the photographing device / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium cannot be an electrical carrier signal and a telecommunication signal.
[0119] In the above embodiments, the descriptions of each embodiment have their own focuses. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0120] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0121] In the embodiments provided in this application, it should be understood that the disclosed device / equipment and method can be implemented in other ways. For example, the device / equipment embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.
[0122] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed over multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0123] The above-described embodiments 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 foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate 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 battery parameter updating method, characterized in that: include: When it is detected that the chip serial port of the battery device is connected to the battery parameter updating device, data monitoring is performed on the chip serial port; When a preset data frame from the chip serial port is monitored, a parameter update instruction is sent to the battery device through the chip serial port, so that the battery device responds to the parameter update instruction to update the chip parameters. The preset data frame is used to instruct the battery device to enter a waiting state to wait for chip parameters to be updated.
2. The battery parameter updating method according to claim 1, characterized in that: When a preset data frame from the chip serial port is monitored, a parameter update instruction is sent to the battery device through the chip serial port, so that the battery device responds to the parameter update instruction to update the chip parameters, including: When a preset data frame from the chip serial port is monitored and the chip update parameter of the battery device is obtained, a parameter update instruction including the chip update parameter is sent to the battery device through the chip serial port, so that the battery device responds to the parameter update instruction to update the chip parameter; After monitoring the update feedback data sent by the battery device through the chip serial port, the chip update state of the battery device is determined according to the update feedback data.
3. The battery parameter updating method according to claim 2, characterized in that: The obtaining of chip update parameters of the battery device includes: Monitoring the working status of the scanning device on the battery parameter updating device; When it is monitored that the scanning device starts scanning and the new information scanned by the scanning device is a parameter update identifier, the chip update parameter of the battery device is extracted from the chip update data associated with the parameter update identifier.
4. The battery parameter updating method according to claim 2, characterized in that: The determining the chip update status of the battery device according to the update feedback data includes: When the update feedback data is data indicating that the parameter modification is successful, determining that the chip update status of the battery device is a chip update success, and displaying the chip update success status on an interface; The chip update success status and chip version information of the battery device are updated to the battery information management system, and the battery information management system is used to store and manage the data of different battery devices.
5. The battery parameter updating method according to any one of claims 1 to 4, characterized in that: When it is detected that the chip serial port of the battery device is connected to the battery parameter updating device, before monitoring the data of the chip serial port, the method further includes: After detecting that the battery parameter updating device is started, monitoring scanning information of a scanning device on the battery parameter updating device; When the target device information is scanned by the scanning device, the connection of the chip serial port of the battery device to the battery parameter updating device is detected according to the serial port chip information of the battery device in the target device information.
6. A battery parameter updating method, characterized in that: include: When detecting that the chip serial port of the battery device is connected to the battery parameter update device, controlling the chip of the battery device to enter a waiting state to wait for chip parameter update, and sending a pre-embedded preset data frame to the battery parameter update device, so that the battery parameter update device sends a parameter update instruction to the battery device according to the preset data frame; Receive the parameter update instruction sent by the battery parameter update device, and update the chip parameters according to the parameter update instruction.
7. A battery parameter updating device, characterized in that: include: A monitoring module, used to monitor data on the chip serial port when detecting chip serial port access of a battery device; The sending module is used to send a parameter update instruction to the battery device through the chip serial port when a preset data frame from the chip serial port is monitored, so that the battery device responds to the parameter update instruction to update the chip parameters, and the preset data frame is used to instruct the battery device to enter a waiting state to wait for the chip parameters to be updated.
8. 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 battery parameter updating method according to any one of claims 1 to 6 are implemented.
9. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the battery parameter updating method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, enables the steps of the battery parameter updating method according to any one of claims 1 to 6 to be implemented.
Citation Information
Patent Citations
Embedded device updating method and updating device
CN114327538A
MAC address burning method and device of network device and computer readable storage medium
CN114546431A
Intelligent lock firmware upgrading method and device and intelligent lock firmware upgrading system
CN115794148A
Method, device and equipment for updating security firmware of intelligent POS (Point Of Sale), and medium
CN117472400A
Firmware upgrading method, chip and electronic equipment
CN119396428A