Method for communicating between at least one first system and at least one second system
10673540 · 2020-06-02
Assignee
Inventors
Cpc classification
H04L25/0272
ELECTRICITY
H04L5/14
ELECTRICITY
International classification
H04L5/14
ELECTRICITY
H04L25/02
ELECTRICITY
Abstract
The invention relates to a method for communicating between at least one first system (2) and at least one second system (3) via a full-duplex synchronous serial link (4) capable of simultaneously routing data between said systems (2, 3), said data comprising: at least one message (12; 43) from the first system (2) to the second system (3), at least one message (16; 45) from the second system (3) to the first system (2), and a clock signal (13; 44). According to the method: the second system (3) receives a message (12; 43) and a clock signal (13; 44) sent by the first system (2), delayed and substantially in phase; the second system (3) sends the first system (2) a message (16; 45); the clock signal (13; 44) received by the second system (3) is returned (17; 46) to the first system (2) along with the message (16; 45) sent by the second system (3); and the first system (2) receives the message (16; 45) sent by the second system (3) and the returned clock signal (17; 46), delayed and substantially in phase.
Claims
1. An assembly, comprising: a communication system galvanically isolated between one first system and one second system, said communication system comprising: a full-duplex synchronous serial link between at least one first system and at least one second system, the link comprising: a first wire running between said systems and allowing the transmission of a message or messages from the first system to the second system; a second wire running between said systems and allowing the transmission of a message or messages from the second system to the first system, and a third wire running between said systems and allowing the transmission of a clock signal generated by the first system to the second system; and a fourth wire linking an area of the third wire and the first system, wherein the fourth wire allows the transmission of the clock signal from the second system back to the first system, and wherein the transmission of the clock signal from the second system to the first system and the transmission of the message or messages from the second system to the first system are delayed and are in phase, wherein galvanic isolation crossed by the link, said area of the third wire being arranged downstream of the isolation when the link is traveled from the first system in the direction of the second system, wherein a first slave system comprising a microcontroller or a microprocessor; and a second master system, the link including a fifth wire linking the first system and crossing the galvanic isolation, wherein the galvanic isolation comprises a first part and a second part arranged in parallel, wherein the first part of the galvanic isolation is crossed by the first, second, third, and fourth wires, and wherein the second part of the galvanic isolation is crossed by the fifth wire.
2. The assembly as claimed in claim 1, wherein the link is a link of Serial Peripheral Interface (SPI) type.
3. The assembly as claimed in claim 1, wherein the first system is master and wherein the second system is slave.
4. The assembly as claimed in claim 1, wherein the full-duplex synchronous serial link has a speed in the range of 5 Mbits/s to 20 Mbits/s.
5. The assembly as claimed in claim 1, wherein the first system comprises a first half-duplex module in charge of transmitting data over the link and a second half-duplex module in charge of receiving data routed over the link.
6. The assembly as claimed in claim 1, wherein the second system comprises a full-duplex module in charge of communicating with the master system.
7. The assembly as claimed in claim 1, wherein the first system is master and comprises a programmable logic circuit (FPGA).
8. The assembly as claimed in claim 1, wherein the first system is slave and comprises a microcontroller or a microprocessor.
9. The assembly as claimed in claim 1, wherein the data routed over the link comprise duty cycle values intended to be applied to switches of an inverter and measured current values.
10. The assembly as claimed in claim 9, wherein one of the first system and the second system interacts with a generator of duty cycle values and the other of the first system and the second system interacts with an electrical circuit comprising an inverter and an electric motor.
11. The assembly as claimed in claim 1, wherein the area of the third wire is positioned on the third wire in such a way as to send back to the first system a clock signal identical to that received by the second system.
12. The assembly as claimed in claim 1, wherein the galvanic isolation is interposed between the first system and the second system and wherein the full-duplex synchronous serial link crosses the galvanic isolation.
13. The assembly as claimed in claim 1, wherein the full-duplex synchronous serial link is configured to have a speed in the range of 15 Mbits/s to 20 Mbits/s.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The invention will be better understood upon reading the following description of non-limiting exemplary embodiments of the latter, and upon examining the appended drawing in which:
(2)
(3)
(4)
(5)
(6)
DETAILED DESCRIPTION OF THE INVENTION
(7)
(8) The assembly 1 comprises in the example in
(9) In the example under consideration, the assembly 1 is embedded in a vehicle that comprises an electrical circuit including an electric motor 6, a battery and an inverter interposed between the battery and the electric motor. The electrical circuit can comprise a connector making it possible to charge the battery by way of an electrical network.
(10) The assembly 1 is in the example under consideration part of a device for driving the switches of the inverter.
(11) The first system 2 is for example a peripheral interacting with the inverter to control the switches of the inverter and with the electric motor 6 to measure the current flowing through each phase of the stator of the motor 6, the latter being particularly multi-phase, for example three-phase.
(12) The first system 2 sends for example duty cycle values to the switches of the inverter and receives, after passage through an analog/digital converter 7, values of the currents measured in the phases of the stator of the motor 6.
(13) The second system 3 communicates in the example under consideration with a generator 8 of duty cycle values as a function of current values. This generator 8 employs a software process, for example.
(14) The first system 2 is master in the example in
(15) A second module 14 is responsible for receiving the message 16 sent by the second system 3 and clock signals 17, as will be seen further on.
(16) The link 4 can be of SPI type, in which case each module 10 and 14 is a half-duplex SPI controller.
(17) The second system 3 comprises in the example under consideration a single module 18 associated with the link 4. This module 18 is a full-duplex module, sending messages 16 to the first system 2 and receiving the messages 12 sent by the first system. This module also receives the clock signal 13 generated by the first system 2. When the communication is carried out over a link 4 of PSI type, the module 18 is a full-duplex SPI controller.
(18) In the example under consideration, the link 4 allows the sending by the first system 2 of current values to the second system 3 and the sending by the second system 3 of duty cycle values generated on the basis of these current values by the generator 8.
(19) The link 4 is in the example in
(20) In the example in
(21) As represented in
(22) The sequence of communication illustrated in
(23) A message 12 is sent by the first system 2 which is master here via its module 10 to the second system 3 which is slave here. This message 12 is synchronized with a clock signal 13. The crossing of the galvanic isolation 22 generates a delay d which is substantially the same for the message 12 and the clock signal 13. In the examples described, one and the same delay d is applied by the link 4 to the data that it routes, independently of the direction of routing. In variants, not represented, one and the same delay d1 is applied by the link 4 to the data routed from the first system 2 to the second system 3, i.e. to the message 12 and to the clock signal 13, whereas a second delay d2, different to the first delay d1, is applied to the data routed from the second system 3 to the first system 2, i.e. to the message 16 and to the clock signal 17. This difference can be due to the use of different insulators from one direction of routing to the other.
(24) The message 12 and the clock signal 13 then arrive in phase at the second system 3. The module 18 then reads the message 12 with respect to the clock signal 13.
(25) A message 16 is sent back by the second system 3 to the first system 2. Owing to the presence of the fourth wire 33 in the link 4, a clock signal 17, which actually corresponds in the example under consideration to the clock signal 13 received by the module 18, is sent to the first system 2. This clock signal 17 is in phase with the message 16 sent by the second system 3. The crossing of the galvanic isolation 22 induces on the message 16 and the clock signal 17 a delay d that is substantially equal for these two data, and which is also in the example under consideration substantially equal to the delay induced by the galvanic isolation 22 during the routing from the first system 2 to the second system 3 of the message 12 and of the clock signal 13.
(26) The clock signal 17 and the message 16 then arrive in phase at the first system 2. The module 14 then proceeds with the reading of the message 16 with respect to the clock signal 17.
(27) As can be seen in
(28) We will now describe, with reference to the
(29) This assembly 1 differs from that represented in
(30) The first system 2 comprises in this example a microcontroller including two half-duplex modules 40 and 41, the first half-duplex module 40 being in charge of sending messages 43 and a clock signal 44 to the second system 3 whereas the second half-duplex module 41 is in charge of receiving messages 45 sent by the second slave system and a clock signal 46.
(31) The second system 3 comprises in the example in
(32) As represented in
(33) As represented in
(34) The invention is not limited to the examples that have just been described.
(35) In particular, as mentioned above, the invention does not necessarily imply that the link applies to the data routed from the first system to the second system a delay equal to that which the link applies to the data routed from the second system to the first system.
(36) The expression including a or comprising a must be understood to mean including at least one or comprising at least one except when the opposite is specified.