Communication method and device of energy storage BMS, electronic equipment, storage medium and vehicle
By receiving and analyzing communication data in the energy storage BMS, determining the communication protocols of different devices, and performing necessary protocol conversion, the security risks of energy storage BMS when facing different external devices are solved, and the security of data transmission is improved and reliability.
Patent Information
- Application Number
- CN202411545991.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2025-02-07
AI Technical Summary
Energy storage BMS cannot be effectively managed when facing communication data from different types of external devices, and there is a security risk.
By receiving the original communication data sent by the first external device, the first communication protocol used by the second external device is determined, and if it matches, it will be sent directly. If it doesn't match, it will be converted to ensure that the data can be safe Transfer efficiently.
It improves the security of energy storage BMS, realizes the classification management of communication data between different external devices, and ensures the security and reliability of data transmission.
Smart Images

Figure CN119402489A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a communication method, device, electronic equipment, storage medium and vehicle for an energy storage BMS. Background Art
[0002] At present, with the widespread use of energy storage systems, more and more types of devices can be connected to the energy storage battery management system (BMS). Because different types of external devices have different corresponding access methods, the communication data sent by the external devices are also different, resulting in the energy storage BMS being unable to effectively manage these communication data, posing a security risk. Summary of the invention
[0003] The present disclosure provides a communication method, device, electronic device, storage medium and vehicle for an energy storage BMS, which are used to determine a first communication protocol used by a first external device and a second communication protocol used by a second external device according to communication data, and provide different communication processing modes for the communication data based on the first communication protocol and the second communication protocol to improve the safety of the energy storage BMS.
[0004] A first aspect of an embodiment of the present disclosure provides a communication method for an energy storage BMS, which is applied to the energy storage BMS. The method includes:
[0005] Receiving original communication data sent by a first external device connected to the energy storage BMS, wherein the original communication data is data for sending to a second external device;
[0006] Determine a first communication protocol and a second communication protocol based on the original communication data, wherein the first communication protocol is a communication protocol used by the first external device to send data, and the second communication protocol is a communication protocol used by the second external device to receive data;
[0007] If the first communication protocol matches the second communication protocol, sending the original communication data to the second external device;
[0008] If the first communication protocol and the second communication protocol do not match, the original communication data is converted into target communication data associated with the second communication protocol, and the target communication data is sent to the second external device.
[0009] A second aspect of an embodiment of the present disclosure provides a communication device for an energy storage BMS, the communication device for the energy storage BMS comprising:
[0010] A receiving module, used for receiving original communication data sent by a first external device connected to the energy storage BMS, wherein the original communication data is data for sending to a second external device;
[0011] a protocol determination module, configured to determine, based on the original communication data, a first communication protocol and a second communication protocol, wherein the first communication protocol is a communication protocol used by the first external device to send data, and the second communication protocol is a communication protocol used by the second external device to receive data;
[0012] A first sending module, configured to send the original communication data to the second external device if the first communication protocol matches the second communication protocol;
[0013] The conversion and sending module is used for converting the original communication data into target communication data associated with the second communication protocol if the first communication protocol and the second communication protocol do not match, and sending the target communication data to the second external device.
[0014] A third aspect of an embodiment of the present disclosure provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the communication method of the energy storage BMS of the first aspect when executing the computer program.
[0015] A fourth aspect of an embodiment of the present disclosure provides a computer-readable storage medium, in which instructions are stored. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the communication method of the energy storage BMS of the first aspect described above is implemented.
[0016] A fifth aspect of an embodiment of the present disclosure provides a vehicle, comprising the electronic device as described in the third aspect.
[0017] In the technical solution provided by the embodiment of the present disclosure, original communication data sent by a first external device connected to an energy storage BMS is received, and the original communication data is data used to be sent to a second external device; based on the original communication data, a first communication protocol and a second communication protocol are determined, the first communication protocol is the communication protocol used by the first external device to send data, and the second communication protocol is the communication protocol used by the second external device to receive data; if the first communication protocol and the second communication protocol match, the original communication data is sent to the second external device; if the first communication protocol and the second communication protocol do not match, the original communication data is converted into target communication data associated with the second communication protocol, and the target communication data is sent to the second external device. In the embodiment of the present disclosure, the first communication protocol used by the first external device and the second communication protocol used by the second external device are determined according to the communication data, and different communication processing methods are provided for the communication data based on the first communication protocol and the second communication protocol, so as to improve the safety of the energy storage BMS. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is an application system framework diagram of an embodiment of the present disclosure;
[0019] Figure 2 It is a schematic diagram of an overall flow chart of the communication method of the energy storage BMS in the embodiment of the present disclosure;
[0020] Figure 3 is a schematic diagram of a routing function module in an embodiment of the present disclosure;
[0021] Figure 4 A schematic diagram of a routing function module and a protocol conversion module in an embodiment of the present disclosure;
[0022] Figure 5 A schematic diagram of a first chip core and a second chip core in an embodiment of the present disclosure;
[0023] Figure 6 For the embodiment of the present disclosure Figure 2 A specific flow chart of step 210 and step 240;
[0024] Figure 7 For the embodiment of the present disclosure Figure 2 A specific flow chart of step 210 and step 240;
[0025] Figure 8 For the embodiment of the present disclosure Figure 2 A specific flow chart of step 230;
[0026] Fig. 9 For the embodiment of the present disclosure Figure 8 A specific flow chart of step 810;
[0027] Fig.10 For the embodiment of the present disclosure Figure 2 A specific flow chart before step 210;
[0028] Fig.11 A schematic diagram of a communication device of an energy storage BMS in an embodiment of the present disclosure;
[0029] Fig.12 It is a structural schematic diagram of an electronic device in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the present disclosure more clear, the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not used to limit the present disclosure.
[0031] Before further describing the embodiments of the present disclosure in detail, the nouns and terms involved in the embodiments of the present disclosure are described. The nouns and terms involved in the embodiments of the present disclosure are subject to the following interpretations:
[0032] Communication protocol: Communication protocol is a vital component of data communication system. It defines the format used by data units, the information and meaning that information units should contain, the connection method, and the timing of information sending and receiving, so as to ensure that data in the network can be smoothly transmitted to a certain place. This protocol not only stipulates how the two entities communicate (i.e. the exchange rules of data transmission and control information), but also includes the content, method and time of communication, ensuring that different systems or devices can effectively exchange information and share resources. The existence of communication protocols enables data communication systems located in different geographical locations to work together, just like humans communicate using the same language. The design of communication protocols involves many aspects, including but not limited to syntax, semantics and synchronization. Syntax stipulates the format and structure of data transmission; semantics defines the meaning of each data unit; synchronization involves the timing of information sending and receiving to ensure the correct transmission and processing of data. In addition, communication protocols may also involve error control mechanisms to ensure the integrity and reliability of data.
[0033] Protocol conversion: Protocol conversion refers to the process of converting the standard or protocol of one device into a protocol suitable for another device. This process aims to achieve interoperability between different protocols, so that different devices or systems can communicate and exchange data with each other. Protocol conversion usually appears in the form of software, which involves converting the data format, data rate, etc. in one network into a protocol suitable for another network, thereby ensuring that information can be smoothly transmitted in networks with different protocols. This conversion is crucial to achieve network interconnection and interoperability, especially in computer networks, where different devices and applications may support different communication protocols, which differ in data format, transmission method, rate, etc. Through protocol conversion, interoperability and data exchange between different devices can be achieved, solving the problem of each other's inability to recognize each other's communication methods, thereby promoting effective communication and data sharing in the network.
[0034] At present, with the widespread application of energy storage systems, the types and quantities of devices that can be connected to energy storage systems are also increasing. The number and types of external devices that need to be managed by the BMS in the energy storage system (hereinafter referred to as the energy storage BMS) are also increasing. However, the access methods of various external devices are currently random. When external devices need to communicate with each other, the energy storage BMS cannot effectively manage them, which poses a security risk. In order to solve the above problems, there is a need to classify and manage the communication data between different external devices. To this end, the embodiments of the present disclosure can provide different communication processing methods according to the communication protocols used by the two external devices that need to communicate, thereby realizing the safe management of the communication data between the two external devices and improving the security of the energy storage BMS.
[0035] Description of the system architecture of the present disclosure embodiment
[0036] Figure 1 It is a system architecture diagram applied by the communication method of the energy storage BMS according to the embodiment of the present disclosure. The architecture includes an energy storage BMS and an external device. The communication between external devices needs to be forwarded by the energy storage BMS. Energy storage BMS: used to detect and control the energy storage system, and control the supply of power to external devices. External devices: include local devices and mobile devices, and local devices include energy storage system components and energy storage system interactive devices. For example, the energy storage system components include: host computers, screens, wind and solar chargers, DC chargers, AC chargers and other devices; energy storage system interactive devices include express cabinets, fitness equipment, vending machines and other devices. Mobile devices include mobile phones, computers, tablets, cars, battery cars, drones and the like. Considering the safety, reliability and convenience of communication connections, energy storage system components such as host computers, portable power supplies and mobile chargers and other energy storage system interactive devices preferably use Ethernet, 485, CAN, 232 and other wired communications. Mobile devices such as mobile phones, cars and drones use WIFI to connect to the energy storage BMS to achieve better convenience.
[0037] The vehicle can be a private car, such as a sedan, SUV, MPV or pickup truck. The vehicle can also be an operating vehicle, such as a van, bus, small truck or large trailer. The vehicle can be a gasoline vehicle or a new energy vehicle. When the vehicle is a new energy vehicle, it can be a hybrid vehicle or a pure electric vehicle.
[0038] General description of the disclosed embodiments
[0039] See also Figure 2 , a flow chart of a communication method of an energy storage BMS provided in an embodiment of the present disclosure, which is applied to an energy storage BMS, and the method specifically includes:
[0040] 210. Receive original communication data sent by a first external device connected to the energy storage BMS, where the original communication data is data for sending to a second external device;
[0041] 220. Determine a first communication protocol and a second communication protocol based on the original communication data, where the first communication protocol is a communication protocol used by the first external device to send data, and the second communication protocol is a communication protocol used by the second external device to receive data;
[0042] 230. If the first communication protocol and the second communication protocol match, sending the original communication data to the second external device;
[0043] 240. If the first communication protocol and the second communication protocol do not match, convert the original communication data into target communication data associated with the second communication protocol, and send the target communication data to the second external device.
[0044] First, the above steps 210 - 240 are briefly described.
[0045] In step 210, when the energy storage BMS receives the original communication data sent by the first external device, it parses the original communication data to obtain the content data to be sent to the second external device. The original communication data carries instructions and content data. For example, the first external device is a sensor for sending battery fault status data; the second external device is an energy management system (Energy Management System, BMS), and the first external device needs to send the battery fault status data and the fault judgment instruction to the second external device.
[0046] In step 220, by parsing the original communication data, it can be known that the first communication protocol used by the first external device when sending data and the second communication protocol used by the second external device when receiving data. Different external devices correspond to different protocol types. For example, if the first external device enters the energy storage BMS through the 485 interface, the first communication protocol used by the first external device when sending data is the RS-485 protocol. If the first external device enters the energy storage BMS through the CAN interface, the first communication protocol used by the first external device when sending data is the CAN bus protocol. If the second external device is connected to the energy storage BMS through Ethernet, the second communication protocol used by the second external device when receiving data is the modbus protocol. If the second external device is connected to the energy storage BMS through a mobile network, the second communication protocol used by the second external device when receiving data is the TCP / IP protocol.
[0047] In step 230, if the first communication protocol and the second communication protocol match, the second external device can directly identify the content data in the original communication data. For example, the first communication protocol is the WIFI protocol (i.e., the 802.11b protocol), and the second communication protocol is the mobile communication protocol. The WIFI protocol and the mobile communication protocol match, and the original communication data can be directly received without the need to perform protocol conversion on the original communication data. Therefore, the original communication data obtained from the first external device is directly forwarded to the second external device. For another example, the first communication protocol is the Ethernet protocol (i.e., the IEEE 802.3 protocol), and the second communication protocol is the mobile communication protocol. The Ethernet protocol and the mobile communication protocol match, and data communication can be performed directly without the need to perform protocol conversion on the original communication data. Therefore, the original communication data obtained from the first external device is directly forwarded to the second external device.
[0048] It should be noted that there are also many types of mobile communication protocols, such as 3G protocols, 4G protocols and 5G protocols, among which 4G protocols can specifically include Long Term Evolution (LTE), LTE-Advanced and WirelessMAN-Advanced, and 5G protocols will also include many specific protocol standards, which will not be described in detail here. Because 3G protocols, 4G protocols and 5G protocols are compatible with each other, they are not distinguished in this disclosure and are collectively referred to as mobile communication protocols.
[0049] In step 240, if the first communication protocol and the second communication protocol do not match, that is, the second external device cannot directly identify the content data in the original communication data, therefore, it is necessary to perform protocol conversion before sending it to the second external device. When performing protocol conversion, it is mainly based on the second communication protocol, as long as the original communication data is converted into target communication data associated with or identifiable by the second communication protocol. Then the converted target communication data is sent to the second external device. Among them, the protocol conversion process may include: parsing the original communication data to obtain the original content data; formatting the original data based on the mapping relationship between the first communication protocol and the second communication protocol to obtain the target content data; encapsulating the target content data according to the second communication protocol to obtain the target communication data. The format conversion process has different conversion methods depending on the protocol. For example, mapping the actual value with the display value; or bringing the data that needs to be brought into the algorithm into the calculation; or analyzing the data value to extract key features, etc., which are not limited here. When sending target communication data, if it is sent to a local device, it can be directly sent out from the corresponding hardware port. If it is sent to a mobile device (ie, a remote device), it needs to be sent out from the corresponding hardware port through the routing function module.
[0050] It should be noted that the energy storage BMS can aggregate the original communication data sent by multiple first external devices and then perform protocol conversion, and then send them uniformly to the second external device. Assuming that the second external device is an energy management system (EMS), the energy storage BMS obtains the voltage, current and fault status of the battery through the CAN-1 hardware port; obtains the charging and discharging current and power through the 485-1 hardware port, and obtains the working status of the water chiller through the 485-2 hardware port. After all the information is aggregated, it is converted into the modbus protocol through the protocol conversion module and then sent to the EMS through the Ethernet port; among them, the fault status in the CAN-1 data and the power in the 485-1 data are aggregated and converted to the TCP / IP protocol, and can also be sent to the mobile terminal by the mobile communication protocol. For another example, the energy storage BMS receives the voltage status of the battery. The voltage status is divided into five levels according to the voltage of the battery, namely, level 1 overvoltage, level 2 overvoltage, level 3 overvoltage, level 4 overvoltage and level 5 overvoltage. Among them, different levels represent different risk levels, but different levels do not necessarily require different processing methods. For example, the corresponding processing method for level one overvoltage is alarm, the corresponding processing methods for level two and level three overvoltage are to reduce the charging power, and the corresponding processing methods for level four and level five overvoltage are to stop charging. In one embodiment, in order to facilitate different application scenarios, the voltage status data sent to the host computer for debugging is sent according to the original communication data (that is, no data merging is required), and the status sent to the processor EMS is merged. For example, a two-level and three-level merge can be performed, or a three-level and four-level merge can be performed, and the final voltage status sent to the EMS is a three-level voltage status.
[0051] Similarly, the second external device can be a specific external device or an external device with a forwarding function. After receiving the target communication data, the second external device forwards the data that does not belong to itself to other multiple external devices. The present disclosure does not limit this. For ease of understanding, the present disclosure takes a first external device sending original communication data to a second external device as an example for explanation.
[0052] In an embodiment of the present disclosure, a first communication protocol used by a first external device and a second communication protocol used by a second external device are determined according to communication data, and different communication processing methods are provided for the communication data based on the first communication protocol and the second communication protocol to improve the safety of the energy storage BMS.
[0053] The steps in steps 210 - 240 are described in detail below.
[0054] In one embodiment, step 230 may include:
[0055] If the first communication protocol and the second communication protocol meet the first matching condition, the original communication data sent by the first external device is forwarded to the second external device through the routing function module in the energy storage BMS. The first matching condition is that the first communication protocol and the second communication protocol are any one of the mobile communication protocol, WIFI protocol or Ethernet protocol. The connection relationship between the routing function module and the external device is as follows: Figure 3 shown.
[0056] In the embodiment of the present disclosure, the original communication data between two external devices with similar protocol types is forwarded by the routing function module in the energy storage BMS, and a separate routing function module is provided for forwarding processing, thereby improving data forwarding efficiency.
[0057] In one embodiment, step 240 may include:
[0058] If the first communication protocol and the second communication protocol meet the second matching condition, the original communication data is converted into the target communication data through the protocol conversion module in the energy storage BMS. The second matching condition is that the first communication protocol is not a mobile communication protocol, a WIFI protocol or an Ethernet protocol, and the second communication protocol is any one of the mobile communication protocol, the WIFI protocol or the Ethernet protocol; the target communication data is forwarded to the second external device through the routing function module. The connection relationship between the routing function module and the protocol conversion module and the external device is as follows: Figure 4 shown.
[0059] Among them, the first communication protocol may include RS-485 protocol, CAN bus protocol, RS-232 protocol, Bluetooth protocol, etc., or other communication protocols, such as IEC61850 protocol, IEC 60870-5-104 protocol, etc., which are not specifically limited here.
[0060] In the embodiment of the present disclosure, a first communication protocol that is not a mobile communication protocol, a WIFI protocol or an Ethernet protocol is converted by a protocol conversion module to achieve communication between external devices of different protocol types.
[0061] In one embodiment, the protocol conversion module in the energy storage BMS performs protocol conversion on the original communication data to obtain the target communication data, which may include:
[0062] In the protocol conversion module of the energy storage BMS, the original communication data is matched with the target conversion submodule;
[0063] The original communication data is converted into target communication data through the target conversion submodule.
[0064] Among them, the protocol conversion module has a variety of different protocols built in, such as modbus protocol, TCP / IP protocol, 104 protocol, etc. The protocol conversion module is equipped with multiple conversion submodules, each of which handles a protocol conversion relationship. After the energy storage BMS determines that the original communication data needs to be converted to a protocol, the protocol conversion module will automatically identify it, and the corresponding conversion submodule will perform specific protocol conversion.
[0065] For example, if the first communication protocol is the RS-485 protocol and the second communication protocol is the 4G protocol in the mobile communication protocol, the conversion submodule 1-1 responsible for the corresponding relationship can perform the protocol conversion; if the first communication protocol is the RS-485 protocol and the second communication protocol is the 5G protocol in the mobile communication protocol, the conversion submodule 1-2 responsible for the corresponding relationship can perform the protocol conversion; if the first communication protocol is the CAN bus protocol and the second communication protocol is the 4G protocol in the mobile communication protocol, the conversion submodule 2-1 responsible for the corresponding relationship can perform the protocol conversion; if the first communication protocol is the CAN bus protocol and the second communication protocol is the 5G protocol in the mobile communication protocol, the conversion submodule 2-2 responsible for the corresponding relationship can perform the protocol conversion.
[0066] Due to the differences in the original communication data sent by different external devices, after some of the original communication data are identified in the target conversion sub-module: first, the original communication data is parsed to obtain the parsed message data; then the parsed message data is collected and processed to obtain the processed data; finally, the processed data is converted into a protocol through the protocol conversion module and sent to the routing function module.
[0067] In the disclosed embodiment, the corresponding conversion of different first communication protocols is achieved through the conversion submodule set in advance, which improves the protocol conversion speed and further speeds up the generation speed of target communication data.
[0068] In one embodiment, matching the target conversion submodule for the original communication data in the protocol conversion module of the energy storage BMS may include:
[0069] Parsing the original communication data to obtain first port information corresponding to the first external device and second port information corresponding to the second external device;
[0070] The original communication data is matched with a corresponding target conversion submodule based on the first port information and the second port information.
[0071] It is understandable that the port information may be communication interface information, hardware port information, or both. Each communication interface may correspond to multiple hardware ports. For example, the hardware ports corresponding to the CAN communication interface are CAN-1 and CAN-2; the hardware ports corresponding to the 485 communication interface are 485-1 and 485-2.
[0072] In the disclosed embodiment, the port information is combined to match the conversion submodule, thereby improving the matching speed of the conversion submodule and further improving the protocol conversion efficiency.
[0073] like Figure 5 As shown, in one embodiment, the energy storage BMS includes a first chip core and a second chip core.
[0074] The first chip core is used to convert the original communication data into target communication data;
[0075] The second chip core is used to send target communication data to the second external device.
[0076] In one implementation, for two external devices of different types, the energy storage BMS is divided into a first chip core and a second chip core, and different functions are assigned to each of them. For example, the first chip core provides the function of a protocol conversion module, and the second chip core provides the function of a routing function module, that is, the first chip core sends the target communication data after protocol conversion to the second chip core through inter-core communication, and the second chip core sends the target communication data to the second external device. In the disclosed embodiment, different chip areas provide different functions, and the protocol conversion function and the routing function are physically isolated, thereby improving the safety of the energy storage BMS.
[0077] It should be noted that the first chip core and the second chip core use inter-core communication, and the inter-core communication needs to undergo security verification to ensure the security of the data. For example, the second chip core identifies the target address data related to the local device and transmits the corresponding data to the first chip core for processing through inter-core communication. All information not related to the local device, such as entertainment platforms, shopping and other interactive information, is directly forwarded to the second external device by the routing function of the second chip core without passing through the first chip core, avoiding functional failure or security issues in the system caused by excessive data.
[0078] In one embodiment, when it is detected that the second chip core cannot work normally due to its own failure or external attack, the energy storage BSM is controlled to restart or shut down the second chip core.
[0079] After the second chip core is shut down, the first chip core can continue to work, that is, the entire system can still operate normally at this moment, but it cannot receive instructions and data from the mobile device, nor can it send data to the mobile device; the embodiment of the present disclosure improves the reliability of the energy storage BMS by performing fault removal on the second chip core.
[0080] It should be noted that the chip core involved in the embodiments of the present disclosure can be a single physical core or a core group (logical core) composed of multiple physical cores. The multiple cores contained in the core group are divided into functions and can transmit data to each other. The data transmission between core groups must strictly comply with the original security verification of the inter-core communication.
[0081] In one embodiment, the energy storage BMS includes a first chip core;
[0082] The first chip core is used for converting the original communication data into target communication data and sending the target communication data to the second external device.
[0083] In one embodiment, two external devices of the same type can also be processed by the first chip core, and the first chip is used to realize communication between two local devices. For example, if both external devices are local devices, the first chip core can provide both protocol conversion function and routing function. For example, when the first communication protocol corresponding to the first external device is the RS-485 protocol, and the second communication protocol corresponding to the second external device is the CAN bus protocol, the first chip core receives the original communication data, converts the protocol into the target communication data, and sends it to the second external device. In the embodiment of the present disclosure, the first chip core provides the protocol conversion function and the routing function, and the first chip core performs protocol conversion on the original communication data and sends the converted target communication data to the second external device, thereby realizing the physical isolation between the local device connected to the first chip core and other mobile devices connected to the second chip core, avoiding the leakage of data of the first chip core to the mobile device, and improving the safety and reliability of the energy storage BMS.
[0084] See also Figure 6 In one embodiment, step 210 may include:
[0085] 610. Receive original communication data sent by a first external device connected to the energy storage BMS based on the second chip core;
[0086] Step 240 may include:
[0087] 620. Convert the original communication data into target communication data associated with the second communication protocol based on the first chip core;
[0088] 630. Send target communication data to a second external device based on the first chip core.
[0089] In step 610, the original communication data of the first external device is received by the second chip core, and the original communication data is received by the second chip core providing a routing function. At this time, the first communication protocol used by the first external device is any one of a mobile communication protocol, a WIFI protocol or an Ethernet protocol.
[0090] In step 620, the first chip core provides a protocol conversion function to perform protocol conversion on the original communication data sent from the second chip core to obtain target communication data.
[0091] In step 630, the first external device is a mobile device, the second external device is a local device, and the first chip core sends target communication data to the second external device, wherein the communication protocol corresponding to the target communication data is not necessarily identical to the second communication protocol, as long as the second communication protocol can be identified. For example, under the condition that the first communication protocol is any one of a mobile communication protocol, a WIFI protocol, or an Ethernet protocol, and the second communication protocol is a non-mobile communication protocol that does not match the first communication protocol (for example, an RS-485 protocol, a CAN bus protocol, etc.), the second chip core can receive the original communication data and then transmit it to the first chip core for communication protocol conversion, and then the first chip core directly sends the converted target communication data.
[0092] The advantage of steps 610-630 is that the second chip core is used to provide a routing function to obtain the original communication data, the first chip core is used to provide a protocol conversion function to convert the original communication data, and the first chip core is used to send the converted target communication data directly to the second access device. The processed data is physically isolated by different chip cores, which reduces data interference between different chip cores and improves the reliability of the energy storage BMS.
[0093] See also Figure 7 In one embodiment, step 210 may include:
[0094] 710. Receive original communication data sent by a first external device connected to the energy storage BMS based on the first chip core;
[0095] Step 240 may include:
[0096] 720. Convert the original communication data into target communication data associated with the second communication protocol based on the first chip core;
[0097] 730. Transmitting target communication data from the first chip core to the second chip core;
[0098] 740. Send target communication data to a second external device based on the second chip core.
[0099] Steps 710-720 are similar to steps 610-620 and are not described again here.
[0100] In step 730, the first external device is a local device, and the second external device is a mobile device. The converted target communication data needs to be sent to the second external device through the second chip core, so it needs to be sent from the first chip core to the second chip core first. For example, when the second communication protocol is any one of a mobile communication protocol, a WIFI protocol, or an Ethernet protocol, and the first communication protocol is a non-mobile communication protocol that does not match the first communication protocol (for example, an RS-485 protocol, a CAN bus protocol, etc.), the first chip core can receive the original communication data, the first chip core converts the communication protocol, and then the second chip core sends the converted target communication data.
[0101] Step 740 is similar to step 630 and will not be described in detail here.
[0102] The advantage of steps 710-740 is that the second chip core is used to provide a routing function to obtain the original communication data, the first chip core is used to provide a protocol conversion function to convert the original communication data, and the first chip core is used to send the converted target communication data directly to the second access device. The processed data is physically isolated by different chip cores, which reduces data interference between different chip cores and improves the reliability of the energy storage BMS.
[0103] See also Figure 8 In one embodiment, step 230 may include:
[0104] 810. Send original communication data to a second external device based on the first chip core or the second chip core.
[0105] It should be noted that, when the first communication protocol and the second communication protocol match, no protocol conversion is required, and any chip core can be selected to send the original communication data based on the type of device connected to the chip core.
[0106] See also Fig. 9 In one embodiment, step 810 may include:
[0107] 910. When the first external device is an external device of the first device type and the original communication data is received based on the second chip core, the original communication data is sent to the second external device based on the second chip core; or,
[0108] When the first external device is an external device of the second device type and the original communication data is received based on the first chip core, the original communication data is sent to the second external device based on the first chip core.
[0109] In step 910, for two external devices with matching communication protocols, when the first device type is a mobile device and the second chip core receives the original communication data, the original communication data can be sent through the second chip core. For example, when the first communication protocol corresponding to the first external device is the WIFI protocol, and the second communication protocol corresponding to the second external device is the mobile communication protocol (5G), the second chip core receives the original communication data and forwards it to the second external device. In the disclosed embodiment, the second chip core provides a routing function, and the second chip core directly forwards the original communication data to the second external device, thereby avoiding interference of the data of the first chip core with the original communication data of the second chip core, and improving the reliability of the energy storage BMS.
[0110] When the second device type is a local device and the first chip core receives the original communication data, the original communication data can be sent through the first chip core. For example, when the first communication protocol corresponding to the first external device is the RS-485 protocol, and the second communication protocol corresponding to the second external device is the RS-485 protocol, the original communication data is received by the first chip core and forwarded to the second external device. In the embodiment of the present disclosure, the first chip core provides a routing function, and sends the original communication data of the first chip core to the second external device, thereby avoiding the interference of the data of the second chip core with the original communication data of the first chip core, and improving the safety and reliability of the energy storage BMS.
[0111] See also Fig.10 In one embodiment, before step 210, the following steps may also be included:
[0112] 1010. If the device identification information of the first external device is in a preset whitelist, in response to the access request of the first external device, sending an access consent response to the first external device; or,
[0113] 1020. If the device identification information of the first external device is not in the preset whitelist, initiate a security check on the first external device; and after the first external device passes the security check, in response to the access request of the first external device, send an access consent response to the first external device.
[0114] In step 1010, a whitelist verification process for the first external device is added. The energy storage BMS has a whitelist, which can be updated in real time through the cloud platform. For the first external device in the whitelist, the original communication data sent by the first external device can be released, and the corresponding protocol conversion function and routing function are provided. For the first external device not in the whitelist, the energy storage BMS does not provide data services.
[0115] In step 1020, for the first external device that is not in the whitelist, a device security verification path can be provided. During the device security verification process, security verification can be performed using information such as the device number and verification code. The first external device that passes the security verification can be added to the whitelist. If it fails the verification, various data requests of the first external device are rejected.
[0116] In the disclosed embodiments, a whitelist verification mechanism is provided, which improves the security of the energy storage BMS, expands the coverage of external devices, and increases the application scenarios of the energy storage system.
[0117] It should be noted that the energy storage BMS can also provide real-name authentication services, which can perform effective identity authentication through corporate information such as corporate code, or personal information such as telephone and email, as well as personal identification information such as ID card or face recognition. The first external device that has passed the real-name authentication can access the energy storage BMS through the WIFI protocol or Bluetooth protocol to complete the external transmission of data. Among them, the first access device connected via WIFI gives priority to server security verification. At this time, the energy storage BMS does not provide a protocol conversion function to ensure the security of the energy storage BMS. That is, after passing the real-name authentication, the data of the first external device is forwarded to the server through the routing function module, and after verification by the server, it is sent to the energy storage BMS for execution.
[0118] For the first access device connected via the Bluetooth protocol, local verification is preferred. At this time, the energy storage BMS can directly execute the command after safety verification, or it can be converted by the protocol conversion module and then sent to the server through the routing function module. After the server verifies it, it will send the command to the local BMS for execution.
[0119] Description of the apparatus and device of the present disclosure
[0120] It is to be understood that, although the steps in the above-mentioned flowcharts are sequentially displayed according to the characterization of arrows, these steps are not necessarily executed in sequence according to the order of arrow characterization. Unless there is a clear description in the present embodiment, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the above-mentioned flowcharts can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the steps or stages in other steps.
[0121] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as device information, device behavior data, device historical data, and device location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the disclosed embodiment will be obtained.
[0122] Reference Fig.11 , Fig.11 A schematic diagram of the structure of a communication device 1100 of an energy storage BMS provided in an embodiment of the present disclosure, wherein the communication device 1100 of the energy storage BMS includes:
[0123] The receiving module 1110 is used to receive original communication data sent by a first external device connected to the energy storage BMS, where the original communication data is data for sending to a second external device;
[0124] The protocol determination module 1120 is used to determine a first communication protocol and a second communication protocol based on the original communication data, wherein the first communication protocol is a communication protocol used by the first external device to send data, and the second communication protocol is a communication protocol used by the second external device to receive data;
[0125] A first sending module 1130, configured to send the original communication data to a second external device if the first communication protocol and the second communication protocol match;
[0126] The conversion and sending module 1140 is used to convert the original communication data into target communication data associated with the second communication protocol if the first communication protocol and the second communication protocol do not match, and send the target communication data to the second external device.
[0127] In one embodiment, the energy storage BMS includes a first chip core and a second chip core.
[0128] The first chip core is used to convert the original communication data into target communication data;
[0129] The second chip core is used to send target communication data to the second external device.
[0130] In one embodiment, the receiving module 1110 is specifically configured to:
[0131] receiving original communication data sent by a first external device connected to the energy storage BMS based on the second chip core;
[0132] The conversion and sending module 1140 is specifically used for:
[0133] converting the original communication data into target communication data associated with the second communication protocol based on the first chip core;
[0134] The target communication data is sent to the second external device based on the first chip core.
[0135] In one embodiment, the receiving module 1110 is specifically configured to:
[0136] Receiving original communication data sent by a first external device connected to the energy storage BMS based on the first chip core;
[0137] The conversion and sending module 1140 is specifically used for:
[0138] converting the original communication data into target communication data associated with the second communication protocol based on the first chip core;
[0139] transmitting target communication data from the first chip core to the second chip core;
[0140] The target communication data is sent to the second external device based on the second chip core.
[0141] In one embodiment, the first sending module 1130 is specifically configured to:
[0142] Based on the first chip core or the second chip core, the original communication data is sent to the second external device.
[0143] In one embodiment, the first sending module 1130 is specifically configured to:
[0144] In a case where the first external device is an external device of the first device type and the original communication data is received based on the second chip core, the original communication data is sent to the second external device based on the second chip core; or,
[0145] When the first external device is an external device of the second device type and the original communication data is received based on the first chip core, the original communication data is sent to the second external device based on the first chip core.
[0146] In one embodiment, the communication device of the energy storage BMS further includes:
[0147] The second sending module 1150 (not shown) is used to send an access consent response to the first external device in response to the access request of the first external device if the device identification information of the first external device is in a preset white list; or
[0148] The verification sending module 1160 (not shown) is used to initiate a device security verification for the first external device if the device identification information of the first external device is not in a preset whitelist; and after the first external device passes the device security verification, in response to the access request of the first external device, send an access consent response to the first external device.
[0149] See also Fig.12 The present disclosure also provides a hardware structure of an electronic device, the electronic device comprising:
[0150] The processor 1201 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present disclosure;
[0151] The memory 1202 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1202 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1202, and the processor 1201 calls and executes the communication method of the energy storage BMS of the embodiment of the present disclosure;
[0152] Input / output interface 1203, used to implement information input and output;
[0153] The communication interface 1204 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0154] A bus 1205 that transmits information between various components of the device (e.g., the processor 1201, the memory 1202, the input / output interface 1203, and the communication interface 1204);
[0155] The processor 1201 , the memory 1202 , the input / output interface 1203 and the communication interface 1204 are connected to each other in communication within the device via the bus 1205 .
[0156] The embodiment of the present disclosure further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the communication method of the energy storage BMS is implemented.
[0157] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0158] The embodiment of the present disclosure also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the communication method of the energy storage BMS when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0159] In combination with the electronic device in the above embodiment, an embodiment of the present application further provides a vehicle, which includes the electronic device in the above embodiment.
[0160] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0161] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0162] In the description of the present disclosure, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present disclosure. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0163] Finally, it should be noted that the above embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above embodiments, those skilled in the art should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes 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 disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A communication method for energy storage BMS, characterized in that: Applied to the energy storage BMS, the method includes: Receiving original communication data sent by a first external device connected to the energy storage BMS, wherein the original communication data is data for sending to a second external device; Determine a first communication protocol and a second communication protocol based on the original communication data, wherein the first communication protocol is a communication protocol used by the first external device to send data, and the second communication protocol is a communication protocol used by the second external device to receive data; If the first communication protocol matches the second communication protocol, sending the original communication data to the second external device; If the first communication protocol and the second communication protocol do not match, the original communication data is converted into target communication data associated with the second communication protocol, and the target communication data is sent to the second external device.
2. The communication method of energy storage BMS according to claim 1, characterized in that: The energy storage BMS includes a first chip core and a second chip core. The first chip core is used to convert the original communication data into the target communication data; The second chip core is used to send the target communication data to the second external device.
3. The communication method of energy storage BMS according to claim 2, characterized in that: The receiving of original communication data sent by a first external device connected to the energy storage BMS includes: Receiving original communication data sent by a first external device connected to the energy storage BMS based on the second chip core; The converting the original communication data into target communication data associated with the second communication protocol, and sending the target communication data to the second external device, comprises: converting the original communication data into target communication data associated with the second communication protocol based on the first chip core; The target communication data is sent to the second external device based on the first chip core.
4. The communication method of energy storage BMS according to claim 2, characterized in that: The receiving of original communication data sent by a first external device connected to the energy storage BMS includes: Receiving original communication data sent by a first external device connected to the energy storage BMS based on the first chip core; The converting the original communication data into target communication data associated with the second communication protocol, and sending the target communication data to the second external device, comprises: converting the original communication data into target communication data associated with the second communication protocol based on the first chip core; transmitting the target communication data from the first chip core to the second chip core; The target communication data is sent to the second external device based on the second chip core.
5. The communication method of energy storage BMS according to claim 2, characterized in that: In a case where the first communication protocol and the second communication protocol match, sending the original communication data to the second external device includes: Based on the first chip core or the second chip core, the original communication data is sent to the second external device.
6. The communication method of energy storage BMS according to claim 5, characterized in that: The sending the original communication data to the second external device based on the first chip core or the second chip core includes: In a case where the first external device is an external device of a first device type and the original communication data is received based on the second chip core, the original communication data is sent to the second external device based on the second chip core; or, In a case where the first external device is an external device of the second device type and the original communication data is received based on the first chip core, the original communication data is sent to the second external device based on the first chip core.
7. The communication method of energy storage BMS according to claim 1, characterized in that: Before receiving the original communication data sent by the first external device connected to the energy storage BMS, the method further includes: If the device identification information of the first external device is in a preset whitelist, in response to the access request of the first external device, sending an access consent response to the first external device; or, If the device identification information of the first external device is not in the preset whitelist, a device security check is initiated for the first external device; and after the first external device passes the device security check, in response to the access request of the first external device, an access consent response is sent to the first external device.
8. An electronic device, characterized in that: It comprises a memory and a processor, the memory stores a computer program, and the processor implements the communication method of the energy storage BMS as claimed in any one of claims 1 to 7 when executing the computer program.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the communication method of the energy storage BMS according to any one of claims 1 to 7 is implemented.
10. A vehicle, characterized in that: Comprising the electronic device as claimed in claim 8.