Message sending method and system of wireless BMS and storage medium
By initializing the wireless communication module in the wireless BMS and determining that the voltage data is stable before sending CAN messages, the problem of unstable voltage data after BPCM wake-up is solved, ensuring the validity of CAN messages.
Patent Information
- Application Number
- CN202511311382.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-12
- Publication Date
- 2025-11-18
AI Technical Summary
In existing wireless BMS technology, the BPCM sends CAN messages immediately after being woken up, which leads to unstable voltage data and invalid CAN messages.
Upon receiving the wake-up command, the wireless communication module is initialized, and real-time voltage data of the battery pack is continuously collected. The system determines whether the wireless communication module is networked with the host computer and whether the voltage data fluctuation value is stable. The system ensures that the wireless communication module is initialized and the voltage data is valid before sending CAN messages.
By waiting for the wireless communication module to initialize and ensuring that the voltage data is stable before sending CAN messages, invalid data is avoided, thus ensuring the validity of the CAN messages.
Smart Images

Figure CN120980654A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of power battery management, and in particular to a message sending method and system of wireless BMS and a storage medium. BACKGROUND
[0002] It has become the first choice for many electric devices such as automobiles and ships to use battery packs as power. Usually, during operation, the working condition of the battery pack needs to be monitored by the BPCM (Battery Pack Control Module) in the wireless BMS (Battery Management System). After the operation is completed, the BPCM will enter a sleep state to reduce power consumption. When it is operated again, the BPCM needs to be awakened.
[0003] In the current wireless BMS technology, after the BPCM is awakened, the main control module in the BPCM will immediately send a CAN (Controller Area Network) message containing voltage data to the upper computer. However, the wireless communication module in the BPCM has not been initialized after the BPCM is awakened, and the voltage data obtained by collecting the data of the battery pack immediately after the BPCM is awakened is unstable, so that the sent CAN message is invalid voltage data. Sending the CAN message immediately after the BPCM is awakened causes the problem of invalid CAN message.
[0004] Therefore, there is still an urgent need for a wireless BMS message sending method that can ensure the validity of the CAN message. SUMMARY
[0005] The main purpose of the present application is to provide a wireless BMS message sending method, system and storage medium, which solves the problem of invalid CAN message caused by sending the CAN message immediately after the BPCM is awakened.
[0006] To achieve the above purpose, the present application provides a wireless BMS message sending method for a main control module, wherein the main control module comprises a wireless communication module, and the wireless BMS message sending method comprises: initializing the wireless communication module in response to the received wake-up instruction, and continuously collecting real-time voltage data of the battery pack; determining whether the wireless communication module is networked with the upper computer within a preset time length, and determining whether the voltage fluctuation value corresponding to the plurality of continuously collected real-time voltage data is less than a preset threshold value, wherein when the wireless communication module is networked with the upper computer within the preset time length, it is determined that the wireless communication module is initialized, and when the voltage fluctuation value corresponding to the plurality of continuously collected real-time voltage data is less than the preset threshold value, it is determined that the real-time voltage data is valid. generating a CAN message containing the real-time voltage data and sending the CAN message to the host computer when the wireless communication module is initialized and the real-time voltage data is valid.
[0007] In some embodiments, the wireless communication module comprises a radio frequency front end; and the initializing the wireless communication module comprises: initializing configuration parameters of the radio frequency front end, wherein the configuration parameters comprise oscillator parameters, power amplifier parameters and filter parameters; loading a communication protocol stack and establishing a link layer connection with the host computer; performing key negotiation with the host computer to obtain a networking key and networking with the host computer according to the networking key.
[0008] In some embodiments, after the loading the communication protocol stack and establishing the link layer connection with the host computer, the method further comprises: generating a first CAN message containing the real-time voltage data; sending the first CAN message to the host computer based on the link layer connection.
[0009] In some embodiments, the generating a CAN message containing the real-time voltage data and sending the CAN message to the host computer comprises: determining whether the first CAN message is sent successfully; generating a CAN message containing the real-time voltage data and sending the CAN message to the host computer when the first CAN message is sent successfully; repeating the generating a CAN message containing the real-time voltage data and sending the CAN message to the host computer after a preset time interval.
[0010] In some embodiments, the determining whether the wireless communication module is networked with the host computer within a preset time length comprises: continuously recording an initialization time length of initializing the wireless communication module; determining whether the wireless communication module is networked with the host computer according to the networking key when the initialization time length is less than the preset time length; determining that the wireless communication module is initialized when the wireless communication module is networked with the host computer according to the networking key when the initialization time length is less than the preset time length; determining that the wireless communication module is not initialized when the wireless communication module is not networked with the host computer according to the networking key when the initialization time length is less than the preset time length.
[0011] In some embodiments, the determining whether the voltage fluctuation value corresponding to the plurality of continuously collected real-time voltage data is less than a preset threshold value comprises: calculating a fluctuation value of the plurality of continuously collected real-time voltage data to obtain a voltage fluctuation value; determining whether the voltage fluctuation value is less than the preset threshold value; if the voltage fluctuation value is less than the preset threshold value, determining that the real-time voltage data is valid; if the voltage fluctuation value is greater than or equal to the preset threshold value, determining that the real-time voltage data is invalid.
[0012] In some embodiments, after the determining that the wireless communication module is not completed initialization, the method further comprises: generating a first CAN message containing the real-time voltage data and an initialization timeout error code, wherein the initialization timeout error code is an error code used to indicate that the wireless communication module initialization timeout; based on the radio frequency front end, sending the first CAN message to the host computer.
[0013] In some embodiments, the wake-up instruction comprises: a wake-up instruction triggered by an interrupter; or a wake-up instruction triggered by a timer.
[0014] The application further provides a wireless BMS message sending system, which comprises a master control module and a host computer, the master control module is configured in a battery pack, and the wireless BMS message sending system can execute the wireless BMS message sending method in any one of the above.
[0015] The application further provides a storage medium, which stores a computer program, the computer program comprises program instructions, and the program instructions enable a processor to execute the wireless BMS message sending method in any one of the above when the program instructions are executed by the processor.
[0016] The application initializes the wireless communication module in response to the received wake-up instruction, and continuously collects real-time voltage data of the battery pack; judges whether the wireless communication module is networked with the upper computer within a preset time length, and judges whether the voltage fluctuation values corresponding to the plurality of continuously collected real-time voltage data are less than a preset threshold, wherein the wireless communication module is determined to complete initialization when the wireless communication module is networked with the upper computer within the preset time length, and the real-time voltage data is determined to be valid when the voltage fluctuation values corresponding to the plurality of continuously collected real-time voltage data are less than the preset threshold; when the wireless communication module completes initialization and the real-time voltage data is valid, a CAN message containing the real-time voltage data is generated and sent to the upper computer; by the master control module, after receiving the wake-up instruction, the CAN message is sent to the upper computer only when the wireless communication module completes initialization and the real-time voltage data is valid, so that the CAN message is avoided to be sent just after the BPCM is woken up, and the validity of the CAN message is ensured. BRIEF DESCRIPTION OF DRAWINGS
[0017] Figure 1 A flowchart of the message sending method of the wireless BMS in the embodiment of the application is shown; Figure 2 Another flowchart of the message sending method of the wireless BMS in the embodiment of the application is shown; Figure 3 Another flowchart of the message sending method of the wireless BMS in the embodiment of the application is shown; Figure 4 Another flowchart of the message sending method of the wireless BMS in the embodiment of the application is shown; Figure 5 Another flowchart of the message sending method of the wireless BMS in the embodiment of the application is shown; Figure 6 Another flowchart of the message sending method of the wireless BMS in the embodiment of the application is shown; Figure 7 Another flowchart of the message sending method of the wireless BMS in the embodiment of the application is shown; Figure 8 A structural diagram of the message sending system of the wireless BMS involved in the embodiment of the application is shown; Figure 9 A structural diagram of the message sending device of the wireless BMS involved in the embodiment of the application is shown.
[0018] The realization of the object, functional features and advantages of the application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0019] With reference to the accompanying drawings, the solutions in the embodiments of the present application will be described in detail. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of the present application.
[0020] It should be noted that all directional indications, such as upper, lower, left, right, front, back, etc., are only used to explain the relative position relationship, movement condition, etc. between components in a certain posture (as shown in the drawings), and if the certain posture changes, the directional indications will also change accordingly.
[0021] It should also be noted that when an element is referred to as being "fixed" or "set" on another element, it can be directly on the other element or can have a middle element. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or can have a middle element.
[0022] In addition, the description of "first", "second", etc. in the present application is only for the purpose of description, and cannot be understood as indicating or implying the relative importance of the indicated technical features or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first", "second" can explicitly or implicitly include at least one of the features. In addition, the technical solutions of each embodiment can be combined with each other, but it must be based on the fact that a person of ordinary skill in the art can realize it, and when the combination of technical solutions appears contradictory or unachievable, it should be considered that the combination of technical solutions does not exist, and is not within the scope of protection required by the present application.
[0023] To achieve the above object, the present application provides a wireless BMS message sending method, which is used for a master control module, the master control module comprising a wireless communication module, and the wireless BMS message sending method comprising: Step S110, in response to the received wake-up instruction, initializing the wireless communication module and continuously collecting real-time voltage data of the battery pack; Step S120, determining whether the wireless communication module is networked with the upper computer within a preset time length, and determining whether the voltage fluctuation values corresponding to the plurality of continuously collected real-time voltage data are less than a preset threshold value; Step S130, when the wireless communication module is initialized and the real-time voltage data is valid, generating a CAN message containing the real-time voltage data and sending the CAN message to the upper computer; When the wireless communication module is networked with the upper computer within the preset time length, it is determined that the wireless communication module is initialized, and when the voltage fluctuation values corresponding to the plurality of continuously collected real-time voltage data are less than the preset threshold value, it is determined that the real-time voltage data is valid.
[0024] In the embodiment, with reference to Figure 1 and Figure 8 The message sending method of the wireless BMS can be applied to a message sending system of the wireless BMS. The message sending system of the wireless BMS includes a master control module and a host computer. The master control module is configured in a battery pack, and the master control module includes a wireless communication module. The master control module communicates with the host computer wirelessly through the wireless communication module. The message sending system of the wireless BMS can further include a plurality of slave control modules. The battery pack can include a plurality of single batteries, and the plurality of slave control modules can be configured in the plurality of single batteries. The slave control module can acquire battery data of the single battery in real time. The master control module can be a master control module in a BPCM. The master control module can extract the battery data of the single battery acquired in real time by each slave control module, and then integrate the battery data of each single battery to obtain battery data of the battery pack, so as to monitor the battery pack. The host computer can be a car system. The host computer can communicate with the master control module wirelessly. In the embodiment, the execution subject of the method steps is the master control module.
[0025] It can be understood that when the battery pack is woken up to enter a working state, the master control module in the BPCM arranged on the battery pack will immediately send a CAN message containing voltage data to the host computer. However, the wireless communication module in the BPCM is not initialized immediately after the BPCM is woken up, and the voltage data obtained by data acquisition on the battery pack immediately after the battery pack is woken up is unstable, so that the CAN message sent is invalid voltage data. In addition, since the wireless communication module is not initialized, the CAN message sent by the host computer can not be received, resulting in invalid CAN message. The master control module of the present application waits until the wireless communication module is initialized and the real-time voltage data is valid before sending the CAN message to the host computer, thereby avoiding sending the CAN message immediately after the BPCM is woken up and ensuring the validity of the CAN message.
[0026] When the master control module receives the wake-up instruction, the master control module can respond to the wake-up instruction. After the master control module responds to the wake-up instruction, the master control module can initialize the wireless communication module and continuously receive the real-time voltage data collected by the slave control module. The master control module initializes the wireless communication module for communication with the host computer. The master control module initializes the wireless communication module while extracting the real-time voltage data collected by the slave control module.
[0027] After the master module initializes the wireless communication module and obtains the voltage data, it can determine whether the wireless communication module is initialized and whether the real-time voltage data is valid. The master module can determine whether the wireless communication module is initialized by determining whether the wireless communication module is connected to the host computer within a preset time period, and determine whether the real-time voltage data is valid by determining whether the voltage fluctuation values corresponding to the plurality of continuously collected real-time voltage data are less than a preset threshold.
[0028] For example, the master module can determine whether the wireless communication module is connected to the host computer within a preset time period, and if the wireless communication module is connected to the host computer within the preset time period, it is determined that the wireless communication module is initialized. If the wireless communication module is not connected to the host computer within the preset time period, it is determined that the wireless communication module is not initialized. The master module can determine whether the voltage fluctuation values corresponding to the plurality of continuously collected real-time voltage data are less than a preset threshold, and if the voltage fluctuation values corresponding to the plurality of continuously collected real-time voltage data are less than the preset threshold, it is determined that the real-time voltage data is valid. If the voltage fluctuation values corresponding to the plurality of continuously collected real-time voltage data are greater than or equal to the preset threshold, it is determined that the real-time voltage data is invalid.
[0029] When the wireless communication module is initialized and the real-time voltage data is valid, the master module generates a CAN message containing the real-time voltage data and sends the CAN message to the host computer. That is, when the wireless communication module is initialized and the real-time voltage data is valid, the master module can generate a CAN message according to the real-time voltage data obtained in real time, and then send the CAN message to the host computer.
[0030] Through the master module of the present embodiment, after receiving the wake-up instruction, the CAN message is sent to the host computer only when the wireless communication module is initialized and the real-time voltage data is valid, avoiding sending the CAN message immediately after the BPCM is woken up, and ensuring the validity of the CAN message.
[0031] In some embodiments, the aforementioned wireless communication module includes a radio frequency front end; initializing the wireless communication module includes: Step S140, initializing the configuration parameters of the radio frequency front end, wherein the configuration parameters include oscillator parameters, power amplifier parameters and filter parameters; Step S141, loading a communication protocol stack to establish a link layer connection with the host computer; Step S142, performing key negotiation with the host computer to obtain a networking key, and networking with the host computer according to the networking key.
[0032] In the present embodiment, reference is made to Figure 2The master module can initialize the configuration parameters of the radio frequency front end when initializing the wireless communication module in S110. The wireless communication module includes a radio frequency front end, which is responsible for signal reception and transmission. The master module first initializes the configuration parameters of the radio frequency front end. The configuration parameters include oscillator parameters, power amplifier parameters, and filter parameters. For example, the master module initializes the oscillator parameters to initialize the frequency offset of the oscillator caused by temperature / voltage; the master module initializes the power amplifier parameters to initialize the output power of the power amplifier; and the master module initializes the filter parameters to initialize the receive bandwidth of the filter.
[0033] After the master module initializes the configuration parameters of the radio frequency front end, it can load the communication protocol stack and establish a link layer connection with the host computer. For example, the master module loads the communication protocol stack and sends a join request message to the host computer; receives a join acceptance message fed back by the host computer according to the join request message, and then synchronizes the network time with the host computer, thereby establishing a link layer connection with the host computer.
[0034] After the master module establishes a link layer connection with the host computer, it can perform key negotiation with the host computer, thereby obtaining a networking key and networking with the host computer according to the networking key. For example, the master module and the host computer are both configured with the same key negotiation algorithm. The master module generates a first private key and a first public key based on the key negotiation algorithm, and sends the first public key to the host computer; at the same time, the host computer also generates a second private key and a second public key based on the key negotiation algorithm, and sends the second public key to the master module; after receiving the second public key, the master module can generate a networking key according to the first private key and the second public key; similarly, after receiving the first public key, the host computer can generate a networking key according to the second private key and the first public key. At this time, the master module can network with the host computer according to the networking key, thereby communicating.
[0035] In some embodiments, after the aforementioned loading of the communication protocol stack and the establishment of the link layer connection with the host computer, the method further includes: S150, generating a first CAN message containing real-time voltage data; S151, sending the first CAN message to the host computer based on the link layer connection.
[0036] In this embodiment, reference is made to Figure 3After the master module executes step S141, it can send the first CAN message to the host computer. The networking time of the wireless network is affected by environmental interference and other factors, and thus dynamically changes, for example, from 100 ms to 5 s. The master module can send the first CAN message to the host computer after establishing a link layer connection with the host computer, so as to reduce the waiting time of the host computer.
[0037] Since the master module initializes the wireless communication module at the same time as continuously receiving the real-time voltage data collected by the slave module, the master module can determine whether the real-time voltage data is valid while initializing the wireless communication module, and generate the first CAN message containing the real-time voltage data when the real-time voltage data is valid. After the master module establishes a link layer connection with the host computer and generates the first CAN message, it can send the first CAN message to the host computer based on the link layer connection.
[0038] In some embodiments, the aforementioned generation of the CAN message containing the real-time voltage data and the sending of the CAN message to the host computer include: Step S160: determining whether the sending of the first CAN message is successful; Step S161: when the sending of the first CAN message is successful, generating the CAN message containing the real-time voltage data and sending the CAN message to the host computer; Step S162: after a preset time interval, repeatedly executing the generation of the CAN message containing the real-time voltage data and the sending of the CAN message to the host computer.
[0039] In this embodiment, reference can be made to Figure 4 When the master module executes step S130, it can first determine whether the sending of the first CAN message is successful. The master module can first determine whether the sending of the first CAN message is successful, so as to prevent the subsequent sent CAN message from becoming an invalid CAN message, thereby ensuring the validity of the CAN message.
[0040] When the sending of the first CAN message is successful, the master module can generate the CAN message containing the real-time voltage data and send the CAN message to the host computer. Then, the master module can periodically send the CAN message to the host computer, so as to timely transmit the real-time state data of the battery pack to the host computer. That is, the master module repeatedly executes the generation of the CAN message containing the real-time voltage data and the sending of the CAN message to the host computer after a preset time interval. The preset time interval can be self-defined, so as to determine the sending period of the CAN message. When the sending of the first CAN message is not successful, the master module needs to wait until the sending of the first CAN message is successful, before generating the CAN message containing the real-time voltage data and sending the CAN message to the host computer.
[0041] In some embodiments, the aforementioned determining whether the wireless communication module is networked with the host computer within the preset time length comprises: Step S170, continuously recording an initialization time length of the initialization of the wireless communication module; Step S171, determining whether the wireless communication module is networked with the host computer according to the network key when the initialization time length is less than the preset time length; Step S172, if the wireless communication module is networked with the host computer according to the network key when the initialization time length is less than the preset time length, it is determined that the initialization of the wireless communication module is completed. Step S173, if the wireless communication module is not networked with the host computer according to the network key when the initialization time length is less than the preset time length, it is determined that the initialization of the wireless communication module is not completed.
[0042] In the present embodiment, referring to Figure 5 , when the master module performs the determination of whether the initialization of the wireless communication module is completed in step S120, it can determine whether the initialization is completed according to the initialization time length. The master module can continuously record the initialization time length of the initialization of the wireless communication module, thereby obtaining the initialization time length. After obtaining the initialization time length, the master module can determine whether the wireless communication module is networked with the host computer according to the network key when the initialization time length is less than the preset time length. The preset time length can be set according to the average value of the historical initialization time lengths of a plurality of historical initialization wireless communication modules.
[0043] When the wireless communication module is networked with the host computer according to the network key when the initialization time length is less than the preset time length, the master module can determine that the initialization of the wireless communication module is completed. For example, if the master module determines that the initialization time length is less than the preset time length, the wireless communication module has been networked with the host computer according to the network key, and the master module can determine that the initialization of the wireless communication module is completed.
[0044] When the wireless communication module is not networked with the host computer according to the network key when the initialization time length is less than the preset time length, the master module can determine that the initialization of the wireless communication module is not completed. For example, if the master module determines that the wireless communication module is not networked with the host computer according to the network key within the preset time length, the master module can determine that the initialization of the wireless communication module is not completed.
[0045] In some embodiments, the aforementioned determining whether the voltage fluctuation value corresponding to the plurality of continuously collected real-time voltage data is less than the preset threshold value comprises: Step S180, calculating the fluctuation value of the plurality of continuously collected real-time voltage data to obtain the voltage fluctuation value; Step S181, determining whether the voltage fluctuation value is less than the preset threshold value; Step S182, if the voltage fluctuation value is less than the preset threshold value, it is determined that the real-time voltage data is valid. Step S183, if the voltage fluctuation value is greater than or equal to the preset threshold, it is determined that the real-time voltage data is invalid.
[0046] In the embodiment, referring to Figure 6 , when the master control module determines whether the real-time voltage data is valid in step S120, the master control module can determine whether the real-time voltage data is valid according to the voltage fluctuation value. Since the master control module continuously receives the real-time voltage data collected by the slave control module, the master control module can obtain a plurality of continuously collected real-time voltage data. The master control module can calculate the fluctuation value according to the plurality of continuously collected real-time voltage data received, thereby obtaining the voltage fluctuation value. For example, the master control module can calculate the fluctuation value according to the latest 5 continuously collected real-time voltage data, such as determining 5 voltage values according to the 5 real-time voltage data, then determining the maximum voltage value and the minimum voltage value in the 5 voltage values, and finally calculating the fluctuation value according to the difference between the maximum voltage value and the minimum voltage value, thereby obtaining the voltage fluctuation value.
[0047] After the master control module obtains the voltage fluctuation value, the master control module can determine whether the voltage fluctuation value is less than the preset threshold. The preset threshold can be set by the user. For example, the preset threshold is 1 volt; the master control module can determine whether the voltage fluctuation value is less than 1 volt, thereby determining whether the plurality of continuously collected real-time voltage data is smooth.
[0048] If the master control module determines that the voltage fluctuation value is less than the preset threshold, it can be determined that the plurality of continuously collected real-time voltage data is smooth, at this time, the master control module can determine that the real-time voltage data is valid. If the master control module determines that the voltage fluctuation value is greater than or equal to the preset threshold, it can be determined that the plurality of continuously collected real-time voltage data is dramatic, at this time, the master control module can determine that the real-time voltage data is invalid.
[0049] In some embodiments, after the foregoing determination that the wireless communication module has not completed initialization, the method further comprises: Step S190, generating a first CAN message containing the real-time voltage data and an initialization timeout error code; Step S191, based on the radio frequency front end, sending the first CAN message to the upper computer; The initialization timeout error code refers to an error code used to indicate that the wireless communication module has timed out.
[0050] In the embodiment, referring to Figure 7, the master module can also send the first CAN message after performing step S173. After determining that the wireless communication module does not complete initialization, that is, the master module determines that the initialization duration is greater than or equal to the preset duration, the master module can determine that the initialization is timed out. At this time, in order to prevent the host computer from waiting for too long, the master module can generate the first CAN message containing real-time voltage data and initialization timeout error code, and then send the first CAN message to the host computer based on the radio frequency front end. The initialization timeout error code refers to an error code for indicating that the wireless communication module initialization is timed out.
[0051] The preset duration can also be set according to the tolerance threshold of the host computer, for example, the tolerance threshold of the host computer can be 500 ms. If the master module has not completed the initialization of the wireless communication module within 500 ms, the master module can send the first CAN message, and the first CAN message can include real-time voltage data and initialization timeout error code.
[0052] In some embodiments, the foregoing wake-up instruction includes: an interrupter triggered wake-up instruction; or a timer triggered wake-up instruction.
[0053] In this embodiment, the wake-up instruction received by the master module can be interrupter triggered or timer triggered. The interrupter triggered wake-up instruction can be hardware triggered or software triggered. For example, hardware triggering: the battery pack can be provided with a physical key (such as a wake-up button), and when the user presses the wake-up button, the wake-up instruction can be triggered. Software triggering: the host computer can include a display device, and the display setting can display a wake-up key, and when the user clicks the wake-up key, the wake-up instruction can be triggered. The timer triggering can be periodic triggering; for example, the timer can trigger the wake-up instruction once every certain period of time.
[0054] The master module responds to the received wake-up instruction, initializes the wireless communication module, and continuously receives real-time voltage data collected by the slave module. It is determined whether the wireless communication module completes initialization and whether the real-time voltage data is valid. When the wireless communication module completes initialization and the real-time voltage data is valid, a CAN message containing real-time voltage data is generated, and the CAN message is sent to the host computer. By the master module receiving the wake-up instruction, the CAN message is sent to the host computer only when the wireless communication module completes initialization and the real-time voltage data is valid, which avoids sending the CAN message as soon as the BPCM is woken up, and ensures the validity of the CAN message.
[0055] The application further provides a wireless BMS message sending system, which comprises a master control module and a host computer.
[0056] In the embodiment, the wireless BMS message sending system comprises a master control module and a host computer. Figure 8 The master control module is arranged in the battery pack, and the master control module comprises a wireless communication module and communicates with the host computer wirelessly through the wireless communication module. The wireless BMS message sending system can further comprise a plurality of slave control modules; the battery pack can comprise a plurality of single batteries, and the plurality of slave control modules can be arranged in the plurality of single batteries. The slave control modules can acquire battery data of the single batteries in real time. The master control module can be a master control module in a BPCM, and the master control module can extract the battery data of the single batteries acquired by the slave control modules in real time, then integrate the battery data of the single batteries to obtain battery data of the battery pack, so as to monitor the battery pack. The host computer can be a vehicle computer system, and the host computer can communicate with the master control module wirelessly.
[0057] The wireless BMS message sending device of the embodiment of the application can be a processor capable of running the wireless BMS message sending method; the processor is at least one. As shown in Figure 9 The wireless BMS message sending device can comprise a processor 1001 (for example, a CPU), a network interface 1004, a user interface 1003, a memory 1005 and a communication bus 1002. The communication bus 1002 is used to realize the connection communication among the components. The user interface 1003 can comprise a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 can further comprise a standard wired interface and a wireless interface. The network interface 1004 can optionally comprise a standard wired interface and a wireless interface (for example, a WI-FI interface). The memory 1005 can be a high-speed RAM memory or a stable memory (non-volatile memory) such as a disk memory. The memory 1005 can optionally be a storage device independent of the aforementioned processor 1001.
[0058] Those skilled in the art can understand that Figure 9 The structure of the wireless BMS message sending device shown in the above embodiment does not constitute a limitation on the wireless BMS message sending device, and can comprise more or fewer components than those shown in the figure, or combine certain components, or different component arrangements.
[0059] As shown in Figure 9As shown, the memory 1005 as a computer storage medium can include an operating system, a network communication module, a user interface module and a computer program.
[0060] In Figure 9 As shown, the network interface 1004 is mainly used for connecting a background server and communicating data with the background server, the user interface 1003 is mainly used for connecting a client (user end) and communicating data with the client, and the processor 1001 can be used for calling the computer program stored in the memory 1005, and the computer program is executed by the processor 1001 to realize the steps of the wireless BMS packet sending method.
[0061] The application further provides a storage medium, which stores a computer program, and the computer program includes program instructions, which enable a processor to execute the wireless BMS packet sending method when the program instructions are executed by the processor.
[0062] The above description is only some or preferred embodiments of the application, and neither the text nor the drawings can limit the scope of protection of the application, and any equivalent structural transformation, direct / indirect application in other related technical fields based on the content of the specification and drawings is included in the scope of protection of the application.
Claims
1. A message transmission method for a wireless BMS, used in a main control module, the main control module including a wireless communication module, characterized in that, The message transmission method of the wireless BMS includes: In response to the received wake-up command, the wireless communication module is initialized and the real-time voltage data of the battery pack is continuously collected; It is determined whether the wireless communication module has formed a network with the host computer within a preset time period, and whether the voltage fluctuation value corresponding to the multiple continuously collected real-time voltage data is less than a preset threshold. When the wireless communication module forms a network with the host computer within the preset time period, it is determined that the wireless communication module has completed initialization. When the voltage fluctuation value corresponding to the multiple continuously collected real-time voltage data is less than the preset threshold, it is determined that the real-time voltage data is valid. When the wireless communication module completes initialization and the real-time voltage data is valid, a CAN message containing the real-time voltage data is generated and sent to the host computer.
2. The message transmission method for a wireless BMS according to claim 1, characterized in that, The wireless communication module includes a radio frequency front-end; initializing the wireless communication module includes: Initialize the configuration parameters of the RF front end, wherein the configuration parameters include oscillator parameters, power amplifier parameters, and filter parameters; Load the communication protocol stack and establish a link layer connection with the host computer; The network key is obtained through key negotiation with the host computer, and the network is established with the host computer based on the network key.
3. The message transmission method for a wireless BMS according to claim 2, characterized in that, After loading the communication protocol stack and establishing a link layer connection with the host computer, the process further includes: Generate the first CAN message containing the real-time voltage data; Based on the link layer connection, the first CAN message is sent to the host computer.
4. The message transmission method of the wireless BMS according to claim 3, characterized in that, The process of generating a CAN message containing the real-time voltage data and sending the CAN message to the host computer includes: Determine whether the first CAN message was successfully sent; When the first CAN message is successfully sent, a CAN message containing the real-time voltage data is generated and sent to the host computer. After a preset time interval, the process of generating a CAN message containing the real-time voltage data is repeated, and the CAN message is sent to the host computer.
5. The message transmission method for a wireless BMS according to claim 2, characterized in that, The step of determining whether the wireless communication module has established a network with the host computer within a preset time period includes: The initialization time of the wireless communication module is continuously recorded; Determine whether the wireless communication module establishes a network with the host computer based on the network key when the initialization duration is less than the preset duration; If the wireless communication module forms a network with the host computer according to the networking key when the initialization time is less than the preset time, then it is determined that the wireless communication module has completed initialization. If the wireless communication module fails to network with the host computer according to the networking key when the initialization time is less than the preset time, it is determined that the wireless communication module has not completed initialization.
6. The message transmission method for a wireless BMS according to claim 5, characterized in that, The step of determining whether the voltage fluctuation value corresponding to the multiple continuously collected real-time voltage data is less than a preset threshold includes: The voltage fluctuation value is obtained by calculating the fluctuation value of the real-time voltage data collected in multiple consecutive transactions. Determine whether the voltage fluctuation value is less than the preset threshold; If the voltage fluctuation value is less than the preset threshold, then the real-time voltage data is determined to be valid; If the voltage fluctuation value is greater than or equal to the preset threshold, the real-time voltage data is determined to be invalid.
7. The message transmission method for a wireless BMS according to claim 5, characterized in that, After determining that the wireless communication module has not completed initialization, the process further includes: Generate a first CAN message containing the real-time voltage data and an initialization timeout error code, wherein the initialization timeout error code is an error code used to indicate that the wireless communication module has timed out. Based on the radio frequency front-end, the first CAN message is sent to the host computer.
8. The message transmission method for a wireless BMS according to claim 1, characterized in that, The wake-up command includes: An interrupt-triggered wake-up command; or, Wake-up command triggered by a timer.
9. A message transmission system for a wireless BMS, characterized in that, The wireless BMS message transmission system includes a main control module and a host computer. The main control module is configured inside the battery pack. The wireless BMS message transmission system is capable of executing the wireless BMS message transmission method according to any one of claims 1 to 8.
10. A storage medium, characterized in that, The storage medium stores a computer program, which includes program instructions that, when executed by a processor, enable the processor to perform the message transmission method of the wireless BMS according to any one of claims 1 to 8.