WO2023206471A1 - Wireless connection method for battery management device, and battery management device - Google Patents

Wireless connection method for battery management device, and battery management device Download PDF

Info

Publication number
WO2023206471A1
WO2023206471A1 PCT/CN2022/090562 CN2022090562W WO2023206471A1 WO 2023206471 A1 WO2023206471 A1 WO 2023206471A1 CN 2022090562 W CN2022090562 W CN 2022090562W WO 2023206471 A1 WO2023206471 A1 WO 2023206471A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless connection
connection
battery management
disconnection
status
Prior art date
Application number
PCT/CN2022/090562
Other languages
French (fr)
Chinese (zh)
Inventor
程康
翟江浪
Original Assignee
时代电服科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 时代电服科技有限公司 filed Critical 时代电服科技有限公司
Priority to CN202280033364.2A priority Critical patent/CN117256116A/en
Priority to PCT/CN2022/090562 priority patent/WO2023206471A1/en
Publication of WO2023206471A1 publication Critical patent/WO2023206471A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor

Abstract

Provided in the embodiments of the present application are a wireless connection method for a battery management device, and a battery management device, which can improve the connection performance of the battery management device. The wireless connection method for a battery management device comprises: performing wireless connection with or disconnection from a first device; detecting connection/disconnection state data with the first device; and according to the connection/disconnection state data, determining whether the wireless connection with or disconnection from the first device is normal. By means of the technical solution, after the battery management device is wirelessly connected to or disconnected from the first device, the battery management device detects the connection/disconnection state data between the battery management device and the first device, and determines, according to the connection/disconnection state data, whether the wireless connection/disconnection between the battery management device and the first device is normal, which facilitates the realization of the effective monitoring of a wireless connection/disconnection state between the battery management device and the first device, thereby improving the connection performance between the battery management device and the first device.

Description

电池管理设备的无线连接方法和电池管理设备Wireless connection method of battery management device and battery management device 技术领域Technical field
本申请实施例涉及电池领域,并且更具体地,涉及一种电池管理设备的无线连接方法和电池管理设备。Embodiments of the present application relate to the field of batteries, and more specifically, to a wireless connection method of a battery management device and a battery management device.
背景技术Background technique
随着时代的发展,电动汽车由于其高环保性、低噪音、使用成本低等优点,具有巨大的市场前景且能够有效促进节能减排,有利社会的发展和进步。对于电动汽车而言,电池技术是关乎其发展的一项重要因素。With the development of the times, electric vehicles have huge market prospects due to their high environmental protection, low noise, low use cost and other advantages, and can effectively promote energy conservation and emission reduction, which is beneficial to the development and progress of society. For electric vehicles, battery technology is an important factor related to their development.
目前,电池、电动车辆以及换电站等机构可配置有电池管理设备,例如:电池管理单元(Battery Manager Unit,BMU)等,该电池管理设备可与其它设备可相互连接并进行信息交互,例如,不同机构之间的电池管理设备可相互连接并进行信息交互,以便于对电池进行监控管理。在电池管理设备与其它设备的连接性能不佳的情况下,会影响该电池管理设备对电池的管理效果,产生电池的安全隐患。鉴于此,如何提高电池管理设备的连接性能,是一项亟待解决的技术问题。Currently, batteries, electric vehicles, battery swap stations and other institutions can be equipped with battery management equipment, such as battery management unit (Battery Manager Unit, BMU), etc. The battery management equipment can be connected to other equipment and exchange information, for example, Battery management devices between different organizations can be connected to each other and exchange information to facilitate battery monitoring and management. When the connection performance between the battery management device and other devices is poor, the battery management effect of the battery management device will be affected, resulting in potential safety hazards for the battery. In view of this, how to improve the connection performance of battery management equipment is an urgent technical issue that needs to be solved.
发明内容Contents of the invention
本申请实施例提供一种电池管理设备的无线连接方法和电池管理设备,能够提高电池管理设备的连接性能。Embodiments of the present application provide a wireless connection method and battery management device for a battery management device, which can improve the connection performance of the battery management device.
第一方面,提供一种电池管理设备的无线连接方法,包括:与第一设备无线连接或断开;检测与第一设备之间的连断状态数据;根据连断状态数据,判断与第一设备之间的无线连接或断开是否正常。In a first aspect, a wireless connection method for a battery management device is provided, including: wirelessly connecting or disconnecting with a first device; detecting connection status data with the first device; and determining connection status with the first device based on the connection status data. Whether the wireless connection or disconnection between devices is normal.
通过本申请实施例的技术方案,在电池管理设备与第一设备无线连接或断开后,电池管理设备检测其与第一设备之间的连断状态数据,根据该连断状态数据判断其与第一设备之间的无线连断是否正常,有利于实现对电池管理设备与第一设备之间的无线连断状态的有效监控,从而提高电池管理设备与第一设备之间的连接性能。Through the technical solutions of the embodiments of the present application, after the battery management device is wirelessly connected or disconnected from the first device, the battery management device detects the connection status data between it and the first device, and determines whether it is connected to the first device based on the connection status data. Whether the wireless connection between the first device is normal is conducive to effective monitoring of the wireless connection status between the battery management device and the first device, thereby improving the connection performance between the battery management device and the first device.
在一些可能的实施方式中,电池管理设备包括:无线连接装置;连断状态数据包括:第一状态标识,第一状态标识用于指示无线连接装置与第一设备之间相互连接或者相互断开。In some possible implementations, the battery management device includes: a wireless connection device; the connection status data includes: a first status identifier, and the first status identifier is used to indicate that the wireless connection device and the first device are connected or disconnected from each other. .
通过该实施方式的技术方案,在电池管理设备中设备无线连接装置,且利用用于指示无线连接装置与第一设备相互连接或者相互断开的第一状态标识作为连断状态数据,以判断电池管理设备与第一设备之间的无线连断是否正常,具有较高的准确度,且易于通过硬件和/或软件实现。Through the technical solution of this embodiment, a wireless connection device is installed in the battery management device, and the first status identifier used to indicate that the wireless connection device and the first device are connected to or disconnected from each other are used as connection status data to determine the battery Whether the wireless connection between the management device and the first device is normal has high accuracy and is easy to implement through hardware and/or software.
在一些可能的实施方式中,上述与第一设备无线连接或断开,包括:无线连接装置接收连断请求数据;无线连接装置根据连断请求数据,与第一设备无线连接或断开;上述检测与第一设备之间的连断状态数据,包括:无线连接装置检测第一状态标识;上述根据连断状态数据,判断与第一设备之间的无线连接或断开是否正常,包括:无线连接装置根据第一状态标识以及连断请求数据,判断与第一设备之间的无线连接或断开是否正常。In some possible implementations, the above-mentioned wireless connection or disconnection with the first device includes: the wireless connection device receives the connection request data; the wireless connection device wirelessly connects or disconnects with the first device according to the connection request data; the above-mentioned Detecting connection status data with the first device includes: the wireless connection device detects the first status identifier; judging whether the wireless connection or disconnection with the first device is normal based on the connection status data includes: wireless connection The connection device determines whether the wireless connection or disconnection with the first device is normal based on the first status identifier and the connection request data.
通过该实施方式的技术方案,无线连接装置检测用于指示与第一设备之间的连断状态的第一状态标识,且综合该第一状态标识以及连断请求数据判断与第一设备之间的无线连接或断开是否正常,有利于实现无线连接装置对与第一设备之间的无线连断状态的有效监控,从而提高电池管理设备与第一设备之间的连接性能。Through the technical solution of this embodiment, the wireless connection device detects the first state identifier used to indicate the connection state with the first device, and determines the connection with the first device based on the first state identifier and the connection request data. Whether the wireless connection or disconnection is normal is conducive to effective monitoring of the wireless connection status between the wireless connection device and the first device, thereby improving the connection performance between the battery management device and the first device.
在一些可能的实施方式中,上述无线连接装置根据第一状态标识以及连断请求数据,判断与第一设备之间的无线连接或断开是否正常,包括:无线连接装置判断第一状态标识指示的连断状态与连断请求数据指示的连断请求是否一致;在第一状态标识指示的连断状态与连断请求数据指示的连断请求一致的情况下,无线连接装置确定与第一设备之间的无线连接为正常;在第一状态标识指示的连断状态与连断请求数据指示的连断请求不一致的情况下,无线连接装置确定与第一设备之间的无线连接为异常。In some possible implementations, the wireless connection device determines whether the wireless connection or disconnection with the first device is normal based on the first status identifier and the connection request data, including: the wireless connection device determines the first status identifier indication. Whether the connection status indicated by the connection request data is consistent with the connection request indicated by the connection request data; when the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data, the wireless connection device determines that it is connected to the first device The wireless connection between the two devices is normal; when the connection state indicated by the first status identifier is inconsistent with the connection request indicated by the connection request data, the wireless connection device determines that the wireless connection with the first device is abnormal.
在该实施方式的技术方案中,通过判断第一状态标识指示的连断状态与连断请求数据指示的连断请求是否一致,从而可准确判断无线连接装置与第一设备之间的无线连接或断开是否为正常。该技术方案实施方便且准确度高,不仅能对无线连接装置与第一设备之间的无线连断的实现准确且有效的监控,还能较为方便的通过硬件和/或软件实现于无线连接装置中。In the technical solution of this embodiment, by determining whether the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data, the wireless connection or connection between the wireless connection device and the first device can be accurately determined. Is the disconnection normal? This technical solution is easy to implement and has high accuracy. It can not only accurately and effectively monitor the wireless connection between the wireless connection device and the first device, but can also be more conveniently implemented in the wireless connection device through hardware and/or software. middle.
在一些可能的实施方式中,在无线连接装置确定与第一设备之间的无线连接或断开为异常的情况下,无线连接方法还包括:无线连接装置根据连断请求数据,再至少一次执行与第一设备无线连接或断开;无线连接装置至少一次检测第一状态标识,直至执行次数到达预设数量或第一状态标识指示的连断状态与连断请求数据指示的连断请求一致。In some possible implementations, when the wireless connection device determines that the wireless connection or disconnection with the first device is abnormal, the wireless connection method further includes: the wireless connection device performs at least one execution based on the connection request data. Wirelessly connect or disconnect with the first device; the wireless connection device detects the first status identifier at least once until the number of executions reaches a preset number or the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data.
通过该实施方式的技术方案,在无线连接装置与第一设备之间的无线连断存在异常的情况下,无线连接装置自身能够对该异常进行修复,以使得其与第一设备之间的无线连断恢复到正常状态,从而进一步提高电池管理设备与第一设备之间的连接可靠性。或者,在无线连接装置重复执行与第一设备的无线连断动作达到预设次数,且无法对该异常进行修复的情况下,该无线连接装置不会再继续重复执行与第一设备的无线连断动作,造成系统资源浪费,也能在一定程度上优化电池管理设备的整体性能。Through the technical solution of this embodiment, when there is an abnormality in the wireless connection between the wireless connection device and the first device, the wireless connection device itself can repair the abnormality, so that the wireless connection between it and the first device The connection is restored to the normal state, thereby further improving the connection reliability between the battery management device and the first device. Alternatively, when the wireless connection device repeatedly performs the wireless connection operation with the first device for a preset number of times and the abnormality cannot be repaired, the wireless connection device will not continue to repeatedly perform the wireless connection with the first device. Intermittent actions result in a waste of system resources and can also optimize the overall performance of the battery management device to a certain extent.
在一些可能的实施方式中,无线连接装置包括结构体模块和/或非易失性存储模块;其中,在无线连接装置接收连断请求数据之后,无线连接方法还包括:无线连接装置将连断请求数据存储至结构体模块和/或非易失性存储模块。In some possible implementations, the wireless connection device includes a structure module and/or a non-volatile storage module; wherein, after the wireless connection device receives the connection request data, the wireless connection method further includes: the wireless connection device will disconnect Request data to be stored in the structure module and/or non-volatile storage module.
通过该实施方式的技术方案,在无线连接装置在接收连断请求数据后,可以将该连断请求数据写入内存中的结构体模块,以便于后续过程中,能够快速的对该结构 体模块中的连断请求数据进行读写,并根据该连断请求数据对连接故障进行修复,提高无线连接装置与第一设备的连接可靠性。另外,在无线连接装置在接收连断请求数据后,也可以将该连断请求数据存储至非易失性存储模块中,从而防止掉电等外部原因造成连断请求数据的丢失,保障后续无线连接装置对于与第一设备的连断状态的监控性能,从而进一步提升电池管理设备与第一设备之间的连接可靠性。Through the technical solution of this embodiment, after the wireless connection device receives the connection request data, the connection request data can be written into the structure module in the memory, so that the structure module can be quickly accessed in the subsequent process. The connection request data in the wireless connection device is read and written, and the connection fault is repaired according to the connection request data, thereby improving the connection reliability between the wireless connection device and the first device. In addition, after the wireless connection device receives the connection request data, it can also store the connection request data in a non-volatile storage module, thereby preventing the loss of the connection request data caused by external reasons such as power outage and ensuring subsequent wireless connection. The connection device monitors the connection status with the first device, thereby further improving the connection reliability between the battery management device and the first device.
在一些可能的实施方式中,在检测第一状态标识之后,该无线连接方法还包括:将第一状态标识写入结构体模块和/或非易失性存储模块。In some possible implementations, after detecting the first status identifier, the wireless connection method further includes: writing the first status identifier into the structure module and/or the non-volatile storage module.
通过该实施方式的技术方案,在无线连接装置检测第一状态标识之后,同样可以将该第一状态标识写入内存中的结构体模块,以便于后续过程中,能够快速的对该结构体模块中的第一状态标识进行读写,并根据该第一状态标识实现对无线连接装置与第一设备之间连断状态的监控,提高无线连接装置与第一设备之间的连断状态的监控效率。另外,在无线连接装置检测第一状态标识之后,也可以将该第一状态标识写入非易失性存储模块中,防止掉电等外部原因造成第一状态标识的丢失,保障无线连接装置对于与第一设备之间的连断状态的监控性能。Through the technical solution of this embodiment, after the wireless connection device detects the first status identifier, the first status identifier can also be written into the structure module in the memory, so that the structure module can be quickly updated in the subsequent process. Read and write the first status identifier in the device, and monitor the connection and disconnection status between the wireless connection device and the first device according to the first status ID, thereby improving the monitoring of the connection and disconnection status between the wireless connection device and the first device. efficiency. In addition, after the wireless connection device detects the first status identifier, the first status identifier can also be written into the non-volatile storage module to prevent the loss of the first status identifier caused by external reasons such as power outage and ensure that the wireless connection device can Monitoring performance of the connection status with the first device.
在一些可能的实施方式中,在无线连接装置将连断请求数据存储至非易失性存储模块之后,无线连接方法还包括:在电池管理设备断电且重新上电后,无线连接装置从非易失性存储模块中读取连断请求数据;无线连接装置根据连断请求数据,再次与第一设备无线连接或断开。In some possible implementations, after the wireless connection device stores the connection request data in the non-volatile storage module, the wireless connection method further includes: after the battery management device is powered off and powered on again, the wireless connection device never The connection request data is read from the volatile storage module; the wireless connection device wirelessly connects or disconnects with the first device again according to the connection request data.
通过该实施方式的技术方案,无线连接装置中可设置非易失性存储(NVM)模块,当无线连接装置接收连断请求数据后,可同步将该连断请求数据存储至该NVM模块中,在电池管理设备断电且重新上电后,无线连接装置可从该NVM模块中读取连断请求数据,且根据该连断请求数据自动重新实现与第一设备之间的无线连断,消除电池管理设备断电对电池管理设备与第一设备之间的无线连断的影响,从而提高电池管理设备与第一设备之间的连接性能。Through the technical solution of this embodiment, a non-volatile memory (NVM) module can be provided in the wireless connection device. After the wireless connection device receives the connection request data, the connection request data can be synchronously stored in the NVM module. After the battery management device is powered off and powered on again, the wireless connection device can read the connection request data from the NVM module, and automatically re-establish the wireless connection with the first device based on the connection request data, eliminating the need for The power outage of the battery management device affects the wireless connection between the battery management device and the first device, thereby improving the connection performance between the battery management device and the first device.
在一些可能的实施方式中,在无线连接装置将第一状态标识存储至非易失性存储模块之后,无线连接方法还包括:在电池管理设备断电且重新上电后,无线连接装置从非易失性存储模块中读取第一状态标识;其中,无线连接装置根据连断请求数据,再次与第一设备无线连接或断开,包括:无线连接装置根据连断请求数据与第一状态标识,再次与第一设备无线连接或断开。In some possible implementations, after the wireless connection device stores the first status identifier in the non-volatile storage module, the wireless connection method further includes: after the battery management device is powered off and powered on again, the wireless connection device is powered on from the non-volatile storage module. The first state identifier is read from the volatile storage module; wherein the wireless connection device wirelessly connects or disconnects with the first device again according to the connection request data, including: the wireless connection device according to the connection request data and the first state identifier , connect or disconnect wirelessly to the first device again.
通过该实施方式的技术方案,在电池管理设备断电且重新上电后,无线连接装置可以从NVM模块中读取该第一状态标识以及连断请求数据,并根据该第一状态标识以及连断请求数据自动重新实现与第一设备之间的无线连断。因此,通过该技术方案,在能够自动消除电池管理设备断电对电池管理设备与第一设备之间的无线连断的影响的同时,还能够提高无线连接装置自动重新实现与第一设备之间的无线连断的可靠性,从而进一步提高电池管理设备与第一设备之间的连接性能。Through the technical solution of this embodiment, after the battery management device is powered off and powered on again, the wireless connection device can read the first status identifier and connection request data from the NVM module, and use the first status identifier and connection request data based on the first status identifier and connection request data. The wireless connection with the first device is automatically re-established based on the disconnection request data. Therefore, through this technical solution, the impact of the power outage of the battery management device on the wireless connection between the battery management device and the first device can be automatically eliminated, and at the same time, it can also improve the automatic re-implementation of the wireless connection device and the first device. The reliability of the wireless connection is improved, thereby further improving the connection performance between the battery management device and the first device.
在一些可能的实施方式中,在电池管理设备断电且重新上电后,无线连接装置从非易失性存储模块中读取的连断请求数据为连接请求数据;其中,无线连接装置根据连断请求数据与第一状态标识,与第一设备无线连接或断开,包括:判断第一状态 标识指示的连断状态是否为连接;在第一状态标识指示的连断状态为连接的情况下,根据连接请求数据,再次与第一设备无线连接。In some possible implementations, after the battery management device is powered off and on again, the connection request data read by the wireless connection device from the non-volatile storage module is connection request data; wherein the wireless connection device reads the connection request data according to the connection request data. The disconnection request data and the first status identifier are used to wirelessly connect or disconnect with the first device, including: determining whether the connection state indicated by the first status identifier is connected; when the connection state indicated by the first status identifier is connected , wirelessly connect with the first device again according to the connection request data.
通过该实施方式的技术方案,在第一状态标识指示的连断状态为连接的情况下,说明在电池管理设备断电之前,无线连接装置与第一设备相互连接。此时,无线连接装置再根据连断请求数据,执行与第一设备的无线连接,能够提高无线连接装置与第一设备重连的可靠性,使得无线连接装置与第一设备之间的状态恢复至电池管理设备断电之前。Through the technical solution of this embodiment, when the connection state indicated by the first status indicator is connected, it means that the wireless connection device and the first device are connected to each other before the battery management device is powered off. At this time, the wireless connection device then performs a wireless connection with the first device according to the connection request data, which can improve the reliability of reconnection between the wireless connection device and the first device and restore the state between the wireless connection device and the first device. until the battery management device is powered off.
在一些可能的实施方式中,连断状态数据还包括:第一信息标识,第一信息标识用于指示无线连接装置与第一设备无线连接或断开的执行情况;其中,检测与第一设备之间的连断状态数据,包括:无线连接装置检测第一信息标识;根据连断状态数据,判断与第一设备之间的无线连接或断开是否正常,包括:无线连接装置根据第一信息标识,判断与第一设备之间的无线连接或断开是否正常。In some possible implementations, the connection status data also includes: a first information identifier, the first information identifier is used to indicate the execution status of wireless connection or disconnection between the wireless connection device and the first device; wherein, detecting the connection with the first device The connection status data between the two devices includes: the wireless connection device detects the first information identifier; and based on the connection status data, determines whether the wireless connection or disconnection with the first device is normal, including: the wireless connection device detects the first information according to the connection status data. mark, and determine whether the wireless connection or disconnection with the first device is normal.
通过该实施方式的技术方案,无线连接装置检测用于指示与第一设备无线连接或断开的执行情况的第一信息标识,且根据该第一信息标识判断与第一设备之间的无线连接或断开是否正常,有利于实现无线连接装置对与第一设备之间的无线连断状态的有效监控,从而提高电池管理设备与第一设备之间的连接性能。Through the technical solution of this embodiment, the wireless connection device detects the first information identifier used to indicate the execution status of wireless connection or disconnection with the first device, and determines the wireless connection with the first device based on the first information identifier Or whether the disconnection is normal, it is helpful to realize the effective monitoring of the wireless connection status between the wireless connection device and the first device, thereby improving the connection performance between the battery management device and the first device.
在一些可能的实施方式中,第一信息标识用于指示与第一设备无线连接或断开的执行是否完成;其中,无线连接装置根据第一信息标识,判断与第一设备之间的无线连接或断开是否正常,包括:无线连接装置根据第一信息标识,判断与第一设备无线连接或断开的执行是否完成;在与第一设备无线连接或断开未执行完成的情况下,无线连接装置确定与第一设备之间的无线连接或断开为异常;在与第一设备无线连接或断开执行完成的情况下,无线连接装置确定与第一设备之间的无线连接或断开为正常。In some possible implementations, the first information identifier is used to indicate whether the execution of wireless connection or disconnection with the first device is completed; wherein the wireless connection device determines the wireless connection with the first device according to the first information identifier. Or whether the disconnection is normal, including: the wireless connection device determines whether the execution of wireless connection or disconnection with the first device is completed according to the first information identifier; when the wireless connection or disconnection with the first device is not completed, the wireless connection device determines whether the wireless connection or disconnection with the first device is completed. The connection device determines that the wireless connection or disconnection with the first device is abnormal; when the wireless connection or disconnection with the first device is completed, the wireless connection device determines the wireless connection or disconnection with the first device is normal.
在该实施方式的技术方案中,通过第一信息标识,判断与第一设备无线连接或断开的执行是否完成,可以辅助判断无线连接装置与第一设备之间的无线连接或断开是否为正常。该技术方案在能够提升无线连接装置与第一设备之间连接性能的同时,能够较为方便的通过硬件和/或软件实现于无线连接装置中。In the technical solution of this embodiment, the first information identifier is used to determine whether the wireless connection or disconnection with the first device is completed, which can assist in determining whether the wireless connection or disconnection between the wireless connection device and the first device is normal. While this technical solution can improve the connection performance between the wireless connection device and the first device, it can be more conveniently implemented in the wireless connection device through hardware and/or software.
在一些可能的实施方式中,在无线连接装置确定与第一设备之间的无线连接或断开为异常的情况下,无线连接方法还包括:无线连接装置再至少一次执行与第一设备无线连接或断开;无线连接装置再至少一次检测第一信息标识,直至第一信息标识指示与第一设备无线连接或断开执行完成。In some possible implementations, when the wireless connection device determines that the wireless connection or disconnection with the first device is abnormal, the wireless connection method further includes: the wireless connection device performs the wireless connection with the first device at least once or disconnected; the wireless connection device detects the first information identifier at least once again until the first information identifier indicates that the wireless connection or disconnection with the first device is completed.
通过该实施方式的技术方案,在无线连接装置与第一设备之间的无线连断存在异常的情况下,无线连接装置自身能够对该异常进行修复,以使得其与第一设备之间的无线连断恢复到正常状态,从而进一步提高电池管理设备与第一设备之间的连接可靠性。Through the technical solution of this embodiment, when there is an abnormality in the wireless connection between the wireless connection device and the first device, the wireless connection device itself can repair the abnormality, so that the wireless connection between it and the first device The connection is restored to the normal state, thereby further improving the connection reliability between the battery management device and the first device.
在一些可能的实施方式中,无线连接装置包括:状态机模块和无线通信协议栈模块;其中,根据连断请求数据,与第一设备无线连接或断开,包括:状态机模块根据连断请求数据,调用无线通信协议栈模块;无线通信协议栈模块执行与第一设备无 线连接或断开,以形成第一信息标识,其中,第一信息标识用于指示无线通信协议栈模块与第一设备无线连接或断开的执行情况。In some possible implementations, the wireless connection device includes: a state machine module and a wireless communication protocol stack module; wherein, wirelessly connecting or disconnecting with the first device according to the connection request data includes: the state machine module according to the connection request data, calling the wireless communication protocol stack module; the wireless communication protocol stack module performs wireless connection or disconnection with the first device to form a first information identifier, where the first information identifier is used to indicate that the wireless communication protocol stack module and the first device Implementation of wireless connection or disconnection.
通过该实施方式的技术方案,无线连接装置可包括多个软件模块,其中,不同软件模块用于执行不同功能,且能够相互配合。利用无线通信协议栈模块具体实现执行与第一设备无线连接或断开,易于对无线通信协议栈模块的执行动作进行监控且生成第一信息标识,该第一信息标识能够准确反映无线连接装置与第一设备无线连接或断开的执行情况。Through the technical solution of this embodiment, the wireless connection device may include multiple software modules, where different software modules are used to perform different functions and can cooperate with each other. Utilizing the wireless communication protocol stack module to specifically implement wireless connection or disconnection with the first device, it is easy to monitor the execution actions of the wireless communication protocol stack module and generate a first information identifier, which can accurately reflect the relationship between the wireless connection device and the first device. The first device performs wireless connection or disconnection.
在一些可能的实施方式中,在与第一设备无线连接之后,无线连接方法还包括:无线连接装置执行与第一设备的主从认证。In some possible implementations, after wirelessly connecting with the first device, the wireless connection method further includes: the wireless connection device performing master-slave authentication with the first device.
通过该实施方式的技术方案,无线连接装置执行与第一设备的主从认证,以判断无线连接装置与第一设备之间是否能够相互适配,从而保证无线连接装置与第一设备之间后续正常的数据传输,提高系统鲁棒性。Through the technical solution of this embodiment, the wireless connection device performs master-slave authentication with the first device to determine whether the wireless connection device and the first device can adapt to each other, thereby ensuring the subsequent communication between the wireless connection device and the first device. Normal data transmission improves system robustness.
在一些可能的实施方式中,无线连接装置执行与第一设备的主从认证,包括:无线连接装置接收第一设备发送的第一报文以及第一随机数,第一报文用于指示第一设备的主从认证;无线连接装置对第一随机数执行算法处理,得到第一目标数;无线连接装置向第一设备发送匹配于第一报文的第二报文以及第一目标数,以使得第一设备识别第二报文,并对第一目标数进行算法检查,确定主从认证的结果。In some possible implementations, the wireless connection device performs master-slave authentication with the first device, including: the wireless connection device receives a first message and a first random number sent by the first device, and the first message is used to indicate the Master-slave authentication of a device; the wireless connection device performs algorithm processing on the first random number to obtain the first target number; the wireless connection device sends a second message matching the first message and the first target number to the first device, So that the first device recognizes the second message, performs an algorithm check on the first target number, and determines the result of the master-slave authentication.
通过该实施方式的技术方案,无线连接装置与第一设备之间通过报文以及数据的交互实现主从认证过程,可以具有较高的准确度,也便于无线连接装置与第一设备内部的软件和/或硬件对该主从认证过程进行实现。Through the technical solution of this embodiment, the master-slave authentication process is realized through the interaction of messages and data between the wireless connection device and the first device, which can achieve higher accuracy and facilitate the internal software of the wireless connection device and the first device. And/or hardware implements the master-slave authentication process.
在一些可能的实施方式中,电池管理设备包括:控制装置,控制装置连接于无线连接装置;其中,检测与第一设备之间的连断状态数据,包括:控制装置检测无线连接装置的第一状态标识;根据连断状态数据,判断与第一设备之间的无线连接或断开是否正常,包括:控制装置根据第一状态标识,判断无线连接装置与第一设备之间的无线连接或断开是否正常。In some possible implementations, the battery management device includes: a control device connected to the wireless connection device; wherein detecting the connection status data with the first device includes: the control device detects the first connection status of the wireless connection device. Status identification; judging whether the wireless connection or disconnection with the first device is normal according to the connection status data, including: the control device judging the wireless connection or disconnection between the wireless connection device and the first device according to the first status identification. Is it normal to open?
通过该实施方式的技术方案,不需要对电池管理设备的现有硬件进行改动,在电池管理设备中增加无线连接装置,且通过控制装置对该无线连接装置进行控制即可实现电池管理设备与第一设备之间的无线连接,该无线连接方式的实现较为简单,能够兼容现有产品。另外,电池管理设备的控制装置能够对无线连接装置的第一状态标识进行检测,并根据该第一状态标识判断无线连接装置与第一设备之间的无线连接或断开是否正常,有利于实现对电池管理设备与第一设备之间无线连断的有效监控,从而提高电池管理设备与第一设备之间的连接性能。Through the technical solution of this embodiment, there is no need to modify the existing hardware of the battery management device. A wireless connection device is added to the battery management device, and the wireless connection device is controlled by the control device to realize the integration of the battery management device with the third device. Wireless connection between devices, this wireless connection method is relatively simple to implement and can be compatible with existing products. In addition, the control device of the battery management device can detect the first status identifier of the wireless connection device, and determine whether the wireless connection or disconnection between the wireless connection device and the first device is normal based on the first status identifier, which is beneficial to implementation Effectively monitor the wireless connection between the battery management device and the first device, thereby improving the connection performance between the battery management device and the first device.
在一些可能的实施方式中,与第一设备无线连接或断开,包括:控制装置获取连断请求命令,连断请求命令用于指示电池管理设备与第一设备之间的无线连接或断开;控制装置将基于第一通信协议的连断请求命令转换为基于第二通信协议的连断请求数据,其中,第一通信协议与第二通信协议不同;向无线连接装置发送连断请求数据,以使得无线连接装置根据连断请求数据与第一设备无线连接或断开。In some possible implementations, wirelessly connecting or disconnecting with the first device includes: the control device obtains a connection request command, and the connection request command is used to instruct the wireless connection or disconnection between the battery management device and the first device. ; The control device converts the connection request command based on the first communication protocol into connection request data based on the second communication protocol, where the first communication protocol is different from the second communication protocol; sending the connection request data to the wireless connection device, So that the wireless connection device can wirelessly connect or disconnect with the first device according to the connection request data.
通过该实施方式的技术方案,控制装置可以接收基于第一通信协议的连断请求 命令,且向无线连接装置发送基于第二通信协议的连断请求数据。该控制装置与外部设备可以基于第一通信协议相互通信,而控制装置与无线连接装置之间可以基于第二通信协议相互通信。因此,该控制装置可以针对不同的装置或设备使用不同的通信协议,优化控制装置与其它设备之间的通信性能,提升电池管理设备整体的通信性能。Through the technical solution of this embodiment, the control device can receive the connection request command based on the first communication protocol, and send the connection request data based on the second communication protocol to the wireless connection device. The control device and the external device can communicate with each other based on the first communication protocol, and the control device and the wireless connection device can communicate with each other based on the second communication protocol. Therefore, the control device can use different communication protocols for different devices or equipment, optimizing the communication performance between the control device and other devices, and improving the overall communication performance of the battery management device.
在一些可能的实施方式中,控制装置根据第一状态标识,判断无线连接装置与第一设备之间的无线连接或断开是否正常,包括:控制装置根据第一状态标识和连断请求数据,判断无线连接装置与第一设备之间的无线连接或断开是否正常。In some possible implementations, the control device determines whether the wireless connection or disconnection between the wireless connection device and the first device is normal based on the first status identifier, including: the control device determines whether the wireless connection or disconnection between the wireless connection device and the first device is normal based on the first status identifier and the connection request data, Determine whether the wireless connection or disconnection between the wireless connection device and the first device is normal.
相比于仅根据无线连接装置的第一状态标识判断电池管理设备与第一设备之间的无线连接或断开是否正常的技术方案,通过本实施方式的技术方案,综合第一状态标识和连断请求数据两种数据,判断无线连接装置及其所在的电池管理设备与第一设备之间的无线连接或断开是否正常,能够进一步提高判断的准确性。因此,通过本实施方式的技术方案,能够更为有效的实现对电池管理设备与第一设备之间的无线连断的监控,从而提高电池管理设备与第一设备之间的连接性能。Compared with the technical solution that only determines whether the wireless connection or disconnection between the battery management device and the first device is normal based on the first status identification of the wireless connection device, through the technical solution of this embodiment, the first status identification and the connection are combined. The two types of data, disconnection request data, are used to determine whether the wireless connection or disconnection between the wireless connection device and the battery management device where it is located and the first device is normal, which can further improve the accuracy of the judgment. Therefore, through the technical solution of this embodiment, the wireless connection monitoring between the battery management device and the first device can be more effectively implemented, thereby improving the connection performance between the battery management device and the first device.
在一些可能的实施方式中,控制装置根据第一状态标识和连断请求数据,判断无线连接装置与第一设备之间的无线连接或断开是否正常,包括:控制装置判断第一状态标识指示的连断状态与连断请求数据指示的连断请求是否一致;在第一状态标识指示的连断状态与连断请求数据指示的连断请求一致的情况下,控制装置确定无线连接装置与第一设备之间的无线连接或断开为正常;在第一状态标识指示的连断状态与连断请求数据指示的连断请求不一致的情况下,控制装置确定无线连接装置与第一设备之间的无线连接或断开为异常。In some possible implementations, the control device determines whether the wireless connection or disconnection between the wireless connection device and the first device is normal based on the first status identifier and the connection request data, including: the control device determines the first status identifier indication. Whether the connection status indicated by the connection request data is consistent with the connection request indicated by the connection request data; when the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data, the control device determines that the wireless connection device is connected to the third connection request data. The wireless connection or disconnection between a device is normal; when the connection state indicated by the first status identifier is inconsistent with the connection request indicated by the connection request data, the control device determines the connection between the wireless connection device and the first device. The wireless connection or disconnection is abnormal.
在该实施方式的技术方案中,通过判断第一状态标识指示的连断状态与连断请求数据指示的连断请求是否一致,从而可准确判断无线连接装置及其所在的电池管理设备与第一设备之间的无线连接或断开是否为正常。该技术方案实施方便且准确度高,不仅能对电池管理设备与第一设备之间的无线连断实现准确且有效的监控,还能较为方便的通过硬件和/或软件实现于控制装置中。In the technical solution of this embodiment, by determining whether the connection state indicated by the first status identifier is consistent with the connection request indicated by the connection request data, it is possible to accurately determine whether the wireless connection device and the battery management device where it is located are consistent with the first connection request. Whether the wireless connection or disconnection between devices is normal. This technical solution is easy to implement and has high accuracy. It can not only accurately and effectively monitor the wireless connection between the battery management device and the first device, but can also be easily implemented in the control device through hardware and/or software.
在一些可能的实施方式中,在控制装置确定无线连接装置与第一设备之间的无线连接或断开为异常的情况下,无线连接方法还包括:控制装置根据连断请求命令,控制无线连接装置至少一次与第一设备无线连接或断开;控制装置至少一次检测无线连接装置的第一状态标识,直至确定无线连接装置与第一设备之间的无线连接或断开正常。In some possible implementations, when the control device determines that the wireless connection or disconnection between the wireless connection device and the first device is abnormal, the wireless connection method further includes: the control device controls the wireless connection according to the connection request command. The device is wirelessly connected or disconnected with the first device at least once; the control device detects the first status identifier of the wireless connection device at least once until it is determined that the wireless connection or disconnection between the wireless connection device and the first device is normal.
通过该实施方式的技术方案,在无线连接装置与第一设备之间的无线连断存在异常的情况下,控制装置能够对该异常进行修复,以使得电池管理设备与第一设备之间的无线连断恢复到正常状态,从而进一步提高电池管理设备与第一设备之间的连接可靠性。Through the technical solution of this embodiment, when there is an abnormality in the wireless connection between the wireless connection device and the first device, the control device can repair the abnormality, so that the wireless connection between the battery management device and the first device The connection is restored to the normal state, thereby further improving the connection reliability between the battery management device and the first device.
在一些可能的实施方式中,控制装置包括非易失性存储模块,在控制装置将连断请求命令转换为连断请求数据之后,无线连接方法还包括:控制装置将连断请求数据存储于非易失性存储模块。In some possible implementations, the control device includes a non-volatile storage module. After the control device converts the connection request command into connection request data, the wireless connection method further includes: the control device stores the connection request data in a non-volatile storage module. Volatile memory module.
通过该实施方式的技术方案,可以防止掉电等外部原因造成连断请求数据丢失, 保障后续控制装置对无线连接装置与第一设备的无线连断异常判断的进行,从而进一步提升电池管理设备与第一设备之间的连接性能。Through the technical solution of this embodiment, it is possible to prevent the loss of connection request data caused by external reasons such as power outages, and ensure that the subsequent control device can judge the abnormality of the wireless connection between the wireless connection device and the first device, thereby further improving the connection between the battery management equipment and the first device. The connection performance between the first devices.
在一些可能的实施方式中,与第一设备无线连接或断开,包括:与第一设备蓝牙连接或断开。In some possible implementations, wirelessly connecting or disconnecting with the first device includes: connecting or disconnecting with the first device via Bluetooth.
在该实施方式的技术方案中,电池管理设备可以通过蓝牙通信协议与第一设备进行蓝牙连断进而实现后续的数据通信。该蓝牙连断的实现方式可以具有低功耗、低延时、低成本的特点,因而较为适宜的设置于车辆和/或换电站中,实现短距离、低成本的可靠通信。In the technical solution of this embodiment, the battery management device can perform Bluetooth connection and disconnection with the first device through the Bluetooth communication protocol to achieve subsequent data communication. This implementation method of Bluetooth connection can have the characteristics of low power consumption, low delay, and low cost, so it is more suitable to be installed in vehicles and/or battery swap stations to achieve short-distance, low-cost and reliable communication.
在一些可能的实施方式中,电池管理设备为用电设备中的主电池管理单元MBMU,第一设备为用电设备中的从电池管理单元SBMU;或,电池管理设备为换电设备中的充电电池管理单元CBMU,第一设备为换电设备中的从电池管理单元SBMU;或,电池管理设备为换电设备中的换电电池管理单元TBMU,第一设备为用电设备中的主电池管理单元MBMU。In some possible implementations, the battery management device is the master battery management unit MBMU in the powered device, and the first device is the slave battery management unit SBMU in the powered device; or, the battery management device is the charger in the power replacement device. The battery management unit CBMU, the first device is the slave battery management unit SBMU in the power replacement device; or the battery management device is the power replacement battery management unit TBMU in the power replacement device, and the first device is the master battery management unit in the power consumption device. Unit MBMU.
在该实施方式的技术方案中,电池管理设备可以为多种类型,且应用于不同场景下。通过该方案,可以实现TBMU与MBMU之间较为稳定的无线连断,和/或,实现CBMU/MBMU与SBMU之间较为稳定的无线连断,从而简化用电设备和/或换电设备中多种电池管理设备之间的连接方式,提高整个系统的连接稳定性以及鲁棒性。In the technical solution of this embodiment, the battery management device can be of multiple types and applied in different scenarios. Through this solution, a relatively stable wireless connection between TBMU and MBMU can be achieved, and/or a relatively stable wireless connection between CBMU/MBMU and SBMU can be achieved, thereby simplifying many aspects of power consumption equipment and/or power replacement equipment. A connection method between battery management devices to improve the connection stability and robustness of the entire system.
第二方面,提供一种电池管理设备,包括:无线连接装置,该无线连接装置包括:第一连断模块,用于与第一设备无线连接或断开;第一检测模块,用于检测与第一设备之间的连断状态数据;第一处理模块,用于根据连断状态数据,判断与第一设备之间的无线连接或断开是否正常。In a second aspect, a battery management device is provided, including: a wireless connection device. The wireless connection device includes: a first connection and disconnection module for wirelessly connecting or disconnecting with the first device; a first detection module for detecting and The connection status data between the first devices; the first processing module is used to determine whether the wireless connection or disconnection with the first device is normal based on the connection status data.
在一些可能的实施方式中,电池管理设备还包括:控制装置,控制装置连接于无线连接装置,且控制装置包括:第二检测模块,用于检测无线连接装置的第一状态标识;第二处理模块,用于根据第一状态标识,判断无线连接装置与第一设备之间的无线连接或断开是否正常。In some possible implementations, the battery management device further includes: a control device, the control device is connected to the wireless connection device, and the control device includes: a second detection module, used to detect the first status identifier of the wireless connection device; a second process A module configured to determine whether the wireless connection or disconnection between the wireless connection device and the first device is normal according to the first status identifier.
第三方面,提供一种电池管理设备,包括:处理器和存储器,存储器用于存储程序,处理器用于从存储器中调用并运行程序以执行上述第一方面或第一方面中任一可能的实施方式中的无线连接方法。In a third aspect, a battery management device is provided, including: a processor and a memory, the memory is used to store a program, and the processor is used to call and run the program from the memory to execute the above first aspect or any possible implementation of the first aspect. wireless connection method.
第四方面,提供一种电子设备,包括:上述第二方面或第三方面中的电池管理设备。A fourth aspect provides an electronic device, including: the battery management device in the above second or third aspect.
在一些可能的实施方式中,电子设备为用电设备或换电设备。In some possible implementations, the electronic device is a power consumption device or a power exchange device.
通过本申请实施例的技术方案,在电池管理设备与第一设备无线连接或断开后,电池管理设备检测其与第一设备之间的连断状态数据,根据该连断状态数据判断其与第一设备之间的无线连断是否正常,有利于实现对电池管理设备与第一设备之间的无线连断状态的有效监控,从而提高电池管理设备与第一设备之间的连接性能。Through the technical solutions of the embodiments of the present application, after the battery management device is wirelessly connected or disconnected from the first device, the battery management device detects the connection status data between it and the first device, and determines whether it is connected to the first device based on the connection status data. Whether the wireless connection between the first device is normal is conducive to effective monitoring of the wireless connection status between the battery management device and the first device, thereby improving the connection performance between the battery management device and the first device.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the drawings required to be used in the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. Those of ordinary skill in the art can also obtain other drawings based on the drawings without exerting creative efforts.
图1是本申请一实施例适用的一种车辆的示意性结构框图;Figure 1 is a schematic structural block diagram of a vehicle applicable to an embodiment of the present application;
图2是本申请一实施例适用的一种换电站的示意性结构框图;Figure 2 is a schematic structural block diagram of a power swap station applicable to an embodiment of the present application;
图3是本申请一实施例提供的一种电池管理设备的无线连接方法的示意性流程框图;Figure 3 is a schematic flow diagram of a wireless connection method for a battery management device provided by an embodiment of the present application;
图4是本申请一实施例提供的一种电池管理设备的示意性结构框图;Figure 4 is a schematic structural block diagram of a battery management device provided by an embodiment of the present application;
图5是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 5 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图6是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 6 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图7是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 7 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图8是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 8 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图9是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 9 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图10是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 10 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图11是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 11 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图12是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 12 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图13是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 13 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图14是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 14 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图15是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 15 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图16是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 16 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图17是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 17 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图18是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 18 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图19是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 19 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图20是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 20 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图21是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 21 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图22是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 22 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图23是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 23 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图24是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 24 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图25是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 25 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图26是本申请另一实施例提供的一种无线连接方法的示意性流程框图;Figure 26 is a schematic flow chart of a wireless connection method provided by another embodiment of the present application;
图27是本申请一实施例提供的一种电池管理设备的示意性结构框图;Figure 27 is a schematic structural block diagram of a battery management device provided by an embodiment of the present application;
图28是本申请另一实施例提供的一种电池管理设备的示意性结构框图;Figure 28 is a schematic structural block diagram of a battery management device provided by another embodiment of the present application;
图29是本申请另一实施例提供的一种电池管理设备的示意性结构框图;Figure 29 is a schematic structural block diagram of a battery management device provided by another embodiment of the present application;
图30是本申请一实施例提供的一种电子设备的示意性结构框图。Figure 30 is a schematic structural block diagram of an electronic device provided by an embodiment of the present application.
在附图中,附图并未按照实际的比例绘制。In the drawings, the drawings are not drawn to actual scale.
具体实施方式Detailed ways
下面结合附图和实施例对本申请的实施方式作进一步详细描述。以下实施例的详细描述和附图用于示例性地说明本申请的原理,但不能用来限制本申请的范围,即本申请不限于所描述的实施例。The embodiments of the present application will be described in further detail below with reference to the accompanying drawings and examples. The detailed description of the following embodiments and the accompanying drawings are used to illustrate the principles of the present application, but cannot be used to limit the scope of the present application, that is, the present application is not limited to the described embodiments.
在本申请的描述中,需要说明的是,除非另有说明,“多个”的含义是两个以上;术语“上”、“下”、“左”、“右”、“内”、“外”等指示的方位或位置关系仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。In the description of this application, it should be noted that, unless otherwise stated, "plurality" means more than two; the terms "upper", "lower", "left", "right", "inside", " The orientation or positional relationship indicated such as "outside" is only for the convenience of describing the present application and simplifying the description. It does not indicate or imply 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 application. Application restrictions.
本申请中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:存在A,同时存在A和B,存在B这三种情况。另外,本申请中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in this application is just an association relationship describing associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists, A and B exist simultaneously, and B exists these three situations. In addition, the character "/" in this application generally indicates that the related objects are an "or" relationship.
除非另有定义,本申请所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同;本申请中在申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请;本申请的说明书和权利要求书及上述附图说明中的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。本申请的说明书、权利要求书或附图中的术语“第一”、“第二”、“第三”等是用于区别不同对象,而不是用于描述特定顺序或主次关系。Unless otherwise defined, all technical and scientific terms used in this application have the same meanings as commonly understood by those skilled in the technical field of this application; the terms used in the specification of this application are only for describing specific implementations. The purpose of the examples is not intended to limit the application; the terms "including" and "having" and any variations thereof in the description and claims of the application and the above description of the drawings are intended to cover non-exclusive inclusion. The terms "first", "second", "third", etc. in the description, claims or drawings of this application are used to distinguish different objects, rather than to describe a specific order or primary-secondary relationship.
在本申请中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本申请所描述的实施例可以与其它实施例相结合。Reference in this application to "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
在新能源领域中,电池作为用电装置,例如电动车辆、船舶或航天器等的主要动力源,其重要性不言而喻。在本申请中,电池是指包括一个或多个电池单体(battery cell)以提供更高的电压和容量的单一的物理模块。该电池一般包括用于封装一个或多个电池单体的箱体。可选地,本申请中所提到的电池可以称之为电池包(battery pack)。可选地,该电池可以是任意类型的电池,例如:锂离子电池、锂金属电池、锂硫电池、铅酸电池、镍隔电池、镍氢电池、或者锂空气电池等等。In the field of new energy, the importance of batteries as the main power source for electrical devices, such as electric vehicles, ships or spacecrafts, is self-evident. In this application, a battery refers to a single physical module that includes one or more battery cells to provide higher voltage and capacity. The battery generally includes a case for enclosing one or more battery cells. Optionally, the battery mentioned in this application may be called a battery pack. Optionally, the battery can be any type of battery, such as: lithium-ion battery, lithium metal battery, lithium-sulfur battery, lead-acid battery, nickel separator battery, nickel-metal hydride battery, or lithium-air battery, etc.
在电池的运行、充电、换电过程中,均需要对电池的实时状态进行监控,以提高电池在上述各过程中的安全性。因此,根据实际情况的需要,在电池的内部、用电装置、换电站等位置可配置有电池管理设备,例如:电池管理单元(BMU)等,对便于对电池的运行状态进行监控和管理。During the battery operation, charging, and battery replacement processes, the real-time status of the battery needs to be monitored to improve the safety of the battery in the above processes. Therefore, according to actual needs, battery management equipment, such as a battery management unit (BMU), can be configured inside the battery, at the power consumption device, at the battery swap station, etc., to facilitate monitoring and management of the battery's operating status.
作为一种示例,在电动车辆以及电池的内部均配置有BMU,其中,电动车辆中的BMU可称之为主电池管理单元(Master Battery Manager Unit,MBMU),电池的内部配置的BMU可称之为从电池管理单元(Slaver Battery Manager Unit,SBMU)。在该示例中,MBMU可以与SBMU相互连接并进行信息交互,以共同实现对电池的运行状态的监控和管理。As an example, BMUs are configured inside both electric vehicles and batteries. The BMU in the electric vehicle can be called the Master Battery Manager Unit (MBMU), and the BMU configured inside the battery can be called the Master Battery Manager Unit (MBMU). It is the slave battery management unit (Slaver Battery Manager Unit, SBMU). In this example, the MBMU and the SBMU can be connected to each other and exchange information to jointly monitor and manage the operating status of the battery.
在一些实施方式中,MBMU与SBMU通过实体走线(例如:控制器局域网络 (Controller Area Network,CAN)走线)相互连接,该实体走线在两个BMU上的安装方式较为复杂,影响制造和维修效率。在另一些实施方式中,MBMU与SBMU通过无线方式进行连接,在该无线连接方式下,MBMU与SBMU之间的通信易受到环境等多种因素的影响,因而容易出现连接故障。In some implementations, the MBMU and SBMU are connected to each other through physical wiring (for example: Controller Area Network (Controller Area Network, CAN) wiring). The installation method of this physical wiring on the two BMUs is relatively complex and affects manufacturing. and maintenance efficiency. In other implementations, the MBMU and the SBMU are connected through a wireless connection. In this wireless connection mode, the communication between the MBMU and the SBMU is easily affected by various factors such as the environment, so connection failures are prone to occur.
可以理解的是,除了上述MBMU与SBMU以外,换电站中也会配置一种或多种BMU。该换电站中多种BMU之间,和/或,换电站中的BMU与用电装置中的BMU之间也相互连接,因而,在无线连接方式下,除了上述MBMU与SBMU容易出现连接故障以外,换电站中多种BMU之间,和/或,换电站中的BMU与用电装置中的BMU之间也较为容易出现连接故障。It can be understood that, in addition to the above-mentioned MBMU and SBMU, one or more BMUs will also be configured in the battery swap station. Various BMUs in the power swap station are also connected to each other, and/or the BMUs in the power swap station and the BMUs in the power devices are also connected to each other. Therefore, in the wireless connection mode, in addition to the above-mentioned MBMU and SBMU being prone to connection failures, , Connection failures are also more likely to occur between various BMUs in the power swap station, and/or between the BMUs in the power swap station and the BMUs in the power consumption devices.
鉴于此,本申请提供一种电池管理设备的无线连接方法,该无线连接方法应用于电池管理设备中的无线连接装置,该无线连接方法包括:接收连断请求数据,根据该连断请求数据,与第一设备无线连接或断开,检测第一状态标识,该第一状态标识用于指示与第一设备之间的连断状态,根据该第一状态标识以及连断请求数据,判断与第一设备之间的无线连接或断开是否正常。通过该技术方案,通过检测用于指示与所述第一设备之间的连断状态的第一状态标识,且综合该第一状态标识以及连断请求数据判断与第一设备之间的无线连接或断开是否正常,有利于实现对无线连接装置与第一设备之间的无线连断状态的有效监控,从而提高BMU与第一设备之间的连接性能。In view of this, the present application provides a wireless connection method for battery management equipment. The wireless connection method is applied to the wireless connection device in the battery management equipment. The wireless connection method includes: receiving connection request data, and according to the connection request data, Wirelessly connect or disconnect with the first device, detect the first status identifier, the first status identifier is used to indicate the connection status with the first device, and determine the connection with the first device based on the first status identifier and the connection request data. Whether the wireless connection or disconnection between devices is normal. Through this technical solution, the first state identifier used to indicate the connection state with the first device is detected, and the wireless connection with the first device is determined based on the first state identifier and the connection request data. Or whether the disconnection is normal, it is helpful to effectively monitor the wireless connection status between the wireless connection device and the first device, thereby improving the connection performance between the BMU and the first device.
图1示出了本申请实施例适用的一种车辆1的示意性结构框图。该车辆1可以为燃油汽车、燃气汽车或新能源汽车,新能源汽车可以是纯电动汽车、混合动力汽车或增程式汽车等。Figure 1 shows a schematic structural block diagram of a vehicle 1 to which the embodiment of the present application is applicable. The vehicle 1 may be a fuel vehicle, a gas vehicle or a new energy vehicle, and the new energy vehicle may be a pure electric vehicle, a hybrid vehicle or an extended-range vehicle, etc.
如图1所示,在本申请实施例中,车辆1中设置有电池10,该电池10可以用于车辆1的供电,例如,电池10可以作为车辆1的操作电源,用于车辆1的电路系统,例如,用于车辆1的启动、导航和运行时的工作用电需求。在本申请的另一实施例中,电池10不仅仅可以作为车辆1的操作电源,还可以作为车辆1的驱动电源,替代或部分地替代燃油或天然气为车辆1提供驱动动力。As shown in Figure 1, in the embodiment of the present application, a battery 10 is provided in the vehicle 1. The battery 10 can be used to power the vehicle 1. For example, the battery 10 can be used as an operating power supply for the vehicle 1 and for the circuit of the vehicle 1. The system is, for example, used for starting, navigation and operating power requirements of the vehicle 1 . In another embodiment of the present application, the battery 10 can not only be used as an operating power source of the vehicle 1 , but also can be used as a driving power source of the vehicle 1 , replacing or partially replacing fuel or natural gas to provide driving power for the vehicle 1 .
为了便于监测该电池10在车辆1中的运行状态,该电池10中设置有从电池管理单元(SBMU)110。对应于该电池10内部的SBMU 110,车辆1中还设置有主电池管理单元(MBMU)120。In order to facilitate monitoring the operating status of the battery 10 in the vehicle 1 , the battery 10 is provided with a slave battery management unit (SBMU) 110 . Corresponding to the SBMU 110 inside the battery 10, the vehicle 1 is also provided with a main battery management unit (MBMU) 120.
具体地,电池10中可包括至少一个电池单体(或者也可称之为电芯)11,该至少一个电池单体11被封装在同一个箱体中,以形成一个电池包。除了该至少一个电池单体11以外,该箱体中还可设置有SBMU 110以及其它相关部件,该SBMU 110用于检测电池10中每个电池单体11的相关状态参数,例如,电压、电流、温度、荷电状态(State of Charge,SOC),健康状态(State of Health,SOH)等等。Specifically, the battery 10 may include at least one battery cell (or battery cell) 11 , and the at least one battery cell 11 is packaged in the same box to form a battery pack. In addition to the at least one battery cell 11, the box can also be provided with an SBMU 110 and other related components. The SBMU 110 is used to detect relevant status parameters of each battery cell 11 in the battery 10, such as voltage, current , temperature, state of charge (State of Charge, SOC), health state (State of Health, SOH), etc.
在电池10以外,车辆1中设置有与SBMU 110能够相互通信的MBMU 120。SBMU 110能够将检测到的电池10的相关参数传输至MBMU 120,MBMU 120能够对其接收到的数据进行计算分析,且向SBMU 110传输信号以控制和管理该SBMU 110。In addition to the battery 10, the vehicle 1 is provided with an MBMU 120 capable of communicating with the SBMU 110. The SBMU 110 can transmit the detected relevant parameters of the battery 10 to the MBMU 120, and the MBMU 120 can perform calculations and analysis on the data it receives, and transmit signals to the SBMU 110 to control and manage the SBMU 110.
另外,除了电池10以及MBMU以外,该车辆1中还设置有车辆控制器130,例如:整车控制器(Vehicle Control Unit,VCU)或者域控制器(Domain Control Unit, DCU)等,该MBMU 120除了能够与SBMU 110相互通信以外,还能够与车辆控制器130相互通信,具体地,该MBMU 120能够将车辆1中电池10的相关数据传输至车辆控制器130。In addition, in addition to the battery 10 and MBMU, the vehicle 1 is also provided with a vehicle controller 130, such as a vehicle controller (Vehicle Control Unit, VCU) or a domain controller (Domain Control Unit, DCU), etc., the MBMU 120 In addition to being able to communicate with the SBMU 110, it can also communicate with the vehicle controller 130. Specifically, the MBMU 120 can transmit relevant data of the battery 10 in the vehicle 1 to the vehicle controller 130.
可选地,如图1所示,在一些实施方式中,车辆1中可设置有多个电池10,且该每个电池10中均对应设置有SBMU 110,换言之,车辆1中可设置有多个SBMU 110,MBMU 120可同时与多个SBMU 110建立通信连接,以实现对多个SBMU 110的控制管理。Optionally, as shown in Figure 1, in some embodiments, the vehicle 1 may be provided with multiple batteries 10, and each battery 10 may be provided with a corresponding SBMU 110. In other words, the vehicle 1 may be provided with multiple batteries 110. Each SBMU 110 and MBMU 120 can establish communication connections with multiple SBMUs 110 at the same time to achieve control and management of multiple SBMUs 110.
需要说明的是,上文图1仅作为示例,说明车辆1可设置有由车辆控制器130、MBMU 120以及多个电池10形成的通信系统。在另一些实施方式中,车辆1可以设置有仅由车辆控制器130以及多个电池10形成的通信系统。例如,多个电池10中每个电池10内部可设置有对电池单体11进行监测的监测单元,该监测单元可与车辆控制器130建立通信连接,以使得车辆控制器130实现对多个电池10的控制管理。It should be noted that the above FIG. 1 is only an example, illustrating that the vehicle 1 may be provided with a communication system formed by a vehicle controller 130, an MBMU 120 and a plurality of batteries 10. In other embodiments, the vehicle 1 may be provided with a communication system formed only by the vehicle controller 130 and a plurality of batteries 10 . For example, each battery 10 in the plurality of batteries 10 may be provided with a monitoring unit that monitors the battery cells 11 . The monitoring unit may establish a communication connection with the vehicle controller 130 so that the vehicle controller 130 can monitor the multiple batteries. 10. Control management.
可选地,本申请实施例中的电池10除了可采用传统的电芯至电池包(Cell To Pack,CTP)的架构以外,还可以采用电芯至底盘(Cell To Chassis,CTC)架构,将电池10中的至少一个电芯集成到车辆的底盘中。在该情况下,车辆1中的车辆控制器130可为域控制器,直接对电池10乃至电池10中的至少一个电芯进行管理。Optionally, in addition to the traditional Cell To Pack (CTP) architecture, the battery 10 in the embodiment of the present application can also adopt the Cell To Chassis (CTC) architecture. At least one cell in the battery 10 is integrated into the chassis of the vehicle. In this case, the vehicle controller 130 in the vehicle 1 may be a domain controller that directly manages the battery 10 and even at least one cell in the battery 10 .
图2示出了本申请实施例适用的一种换电站2的示意性结构框图。该换电站2可以为乘用车或者重型卡车等多种不同类型的车辆提供快速更换电池的服务,且该换电站2也可以包括充电仓20,以对车辆中更换下来的电池进行充电。Figure 2 shows a schematic structural block diagram of a power swap station 2 applicable to the embodiment of the present application. The power swap station 2 can provide rapid battery replacement services for various types of vehicles such as passenger cars or heavy trucks, and the power swap station 2 can also include a charging bin 20 to charge the replaced batteries in the vehicle.
如图2所示,换电站2的充电仓20内可设置有多个电池10,其中,每个电池10中设置有SBMU 110。为了便于对该多个SBMU 110进行控制管理,充电仓20内还设置有至少一个充电电池管理单元(Charger Battery Manager Unit,CBMU)210。作为示例,充电仓20中的每个CBMU 210能够与预设数量的SBMU 110建立通信连接,且对该SBMU 110进行控制管理。在充电仓20内可容纳的电池10数量较多时,该充电仓20内可设置多个CBMU 210,每个CBMU 210与预设数量的SBMU 110建立通信,以保证对每个SBMU 110及其所在的电池10进行有效监控和管理。As shown in Figure 2, a plurality of batteries 10 can be provided in the charging compartment 20 of the battery swap station 2, wherein an SBMU 110 is provided in each battery 10. In order to facilitate the control and management of the plurality of SBMUs 110, the charging compartment 20 is also provided with at least one charging battery management unit (Charger Battery Manager Unit, CBMU) 210. As an example, each CBMU 210 in the charging compartment 20 can establish communication connections with a preset number of SBMUs 110, and control and manage the SBMUs 110. When the number of batteries 10 that can be accommodated in the charging compartment 20 is large, multiple CBMUs 210 can be installed in the charging compartment 20, and each CBMU 210 establishes communication with a preset number of SBMUs 110 to ensure that each SBMU 110 and its location are The battery 10 is effectively monitored and managed.
继续参见图2,在换电站2中,除了设置充电仓20对多个电池10进行充电以外,还设置有站控系统21,该站控系统21可以控制换电站2中的多个功能装置以执行对应的功能。例如,换电站2中包括电池装取设备(图2中未示出),该站控系统21可以控制该电池装取设备从进入换电站2中的车辆上拆取处于亏电状态的电池10,并将换电站内电量充足的电池10安装至车辆上。Continuing to refer to FIG. 2 , in the power swap station 2 , in addition to providing a charging compartment 20 to charge multiple batteries 10 , a station control system 21 is also provided. The station control system 21 can control multiple functional devices in the power swap station 2 to Execute the corresponding function. For example, the power swap station 2 includes a battery loading and unloading device (not shown in FIG. 2 ), and the station control system 21 can control the battery loading and unloading device to remove the battery 10 in a depleted state from the vehicle entering the power swap station 2 . , and install the battery 10 with sufficient power in the battery swap station to the vehicle.
具体地,在本申请实施例中,该站控系统21可以与充电仓20中的至少一个CBMU 210建立通信连接,从而便于站控系统21通过该CBMU 210对充电仓20中的多个电池10进行控制管理。Specifically, in the embodiment of the present application, the station control system 21 can establish a communication connection with at least one CBMU 210 in the charging compartment 20, thereby facilitating the station control system 21 to control multiple batteries 10 in the charging compartment 20 through the CBMU 210. Carry out control management.
如图2所示,在换电站2中,除了CBMU 210以外,还设置有换电电池管理单元(Transmission Battery Manager Unit,TBMU)220。当图1中所示的车辆1进入换电站2之后,该TBMU 220能够与车辆1中的MBMU 120建立通信连接,从而便于TBMU 220与MBMU 120实现信息交互,也便于该TBMU 220通过MBMU 120对车辆1上的 电池10实现监控管理。As shown in Figure 2, in the battery swap station 2, in addition to the CBMU 210, a battery swap battery management unit (Transmission Battery Manager Unit, TBMU) 220 is also provided. When the vehicle 1 shown in Figure 1 enters the battery swap station 2, the TBMU 220 can establish a communication connection with the MBMU 120 in the vehicle 1, thereby facilitating information exchange between the TBMU 220 and the MBMU 120, and also facilitating the TBMU 220 to communicate with each other through the MBMU 120. The battery 10 on the vehicle 1 implements monitoring and management.
进一步地,为了便于站控系统21监控管理车辆上的电池10,该TBMU 220还与站控系统21建立通信连接。因此,站控系统21可以通过该TBMU 220以及MBMU 120对车辆1上的电池10实现监控管理。Further, in order to facilitate the station control system 21 to monitor and manage the battery 10 on the vehicle, the TBMU 220 also establishes a communication connection with the station control system 21. Therefore, the station control system 21 can monitor and manage the battery 10 on the vehicle 1 through the TBMU 220 and the MBMU 120.
可选地,在上述图1和图2所示的车辆1以及换电站2中,不同类型的BMU可以通过无线方式建立通信连接,以降低不同类型的BMU之间连接安装的复杂度。另外,在换电站2中,为了保障站控系统21与其它部件的通信可靠性,该站控系统可以通过有线方式与CBMU 210和/或TBMU 220建立通信连接。Optionally, in the vehicle 1 and the battery swap station 2 shown in FIGS. 1 and 2 above, different types of BMUs can establish communication connections wirelessly to reduce the complexity of connection installation between different types of BMUs. In addition, in the power swap station 2, in order to ensure the reliability of communication between the station control system 21 and other components, the station control system can establish a communication connection with the CBMU 210 and/or TBMU 220 through a wired method.
图3示出了本申请实施例提供的一种电池管理设备的无线连接方法300的示意性流程框图。FIG. 3 shows a schematic flow chart of a wireless connection method 300 for a battery management device provided by an embodiment of the present application.
如图3所示,在本申请实施例中,该无线连接方法300包括以下步骤。As shown in Figure 3, in this embodiment of the present application, the wireless connection method 300 includes the following steps.
S310:与第一设备无线连接或断开。S310: Wirelessly connect or disconnect with the first device.
S320:检测与第一设备之间的连断状态数据。S320: Detect the connection status data with the first device.
S330:根据连断状态数据,判断与第一设备之间的无线连接或断开是否正常。S330: Determine whether the wireless connection or disconnection with the first device is normal based on the connection status data.
可选地,在本申请实施例中,第一设备可以为被配置为与电池管理设备400进行无线连断的任意设备。在一些实施方式中,该第一设备与电池管理设备400为两种不同类型的电池管理单元。Optionally, in this embodiment of the present application, the first device may be any device configured to wirelessly connect with the battery management device 400 . In some embodiments, the first device and the battery management device 400 are two different types of battery management units.
具体地,作为一种示例,在电池管理设备为用电设备(例如上述车辆1)中的MBMU 120或主控制器(例如上述车辆1中的车辆控制器130)的情况下,第一设备包括但不限于是用电设备(例如上述车辆1)中的SBMU 110。Specifically, as an example, when the battery management device is the MBMU 120 or the main controller (such as the vehicle controller 130 in the above-mentioned vehicle 1) in the electrical device (such as the above-mentioned vehicle 1), the first device includes But it is not limited to the SBMU 110 in the electrical equipment (such as the above-mentioned vehicle 1).
作为另一种示例,在电池管理设备为换电设备(例如上述换电站2)中的CBMU 210的情况下,第一设备包括但不限于是换电设备(例如上述换电站2)中的SBMU 110。As another example, in the case where the battery management device is the CBMU 210 in the power swapping device (such as the above-mentioned power swap station 2), the first device includes but is not limited to the SBMU in the power swap device (such as the above-mentioned power swap station 2). 110.
作为第三种示例,在电池管理设备为换电设备(例如上述换电站2)中的TBMU 220的情况下,第一设备包括但不限于是用电设备(例如上述车辆1)中的MBMU 120。As a third example, in the case where the battery management device is the TBMU 220 in the power swapping device (such as the above-mentioned battery swapping station 2), the first device includes but is not limited to the MBMU 120 in the power-consuming device (such as the above-mentioned vehicle 1). .
通过该几种示例的实施方式,电池管理设备可以为多种类型,且应用于不同场景下。通过该方案,可以实现TBMU 220与MBMU 120之间较为稳定的无线连断,和/或,实现CBMU 210/MBMU 120与SBMU 110之间较为稳定的无线连断,从而简化用电设备和/或换电设备中多种电池管理设备之间的连接方式,提高整个系统的连接稳定性以及鲁棒性。Through the implementation of these examples, the battery management device can be of various types and applied in different scenarios. Through this solution, a relatively stable wireless connection between TBMU 220 and MBMU 120 can be achieved, and/or a relatively stable wireless connection between CBMU 210/MBMU 120 and SBMU 110 can be achieved, thereby simplifying electrical equipment and/or The connection method between various battery management devices in the battery swap equipment improves the connection stability and robustness of the entire system.
可选地,在步骤S310中,电池管理设备中可设置有无线连接装置,例如,无线通信芯片等等。该无线连接装置通过无线协议实现与第一设备无线连接或断开。Optionally, in step S310, a wireless connection device, such as a wireless communication chip or the like, may be provided in the battery management device. The wireless connection device implements wireless connection or disconnection with the first device through a wireless protocol.
可选地,在一些实施方式中,该步骤S310可以包括:与第一设备蓝牙连接或断开。在该实施方式下,电池管理设备中可设置有蓝牙芯片,蓝牙芯片中具有蓝牙通信协议栈,通过该蓝牙芯片,可以蓝牙通信协议实现电池管理设备与第一设备之间的蓝牙连断。Optionally, in some implementations, step S310 may include: Bluetooth connection or disconnection with the first device. In this embodiment, the battery management device may be provided with a Bluetooth chip, which has a Bluetooth communication protocol stack. Through the Bluetooth chip, the Bluetooth connection between the battery management device and the first device can be realized using the Bluetooth communication protocol.
在该实施方式中,电池管理设备可以通过蓝牙通信协议与第一设备进行蓝牙连 断进而实现后续的数据通信。该蓝牙连断的实现方式可以具有低功耗、低延时、低成本的特点,因而较为适宜的设置于车辆1和/或换电站2中,实现短距离、低成本的可靠通信。In this embodiment, the battery management device can perform Bluetooth connection and disconnection with the first device through the Bluetooth communication protocol to achieve subsequent data communication. The Bluetooth connection implementation method can have the characteristics of low power consumption, low delay, and low cost, so it is more suitable to be installed in the vehicle 1 and/or the battery swap station 2 to achieve short-distance, low-cost and reliable communication.
在步骤S320和步骤S330中,电池管理设备可检测其与第一设备之间的连断状态数据,根据该连断状态数据,电池管理设备可判断其与第一设备之间的无线连断是否正常。In steps S320 and S330, the battery management device may detect the connection status data between the battery management device and the first device. Based on the connection status data, the battery management device may determine whether the wireless connection between the battery management device and the first device is normal.
在电池管理设备与第一设备之间的无线连接为正常的情况下,该电池管理设备可与第一设备实现正常的信息交互,保障电池管理设备所在设备以及第一设备的安全有效运行。反之,在电池管理设备与第一设备之间的无线连接为异常的情况下,该电池管理设备与第一设备之间的无线连接可能会发生断开,不利于电池管理设备与第一设备实现正常的信息交互。When the wireless connection between the battery management device and the first device is normal, the battery management device can achieve normal information interaction with the first device, ensuring the safe and effective operation of the device where the battery management device is located and the first device. On the contrary, when the wireless connection between the battery management device and the first device is abnormal, the wireless connection between the battery management device and the first device may be disconnected, which is not conducive to the implementation of the battery management device and the first device. Normal information exchange.
在电池管理设备与第一设备之间的无线断开为正常的情况下,可以节省电池管理设备的运行资源,降低电池管理设备的功耗,提升电池管理设备的整体性能。反之,在电池管理设备与第一设备之间的无线断开为异常的情况下,该电池管理设备与第一设备之间的无线连接可能会发生异常连接,浪费电池管理设备的运行资源,增加电池管理设备的功耗,影响电池管理设备的整体性能。When the wireless disconnection between the battery management device and the first device is normal, the operating resources of the battery management device can be saved, the power consumption of the battery management device can be reduced, and the overall performance of the battery management device can be improved. On the contrary, when the wireless disconnection between the battery management device and the first device is abnormal, the wireless connection between the battery management device and the first device may be abnormally connected, which wastes the operating resources of the battery management device and increases The power consumption of the battery management device affects the overall performance of the battery management device.
通过本申请实施例的技术方案,在电池管理设备与第一设备无线连接或断开后,电池管理设备检测其与第一设备之间的连断状态数据,根据该连断状态数据判断其与第一设备之间的无线连断是否正常,有利于实现对电池管理设备与第一设备之间的无线连断状态的有效监控,从而提高电池管理设备与第一设备之间的连接性能。Through the technical solutions of the embodiments of the present application, after the battery management device is wirelessly connected or disconnected from the first device, the battery management device detects the connection status data between it and the first device, and determines whether it is connected to the first device based on the connection status data. Whether the wireless connection between the first device is normal is conducive to effective monitoring of the wireless connection status between the battery management device and the first device, thereby improving the connection performance between the battery management device and the first device.
图4示出了本申请实施例提供的一种电池管理设备400的示意性结构框图。可选地,该电池管理设备400可以为上文图1和图2中所示的MBMU 120,CBMU 210或者TBMU 220。上文图3中所示的无线连接方法300可应用于本申请实施例中所示的电池管理设备400。FIG. 4 shows a schematic structural block diagram of a battery management device 400 provided by an embodiment of the present application. Optionally, the battery management device 400 may be the MBMU 120, CBMU 210 or TBMU 220 shown in Figures 1 and 2 above. The wireless connection method 300 shown in FIG. 3 above can be applied to the battery management device 400 shown in the embodiment of the present application.
如图4所示,该电池管理设备400包括:无线连接装置420,该无线连接装置420能够与其它无线装置实现无线连接,例如,该无线连接装置420能够与第一设备中的无线装置实现无线连接。作为示例而非限定,该无线连接装置420可以为电池管理设备400中的无线通信芯片。As shown in Figure 4, the battery management device 400 includes: a wireless connection device 420. The wireless connection device 420 can implement wireless connections with other wireless devices. For example, the wireless connection device 420 can implement wireless connections with the wireless device in the first device. connect. As an example and not a limitation, the wireless connection device 420 may be a wireless communication chip in the battery management device 400 .
在电池管理设备400包括无线连接装置420的情况下,上述连断状态数据可以包括:第一状态标识,该第一状态标识用于指示无线连接装置与第一设备之间相互连接或者相互断开。In the case where the battery management device 400 includes the wireless connection device 420, the above-mentioned connection status data may include: a first status identifier, the first status identifier is used to indicate that the wireless connection device and the first device are connected to or disconnected from each other. .
可选地,该第一状态标识可仅用于指示无线连接装置420与第一设备相互连接或者相互断开。或者,在此基础上,该第一状态标识还可以进一步用于指示无线连接装置420与第一设备之间其它相关的连断状态信息,例如,连接时间,连接次数等等。Optionally, the first status identifier may only be used to indicate that the wireless connection device 420 and the first device are connected to or disconnected from each other. Or, on this basis, the first status identifier can be further used to indicate other related connection status information between the wireless connection device 420 and the first device, such as connection time, number of connections, etc.
可选地,在一些实施方式中,在无线连接装置420中可具有无线通信协议栈,该无线连接装置420可根据连断请求数据,调用无线通信协议栈,以实现与第一设备的无线连接或断开。在无线连接装置420与第一设备建立起无线连接之后,第一设备可向无线连接装置420发送数据包,若无线连接装置420在预设时间段内接收到第一设备发 送的数据包,则无线连接装置420可将第一状态标识设置为相互连接状态。反之,若无线连接装置420在预设时间段内未接收到第一设备发送的数据包,则无线连接装置420将第一状态标识设置为相互断开状态。Optionally, in some embodiments, the wireless connection device 420 may have a wireless communication protocol stack, and the wireless connection device 420 may call the wireless communication protocol stack according to the connection request data to implement a wireless connection with the first device. or disconnected. After the wireless connection device 420 establishes a wireless connection with the first device, the first device can send a data packet to the wireless connection device 420. If the wireless connection device 420 receives the data packet sent by the first device within a preset time period, then The wireless connection device 420 may set the first status indicator to the mutual connection status. On the contrary, if the wireless connection device 420 does not receive the data packet sent by the first device within the preset time period, the wireless connection device 420 sets the first status indicator to the mutually disconnected state.
可选地,该第一状态标识可以为无线连接装置420中实时更新的标识,即该无线连接装置420可以实时检测其与第一设备之间的连断状态,以检测实时更新的第一状态标识。Optionally, the first status identifier may be a real-time updated identifier in the wireless connection device 420 , that is, the wireless connection device 420 may detect the connection status between itself and the first device in real time to detect the real-time updated first status. logo.
通过本申请实施例的技术方案,在电池管理设备中设备无线连接装置,且利用用于指示无线连接装置与第一设备相互连接或者相互断开的第一状态标识作为连断状态数据,以判断电池管理设备与第一设备之间的无线连断是否正常,具有较高的准确度,且易于通过硬件和/或软件实现。Through the technical solution of the embodiment of the present application, a wireless connection device is installed in the battery management device, and the first status identifier used to indicate that the wireless connection device and the first device are connected or disconnected from each other are used as connection status data to determine Whether the wireless connection between the battery management device and the first device is normal has high accuracy and is easy to implement through hardware and/or software.
可选地,如图4所示,在一些实施例中,除了无线连接装置420以外,该电池管理设备400还可以包括:与无线连接装置420相互连接的控制装置410。该控制装置410能够向无线连接装置420发送命令,以控制无线连接装置420根据该命令执行相应的动作。作为示例而非限定,该控制装置410可以为电池管理设备400的控制芯片,例如可以是电池管理设备400中的主控芯片。Optionally, as shown in FIG. 4 , in some embodiments, in addition to the wireless connection device 420 , the battery management device 400 may also include: a control device 410 interconnected with the wireless connection device 420 . The control device 410 can send a command to the wireless connection device 420 to control the wireless connection device 420 to perform corresponding actions according to the command. As an example and not a limitation, the control device 410 may be a control chip of the battery management device 400 , for example, it may be a main control chip in the battery management device 400 .
图5示出了本申请实施例提供的一种电池管理设备400的无线连接方法500的示意性流程框图。该无线连接方法500可应用于上文图4中所示的电池管理设备400中的无线连接装置420,换言之,本申请实施例中的无线连接方法400的执行主体为上述无线连接装置420。FIG. 5 shows a schematic flow diagram of a wireless connection method 500 for a battery management device 400 provided by an embodiment of the present application. The wireless connection method 500 can be applied to the wireless connection device 420 in the battery management device 400 shown in FIG. 4. In other words, the execution subject of the wireless connection method 400 in the embodiment of the present application is the wireless connection device 420.
如图5所示,在本申请实施例中,该无线连接方法500包括以下步骤。As shown in Figure 5, in this embodiment of the present application, the wireless connection method 500 includes the following steps.
S510:接收连断请求数据。S510: Receive connection request data.
S520:根据连断请求数据,与第一设备无线连接或断开。S520: Wirelessly connect or disconnect with the first device according to the connection request data.
S530:检测第一状态标识,该第一状态标识用于指示与所述第一设备之间的连断状态。S530: Detect the first status identifier, which is used to indicate the connection state with the first device.
S540:根据第一状态标识以及连断请求数据,判断与第一设备之间的无线连接或断开是否正常。S540: Determine whether the wireless connection or disconnection with the first device is normal according to the first status identifier and the connection request data.
具体地,在步骤S510和步骤S520中,无线连接装置420可用于接收外部发送的连断请求数据。其中,该连断请求数据可包括用于指示与第一设备连接或断开的请求类型的请求数据以及用于指示该第一设备的信息数据。其中,该用于指示该第一设备的信息数据包括但不限于是:第一设备的位置、第一设备的媒体存取控制位址(Media Access Control Address,MAC)等等。进一步地,无线连接装置420可根据该连断请求数据中的相关信息,执行与第一设备的无线连接或断开,从而实现电池管理设备400与第一设备的无线连接或断开。Specifically, in step S510 and step S520, the wireless connection device 420 may be configured to receive externally sent connection request data. The connection request data may include request data indicating a request type for connecting or disconnecting with the first device and information data indicating the first device. The information data used to indicate the first device includes but is not limited to: the location of the first device, the Media Access Control Address (MAC) of the first device, and so on. Further, the wireless connection device 420 can perform wireless connection or disconnection with the first device according to the relevant information in the connection request data, thereby realizing wireless connection or disconnection between the battery management device 400 and the first device.
可选地,在一些实施方式中,电池管理设备400包括图4中所示的控制装置410,该控制装置410连接于无线连接装置420。在该情况下,对于步骤S510,无线连接装置420可以接收控制装置410发送的连断请求数据,其中,该连断请求数据为控制装置410对其接收的连断请求命令处理后的数据,该连断请求命令为基于第一通信协议的通信数据,该连断请求数据为基于第二通信协议的通信数据,该第一通信协议与第二通 信协议为不同类型的两种通信协议。Optionally, in some implementations, the battery management device 400 includes the control device 410 shown in FIG. 4 , and the control device 410 is connected to the wireless connection device 420 . In this case, for step S510, the wireless connection device 420 may receive the connection request data sent by the control device 410, where the connection request data is the data after the control device 410 processes the connection request command received by the control device 410. The connection request command is communication data based on the first communication protocol, the connection request data is communication data based on the second communication protocol, and the first communication protocol and the second communication protocol are two communication protocols of different types.
具体地,在该实施方式中,控制装置410可基于第一通信协议连接于电池管理设备400的外部设备,且通过第二通信协议连接于无线连接装置420。在该情况下,控制装置410可接收外部设备基于第一通信协议发送的第一数据类型的连断请求命令,且将该第一数据类型的连断请求命令转换为基于第二通信协议的第二数据类型的连断请求数据,从而便于该第二数据类型的连断请求数据能够顺利传输至无线连接装置420。作为示例而非限定,该第一通信协议可以为CAN协议,第二通信协议可以为串行外设接口(Serial Peripheral Interface,SPI)协议。Specifically, in this embodiment, the control device 410 may be connected to an external device of the battery management device 400 based on a first communication protocol, and connected to the wireless connection device 420 through a second communication protocol. In this case, the control device 410 may receive a connection request command of the first data type sent by the external device based on the first communication protocol, and convert the connection request command of the first data type into a third connection request command based on the second communication protocol. The connection request data of the second data type is conveniently transmitted to the wireless connection device 420 smoothly. As an example and not a limitation, the first communication protocol may be a CAN protocol, and the second communication protocol may be a Serial Peripheral Interface (SPI) protocol.
在该实施方式的技术方案中,通过电池管理设备400中的控制装置410接收基于第一通信协议的连断请求命令,且向无线连接装置420发送基于第二通信协议的连断请求数据。该电池管理设备400与外部设备可以基于第一通信协议相互通信,例如,仍然采用现有技术的方案,通过CAN协议或者其它协议方式相互通信,而控制装置410将其接收后的连断请求命令进行转换之后,可以与无线连接装置420基于第二通信协议相互通信。因此,该实施方式能够兼容现有的电池管理设备400的通信架构,且电池管理设备400中控制装置410与无线连接装置420的通信效果也较优,从而可以提升电池管理设备400整体的通信性能。In the technical solution of this embodiment, the control device 410 in the battery management device 400 receives the connection request command based on the first communication protocol, and sends the connection request data based on the second communication protocol to the wireless connection device 420 . The battery management device 400 and the external device can communicate with each other based on the first communication protocol. For example, the existing technology solution is still used to communicate with each other through the CAN protocol or other protocol methods, and the control device 410 receives the connection request command. After the conversion, the wireless connection device 420 can communicate with each other based on the second communication protocol. Therefore, this embodiment is compatible with the existing communication architecture of the battery management device 400, and the communication effect between the control device 410 and the wireless connection device 420 in the battery management device 400 is also better, thereby improving the overall communication performance of the battery management device 400. .
或者,在另一些实施方式中,无线连接装置420接收的连断请求数据也可以不是控制装置410发送的,而是由外部设备直接发送的,该无线连接装置420可以直接根据该连断请求数据执行与第一设备的连接或断开。Alternatively, in other embodiments, the connection request data received by the wireless connection device 420 may not be sent by the control device 410 but directly sent by an external device. The wireless connection device 420 may directly respond to the connection request data. Perform connection or disconnection with the first device.
在步骤S530中,无线连接装置420检测第一状态标识,该第一状态标识可用于指示无线连接装置420与第一设备之间的连断状态。如上所述,可选地,该第一状态标识可用于指示无线连接装置420与第一设备相互连接或者相互断开。或者,在此基础上,该第一状态标识还可以进一步用于指示无线连接装置420与第一设备之间其它相关的连断状态信息。In step S530, the wireless connection device 420 detects a first status identifier, which may be used to indicate the connection status between the wireless connection device 420 and the first device. As mentioned above, optionally, the first status identifier may be used to indicate that the wireless connection device 420 and the first device are connected to or disconnected from each other. Alternatively, on this basis, the first status identifier may be further used to indicate other related connection status information between the wireless connection device 420 and the first device.
可选地,在一些实施方式中,在该步骤S530之前,该无线连接方法500还包括:无线连接装置420判断是否在预设时间段内接收到第一设备发送的数据包;且该无线连接装置420根据判断结果设置第一状态标识;其中,在预设时间段内接收到第一设备发送的数据包的情况下,第一状态标识用于指示与第一设备之间的相互连接,未在预设时间段内接收到第一设备发送的数据包的情况下,第一状态标识用于指示与第一设备之间的相互断开。Optionally, in some embodiments, before step S530, the wireless connection method 500 further includes: the wireless connection device 420 determines whether the data packet sent by the first device is received within a preset time period; and the wireless connection The device 420 sets a first status identifier according to the judgment result; wherein, when a data packet sent by the first device is received within a preset time period, the first status identifier is used to indicate the interconnection with the first device. When a data packet sent by the first device is received within a preset time period, the first status identifier is used to indicate mutual disconnection from the first device.
通过该实施方式的技术方案,无线连接装置420能够有效的设置第一状态标识以指示其与第一设备之间的连断状态。因此,在设置该第一状态标识后,无线连接装置420检测该第一状态标识且根据该第一状态标识判断其与第一设备之间的无线连断是否正常,具有较高的可靠性。Through the technical solution of this embodiment, the wireless connection device 420 can effectively set the first status indicator to indicate the connection status between it and the first device. Therefore, after setting the first status identifier, the wireless connection device 420 detects the first status identifier and determines whether the wireless connection with the first device is normal based on the first status identifier, which has higher reliability.
在步骤S540中,无线连接装置420可根据该第一状态标识以及连断请求数据,综合判断与第一设备之间的无线连接或断开是否正常。相比于仅根据第一状态标识判断与第一设备之间的无线连接或断开是否正常的技术方案,通过本实施方式的技术方案,综合第一状态标识和连断请求数据两种数据,判断无线连接装置420与第一设备之 间的无线连接或断开是否正常,能够进一步提高判断的准确性。In step S540, the wireless connection device 420 may comprehensively determine whether the wireless connection or disconnection with the first device is normal based on the first status identifier and the connection request data. Compared with the technical solution that only determines whether the wireless connection or disconnection with the first device is normal based on the first state identifier, through the technical solution of this embodiment, the first state identifier and the connection request data are integrated, Determining whether the wireless connection or disconnection between the wireless connection device 420 and the first device is normal can further improve the accuracy of the determination.
综上,通过本申请实施例的技术方案,无线连接装置420检测用于指示与第一设备之间的连断状态的第一状态标识,且综合该第一状态标识以及连断请求数据判断与第一设备之间的无线连接或断开是否正常,有利于实现无线连接装置420对与第一设备之间的无线连断状态的有效监控,从而提高电池管理设备400与第一设备之间的连接性能。In summary, through the technical solution of the embodiment of the present application, the wireless connection device 420 detects the first state identifier used to indicate the connection state with the first device, and combines the first state identifier and the connection request data to determine and Whether the wireless connection or disconnection between the first device is normal is helpful for the wireless connection device 420 to effectively monitor the wireless connection status with the first device, thereby improving the connection between the battery management device 400 and the first device. Connection performance.
图6示出了本申请实施例提供的一种电池管理设备400的无线连接方法600的示意性流程框图。该无线连接方法600同样应用于上文图4中所示的电池管理设备400中的无线连接装置420。FIG. 6 shows a schematic flow chart of a wireless connection method 600 for a battery management device 400 provided by an embodiment of the present application. The wireless connection method 600 is also applied to the wireless connection device 420 in the battery management device 400 shown in FIG. 4 above.
如图6所示,在本申请实施例中,该无线连接方法600包括以下步骤。As shown in Figure 6, in this embodiment of the present application, the wireless connection method 600 includes the following steps.
S610:接收连断请求数据。S610: Receive connection request data.
S620:根据连断请求数据,与第一设备无线连接或断开。S620: Wirelessly connect or disconnect with the first device according to the connection request data.
S630:检测第一状态标识,该第一状态标识用于指示与第一设备之间的连断状态。S630: Detect the first status identifier, which is used to indicate the connection state with the first device.
S641:判断第一状态标识指示的连断状态与连断请求数据指示的连断请求是否一致。S641: Determine whether the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data.
S642:在第一状态标识指示的连断状态与连断请求数据指示的连断请求一致的情况下,确定与第一设备之间的无线连接为正常。S642: When the connection state indicated by the first status identifier is consistent with the connection request indicated by the connection request data, determine that the wireless connection with the first device is normal.
S643:在第一状态标识指示的连断状态与连断请求数据指示的连断请求不一致的情况下,确定与第一设备之间的无线连接为异常。S643: When the connection status indicated by the first status identifier is inconsistent with the connection request indicated by the connection request data, determine that the wireless connection with the first device is abnormal.
具体地,在本申请实施例中,步骤S610至步骤S630的具体技术方案可以参见上文图5所示实施例中步骤S510至步骤S530的相关描述。Specifically, in the embodiment of the present application, for the specific technical solution from step S610 to step S630, please refer to the relevant description of step S510 to step S530 in the embodiment shown in FIG. 5 above.
另外,本申请实施例中的步骤S641至步骤S643可以为上述步骤S540的一种实现方式。In addition, steps S641 to S643 in the embodiment of the present application may be an implementation manner of the above-mentioned step S540.
具体地,在步骤S641中,第一状态标识能够用于指示无线连接装置420与第一设备当前的连断状态为相互连接或者相互断开。连断请求数据中可以包括用于指示无线连接装置420与第一设备连接或断开的请求类型的请求数据。Specifically, in step S641, the first status identifier can be used to indicate that the current connection status of the wireless connection device 420 and the first device is mutual connection or mutual disconnection. The connection request data may include request data indicating a request type for indicating the wireless connection device 420 to connect or disconnect from the first device.
在步骤S642中,在第一状态标识指示的连断状态与连断请求数据指示的连断请求一致的情况下,无线连接装置420可以确定与第一设备之间的无线连断为正常。例如,在第一状态标识指示的连断状态为相互连接,且连断请求数据指示的连断请求也为相互连接的情况下,无线连接装置420可以确定与第一设备之间的无线连接为正常。In step S642, if the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data, the wireless connection device 420 may determine that the wireless connection with the first device is normal. For example, when the connection state indicated by the first status identifier is mutual connection, and the connection request indicated by the connection request data is also mutual connection, the wireless connection device 420 may determine that the wireless connection with the first device is normal.
对应的,在步骤S643中,在第一状态标识指示的连断状态与连断请求数据指示的连断请求不一致的情况下,无线连接装置420可以确定与第一设备之间的无线连断为异常。例如,在第一状态标识指示的连断状态为相互断开,但连断请求数据指示的连断请求为相互连接的情况下,无线连接装置420可以确定与第一设备之间的无线连接为异常。Correspondingly, in step S643, if the connection state indicated by the first status identifier is inconsistent with the connection request indicated by the connection request data, the wireless connection device 420 may determine that the wireless connection with the first device is abnormal. For example, when the connection status indicated by the first status identifier is mutual disconnection, but the connection request indicated by the connection request data is mutual connection, the wireless connection device 420 may determine that the wireless connection with the first device is abnormal.
在本申请实施例的技术方案中,通过判断第一状态标识指示的连断状态与连断请求数据指示的连断请求是否一致,从而可准确判断无线连接装置420与第一设备之间 的无线连接或断开是否为正常。该技术方案实施方便且准确度高,不仅能对无线连接装置420与第一设备之间的无线连断的实现准确且有效的监控,还能较为方便的通过硬件和/或软件实现于无线连接装置420中。In the technical solution of the embodiment of the present application, by determining whether the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data, the wireless connection between the wireless connection device 420 and the first device can be accurately determined. Whether the connection or disconnection is normal. This technical solution is easy to implement and has high accuracy. It can not only accurately and effectively monitor the wireless connection between the wireless connection device 420 and the first device, but can also more conveniently implement the wireless connection through hardware and/or software. in device 420.
可选地,在一些实施方式中,上述第一状态标识被配置为:采用第一数值指示与第一设备之间的连断状态为连接,采用第二数值指示与第一设备之间的连断状态为断开。上述连断请求数据被配置为:采用第一数值指示与第一设备之间的连断请求为连接,采用第二数值指示与第一设备之间的连断请求为断开。Optionally, in some embodiments, the above-mentioned first status identifier is configured to: use a first value to indicate that the connection state with the first device is connected, and use a second value to indicate that the connection state with the first device is connected. The disconnection status is disconnected. The above-mentioned connection request data is configured to use a first numerical value to indicate that the connection request with the first device is a connection, and a second numerical value to indicate that the connection request with the first device is a disconnection.
在该实施方式下,上述图6中的步骤S641可以包括:判断第一状态标识与连断请求数据是否一致。进一步地,上述步骤S642可以包括:在第一状态标识与连断请求数据一致的情况下,确定与第一设备之间的无线连接为正常。上述步骤S643可以包括:在第一状态标识与连断请求数据不一致的情况下,确定与第一设备之间的无线连接为异常。In this implementation, step S641 in FIG. 6 may include: determining whether the first status identifier is consistent with the connection request data. Further, the above-mentioned step S642 may include: when the first status identifier is consistent with the connection request data, determining that the wireless connection with the first device is normal. The above step S643 may include: determining that the wireless connection with the first device is abnormal when the first status identifier is inconsistent with the connection request data.
作为一种示例,第一数值和第二数值可以分别为0和1,其仅需占用较小的存储空间,即可有效标识不同的连断状态和连断请求。当然,在其它示例中,第一数值和第二数值还可以分别为其它数值,本申请实施例对此不做具体限定。As an example, the first value and the second value can be 0 and 1 respectively, which only need to occupy a small storage space and can effectively identify different connection states and connection requests. Of course, in other examples, the first numerical value and the second numerical value may also be other numerical values, which are not specifically limited in the embodiments of the present application.
通过该实施方式的技术方案,第一状态标识和连断请求数据均用不同数值表示不同状态和不同请求,因而,可以直接通过判断第一状态标识与连断请求数据是否一致,从而准确判断电池管理设备与第一设备之间的无线连接或断开是否为正常。该实现方式最为便捷,且能够降低第一状态标识与连断请求数据在无线连接装置420中所需占用的存储空间,提高无线连接装置420对该第一状态标识与连断请求数据的处理效率。Through the technical solution of this embodiment, the first status identifier and the connection request data use different values to represent different states and different requests. Therefore, the battery can be accurately determined by directly judging whether the first status identifier and the connection request data are consistent. Whether the wireless connection or disconnection between the management device and the first device is normal. This implementation method is the most convenient, and can reduce the storage space required by the first status identifier and connection request data in the wireless connection device 420, and improve the processing efficiency of the first status identifier and connection request data by the wireless connection device 420. .
图7示出了本申请实施例提供的一种电池管理设备400的无线连接方法700的示意性流程框图。该无线连接方法700同样应用于上文图4中所示的电池管理设备400中的无线连接装置420。FIG. 7 shows a schematic flow chart of a wireless connection method 700 for a battery management device 400 provided by an embodiment of the present application. The wireless connection method 700 is also applied to the wireless connection device 420 in the battery management device 400 shown in FIG. 4 above.
如图7所示,在本申请实施例中,该无线连接方法700包括上文图6所示实施例中的步骤S610至S643,在此基础上,在确定与第一设备之间的无线连接或断开为异常的情况下,该无线连接方法700还可以包括以下步骤。As shown in Figure 7, in the embodiment of the present application, the wireless connection method 700 includes steps S610 to S643 in the embodiment shown in Figure 6 above. Based on this, after determining the wireless connection with the first device Or when the disconnection is abnormal, the wireless connection method 700 may also include the following steps.
S750:根据连断请求数据,再至少一次执行与第一设备无线连接或断开。S750: Perform wireless connection or disconnection with the first device at least once according to the connection request data.
S760:至少一次检测第一状态标识,直至执行次数到达预设数量或第一状态标识指示的连断状态与连断请求数据指示的连断请求一致。S760: Detect the first status identifier at least once until the number of executions reaches a preset number or the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data.
具体地,在本申请实施例中,在无线连接装置420确定与第一设备之间的无线连断为异常的情况下,该无线连接装置420可以继续根据连断请求数据,再至少一次执行与第一设备无线连接或断开,以修复与第一设备之间的无线连断异常。Specifically, in this embodiment of the present application, when the wireless connection device 420 determines that the wireless connection with the first device is abnormal, the wireless connection device 420 may continue to perform at least one connection request based on the connection request data. The first device is connected or disconnected wirelessly to repair the abnormal wireless connection with the first device.
具体地,在无线连接装置420每次执行与第一设备的无线连接或断开后,无线连接装置420可以重新检测第一状态标识,且根据该新检测到的第一状态标识判断其与第一设备之间无线连断是否正常。Specifically, each time the wireless connection device 420 performs wireless connection or disconnection with the first device, the wireless connection device 420 may re-detect the first state identifier, and determine whether it is connected to the first state identifier based on the newly detected first state identifier. Whether the wireless connection between the devices is normal.
无线连接装置420至少一次重新执行与第一设备无线连接或断开,且至少一次检测第一状态标识,直至确定其与第一设备之间无线连断正常,即该无线连接装置420 与第一设备之间的无线连断异常得到修复,或者,直至执行次数到达了预设数量,无线连接装置420停止继续执行与第一设备无线连接或断开。作为示例而非限定,该预设数量可以小于或等于10,例如,该预设数量可以为5。The wireless connection device 420 re-executes wireless connection or disconnection with the first device at least once, and detects the first status identifier at least once until it is determined that the wireless connection with the first device is normal, that is, the wireless connection device 420 and the first device The abnormal wireless connection between the devices is repaired, or until the number of executions reaches a preset number, the wireless connection device 420 stops continuing to perform wireless connection or disconnection with the first device. As an example and not a limitation, the preset number may be less than or equal to 10, for example, the preset number may be 5.
在执行次数到达了预设数量,且无线连接装置420无法修复异常的情况下,该无线连接装置420可将该异常信息发送给电池管理设备400的外部设备,以便于管理者能够对该异常及时关注并进行相关部件的维修。When the number of executions reaches the preset number and the wireless connection device 420 cannot repair the abnormality, the wireless connection device 420 can send the abnormality information to the external device of the battery management device 400 so that the administrator can respond to the abnormality in a timely manner. Pay attention to and perform repairs on relevant parts.
通过本申请实施例的技术方案,在无线连接装置420与第一设备之间的无线连断存在异常的情况下,无线连接装置420自身能够对该异常进行修复,以使得其与第一设备之间的无线连断恢复到正常状态,从而进一步提高电池管理设备400与第一设备之间的连接可靠性。或者,在无线连接装置420重复执行与第一设备的无线连断动作达到预设次数,且无法对该异常进行修复的情况下,该无线连接装置420不会再继续重复执行与第一设备的无线连断动作,造成系统资源浪费,也能在一定程度上优化电池管理设备400的整体性能。Through the technical solution of the embodiment of the present application, when there is an abnormality in the wireless connection between the wireless connection device 420 and the first device, the wireless connection device 420 itself can repair the abnormality so that it can communicate with the first device. The wireless connection between the battery management device 400 and the first device is restored to a normal state, thereby further improving the connection reliability between the battery management device 400 and the first device. Alternatively, when the wireless connection device 420 repeatedly performs the wireless connection operation with the first device for a preset number of times and the abnormality cannot be repaired, the wireless connection device 420 will not continue to repeatedly perform the wireless connection operation with the first device. Wireless continuous actions cause a waste of system resources and can also optimize the overall performance of the battery management device 400 to a certain extent.
图8示出了本申请实施例提供的一种电池管理设备400的无线连接方法800的示意性流程框图。该无线连接方法800同样应用于上文图4中所示的电池管理设备400中的无线连接装置420。FIG. 8 shows a schematic flow chart of a wireless connection method 800 for a battery management device 400 provided by an embodiment of the present application. The wireless connection method 800 is also applied to the wireless connection device 420 in the battery management device 400 shown in FIG. 4 above.
如图8所示,在本申请实施例中,该无线连接方法800可以包括以下步骤。As shown in Figure 8, in this embodiment of the present application, the wireless connection method 800 may include the following steps.
S810:接收连断请求数据。S810: Receive connection request data.
S820:根据连断请求数据,与第一设备无线连接或断开。S820: Wirelessly connect or disconnect with the first device according to the connection request data.
S830:检测第一状态标识,该第一状态标识用于指示与第一设备之间的连断状态。S830: Detect the first status identifier, which is used to indicate the connection state with the first device.
S840:每间隔预设时间段,根据第一状态标识以及连断请求数据,判断与第一设备之间的无线连接或断开是否正常。S840: Every preset time period, determine whether the wireless connection or disconnection with the first device is normal according to the first status identifier and the connection request data.
在本申请实施例中,步骤S810至S830的具体实施方案可以参见上文图5中步骤S510至S530的相关描述。In the embodiment of the present application, for the specific implementation of steps S810 to S830, please refer to the relevant description of steps S510 to S530 in Figure 5 above.
步骤S840可以为上文图5中步骤S540的一种实现方式。Step S840 may be an implementation of step S540 in Figure 5 above.
具体地,在步骤S840中,无线连接装置420可以每间隔预设时间段根据第一状态标识以及连断请求数据,判断与第一设备之间的无线连接或断开是否正常,以实现对与第一设备之间无线连断的持续监控,保障该无线连接装置420与第一设备之间长期的无线连断的可靠性。Specifically, in step S840, the wireless connection device 420 may determine whether the wireless connection or disconnection with the first device is normal according to the first status identifier and the connection request data every preset time period, so as to realize the connection with the first device. The continuous monitoring of the wireless connection between the first device ensures the reliability of the long-term wireless connection between the wireless connection device 420 and the first device.
作为一种示例,本申请实施例中预设时间段可小于或等于1ms。在其它示例中,该预设时间段还可以根据实际情况进行调整,本申请实施例对该预设时间段的具体数值不做限定。As an example, the preset time period in the embodiment of the present application may be less than or equal to 1 ms. In other examples, the preset time period can also be adjusted according to actual conditions, and the embodiment of the present application does not limit the specific value of the preset time period.
图9示出了本申请实施例提供的一种电池管理设备400的无线连接方法900的示意性流程框图。该无线连接方法900同样应用于上文图4中所示的电池管理设备400中的无线连接装置420。可选地,在本申请实施例中,无线连接装置420还可包括结构体模块和/或非易失性存储(Non-Volatile Memory,NVM)模块。其中,该结构体模块可位于无线连接装置420的内存中,便于该无线连接装置420对该结构体模块中的数据 进行读写。该NVM模块除了可位于无线连接装置420以外,还可以位于无线连接装置420的外部且与该无线连接装置420连接。FIG. 9 shows a schematic flow chart of a wireless connection method 900 for a battery management device 400 provided by an embodiment of the present application. The wireless connection method 900 is also applied to the wireless connection device 420 in the battery management device 400 shown in FIG. 4 above. Optionally, in this embodiment of the present application, the wireless connection device 420 may also include a structure module and/or a non-volatile memory (Non-Volatile Memory, NVM) module. The structure module can be located in the memory of the wireless connection device 420, so that the wireless connection device 420 can read and write the data in the structure module. In addition to being located in the wireless connection device 420 , the NVM module can also be located outside the wireless connection device 420 and connected to the wireless connection device 420 .
如图9所示,在本申请实施例中,该无线连接方法900可以包括以下步骤。As shown in Figure 9, in this embodiment of the present application, the wireless connection method 900 may include the following steps.
S910:接收连断请求数据。S910: Receive connection request data.
S920:将连断请求数据写入结构体模块和/或NVM模块。S920: Write the connection request data into the structure module and/or NVM module.
S930:根据连断请求数据,与第一设备无线连接或断开。S930: Wirelessly connect or disconnect with the first device according to the connection request data.
S940:检测第一状态标识,该第一状态标识用于指示与第一设备之间的连断状态。S940: Detect the first status identifier, which is used to indicate the connection state with the first device.
S950:将第一状态标识写入结构体模块和/或NVM模块。S950: Write the first status identifier into the structure module and/or NVM module.
S960:根据第一状态标识以及连断请求数据,判断与第一设备之间的无线连接或断开是否正常。S960: Determine whether the wireless connection or disconnection with the first device is normal according to the first status identifier and the connection request data.
在本申请实施例中,步骤S910、S930、S940和S960的具体实施方案可以参见上文图5中步骤S510至S540的相关描述。In the embodiment of the present application, for the specific implementation of steps S910, S930, S940 and S960, please refer to the relevant description of steps S510 to S540 in Figure 5 above.
在步骤S920中,在无线连接装置420在接收连断请求数据后,可以将该连断请求数据写入内存中的结构体模块,以便于后续过程中,能够快速的对该结构体模块中的连断请求数据进行读写,并根据该连断请求数据对连接故障进行修复,提高无线连接装置420与第一设备的连接可靠性。另外,在无线连接装置420在接收连断请求数据后,也可以将该连断请求数据存储至NVM模块中,该NVM模块为一种掉电后,其中存储的数据不会丢失的存储模块。因此,将连断请求数据存储至NVM模块之后,可以防止掉电等外部原因造成连断请求数据的丢失,保障后续无线连接装置420对于与第一设备的连断状态的监控性能,从而进一步提升电池管理设备400与第一设备之间的连接可靠性。In step S920, after receiving the connection request data, the wireless connection device 420 can write the connection request data into the structure module in the memory, so that in the subsequent process, the connection request data in the structure module can be quickly processed. The connection request data is read and written, and the connection fault is repaired according to the connection request data, thereby improving the connection reliability between the wireless connection device 420 and the first device. In addition, after the wireless connection device 420 receives the connection request data, it can also store the connection request data in the NVM module. The NVM module is a storage module in which the data stored therein will not be lost after power failure. Therefore, after the connection request data is stored in the NVM module, the loss of the connection request data caused by external reasons such as power outage can be prevented, ensuring the monitoring performance of the subsequent wireless connection device 420 for the connection status with the first device, thereby further improving Connection reliability between the battery management device 400 and the first device.
类似地,在步骤S950中,在无线连接装置420检测用于指示与第一设备之间的连断状态的第一状态标识之后,同样可以将该第一状态标识写入内存中的结构体模块,以便于后续过程中,能够快速的对该结构体模块中的第一状态标识进行读写,并根据该第一状态标识实现对无线连接装置420与第一设备之间连断状态的监控,提高无线连接装置420与第一设备之间的连断状态的监控效率。另外,在无线连接装置420检测用于指示与第一设备之间的连断状态的第一状态标识之后,也可以将该第一状态标识写入NVM模块,防止掉电等外部原因造成第一状态标识的丢失,保障后续无线连接装置420与第一设备之间的连断状态的监控性能。Similarly, in step S950, after the wireless connection device 420 detects the first state identifier used to indicate the connection state with the first device, the first state identifier can also be written into the structure module in the memory. , so that in the subsequent process, the first status identifier in the structure module can be quickly read and written, and the connection status between the wireless connection device 420 and the first device can be monitored according to the first status identifier, The monitoring efficiency of the connection status between the wireless connection device 420 and the first device is improved. In addition, after the wireless connection device 420 detects the first state identifier used to indicate the connection state with the first device, the first state identifier can also be written into the NVM module to prevent the first state identifier from being caused by external reasons such as power outage. The loss of the status identifier ensures subsequent monitoring performance of the connection status between the wireless connection device 420 and the first device.
图10示出了本申请实施例提供的一种电池管理设备400的无线连接方法1000的示意性流程框图。该无线连接方法1000可同样应用于上文图4中所示的电池管理设备400中的无线连接装置420。FIG. 10 shows a schematic flow chart of a wireless connection method 1000 for a battery management device 400 provided by an embodiment of the present application. The wireless connection method 1000 can also be applied to the wireless connection device 420 in the battery management device 400 shown in FIG. 4 above.
如图10所示,在本申请实施例中,该无线连接方法1000可以包括以下步骤。As shown in Figure 10, in this embodiment of the present application, the wireless connection method 1000 may include the following steps.
S1010:接收连断请求数据。S1010: Receive connection request data.
S1020:将连断请求数据写入NVM模块。S1020: Write the connection request data to the NVM module.
S1030:根据连断请求数据,与第一设备无线连接或断开。S1030: Wirelessly connect or disconnect with the first device according to the connection request data.
S1040:检测第一状态标识,该第一状态标识用于指示与第一设备之间的连断 状态。S1040: Detect the first status identifier, which is used to indicate the connection state with the first device.
S1050:根据第一状态标识以及连断请求数据,判断与第一设备之间的无线连接或断开是否正常。S1050: Determine whether the wireless connection or disconnection with the first device is normal according to the first status identifier and the connection request data.
S1060:在电池管理设备断电且重新上电后,从NVM模块中读取连断请求数据。S1060: After the battery management device is powered off and powered on again, read the connection request data from the NVM module.
S1070:根据连断请求数据,再次与第一设备无线连接或断开。S1070: Wirelessly connect or disconnect with the first device again according to the connection request data.
在本申请实施例中,步骤S1010至S1050的具体实施方案可以参见上文图9实施例的相关描述。In the embodiment of this application, for the specific implementation of steps S1010 to S1050, please refer to the relevant description of the embodiment in Figure 9 above.
在步骤S1060和步骤S1070中,在电池管理设备400断电且重新上电后,无线连接装置420能够从NVM模块中读取断电前存储的连断请求数据,并根据该连断请求数据再次执行与第一设备的无线连接或断开。In step S1060 and step S1070, after the battery management device 400 is powered off and powered on again, the wireless connection device 420 can read the connection request data stored before the power off from the NVM module, and reconnect according to the connection request data. Perform wireless connection or disconnection with the first device.
通过本申请实施例的技术方案,无线连接装置420中可设置NVM模块,当无线连接装置420接收连断请求数据后,可同步将该连断请求数据存储至该NVM模块中,在电池管理设备400断电且重新上电后,无线连接装置420可从该NVM模块中读取连断请求数据,且根据该连断请求数据自动重新实现与第一设备之间的无线连断,消除电池管理设备400断电对电池管理设备400与第一设备之间的无线连断的影响,从而提高电池管理设备400与第一设备之间的连接性能。Through the technical solution of the embodiment of the present application, an NVM module can be provided in the wireless connection device 420. After the wireless connection device 420 receives the connection request data, the connection request data can be synchronously stored in the NVM module. In the battery management device After 400 is powered off and powered on again, the wireless connection device 420 can read the connection request data from the NVM module, and automatically re-implement the wireless connection with the first device based on the connection request data, eliminating battery management. The power outage of the device 400 affects the wireless connection between the battery management device 400 and the first device, thereby improving the connection performance between the battery management device 400 and the first device.
可选地,在一些实施方式中,在上述步骤S1040之后,该无线连接方法1000还可包括:将第一状态标识写入NVM模块中。在此基础上,进一步地,上述步骤S1060可包括:在电池管理设备断电且重新上电后,从NVM模块中读取连断请求数据和第一状态标识。上述步骤S1070可包括:根据连断请求数据和第一状态标识,再次与第一设备无线连接或断开。Optionally, in some implementations, after the above step S1040, the wireless connection method 1000 may further include: writing the first status identifier into the NVM module. On this basis, further, the above step S1060 may include: reading the connection request data and the first status identifier from the NVM module after the battery management device is powered off and powered on again. The above-mentioned step S1070 may include: wirelessly connecting or disconnecting with the first device again according to the connection request data and the first status identifier.
可选地,在一些实施方式中,无线连接装置420可以判断第一状态标识指示的连断状态与连断请求数据指示的连断请求是否一致,在第一状态标识指示的连断状态与连断请求数据指示的连断请求一致的情况下,根据连断请求数据执行与第一设备的无线连接或断开。Optionally, in some embodiments, the wireless connection device 420 may determine whether the connection state indicated by the first status identifier is consistent with the connection request indicated by the connection request data. When the connection state indicated by the first status identifier is consistent with the connection request, If the connection request indicated by the connection request data is consistent, wireless connection or disconnection with the first device is performed according to the connection request data.
通过本申请实施例的技术方案,在电池管理设备400断电且重新上电后,无线连接装置420可以从NVM模块中读取该第一状态标识以及连断请求数据,并根据该第一状态标识以及连断请求数据自动重新实现与第一设备之间的无线连断。因此,通过该技术方案,在能够自动消除电池管理设备400断电对电池管理设备400与第一设备之间的无线连断的影响的同时,还能够提高无线连接装置420自动重新实现与第一设备之间的无线连断的可靠性,从而进一步提高电池管理设备400与第一设备之间的连接性能。Through the technical solutions of the embodiments of the present application, after the battery management device 400 is powered off and on again, the wireless connection device 420 can read the first status identifier and the connection request data from the NVM module, and perform the operation according to the first status. The identification and connection request data automatically re-establish the wireless connection with the first device. Therefore, through this technical solution, the impact of the power outage of the battery management device 400 on the wireless connection between the battery management device 400 and the first device can be automatically eliminated, and at the same time, it can also improve the automatic re-implementation of the wireless connection device 420 and the first device. The reliability of the wireless connection between the devices further improves the connection performance between the battery management device 400 and the first device.
图11示出了本申请实施例提供的一种电池管理设备400的无线连接方法1100的示意性流程框图。该无线连接方法1100可同样应用于上文图4中所示的电池管理设备400中的无线连接装置420。Figure 11 shows a schematic flow chart of a wireless connection method 1100 for a battery management device 400 provided by an embodiment of the present application. The wireless connection method 1100 can also be applied to the wireless connection device 420 in the battery management device 400 shown in FIG. 4 above.
如图11所示,在本申请实施例中,该无线连接方法1100可以包括以下步骤。As shown in Figure 11, in this embodiment of the present application, the wireless connection method 1100 may include the following steps.
S1110:接收连接请求数据。S1110: Receive connection request data.
S1120:将连接请求数据写入NVM模块。S1120: Write the connection request data to the NVM module.
S1130:根据连接请求数据,与第一设备无线连接或断开。S1130: Wirelessly connect or disconnect with the first device according to the connection request data.
S1140:检测第一状态标识,该第一状态标识用于指示与第一设备之间的连断状态。S1140: Detect the first status identifier, which is used to indicate the connection state with the first device.
S1150:将第一状态标识写入NVM模块。S1150: Write the first status identifier into the NVM module.
S1160:根据第一状态标识以及连接请求数据,判断与第一设备之间的无线连接或断开是否正常。S1160: Determine whether the wireless connection or disconnection with the first device is normal according to the first status identifier and the connection request data.
S1170:在电池管理设备断电且重新上电后,从NVM模块中读取连接请求数据和第一状态标识。S1170: After the battery management device is powered off and powered on again, read the connection request data and the first status identifier from the NVM module.
S1181:判断第一状态标识指示的连断状态是否为连接。S1181: Determine whether the disconnection state indicated by the first status indicator is connected.
S1182:在第一状态标识指示的连断状态为连接的情况下,根据连接请求数据,再次与第一设备无线连接或断开。S1182: When the connection state indicated by the first status identifier is connected, wirelessly connect or disconnect with the first device again according to the connection request data.
在第一状态标识指示的连断状态为断开的情况下,则不执行与第一设备的重连。When the connection status indicated by the first status indicator is disconnected, reconnection with the first device is not performed.
可选地,在本申请实施例中,步骤S1110可以为图10中步骤S1010的一种实现方式。当连断请求数据用于指示与第一设备无线连接时,该连断请求数据也可称之为连接请求数据。Optionally, in this embodiment of the present application, step S1110 may be an implementation of step S1010 in Figure 10 . When the connection request data is used to indicate a wireless connection with the first device, the connection request data may also be called connection request data.
另外,在本申请实施例中,步骤S1120至S1170的具体实施方案可以参见上文图10实施例的相关描述。可选地,步骤S1181至步骤S1182可以为图10中步骤S1070的一种实施方式。In addition, in the embodiment of the present application, for the specific implementation of steps S1120 to S1170, please refer to the relevant description of the embodiment in Figure 10 above. Optionally, steps S1181 to S1182 may be an implementation of step S1070 in Figure 10 .
具体地,在步骤S1181和步骤S1182中,第一状态标识能够用于指示无线连接装置420与第一设备当前的连断状态为相互连接或者相互断开。根据该第一状态标识,无线连接装置420能够判断在电池管理设备400断电之前,其与第一设备的连断状态是否为连接。Specifically, in step S1181 and step S1182, the first status identifier can be used to indicate that the current connection status of the wireless connection device 420 and the first device is mutually connected or mutually disconnected. According to the first status identifier, the wireless connection device 420 can determine whether the connection state with the first device is connected before the battery management device 400 is powered off.
在步骤S1182中,在第一状态标识指示的连断状态为连接的情况下,说明在电池管理设备400断电之前,无线连接装置420与第一设备相互连接。此时,无线连接装置420再根据连断请求数据,执行与第一设备的无线连接,能够提高无线连接装置420与第一设备重连的可靠性,使得无线连接装置420与第一设备之间的状态恢复至电池管理设备400断电之前。In step S1182, if the connection state indicated by the first status indicator is connected, it means that the wireless connection device 420 and the first device are connected to each other before the battery management device 400 is powered off. At this time, the wireless connection device 420 then performs a wireless connection with the first device according to the connection request data, which can improve the reliability of reconnection between the wireless connection device 420 and the first device, so that the wireless connection device 420 and the first device can The state is restored to before the battery management device 400 was powered off.
可选地,在一些实施方式中,在无线连接装置420根据所述连断请求数据,再次与第一设备无线连接或断开之后,上述无线连接方法1000或无线连接方法1100还包括:再次检测第一状态标识,根据第一状态标识以及所述连断请求数据,再次判断与第一设备之间的无线连接或断开是否正常。Optionally, in some embodiments, after the wireless connection device 420 wirelessly connects or disconnects with the first device again according to the connection request data, the above-mentioned wireless connection method 1000 or wireless connection method 1100 further includes: detecting again The first state identifier is used to determine again whether the wireless connection or disconnection with the first device is normal based on the first state identifier and the connection request data.
即,在该实施方式中,无线连接装置420可重复执行上文图10中所示的步骤S1040以及步骤S1050,或者,无线连接装置420也可以重复执行上文图11中所示的步骤S1140至步骤S1160,以持续实现对第一状态标识的检测以及对无线连接装置420与第一设备之间无线连断的监控,从而进一步持续且有效实现对电池管理设备与第一设备之间的无线连断状态的监控,从而提高电池管理设备与第一设备之间的连接性能。That is, in this embodiment, the wireless connection device 420 can repeatedly perform steps S1040 and S1050 shown in FIG. 10 above, or the wireless connection device 420 can also repeatedly perform steps S1140 to S1140 shown in FIG. 11 above. Step S1160, to continuously realize the detection of the first status identifier and the monitoring of the wireless connection between the wireless connection device 420 and the first device, so as to further continuously and effectively realize the wireless connection between the battery management device and the first device. Monitor the disconnection status, thereby improving the connection performance between the battery management device and the first device.
上文结合图5至图11,说明了本申请实施例中,连断状态数据包括第一状态标识的相关技术方案。可选地,连断状态数据除了可包括第一状态标识以外,还可包括: 第一信息标识,该第一信息标识用于指示无线连接装置420与第一设备无线连接或断开的执行情况,根据该第一信息标识,可判断无线连接装置420及其所在的电池管理设备400与第一设备之间的无线连断是否正常。The above describes the relevant technical solution in which the connection state data includes the first state identifier in the embodiment of the present application with reference to FIGS. 5 to 11 . Optionally, in addition to the first status identifier, the connection status data may also include: a first information identifier, which is used to indicate the execution status of wireless connection or disconnection between the wireless connection device 420 and the first device. , according to the first information identifier, it can be determined whether the wireless connection between the wireless connection device 420 and the battery management device 400 where it is located and the first device is normal.
在该情况下,图12示出了本申请实施例提供的一种电池管理设备400的无线连接方法1200的示意性流程框图。该无线连接方法1200同样应用于上文图4中所示的电池管理设备400中的无线连接装置420。In this case, FIG. 12 shows a schematic flow chart of a wireless connection method 1200 of the battery management device 400 provided by the embodiment of the present application. The wireless connection method 1200 is also applied to the wireless connection device 420 in the battery management device 400 shown in FIG. 4 above.
如图12所示,在本申请实施例中,该无线连接方法1200可以包括以下步骤。As shown in Figure 12, in this embodiment of the present application, the wireless connection method 1200 may include the following steps.
S1210:接收连断请求数据。S1210: Receive connection request data.
S1220:根据连断请求数据,与第一设备无线连接或断开。S1220: Wirelessly connect or disconnect with the first device according to the connection request data.
S1230:检测第一信息标识,该第一信息标识用于指示与第一设备无线连接或断开的执行情况。S1230: Detect the first information identifier, which is used to indicate the execution status of wireless connection or disconnection with the first device.
S1240:根据第一信息标识,判断与第一设备之间的无线连接或断开是否正常。S1240: Determine whether the wireless connection or disconnection with the first device is normal according to the first information identifier.
具体地,在本申请实施例中,步骤S1210至步骤S1220的具体实施方案可以参见上文图5所示实施例中步骤S510和步骤S520的相关描述。Specifically, in the embodiment of the present application, for the specific implementation of step S1210 to step S1220, please refer to the relevant description of step S510 and step S520 in the embodiment shown in FIG. 5 above.
在步骤S1230中,无线连接装置420检测第一信息标识,该第一信息标识用于指示无线连接装置420与第一设备之间的无线连接或断开的执行情况。可选地,该第一信息标识可用于指示无线连接装置420与第一设备连接或者断开是否完成。或者,在此基础上,该第一信息标识还可以进一步用于指示无线连接装置420与第一设备之间其它相关的连断执行信息。In step S1230, the wireless connection device 420 detects a first information identifier, which is used to indicate the execution status of wireless connection or disconnection between the wireless connection device 420 and the first device. Optionally, the first information identifier may be used to indicate whether the connection or disconnection between the wireless connection device 420 and the first device is completed. Alternatively, on this basis, the first information identifier may be further used to indicate other related connection and disconnection execution information between the wireless connection device 420 and the first device.
可选地,在一些实施方式中,在无线连接装置420中可具有无线通信协议栈,该无线连接装置420可根据连断请求数据,调用无线通信协议栈,以执行与第一设备的无线连接或断开。该无线连接装置420中可设置有第一信息标识,用于指示该无线通信协议栈对于与第一设备的无线连接或断开的执行情况。Optionally, in some embodiments, the wireless connection device 420 may have a wireless communication protocol stack, and the wireless connection device 420 may call the wireless communication protocol stack according to the connection request data to perform a wireless connection with the first device. or disconnected. The wireless connection device 420 may be provided with a first information identifier for indicating the execution status of the wireless communication protocol stack for wireless connection or disconnection with the first device.
由于无线连接装置420与第一设备无线连接或断开的执行情况会影响后续无线连接装置420与第一设备无线连接或断开的实际状态,因此,在步骤S1240中,无线连接装置420可根据上述第一信息标识,判断与第一设备之间的无线连接或断开是否正常,有利于实现对无线连接装置420与第一设备之间的无线连断状态的有效监控。Since the execution of the wireless connection or disconnection between the wireless connection device 420 and the first device will affect the subsequent actual state of the wireless connection or disconnection between the wireless connection device 420 and the first device, in step S1240, the wireless connection device 420 can perform the wireless connection or disconnection according to The above-mentioned first information identifier is used to determine whether the wireless connection or disconnection with the first device is normal, which is beneficial to effectively monitor the wireless connection status between the wireless connection device 420 and the first device.
综上,通过本申请实施例的技术方案,无线连接装置420检测用于指示与第一设备无线连接或断开的执行情况的第一信息标识,且根据该第一信息标识判断与第一设备之间的无线连接或断开是否正常,有利于实现无线连接装置420对与第一设备之间的无线连断状态的有效监控,从而提高电池管理设备400与第一设备之间的连接性能。In summary, through the technical solutions of the embodiments of the present application, the wireless connection device 420 detects the first information identifier used to indicate the execution status of wireless connection or disconnection with the first device, and determines the connection with the first device based on the first information identifier. Whether the wireless connection or disconnection between the two devices is normal will help the wireless connection device 420 effectively monitor the wireless connection status with the first device, thereby improving the connection performance between the battery management device 400 and the first device.
图13示出了本申请实施例提供的一种电池管理设备400的无线连接方法1300的示意性流程框图。该无线连接方法1300同样应用于上文图4中所示的电池管理设备400中的无线连接装置420。FIG. 13 shows a schematic flow diagram of a wireless connection method 1300 for a battery management device 400 provided by an embodiment of the present application. The wireless connection method 1300 is also applied to the wireless connection device 420 in the battery management device 400 shown in FIG. 4 above.
如图13所示,在本申请实施例中,该无线连接方法1300包括以下步骤。As shown in Figure 13, in this embodiment of the present application, the wireless connection method 1300 includes the following steps.
S1310:接收连断请求数据。S1310: Receive connection request data.
S1320:根据连断请求数据,与第一设备无线连接或断开。S1320: Wirelessly connect or disconnect with the first device according to the connection request data.
S1330:检测第一信息标识。S1330: Detect the first information identifier.
S1341:根据第一信息标识,判断与第一设备无线连接或断开的执行是否完成。S1341: Based on the first information identifier, determine whether the execution of wireless connection or disconnection with the first device is completed.
S1342:在与第一设备无线连接或断开执行完成的情况下,确定与第一设备之间的无线连接或断开为正常。S1342: When the wireless connection or disconnection with the first device is completed, determine that the wireless connection or disconnection with the first device is normal.
S1343:在与第一设备无线连接或断开未执行完成的情况下,确定与第一设备之间的无线连接或断开为异常。S1343: When the wireless connection or disconnection with the first device is not completed, determine that the wireless connection or disconnection with the first device is abnormal.
具体地,在本申请实施例中,步骤S1310至步骤S1330的具体技术方案可以参见上文图12所示实施例中步骤S1210至步骤S1230的相关描述。Specifically, in the embodiment of the present application, for the specific technical solution from step S1310 to step S1330, please refer to the relevant description of step S1210 to step S1230 in the embodiment shown in FIG. 12 above.
另外,本申请实施例中的步骤S1341至步骤S1343可以为上述步骤S1240的一种实现方式。In addition, steps S1341 to S1343 in the embodiment of the present application may be an implementation manner of the above-mentioned step S1240.
具体地,在步骤S1341中,第一信息标识能够用于指示无线连接装置420与第一设备当前无线连接或断开的执行是否完成。在步骤S1342中,在第一信息标识指示无线连接装置420与第一设备无线连接或断开执行完成的情况下,无线连接装置420可以确定与第一设备之间的无线连断为正常。对应的,在步骤S1343中,在第一信息标识指示无线连接装置420与第一设备无线连接或断开未执行完成的情况下,无线连接装置420可以确定与第一设备之间的无线连断为异常。Specifically, in step S1341, the first information identifier can be used to indicate whether the current wireless connection or disconnection between the wireless connection device 420 and the first device is completed. In step S1342, if the first information identifier indicates that the wireless connection device 420 completes the wireless connection or disconnection with the first device, the wireless connection device 420 may determine that the wireless connection with the first device is normal. Correspondingly, in step S1343, when the first information identifier indicates that the wireless connection or disconnection between the wireless connection device 420 and the first device has not been completed, the wireless connection device 420 may determine the wireless connection with the first device. is abnormal.
在本申请实施例的技术方案中,通过第一信息标识,判断与第一设备无线连接或断开的执行是否完成,可以辅助判断无线连接装置420与第一设备之间的无线连接或断开是否为正常。该技术方案在能够提升无线连接装置420与第一设备之间连接性能的同时,能够较为方便的通过硬件和/或软件实现于无线连接装置420中。In the technical solution of the embodiment of the present application, the first information identifier is used to determine whether the wireless connection or disconnection with the first device is completed, which can assist in determining the wireless connection or disconnection between the wireless connection device 420 and the first device. Is it normal. While this technical solution can improve the connection performance between the wireless connection device 420 and the first device, it can be more conveniently implemented in the wireless connection device 420 through hardware and/or software.
可选地,在一些实施方式中,上述第一信息标识可被配置为:采用第一数值指示与第一设备无线连接或断开的执行完成,采用第二数值指示与第一设备无线连接或断开的执行未完成。Optionally, in some embodiments, the above-mentioned first information identifier may be configured to: use a first value to indicate the completion of wireless connection or disconnection with the first device, use a second value to indicate the completion of wireless connection or disconnection with the first device. The disconnected execution is not completed.
作为一种示例,第一数值和第二数值可以分别为0和1,其仅需占用较小的存储空间,即可有效标识不同的执行状态。当然,在其它示例中,第一数值和第二数值还可以分别为其它数值,本申请实施例对此不做具体限定。As an example, the first value and the second value can be 0 and 1 respectively, which only need to occupy a small storage space and can effectively identify different execution states. Of course, in other examples, the first numerical value and the second numerical value may also be other numerical values, which are not specifically limited in the embodiments of the present application.
或者,在另一些实施方式中,第一信息标识是否更新用于指示与第一设备无线连接或断开的执行是否完成,在该实施方式下,上述步骤S1341可以包括:判断第一信息标识是否更新,以判断与第一设备无线连接或断开的执行是否完成。具体地,在第一信息标识更新的情况下,确定与第一设备无线连接或断开的执行完成,反之,在第一信息标识未更新的情况下,确定与第一设备无线连接或断开的执行未完成。Or, in other embodiments, whether the first information identifier is updated is used to indicate whether the execution of wireless connection or disconnection with the first device is completed. In this embodiment, the above step S1341 may include: determining whether the first information identifier is Update to determine whether the execution of wireless connection or disconnection with the first device is completed. Specifically, if the first information identifier is updated, it is determined that the wireless connection or disconnection with the first device is completed; conversely, if the first information identifier is not updated, it is determined that the wireless connection or disconnection with the first device is completed. The execution is not completed.
通过该实施方式的技术方案,可以利用第一信息标识的更新判断与第一设备无线连接或断开的执行是否完成,判断过程十分便捷,且实现较为简单,能够提高无线连接装置420对与第一设备之间的无线连断状态的监控效率。Through the technical solution of this embodiment, the update of the first information identifier can be used to determine whether the wireless connection or disconnection with the first device is completed. The determination process is very convenient and simple to implement, and can improve the connection between the wireless connection device 420 and the third device. Monitoring efficiency of wireless connection status between devices.
图14示出了本申请实施例提供的一种电池管理设备400的无线连接方法1400的示意性流程框图。该无线连接方法1400同样应用于上文图4中所示的电池管理设备400中的无线连接装置420。FIG. 14 shows a schematic flow diagram of a wireless connection method 1400 for a battery management device 400 provided by an embodiment of the present application. The wireless connection method 1400 is also applied to the wireless connection device 420 in the battery management device 400 shown in FIG. 4 above.
如图14所示,在本申请实施例中,该无线连接方法1400包括上文图13所示实施例中的步骤S1310至S1343,在此基础上,在确定与第一设备之间的无线连接或断开 为异常的情况下,该无线连接方法1400还可以包括以下步骤。As shown in Figure 14, in the embodiment of the present application, the wireless connection method 1400 includes steps S1310 to S1343 in the embodiment shown in Figure 13 above. On this basis, after determining the wireless connection with the first device Or when the disconnection is abnormal, the wireless connection method 1400 may also include the following steps.
S1450:根据连断请求数据,再至少一次执行与第一设备无线连接或断开。S1450: Perform wireless connection or disconnection with the first device at least once according to the connection request data.
S1460:再至少一次检测第一信息标识,直至该第一信息标识指示与第一设备无线连接或断开执行完成。S1460: Detect the first information identifier at least once again until the first information identifier indicates that the wireless connection or disconnection with the first device is completed.
具体地,在本申请实施例中,在无线连接装置420确定与第一设备之间的无线连断为异常的情况下,该无线连接装置420可以继续根据连断请求数据,再至少一次执行与第一设备无线连接或断开,以修复与第一设备之间的无线连断异常。Specifically, in this embodiment of the present application, when the wireless connection device 420 determines that the wireless connection with the first device is abnormal, the wireless connection device 420 may continue to perform at least one connection request based on the connection request data. The first device is connected or disconnected wirelessly to repair the abnormal wireless connection with the first device.
具体地,在无线连接装置420每次执行与第一设备的无线连接或断开后,无线连接装置420可以重新检测第一信息标识,且根据该新检测到的第一信息标识判断其与第一设备之间无线连断是否正常。Specifically, each time the wireless connection device 420 performs wireless connection or disconnection with the first device, the wireless connection device 420 may re-detect the first information identifier, and determine whether it is related to the third information identifier based on the newly detected first information identifier. Whether the wireless connection between the devices is normal.
无线连接装置420至少一次重新执行与第一设备无线连接或断开,且至少一次检测第一信息标识,直至第一信息标识指示无线连接装置420与第一设备之间无线连断正常,即该无线连接装置420与第一设备之间的无线连断异常得到修复。The wireless connection device 420 re-executes wireless connection or disconnection with the first device at least once, and detects the first information identifier at least once, until the first information identifier indicates that the wireless connection between the wireless connection device 420 and the first device is normal, that is, the The wireless connection abnormality between the wireless connection device 420 and the first device is repaired.
通过本申请实施例的技术方案,在无线连接装置420与第一设备之间的无线连断存在异常的情况下,无线连接装置420自身能够对该异常进行修复,以使得其与第一设备之间的无线连断恢复到正常状态,从而进一步提高电池管理设备400与第一设备之间的连接可靠性。Through the technical solution of the embodiment of the present application, when there is an abnormality in the wireless connection between the wireless connection device 420 and the first device, the wireless connection device 420 itself can repair the abnormality so that it can communicate with the first device. The wireless connection between the battery management device 400 and the first device is restored to a normal state, thereby further improving the connection reliability between the battery management device 400 and the first device.
图15示出了本申请实施例提供的一种电池管理设备400的无线连接方法1500的示意性流程框图。该无线连接方法1500同样应用于上文图4中所示的电池管理设备400中的无线连接装置420。FIG. 15 shows a schematic flow diagram of a wireless connection method 1500 for a battery management device 400 provided by an embodiment of the present application. The wireless connection method 1500 is also applied to the wireless connection device 420 in the battery management device 400 shown in FIG. 4 above.
如图15所示,在本申请实施例中,该无线连接方法1500可以包括以下步骤。As shown in Figure 15, in this embodiment of the present application, the wireless connection method 1500 may include the following steps.
S1510:接收连断请求数据。S1510: Receive connection request data.
S1520:根据连断请求数据,与第一设备无线连接或断开。S1520: Wirelessly connect or disconnect with the first device according to the connection request data.
S1530:检测第一信息标识,该第一信息标识用于指示与第一设备无线连接或断开的执行情况。S1530: Detect the first information identifier, which is used to indicate the execution status of wireless connection or disconnection with the first device.
S1540:每间隔预设时间段,根据第一信息标识,判断与第一设备之间的无线连接或断开是否正常。S1540: Every preset time period, determine whether the wireless connection or disconnection with the first device is normal according to the first information identifier.
在本申请实施例中,步骤S1510至S1530的具体实施方案可以参见上文图12中步骤S1210至S1230的相关描述。In the embodiment of this application, for the specific implementation of steps S1510 to S1530, please refer to the relevant description of steps S1210 to S1230 in Figure 12 above.
步骤S1540可以为上文图12中步骤S1240的一种实现方式。Step S1540 may be an implementation of step S1240 in Figure 12 above.
具体地,在步骤S1540中,无线连接装置420可以每间隔预设时间段根据第一信息标识,判断与第一设备之间的无线连接或断开是否正常,以实现对与第一设备之间无线连断的持续监控,保障该无线连接装置420与第一设备之间长期的无线连断的可靠性。Specifically, in step S1540, the wireless connection device 420 may determine whether the wireless connection or disconnection with the first device is normal according to the first information identifier every preset time period, so as to realize the communication between the first device and the first device. The continuous monitoring of wireless connection ensures the reliability of long-term wireless connection between the wireless connection device 420 and the first device.
作为一种示例,本申请实施例中预设时间段可小于或等于1ms。在其它示例中,该预设时间段还可以根据实际情况进行调整,本申请实施例对该预设时间段的具体数值不做限定。As an example, the preset time period in the embodiment of the present application may be less than or equal to 1 ms. In other examples, the preset time period can also be adjusted according to actual conditions, and the embodiment of the present application does not limit the specific value of the preset time period.
图16示出了本申请实施例提供的一种电池管理设备400的无线连接方法1600 的示意性流程框图。该无线连接方法1600同样应用于上文图4中所示的电池管理设备400中的无线连接装置420。可选地,在本申请实施例中,该无线连接装置420可包括状态机模块和无线通信协议栈模块,该状态机模块和无线通信协议栈模块可以为无线连接装置420中的软件模块。为了控制该状态机模块和无线通信协议栈模块,该无线连接装置420中还可包括主控模块,该主控模块也可以为无线连接装置420中的软件模块。FIG. 16 shows a schematic flow chart of a wireless connection method 1600 of the battery management device 400 provided by the embodiment of the present application. The wireless connection method 1600 is also applied to the wireless connection device 420 in the battery management device 400 shown in FIG. 4 above. Optionally, in this embodiment of the present application, the wireless connection device 420 may include a state machine module and a wireless communication protocol stack module, and the state machine module and the wireless communication protocol stack module may be software modules in the wireless connection device 420 . In order to control the state machine module and the wireless communication protocol stack module, the wireless connection device 420 may also include a main control module, and the main control module may also be a software module in the wireless connection device 420 .
如图16所示,在本申请实施例中,该无线连接方法1600可以包括以下步骤。As shown in Figure 16, in this embodiment of the present application, the wireless connection method 1600 may include the following steps.
S1610:主控模块接收连断请求数据,并调用状态机模块。S1610: The main control module receives the connection request data and calls the state machine module.
S1621:状态机模块根据连断请求数据,调用无线通信协议栈模块。S1621: The state machine module calls the wireless communication protocol stack module according to the connection request data.
S1622:无线通信协议栈模块执行与第一设备无线连接或断开,以形成第一信息标识。S1622: The wireless communication protocol stack module performs wireless connection or disconnection with the first device to form a first information identifier.
S1630:状态机模块检测第一信息标识,该第一信息标识用于指示与第一设备无线连接或断开的执行情况。S1630: The state machine module detects the first information identifier, which is used to indicate the execution status of wireless connection or disconnection with the first device.
S1640:状态机模块根据第一信息标识,判断无线连接装置与第一设备之间的无线连接或断开是否正常。S1640: The state machine module determines whether the wireless connection or disconnection between the wireless connection device and the first device is normal based on the first information identifier.
在本申请实施例中,步骤S1610可以为上文图12中步骤S1210的一种实现方式。步骤S1621至步骤S1622可以为上文图12中步骤S1220的一种实现方式。步骤S1630可以为上文图12中步骤S1230的一种实现方式。步骤S1640可以为上文图12中步骤S1240的一种实现方式。In this embodiment of the present application, step S1610 may be an implementation of step S1210 in Figure 12 above. Steps S1621 to S1622 may be an implementation of step S1220 in Figure 12 above. Step S1630 may be an implementation of step S1230 in Figure 12 above. Step S1640 may be an implementation of step S1240 in Figure 12 above.
具体地,在本申请实施例的无线连接装置420中,其内部可存储有多个软件模块,多个软件模块相互配合,以共同实现无线连接装置420的无线功能。在步骤S1610中,主控模块可用于接收外部设备发送的连断请求数据,根据该连断请求数据,该主控模块可调用状态机模块,开始执行连断动作。Specifically, in the wireless connection device 420 in the embodiment of the present application, multiple software modules may be stored therein, and the multiple software modules cooperate with each other to jointly realize the wireless function of the wireless connection device 420 . In step S1610, the main control module can be used to receive connection request data sent by the external device. According to the connection request data, the main control module can call the state machine module to start performing the connection action.
在步骤S1621和步骤S1622中,状态机模块根据连断请求数据,调用无线通信协议栈模块,该无线通信协议栈模块具体执行与第一设备无线连接或断开。进一步,在无线通信协议栈模块具体执行与第一设备无线连接或断开之后,该无线通信协议栈模块能够根据自身与第一设备无线连接或断开的执行情况生成或更新第一信息标识。因此,在本申请实施例中,第一信息标识用于指示该无线通信协议栈模块与第一设备无线连接或断开的执行情况。In steps S1621 and S1622, the state machine module calls the wireless communication protocol stack module according to the connection request data, and the wireless communication protocol stack module specifically performs wireless connection or disconnection with the first device. Further, after the wireless communication protocol stack module specifically performs wireless connection or disconnection with the first device, the wireless communication protocol stack module can generate or update the first information identifier according to its execution of wireless connection or disconnection with the first device. Therefore, in this embodiment of the present application, the first information identifier is used to indicate the execution status of wireless connection or disconnection between the wireless communication protocol stack module and the first device.
在步骤S1630和S1640中,状态机模块检测并读取该第一信息标识,且可根据该第一信息标识,判断无线连接装置与第一设备之间的无线连接或断开是否正常。可选地,主控模块可定期或非定期的调用该状态机模块,使得该状态机模块能够定期或非定期的根据第一信息标识,判断无线连接装置与第一设备之间的无线连接或断开是否正常。In steps S1630 and S1640, the state machine module detects and reads the first information identifier, and can determine whether the wireless connection or disconnection between the wireless connection device and the first device is normal based on the first information identifier. Optionally, the main control module can call the state machine module regularly or irregularly, so that the state machine module can regularly or irregularly determine the wireless connection between the wireless connection device and the first device based on the first information identifier. Is the disconnection normal?
通过本申请实施例的技术方案,无线连接装置420可包括多个软件模块,其中,不同软件模块用于执行不同功能,且能够相互配合。利用无线通信协议栈模块具体实现执行与第一设备无线连接或断开,易于对无线通信协议栈模块的执行动作进行监控且生成第一信息标识,该第一信息标识能够准确反映无线连接装置420与第一设备无线 连接或断开的执行情况。Through the technical solutions of the embodiments of the present application, the wireless connection device 420 may include multiple software modules, where different software modules are used to perform different functions and can cooperate with each other. Utilizing the wireless communication protocol stack module to specifically implement wireless connection or disconnection with the first device, it is easy to monitor the execution actions of the wireless communication protocol stack module and generate a first information identifier, which can accurately reflect the wireless connection device 420 Implementation of wireless connection or disconnection with the first device.
图17示出了本申请实施例提供的一种电池管理设备400的无线连接方法1700的示意性流程框图。该无线连接方法1700同样应用于上文图4中所示的电池管理设备400中的无线连接装置420。FIG. 17 shows a schematic flow chart of a wireless connection method 1700 of the battery management device 400 provided by the embodiment of the present application. The wireless connection method 1700 is also applied to the wireless connection device 420 in the battery management device 400 shown in FIG. 4 above.
如图17所示,在本申请实施例中,该无线连接方法1700可以包括以下步骤。As shown in Figure 17, in this embodiment of the present application, the wireless connection method 1700 may include the following steps.
S1710:接收连断请求数据。S1710: Receive connection request data.
S1720:根据连断请求数据,与第一设备无线连接。S1720: Wirelessly connect to the first device according to the connection request data.
S1730:执行与第一设备的主从认证。S1730: Perform master-slave authentication with the first device.
S1740:在与第一设备主从认证成功的情况下,将第一设备的认证信息存储于非易失性存储模块中。S1740: If the master-slave authentication with the first device is successful, store the authentication information of the first device in the non-volatile storage module.
在本申请实施例中,步骤S1710至S1720的具体实施方案可以参见上文图12所示实施例中步骤S1210和步骤S1220的相关描述。In the embodiment of this application, for the specific implementation of steps S1710 to S1720, please refer to the relevant description of step S1210 and step S1220 in the embodiment shown in Figure 12 above.
另外,在本申请实施例中,在步骤S1720之后,即无线连接装置420根据连断请求数据,与第一设备无线连接之后,该无线连接装置420执行步骤S1730,即无线连接装置420执行与第一设备的主从认证,以判断无线连接装置420与第一设备之间是否能够相互适配,从而保证无线连接装置420与第一设备之间后续正常的数据传输,提高系统鲁棒性。In addition, in the embodiment of the present application, after step S1720, that is, after the wireless connection device 420 wirelessly connects to the first device according to the connection request data, the wireless connection device 420 executes step S1730, that is, the wireless connection device 420 executes the connection with the first device. Master-slave authentication of a device is used to determine whether the wireless connection device 420 and the first device can adapt to each other, thereby ensuring subsequent normal data transmission between the wireless connection device 420 and the first device and improving system robustness.
可选地,如图17所示,在一些实施方式中,步骤S1730可以包括以下步骤。Optionally, as shown in Figure 17, in some implementations, step S1730 may include the following steps.
S1731:接收第一设备发送的第一报文以及第一随机数,该第一报文用于指示所述第一设备的主从认证。S1731: Receive the first message and the first random number sent by the first device. The first message is used to indicate the master-slave authentication of the first device.
S1732:对第一随机数执行算法处理,得到第一目标数。S1732: Perform algorithm processing on the first random number to obtain the first target number.
S1733:向第一设备发送匹配于该第一报文的第二报文以及第一目标数,以使得第一设备识别第二报文,并对该第一目标数进行算法检查,确定主从认证的结果。S1733: Send the second message matching the first message and the first target number to the first device, so that the first device recognizes the second message, and performs an algorithm check on the first target number to determine the master-slave number. Certification results.
具体地,在步骤S1731中,无线连接装置420接收第一设备发送的第一报文以及第一随机数,该无线连接装置420能够识别该第一报文,并根据该第一报文确定开始执行与第一设备的主从认证。Specifically, in step S1731, the wireless connection device 420 receives the first message and the first random number sent by the first device. The wireless connection device 420 is able to identify the first message and determine the start time based on the first message. Perform master-slave authentication with the first device.
在步骤S1732中,无线连接装置420能够使用特定算法对第一随机数进行数据,得到第一目标数。其中,该特定算法可以为无线连接装置420与第一设备预先约定的算法,本申请实施例对该特定算法的类型不做具体限定。In step S1732, the wireless connection device 420 can use a specific algorithm to perform data on the first random number to obtain the first target number. The specific algorithm may be an algorithm pre-agreed between the wireless connection device 420 and the first device, and the embodiment of the present application does not specifically limit the type of the specific algorithm.
在步骤S1733中,无线连接装置420向第一设备发送匹配于该第一报文的第二报文以及第一目标数,其中,该第二报文用于指示无线连接装置420的主从认证,第一设备接收并识别该第二报文,并根据该第一报文确定开始执行与无线连接装置420的主从认证。In step S1733, the wireless connection device 420 sends a second message matching the first message and the first target number to the first device, where the second message is used to indicate the master-slave authentication of the wireless connection device 420. , the first device receives and identifies the second message, and determines to start performing master-slave authentication with the wireless connection device 420 according to the first message.
具体地,第一设备也能够使用特定算法对第一目标数进行检查,以确定与无线连接装置420的主从认证结果。其中,第一设备使用的特定算法可以与无线连接装置420使用的特定算法相互匹配,例如,无线连接装置420使用的特定算法可以为加密算法,第一设备使用的特定算法可以为匹配于该编码算法的解密算法。Specifically, the first device can also use a specific algorithm to check the first target number to determine the master-slave authentication result with the wireless connection device 420 . The specific algorithm used by the first device can match the specific algorithm used by the wireless connection device 420. For example, the specific algorithm used by the wireless connection device 420 can be an encryption algorithm, and the specific algorithm used by the first device can match the encoding. Algorithm decryption algorithm.
在一些实施方式中,第一设备使用特定算法对第一目标数进行处理后,可以恢 复得到第一随机数,则认为第一设备与无线连接装置420主从认证成功,该第一设备与无线连接装置420能够相互适配,第一设备会通过无线通信方式开始向无线连接装置420发送数据,该第一设备与无线连接装置420建立起正常的无线连接。反之,第一设备使用特定算法对第一目标数进行处理后,不能恢复得到第一随机数,则认为第一设备与无线连接装置420主从认证失败,该第一设备与无线连接装置420不能相互适配,该第一设备不向无线连接装置420发送数据,该第一设备与无线连接装置420之间的无线连接相互断开。In some embodiments, after the first device uses a specific algorithm to process the first target number and can recover the first random number, it is considered that the master-slave authentication between the first device and the wireless connection device 420 is successful. The connection devices 420 can adapt to each other, and the first device will start sending data to the wireless connection device 420 through wireless communication, and the first device and the wireless connection device 420 will establish a normal wireless connection. On the contrary, if the first device cannot recover the first random number after using a specific algorithm to process the first target number, it is considered that the master-slave authentication between the first device and the wireless connection device 420 has failed, and the first device and the wireless connection device 420 cannot authenticate each other. To adapt to each other, the first device does not send data to the wireless connection device 420, and the wireless connection between the first device and the wireless connection device 420 is disconnected from each other.
通过本申请实施例的技术方案,无线连接装置420与第一设备之间通过报文以及数据的交互实现主从认证过程,可以具有较高的准确度,也便于无线连接装置420与第一设备内部的软件和/或硬件对该主从认证过程进行实现。Through the technical solutions of the embodiments of the present application, the master-slave authentication process is implemented between the wireless connection device 420 and the first device through the exchange of messages and data, which can achieve higher accuracy and facilitate the communication between the wireless connection device 420 and the first device. Internal software and/or hardware implements the master-slave authentication process.
在一些实施方式中,上述第一报文与第二报文为控制器局域网络(CAN)报文。在该实施方式中,无线连接装置420与第一设备之间利用CAN报文指示主从认证,一方面,可以适配相关技术中电池管理设备400与第一设备之间利用CAN报文进行主从认证的技术方案,另一方面,也可以便于后续过程对该CAN报文进行解析,以定位无线连接装置420与第一设备之间的主从认证交互。In some implementations, the first message and the second message are Controller Area Network (CAN) messages. In this embodiment, CAN messages are used between the wireless connection device 420 and the first device to indicate master-slave authentication. On the one hand, CAN messages can be used to perform master-slave authentication between the battery management device 400 and the first device in related technologies. On the other hand, the technical solution of slave authentication can also facilitate subsequent processes to parse the CAN message to locate the master-slave authentication interaction between the wireless connection device 420 and the first device.
可选地,在本申请实施例中,无线连接装置420还可包括NVM模块。继续参见图17,可选地,在本申请实施例中,在步骤S1730之后,即无线连接装置420执行完与第一设备的主从认证之后,无线连接装置420还执行步骤S1740,即在与第一设备主从认证成功的情况下,将第一设备的认证信息存储于NVM模块中,其中,该第一设备的认证信息用于指示第一设备与无线连接装置420的主从认证成功。Optionally, in this embodiment of the present application, the wireless connection device 420 may also include an NVM module. Continuing to refer to Figure 17, optionally, in this embodiment of the present application, after step S1730, that is, after the wireless connection device 420 completes the master-slave authentication with the first device, the wireless connection device 420 also performs step S1740, that is, after the wireless connection device 420 completes the master-slave authentication with the first device, When the master-slave authentication of the first device is successful, the authentication information of the first device is stored in the NVM module, where the authentication information of the first device is used to indicate that the master-slave authentication of the first device and the wireless connection device 420 is successful.
通过本申请实施例的技术方案,即使无线连接装置420掉电,也不会影响NVM模块中第一设备的认证信息的存储。在无线连接装置420掉电并重启后,根据该NVM模块中第一设备的认证信息,当无线连接装置420后续与第一设备进行无线连接时,可以直接进行数据通信,而不需要再重新进行与第一设备的主从认证,从而节约系统资源,提高无线连接装置420与第一设备的无线连接性能。Through the technical solution of the embodiment of the present application, even if the wireless connection device 420 is powered off, the storage of the authentication information of the first device in the NVM module will not be affected. After the wireless connection device 420 is powered off and restarted, according to the authentication information of the first device in the NVM module, when the wireless connection device 420 subsequently performs a wireless connection with the first device, data communication can be directly performed without the need to perform it again. Master-slave authentication with the first device, thereby saving system resources and improving wireless connection performance between the wireless connection device 420 and the first device.
可选地,在本申请实施例中,在无线连接装置420执行步骤S1730之后,该无线连接装置420还用于检测与第一设备之间的第一状态标识和/或第一信息标识,且根据该第一状态标识和/或第一信息标识判断与第一设备之间的无线连接或断开是否正常。具体方案可以参见上文实施例的相关描述,此处不做过多赘述。Optionally, in this embodiment of the present application, after the wireless connection device 420 performs step S1730, the wireless connection device 420 is also configured to detect the first status identifier and/or the first information identifier with the first device, and Determine whether the wireless connection or disconnection with the first device is normal according to the first status identifier and/or the first information identifier. For specific solutions, please refer to the relevant descriptions of the above embodiments, and will not be described in detail here.
图18示出了本申请实施例提供的一种电池管理设备400的无线连接方法1800的示意性流程框图。该无线连接方法1800可同样应用于上文图4中所示的电池管理设备400中的无线连接装置420,可选地,该无线连接装置420可以为蓝牙芯片。可选地,该蓝牙芯片连接于电池管理设备400中的控制装置410,例如,该控制装置410可以为主控芯片,或者也可以称之为主芯片。FIG. 18 shows a schematic flow chart of a wireless connection method 1800 for the battery management device 400 provided by the embodiment of the present application. The wireless connection method 1800 can also be applied to the wireless connection device 420 in the battery management device 400 shown in FIG. 4 above. Alternatively, the wireless connection device 420 can be a Bluetooth chip. Optionally, the Bluetooth chip is connected to the control device 410 in the battery management device 400. For example, the control device 410 may be a main control chip, or may also be called a main chip.
如图18所示,在本申请实施例中,该无线连接方法1800可以包括以下步骤。As shown in Figure 18, in this embodiment of the present application, the wireless connection method 1800 may include the following steps.
S1810:接收连断请求数据后,拷贝具体数据至特定数组中。S1810: After receiving the connection request data, copy the specific data to a specific array.
S1820:调用连断命令处理函数拷贝至特定ECU表格以及NVM中,并将主状态机切换至处理连断命令。S1820: Call the connection command processing function to copy it to the specific ECU table and NVM, and switch the main state machine to process the connection command.
S1830:主状态机判断具体的连断命令,调用协议栈接口完成与待接连接设备的连断。S1830: The main state machine determines the specific connection command and calls the protocol stack interface to complete the connection with the device to be connected.
S1840:判断蓝牙协议栈连断动作是否完成。S1840: Determine whether the Bluetooth protocol stack connection action is completed.
S1851:在蓝牙协议栈连断动作完成的情况下,更新特定标志位。S1851: When the Bluetooth protocol stack connection action is completed, update the specific flag bit.
S1852:在蓝牙协议栈连断动作未完成的情况下,不更新特定标志位。S1852: When the Bluetooth protocol stack connection action is not completed, the specific flag bit is not updated.
S1860:主从认证。S1860: Master-slave authentication.
S1870:判断是否认证成功。S1870: Determine whether the authentication is successful.
S1880:正常数据交互。S1880: Normal data interaction.
S1890:1ms调度主状态机。S1890: 1ms scheduling main state machine.
S18100:检测蓝牙连断状态以及特定标志位。S18100: Detect Bluetooth connection status and specific flag bits.
S18110:判断特定标志位是否更新以及检查连断状态与连断请求是否一致。S18110: Determine whether the specific flag bit is updated and check whether the connection status is consistent with the connection request.
S18120:在特定标志位未更新,和/或,连断状态与连断请求不一致的情况下,与待连接设备重连。S18120: Reconnect with the device to be connected when the specific flag bit is not updated and/or the connection status is inconsistent with the connection request.
S18130:重新上电后初始化NVM。S18130: Initialize NVM after powering on again.
S18140:检查连断状态是否为“连接”。S18140: Check whether the connection status is "connected".
S18150:在连断状态是“连接”的情况下,从NVM中取出连断请求数据,调用连断命令处理函数,与待连接设备重新连断。S18150: When the connection status is "connected", retrieve the connection request data from NVM, call the connection command processing function, and reconnect with the device to be connected.
具体地,对于步骤S1810,该连断请求数据可以为电池管理设备400中的主芯片通过通信总线(例如SPI总线)发送至蓝牙芯片的数据。蓝牙芯片接收到该连断请求数据后,将其拷贝至特定数组,以使得后续连断命令处理函数能够访问该数组中的连断请求数据。Specifically, for step S1810, the connection request data may be data sent by the main chip in the battery management device 400 to the Bluetooth chip through a communication bus (such as an SPI bus). After receiving the connection request data, the Bluetooth chip copies it to a specific array so that subsequent connection command processing functions can access the connection request data in the array.
对于步骤S1820,蓝牙芯片中包括主程序和主状态机程序,该主程序可调用连断命令处理函数,该连断命令处理函数能够将上述特定数组中的连断请求数据拷贝至特定的电子控制单元(Electronic Control Unit,ECU)表格以及NVM中,并将主状态机切换至处理该连断请求数据。其中,ECU表格为蓝牙芯片的内存中的一种结构体,NVM为蓝牙芯片中的非易失性存储器。For step S1820, the Bluetooth chip includes a main program and a main state machine program. The main program can call the connection command processing function. The connection command processing function can copy the connection request data in the above-mentioned specific array to a specific electronic control. Unit (Electronic Control Unit, ECU) table and NVM, and switch the main state machine to process the connection request data. Among them, the ECU table is a structure in the memory of the Bluetooth chip, and NVM is the non-volatile memory in the Bluetooth chip.
对于步骤S1830,蓝牙芯片中还包括蓝牙协议栈,主状态机判断连断请求数据的内容,若为连接命令,则调用蓝牙协议栈的连接接口,将连断请求数据的内容输入至连接接口。若为断开命令,则调用蓝牙协议栈的断开接口,将连断请求数据的内容输入至断开接口。通过该主状态机对蓝牙协议栈的接口调用,可以实现蓝牙芯片与待连接设备(例如,上文的第一设备)的蓝牙连断。For step S1830, the Bluetooth chip also includes a Bluetooth protocol stack. The main state machine determines the content of the connection request data. If it is a connection command, the connection interface of the Bluetooth protocol stack is called and the content of the connection request data is input to the connection interface. If it is a disconnection command, the disconnection interface of the Bluetooth protocol stack is called, and the content of the connection request data is input into the disconnection interface. Through the main state machine's interface call to the Bluetooth protocol stack, Bluetooth connection and disconnection between the Bluetooth chip and the device to be connected (for example, the first device above) can be realized.
对于步骤S1840,可判断蓝牙协议栈的蓝牙连断动作是否完成,且蓝牙芯片中可设置有特定标志位(例如,上文第一信息标识)用于表征该蓝牙协议栈的蓝牙连断动作是否完成。在默认情况下,该特定标志位不更新,其可为默认数值。For step S1840, it can be determined whether the Bluetooth connection and disconnection action of the Bluetooth protocol stack is completed, and a specific flag bit (for example, the first information identifier above) can be set in the Bluetooth chip to indicate whether the Bluetooth connection and disconnection action of the Bluetooth protocol stack is completed. Finish. By default, this specific flag is not updated and can be a default value.
对于步骤S1851和S1852,在蓝牙协议栈的蓝牙连断动作未完成的情况下,该蓝牙芯片中的特定标志位不更新,仍然保持为默认值。反之,在蓝牙协议栈的蓝牙连断动作完成的情况下,该蓝牙芯片中的特定标志位更新,由默认值变更为其它目标值。For steps S1851 and S1852, when the Bluetooth connection and disconnection action of the Bluetooth protocol stack is not completed, the specific flag bit in the Bluetooth chip is not updated and remains at the default value. On the contrary, when the Bluetooth connection and disconnection action of the Bluetooth protocol stack is completed, the specific flag bit in the Bluetooth chip is updated and changed from the default value to other target values.
在主状态机调用蓝牙协议栈完成与待连接设备的连断之后,蓝牙芯片与待连接 设备之间可实现蓝牙连接或断开。在蓝牙芯片与待连接设备之间蓝牙连接后,待连接设备与蓝牙芯片之间可相互发送数据包(或者,也可以称之为心跳包)。After the main state machine calls the Bluetooth protocol stack to complete the connection and disconnection with the device to be connected, Bluetooth connection or disconnection can be achieved between the Bluetooth chip and the device to be connected. After the Bluetooth chip and the device to be connected are connected via Bluetooth, the device to be connected and the Bluetooth chip can send data packets (or, it can also be called heartbeat packets) to each other.
若蓝牙芯片正常接收到数据包,则蓝牙芯片中ECU表格记录的用于表示蓝牙连断状态的标识位(例如,上文的第一状态标识)写为第一数值(例如1),表示蓝牙处于连接状态。If the Bluetooth chip receives the data packet normally, the identification bit recorded in the ECU table in the Bluetooth chip to indicate the Bluetooth connection status (for example, the first status identification above) is written as the first value (for example, 1), indicating that Bluetooth is connected.
信号不稳定时,蓝牙芯片接收到的数据包在预设时间段(例如2s)后没有更新,蓝牙协议栈就会处理断开。此时,蓝牙芯片中ECU表格记录的用于表示蓝牙连接状态的标识位写为第二数值(例如0),表示蓝牙处于断开状态。When the signal is unstable and the data packets received by the Bluetooth chip are not updated after a preset time period (such as 2s), the Bluetooth protocol stack will handle the disconnection. At this time, the flag bit recorded in the ECU table in the Bluetooth chip for indicating the Bluetooth connection status is written as a second value (for example, 0), indicating that Bluetooth is in a disconnected state.
可选地,该ECU表格中的标志位可实时更新,用于实时表征蓝牙芯片与待连接设备之间的连断状态。Optionally, the flag bits in the ECU table can be updated in real time to represent the connection status between the Bluetooth chip and the device to be connected in real time.
对于步骤S1860,主从认证可以理解为蓝牙芯片与待连接设备互相握手的过程,其中蓝牙芯片所在的电池管理设备可理解为主设备,待连接设备可理解为从设备。具体地,在主从认证过程中,蓝牙芯片与待连接设备相互连接后,互相打开数据的收发,这时只能进行长度有限的数据交互。待连接设备先发一帧特定报文与随机数A给到蓝牙芯片,蓝牙芯片将随机数A经过特定算法处理后得到目标数B,然后,蓝牙芯片再发一帧报文与目标数B给到待连接设备。待连接设备接收到目标数B后进行算法检查,没问题的情况下,允许数据正常交互。上述主从认证的过程需要在预定时间段(例如:500ms)以内完成,如果交互过程中,任意一个数据待连接设备没收到超时了,则待连接设备会主动断开蓝牙芯片。For step S1860, master-slave authentication can be understood as the process of handshaking between the Bluetooth chip and the device to be connected, where the battery management device where the Bluetooth chip is located can be understood as the master device, and the device to be connected can be understood as the slave device. Specifically, during the master-slave authentication process, after the Bluetooth chip and the device to be connected are connected to each other, they start sending and receiving data to each other. At this time, only data exchanges of limited length can be carried out. The device to be connected first sends a specific message frame and a random number A to the Bluetooth chip. The Bluetooth chip processes the random number A through a specific algorithm to obtain the target number B. Then, the Bluetooth chip sends another frame of message and the target number B to the Bluetooth chip. to the device to be connected. After the connected device receives the target number B, it performs an algorithm check. If there is no problem, normal data interaction is allowed. The above-mentioned master-slave authentication process needs to be completed within a predetermined time period (for example: 500ms). If any data to be connected is not received by any device to be connected during the interaction and times out, the device to be connected will actively disconnect the Bluetooth chip.
对于步骤S1870和步骤S1880,判断是否认证成功,若是,则蓝牙芯片与待连接设备之间可认为是相互适配的,两者后续可以进行正常的数据交互。例如,若待连接设备为车辆中的SMBU,蓝牙芯片所在的电池管理设备为MBMU,SBMU可向MBMU中的蓝牙芯片发送:电池的电流、电压,温度、SOC、SOH等数据。若否,则蓝牙芯片与待连接设备之间则不是相互适配的,待连接设备主动断开与蓝牙芯片之间的蓝牙连接,不向蓝牙芯片发送数据。For steps S1870 and S1880, it is determined whether the authentication is successful. If so, the Bluetooth chip and the device to be connected can be considered to be mutually adapted, and the two can subsequently perform normal data interaction. For example, if the device to be connected is the SMBU in the vehicle, and the battery management device where the Bluetooth chip is located is the MBMU, the SBMU can send data such as battery current, voltage, temperature, SOC, and SOH to the Bluetooth chip in the MBMU. If not, the Bluetooth chip and the device to be connected are not compatible with each other, and the device to be connected actively disconnects the Bluetooth connection with the Bluetooth chip and does not send data to the Bluetooth chip.
另外,主从认证成功后,可以将待连接设备的相关信息写入蓝牙芯片的NVM中,后续蓝牙芯片与该待连接设备连接时,可以不再执行主从认证,节约系统资源。In addition, after the master-slave authentication is successful, the relevant information of the device to be connected can be written into the NVM of the Bluetooth chip. When the Bluetooth chip subsequently connects to the device to be connected, the master-slave authentication can no longer be performed, saving system resources.
对于步骤S1890,蓝牙芯片中的主程序可每间隔1ms调度主状态机,使得主状态机执行步骤S18100和S18110,即检测当前的蓝牙连断状态以及特定标志位,且判断特定标志位是否更新以及蓝牙连断状态是否与连断请求一致,从而判断当前蓝牙连断是否正常。For step S1890, the main program in the Bluetooth chip can schedule the main state machine every 1ms, so that the main state machine executes steps S18100 and S18110, that is, detecting the current Bluetooth connection status and the specific flag bit, and judging whether the specific flag bit is updated and Check whether the Bluetooth connection status is consistent with the connection request to determine whether the current Bluetooth connection is normal.
具体地,主状态机可检查ECU表格中用于表示蓝牙连断状态的标识位,判断当前蓝牙连断状态是否与连断请求一致。另外,主状态机还可判断特定标志位是否更新。在蓝牙连断状态与连断请求一致且特定标志位已更新的情况下,则说明当前蓝牙连断状态正常。Specifically, the main state machine can check the flag bit used to indicate the Bluetooth connection status in the ECU table to determine whether the current Bluetooth connection status is consistent with the connection request. In addition, the main state machine can also determine whether a specific flag bit is updated. When the Bluetooth connection status is consistent with the connection request and the specific flag bit has been updated, it means that the current Bluetooth connection status is normal.
在蓝牙连断状态与连断请求不一致和/或在特定标志位未更新的情况下,说明当前蓝牙连断状态异常,蓝牙芯片的主程序需执行步骤S18120实现蓝牙芯片与待连接设备重新连断,以对该异常进行修复。If the Bluetooth connection status is inconsistent with the connection request and/or the specific flag is not updated, it means that the current Bluetooth connection status is abnormal, and the main program of the Bluetooth chip needs to execute step S18120 to reconnect the Bluetooth chip with the device to be connected. , to fix the exception.
具体地,在蓝牙连断状态与连断请求不一致的情况下,蓝牙芯片的主程序可从ECU表格读取连断请求命令数据,重新执行上述步骤S1820至步骤S1830,以执行蓝牙重连。该重连次数最多可达到5次,以防止重连次数过多,浪费系统资源。Specifically, when the Bluetooth connection status and the connection request are inconsistent, the main program of the Bluetooth chip can read the connection request command data from the ECU table and re-execute the above steps S1820 to S1830 to perform Bluetooth reconnection. The number of reconnections can be up to 5 times to prevent excessive reconnections and waste of system resources.
在特定标志位未更新的情况下,蓝牙芯片的主程序重新调用蓝牙协议栈,使得蓝牙协议栈重新执行一次连断动作,然后,特定标志位会重新更新一次。在该情况下,可重复执行S18100至S18120,即重复判断特定标志位是否更新,且在特定标志位未更新的情况下,重复执行与待连接设备连断,直至特定标志位更新成功。When the specific flag bit is not updated, the main program of the Bluetooth chip calls the Bluetooth protocol stack again, causing the Bluetooth protocol stack to perform a connection and disconnection action again, and then the specific flag bit is updated again. In this case, S18100 to S18120 can be repeatedly executed, that is, it is repeatedly determined whether the specific flag bit is updated, and if the specific flag bit is not updated, the connection with the device to be connected is repeatedly executed until the specific flag bit is updated successfully.
对于步骤S18130,在电池管理设备400掉电且重新上电后,蓝牙芯片可对其内部的NVM进行初始化,以便于后续对该NVM中的数据进行读写。For step S18130, after the battery management device 400 is powered off and powered on again, the Bluetooth chip can initialize its internal NVM to facilitate subsequent reading and writing of data in the NVM.
对于步骤S18140,蓝牙芯片从NVM中读取其与待连接设备的连断状态,再检查该连断状态是否为“连接”。可以理解的是,在本申请实施例中,在蓝牙芯片重新上电前,蓝牙芯片可检测其与待连接设备的连断状态,并将该连断状态写入了NVM中,因此,在电池管理设备400掉电且重新上电后,蓝牙芯片可从NVM中读取掉电之前待连接设备的连断状态。For step S18140, the Bluetooth chip reads the connection status between the Bluetooth chip and the device to be connected from the NVM, and then checks whether the connection status is "connected". It can be understood that in the embodiment of the present application, before the Bluetooth chip is powered on again, the Bluetooth chip can detect the connection status with the device to be connected, and write the connection status into the NVM. Therefore, when the battery After the management device 400 is powered off and powered on again, the Bluetooth chip can read the connection status of the device to be connected before the power off from the NVM.
可选地,该蓝牙芯片可被配置为连接N个待连接设备,其中,N为预设数值。在蓝牙芯片连接N个待连接设备时,该NVM中可同时存储有蓝牙芯片与N个待连接设备的连断状态。在步骤S18140中,蓝牙芯片可从NVM中依次读取每个待连接设备的连断状态,并判断是否为“连接”。Optionally, the Bluetooth chip can be configured to connect N devices to be connected, where N is a preset value. When the Bluetooth chip is connected to N devices to be connected, the NVM can simultaneously store the connection status of the Bluetooth chip and the N devices to be connected. In step S18140, the Bluetooth chip can sequentially read the connection status of each device to be connected from the NVM, and determine whether it is "connected".
在确定蓝牙芯片与待连接设备的连断状态为“连接”时,蓝牙芯片再从NVM中读取该待连接设备对应的连断请求数据,调用连断命令处理函数,再次将连断请求数据拷贝至特定的ECU表格以及NVM中,并将主状态机切换至处理该连断请求数据,以实现与待连接设备的重连。When it is determined that the connection status of the Bluetooth chip and the device to be connected is "connected", the Bluetooth chip then reads the connection request data corresponding to the device to be connected from the NVM, calls the connection command processing function, and sends the connection request data again Copy it to a specific ECU table and NVM, and switch the main state machine to process the connection request data to achieve reconnection with the device to be connected.
可以理解的是,在步骤S18150之后,蓝牙芯片还可以继续执行步骤S1890至步骤S18130,以实现对蓝牙芯片与待连接设备之间是否发生连断异常的持续监控。It can be understood that after step S18150, the Bluetooth chip can continue to execute steps S1890 to S18130 to continuously monitor whether a connection abnormality occurs between the Bluetooth chip and the device to be connected.
上文结合图5至图18,说明了本申请实施例中,由电池管理设备400中无线连接装置420作为执行主体的无线连接方法500至无线连接方法1700,下面结合图19至图26,说明本申请实施例中,由电池管理设备400中控制装置410作为执行主体的无线连接方法。The above describes the wireless connection method 500 to the wireless connection method 1700 in which the wireless connection device 420 in the battery management device 400 serves as the execution subject in the embodiment of the present application with reference to FIGS. 5 to 18 . The following description will be made with reference to FIGS. 19 to 26 In the embodiment of the present application, the control device 410 in the battery management device 400 serves as the execution subject of the wireless connection method.
图19示出了本申请实施例提供的一种电池管理设备400的无线连接方法1900的示意性流程框图。该无线连接方法1900应用于上文图4中所示的电池管理设备400中的控制装置410,换言之,本申请实施例中的无线连接方法1900的执行主体为上述控制装置410。FIG. 19 shows a schematic flow diagram of a wireless connection method 1900 for a battery management device 400 provided by an embodiment of the present application. The wireless connection method 1900 is applied to the control device 410 in the battery management device 400 shown in FIG. 4. In other words, the execution subject of the wireless connection method 1900 in the embodiment of the present application is the control device 410.
如图19所示,在本申请实施例中,该无线连接方法1900包括以下步骤。As shown in Figure 19, in this embodiment of the present application, the wireless connection method 1900 includes the following steps.
S1910:获取连断请求命令,该连断请求命令用于指示电池管理设备与第一设备之间的无线连接或断开。S1910: Obtain a connection request command, which is used to instruct wireless connection or disconnection between the battery management device and the first device.
S1920:根据该连断请求命令,控制无线连接装置与第一设备无线连接或断开。S1920: Control the wireless connection device to wirelessly connect or disconnect from the first device according to the connection request command.
S1930:检测无线连接装置的第一状态标识。S1930: Detect the first status identifier of the wireless connection device.
S1940:根据该第一状态标识,判断无线连接装置与第一设备之间的无线连接 或断开是否正常。S1940: Based on the first status identifier, determine whether the wireless connection or disconnection between the wireless connection device and the first device is normal.
具体地,在步骤S1910和步骤S1920中,控制装置410接收用于指示电池管理设备400与第一设备无线连接或断开的连断请求命令。根据该连断请求命令,控制装置410控制无线连接装置420实现与第一设备的无线连接或断开,从而实现电池管理设备400与第一设备的无线连接或断开。Specifically, in steps S1910 and S1920, the control device 410 receives a connection request command for instructing the battery management device 400 to wirelessly connect or disconnect from the first device. According to the connection request command, the control device 410 controls the wireless connection device 420 to achieve wireless connection or disconnection with the first device, thereby achieving wireless connection or disconnection between the battery management device 400 and the first device.
可选地,在一些实施方式中,电池管理设备400中的控制装置410可以从电池管理设备400的外部设备接收连断请求命令,以控制无线连接装置420与第一设备之间的无线连接或断开。Optionally, in some embodiments, the control device 410 in the battery management device 400 may receive a connection request command from an external device of the battery management device 400 to control the wireless connection between the wireless connection device 420 and the first device or disconnect.
例如,在电池管理设备400为TBMU 220且第一设备为MBMU 120的情况下,当车辆1在换电站2的站外时,TBMU 220接收站控系统21发送的第一连断请求命令,该TBMU 220能够基于该第一连断请求命令实现与车辆1中的MBMU 120的无线连接或断开。For example, in the case where the battery management device 400 is the TBMU 220 and the first device is the MBMU 120, when the vehicle 1 is outside the battery swap station 2, the TBMU 220 receives the first connection request command sent by the station control system 21. The TBMU 220 can achieve wireless connection or disconnection with the MBMU 120 in the vehicle 1 based on the first connection request command.
又例如,在电池管理设备400为MBMU 120且第一设备为SBMU 110的情况下,当车辆1驶入换电站2后,TBMU 220接收站控系统21发送的第二连断请求命令后,将该第二连断请求命令再发送至车辆1中的MBMU 120,该MBMU 120能够基于该第二连断请求命令实现与电池10中的SBMU 110的无线连接或断开。For another example, in the case where the battery management device 400 is the MBMU 120 and the first device is the SBMU 110, when the vehicle 1 drives into the battery swap station 2, the TBMU 220 receives the second connection request command sent by the station control system 21, and then The second connection request command is then sent to the MBMU 120 in the vehicle 1, and the MBMU 120 can achieve wireless connection or disconnection with the SBMU 110 in the battery 10 based on the second connection request command.
再例如,在电池管理设备400为CBMU 210且第一设备为SBMU 110的情况下,在换电站2中,换电仓20中的CBMU 210接收站控系统21发送的第三连断请求命令,该CBMU 210能够基于该第三连断请求命令实现与电池10中的SBMU 110的无线连接或断开。For another example, in the case where the battery management device 400 is the CBMU 210 and the first device is the SBMU 110, in the battery swap station 2, the CBMU 210 in the battery swap bin 20 receives the third connection request command sent by the station control system 21, The CBMU 210 can achieve wireless connection or disconnection with the SBMU 110 in the battery 10 based on the third connection request command.
或者,在另一些实施方式中,电池管理设备400中的控制装置410也可以基于其获取到的相关信息生成该连断请求命令,或者,该控制装置410还可以从电池管理设备400中的其它装置获取该连断请求命令,本申请实施例对该控制装置410获取连断请求命令的具体方式不做限定。Alternatively, in other embodiments, the control device 410 in the battery management device 400 may also generate the connection request command based on the relevant information it has obtained, or the control device 410 may also obtain the connection request command from other devices in the battery management device 400 . The device obtains the connection request command. The embodiment of the present application does not limit the specific manner in which the control device 410 obtains the connection request command.
在步骤S1930和步骤S1940中,在控制装置410根据连断请求命令,控制无线连接装置420与第一设备无线连接或断开之后,控制装置410还可进一步检测无线连接装置420的第一状态标识,例如上文实施例所述的第一状态标识和/或第一信息标识。该第一状态标识能够用于表征无线连接装置420与第一设备之间的无线连断状态。因此,控制装置410能够根据该第一状态标识,判断无线连接装置420与第一设备之间的无线连接或断开是否正常,从而可进一步判断电池管理设备400与第一设备之间的无线连接或断开是否正常。In steps S1930 and S1940, after the control device 410 controls the wireless connection device 420 to wirelessly connect or disconnect the first device according to the connection request command, the control device 410 may further detect the first status identifier of the wireless connection device 420. , such as the first status identifier and/or the first information identifier described in the above embodiment. The first status identifier can be used to characterize the wireless connection status between the wireless connection device 420 and the first device. Therefore, the control device 410 can determine whether the wireless connection or disconnection between the wireless connection device 420 and the first device is normal according to the first status identifier, thereby further determining the wireless connection between the battery management device 400 and the first device. Or whether the disconnection is normal.
通过本申请实施例的技术方案,不需要对电池管理设备400的现有硬件进行改动,在电池管理设备400中增加无线连接装置420,且通过控制装置410对该无线连接装置420进行控制即可实现电池管理设备400与第一设备之间的无线连接,该无线连接方式的实现较为简单,能够兼容现有产品。另外,电池管理设备400的控制装置410能够对无线连接装置420的第一状态标识进行检测,并根据该第一状态标识判断无线连接装置420与第一设备之间的无线连接或断开是否正常,有利于实现对电池管理设备400与第一设备之间无线连断的有效监控,从而提高电池管理设备400与第一设备之间的连 接性能。Through the technical solution of the embodiment of the present application, there is no need to modify the existing hardware of the battery management device 400. It is enough to add a wireless connection device 420 to the battery management device 400, and control the wireless connection device 420 through the control device 410. A wireless connection is achieved between the battery management device 400 and the first device. This wireless connection method is relatively simple to implement and can be compatible with existing products. In addition, the control device 410 of the battery management device 400 can detect the first status identifier of the wireless connection device 420, and determine whether the wireless connection or disconnection between the wireless connection device 420 and the first device is normal based on the first status identifier. , which is conducive to effective monitoring of the wireless connection between the battery management device 400 and the first device, thereby improving the connection performance between the battery management device 400 and the first device.
图20示出了本申请实施例提供的一种电池管理设备400的无线连接方法2000的示意性流程框图。该无线连接方法2000可同样应用于上文图4中所示的电池管理设备400中的控制装置410。Figure 20 shows a schematic flow chart of a wireless connection method 2000 for a battery management device 400 provided by an embodiment of the present application. The wireless connection method 2000 can also be applied to the control device 410 in the battery management device 400 shown in FIG. 4 above.
如图20所示,在本申请实施例中,该无线连接方法2000包括以下步骤。As shown in Figure 20, in this embodiment of the present application, the wireless connection method 2000 includes the following steps.
S2010:获取连断请求命令,该连断请求命令用于指示电池管理设备与第一设备之间的无线连接或断开。S2010: Obtain a connection request command, which is used to instruct wireless connection or disconnection between the battery management device and the first device.
S2021:将基于第一通信协议的连断请求命令转换为基于第二通信协议的连断请求数据。S2021: Convert the connection request command based on the first communication protocol into connection request data based on the second communication protocol.
S2022:向无线连接装置发送该连断请求数据,以使得无线连接装置根据该连断请求数据与第一设备无线连接或断开。S2022: Send the connection request data to the wireless connection device, so that the wireless connection device wirelessly connects or disconnects with the first device according to the connection request data.
S2030:检测无线连接装置的第一状态标识。S2030: Detect the first status identifier of the wireless connection device.
S2040:根据第一状态标识和连断请求数据,判断无线连接装置与第一设备之间的无线连接或断开是否正常。S2040: Determine whether the wireless connection or disconnection between the wireless connection device and the first device is normal according to the first status identifier and the connection request data.
在本申请实施例中,步骤S2010和步骤S2030的具体实施方案可以参见上文图19中步骤S1910和步骤S1930的相关描述。In the embodiment of this application, for the specific implementation of step S2010 and step S2030, please refer to the relevant description of step S1910 and step S1930 in Figure 19 above.
步骤S2021和步骤S2022可以为上文图19中步骤S1920的一种实现方式。步骤S2040可以为上文图19中步骤S1940的一种实现方式。Step S2021 and step S2022 may be an implementation manner of step S1920 in Figure 19 above. Step S2040 may be an implementation of step S1940 in Figure 19 above.
具体地,在该步骤S2021和步骤S2022中,控制装置410可基于第一通信协议连接于电池管理设备400的外部设备,且通过第二通信协议连接于无线连接装置420,其中,该第一通信协议与第二通信协议为不同类型的两种通信协议。在该情况下,控制装置410可接收外部设备基于第一通信协议发送的第一数据类型的连断请求命令,且将该第一数据类型的连断请求命令转换为基于第二通信协议的第二数据类型的连断请求数据,从而便于该第二数据类型的连断请求数据能够顺利传输至无线连接装置420。Specifically, in step S2021 and step S2022, the control device 410 may be connected to the external device of the battery management device 400 based on the first communication protocol, and connected to the wireless connection device 420 through the second communication protocol, wherein the first communication The protocol and the second communication protocol are two different types of communication protocols. In this case, the control device 410 may receive a connection request command of the first data type sent by the external device based on the first communication protocol, and convert the connection request command of the first data type into a third connection request command based on the second communication protocol. The connection request data of the second data type is conveniently transmitted to the wireless connection device 420 smoothly.
通过该实施方式的技术方案,控制装置410可以接收基于第一通信协议的连断请求命令,且向无线连接装置420发送基于第二通信协议的连断请求数据。该控制装置410与外部设备可以基于第一通信协议相互通信,而控制装置410与无线连接装置420之间可以基于第二通信协议相互通信。因此,该控制装置410可以针对不同的装置或设备使用不同的通信协议,优化控制装置410与其它设备之间的通信性能,提升电池管理设备400整体的通信性能。Through the technical solution of this embodiment, the control device 410 can receive the connection request command based on the first communication protocol, and send the connection request data based on the second communication protocol to the wireless connection device 420 . The control device 410 and the external device can communicate with each other based on the first communication protocol, and the control device 410 and the wireless connection device 420 can communicate with each other based on the second communication protocol. Therefore, the control device 410 can use different communication protocols for different devices or equipment, optimizing the communication performance between the control device 410 and other devices, and improving the overall communication performance of the battery management device 400.
具体地,为了使得无线连接装置420能够根据该连断请求数据实现与第一设备的无线连接或断开,该连断请求数据可包括:用于指示与第一设备连接或断开的请求类型的请求数据以及用于指示该第一设备的信息数据。其中,该用于指示该第一设备的信息数据包括但不限于是:第一设备的位置、第一设备的媒体存取控制位址(Media Access Control Address,MAC)等等。Specifically, in order to enable the wireless connection device 420 to implement wireless connection or disconnection with the first device according to the connection request data, the connection request data may include: a request type used to indicate connection or disconnection with the first device. request data and information data indicating the first device. The information data used to indicate the first device includes but is not limited to: the location of the first device, the Media Access Control Address (MAC) of the first device, and so on.
作为示例而非限定,上述连断请求命令为基于控制器局域网络(Controller Area Network,CAN)协议的请求命令,和/或,上述连断请求数据为基于串行外设接口(Serial Peripheral Interface,SPI)协议的请求数据。As an example and not a limitation, the above connection request command is a request command based on the Controller Area Network (Controller Area Network, CAN) protocol, and/or the above connection request data is based on the Serial Peripheral Interface (Serial Peripheral Interface). SPI) protocol request data.
在该示例中,电池管理设备400中的控制装置410可通过CAN总线连接于外部设备且通过CAN协议接收连断请求命令,因而该控制装置410及其所在的电池管理设备400能够良好兼容现有电池管理体系。另外,控制装置410通过高速、操作简单的SPI总线连接于无线连接装置420,且通过SPI协议向无线连接装置420发送连断请求数据,从而能够提高控制装置410与无线连接装置420之间的通信性能。In this example, the control device 410 in the battery management device 400 can be connected to the external device through the CAN bus and receive the connection request command through the CAN protocol. Therefore, the control device 410 and the battery management device 400 in which it is located can be well compatible with existing Battery management system. In addition, the control device 410 is connected to the wireless connection device 420 through a high-speed, easy-to-operate SPI bus, and sends connection request data to the wireless connection device 420 through the SPI protocol, thereby improving communication between the control device 410 and the wireless connection device 420 performance.
继续参见图20所示,可选地,在步骤S2040中,控制装置410可以根据检测到的无线连接装置420的第一状态标识和根据连断请求命令转换得到的连断请求数据,判断无线连接装置420与第一设备之间的无线连接或断开是否正常。Continuing to refer to FIG. 20 , optionally, in step S2040 , the control device 410 may determine the wireless connection based on the detected first state identifier of the wireless connection device 420 and the connection request data converted according to the connection request command. Whether the wireless connection or disconnection between the device 420 and the first device is normal.
具体地,在该实施方式中,第一状态标识能够用于指示无线连接装置420与第一设备之间的连断状态,连断请求数据能够用于指示无线连接装置420与第一设备之间的连断请求。根据该第一状态标识和连断请求数据可以判断无线连接装置420与第一设备之间的无线连接或断开是否正常,即可以判断无线连接装置420所在的电池管理设备400与第一设备之间的无线连接或断开是否正常。Specifically, in this embodiment, the first status identifier can be used to indicate the connection status between the wireless connection device 420 and the first device, and the connection request data can be used to indicate the connection status between the wireless connection device 420 and the first device. connection request. According to the first status identifier and the connection request data, it can be determined whether the wireless connection or disconnection between the wireless connection device 420 and the first device is normal, that is, it can be determined whether the wireless connection device 420 is located between the battery management device 400 and the first device. Whether the wireless connection or disconnection between the two devices is normal.
相比于仅根据无线连接装置420的第一状态标识判断电池管理设备400与第一设备之间的无线连接或断开是否正常的技术方案,通过本实施方式的技术方案,综合第一状态标识和连断请求数据两种数据,判断无线连接装置420及其所在的电池管理设备400与第一设备之间的无线连接或断开是否正常,能够进一步提高判断的准确性。因此,通过本实施方式的技术方案,能够更为有效的实现对电池管理设备400与第一设备之间的无线连断的监控,从而提高电池管理设备400与第一设备之间的连接性能。Compared with the technical solution that only determines whether the wireless connection or disconnection between the battery management device 400 and the first device is normal based on the first status identification of the wireless connection device 420, through the technical solution of this embodiment, the first status identification is integrated and connection request data to determine whether the wireless connection or disconnection between the wireless connection device 420 and the battery management device 400 where it is located and the first device is normal, which can further improve the accuracy of the determination. Therefore, through the technical solution of this embodiment, the wireless connection between the battery management device 400 and the first device can be monitored more effectively, thereby improving the connection performance between the battery management device 400 and the first device.
图21示出了本申请实施例提供的一种电池管理设备400的无线连接方法2100的示意性流程框图。该无线连接方法2100可同样应用于上文图4中所示的电池管理设备400中的控制装置410。Figure 21 shows a schematic flow chart of a wireless connection method 2100 for a battery management device 400 provided by an embodiment of the present application. The wireless connection method 2100 can also be applied to the control device 410 in the battery management device 400 shown in FIG. 4 above.
如图21所示,在本申请实施例中,该无线连接方法2100包括以下步骤。As shown in Figure 21, in this embodiment of the present application, the wireless connection method 2100 includes the following steps.
S2110:获取连断请求命令,该连断请求命令用于指示电池管理设备与第一设备之间的无线连接或断开。S2110: Obtain a connection request command, which is used to instruct wireless connection or disconnection between the battery management device and the first device.
S2121:将基于第一通信协议的连断请求命令转换为基于第二通信协议的连断请求数据。S2121: Convert the connection request command based on the first communication protocol into connection request data based on the second communication protocol.
S2122:向无线连接装置发送连断请求数据,以使得无线连接装置根据该连断请求数据与第一设备无线连接或断开。S2122: Send connection request data to the wireless connection device, so that the wireless connection device wirelessly connects or disconnects with the first device according to the connection request data.
S2130:检测无线连接装置的第一状态标识。S2130: Detect the first status identifier of the wireless connection device.
S2141:判断第一状态标识指示的连断状态与连断请求数据指示的连断请求是否一致。S2141: Determine whether the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data.
S2142:在第一状态标识指示的连断状态与连断请求数据指示的连断请求一致的情况下,确定无线连接装置与第一设备之间的无线连接或断开为正常。S2142: When the connection state indicated by the first status identifier is consistent with the connection request indicated by the connection request data, determine that the wireless connection or disconnection between the wireless connection device and the first device is normal.
S2143:在第一状态标识指示的连断状态与连断请求数据指示的连断请求不一致的情况下,确定无线连接装置与第一设备之间的无线连接或断开为异常。S2143: When the connection state indicated by the first status identifier is inconsistent with the connection request indicated by the connection request data, determine that the wireless connection or disconnection between the wireless connection device and the first device is abnormal.
具体地,在本申请实施例中,步骤S2110至步骤S2130的具体技术方案可以参见上文图20所示实施例中步骤S2010至步骤S2030的相关描述。Specifically, in the embodiment of the present application, for the specific technical solution from step S2110 to step S2130, please refer to the relevant description of step S2010 to step S2030 in the embodiment shown in FIG. 20 above.
另外,本申请实施例中的步骤S2141至步骤S2143可以为上述步骤S2040的一种实现方式。In addition, steps S2141 to S2143 in the embodiment of the present application may be an implementation manner of the above-mentioned step S2040.
具体地,在步骤S2141中,第一状态标识能够用于指示无线连接装置420与第一设备之间的连断状态,即用于指示无线连接装置420与第一设备的连断状态为相互连接或者相互断开。连断请求数据中可以包括无线连接装置420与第一设备之间的连断请求类型,即外部设备请求无线连接装置420与第一设备相互连接或者相互断开。Specifically, in step S2141, the first status identifier can be used to indicate the connection state between the wireless connection device 420 and the first device, that is, to indicate that the connection state between the wireless connection device 420 and the first device is mutual connection. Or disconnect from each other. The connection request data may include a connection request type between the wireless connection device 420 and the first device, that is, the external device requests the wireless connection device 420 and the first device to connect or disconnect from each other.
在步骤S2142中,在第一状态标识指示的连断状态与连断请求数据指示的连断请求一致的情况下,控制装置410可以确定无线连接装置420与第一设备之间的无线连断为正常,即该无线连接装置420所在的电池管理设备400与第一设备之间的无线连断为正常。例如,在第一状态标识指示的连断状态为相互连接,且连断请求数据指示的连断请求也为相互连接的情况下,可以确定无线连接装置420及其所在的电池管理设备400与第一设备之间的无线连接为正常。In step S2142, when the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data, the control device 410 may determine that the wireless connection between the wireless connection device 420 and the first device is Normal, that is, the wireless connection between the battery management device 400 where the wireless connection device 420 is located and the first device is normal. For example, when the connection state indicated by the first status identifier is mutually connected, and the connection request indicated by the connection request data is also mutually connected, it can be determined that the wireless connection device 420 and the battery management device 400 where it is located are connected to the third wireless connection device 420 . The wireless connection between one device is normal.
对应的,在步骤S2143中,在第一状态标识指示的连断状态与连断请求数据指示的连断请求不一致的情况下,控制装置410可以确定无线连接装置420与第一设备之间的无线连断为异常,即该无线连接装置420所在的电池管理设备400与第一设备之间的无线连断为异常。例如,在第一状态标识指示的连断状态为相互断开,但连断请求数据指示的连断请求为相互连接的情况下,可以确定无线连接装置420及其所在的电池管理设备400与第一设备之间的无线连接为异常。Correspondingly, in step S2143, when the connection status indicated by the first status identifier is inconsistent with the connection request indicated by the connection request data, the control device 410 may determine the wireless connection between the wireless connection device 420 and the first device. The connection is abnormal, that is, the wireless connection between the battery management device 400 where the wireless connection device 420 is located and the first device is abnormal. For example, when the connection state indicated by the first status identifier is mutually disconnected, but the connection request indicated by the connection request data is mutually connected, it can be determined that the wireless connection device 420 and the battery management device 400 where it is located are connected to the third wireless connection device 420 . The wireless connection between one device is abnormal.
在本申请实施例的技术方案中,通过判断第一状态标识指示的连断状态与连断请求数据指示的连断请求是否一致,从而可准确判断无线连接装置420及其所在的电池管理设备400与第一设备之间的无线连接或断开是否为正常。该技术方案实施方便且准确度高,不仅能对电池管理设备400与第一设备之间的无线连断实现准确且有效的监控,还能较为方便的通过硬件和/或软件实现于控制装置410中。In the technical solution of the embodiment of the present application, by determining whether the connection state indicated by the first status identifier is consistent with the connection request indicated by the connection request data, the wireless connection device 420 and the battery management device 400 where it is located can be accurately determined. Whether the wireless connection or disconnection with the first device is normal. This technical solution is easy to implement and has high accuracy. It can not only accurately and effectively monitor the wireless connection between the battery management device 400 and the first device, but can also be more conveniently implemented in the control device 410 through hardware and/or software. middle.
可选地,在一些实施方式中,上述第一状态标识被配置为:采用第一数值指示无线连接装置420与第一设备之间的连断状态为连接,采用第二数值指示无线连接装置420与第一设备之间的连断状态为断开。上述连断请求数据被配置为:采用第一数值指示无线连接装置420与第一设备之间的连断请求为连接,采用第二数值指示无线连接装置420与第一设备之间的连断请求为断开。Optionally, in some embodiments, the above-mentioned first status identifier is configured to: use a first value to indicate that the connection state between the wireless connection device 420 and the first device is connected, and use a second value to indicate that the wireless connection device 420 is connected. The connection state with the first device is disconnected. The above-mentioned connection request data is configured to: use a first value to indicate that the connection request between the wireless connection device 420 and the first device is a connection, and use a second value to indicate a connection request between the wireless connection device 420 and the first device. for disconnection.
在该实施方式下,上述图21中的步骤S2141可以包括:判断第一状态标识与连断请求数据是否一致。进一步地,上述步骤S2142可以包括:在第一状态标识与连断请求数据一致的情况下,确定无线连接装置与第一设备之间的无线连接为正常。上述步骤S2143可以包括:在第一状态标识与连断请求数据不一致的情况下,确定无线连接装置与第一设备之间的无线连接为异常。In this implementation, step S2141 in FIG. 21 may include: determining whether the first status identifier is consistent with the connection request data. Further, the above-mentioned step S2142 may include: when the first status identifier is consistent with the connection request data, determining that the wireless connection between the wireless connection device and the first device is normal. The above step S2143 may include: determining that the wireless connection between the wireless connection device and the first device is abnormal when the first status identifier is inconsistent with the connection request data.
图22示出了本申请实施例提供的一种电池管理设备400的无线连接方法2200的示意性流程框图。该无线连接方法2200可同样应用于上文图4中所示的电池管理设备400中的控制装置410。Figure 22 shows a schematic flow chart of a wireless connection method 2200 for a battery management device 400 provided by an embodiment of the present application. The wireless connection method 2200 can also be applied to the control device 410 in the battery management device 400 shown in FIG. 4 above.
如图22所示,在本申请实施例中,该无线连接方法2200包括上文图19所示实施例中的步骤S1910至S1940,在此基础上,在确定无线连接装置420与第一设备之间 的无线连接或断开为异常的情况下,该无线连接方法2200还可以包括以下步骤。As shown in Figure 22, in the embodiment of the present application, the wireless connection method 2200 includes steps S1910 to S1940 in the embodiment shown in Figure 19 above. On this basis, after determining the wireless connection device 420 and the first device In the case where the wireless connection or disconnection is abnormal, the wireless connection method 2200 may also include the following steps.
S2250:根据连断请求命令,控制无线连接装置至少一次与第一设备无线连接或断开。S2250: According to the connection request command, control the wireless connection device to wirelessly connect or disconnect with the first device at least once.
S2260:至少一次检测无线连接装置的第一状态标识,直至确定无线连接装置与第一设备之间的无线连接或断开正常。S2260: Detect the first status identifier of the wireless connection device at least once until it is determined that the wireless connection or disconnection between the wireless connection device and the first device is normal.
具体地,在本申请实施例中,在控制装置410检测到无线连接装置420与第一设备之间的无线连断为异常的情况下,控制装置410可以继续根据连断请求命令,控制无线连接装置420至少一次重新与第一设备无线连接或断开,以修复该无线连接装置420与第一设备之间的无线连断异常。Specifically, in the embodiment of the present application, when the control device 410 detects that the wireless connection between the wireless connection device 420 and the first device is abnormal, the control device 410 may continue to control the wireless connection according to the connection request command. The device 420 wirelessly reconnects or disconnects from the first device at least once to repair the wireless connection abnormality between the wireless connection device 420 and the first device.
具体地,在无线连接装置420每次执行与第一设备的无线连接或断开后,控制装置410可以重新检测无线连接装置420的第一状态标识,且根据该新检测到的第一状态标识判断无线连接装置420及其所在的电池管理设备400与第一设备之间无线连断是否正常。Specifically, after each time the wireless connection device 420 performs wireless connection or disconnection with the first device, the control device 410 may re-detect the first state identifier of the wireless connection device 420, and based on the newly detected first state identifier Determine whether the wireless connection between the wireless connection device 420 and the battery management device 400 where it is located and the first device is normal.
通过控制无线连接装置420至少一次重新与第一设备无线连接或断开,且至少一次检测无线连接装置420的第一状态标识,直至确定无线连接装置420及其所在的电池管理设备400与第一设备之间无线连断正常,即该电池管理设备400与第一设备之间的无线连断异常得到修复,控制装置410停止控制无线连接装置420继续与第一设备无线连接或断开。By controlling the wireless connection device 420 to reconnect or disconnect wirelessly with the first device at least once, and detecting the first status identifier of the wireless connection device 420 at least once, until it is determined that the wireless connection device 420 and the battery management device 400 where it is located are in contact with the first device. The wireless connection between the devices is normal, that is, the abnormal wireless connection between the battery management device 400 and the first device is repaired, and the control device 410 stops controlling the wireless connection device 420 to continue to wirelessly connect or disconnect with the first device.
通过本申请实施例的技术方案,在无线连接装置420与第一设备之间的无线连断存在异常的情况下,控制装置410能够对该异常进行修复,以使得电池管理设备400与第一设备之间的无线连断恢复到正常状态,从而进一步提高电池管理设备400与第一设备之间的连接可靠性。Through the technical solution of the embodiment of the present application, when there is an abnormality in the wireless connection between the wireless connection device 420 and the first device, the control device 410 can repair the abnormality, so that the battery management device 400 and the first device The wireless connection between them is restored to the normal state, thereby further improving the connection reliability between the battery management device 400 and the first device.
图23示出了本申请实施例提供的一种电池管理设备400的无线连接方法2300的示意性流程框图。该无线连接方法2300可同样应用于上文图4中所示的电池管理设备400中的控制装置410。Figure 23 shows a schematic flow chart of a wireless connection method 2300 for the battery management device 400 provided by the embodiment of the present application. The wireless connection method 2300 can also be applied to the control device 410 in the battery management device 400 shown in FIG. 4 above.
如图23所示,在本申请实施例中,该无线连接方法2300包括上文图21所示实施例中的步骤S2110至S2143,在此基础上,在步骤S2143之后,即在确定无线连接装置420与第一设备之间的无线连接或断开为异常的情况下,该无线连接方法2300还可以包括以下步骤。As shown in Figure 23, in the embodiment of the present application, the wireless connection method 2300 includes steps S2110 to S2143 in the embodiment shown in Figure 21 above. On this basis, after step S2143, that is, after determining the wireless connection device When the wireless connection or disconnection between 420 and the first device is abnormal, the wireless connection method 2300 may also include the following steps.
S2350:向无线连接装置至少一次发送连断请求数据,以使得该无线连接装置至少一次根据该连断请求数据与第一设备无线连接或断开。S2350: Send connection request data to the wireless connection device at least once, so that the wireless connection device wirelessly connects or disconnects with the first device according to the connection request data at least once.
S2360:至少一次检测无线连接装置的第一状态标识,直至该第一状态标识指示的连断状态与连断请求数据指示的连断请求一致。S2360: Detect the first state identifier of the wireless connection device at least once until the connection state indicated by the first state identifier is consistent with the connection request indicated by the connection request data.
可选地,该步骤S2350可以为上文图22中步骤S2250的一种实现方式。该步骤S2360可以为上文图22中步骤S2260的一种实现方式。Optionally, step S2350 may be an implementation of step S2250 in Figure 22 above. This step S2360 may be an implementation of step S2260 in Figure 22 above.
具体地,在本申请实施例中,控制装置410可以将对连断请求命令转换得到连断请求数据至少一次的发送至无线连接装置420,以控制该无线连接装置420至少一次根据该连断请求数据与第一设备无线连接或断开。Specifically, in this embodiment of the present application, the control device 410 may convert the connection request command to obtain the connection request data and send it to the wireless connection device 420 at least once, so as to control the wireless connection device 420 at least once according to the connection request. Data is wirelessly connected or disconnected from the first device.
进一步地,控制装置410向无线连接装置420发送一次连断请求数据后,该控制装置410可以重新检测无线连接装置420的第一状态标识,并判断该第一状态标识指示的连断状态与连断请求数据指示的连断请求是否一致,从而判断无线连接装置420及其所在的电池管理设备400与第一设备之间的无线连接或断开是否正常。Further, after the control device 410 sends a connection request data to the wireless connection device 420, the control device 410 can re-detect the first status identifier of the wireless connection device 420, and determine the connection and disconnection status indicated by the first status identifier. Whether the connection requests indicated by the disconnection request data are consistent, thereby determining whether the wireless connection or disconnection between the wireless connection device 420 and the battery management device 400 where it is located and the first device is normal.
在控制装置410至少一次向无线连接装置420发送连断请求数据,且至少一次检测无线连接装置420的第一状态标识后,直至确定第一状态标识指示的连断状态与连断请求数据指示的连断请求一致,可以确定无线连接装置420及其所在的电池管理设备400与第一设备之间无线连断正常,即该电池管理设备400与第一设备之间的无线连断异常得到修复,控制装置410停止继续向无线连接装置420发送连断请求数据。After the control device 410 sends the connection request data to the wireless connection device 420 at least once, and detects the first status identifier of the wireless connection device 420 at least once, until it is determined that the connection state indicated by the first status identifier and the connection request data indicate If the connection requests are consistent, it can be determined that the wireless connection between the wireless connection device 420 and the battery management device 400 where it is located and the first device is normal, that is, the abnormal wireless connection between the battery management device 400 and the first device has been repaired. The control device 410 stops sending the connection request data to the wireless connection device 420 .
通过本申请实施例的技术方案,控制装置410能够有效控制无线连接装置420与第一设备的无线连断,且控制装置410对于无线连接装置420及其所在电池管理设备400与第一设备之间的无线连断异常的判断准确度也较高,能够有效且快速的对该异常进行修复,以使得电池管理设备400与第一设备之间的无线连断快速且可靠的恢复到正常状态。Through the technical solution of the embodiment of the present application, the control device 410 can effectively control the wireless connection between the wireless connection device 420 and the first device, and the control device 410 is responsible for the connection between the wireless connection device 420 and its battery management device 400 and the first device. The accuracy of determining the wireless connection abnormality is also high, and the abnormality can be effectively and quickly repaired, so that the wireless connection between the battery management device 400 and the first device can be restored to a normal state quickly and reliably.
图24示出了本申请实施例提供的一种电池管理设备400的无线连接方法2400的示意性流程框图。该无线连接方法2400可同样应用于上文图4中所示的电池管理设备400中的控制装置410。可选地,该控制装置410可以包括非易失性存储(NVM)模块。Figure 24 shows a schematic flow chart of a wireless connection method 2400 for the battery management device 400 provided by the embodiment of the present application. The wireless connection method 2400 can also be applied to the control device 410 in the battery management device 400 shown in FIG. 4 above. Optionally, the control device 410 may include a non-volatile memory (NVM) module.
如图24所示,在本申请实施例中,该无线连接方法2400可以包括上文图23所示实施例中的步骤S2110至S2143以及步骤S2350至S2360,在此基础上,在步骤S2121之后,该无线连接方法2400还可以包括以下步骤。As shown in Figure 24, in the embodiment of the present application, the wireless connection method 2400 may include steps S2110 to S2143 and steps S2350 to S2360 in the embodiment shown in Figure 23. On this basis, after step S2121, The wireless connection method 2400 may also include the following steps.
S2410:将连断请求数据存储于NVM模块。S2410: Store the connection request data in the NVM module.
具体地,在本申请实施例中,NVM模块为一种掉电后,其中存储的数据不会丢失的存储模块。该NVM模块可以位于控制装置410的内部,便于控制装置410对该NVM模块中的数据进行读写。或者,该NVM模块也可以位于控制装置410的外部,且电连接于该控制装置410。Specifically, in this embodiment of the present application, the NVM module is a storage module in which the data stored therein will not be lost after power failure. The NVM module may be located inside the control device 410 to facilitate the control device 410 to read and write data in the NVM module. Alternatively, the NVM module can also be located outside the control device 410 and be electrically connected to the control device 410 .
为了便于后续根据该连断请求数据进行电池管理设备400与第一设备的无线连断异常判断,在控制装置410接收连断请求命令,并将该连断请求命令转换为连断请求数据后,该控制装置410用于同步将该连断请求数据存储于NVM模块中。通过该技术方案,可以防止掉电等外部原因造成连断请求数据丢失,保障后续控制装置410对无线连接装置420与第一设备的无线连断异常判断的进行,从而进一步提升电池管理设备400与第一设备之间的连接性能。In order to facilitate subsequent wireless connection abnormality judgment between the battery management device 400 and the first device based on the connection request data, after the control device 410 receives the connection request command and converts the connection request command into connection request data, The control device 410 is used to synchronously store the connection request data in the NVM module. Through this technical solution, the loss of connection request data caused by external reasons such as power outage can be prevented, and the subsequent control device 410 can ensure the abnormal judgment of the wireless connection between the wireless connection device 420 and the first device, thereby further improving the connection between the battery management device 400 and the first device. The connection performance between the first devices.
基于该NVM模块,在步骤S2143之后,即确定无线连接装置420与第一设备之间的无线连接或断开为异常之后,该无线连接方法2400还可以包括以下步骤。Based on the NVM module, after step S2143, that is, after it is determined that the wireless connection or disconnection between the wireless connection device 420 and the first device is abnormal, the wireless connection method 2400 may further include the following steps.
S2420:从NVM模块获取连断请求数据。S2420: Obtain the connection request data from the NVM module.
在步骤S2420之后,控制装置410再执行步骤S2350至步骤S2360。After step S2420, the control device 410 then executes steps S2350 to S2360.
因此,在该实施方式中,NVM模块中的连断请求数据还可以用于保障控制装置410后续对无线连接装置420与第一设备的无线连断异常的修复,以更进一步提升电 池管理设备400与第一设备之间的连接性能。Therefore, in this embodiment, the connection request data in the NVM module can also be used to ensure that the control device 410 subsequently repairs the abnormal wireless connection between the wireless connection device 420 and the first device, so as to further improve the battery management device 400 The performance of the connection to the first device.
图25示出了本申请实施例提供的一种电池管理设备400的无线连接方法2500的示意性流程框图。该无线连接方法2500可同样应用于上文图4中所示的电池管理设备400中的控制装置410。Figure 25 shows a schematic flow chart of a wireless connection method 2500 for the battery management device 400 provided by the embodiment of the present application. The wireless connection method 2500 can also be applied to the control device 410 in the battery management device 400 shown in FIG. 4 above.
如图25所示,在本申请实施例中,该无线连接方法2500可以包括以下步骤。As shown in Figure 25, in this embodiment of the present application, the wireless connection method 2500 may include the following steps.
S2510:获取连断请求命令,该连断请求命令用于指示电池管理设备与第一设备之间的无线连接或断开。S2510: Obtain a connection request command, which is used to instruct wireless connection or disconnection between the battery management device and the first device.
S2521:将基于第一通信协议的连断请求命令转换为基于第二通信协议的连断请求数据。S2521: Convert the connection request command based on the first communication protocol into connection request data based on the second communication protocol.
S2522:向无线连接装置发送连断请求数据,以使得该无线连接装置根据连断请求数据与第一设备无线连接或断开。S2522: Send connection request data to the wireless connection device, so that the wireless connection device wirelessly connects or disconnects with the first device according to the connection request data.
S2531:在发送连断请求数据之后的第一预设时间段内检测无线连接装置的第一状态标识。S2531: Detect the first status identifier of the wireless connection device within the first preset time period after sending the connection request data.
S2532:每间隔第二预设时间段检测无线连接装置的第一状态标识。S2532: Detect the first status identifier of the wireless connection device every second preset time period.
S2540:根据第一状态标识和连断请求数据,判断无线连接装置与第一设备之间的无线连接或断开是否正常。S2540: Determine whether the wireless connection or disconnection between the wireless connection device and the first device is normal according to the first status identifier and the connection request data.
在本申请实施例中,步骤S2510、S2521、S2522和步骤S2540的具体实施方案可以参见上文图20中的相关描述。步骤S2531和步骤S2532可以为上文图20中步骤S2030的一种实现方式。In the embodiment of the present application, for the specific implementation of steps S2510, S2521, S2522 and step S2540, please refer to the relevant description in Figure 20 above. Step S2531 and step S2532 may be an implementation manner of step S2030 in Figure 20 above.
具体地,在步骤S2531中,第一预设时间段大于或等于连断请求数据在控制装置410与无线连接装置420之间的传输时间。该传输时间受控于所述控制装置410与无线连接装置420之间的连接方式。作为示例,在控制装置410与无线连接装置420通过SPI总线相互连接时,则数据在二者之间的传输时间大约在5ms左右。鉴于此,在本申请实施例中,第一预设时间段可以为5ms,控制装置410在向无线连接装置420发送连断请求数据之后的5ms内,检测无线连接装置420的第一状态标识。Specifically, in step S2531, the first preset time period is greater than or equal to the transmission time of the connection request data between the control device 410 and the wireless connection device 420. The transmission time is controlled by the connection mode between the control device 410 and the wireless connection device 420 . As an example, when the control device 410 and the wireless connection device 420 are connected to each other through the SPI bus, the data transmission time between the two is about 5 ms. In view of this, in the embodiment of the present application, the first preset time period may be 5 ms, and the control device 410 detects the first status identifier of the wireless connection device 420 within 5 ms after sending the connection request data to the wireless connection device 420 .
通过该技术方案,控制装置410能够有效检测无线连接装置420最新的第一状态标识,保证数据的有效性和可靠性。根据该有效且可靠的第一状态标识,可以提升控制装置410对于无线连接装置420与第一设备之间的无线连断异常的判断的有效性及可靠性。Through this technical solution, the control device 410 can effectively detect the latest first state identifier of the wireless connection device 420 to ensure the validity and reliability of the data. According to the valid and reliable first status identifier, the effectiveness and reliability of the control device 410's determination of abnormal wireless connection between the wireless connection device 420 and the first device can be improved.
具体地,在步骤S2532中,控制装置410还可以每间隔第二预设时间段检测无线连接装置420当前的第一状态标识,以实现对无线连接装置420与第一设备之间无线连断的持续监控,保障该无线连接装置420与第一设备之间长期的无线连断的可靠性。Specifically, in step S2532, the control device 410 may also detect the current first status identifier of the wireless connection device 420 every second preset time period, so as to realize the wireless connection between the wireless connection device 420 and the first device. Continuous monitoring ensures the reliability of the long-term wireless connection between the wireless connection device 420 and the first device.
作为一种示例,本申请实施例中第二预设时间段可小于或等于100ms。在其它示例中,该第二预设时间段还可以根据实际情况进行调整,本申请实施例对该第二预设时间段的具体数值不做限定。As an example, in the embodiment of the present application, the second preset time period may be less than or equal to 100 ms. In other examples, the second preset time period can also be adjusted according to actual conditions. The embodiment of the present application does not limit the specific value of the second preset time period.
图26示出了本申请实施例提供的一种电池管理设备400的无线连接方法2600的示意性流程框图。该无线连接方法2600可同样应用于上文图4中所示的电池管理设备400中的控制装置410,可选地,该控制装置410可以为控制芯片,或者也可以称之 为主芯片。该控制芯片(主芯片)连接于电池管理设备400中的无线通信芯片,例如:蓝牙芯片。Figure 26 shows a schematic flow chart of a wireless connection method 2600 for the battery management device 400 provided by the embodiment of the present application. This wireless connection method 2600 can also be applied to the control device 410 in the battery management device 400 shown in Figure 4 above. Alternatively, the control device 410 can be a control chip, or it can also be called a main chip. The control chip (main chip) is connected to the wireless communication chip in the battery management device 400, such as a Bluetooth chip.
如图26所示,在本申请实施例中,该无线连接方法2600可以包括以下步骤。As shown in Figure 26, in this embodiment of the present application, the wireless connection method 2600 may include the following steps.
S2610:接收CAN传输的蓝牙连断请求命令。S2610: Receive the Bluetooth connection request command transmitted by CAN.
S2620:将蓝牙连断命令的报文转换为连断请求数据,该连断请求数据包括:待连接设备的蓝牙MAC,位置,连断请求。S2620: Convert the Bluetooth connection command message into connection request data. The connection request data includes: Bluetooth MAC, location, and connection request of the device to be connected.
S2630:调用连断命令处理函数,拷贝连断请求数据至SPI可访问结构体以及NVM中,并做数据校准。S2630: Call the connection command processing function, copy the connection request data to the SPI accessible structure and NVM, and perform data calibration.
S2640:调用SPI传输数据状态机,拷贝连断请求数据至SPI需传输的数组中。S2640: Call the SPI transmission data state machine and copy the connection request data to the array to be transmitted by SPI.
S2650:调用SPI协议向蓝牙芯片传输连断请求数据。S2650: Call the SPI protocol to transmit connection request data to the Bluetooth chip.
S2660:5ms后通过SPI回读蓝牙芯片的蓝牙连断状态。S2660: Read back the Bluetooth connection status of the Bluetooth chip through SPI after 5ms.
S2670:判断连断状态与连断请求数据是否相同。S2670: Determine whether the connection status and connection request data are the same.
S2680:在连断状态与连断请求数据不相同的情况下,从NVM中读取连断请求数据,重新调用连断命令处理函数。S2680: When the connection status and connection request data are different, read the connection request data from NVM and call the connection command processing function again.
具体地,对于步骤S2610,在车辆的换电流程中,或者在车辆的运行过程中,电池管理设备400中的主芯片可以通过CAN总线连接于外部设备,该主芯片可以接收外部设备通过CAN总线传输的蓝牙连断请求命令,该蓝牙连断请求命令可以用于指示电池管理设备400与待连接设备(例如上文的第一设备)的蓝牙连断。Specifically, for step S2610, during the battery replacement process of the vehicle, or during the operation of the vehicle, the main chip in the battery management device 400 can be connected to the external device through the CAN bus, and the main chip can receive data from the external device through the CAN bus. The transmitted Bluetooth connection request command can be used to instruct the battery management device 400 to disconnect the Bluetooth connection with the device to be connected (such as the first device above).
对于步骤S2620,主芯片将蓝牙连断命令的报文转换为连断请求数据,该连断请求数据包括:蓝牙MAC,待连接设备的位置,连断请求。For step S2620, the main chip converts the Bluetooth connection command message into connection request data. The connection request data includes: Bluetooth MAC, the location of the device to be connected, and the connection request.
具体地,通过CAN总线传输的蓝牙连断命令可以为报文数据,主芯片能够将该报文数据转换为连断请求数据,该连断请求数据可以满足SPI协议。在该连断请求数据中,可以包括待连接设备的蓝牙Mac地址、位置、连断请求等信息,以便于主芯片将该连断请求数据传输至蓝牙芯片后,该蓝牙芯片能够根据该蓝牙Mac地址以及位置等信息确定待连接设备,且根据连断请求建立与待连接设备的蓝牙连断。Specifically, the Bluetooth connection command transmitted through the CAN bus can be message data, and the main chip can convert the message data into connection request data, and the connection request data can satisfy the SPI protocol. The connection request data may include the Bluetooth Mac address, location, connection request and other information of the device to be connected, so that after the main chip transmits the connection request data to the Bluetooth chip, the Bluetooth chip can be based on the Bluetooth Mac Information such as address and location determines the device to be connected, and establishes a Bluetooth connection with the device to be connected based on the connection request.
对于步骤S2630,主芯片可包括主程序,该主程序可以调用连断命令处理函数,该连断命令处理函数可以用于将连断请求数据同步拷贝至SPI可访问结构体以及NVM中。在拷贝过程中,可以对连断请求数据进行校准,即每拷贝一项数据,即更新该数据对应的标志位,保证连断请求数据全部进行了拷贝。For step S2630, the main chip may include a main program, and the main program may call a connection command processing function. The connection command processing function may be used to synchronously copy the connection request data to the SPI accessible structure and NVM. During the copy process, the connection request data can be calibrated, that is, every time a piece of data is copied, the flag bit corresponding to the data is updated to ensure that all the connection request data is copied.
对于步骤S2640,主芯片还可包括SPI传输数据状态机,主程序可调用该SPI传输数据状态机,该SPI传输数据状态机用于将SPI可访问结构体中的连断请求数据再拷贝至SPI需传输的数组中。For step S2640, the main chip may also include an SPI transmission data state machine. The main program may call the SPI transmission data state machine. The SPI transmission data state machine is used to copy the connection request data in the SPI accessible structure to the SPI. in the array to be transferred.
对于步骤S2650,主芯片还可包括:SPI协议层,主芯片中的主程序可调用该SPI协议层,将SPI需传输的数组中的连断请求数据通过SPI传输至蓝牙芯片中。For step S2650, the main chip may also include: an SPI protocol layer. The main program in the main chip may call the SPI protocol layer to transmit the connection request data in the array to be transmitted by SPI to the Bluetooth chip through SPI.
对于步骤S2660,通过SPI协议传输一次数据时长需5ms。通过SPI协议传输数据之后,主芯片马上回读蓝牙芯片的状态。例如,主芯片向蓝牙芯片发送连断状态请求信息,蓝牙芯片将其与待连接设备的连断状态发送回主芯片,以使得主芯片回读到蓝牙芯片与待连接设备之间当前的连断状态。For step S2660, it takes 5ms to transmit data once through the SPI protocol. After transmitting data through the SPI protocol, the main chip immediately reads back the status of the Bluetooth chip. For example, the main chip sends connection status request information to the Bluetooth chip, and the Bluetooth chip sends the connection status with the device to be connected back to the main chip, so that the main chip reads back the current connection status between the Bluetooth chip and the device to be connected. state.
对于步骤S2670,主芯片判断连断状态与连断请求数据是否相同。若是,则表明当前蓝牙芯片与待连接设备之间正常连断,无异常发生。For step S2670, the main chip determines whether the connection status and the connection request data are the same. If yes, it means that the current Bluetooth chip and the device to be connected are connected normally and no abnormality occurs.
若否,则执行步骤S2680,主芯片从NVM中读取连断请求数据,重新调用连断命令处理函数,再次拷贝连断请求数据至SPI可访问结构体以及NVM中。然后,重复执行上述步骤S2630至步骤S2670,以重新向蓝牙芯片传输连断请求数据,且回读蓝牙芯片的蓝牙连断状态,直至判断连断状态与连断请求数据相同,以确定当前蓝牙芯片与待连接设备之间正常连断,无异常发生。If not, step S2680 is executed. The main chip reads the connection request data from NVM, calls the connection command processing function again, and copies the connection request data to the SPI accessible structure and NVM again. Then, the above-mentioned steps S2630 to S2670 are repeatedly executed to re-transmit the connection request data to the Bluetooth chip, and read back the Bluetooth connection status of the Bluetooth chip until it is determined that the connection status and the connection request data are the same to determine the current Bluetooth chip. The connection to the device to be connected is normal and no abnormality occurs.
上文结合图3、图5至图26说明了本申请提供的电池管理设备的无线连接方法实施例,下面,结合图27和图28,说明本申请提供的电池管理设备的装置实施例。应理解,装置实施例与方法实施例相互对应,类似的描述可以参照方法实施例。The above describes the embodiment of the wireless connection method of the battery management device provided by the present application with reference to FIG. 3, FIG. 5 to FIG. 26. Next, the embodiment of the device of the battery management device provided by the present application is described with reference to FIG. 27 and FIG. 28. It should be understood that the device embodiments and method embodiments correspond to each other, and similar descriptions may refer to the method embodiments.
图27示出了本申请实施例提供的一种电池管理设备2700的示意性结构框图。Figure 27 shows a schematic structural block diagram of a battery management device 2700 provided by an embodiment of the present application.
如图27所示,在本申请实施例中,电池管理设备2700包括:无线连接装置2710,其中,无线连接装置2710包括:第一连断模块2711、第一检测模块2712和第一处理模块2713。As shown in Figure 27, in the embodiment of the present application, the battery management device 2700 includes: a wireless connection device 2710, wherein the wireless connection device 2710 includes: a first connection module 2711, a first detection module 2712, and a first processing module 2713 .
具体地,第一连断模块2711用于与第一设备无线连接或断开。第一检测模块2712用于检测与第一设备之间的连断状态数据。第一处理模块2713用于根据连断状态数据,判断与第一设备之间的无线连接或断开是否正常。Specifically, the first connection module 2711 is used to wirelessly connect or disconnect with the first device. The first detection module 2712 is used to detect the connection status data with the first device. The first processing module 2713 is configured to determine whether the wireless connection or disconnection with the first device is normal based on the connection status data.
在一些可能的实施方式中,连断状态数据包括:第一状态标识,该第一状态标识用于指示无线连接装置与第一设备之间相互连接或者相互断开。In some possible implementations, the connection status data includes: a first status identifier, the first status identifier is used to indicate that the wireless connection device and the first device are connected to or disconnected from each other.
在一些可能的实施方式中,第一连断模块2711用于:接收连断请求数据,且根据连断请求数据,与第一设备无线连接或断开。第一检测模块2712用于:检测第一状态标识。第一处理模块2713用于:根据第一状态标识以及连断请求数据,判断与第一设备之间的无线连接或断开是否正常。In some possible implementations, the first connection module 2711 is configured to: receive connection request data, and wirelessly connect or disconnect with the first device according to the connection request data. The first detection module 2712 is used to: detect the first status identifier. The first processing module 2713 is configured to determine whether the wireless connection or disconnection with the first device is normal according to the first status identifier and the connection request data.
在一些可能的实施方式中,第一处理模块2713用于:判断第一状态标识指示的连断状态与连断请求数据指示的连断请求是否一致;在第一状态标识指示的连断状态与连断请求数据指示的连断请求一致的情况下,确定与第一设备之间的无线连接为正常;在第一状态标识指示的连断状态与连断请求数据指示的连断请求不一致的情况下,无线连接装置确定与第一设备之间的无线连接为异常。In some possible implementations, the first processing module 2713 is configured to: determine whether the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data; When the connection request indicated by the connection request data is consistent, the wireless connection with the first device is determined to be normal; when the connection state indicated by the first status identifier is inconsistent with the connection request indicated by the connection request data Next, the wireless connection device determines that the wireless connection with the first device is abnormal.
在一些可能的实施方式中,在第一处理模块2713确定与第一设备之间的无线连接或断开为异常的情况下,第一处理模块2713还用于:根据连断请求数据,再至少一次执行与第一设备无线连接或断开;至少一次检测第一状态标识,直至执行次数到达预设数量或第一状态标识指示的连断状态与连断请求数据指示的连断请求一致。In some possible implementations, when the first processing module 2713 determines that the wireless connection or disconnection with the first device is abnormal, the first processing module 2713 is also configured to: based on the connection request data, at least Perform wireless connection or disconnection with the first device once; detect the first status identifier at least once until the number of executions reaches a preset number or the connection status indicated by the first status indicator is consistent with the connection request indicated by the connection request data.
在一些可能的实施方式中,如图27所示,无线连接装置2710还包括结构体模块2714和/或非易失性存储(NVM)模块2715;第一处理模块2713还用于:将连断请求数据存储至结构体模块2714和/或非易失性存储模块2715。In some possible implementations, as shown in Figure 27, the wireless connection device 2710 also includes a structure module 2714 and/or a non-volatile memory (NVM) module 2715; the first processing module 2713 is also used to: disconnect the The requested data is stored in the structure module 2714 and/or the non-volatile storage module 2715.
在一些可能的实施方式中,第一处理模块2713还用于:将第一状态标识存储至结构体模块2714和/或非易失性存储模块2715。In some possible implementations, the first processing module 2713 is also configured to: store the first status identifier to the structure module 2714 and/or the non-volatile storage module 2715.
在一些可能的实施方式中,在第一处理模块2713用于将连断请求数据存储至 非易失性存储模块2715之后,第一处理模块2713还用于:在电池管理设备2700断电且重新上电后,从非易失性存储模块2715中读取连断请求数据;根据连断请求数据,再次与第一设备无线连接或断开。In some possible implementations, after the first processing module 2713 is configured to store the connection request data to the non-volatile storage module 2715, the first processing module 2713 is also configured to: when the battery management device 2700 is powered off and restarted. After power-on, the connection request data is read from the non-volatile storage module 2715; according to the connection request data, wireless connection or disconnection is performed with the first device again.
在一些可能的实施方式中,在第一处理模块2713用于将第一状态标识存储至非易失性存储模块2715之后,第一处理模块2713还用于:在电池管理设备2700断电且重新上电后,从非易失性存储模块2715中读取第一状态标识;根据连断请求数据与第一状态标识,再次与第一设备无线连接或断开。In some possible implementations, after the first processing module 2713 is configured to store the first status identifier into the non-volatile storage module 2715, the first processing module 2713 is also configured to: when the battery management device 2700 is powered off and restarted. After powering on, the first status identifier is read from the non-volatile storage module 2715; according to the connection request data and the first status identifier, wirelessly connects or disconnects with the first device again.
在一些可能的实施方式中,在电池管理设备2700断电且重新上电后,第一处理模块2713从非易失性存储模块2715中读取的连断请求数据为连接请求数据;第一处理模块2713用于:判断第一状态标识指示的连断状态是否为连接;在第一状态标识指示的连断状态为连接的情况下,根据连接请求数据,再次与第一设备无线连接。In some possible implementations, after the battery management device 2700 is powered off and on again, the connection request data read by the first processing module 2713 from the non-volatile storage module 2715 is connection request data; first processing Module 2713 is used to: determine whether the connection state indicated by the first status identifier is connected; if the connection state indicated by the first status identifier is connected, wirelessly connect with the first device again according to the connection request data.
在一些可能的实施方式中,连断状态数据还包括:第一信息标识,第一信息标识用于指示无线连接装置与第一设备无线连接或断开的执行情况。第一检测模块2712用于:检测第一信息标识。第一处理模块2713用于:根据第一信息标识,判断与第一设备之间的无线连接或断开是否正常。In some possible implementations, the connection status data further includes: a first information identifier, and the first information identifier is used to indicate the execution status of wireless connection or disconnection between the wireless connection device and the first device. The first detection module 2712 is used to detect the first information identifier. The first processing module 2713 is configured to determine whether the wireless connection or disconnection with the first device is normal according to the first information identifier.
在一些可能的实施方式中,第一信息标识用于指示与第一设备无线连接或断开的执行是否完成;第一处理模块2713用于:根据第一信息标识,判断与第一设备无线连接或断开的执行是否完成;在与第一设备无线连接或断开未执行完成的情况下,确定与第一设备之间的无线连接或断开为异常;在与第一设备无线连接或断开执行完成的情况下,确定与第一设备之间的无线连接或断开为正常。In some possible implementations, the first information identifier is used to indicate whether the wireless connection or disconnection with the first device is completed; the first processing module 2713 is used to: determine the wireless connection with the first device according to the first information identifier. or whether the execution of disconnection is completed; when the wireless connection or disconnection with the first device is not completed, it is determined that the wireless connection or disconnection with the first device is abnormal; when the wireless connection or disconnection with the first device is not completed, When the start execution is completed, it is determined that the wireless connection or disconnection with the first device is normal.
在一些可能的实施方式中,在第一处理模块2713用于确定与第一设备之间的无线连接或断开为异常的情况下,第一处理模块2713还用于:再至少一次执行与第一设备无线连接或断开;再至少一次检测第一信息标识,直至第一信息标识指示与第一设备无线连接或断开执行完成。In some possible implementations, when the first processing module 2713 is used to determine that the wireless connection or disconnection with the first device is abnormal, the first processing module 2713 is also used to: perform at least one more connection with the first device. A device is wirelessly connected or disconnected; and the first information identifier is detected at least once until the first information identifier indicates that the wireless connection or disconnection with the first device is completed.
在一些可能的实施方式中,第一连断模块2711包括:状态机模块和无线通信协议栈模块。其中,状态机模块用于根据连断请求数据,调用无线通信协议栈模块;无线通信协议栈模块用于执行与第一设备无线连接或断开,以形成第一信息标识,其中,第一信息标识用于指示无线通信协议栈模块与第一设备无线连接或断开的执行情况。In some possible implementations, the first connection module 2711 includes: a state machine module and a wireless communication protocol stack module. Among them, the state machine module is used to call the wireless communication protocol stack module according to the connection request data; the wireless communication protocol stack module is used to perform wireless connection or disconnection with the first device to form a first information identifier, where the first information The identifier is used to indicate the execution status of wireless connection or disconnection between the wireless communication protocol stack module and the first device.
在一些可能的实施方式中,在第一处理模块2713用于与第一设备无线连接之后,第一处理模块2713还用于:执行与第一设备的主从认证。In some possible implementations, after the first processing module 2713 is used to wirelessly connect with the first device, the first processing module 2713 is also used to: perform master-slave authentication with the first device.
在一些可能的实施方式中,第一处理模块2713用于:接收第一设备发送的第一报文以及第一随机数,第一报文用于指示第一设备的主从认证;对第一随机数执行算法处理,得到第一目标数;向第一设备发送匹配于第一报文的第二报文以及第一目标数,以使得第一设备识别第二报文,并对第一目标数进行算法检查,确定主从认证的结果。In some possible implementations, the first processing module 2713 is configured to: receive a first message and a first random number sent by the first device, where the first message is used to indicate master-slave authentication of the first device; Execute algorithm processing on random numbers to obtain the first target number; send a second message matching the first message and the first target number to the first device, so that the first device recognizes the second message and responds to the first target number. Perform algorithm check on the number to determine the result of master-slave authentication.
图28示出了本申请实施例提供的另一电池管理设备2800的示意性结构框图。Figure 28 shows a schematic structural block diagram of another battery management device 2800 provided by an embodiment of the present application.
如图28所示,在本申请实施例中,电池管理设备2800包括:上述无线连接装置2710以及控制装置2810,该控制装置2810连接于无线连接装置2710,且控制装置 2810包括:第二检测模块2811和第二处理模块2812。As shown in Figure 28, in the embodiment of the present application, the battery management device 2800 includes: the above-mentioned wireless connection device 2710 and a control device 2810. The control device 2810 is connected to the wireless connection device 2710, and the control device 2810 includes: a second detection module 2811 and the second processing module 2812.
具体地,第二检测模块2811用于检测无线连接装置2710的第一状态标识。第二处理模块2812用于根据第一状态标识,判断无线连接装置2710与第一设备之间的无线连接或断开是否正常。Specifically, the second detection module 2811 is used to detect the first status identifier of the wireless connection device 2710. The second processing module 2812 is configured to determine whether the wireless connection or disconnection between the wireless connection device 2710 and the first device is normal according to the first status identifier.
在一些可能的实施方式中,如图28所示,控制装置2810还包括:第二接收模块2813和第二发送模块2814。该第二接收模块2813用于:获取连断请求命令,连断请求命令用于指示电池管理设备与第一设备之间的无线连接或断开。第二处理模块2812用于:将基于第一通信协议的连断请求命令转换为基于第二通信协议的连断请求数据,其中,第一通信协议与第二通信协议为不同类型的两种通信协议。第二发送模块2814用于:向无线连接装置2710发送连断请求数据,以使得无线连接装置2710根据连断请求数据与第一设备无线连接或断开。In some possible implementations, as shown in Figure 28, the control device 2810 also includes: a second receiving module 2813 and a second sending module 2814. The second receiving module 2813 is configured to obtain a connection request command, which is used to instruct wireless connection or disconnection between the battery management device and the first device. The second processing module 2812 is configured to convert the connection request command based on the first communication protocol into the connection request data based on the second communication protocol, where the first communication protocol and the second communication protocol are two different types of communication. protocol. The second sending module 2814 is configured to send connection request data to the wireless connection device 2710, so that the wireless connection device 2710 wirelessly connects or disconnects with the first device according to the connection request data.
在一些可能的实施方式中,第二处理模块2812用于:根据第一状态标识和连断请求数据,判断无线连接装置2710与第一设备之间的无线连接或断开是否正常。In some possible implementations, the second processing module 2812 is configured to determine whether the wireless connection or disconnection between the wireless connection device 2710 and the first device is normal based on the first status identifier and the connection request data.
在一些可能的实施方式中,第二处理模块2812用于:判断第一状态标识指示的连断状态与连断请求数据指示的连断请求是否一致;在第一状态标识指示的连断状态与连断请求数据指示的连断请求一致的情况下,确定无线连接装置2710与第一设备之间的无线连接或断开为正常;在第一状态标识指示的连断状态与连断请求数据指示的连断请求不一致的情况下,确定无线连接装置2710与第一设备之间的无线连接或断开为异常。In some possible implementations, the second processing module 2812 is used to: determine whether the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data; when the connection status indicated by the first status indicator is consistent with the connection request data, When the connection request indicated by the connection request data is consistent, it is determined that the wireless connection or disconnection between the wireless connection device 2710 and the first device is normal; when the connection state indicated by the first status identifier is consistent with the connection request data indication If the connection requests are inconsistent, it is determined that the wireless connection or disconnection between the wireless connection device 2710 and the first device is abnormal.
在一些可能的实施方式中,在第二处理模块2812确定无线连接装置2710与第一设备之间的无线连接或断开为异常的情况下,第二处理模块2812还用于:根据连断请求命令,控制无线连接装置2710至少一次与第一设备无线连接或断开;至少一次检测无线连接装置2710的第一状态标识,直至确定无线连接装置2710与第一设备之间的无线连接或断开正常。In some possible implementations, when the second processing module 2812 determines that the wireless connection or disconnection between the wireless connection device 2710 and the first device is abnormal, the second processing module 2812 is also configured to: according to the connection request Command to control the wireless connection device 2710 to wirelessly connect or disconnect with the first device at least once; detect the first status identifier of the wireless connection device 2710 at least once until the wireless connection or disconnection between the wireless connection device 2710 and the first device is determined normal.
在一些可能的实施方式中,如图28所示,控制装置2810还包括非易失性存储模块2815,在第二处理模块2812将连断请求命令转换为连断请求数据之后,第二处理模块2812还用于:将连断请求数据存储于非易失性存储模块2815。In some possible implementations, as shown in Figure 28, the control device 2810 also includes a non-volatile storage module 2815. After the second processing module 2812 converts the connection request command into the connection request data, the second processing module 2812 is also used to: store the connection request data in the non-volatile storage module 2815.
在一些可能的实施方式中,无线连接装置2710用于与第一设备蓝牙连接或断开。具体地,无线连接装置2710中的第一连断模块2711用于与第一设备蓝牙连断或断开。In some possible implementations, the wireless connection device 2710 is used to connect or disconnect with the first device via Bluetooth. Specifically, the first connection module 2711 in the wireless connection device 2710 is used to connect or disconnect with the first device via Bluetooth.
在一些可能的实施方式中,上述电池管理设备2700或电池管理设备2800为用电设备中的主电池管理单元(MBMU),第一设备为用电设备中的从电池管理单元(SBMU);或,上述电池管理设备2700或电池管理设备2800为换电设备中的充电电池管理单元(CBMU),第一设备为换电设备中的从电池管理单元(SBMU);或,上述电池管理设备2700或电池管理设备2800为换电设备中的换电电池管理单元(TBMU),第一设备为用电设备中的主电池管理单元(MBMU)。In some possible implementations, the battery management device 2700 or the battery management device 2800 is a master battery management unit (MBMU) in the powered device, and the first device is a slave battery management unit (SBMU) in the powered device; or , the above-mentioned battery management device 2700 or battery management device 2800 is the rechargeable battery management unit (CBMU) in the power exchange device, and the first device is the slave battery management unit (SBMU) in the power exchange device; or, the above-mentioned battery management device 2700 or The battery management device 2800 is a battery replacement battery management unit (TBMU) in the power replacement device, and the first device is a main battery management unit (MBMU) in the power consumption device.
图29示出了本申请实施例提供的另一电池管理设备2900的示意性结构框图。Figure 29 shows a schematic structural block diagram of another battery management device 2900 provided by an embodiment of the present application.
如图29所示,该电池管理设备2900包括:处理器2910和存储器2920,其中, 存储器2920用于存储程序,处理器2910用于从存储器2920中调用并运行程序以执行上述实施例中的无线连接方法。As shown in Figure 29, the battery management device 2900 includes: a processor 2910 and a memory 2920, where the memory 2920 is used to store programs, and the processor 2910 is used to call and run the program from the memory 2920 to perform the wireless operation in the above embodiment. connection method.
具体地,在该电池管理设备2900中,同样可包括无线连接装置和控制装置,其中无线连接装置包括第一处理器和第一存储器,该第一处理器和第一存储器相互配合并用于实现上述实施例中无线连接装置作为执行主体的无线连接方法。另外,控制装置包括第二处理器和第二存储器,该第二处理器和第二存储器相互配合并用于实现上述实施例中控制装置作为执行主体的无线连接方法。Specifically, the battery management device 2900 may also include a wireless connection device and a control device, where the wireless connection device includes a first processor and a first memory. The first processor and the first memory cooperate with each other and are used to implement the above. In the embodiment, the wireless connection device serves as the execution subject of the wireless connection method. In addition, the control device includes a second processor and a second memory. The second processor and the second memory cooperate with each other and are used to implement the wireless connection method in which the control device serves as the execution subject in the above embodiment.
图30示出了本申请实施例提供的一种电子设备3000的示意性结构框图。Figure 30 shows a schematic structural block diagram of an electronic device 3000 provided by an embodiment of the present application.
如图30所示,该电子设备3000可包括:上述电池管理设备2700、电池管理设备2800或者电池管理设备2900。As shown in Figure 30, the electronic device 3000 may include: the above-mentioned battery management device 2700, battery management device 2800 or battery management device 2900.
可选地,该电子设备3000可以为用电设备,例如该用电设备可以为上述图1中所示的车辆1。或者,该电子设备3000还可以换电设备,例如该换电设备可以为上述图2中所示的换电站2。Optionally, the electronic device 3000 may be an electrical device. For example, the electrical device may be the vehicle 1 shown in FIG. 1 . Alternatively, the electronic device 3000 may also be a power swapping device. For example, the power swapping device may be the power swapping station 2 shown in FIG. 2 .
应理解,本文中的具体的例子只是为了帮助本领域技术人员更好地理解本申请实施例,而非限制本申请实施例的范围。It should be understood that the specific examples herein are only to help those skilled in the art better understand the embodiments of the present application, but are not intended to limit the scope of the embodiments of the present application.
还应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should also be understood that in the various embodiments of the present application, the size of the sequence numbers of each process does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not be used in the embodiments of the present application. The implementation process constitutes any limitation.
还应理解,本说明书中描述的各种实施方式,既可以单独实施,也可以组合实施,本申请实施例对此并不限定。It should also be understood that the various implementation modes described in this specification can be implemented individually or in combination, and the embodiments of the present application are not limited to this.
虽然已经参考优选实施例对本申请进行了描述,但在不脱离本申请的范围的情况下,可以对其进行各种改进并且可以用等效物替换其中的部件。尤其是,只要不存在结构冲突,各个实施例中所提到的各项技术特征均可以任意方式组合起来。本申请并不局限于文中公开的特定实施例,而是包括落入权利要求的范围内的所有技术方案。While the present application has been described with reference to preferred embodiments, various modifications may be made and equivalents may be substituted for components thereof without departing from the scope of the application. In particular, as long as there is no structural conflict, the technical features mentioned in the various embodiments can be combined in any way. The application is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.

Claims (49)

  1. 一种电池管理设备的无线连接方法,其特征在于,包括:A wireless connection method for battery management equipment, characterized by including:
    与第一设备无线连接或断开;Wirelessly connect or disconnect from the first device;
    检测与所述第一设备之间的连断状态数据;Detect connection status data with the first device;
    根据所述连断状态数据,判断与所述第一设备之间的无线连接或断开是否正常。According to the connection status data, it is determined whether the wireless connection or disconnection with the first device is normal.
  2. 根据权利要求1所述的无线连接方法,其特征在于,所述电池管理设备包括:无线连接装置;所述连断状态数据包括:第一状态标识,所述第一状态标识用于指示所述无线连接装置与所述第一设备之间相互连接或者相互断开。The wireless connection method according to claim 1, characterized in that the battery management device includes: a wireless connection device; the connection status data includes: a first status identifier, the first status identifier is used to indicate the The wireless connection device and the first device are connected to or disconnected from each other.
  3. 根据权利要求2所述的无线连接方法,其特征在于,所述与第一设备无线连接或断开,包括:The wireless connection method according to claim 2, wherein the wireless connection or disconnection with the first device includes:
    所述无线连接装置接收连断请求数据;The wireless connection device receives connection request data;
    所述无线连接装置根据所述连断请求数据,与第一设备无线连接或断开;The wireless connection device wirelessly connects or disconnects from the first device according to the connection request data;
    所述检测与所述第一设备之间的连断状态数据,包括:The connection status data between the detection and the first device includes:
    所述无线连接装置检测所述第一状态标识;The wireless connection device detects the first status identifier;
    所述根据所述连断状态数据,判断与所述第一设备之间的无线连接或断开是否正常,包括:Determining whether the wireless connection or disconnection with the first device is normal based on the connection status data includes:
    所述无线连接装置根据所述第一状态标识以及所述连断请求数据,判断与所述第一设备之间的无线连接或断开是否正常。The wireless connection device determines whether the wireless connection or disconnection with the first device is normal based on the first status identifier and the connection request data.
  4. 根据权利要求3所述的无线连接方法,其特征在于,所述无线连接装置根据所述第一状态标识以及所述连断请求数据,判断与所述第一设备之间的无线连接或断开是否正常,包括:The wireless connection method according to claim 3, characterized in that the wireless connection device determines whether the wireless connection or disconnection with the first device is based on the first status identifier and the connection request data. Whether it is normal, including:
    所述无线连接装置判断所述第一状态标识指示的连断状态与所述连断请求数据指示的连断请求是否一致;The wireless connection device determines whether the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data;
    在所述第一状态标识指示的连断状态与所述连断请求数据指示的连断请求一致的情况下,所述无线连接装置确定与所述第一设备之间的无线连接为正常;When the connection state indicated by the first status identifier is consistent with the connection request indicated by the connection request data, the wireless connection device determines that the wireless connection with the first device is normal;
    在所述第一状态标识指示的连断状态与所述连断请求数据指示的连断请求不一致的情况下,所述无线连接装置确定与所述第一设备之间的无线连接为异常。When the connection status indicated by the first status identifier is inconsistent with the connection request indicated by the connection request data, the wireless connection device determines that the wireless connection with the first device is abnormal.
  5. 根据权利要求4所述的无线连接方法,其特征在于,在所述无线连接装置确定与所述第一设备之间的无线连接或断开为异常的情况下,所述无线连接方法还包括:The wireless connection method according to claim 4, wherein when the wireless connection device determines that the wireless connection or disconnection with the first device is abnormal, the wireless connection method further includes:
    所述无线连接装置根据所述连断请求数据,再至少一次执行与所述第一设备无线连接或断开;The wireless connection device performs wireless connection or disconnection with the first device at least once according to the connection request data;
    所述无线连接装置至少一次检测所述第一状态标识,直至执行次数到达预设数量或所述第一状态标识指示的连断状态与所述连断请求数据指示的连断请求一致。The wireless connection device detects the first status identifier at least once until the number of executions reaches a preset number or the connection status indicated by the first status indicator is consistent with the connection request indicated by the connection request data.
  6. 根据权利要求3至5中任一项所述的无线连接方法,其特征在于,所述无线连接装置包括结构体模块和/或非易失性存储模块;The wireless connection method according to any one of claims 3 to 5, characterized in that the wireless connection device includes a structure module and/or a non-volatile storage module;
    其中,在所述无线连接装置接收连断请求数据之后,所述无线连接方法还包括:Wherein, after the wireless connection device receives the connection request data, the wireless connection method further includes:
    所述无线连接装置将所述连断请求数据存储至所述结构体模块和/或所述非易失性存储模块;The wireless connection device stores the connection request data in the structure module and/or the non-volatile storage module;
    且所述无线连接装置将所述第一状态标识存储至所述结构体模块和/或所述非易失性存储模块。And the wireless connection device stores the first status identifier in the structure module and/or the non-volatile storage module.
  7. 根据权利要求6所述的无线连接方法,其特征在于,在所述无线连接装置将所述连断请求数据存储至所述非易失性存储模块之后,所述无线连接方法还包括:The wireless connection method according to claim 6, wherein after the wireless connection device stores the connection request data in the non-volatile storage module, the wireless connection method further includes:
    在所述电池管理设备断电且重新上电后,所述无线连接装置从所述非易失性存储模块中读取所述连断请求数据;After the battery management device is powered off and powered on again, the wireless connection device reads the connection request data from the non-volatile storage module;
    所述无线连接装置根据所述连断请求数据,再次与所述第一设备无线连接或断开。The wireless connection device wirelessly connects or disconnects with the first device again according to the connection request data.
  8. 根据权利要求7所述的无线连接方法,其特征在于,在所述无线连接装置将所述第一状态标识存储至所述非易失性存储模块之后,所述无线连接方法还包括:The wireless connection method according to claim 7, wherein after the wireless connection device stores the first status identifier in the non-volatile storage module, the wireless connection method further includes:
    在所述电池管理设备断电且重新上电后,所述无线连接装置从所述非易失性存储模块中读取所述第一状态标识;After the battery management device is powered off and powered on again, the wireless connection device reads the first status identifier from the non-volatile storage module;
    其中,所述无线连接装置根据所述连断请求数据,再次与所述第一设备无线连接或断开,包括:Wherein, the wireless connection device wirelessly connects or disconnects with the first device again according to the connection request data, including:
    所述无线连接装置根据所述连断请求数据与所述第一状态标识,再次与所述第一设备无线连接或断开。The wireless connection device wirelessly connects or disconnects with the first device again according to the connection request data and the first status identifier.
  9. 根据权利要求8所述的无线连接方法,其特征在于,在所述电池管理设备断电且重新上电后,所述无线连接装置从所述非易失性存储模块中读取的所述连断请求数据为连接请求数据;The wireless connection method according to claim 8, characterized in that after the battery management device is powered off and powered on again, the wireless connection device reads the connection information from the non-volatile storage module. The disconnect request data is the connection request data;
    其中,所述无线连接装置根据所述连断请求数据与所述第一状态标识,与所述第一设备无线连接或断开,包括:Wherein, the wireless connection device wirelessly connects or disconnects from the first device according to the connection request data and the first status identifier, including:
    所述无线连接装置判断所述第一状态标识指示的连断状态是否为连接;The wireless connection device determines whether the disconnection state indicated by the first status indicator is connected;
    在所述第一状态标识指示的连断状态为连接的情况下,所述无线连接装置根据所述连接请求数据,再次与所述第一设备无线连接。When the connection state indicated by the first status identifier is connected, the wireless connection device wirelessly connects to the first device again according to the connection request data.
  10. 根据权利要求2至9中任一项所述的无线连接方法,其特征在于,所述连断状态数据还包括:第一信息标识,所述第一信息标识用于指示所述无线连接装置与所述第一设备无线连接或断开的执行情况;The wireless connection method according to any one of claims 2 to 9, characterized in that the connection status data further includes: a first information identifier, the first information identifier is used to indicate that the wireless connection device and The execution status of wireless connection or disconnection of the first device;
    其中,所述检测与所述第一设备之间的连断状态数据,包括:Wherein, the connection status data between the detection and the first device includes:
    所述无线连接装置检测所述第一信息标识;The wireless connection device detects the first information identifier;
    所述根据所述连断状态数据,判断与所述第一设备之间的无线连接或断开是否正常,包括:Determining whether the wireless connection or disconnection with the first device is normal based on the connection status data includes:
    所述无线连接装置根据所述第一信息标识,判断与所述第一设备之间的无线连接或断开是否正常。The wireless connection device determines whether the wireless connection or disconnection with the first device is normal based on the first information identifier.
  11. 根据权利要求10所述的无线连接方法,其特征在于,所述第一信息标识用于指示与所述第一设备无线连接或断开的执行是否完成;The wireless connection method according to claim 10, wherein the first information identifier is used to indicate whether the execution of wireless connection or disconnection with the first device is completed;
    其中,所述无线连接装置根据所述第一信息标识,判断与所述第一设备之间的无线连接或断开是否正常,包括:Wherein, the wireless connection device determines whether the wireless connection or disconnection with the first device is normal based on the first information identifier, including:
    所述无线连接装置根据所述第一信息标识,判断与所述第一设备无线连接或断开的执行是否完成;The wireless connection device determines whether the execution of wireless connection or disconnection with the first device is completed based on the first information identifier;
    在与所述第一设备无线连接或断开未执行完成的情况下,所述无线连接装置确定与所述第一设备之间的无线连接或断开为异常;When the wireless connection or disconnection with the first device is not completed, the wireless connection device determines that the wireless connection or disconnection with the first device is abnormal;
    在与所述第一设备无线连接或断开执行完成的情况下,所述无线连接装置确定与所述第一设备之间的无线连接或断开为正常。When the wireless connection or disconnection with the first device is completed, the wireless connection device determines that the wireless connection or disconnection with the first device is normal.
  12. 根据权利要求11所述的无线连接方法,其特征在于,在所述无线连接装置确定与所述第一设备之间的无线连接或断开为异常的情况下,所述无线连接方法还包括:The wireless connection method according to claim 11, characterized in that, when the wireless connection device determines that the wireless connection or disconnection with the first device is abnormal, the wireless connection method further includes:
    所述无线连接装置再至少一次执行与所述第一设备无线连接或断开;The wireless connection device performs wireless connection or disconnection with the first device at least once;
    所述无线连接装置再至少一次检测所述第一信息标识,直至所述第一信息标识指示与所述第一设备无线连接或断开执行完成。The wireless connection device detects the first information identifier at least once again until the first information identifier indicates that the wireless connection or disconnection with the first device is completed.
  13. 根据权利要求10至12中任一项所述的无线连接方法,其特征在于,所述无线连接装置包括:状态机模块和无线通信协议栈模块;The wireless connection method according to any one of claims 10 to 12, characterized in that the wireless connection device includes: a state machine module and a wireless communication protocol stack module;
    其中,所述根据所述连断请求数据,与所述第一设备无线连接或断开,包括:Wherein, wirelessly connecting or disconnecting with the first device according to the connection request data includes:
    所述状态机模块根据所述连断请求数据,调用所述无线通信协议栈模块;The state machine module calls the wireless communication protocol stack module according to the connection request data;
    所述无线通信协议栈模块执行与所述第一设备无线连接或断开,以形成所述第一信息标识,其中,所述第一信息标识用于指示所述无线通信协议栈模块与所述第一设备无线连接或断开的执行情况。The wireless communication protocol stack module performs wireless connection or disconnection with the first device to form the first information identifier, wherein the first information identifier is used to indicate that the wireless communication protocol stack module is connected to the first device. The first device performs wireless connection or disconnection.
  14. 根据权利要求2至13中任一项所述的无线连接方法,其特征在于,在与所述第一设备无线连接之后,所述无线连接方法还包括:The wireless connection method according to any one of claims 2 to 13, characterized in that, after wirelessly connecting with the first device, the wireless connection method further includes:
    所述无线连接装置执行与所述第一设备的主从认证。The wireless connection device performs master-slave authentication with the first device.
  15. 根据权利要求14所述的无线连接方法,其特征在于,所述无线连接装置执行与所述第一设备的主从认证,包括:The wireless connection method according to claim 14, characterized in that the wireless connection device performs master-slave authentication with the first device, including:
    所述无线连接装置接收所述第一设备发送的第一报文以及第一随机数,所述第一报文用于指示所述第一设备的主从认证;The wireless connection device receives a first message and a first random number sent by the first device, where the first message is used to indicate master-slave authentication of the first device;
    所述无线连接装置对所述第一随机数执行算法处理,得到第一目标数;The wireless connection device performs algorithm processing on the first random number to obtain a first target number;
    所述无线连接装置向所述第一设备发送匹配于所述第一报文的第二报文以及所述第一目标数,以使得所述第一设备识别所述第二报文,并对所述第一目标数进行算法检查,确定主从认证的结果。The wireless connection device sends a second message matching the first message and the first target number to the first device, so that the first device recognizes the second message and responds to The first target number is checked algorithmically to determine the result of master-slave authentication.
  16. 根据权利要求2至15中任一项所述的无线连接方法,其特征在于,所述电池管理设备包括:控制装置,所述控制装置连接于所述无线连接装置;The wireless connection method according to any one of claims 2 to 15, wherein the battery management device includes: a control device, the control device is connected to the wireless connection device;
    其中,所述检测与所述第一设备之间的连断状态数据,包括:Wherein, the connection status data between the detection and the first device includes:
    所述控制装置检测所述无线连接装置的所述第一状态标识;The control device detects the first status identifier of the wireless connection device;
    所述根据所述连断状态数据,判断与所述第一设备之间的无线连接或断开是否正常,包括:Determining whether the wireless connection or disconnection with the first device is normal based on the connection status data includes:
    所述控制装置根据所述第一状态标识,判断所述无线连接装置与所述第一设备之间的无线连接或断开是否正常。The control device determines whether the wireless connection or disconnection between the wireless connection device and the first device is normal based on the first status identifier.
  17. 根据权利要求16所述的无线连接方法,其特征在于,所述与第一设备无线连接 或断开,包括:The wireless connection method according to claim 16, wherein the wireless connection or disconnection with the first device includes:
    所述控制装置获取连断请求命令,所述连断请求命令用于指示所述电池管理设备与第一设备之间的无线连接或断开;The control device obtains a connection request command, and the connection request command is used to instruct wireless connection or disconnection between the battery management device and the first device;
    所述控制装置将基于第一通信协议的所述连断请求命令转换为基于第二通信协议的连断请求数据,其中,所述第一通信协议与所述第二通信协议不同;The control device converts the connection request command based on the first communication protocol into connection request data based on the second communication protocol, wherein the first communication protocol is different from the second communication protocol;
    所述控制装置向所述无线连接装置发送所述连断请求数据,以使得所述无线连接装置根据所述连断请求数据与所述第一设备无线连接或断开。The control device sends the connection request data to the wireless connection device, so that the wireless connection device wirelessly connects or disconnects with the first device according to the connection request data.
  18. 根据权利要求17所述的无线连接方法,其特征在于,所述控制装置根据所述第一状态标识,判断所述无线连接装置与所述第一设备之间的无线连接或断开是否正常,包括:The wireless connection method according to claim 17, characterized in that the control device determines whether the wireless connection or disconnection between the wireless connection device and the first device is normal based on the first status identifier, include:
    所述控制装置根据所述第一状态标识和所述连断请求数据,判断所述无线连接装置与所述第一设备之间的无线连接或断开是否正常。The control device determines whether the wireless connection or disconnection between the wireless connection device and the first device is normal based on the first status identifier and the connection request data.
  19. 根据权利要求18所述的无线连接方法,其特征在于,所述控制装置根据所述第一状态标识和所述连断请求数据,判断所述无线连接装置与所述第一设备之间的无线连接或断开是否正常,包括:The wireless connection method according to claim 18, characterized in that the control device determines the wireless connection between the wireless connection device and the first device based on the first status identifier and the connection request data. Whether the connection or disconnection is normal, including:
    所述控制装置判断所述第一状态标识指示的连断状态与所述连断请求数据指示的连断请求是否一致;The control device determines whether the connection status indicated by the first status indicator is consistent with the connection request indicated by the connection request data;
    在所述第一状态标识指示的连断状态与所述连断请求数据指示的连断请求一致的情况下,所述控制装置确定所述无线连接装置与所述第一设备之间的无线连接或断开为正常;When the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data, the control device determines the wireless connection between the wireless connection device and the first device. Or disconnected as normal;
    在所述第一状态标识指示的连断状态与所述连断请求数据指示的连断请求不一致的情况下,所述控制装置确定所述无线连接装置与所述第一设备之间的无线连接或断开为异常。When the connection status indicated by the first status identifier is inconsistent with the connection request indicated by the connection request data, the control device determines the wireless connection between the wireless connection device and the first device. Or disconnected as an exception.
  20. 根据权利要求16至19中任一项所述的无线连接方法,其特征在于,在所述控制装置确定所述无线连接装置与所述第一设备之间的无线连接或断开为异常的情况下,所述无线连接方法还包括:The wireless connection method according to any one of claims 16 to 19, wherein the control device determines that the wireless connection or disconnection between the wireless connection device and the first device is abnormal. Below, the wireless connection method also includes:
    所述控制装置根据所述连断请求命令,控制所述无线连接装置至少一次与所述第一设备无线连接或断开;The control device controls the wireless connection device to wirelessly connect or disconnect with the first device at least once according to the connection request command;
    所述控制装置至少一次检测所述无线连接装置的所述第一状态标识,直至确定所述无线连接装置与所述第一设备之间的无线连接或断开正常。The control device detects the first status identifier of the wireless connection device at least once until it is determined that the wireless connection or disconnection between the wireless connection device and the first device is normal.
  21. 根据权利要求17至20中任一项所述的无线连接方法,其特征在于,所述控制装置包括非易失性存储模块,在所述控制装置将所述连断请求命令转换为连断请求数据之后,所述无线连接方法还包括:The wireless connection method according to any one of claims 17 to 20, characterized in that the control device includes a non-volatile storage module, and the control device converts the connection request command into a connection request. After data, the wireless connection method also includes:
    所述控制装置将所述连断请求数据存储于所述非易失性存储模块。The control device stores the connection request data in the non-volatile storage module.
  22. 根据权利要求1至21中任一项所述的无线连接方法,其特征在于,所述与第一设备无线连接或断开,包括:The wireless connection method according to any one of claims 1 to 21, wherein the wireless connection or disconnection with the first device includes:
    与所述第一设备蓝牙连接或断开。Bluetooth connection or disconnection with the first device.
  23. 根据权利要求1至22中任一项所述的无线连接方法,其特征在于,所述电池管 理设备为用电设备中的主电池管理单元MBMU,所述第一设备为所述用电设备中的从电池管理单元SBMU;或,The wireless connection method according to any one of claims 1 to 22, wherein the battery management device is a main battery management unit MBMU in the powered device, and the first device is a main battery management unit in the powered device. the slave battery management unit SBMU; or,
    所述电池管理设备为换电设备中的充电电池管理单元CBMU,所述第一设备为所述换电设备中的从电池管理单元SBMU;或,The battery management device is the rechargeable battery management unit CBMU in the power swap device, and the first device is the slave battery management unit SBMU in the power swap device; or,
    所述电池管理设备为换电设备中的换电电池管理单元TBMU,所述第一设备为用电设备中的主电池管理单元MBMU。The battery management device is a battery replacement battery management unit TBMU in a power replacement device, and the first device is a main battery management unit MBMU in a power consumption device.
  24. 一种电池管理设备,其特征在于,包括:无线连接装置,所述无线连接装置包括:A battery management device, characterized in that it includes: a wireless connection device, the wireless connection device includes:
    第一连断模块,用于与第一设备无线连接或断开;The first connection module is used to wirelessly connect or disconnect with the first device;
    第一检测模块,用于检测与所述第一设备之间的连断状态数据;A first detection module, configured to detect connection status data with the first device;
    第一处理模块,用于根据所述连断状态数据,判断与所述第一设备之间的无线连接或断开是否正常。The first processing module is configured to determine whether the wireless connection or disconnection with the first device is normal according to the connection status data.
  25. 根据权利要求24所述的电池管理设备,其特征在于,所述连断状态数据包括:第一状态标识,所述第一状态标识用于指示所述无线连接装置与所述第一设备之间相互连接或者相互断开。The battery management device according to claim 24, wherein the connection status data includes: a first status identifier, the first status identifier is used to indicate the connection between the wireless connection device and the first device. Connect or disconnect from each other.
  26. 根据权利要求25所述的电池管理设备,其特征在于,所述第一连断模块用于:接收连断请求数据,且根据所述连断请求数据,与第一设备无线连接或断开;The battery management device according to claim 25, wherein the first connection module is configured to: receive connection request data, and wirelessly connect or disconnect with the first device according to the connection request data;
    所述第一检测模块用于:检测所述第一状态标识;The first detection module is used to: detect the first status identifier;
    所述第一处理模块用于:根据所述第一状态标识以及所述连断请求数据,判断与所述第一设备之间的无线连接或断开是否正常。The first processing module is configured to determine whether the wireless connection or disconnection with the first device is normal according to the first status identifier and the connection request data.
  27. 根据权利要求26所述的电池管理设备,其特征在于,所述第一处理模块用于:The battery management device according to claim 26, characterized in that the first processing module is used for:
    判断所述第一状态标识指示的连断状态与所述连断请求数据指示的连断请求是否一致;Determine whether the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data;
    在所述第一状态标识指示的连断状态与所述连断请求数据指示的连断请求一致的情况下,确定与所述第一设备之间的无线连接为正常;When the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data, determine that the wireless connection with the first device is normal;
    在所述第一状态标识指示的连断状态与所述连断请求数据指示的连断请求不一致的情况下,确定与所述第一设备之间的无线连接为异常。If the connection status indicated by the first status identifier is inconsistent with the connection request indicated by the connection request data, it is determined that the wireless connection with the first device is abnormal.
  28. 根据权利要求27所述的电池管理设备,其特征在于,在所述第一处理模块确定与所述第一设备之间的无线连接或断开为异常的情况下,所述第一处理模块还用于:The battery management device according to claim 27, wherein when the first processing module determines that the wireless connection or disconnection with the first device is abnormal, the first processing module further Used for:
    根据所述连断请求数据,再至少一次执行与所述第一设备无线连接或断开;According to the connection request data, perform wireless connection or disconnection with the first device at least once;
    至少一次检测所述第一状态标识,直至执行次数到达预设数量或所述第一状态标识指示的连断状态与所述连断请求数据指示的连断请求一致。The first status identifier is detected at least once until the number of executions reaches a preset number or the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data.
  29. 根据权利要求26至28中任一项所述的电池管理设备,其特征在于,所述无线连接装置还包括结构体模块和/或非易失性存储模块;The battery management device according to any one of claims 26 to 28, wherein the wireless connection device further includes a structural module and/or a non-volatile storage module;
    所述第一处理模块还用于:将所述连断请求数据存储至所述结构体模块和/或所述非易失性存储模块;The first processing module is also configured to: store the connection request data to the structure module and/or the non-volatile storage module;
    且将所述第一状态标识存储至所述结构体模块和/或所述非易失性存储模块。And store the first status identifier in the structure module and/or the non-volatile storage module.
  30. 根据权利要求29所述的电池管理设备,其特征在于,在所述第一处理模块用于 将所述连断请求数据存储至所述非易失性存储模块之后,所述第一处理模块还用于:The battery management device according to claim 29, wherein after the first processing module stores the connection request data into the non-volatile storage module, the first processing module further Used for:
    在所述电池管理设备断电且重新上电后,从所述非易失性存储模块中读取所述连断请求数据;After the battery management device is powered off and powered on again, read the connection request data from the non-volatile storage module;
    根据所述连断请求数据,再次与所述第一设备无线连接或断开。According to the connection request data, wirelessly connect or disconnect with the first device again.
  31. 根据权利要求30所述的电池管理设备,其特征在于,在所述第一处理模块用于将所述第一状态标识存储至所述非易失性存储模块之后,所述第一处理模块还用于:The battery management device according to claim 30, wherein after the first processing module stores the first status identifier into the non-volatile storage module, the first processing module further Used for:
    在所述电池管理设备断电且重新上电后,从所述非易失性存储模块中读取所述第一状态标识;After the battery management device is powered off and powered on again, read the first status identifier from the non-volatile storage module;
    根据所述连断请求数据与所述第一状态标识,再次与所述第一设备无线连接或断开。Wirelessly connect or disconnect with the first device again according to the connection request data and the first status identifier.
  32. 根据权利要求31所述的电池管理设备,其特征在于,在所述电池管理设备断电且重新上电后,所述第一处理模块从所述非易失性存储模块中读取的所述连断请求数据为连接请求数据;The battery management device according to claim 31, characterized in that, after the battery management device is powered off and powered on again, the first processing module reads the data from the non-volatile storage module. The connection request data is the connection request data;
    所述第一处理模块用于:判断所述第一状态标识指示的连断状态是否为连接;The first processing module is configured to: determine whether the connection state indicated by the first status indicator is connected;
    在所述第一状态标识指示的连断状态为连接的情况下,根据所述连接请求数据,再次与所述第一设备无线连接。When the connection state indicated by the first status identifier is connected, wirelessly connect to the first device again according to the connection request data.
  33. 根据权利要求24至32中任一项所述的电池管理设备,其特征在于,所述连断状态数据还包括:第一信息标识,所述第一信息标识用于指示所述无线连接装置与所述第一设备无线连接或断开的执行情况;The battery management device according to any one of claims 24 to 32, characterized in that the connection status data further includes: a first information identifier, the first information identifier is used to indicate that the wireless connection device and The execution status of wireless connection or disconnection of the first device;
    所述第一检测模块用于:检测所述第一信息标识;The first detection module is used to: detect the first information identifier;
    所述第一处理模块用于:根据所述第一信息标识,判断与所述第一设备之间的无线连接或断开是否正常。The first processing module is configured to determine whether the wireless connection or disconnection with the first device is normal according to the first information identifier.
  34. 根据权利要求33所述的电池管理设备,其特征在于,所述第一信息标识用于指示与所述第一设备无线连接或断开的执行是否完成;The battery management device according to claim 33, wherein the first information identifier is used to indicate whether the execution of wireless connection or disconnection with the first device is completed;
    所述第一处理模块用于:根据所述第一信息标识,判断与所述第一设备无线连接或断开的执行是否完成;The first processing module is configured to: determine whether the execution of wireless connection or disconnection with the first device is completed according to the first information identifier;
    在与所述第一设备无线连接或断开未执行完成的情况下,确定与所述第一设备之间的无线连接或断开为异常;When the wireless connection or disconnection with the first device is not completed, determine that the wireless connection or disconnection with the first device is abnormal;
    在与所述第一设备无线连接或断开执行完成的情况下,确定与所述第一设备之间的无线连接或断开为正常。When the wireless connection or disconnection with the first device is completed, it is determined that the wireless connection or disconnection with the first device is normal.
  35. 根据权利要求34所述的电池管理设备,其特征在于,在所述第一处理模块用于确定与所述第一设备之间的无线连接或断开为异常的情况下,所述第一处理模块还用于:The battery management device according to claim 34, wherein when the first processing module determines that the wireless connection or disconnection with the first device is abnormal, the first processing module Modules are also used for:
    再至少一次执行与所述第一设备无线连接或断开;Perform wireless connection or disconnection with the first device at least once again;
    再至少一次检测所述第一信息标识,直至所述第一信息标识指示与所述第一设备无线连接或断开执行完成。The first information identifier is detected at least once again until the first information identifier indicates that the wireless connection or disconnection with the first device is completed.
  36. 根据权利要求33至35中任一项所述的电池管理设备,其特征在于,所述第一连断模块包括:状态机模块和无线通信协议栈模块;The battery management device according to any one of claims 33 to 35, wherein the first connection module includes: a state machine module and a wireless communication protocol stack module;
    所述状态机模块用于根据所述连断请求数据,调用所述无线通信协议栈模块;The state machine module is used to call the wireless communication protocol stack module according to the connection request data;
    所述无线通信协议栈模块用于执行与所述第一设备无线连接或断开,以形成所述第一信息标识,其中,所述第一信息标识用于指示所述无线通信协议栈模块与所述第一设备无线连接或断开的执行情况。The wireless communication protocol stack module is configured to perform wireless connection or disconnection with the first device to form the first information identifier, wherein the first information identifier is used to indicate that the wireless communication protocol stack module is connected to or disconnected wirelessly from the first device. The execution status of wireless connection or disconnection of the first device.
  37. 根据权利要求24至36任一项所述的电池管理设备,其特征在于,在所述第一处理模块用于与所述第一设备无线连接之后,所述第一接收单元和所述第一处理模块还用于:The battery management device according to any one of claims 24 to 36, wherein after the first processing module is used to wirelessly connect with the first device, the first receiving unit and the first Processing modules are also used to:
    执行与所述第一设备的主从认证。Perform master-slave authentication with the first device.
  38. 根据权利要求37所述的电池管理设备,其特征在于,所述无线连接装置还包括:第一发送单元;The battery management device according to claim 37, wherein the wireless connection device further includes: a first sending unit;
    所述第一接收单元用于:接收所述第一设备发送的第一报文以及第一随机数,所述第一报文用于指示所述第一设备的主从认证;The first receiving unit is configured to: receive a first message and a first random number sent by the first device, where the first message is used to indicate master-slave authentication of the first device;
    所述第一处理模块用于:对所述第一随机数执行算法处理,得到第一目标数;The first processing module is configured to: perform algorithm processing on the first random number to obtain a first target number;
    所述第一发送单元用于:向所述第一设备发送匹配于所述第一报文的第二报文以及所述第一目标数,以使得所述第一设备识别所述第二报文,并对所述第一目标数进行算法检查,确定主从认证的结果。The first sending unit is configured to: send a second message matching the first message and the first target number to the first device, so that the first device identifies the second message. document, perform an algorithm check on the first target number, and determine the result of the master-slave authentication.
  39. 根据权利要求25至38中任一项所述的电池管理设备,其特征在于,所述电池管理设备还包括:控制装置,所述控制装置连接于所述无线连接装置,且所述控制装置包括:The battery management device according to any one of claims 25 to 38, characterized in that the battery management device further includes: a control device, the control device is connected to the wireless connection device, and the control device includes :
    第二检测模块,用于检测所述无线连接装置的第一状态标识;a second detection module, configured to detect the first status identifier of the wireless connection device;
    第二处理模块,用于根据所述第一状态标识,判断所述无线连接装置与所述第一设备之间的无线连接或断开是否正常。The second processing module is configured to determine whether the wireless connection or disconnection between the wireless connection device and the first device is normal according to the first status identifier.
  40. 根据权利要求39所述的电池管理设备,其特征在于,所述控制装置还包括:第二接收模块和第二发送模块;The battery management device according to claim 39, wherein the control device further includes: a second receiving module and a second sending module;
    所述第二接收模块用于:获取连断请求命令,所述连断请求命令用于指示所述电池管理设备与第一设备之间的无线连接或断开;The second receiving module is configured to: obtain a connection request command, where the connection request command is used to indicate wireless connection or disconnection between the battery management device and the first device;
    所述第二处理模块用于:将基于第一通信协议的所述连断请求命令转换为基于第二通信协议的连断请求数据,其中,所述第一通信协议与所述第二通信协议不同;The second processing module is configured to convert the connection request command based on the first communication protocol into connection request data based on the second communication protocol, wherein the first communication protocol and the second communication protocol different;
    所述第二发送模块用于:向所述无线连接装置发送所述连断请求数据,以使得所述无线连接装置根据所述连断请求数据与所述第一设备无线连接或断开。The second sending module is configured to send the connection request data to the wireless connection device, so that the wireless connection device wirelessly connects or disconnects with the first device according to the connection request data.
  41. 根据权利要求40所述的电池管理设备,其特征在于,所述第二处理模块用于:根据所述第一状态标识和所述连断请求数据,判断所述无线连接装置与所述第一设备之间的无线连接或断开是否正常。The battery management device according to claim 40, wherein the second processing module is configured to determine whether the wireless connection device is connected to the first connection device according to the first status identifier and the connection request data. Whether the wireless connection or disconnection between devices is normal.
  42. 根据权利要求41所述的电池管理设备,其特征在于,所述第二处理模块用于:The battery management device according to claim 41, characterized in that the second processing module is used for:
    判断所述第一状态标识指示的连断状态与所述连断请求数据指示的连断请求是否一致;Determine whether the connection status indicated by the first status identifier is consistent with the connection request indicated by the connection request data;
    在所述第一状态标识指示的连断状态与所述连断请求数据指示的连断请求一致的情况下,确定所述无线连接装置与所述第一设备之间的无线连接或断开为正常;When the connection state indicated by the first status identifier is consistent with the connection request indicated by the connection request data, it is determined that the wireless connection or disconnection between the wireless connection device and the first device is normal;
    在所述第一状态标识指示的连断状态与所述连断请求数据指示的连断请求不一致的情况下,确定所述无线连接装置与所述第一设备之间的无线连接或断开为异常。When the connection status indicated by the first status identifier is inconsistent with the connection request indicated by the connection request data, it is determined that the wireless connection or disconnection between the wireless connection device and the first device is abnormal.
  43. 根据权利要求39至42中任一项所述的电池管理设备,其特征在于,在所述第二处理模块确定所述无线连接装置与所述第一设备之间的无线连接或断开为异常的情况下,所述第二处理模块还用于:The battery management device according to any one of claims 39 to 42, wherein the second processing module determines that the wireless connection or disconnection between the wireless connection device and the first device is abnormal. In the case of , the second processing module is also used to:
    根据所述连断请求命令,控制所述无线连接装置至少一次与所述第一设备无线连接或断开;Control the wireless connection device to wirelessly connect or disconnect with the first device at least once according to the connection request command;
    至少一次检测所述无线连接装置的所述第一状态标识,直至确定所述无线连接装置与所述第一设备之间的无线连接或断开正常。The first status identifier of the wireless connection device is detected at least once until it is determined that the wireless connection or disconnection between the wireless connection device and the first device is normal.
  44. 根据权利要求40至43中任一项所述的电池管理设备,其特征在于,所述控制装置还包括非易失性存储模块,在所述第二处理模块将所述连断请求命令转换为连断请求数据之后,所述第二处理模块还用于:The battery management device according to any one of claims 40 to 43, characterized in that the control device further includes a non-volatile storage module, and the second processing module converts the connection request command into After continuously requesting data, the second processing module is also used to:
    将所述连断请求数据存储于所述非易失性存储模块。The connection request data is stored in the non-volatile storage module.
  45. 根据权利要求24至44中任一项所述的电池管理设备,其特征在于,所述第一连断模块用于与第一设备蓝牙连接或断开。The battery management device according to any one of claims 24 to 44, characterized in that the first connection module is used to connect or disconnect with the first device via Bluetooth.
  46. 根据权利要求24至45中任一项所述的电池管理设备,其特征在于,所述电池管理设备为用电设备中的主电池管理单元MBMU,所述第一设备为所述用电设备中的从电池管理单元SBMU;或,The battery management device according to any one of claims 24 to 45, wherein the battery management device is a main battery management unit MBMU in a powered device, and the first device is a main battery management unit in the powered device. the slave battery management unit SBMU; or,
    所述电池管理设备为换电设备中的充电电池管理单元CBMU,所述第一设备为所述换电设备中的从电池管理单元SBMU;或,The battery management device is the rechargeable battery management unit CBMU in the power swap device, and the first device is the slave battery management unit SBMU in the power swap device; or,
    所述电池管理设备为换电设备中的换电电池管理单元TBMU,所述第一设备为用电设备中的主电池管理单元MBMU。The battery management device is a battery replacement battery management unit TBMU in a power replacement device, and the first device is a main battery management unit MBMU in a power consumption device.
  47. 一种电池管理设备,其特征在于,包括:处理器和存储器,所述存储器用于存储程序,所述处理器用于从存储器中调用并运行所述程序以执行权利要求1至23中任一项所述的无线连接方法。A battery management device, characterized in that it includes: a processor and a memory, the memory is used to store a program, the processor is used to call and run the program from the memory to execute any one of claims 1 to 23 Described wireless connection method.
  48. 一种电子设备,其特征在于,包括:如权利要求24至47中任一项所述的电池管理设备。An electronic device, characterized by comprising: the battery management device according to any one of claims 24 to 47.
  49. 根据权利要求48所述的电子设备,其特征在于,所述电子设备为用电设备或换电设备。The electronic device according to claim 48, characterized in that the electronic device is a power consumption device or a power exchange device.
PCT/CN2022/090562 2022-04-29 2022-04-29 Wireless connection method for battery management device, and battery management device WO2023206471A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202280033364.2A CN117256116A (en) 2022-04-29 2022-04-29 Wireless connection method of battery management device and battery management device
PCT/CN2022/090562 WO2023206471A1 (en) 2022-04-29 2022-04-29 Wireless connection method for battery management device, and battery management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/090562 WO2023206471A1 (en) 2022-04-29 2022-04-29 Wireless connection method for battery management device, and battery management device

Publications (1)

Publication Number Publication Date
WO2023206471A1 true WO2023206471A1 (en) 2023-11-02

Family

ID=88516812

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/090562 WO2023206471A1 (en) 2022-04-29 2022-04-29 Wireless connection method for battery management device, and battery management device

Country Status (2)

Country Link
CN (1) CN117256116A (en)
WO (1) WO2023206471A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002269509A (en) * 2001-03-14 2002-09-20 Toshiba Corp Radio data carrier management method and radio information processor
CN103281161A (en) * 2013-05-17 2013-09-04 深圳市康凯斯信息技术有限公司 Communication method for GPS (Global Positioning System) positioning terminal and background server
CN104618442A (en) * 2014-12-30 2015-05-13 珠海格力电器股份有限公司 Method, equipment, system for remote control of air-conditioner
CN108737502A (en) * 2018-04-24 2018-11-02 北京长城华冠汽车技术开发有限公司 The device and method of monitoring vehicle mounted communication module connection status in real time
CN109245955A (en) * 2017-07-10 2019-01-18 阿里巴巴集团控股有限公司 A kind of data processing method, device and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002269509A (en) * 2001-03-14 2002-09-20 Toshiba Corp Radio data carrier management method and radio information processor
CN103281161A (en) * 2013-05-17 2013-09-04 深圳市康凯斯信息技术有限公司 Communication method for GPS (Global Positioning System) positioning terminal and background server
CN104618442A (en) * 2014-12-30 2015-05-13 珠海格力电器股份有限公司 Method, equipment, system for remote control of air-conditioner
CN109245955A (en) * 2017-07-10 2019-01-18 阿里巴巴集团控股有限公司 A kind of data processing method, device and server
CN108737502A (en) * 2018-04-24 2018-11-02 北京长城华冠汽车技术开发有限公司 The device and method of monitoring vehicle mounted communication module connection status in real time

Also Published As

Publication number Publication date
CN117256116A (en) 2023-12-19

Similar Documents

Publication Publication Date Title
WO2022142036A1 (en) Electric vehicle charging system and control method therefor
JP2001275270A (en) Battery power source
CN104638718A (en) Intelligent management system and method of electric vehicle battery
JP2002110259A (en) Storage battery device
US11108092B2 (en) Storage battery management system, moving body, storage battery, and storage battery management method
KR20130085203A (en) System and method for waking up multi-bms
CN201781306U (en) Battery management system
EP3993344B1 (en) Battery information providing apparatus and method
WO2023001232A1 (en) Adapter control apparatus and method, adapter, and charging system
EP3920365A1 (en) Battery management system, battery management method, battery pack, and electric car
WO2023206471A1 (en) Wireless connection method for battery management device, and battery management device
EP3043441B1 (en) Battery management unit for preventing performance of erroneous control algorithm from communication error
JP5763773B2 (en) Emergency override for battery discharge protection (EmergencyOverride)
KR101613230B1 (en) Wired communication unit changing communication protocol when malfunction has occurred in the communication line and wired communication system including thereof
WO2023206503A1 (en) Wireless connection method for battery management device, apparatus, and battery management device
KR101633834B1 (en) Battery management system having safety power-off function and control method thereof
WO2023206492A1 (en) Wireless connection method and apparatus for battery manager device, and battery manager device
WO2023206495A1 (en) Wireless connection method and apparatus for battery management device, and battery management device
WO2023206507A1 (en) Wireless connection control method and apparatus for battery management device, and battery management device
EP4095977B1 (en) Slave bms for diagnosing an error of a battery module and battery pack comprising same slave bms
CN108448184A (en) A kind of energy-saving management system based on fuel cell
KR102433850B1 (en) System and method for recognition of BMS
CN112248880A (en) Intelligent battery management system device of electric bicycle
TW201021359A (en) Mixed power supply method for power-consuming device and secondary battery using the method
EP4071960B1 (en) Power conversion device precharging method and power conversion device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22939318

Country of ref document: EP

Kind code of ref document: A1