Universal expansion method and device compatible with multiple types of battery communication methods
By standardizing communication identification information and encapsulation rules, the problem of incompatibility between different types of batteries in battery management is solved, enabling stable data transmission of new battery functions and improving operation and maintenance efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-21
- Publication Date
- 2026-03-27
AI Technical Summary
In the field of battery management, existing technologies require frequent modifications to network communication modules, server software, and front-ends to support new functions, resulting in high consumption of human and material resources. Furthermore, the incompatibility of communication methods between different types of batteries leads to unstable data transmission.
By adding extended instructions and standardizing communication identification information and encapsulation rules, batteries with multiple communication methods can share the same network module and server logic. Maintenance personnel can add new functions by configuring parameters through the web interface without modifying the network module, server, or front-end code.
Stable data transmission was achieved when adding new functions to different types of batteries, which lowered the operating threshold, avoided command conflicts, and improved operation and maintenance efficiency.
Smart Images

Figure CN121173886B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of battery communication, and in particular to a universal expansion method and device compatible with multiple types of battery communication modes. BACKGROUND
[0002] In the field of battery management, due to the development of technology and the demand for cost control, sometimes the same type of battery products use RS485 communication, and some products use Can communication. The communication module is used at the same time, and usually when new functions are added, the battery, network communication module, cloud, and front end all need to add corresponding functions to support the addition of new functions, which consumes a lot of manpower and material resources. SUMMARY
[0003] The present application provides a universal expansion method and device compatible with multiple types of battery communication modes. By adding an expansion instruction, the battery with multiple communication modes can use new functions without modifying the network communication module, server software, and front end each time.
[0004] To achieve the above purpose, the present application adopts the following technical scheme:
[0005] In a first aspect, a universal expansion method compatible with multiple types of battery communication modes is provided, comprising:
[0006] Obtaining the new function execution data submitted by the operation and maintenance personnel;
[0007] In the case where the new function is an expansion function, the new function execution data is encapsulated according to the communication type of the new function to obtain encapsulated data;
[0008] Processing the encapsulated data based on a network module;
[0009] Obtaining the processing result returned by the network module and feeding back the processing result to the front end.
[0010] In a second aspect, a universal expansion device compatible with multiple types of battery communication modes is provided, comprising:
[0011] A first obtaining module for obtaining the new function execution data submitted by the operation and maintenance personnel;
[0012] An encapsulation module for, in the case where the new function is an expansion function, encapsulating the new function execution data according to the communication type of the new function to obtain encapsulated data;
[0013] A processing module for processing the encapsulated data based on a network module;
[0014] The second obtaining module is configured to obtain the processing result returned by the network module and feed back the processing result to the front end.
[0015] In a third aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the universal expansion method compatible with multiple types of battery communication modes according to any one of the first aspect.
[0016] In a fourth aspect, a computer readable storage medium is provided, which stores a computer program, and the computer program is executable on a processor to implement the universal expansion method compatible with multiple types of battery communication modes according to any one of the first aspect.
[0017] In a fifth aspect, a computer program product is provided, which, when executed on an electronic device, causes the electronic device to perform the universal expansion method compatible with multiple types of battery communication modes according to any one of the first aspect.
[0018] It can be understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, which will not be repeated here.
[0019] In the embodiments of the present application, first, the operation and maintenance personnel submits the new function execution data, then in the case of judging that the new function is an expansion function, the new function execution data is packaged according to the communication type of the new function to obtain the packaged data, then the packaged data is processed based on the network module, finally the processing result returned by the network module is obtained and the processing result is fed back to the front end. Thus, through the standardization of communication identification information and packaging rules, the batteries of multiple communication modes share the same set of network modules and server logic, and only the Web configuration parameters are needed when the new function is added, without modifying the network module, server and front end code, through the independent expansion instruction channel and flag mechanism, the instruction conflict between the new function and the regular function is avoided, the data transmission stability is ensured, the operation and maintenance personnel can complete the configuration and calling of the new function through the front end interface, and the operation threshold is reduced.
[0020] The above description is only a summary of the technical solutions of the present application, in order to more clearly understand the technical means of the present application, the specific embodiments of the present application can be implemented according to the content of the description, and in order to make the above and other purposes, characteristics and advantages of the present application more obvious and easy to understand, the following specific embodiments of the present application are described. BRIEF DESCRIPTION OF DRAWINGS
[0021] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiments below. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0022] Figure 1 This is a flowchart illustrating a universal extension method compatible with multiple types of battery communication methods provided in an embodiment of this application;
[0023] Figure 2 This is an overall flowchart of a universal extension method compatible with multiple types of battery communication methods provided in the embodiments of this application;
[0024] Figure 3 This is a structural block diagram of a universal expansion device compatible with multiple types of battery communication methods provided in the embodiments of this application;
[0025] Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0026] The embodiments of the technical solutions of this application will now be described in detail with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of this application, and are therefore merely examples and should not be used to limit the scope of protection of this application. When the following description relates to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. Various changes, modifications, and equivalents of the methods, apparatus, and / or systems described herein will become apparent upon understanding this disclosure. For example, the order of operations described herein is merely illustrative and is not limited to those orders set forth herein, but can be changed as will become apparent upon understanding this disclosure, except for operations that must be performed in a specific order. Furthermore, for clarity and conciseness, descriptions of features known in the art may be omitted.
[0027] The embodiments described in the following examples of this disclosure are not representative of all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0028] It should be noted that the execution subject of the universal extension method compatible with multiple types of battery communication methods in this embodiment can be a universal extension device compatible with multiple types of battery communication methods, hereinafter referred to as "device". This device can be configured in any type of electronic device, and this application embodiment does not limit it.
[0029] See Figure 1FIG. 1 is a flowchart of a general expansion method compatible with multiple types of battery communication modes provided by the first embodiment of the present application. As shown in FIG. 1, the general expansion method compatible with multiple types of battery communication modes can include the following steps: Figure 1
[0030] Step 101, obtaining the newly added function execution data submitted by the operation and maintenance personnel.
[0031] The newly added function execution data refers to the key parameter data set used to instruct the battery to execute the newly added function according to the preset requirements (such as data format, parameter order, and value range) of the function after the operation and maintenance personnel selects the registered battery newly added function on the Web interface. It is the basis for the server to issue instructions to the battery.
[0032] Specifically, the operation and maintenance personnel opens the Web interface, selects the newly added function (such as “reservation heating”) to be executed for the battery from the list of registered functions, and fills in the details of the function to be executed according to the requirements of the function. For example, “reservation heating” requires filling in “heating duration” and “target temperature”, and filling in according to the specified format (such as using hexadecimal data to represent “0x000A” to represent 10 minutes). After the operation and maintenance personnel submits, the server receives the newly added function execution data.
[0033] Optionally, the input newly added function configuration information can be obtained and stored, wherein the newly added function configuration information at least includes: function name, and communication type corresponding communication identification information.
[0034] The function name is the unique identifier of the newly added function (such as “reservation heating”, “equalization charging start”, and “temperature threshold adjustment”), which is used for Web interface display, operation and maintenance personnel to select functions, and the server to distinguish between general functions and expansion functions.
[0035] If the communication type is RS485, the communication identification information is “network module instruction CID1 / CID2” (used for the battery to take instructions from the network module) and “battery feedback CID1 / CID2” (used for the battery to feedback the result to the network module), which is 4 bytes of data. If the communication type is CAN: the communication identification information is the sending frame ID (used for the network module to send instructions to the CAN bus) and the “reply frame ID” (used for the battery to feedback the result to the CAN bus), which is 8 bytes of data.
[0036] Specifically, the user can enter the above configuration information through the form of the Web interface, and after submission, the system first verifies the data legality (such as the function name is not repeated, and the communication identification information is in the correct format). After verification, the data is received, and if the verification fails, the user is prompted to correct. The configuration information that passes the verification is stored in the local database according to the fixed structure to form an association mapping table, which is convenient for subsequent server calls.
[0037] Step 102, in the case of judging that the added function is an expansion function, the added function execution data is encapsulated according to the communication type of the added function, and encapsulated data is obtained.
[0038] Among them, the added function can refer to the battery expansion function (such as preheating reservation, equalization charging start, etc.) registered by the Web interface configuration, which is not a system preset general function, needs to be adapted to a specific communication type and store the corresponding configuration parameters.
[0039] Among them, the expansion function is opposite to the system originally preset general function, which refers to the battery function added later through configuration, which needs to be implemented through a special instruction format, and its execution depends on the preset communication identification information and encapsulation rule.
[0040] Among them, the communication type refers to the communication protocol type of the terminal battery and the network module for data interaction, which specifically refers to RS485 communication or CAN communication in this scheme, which is the core basis for determining the data encapsulation format.
[0041] Among them, the added function execution data can be a set of key parameters entered by the operation and maintenance personnel after selecting the target expansion function on the Web interface, according to the format requirements (such as data type, byte length, parameter order) of the function preset, which is used to instruct the battery to execute the function.
[0042] Among them, the encapsulation can be the process of the server combining the added function execution data and the preset communication identification information (CID1 / CID2 or frame ID) associated with the communication type, and the communication type identification byte (0x01 / 0x02) according to the fixed format according to the communication type corresponding to the expansion function, forming standardized instruction data that can be correctly parsed by the network module and the battery.
[0043] Among them, the encapsulated data can be standardized instruction data formed through the above encapsulation process, which contains communication type identification, communication identification information, and added function execution data, can be recognized by the network module and forwarded to the target battery, and can be parsed by the battery to execute the corresponding expansion function.
[0044] Specifically, the server can query the local database, and if the current function is not in the preset general function list, it is determined as an expansion function.
[0045] It should be noted that different communication types of batteries need to add different communication identification information.
[0046] For example, the communication type is RS485, and the encapsulation format of the new function execution data is: 0x01 (RS485 identification byte) + network module instruction CID1 / CID2 (2 bytes) + battery reply CID1 / CID2 (2 bytes) + new function execution data. For example, if the communication identification information is instruction CID1=0x0A, CID2=0x0B, reply CID1=0x0C, CID2=0x0D, and the execution data is 0x1234 (representing the heating parameter), the encapsulated data is: 0x01 0x0A 0x0B 0x0C 0x0D 0x12 0x34.
[0047] For example, the communication type is CAN, and the encapsulation format is: 0x02 (CAN identification byte) + sending frame ID (4 bytes) + reply frame ID (4 bytes) + new function execution data. For example, if the communication identification information is sending frame ID=0x12345678, reply frame ID=0x87654321, and the execution data is 0x5678 (representing the heating parameter), the encapsulated data is: 0x02 0x12 0x34 0x56 0x78 0x87 0x65 0x43 0x21 0x56 0x78.
[0048] Step 103, based on the network module, processing the encapsulated data.
[0049] Optionally, based on the network module, it is judged whether the encapsulated data includes the control instruction corresponding to the new function. In the case that the encapsulated data includes the control instruction corresponding to the new function, the communication identification information contained in the encapsulated data is determined, then the flag bit corresponding to the communication type is set to the preset value based on the communication type corresponding to the communication identification information, then after the battery device obtains the encapsulated data and processes it, the processing result returned by the battery device is obtained, and then the processing result is returned to the server.
[0050] Among them, the flag bit is a binary bit or a specific byte in the network module, which is used to mark the communication type and the state of the instruction to be processed. By setting different values, the communication type and the signal that the instruction is to be executed are transmitted to the battery device.
[0051] Among them, the preset value is a predefined flag bit value, which is used to uniquely distinguish the communication type, and only contains two types of first preset value and second preset value, and corresponds to the communication type one by one.
[0052] Among them, the first identification information is the communication identification information of CAN communication, specifically "sending frame ID + reply frame ID" (a total of 8 bytes), which is the key basis for the network module to identify the CAN type extension instruction.
[0053] The second identification information is communication identification information of RS485 communication, specifically "network module instruction CID1 / CID2 + battery reply CID1 / CID2" (4 bytes in total), which is a key basis for the network module to identify RS485 type expansion instructions.
[0054] The first preset value is a flag bit preset value (such as 0x02) bound to CAN communication. After the battery device detects the value, it will obtain and parse the instruction from the network module according to the CAN communication protocol.
[0055] The second preset value is a flag bit preset value (such as 0x01) bound to RS485 communication. After the battery device detects the value, it will obtain and parse the instruction from the network module according to the RS485 communication protocol.
[0056] Different preset values represent different communication types. The battery device obtains the encapsulated data from the network module based on the control instruction and performs the corresponding operation under the condition of detecting the preset value.
[0057] Optionally, in the case of first identification information, if the communication type is determined to be CAN communication, the flag bit corresponding to the communication type is set to the first preset value. In the case of second identification information, if the communication type is determined to be RS485 communication, the flag bit corresponding to the communication type is set to the second preset value.
[0058] If the extracted communication identification information is the first identification information, it is determined that the communication type is CAN communication, and the corresponding flag bit is set to the first preset value. If the extracted communication identification information is the second identification information, it is determined that the communication type is RS485 communication, and the corresponding flag bit is set to the second preset value.
[0059] Specifically, the network module receives the encapsulated data sent by the server, and judges whether the control instruction corresponding to the new function is included. If it is confirmed that the new function control instruction is included, the communication identification information is parsed from the encapsulated data. According to the communication type corresponding to the communication identification information, the flag bit corresponding to the communication type in the network module is set to the preset value. After the battery device detects the preset value of the flag bit, it reads the encapsulated data from the network module, executes the corresponding operation according to the control instruction, and the network module obtains the processing result returned by the battery after processing. Finally, the result is fed back to the server.
[0060] Optionally, the processing result can be replied to the server through the expansion instruction channel.
[0061] Step 104, obtaining the processing result returned by the network module, and feeding back the processing result to the front end.
[0062] Specifically, the server receives the processing result uploaded by the network module (transmitted in the agreed encapsulation format) through the extended instruction channel, extracts the state information and data information in the result according to the analysis rule corresponding to the communication type, eliminates the redundant fields related to the communication protocol, converts the extracted information into a structured format that can be displayed by the front end, pushes the structured result to the Web front end through HTTP / WS and other protocols, and displays it on the specified interface (such as the function execution result page). Thus, the execution of the new function and the display of the result are completed.
[0063] In the embodiments of the present application, by adding the extended instruction, the batteries of multiple communication modes can be compatible after adding new functions, without modifying the network communication module each time, and the server software and the front end can complete the use of new functions; the extended instruction parameters of the new function are added through the Web, the extended instruction parameters of the new function are stored, and the channel function of the extended instruction is used to enable the server and the network module to recognize the added instruction data, correctly analyze the function and data, and correctly send them to the battery. After the battery is processed, the corresponding function processed data can also be correctly received and returned to the server, and the server can correctly analyze the corresponding data. Through the standardization of communication identification information and encapsulation rules, the batteries of multiple communication modes such as RS485 and CAN can share the same set of network module and server logic, and only need to configure parameters through the Web when adding new functions, without modifying the network module, server and front end code. Through the independent extended instruction channel and flag mechanism, the instruction conflict between the new function and the regular function is avoided, the data transmission stability is ensured, the operation personnel can complete the configuration and calling of the new function through the front end interface, and the operation threshold is reduced.
[0064] Figure 2 is the overall flowchart of the general expansion method compatible with multiple battery communication modes, which shows the link from Web configuration of new functions to result return to Web, and is divided into the left half (function configuration and instruction encapsulation) and the right half (network module processing and data return):
[0065] I. Left half: function configuration, instruction encapsulation and delivery
[0066] Web submission of new features: The operation and maintenance personnel enter the configuration information (such as function name, communication type, CID / frame ID, etc.) of the newly added function in the web interface, and these information is stored in the local database. Web reads the function list: The operation and maintenance personnel select the configured new function from the function list of the web, fill in the specific execution parameters (such as the duration and temperature of "preheat"), judge the communication type and encapsulate the instruction: If it is RS485 communication: The server adds identification byte 0x01 in front of the instruction, and takes out the corresponding "network module CID1 / CID2" and "battery reply CID1 / CID2" from the database, and splices them with the execution data filled by the operation and maintenance personnel to form a complete instruction. If it is CAN communication: The server adds identification byte 0x02 in front of the instruction, and takes out the corresponding "sending frame ID" and "reply frame ID" from the database, and splices them with the execution data filled by the operation and maintenance personnel to form a complete instruction. The instruction is sent to the network module: The server sends the encapsulated instruction to the network module.
[0067] II. Right half: Network module processing, battery execution and result return
[0068] The network module identifies the instruction type:
[0069] If it is a regular instruction: Process the data according to the original logic and return. If it is an extended instruction: Enter the special processing flow.
[0070] Execute the instruction according to the communication type:
[0071] RS485 scenario: The network module stores the instruction data with the flag bit 1 of CID1 / CID2, and the battery detects the flag bit and reads the instruction and executes the function, and then returns the result through the corresponding reply CID1 / CID2. CAN scenario: The network module sends the instruction to the CAN bus through the "sending frame ID", and listens to the "reply frame ID"; after the battery executes the function, it returns the result through the "reply frame ID". Result return server: The network module replaces the original instruction data with the result returned by the battery, and returns it to the server through the "extended instruction channel". Result return web: The server analyzes the data and returns the result to the web interface to display to the operation and maintenance personnel.
[0072] Corresponding to the general extension method compatible with multiple types of battery communication modes described in the above embodiment, Figure 3 is a structure block diagram of the general extension device compatible with multiple types of battery communication modes provided by the embodiment of the application.
[0073] Referring to Figure 3 , the general extension device compatible with multiple types of battery communication modes 300 comprises:
[0074] The first acquisition module 310 is configured to acquire the new function execution data submitted by the operation and maintenance personnel;
[0075] The encapsulation module 320 is configured to, in a case where it is judged that the new function is an expansion function, encapsulate data of the new function according to a communication type of the new function to obtain encapsulated data.
[0076] The processing module 330 is configured to process the encapsulated data based on a network module.
[0077] The second acquisition module 340 is configured to acquire a processing result returned by the network module and feed back the processing result to a front end.
[0078] Optionally, the processing module is specifically configured to:
[0079] The judging unit is configured to judge whether the encapsulated data includes a control instruction corresponding to the new function based on the network module.
[0080] The determining unit is configured to determine communication identification information contained in the encapsulated data in a case where the encapsulated data includes the control instruction corresponding to the new function.
[0081] The setting unit is configured to set a flag corresponding to the communication type to a preset value based on the communication identification information.
[0082] The acquisition unit is configured to acquire a processing result returned by a battery device after the battery device acquires and processes the encapsulated data.
[0083] The returning unit is configured to return the processing result to the server.
[0084] Different preset values represent different communication types, and the battery device acquires the encapsulated data from the network module and performs a corresponding operation based on the control instruction in a case where the preset value is detected.
[0085] Optionally, the setting unit is specifically configured to:
[0086] In a case where the communication identification information is first identification information and it is determined that the communication type is CAN communication, the setting unit sets the flag corresponding to the communication type to a first preset value.
[0087] In a case where the communication identification information is second identification information and it is determined that the communication type is RS485 communication, the setting unit sets the flag corresponding to the communication type to a second preset value.
[0088] Optionally, the returning unit is specifically configured to
[0089] The processing result is returned to the server through an extended instruction channel.
[0090] Optionally, the first obtaining module is further configured to:
[0091] The input new function configuration information is obtained and stored, wherein the new function configuration information at least includes: function name, and communication identification information corresponding to communication type.
[0092] In the embodiment of the application, first, new function execution data submitted by an operation and maintenance personnel is obtained, then in the case that the new function is an extended function, the new function execution data is encapsulated according to the communication type of the new function to obtain encapsulated data, then the encapsulated data is processed based on a network module, finally, the processing result returned by the network module is obtained and fed back to the front end. In this way, through the standardization of the communication identification information and the encapsulation rule, the same set of network module and server logic is supported for multiple communication modes of the battery, when a new function is added, only the Web configuration parameter needs to be configured, without the need to modify the network module, the server and the front end code, through the independent extension instruction channel and the flag bit mechanism, the instruction conflict between the new function and the regular function is avoided, the data transmission stability is ensured, the operation and maintenance personnel can complete the configuration and calling of the new function through the front end interface, and the operation threshold is reduced.
[0093] In addition, Figure 3 The universal extension device compatible with multiple types of battery communication modes shown can be a software unit, a hardware unit or a software and hardware combined unit built in an existing electronic device, can be integrated into the electronic device as an independent pendant, or can exist as an independent electronic device.
[0094] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional units and modules is exemplified, and in actual application, the above functions can be completed by different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of mutual distinction, and do not limit the protection scope of the application. The specific working process of the units and modules in the system can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
[0095] Figure 4This is a schematic diagram of the structure of the electronic device provided in an embodiment of this application. For example... Figure 4 As shown, the electronic device 5 of this embodiment includes: at least one processor 50 ( Figure 4 (Only one is shown in the diagram) a processor, a memory 51, and a computer program 52 stored in the memory 51 and executable on the at least one processor 50, wherein the processor 50 executes the computer program 52 to implement the steps in any of the above-described general extension method embodiments compatible with multiple types of battery communication methods.
[0096] The electronic device may be a desktop computer, laptop, handheld computer, or cloud server, etc. This electronic device may include, but is not limited to, a processor and memory. Those skilled in the art will understand that... Figure 4 This is merely an example of electronic device 5 and does not constitute a limitation on electronic device 5. It may include more or fewer components than shown, or combine certain components, or different components, such as input / output devices, network access devices, etc.
[0097] The processor 50 may be a central processing unit (CPU), or it may be 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. A general-purpose processor may be a microprocessor or any conventional processor.
[0098] In some embodiments, the memory 51 may be an internal storage unit of the electronic device 5, such as a hard disk or memory of the electronic device 5. In other embodiments, the memory 51 may be an external storage device of the electronic device 5, such as a plug-in hard disk, SmartMediaCard (SMC), SecureDigital (SD) card, or FlashCard equipped on the electronic device 5. Furthermore, the memory 51 may include both internal and external storage units of the electronic device 5. The memory 51 is used to store the operating system, applications, bootloader, data, and other programs, such as the program code of the computer program. The memory 51 can also be used to temporarily store data that has been output or will be output.
[0099] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the steps in each of the above method embodiments.
[0100] The embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device is caused to execute the steps in each of the above method embodiments.
[0101] The integrated unit, if implemented in the form of a software function unit and used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the present application can implement all or part of the processes in the above embodiments by a computer program to instruct related hardware to complete, and the computer program can be stored in a computer readable storage medium. The computer program is executed by a processor to implement the steps in each of the above method embodiments. The computer program includes computer program code, which can be in the form of source code, object code, executable files or some intermediate forms. The computer readable medium at least includes any entity or device capable of carrying the computer program code to the device / electronic device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium. For example, U disk, mobile hard disk, magnetic disk or optical disk, etc.
[0102] In the above embodiments, the description of each embodiment has its own focus. The parts not described in detail or recorded in a certain embodiment can be referred to the relevant description of other embodiments.
[0103] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are executed in hardware or software 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 beyond the scope of the present application.
[0104] In the embodiments of the present application, it should be understood that the disclosed apparatus / equipment and method can be implemented in other manners. For example, the described apparatus / equipment embodiments are merely schematic. For example, the division of the modules or units is merely logical function division, and there can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units, can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or in other forms.
[0105] The units described as separate components may or can not be physically separate, and the components shown as units may or can not be physical units, i.e., they can be located in one place, or can be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.
[0106] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application; the present specification and claims and the aforementioned description of the drawings, the terms "comprising" and "having" and any variations thereof, are intended to cover not exclusively inclusive.
[0107] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "a plurality of" is two or more, unless otherwise explicitly and specifically limited.
[0108] Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearance of the phrase in various places in the specification does not necessarily all refer to the same embodiment, or necessarily refer to a separate or alternative embodiment, which is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0109] In the description of the embodiments of the present application, the term "and / or" is merely a description of the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there can be three cases of A alone, A and B together, and B alone. In addition, the character " / " in this paper generally represents that the front and rear associated objects have an "or" relationship.
[0110] In the description of the embodiments of the present application, the term "a plurality of" refers to two or more (including two), and similarly, "a plurality of groups" refers to two or more groups (including two groups), and "a plurality of pieces" refers to two or more pieces (including two pieces).
[0111] In the description of the embodiments of the present application, the technical terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as limiting the embodiments of the present application.
[0112] In the description of the embodiments of the present application, unless otherwise explicitly specified and limited, the technical terms "mounting", "connecting", "connecting", "fixing" and the like should be understood broadly, for example, can be fixedly connected, or can be detachably connected, or can be integrated; can be mechanically connected, or can be electrically connected; can be directly connected, or can be indirectly connected through an intermediate medium; can be the internal communication of two elements or the interaction relationship between two elements. For those skilled in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.
[0113] The above-described embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements for some technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A universal expansion method compatible with multiple types of battery communication methods, characterized in that, The server is executed, comprising: Obtaining the newly added function execution data submitted by the operation and maintenance personnel; In the case where the newly added function is an expansion function, the newly added function execution data is encapsulated according to the communication type of the newly added function to obtain encapsulated data; Based on the network module, the encapsulated data is processed; Obtain the processing result returned by the network module, and feed back the processing result to the front end.
2. The method of claim 1, wherein, The network module is used to process the encapsulated data, comprising: Based on the network module, it is judged whether the encapsulated data includes the control instruction corresponding to the newly added function; In the case where the encapsulated data includes the control instruction corresponding to the newly added function, the communication identification information contained in the encapsulated data is determined; Based on the communication type corresponding to the communication identification information, the flag bit corresponding to the communication type is set to a preset value; After the battery equipment obtains the encapsulated data and processes it, the processing result returned by the battery equipment is obtained; The processing result is returned to the server, Wherein, different preset values represent different communication types, and the battery equipment obtains the encapsulated data from the network module and performs corresponding operation based on the control instruction when detecting the preset value.
3. The method of claim 2, wherein, Based on the communication type corresponding to the communication identification information, the flag bit corresponding to the communication type is set to a preset value, comprising: In the case where the communication identification information is the first identification information, it is determined that the communication type is CAN communication, and the flag bit corresponding to the communication type is set to the first preset value; In the case where the communication identification information is the second identification information, it is determined that the communication type is RS485 communication, and the flag bit corresponding to the communication type is set to the second preset value.
4. The method of claim 2, wherein, The processing result is returned to the server, comprising: The processing result is replied to the server through the expansion instruction channel.
5. The method of claim 1, wherein, Before obtaining the newly added function data submitted by the operation and maintenance personnel, further comprising: Obtaining and storing the input newly added function configuration information, wherein the newly added function configuration information at least includes: function name, communication identification information corresponding to communication type.
6. A universal expansion device compatible with multiple types of battery communication methods, characterized in that, Comprising: The first acquisition module is used for obtaining the newly added function execution data submitted by the operation and maintenance personnel; The encapsulation module is used for encapsulating the newly added function execution data according to the communication type of the newly added function to obtain encapsulated data in the case where the newly added function is an expansion function; The processing module is used for processing the encapsulated data based on the network module; The second acquisition module is used for obtaining the processing result returned by the network module, and feeding back the processing result to the front end.
7. The apparatus of claim 6, wherein, The processing module is specifically used for: The judgment unit is used for judging whether the encapsulated data includes the control instruction corresponding to the newly added function based on the network module; The determination unit is used for determining the communication identification information contained in the encapsulated data in the case where the encapsulated data includes the control instruction corresponding to the newly added function; Based on the communication type corresponding to the communication identification information, the flag bit corresponding to the communication type is set to a preset value; After the battery equipment obtains the encapsulated data and processes it, the processing result returned by the battery equipment is obtained; The processing result is returned to the server, Wherein, different preset values represent different communication types, and the battery equipment obtains the encapsulated data from the network module and performs corresponding operation based on the control instruction when detecting the preset value. The setting unit is configured to set a flag corresponding to the communication type to a preset value based on the communication type corresponding to the communication identification information. The obtaining unit is configured to obtain a processing result returned by the battery device after the battery device obtains and processes the encapsulated data. The returning unit is configured to return the processing result to the server. Different preset values represent different communication types. The battery device obtains the encapsulated data from the network module and performs corresponding operations based on the control instruction when the preset value is detected.
8. The apparatus of claim 7, wherein, The setting unit is specifically configured to: In a case where the communication identification information is first identification information and the communication type is CAN communication, set the flag corresponding to the communication type to a first preset value. In a case where the communication identification information is second identification information and the communication type is RS485 communication, set the flag corresponding to the communication type to a second preset value.
9. The apparatus of claim 7, wherein, The returning unit is specifically configured to: Return the processing result to the server through an extended instruction channel.
10. The apparatus of claim 6, wherein, The first obtaining module is further configured to: Obtain and store input new function configuration information, wherein the new function configuration information at least includes a function name and communication identification information corresponding to a communication type.
Citation Information
Patent Citations
Function upgrading method and device of battery management system, electronic equipment and medium
CN115098138A
A communication protocol conversion circuit and converter for use between energy storage machine and battery
CN210380919U