This application is based on and claims priority under 35 USC 119 from Japanese Patent Application No. 2022-033893 filed on Mar. 4, 2022, the disclosure of which is incorporated by reference herein.
The present disclosure relates to a bus control method.
Heretofore there have been technologies, relating to monitoring states of cells, that use a communication system with a daisy-chain connection in which units of plural cells are connected in series.
For example, a technology (see Japanese Patent Application Laid-Open (JP-A) No. 2015-076890) relates to a daisy-chain communication bus and protocol. In this technology, a communication circuit transfers cell state data in one direction on a bidirectional data path and through a first connection node to a circuit at a first side. In response to an indication that the bidirectional data path is incomplete, the communication circuit transfers cell state data in the other direction on the bidirectional data path and through a second connection node to a circuit at a second side.
In conventional technology, an example of a battery management system is disclosed in which plural connection circuits mounted at battery cells are connected in a daisy chain to enable bidirectional communications and are managed by a battery manager. At usual times, the battery manager conducts communications in one direction. When an abnormality such as a disconnection between cells or the like occurs, the battery manager conducts communications in the opposite direction. Thus, management of the battery cells is possible even when an abnormality occurs.
In the conventional technology, communications are conducted using a path to one side, and when communication is not possible, are switched to communications using a path to the other side. Reasonably, although the paths at both sides may be used, a communication system that uses one of the paths is assumed. Thus, no consideration is given to communication control when the paths in both directions are being used at the same time.
An object of the disclosed technology is to provide a bus control method that conducts communication control with bus arbitration and enables communication using paths in both directions of a daisy-chain connection at the same time.
The bus control method according to the present disclosure is a bus control method for communication between plural communication devices, the bus control method including: a first communication device and a second communication device communicating via a bus structured with a first connection port and a second connection port; the first communication device sending a first send request signal on the bus to the second communication device via the first connection port; the second communication device sending a second send request signal on the bus to the first communication device via the second connection port; and on the basis of the first send request signal and the second send request signal, performing control such that the bus accepts data from one connection port of the first connection port and the second connection port, wherein the first send request signal and the second send request signal are respectively different signals.
The bus control method of the present disclosure provides effects of conducting communication control with bus arbitration and enabling communication using paths in both directions of a daisy-chain connection at the same time.
Exemplary embodiments of the present disclosure will be described in detail based on the following figures, wherein:
Below, an exemplary embodiment of the present disclosure (below referred to as the present exemplary embodiment) is described with reference to the drawings.
Each battery pack unit 20 is equipped with a cell monitoring circuit 23 that monitors a plural number of cells 22, a communication circuit 24 for transferring monitored monitoring data out of the battery pack unit 20, and connection ports 21 for sending communication data including the monitoring data. The connection ports include a first connection port 21A at a master side in the daisy-chain connection and a second connection port 21B at a slave side in the daisy-chain connection. The first connection port 21A and second connection port 21B may be recited simply as connection ports in relation to matters discussing both. The battery pack unit 20 and each neighboring battery pack unit 20 conduct communications (between the battery pack units) via a bus structured by the first connection port 21A, the neighboring second connection port 21B and the communication circuits 24. The battery pack units 20 are an example of communication devices according to the present disclosure (a first communication device and a second communication device), and each communication circuit 24 is an example of a communication section.
A group first connection port 11A of the battery pack unit group 10 is connected to a third connection port 31A of the communications interface circuit 30, and a group second connection port 11B is connected to a fourth connection port 31B of the communications interface circuit 30. The group first connection port 11A may be the first connection port 21A of the battery pack unit 20 at one end of the daisy-chain connections. The group second connection port 11B may be the second connection port 21B of the battery pack unit 20 at the other end of the connections.
—Configuration Between Connection Ports—
Bus arbitration between the first connection port 21A and the second connection port 21B is described. Below, an example is described in which bus arbitration is configured with an AND bus.
A communication path in
—Bus Arbitration According to the Present Exemplary Embodiment—
When the connection between the first connection port 21A and the second connection port 21B is configured as an AND bus, output is high at a time of non-communication and bus access for the AND bus is set to “Free”. When the bus access status for the AND bus is “Free” for both the first connection port 21A and the second connection port 21B, the communication circuits 24 may output request signals requesting bus access.
(A) in
When the communication circuit 24 at the first connection port 21A attempts to start communication using the first connection port 21A, the communication circuit 24 drives the first connection port 21A low for two cycles (a first cycle and a second cycle) to request bus access. When the second cycle is monitored as being Low, bus access to the AND bus is reserved and, starting from a subsequent cycle (a third cycle), transmitted data is sent from the first connection port 21A.
When the communication circuit 24 at the second connection port 21B attempts to start communication using the second connection port 21B, the communication circuit 24 drives the second connection port 21B low for one cycle of the data cycle (a first cycle) to request bus access. When the second cycle is monitored as being High, bus access to the AND bus is reserved and, starting from a subsequent cycle (a third cycle), transmitted data is sent from the second connection port 21B.
At both the first connection port 21A and the second connection port 21B, when an output of transmitted data ends and communication is completed, the communication circuits 24 release bus access for the AND bus, switching to the High state of non-communication.
In situation (A), a send request is sent only from the communication circuit 24 at the first connection port 21A, the first connection port 21A is Low for two cycles, the request is accepted, and the communication line (the AND bus) receives data from the first connection port 21A. In situation (B), a send request is sent only from the communication circuit 24 at the second connection port 21B, the second connection port 21B is Low for one cycle, the request is accepted, and the communication line (the AND bus) receives data from the second connection port 21B.
In situation (C), when send requests are sent from the respective communication circuits 24 at the first connection port 21A and second connection port 21B at the same time, communication from the connection port sending the request from one of the communication circuits 24 is accepted and data reception according to the request from the other communication circuit 24 is abandoned. In the example in situation (C), the request from the first connection port 21A, which serves as a master side, is accepted. Therefore, data reception from the second connection port 21B (a slave side) is abandoned and the communication line (the AND bus) accepts data from the first connection port 21A. In this bus control method as described above, when a send request is received, each communication circuit 24 at the bus monitors states of the bus at a predetermined interval. In response to a change in state of the bus in the predetermined interval, the communication circuits 24 decide which of the battery pack units the bus accepts the request from.
In the bus arbitration according to the present exemplary embodiment, a sampling timing for received data is generated from a received request signal (reception clock regeneration). Because frequencies and phases generated by oscillators of the respective battery pack units 20 differ, a sampling timing for received data is generated from edge information of data that is received (the request signal). After the fall of a request signal is detected, an internal counter starts. After the fall of the request signal is detected, the internal counter value is retained, the counter is cleared and counting is started. When the second connection port 21B is receiving, because the request signal from the first connection port 21A corresponds to two cycles, the second connection port 21B latches received data each time the value of the counter is at quarter of the retained counter value and clears the counter each time the value is at half the retained count value. When the first connection port 21A is receiving, because the request signal from the second connection port corresponds to one cycle, the first connection port 21A latches received data each time the value of the counter is at half of the retained counter value and clears the counter each time the value is at the retained count value. The request signal from the first connection port 21A and the request signal from the second connection port 21B are signals with different lengths. The request signal from the first connection port 21A is two cycles, which is longer than the one-cycle request signal from the second connection port 21B. The period of the request signal from the second connection port 21B is half the length of the two-cycle period of the request signal from the first connection port 21A. Note that the cycle lengths are not limited to two cycles and one cycle. Supplementary descriptions of details of the bus arbitration timing charts for situations (A) to (C) are given below, after descriptions of principal details of the present exemplary embodiment.
—Flow of Communication Processing—
A flow of communication processing in the battery monitoring system 1 when send requests (“output commands” below) are sent simultaneously is described. The communications interface circuit 30 receives a request, in a command from the battery management circuit 40, to command outputs of monitoring data from the cells. In the battery monitoring system 1, an output command is sent simultaneously from the third connection port 31A and fourth connection port 31B of the communications interface circuit 30 to the bidirectional connection ports of the battery pack unit group, the group first connection port 11A and the group second connection port 11B. In the battery monitoring system 1, communication control is conducted such that the output command is propagated to all of the plural battery pack units 20, and communication data outputted from each of the plural battery pack units 20 is outputted from the bidirectional connection ports.
In
In step 1, the third connection port 31A and fourth connection port 31B of the communications interface circuit 30 simultaneously send the output command. The battery pack unit (1) receives the output command from the fourth connection port 31B at the second connection port 21B thereof, and the battery pack unit (4) receives the output command from the third connection port 31A at the first connection port 21A thereof. In step 2, the battery pack unit (1) outputs the output command (A1) through the first connection port 21A, and outputs communication data (A3) through the second connection port 21B. That is, the output command is outputted (A1) through the first connection port 21A of the battery pack unit (1) to the neighboring battery pack unit (2). The battery pack unit (4) outputs the output command (A2) through the second connection port 21B, and outputs communication data (A4) through the first connection port 21A. That is, the output command is outputted (A2) through the second connection port 21B of the battery pack unit (4) to the neighboring battery pack unit (3).
In step 3-1 and step 3-2, when the plural output commands are sent to a battery pack unit, arbitration processing is performed within the battery pack unit. This arbitration processing is different from the bus arbitration processing described above. In step 3-1, before the battery pack unit (2) would output the output command (A1), the battery pack unit (2) receives the output command (A2) from the battery pack unit (3). In this situation, the battery pack unit (2) outputs communication data (A3) through the second connection port 21B in response to the first output command (A1) through the second connection port 21B, as shown in step 3-2, and disregards, without processing, the output command (A2) that is received through the first connection port 21A after the output command (A1) has been received. In addition, the battery pack unit (2) does not output the output command (A1) from the second connection port 21B through the first connection port 21A. In step 4, the communication data from the battery pack unit (2) and the battery pack unit (3) is outputted to the communications interface circuit 30. In the present exemplary embodiment, the simultaneously sent requests are processed along the bidirectional path in this way, and the arbitration within battery pack units conducts control such that the requests are not propagated to collision. The communication data is outputted through the bidirectional connection ports, the group first connection port 11A and the group second connection port 11B, to the communications interface circuit 30.
The communication control as described above controls outputs of each of the plural battery pack units 20. When the output command is received first through the first connection port 21A of one battery pack unit 20, the one battery pack unit 20 outputs communication data through the first connection port 21A and sends the output command through the second connection port 21B to the first connection port 21A of a neighboring battery pack unit 20. The neighboring battery pack unit 20 outputs communication data through the first connection port 21A thereof, which is received through the second connection port 21B of the one battery pack unit 20. Hence, the communication data passes along the daisy-chain connection and is outputted from the group first connection port 11A.
When the output command is received first through the second connection port 21B of one battery pack unit 20, the one battery pack unit 20 outputs communication data through the second connection port 21B and sends the output command through the first connection port 21A to the second connection port 21B of a neighboring battery pack unit 20. The neighboring battery pack unit 20 outputs communication data through the second connection port 21B thereof, which is received through the first connection port 21A of the one battery pack unit 20. Hence, the communication data passes along the daisy-chain connection and is outputted from the group second connection port 11B.
When the output command is received through the first connection port 21A and then the output command is received through the second connection port 21B, the output command from the second connection port 21B is disregarded, in addition to which the output command from the first connection port 21A is not outputted through the second connection port 21B. When the output command is received through the second connection port 21B and then the output command is received through the first connection port 21A, the output command from the first connection port 21A is disregarded, in addition to which the output command from the second connection port 21B is not outputted through the first connection port 21A.
—Flow of Abnormality Detection—
For abnormality detection in the battery monitoring system 1, communication path dialog commands are periodically sent to conduct abnormality detection and abnormality site detection.
In
The communication path dialog command (B1) is sent from the fourth connection port 31B of the communications interface circuit 30, passes along the communication path of the battery pack units 20 of the battery pack unit group 10, and is received through the third connection port 31A. The communication path dialog command (B2) is sent from the third connection port 31A of the communications interface circuit 30, passes along the communication path of the battery pack units 20 of the battery pack unit group 10, and is received through the fourth connection port 31B. If one or both of the communication path dialog commands (B1) and (B2) is not received at the communications interface circuit 30, the battery management circuit 40 detects that there is an abnormality on the communication path.
When an abnormality on the communication path is detected, an abnormality site is detected by acquiring a collision site of an output command. As described for bus arbitration above, a monitoring data output command is simultaneously sent from the third connection port 31A and fourth connection port 31B of the communications interface circuit 30. Each of the battery pack units 20 receiving the output command outputs communication data that monitors which connection port of the communications interface circuit 30 the output command
is received from. That is, the communication data is information on which of the output commands (A1) and (A2) is processed as a request. A site between neighboring battery pack units 20 that receive the output command from the different connection ports is detected as being the abnormality site. In case 1 of
Bus arbitration communication control is conducted in the battery monitoring system 1 in accordance with the bus arbitration processing described above, enabling communications using paths in both directions of a daisy-chain connection at the same time.
—Supplementary Descriptions of the Bus Arbitration Timing Charts—
Details of the bus arbitration timing charts are described further. The respective timing charts relating to situations (A) to (C) shown in the above-described
For situation (A),
In order to process the request, respective communication control for the master and the slave is carried out at the connection port 21A. In communication control at the master side in situation (A), M-CLK (master side clock), S-MStart (master side sending start), M-SClr_c_val (master side sending clock count value), M-SCounter (master side send counter value), M-SClr_c_en (master side reception counter clear signal), M-SStatus (master side sending status) and M-TXD (master side transmitted data) are controlled. M-RXD-FF (master side received fetch data), M-RCounter_en (master side reception counter enable), M-RCdat_sen_en (master side Req signal width detection signal), M-RCounter (master side reception counter value), M-RClr_c_val (master side reception clock count value), M-RClr_c_en (master side reception counter clear signal), and M-RStatus (master side reception status) are also controlled.
In communication control at the slave side in situation (A), S-CLK (slave side clock), S-RXD-FF (slave side received fetch data), S-RCounter_en (slave side reception counter enable), S-RCdat_sen_en (slave side Req signal width detection signal), S-RCounter (slave side reception counter value), S-RClr_c_val (slave side reception clock count value), S-RDat_s_val (slave side received data fetch count value), S-RClr_c_en (slave side reception counter clear signal), S-RDat_s_en (slave side received data fetch enable), S-RDat (slave side received data fetch data), S-RStatus (slave side reception status) and S-SStatus (slave side sending status) are controlled. In situation (B), the situation in
For situation (B),
For situation (C),
The present disclosure is not limited by the exemplary embodiment described above; numerous modifications and applications are possible within a scope not departing from the gist of the disclosure.
For example, the bus arbitration processing method described in the present exemplary embodiment is not limited to a battery monitoring system and may be applied to control methods of other buses in daisy-chain structures.
Number | Date | Country | Kind |
---|---|---|---|
2022-033893 | Mar 2022 | JP | national |