The present invention is related to a transmission system comprising master modules and slave modules, and a bus for transmitting digital data between these modules, in a time division multiplexing mode. The invention is especially suitable for providing an improved transmission system of this kind in automotive applications.
Time division multiplexing of digital data on a data bus, e.g. a single or double wire, between master and slave modules connected to this bus, is a known way of sending and receiving data, and is used for example in telecommunication applications. Modules connected to a data bus are more generally referred to as ‘nodes’ in the multiplex transmission system. In-vehicle transmission of electrical signals, in order to control electrical components in the vehicle, is also making use of this technique. In a car, the use of multiplexing between nodes on a single bus allows to avoid the use of dedicated, point-to-point wiring which would result in bulky, complex, and expensive wiring harnesses.
In recent years, the car industry has developed standards for in-vehicle networking. Predominant standards are CAN (Controller Area Network), SAE J1850, LIN (Local interconnect Network) and VAN (Vehicle area network).
A problem which exists in the systems which are known at this point resides in the addressing of modules connected to the data bus. Regardless of the protocol used, a transmission will normally comprise an identifier, followed by the actual data which is sent. The identifier may contain a reference to an action which is to be taken by one or a number of modules, identified by their addresses. Efficient addressing of the modules on the bus is therefore a necessary step in the design and installation of a multiplex system.
In most prior art systems, the address of a module is set manually by using dip-switches, OTP-memory, straps inside the connector, etc. For reasons of stock efficiency, this manual address setting is mostly done at the moment of installing or replacing a given module. This is especially true for identical modules, i.e. of which several are present in the same type of car. The address setting therefore represents a time-consuming operation which is also apt to lead to errors in the setting and consequently in the system's overall performance.
Until recently, this problem was not so relevant because only a very limited number of nodes was used in the car and these nodes were mostly different so that they could receive a different address during production. For future cars the number of nodes and the number of identical nodes amongst them will increase, which calls for a more flexible addressing strategy.
The present invention aims to provide a multiplex system and method for initialising said system, which avoids the necessity of manual address setting for the modules in said system.
The present invention is related to a transmission system for transmitting digital data in a time domain multiplexing mode, comprising a digital data bus, and a plurality of modules coupled to said data bus, characterized in that at least one of said modules of said plurality comprises two connectors, so that data passing through said bus enters said module through one connector and leaves said module through the other connector, and wherein said at least one module further comprises a first switch, placed in the path between said two connectors.
In an embodiment of the transmission system according to the invention, the opening of said first switch interrupts the data transfer via said data bus. Throughout this document, a switch is defined as a device for interrupting the data transfer on a digital data bus. This device may comprise one or more interrupters in every individual wire comprised in said bus.
According to a preferred embodiment, said at least one module further comprises a first transceiver, said first transceiver comprising a comparator and a transmitter.
According to another embodiment, said at least one module further comprises a second transceiver, said second transceiver comprising a comparator and a transmitter, and wherein the input of said comparator and the output of said transmitter of said first transceiver are coupled to one of said two connectors, while the input of said comparator of said second transceiver and the output of said transmitter of said second transceiver are coupled to the other of said two connectors.
According to another embodiment, said at least one module further comprises a second switch, whereby said first switch is placed in the path between the output of the comparator of said first transceiver, and the input of the transmitter of said second transceiver, and whereby said second switch is placed in the path between the output of the comparator of said second transceiver and the input of the transmitter of said first transceiver.
According to the preferred embodiment, said at least one module further comprises a protocol handler and a receiving device adapted to receive a signal sent on said bus, to analyse said signal and to deduce therefrom an address of said at least one module, for subsequent storage into a storage device included in said receiving device, said protocol handler further having the ability to produce command signals for opening or closing said first switch and/or said second switch.
The transmission system of the invention may be an open system, meaning that all modules which are coupled to said bus form a chain of modules which is not closed into a loop. Alternatively, the system may form a closed loop system. In a preferred embodiment of said closed loop system, every module on said closed loop bus system comprises two switches and two transceivers.
The invention is equally related to the individual modules such as described in the preceding paragraphs, and to the use of such a module as a master module in a transmission system for transmitting and receiving digital data in a time domain multiplexing mode, as well as to the use of such a module as a slave module in a transmission system for receiving and transmitting digital data in a time domain multiplexing mode.
The invention is further also related to a method for initializing a transmission system according to the invention, said plurality of modules including at least one master module in charge of address setting of said transmission system, and at least one slave module, said method comprising the steps of:
Independent of whether a module has the function of a master or a slave, each module comprises a so-called ‘physical layer device’ 10, which essentially consists of a transceiver 6 in every module. The transceiver comprises a comparator 7 for producing a well-conditioned ‘receive’ signal RX on the basis of an incoming digital signal, and a transmitter 8 (which might be a simple level-shifter) for producing a suitable outgoing signal on the basis of a ‘transmit’ signal TX. The ‘data link layer device’ 11 comprises the protocol handler 9, which is an electronic device, programmed to control incoming and outgoing digital traffic. The protocol handler receives the RX signal and produces the TX signal of the transceiver. An address setting device 16 is also included in the data link layer device 11. The address setting device is coupled to the protocol handler 9, and is adapted to store an address which can be manually set. This address may be communicated to the protocol handler 9. Finally, an ‘application layer device’ 12 is also present. In the figures, the application layer device of the slave nodes consists of one block 13 to drive a motor 14 but this block could consist of different subblocks to interface to any application one wants to control from another node; e.g. 12 could contain even a micro-controller to control any type of actuator, to measure parameters by means of sensors or to interface to an other bus in case of a gateway. In the case of the slave modules 3, 5 this device 12 is adapted to send the necessary command signals to the controlled component (in many cases an electric motor 14, for example for driving the movement of a window), on the basis of data received through the bus 1 via the transceivers 6 and the protocol handlers 9. In the case of the master module 4, the application layer device 12 essentially comprises a micro-controller or state-machine 15 or any other control unit. The actual embodiment of the application layer 12 is not relevant for this invention.
Messages, i.e. sequences of digital data may be put on the bus 1 by one of the connected modules. Every module on the bus is able to send as well as to receive data. In the configuration shown, data which is put on the bus, regardless by which module is received by every other module on the bus. Each message which is sent thereby comprises a number of fields, whose function may differ according to the protocol which is in place. In most cases, there is an identifier field which comprises information related to the address of modules to which the message is sent and information of the action to be taken. In most cases, there are also one or more data fields comprising information related to the action to be taken (for example: lights on, window down, window down to point X, etc . . . ). As mentioned before, the configuration of
Furthermore, according to another aspect of the present invention, the modules in the system of the invention receive their addresses through the bus itself. The modules may start with a default address e.g. 0 which makes it clear for a module that it has yet to receive it's dedicated address from another module on the bus. The actual address setting is preferably done during an initializing procedure, before start-up of the system. The module which controls the initialization procedure is further called master-module. It is reminded here that more than one master node may be present on a bus. According to the invention, however, only one master is responsible for the address setting. In the following, any reference to ‘the master’ applies to this particular initializing master node.
The address setting operation is performed by starting from a condition wherein all the switches 22 are open, and in which the address is first set in one module closest to the master module in charge of the address setting operation. By closing the rest of the switches in a predefined order, the addresses of all the other modules on the bus may then be set consecutively. Such an operation may be performed after installation or replacement of a particular module, thereby obviating the need for setting the address manually on the module itself. When all the switches 22 are closed, the operation of the bus system is identical to the classic system of
A first bus system according to the invention is shown in
In the embodiment of
In contrast to the prior art physical layer device, the present physical layer device 100 further includes a switch 22 in every module shown, which is placed between the connectors 20 and 21, and such that opening of this switch 22 effectively interrupts the bus traffic passing through the module. Signals may however still be generated and sent on the bus by a module with an open switch 22. When the switch 22 is open, a message may be sent via TX1 on the first transceiver 24 or via TX2 on the second transceiver 25. The presence of the two transceivers 24 and 25 and the switch 22 therefore allows to control the direction in which data are sent. The protocol handler is programmed to be able to command the switch 22, through a command signal 23.
Another aspect of the present invention deals with the initialisation of such a bus system. The system of
To further illustrate the address setting procedure, we assume that the modules 30 to 32 of
The initializing sequence starts from the condition wherein all the switches 22 are open, in every module on the bus, including the master 31. By using only the signal TX1 on the first transceiver 24, the master 31 may then set the address of the neighbouring slave module 30, through the bus partition 33. The protocol handler 9 of the slave 30 is adapted to receive this message, to extract the address therefrom and to save the address in the appropriate memory allocation in the receiving device 17, coupled to it. The device 16 used in the prior art may comprise a one time programmable memory. In the case of the invention, an embodiment of the memory in device 17 consists of a multitime programmable memory. After setting the address, the master can further initialise the node by sending other commands. This possible initialisation is ended by closing the switch 22 of the slave 30. This action could be performed by the slave itself or by another command coming from the master. Once the switch 22 of the slave 30 is closed, the master is coupled to the slave module next to module 30, in the upper chain 40. The module in the upper chain next to module 30 may in this way, through the closed switch 22 of module 30, receive its address setting and a subsequent command to close its own switch 22, after which the next module in the upper chain 40 can be reached. When the addresses of all the nodes in the upper chain have been set, the master may set the address of its second directly neighbouring node 32, by sending a message through TX2 of the master. All modules of the lower chain 41 may then be subsequently reached, and their addresses set in the way described above. When all the addresses have been set, the switch 22 of the master 31 is closed too, at which point all the switches 22 are closed, and normal operation of the system may commence. When all the switches 22 are effectively closed, only one transceiver of the pair 24, 25 in the nodes shown may remain active, since a single transceiver can provide communication on the bus in the way described for the prior art systems such as the one shown in
It is to be noticed, that in this configuration, the nodes which are at the end of either the top or bottom chain do not need a switch, since they will come within reach of the master's command signals by the closing of the switch 22 in the module directly next to them. These ‘outer modules’ may therefore take on the form of the classic nodes of
Generally, the method of initializing a bus system of the invention comprises the following steps:
The last two steps are repeated until all the slave modules and possibly other master modules have received their address. Depending on the position of the initializing master, the series of steps must be performed in two directions, as explained in the case of the system of
The method may further comprise substeps such as a step of checking whether an address has been set previously on a particular node, or receiving a confirmation of the address setting from a particular node, etc. The steps outlined above form the basis of a detailed initialization procedure which may be adapted to the type of bus system, the type of nodes present and other factors, as will be appreciated by a person skilled in the art.
In the system of the invention, all the nodes, slaves and submasters may be installed without prior address setting. This allows a more efficient stock management of identical modules, and a reduction of time loss or error sensitivity of the installation and replacement of individual modules. The initializing master is a unique module which may have a predefined address, or a default address. The initializing procedure can easily be designed in such a way that the initializing master cannot ascribe its own address to one of the other modules on the bus. Therefore, the initializing master does not need a manual address set.
This is true also for the system of
The operation and the configuration of two switches 52 and 53 has the function of a repeater, which controls the direction of the flow of data. Data sent by a node (master or slave) is sent in both directions on the bus, through connections TX1 and TX2. Data received however, be it on connector 20 or connector 21, must be transmitted in one direction only to the other connector. In the bus design shown in
The nodes shown in
The nodes of the embodiments depicted in
Likewise, different nodes according to the invention may be put on the same bus. For example, nodes having two transceivers 50 and 51 and two switches 52 and 53 may be put on the same bus as nodes having one transceiver 6 and one switch 22 and/or with nodes having two transceivers 24 and 25 and one switch 22. As explained above, some configurations will offer less flexibility in the position of the address setting node, depending on the types of nodes used. It can be considered, however, that any system having at least one module with two connectors 20 and 21 and a means for interrupting the bus between said two connectors (one switch 22 or two switches 52 and 53) is a system according to the present invention.
The invention is also related to the individual modules themselves, as they are described and depicted in the drawings, and to the use of these modules as master or slave.
Number | Date | Country | Kind |
---|---|---|---|
01403234 | Dec 2001 | EP | regional |
01403275 | Dec 2001 | EP | regional |
Number | Name | Date | Kind |
---|---|---|---|
5583754 | Leonhardt | Dec 1996 | A |
5602827 | Lindeborg et al. | Feb 1997 | A |
6175553 | Luk et al. | Jan 2001 | B1 |
6690677 | Binder | Feb 2004 | B1 |
Number | Date | Country |
---|---|---|
0854609 | Jul 1998 | EP |
0854609 | Jul 1998 | EP |
Number | Date | Country | |
---|---|---|---|
20040117537 A1 | Jun 2004 | US |