Method for communicating between at least one first system and at least one second system
11082136 · 2021-08-03
Assignee
Inventors
Cpc classification
H04L25/0272
ELECTRICITY
H04L5/14
ELECTRICITY
International classification
H04L5/14
ELECTRICITY
Abstract
A method for communicating between a first system and a second system using a full-duplex synchronous serial link capable of simultaneously routing between both systems is disclosed. The data involved includes at least one message from the first system to the second, at least one message from the second system to the first, and a clock signal. The method involves the second system receiving a message and a clock signal sent by the first system, delayed and substantially in phase, the second system sends a message to the first system, the clock signal received by the second system is sent back to the first system with the message sent by the second system, and the first system receives the message sent by the second system and the sent-back clock signal, delayed and substantially in phase.
Claims
1. A method for communicating between at least one first system and at least one second system by way of a full-duplex synchronous serial link being able to simultaneously route between said systems data comprising: at least one message from the first system to the second system; at least one message from the second system to the first system; and a clock signal, wherein a galvanic isolation is interposed between the first system and the second system and wherein the full-duplex synchronous serial link crosses the galvanic isolation, the method comprising: receiving, by the second system, a message and a clock signal sent by the first system, delayed and in substantially phase, said message being transmitted through a first wire of the full-duplex synchronous serial link, and said clock signal being transmitted through a third wire of the full-duplex synchronous serial link; sending, by the second system, a message to the first system, through a second wire of the full-duplex synchronous serial link; sending back the clock signal received by the second system to the first system through a fourth wire of the full-duplex synchronous serial link, with said message sent by the second system through the second wire of full-duplex synchronous serial the link; and receiving, by the first system, the message sent by the second system through the second wire of the full-duplex synchronous serial link, and the sent-back clock signal through the fourth wire of the full-duplex synchronous serial link, delayed and in phase, wherein the fourth wire links an area of the third wire and the first system, said area of the third wire being arranged downstream of the galvanic isolation when the link is travelled from the first system in the direction of the second system, 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 a fifth wire.
2. The method as claimed in claim 1, wherein the link is a link of Serial Peripheral Interface (SPI) type.
3. The method as claimed in claim 1, wherein the first system is master and wherein the second system is slave.
4. The method 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 method 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 method as claimed in claim 1, wherein the second system comprises a full-duplex module in charge of communicating with the master system.
7. The method as claimed in claim 1, wherein the first system is master and comprises a programmable logic circuit (FPGA).
8. The method as claimed in claim 1, wherein the first system is slave and comprises a microcontroller or a microprocessor.
9. The method 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 method 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.
Description
(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)
(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.