DE19705681A1 - Transmission of data telegrams over a data bus - Google Patents

Transmission of data telegrams over a data bus

Info

Publication number
DE19705681A1
DE19705681A1 DE1997105681 DE19705681A DE19705681A1 DE 19705681 A1 DE19705681 A1 DE 19705681A1 DE 1997105681 DE1997105681 DE 1997105681 DE 19705681 A DE19705681 A DE 19705681A DE 19705681 A1 DE19705681 A1 DE 19705681A1
Authority
DE
Germany
Prior art keywords
new
collision
transmission
time delay
telegram
Prior art date
Legal status (The legal status 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 status listed.)
Withdrawn
Application number
DE1997105681
Other languages
German (de)
Inventor
Bernd Meindl
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bayerische Motoren Werke AG
Original Assignee
Bayerische Motoren Werke AG
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 Bayerische Motoren Werke AG filed Critical Bayerische Motoren Werke AG
Priority to DE1997105681 priority Critical patent/DE19705681A1/en
Publication of DE19705681A1 publication Critical patent/DE19705681A1/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/407Bus networks with decentralised control
    • H04L12/413Bus networks with decentralised control with random access, e.g. carrier-sense multiple-access with collision detection (CSMA-CD)
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system
    • G06F13/368Handling requests for interconnection or transfer for access to common bus or bus system with decentralised access control
    • G06F13/376Handling requests for interconnection or transfer for access to common bus or bus system with decentralised access control using a contention resolving method, e.g. collision detection, collision avoidance

Abstract

The transmission of information telegrams over a data bus takes place using a process that ensures that a collision cannot take place between telegrams from different sources. When a collision condition is recognised a time delay is determined based on a formula. A second calculation determines a second delay to be used to avoid a collision.

Description

Die Erfindung betrifft ein Verfahren zur Übertragung von Telegrammen der Teilnehmer eines Datenbusses, insbesondere für Kraftfahrzeuge, nach dem Oberbegriff des einzigen Patentanspruchs.The invention relates to a method for transmitting telegrams Participant of a data bus, especially for motor vehicles, according to the Preamble of the only claim.

Es sind bereits Datenbussysteme in vielfältiger Ausführung bekannt. Dabei besteht das Problem der Steuerung des Zugriffs der Teilnehmer auf den Datenbus. Derartige Zugriffsverfahren sind beispielsweise kontrolliert oder zufällig. Die Erfindung bezieht sich auf ein zufälliges Zugriffsverfahren, das unter der Bezeichnung CSMA/CD (CSMA = carrier sense multiple access; CD = collision detection) bei einer Vielzahl von Datenbussystemen bekannt ist. Bei einem derartigen zufälligen Zugriffsverfahren hört ein Teilnehmer, falls er ein Telegramm über den Datenbus übertragen will, den Datenbus ab, ob gerade ein anderer Teilnehmer sendet. Ist dies nicht der Fall, beginnt er mit dem Senden seines Telegramms. Bei diesem Verfahren kann es zu un­ beabsichtigtem (nahezu) gleichzeitigem Senden mehrerer Teilnehmer kom­ men, wodurch sich eine Kollision der Telegramme auf dem Datenbus ergibt. A wide variety of data bus systems are already known. Here there is the problem of controlling the access of the participants to the Data bus. Such access methods are controlled, for example, or fortuitously. The invention relates to a random access method, the under the name CSMA / CD (CSMA = carrier sense multiple access; CD = collision detection) in a variety of data bus systems is. With such a random access method, a subscriber hears if he wants to transmit a telegram via the data bus, whether another subscriber is currently transmitting. If not, it starts with sending his telegram. With this procedure it can be too un intended (almost) simultaneous sending of several participants com men, which results in a collision of the telegrams on the data bus.  

Um eine derartige Kollision feststellen zu können, hört jeder sendende Teil­ nehmer den Datenbus weiter ab. Dabei vergleicht jeder Teilnehmer das über den Datenbus übertragene Telegramm mit dem von ihm gesendeten Tele­ gramm. Werden andere Signale auf dem Datenbus erkannt als die seines Telegramms, wird eine Kollision angenommen. Da bei einer Kollision die übertragenen Telegramme gestört sind, ist es nicht sinnvoll, die Telegramme zu Ende zu senden. Daher unterbricht jeder Teilnehmer, der eine Kollision erkannt hat, die Übertragung seines Telegramms und versucht üblicherwei­ se, nachdem der Datenbus wieder als frei erkannt wird, oder nach einer bestimmten Zeitverzögerung, die in jedem Teilnehmer unterschiedlich ist, dasselbe Telegramm nochmals zu senden. Bei einer geringen Übertra­ gungsrate, einer großen Anzahl von Teilnehmern und/oder langen Tele­ grammen führt eine derartige Methode zu großen Übertragungsverzögerun­ gen, wodurch auch die Wahrscheinlichkeit von weiteren Kollisionen erhöht wird.To be able to determine such a collision, every transmitting part hears continues to accept the data bus. Each participant compares this the data bus transmitted telegram with the tele sent by it grams. If other signals are recognized on the data bus than his Telegram, a collision is assumed. Because in the event of a collision transmitted telegrams are disturbed, it does not make sense to use the telegrams to send to the end. Therefore, every participant who has a collision interrupts has recognized the transmission of its telegram and usually tries after the data bus is recognized as free again, or after a certain time delay that is different in each participant to send the same telegram again. With a small transfer rate, a large number of participants and / or long telephoto Such a method leads to large transmission delays gene, which also increases the likelihood of further collisions becomes.

Stellt ein Teilnehmer beim Abhören des Datenbusses vor einem Sendever­ such fest, daß der Bus belegt ist, so stellt er sein Telegramm zurück, ohne ein Senden des Telegramms zu beginnen. Wann ein neuer Sendeversuch des zurückgestellten Telegramms vorgenommen werden soll, wird beim Stand der Technik dem Zufall überlassen.Provides a participant in front of a sendver when listening to the data bus If you find that the bus is busy, it resets its telegram without to start sending the telegram. When to try again of the reset telegram is to be made at Leave the state of the art to chance.

Es ist Aufgabe der Erfindung, das Verfahren eingangs genannter Art derart zu verbessern, daß die Anzahl der Kollisionen und die durchschnittliche Übertragungszeit der Telegramme reduziert wird.It is an object of the invention, the method of the type mentioned above improve that the number of collisions and the average Transmission time of the telegrams is reduced.

Diese Aufgabe wird durch die kennzeichnenden Merkmale des Patentan­ spruchs gelöst.This object is achieved by the characterizing features of the patent solved.

Danach wird eine erste Zeitverzögerung für das erneute Senden eines Tele­ gramms nach einer Kollision mittels einer Formel berechnet, in der die An­ zahl der bisher erkannten Kollisionen eingeht. Diese erste Zeitverzögerung wird umso länger, je häufiger ein Telegramm eine Kollision erfahren hat. Diese Verlängerung der Zeitverzögerung findet bei der Bestimmung der zweiten Zeitverzögerung, die für einen erneuten Sendeversuch vorgegeben wird, wenn anstelle einer Kollision ein belegter Datenbus erkannt wird, nicht statt, da die zweite Zeitverzögerung nicht mit der Häufigkeit der Erkennung eines belegten Datenbusses zunimmt.After that there is a first time delay for retransmitting a tele grams after a collision using a formula in which the An  number of collisions detected so far. This first time delay The longer a telegram has experienced a collision, the longer it gets. This extension of the time delay takes place when determining the second time delay that is specified for a new transmission attempt will not, if an occupied data bus is recognized instead of a collision instead because the second time delay does not match the frequency of detection of an occupied data bus increases.

Bei Versuchen mit dem erfindungsgemäßen Verfahren hat sich empirisch herausgestellt, daß die Anzahl der Kollisionen um etwa 50% und die durch­ schnittliche Übertragungszeit der Telegramme bis zu 20% reduziert werden. Somit wird auch die Sicherheit einer korrekten Übertragung der Telegramme auf dem Datenbus erhöht.In experiments with the method according to the invention it has been empirical found that the number of collisions by about 50% and by Average transmission time of the telegrams can be reduced by up to 20%. This also ensures the security of a correct transmission of the telegrams increased on the data bus.

In der Zeichnung ist ein Ausführungsbeispiel der Erfindung dargestellt. Sie zeigt einen logischen Ablaufplan des erfindungsgemäßen Verfahrens, ins­ besondere mit einem Berechnungsblock V für die Bestimmung der ersten und zweiten Zeitverzögerung.In the drawing, an embodiment of the invention is shown. she shows a logical flow chart of the inventive method, ins especially with a calculation block V for the determination of the first and second time delay.

Hierbei bezieht sich der Begriff "erste Zeitverzögerung" immer auf einen er­ neuten Sendeversuch nach einer Kollision und der Begriff "zweite Zeitverzö­ gerung" auf einen erneuten Sendeversuch nach Erkennen eines belegten Datenbusses.Here, the term "first time delay" always refers to a he new transmission attempt after a collision and the term "second time delay "to try again after recognizing an occupied Data bus.

Liegt zum Zeitpunkt taktuell ein Sendewunsch eines Teilnehmers an, wird zu­ nächst überprüft, ob der Datenbus von den Telegrammen anderer Teilneh­ mer frei ist. Ist dies der Fall, wird das Senden bzw. die Übertragung des Te­ legramms begonnen. Zur Überprüfung einer Kollision wird das gesendete Telegramm mit dem über den Datenbus übertragenen Telegramm verglichen und eine Kollision erkannt, wenn diese Telegramme nicht übereinstimmen. If there is currently a transmission request from a subscriber at the time t, it is first checked whether the data bus is free of the telegrams of other subscribers. If this is the case, the transmission or transmission of the telegram is started. To check a collision, the telegram sent is compared with the telegram transmitted via the data bus and a collision is recognized if these telegrams do not match.

Wird bis zum Ende eines Telegramms keine Kollision erkannt, ist die Über­ tragung des Telegramms erfolgreich abgeschlossen.If no collision is detected by the end of a telegram, the over is transmission of the telegram successfully completed.

Wird jedoch eine Kollision erkannt, wird das Senden des Telegramms unter­ brochen und mittels des Berechnungsblocks V die erste Zeitverzögerung (tneu - taktuell = r . tconst) bis zum erneuten Sendeversuch tneu berechnet. Die Zeitverzögerung nach einer Kollision richtet sich nach dem Unterblock V2, der den Stand eines Zählers n um 1 erhöht, nneu = naktuell + 1. Tritt also eine Kollision erstmals auf, ist nneu = 1.However, if a collision is detected, the sending of the message is interrupted and by means of the calculation block V is the first time delay (t new - t t const = current r.) Until the next transmission attempt t recalculated. The time delay after a collision depends on sub-block V2, which increases the status of a counter n by 1, n new = n current + 1. If a collision occurs for the first time, n new = 1.

Der Zeitpunkt tneu für einen erneuten Sendeversuch berechnet sich aus dem aktuellen Zeitpunkt taktuell plus einer Zeitverzögerung r . tconst, wobei tconst bei­ spielsweise zweimal die maximale Laufzeit eines Signals auf dem Bus und r eine Zufallszahl ist. Die Zufallszahl r wird beispielsweise aus dem Bereich zwischen 0 und 2k ausgewählt, wobei k wiederum eine Funktion ist, die vom Zählerstand nneu abhängt. Vorzugsweise ist k das Minimum aus einer maxi­ mal zulässigen Kollisionsanzahl, z. B. 10, und dem Zählerstand nneu (k = min (nneu, 10)). Danach würde die Zeitverzögerung mit zunehmender Häufigkeit der Kollisionen nicht mehr verlängert werden, wenn der Zählerstand und damit die Anzahl der aufgetretenen Kollisionen die maximal zulässige An­ zahl überschritten hat.The time t new for a new transmission attempt is calculated from the current time t current plus a time delay r. t const , where t const is, for example, twice the maximum transit time of a signal on the bus and r is a random number. The random number r is k, for example, selected from the range between 0 and 2, wherein k is in turn a function of the count n new dependent. Preferably, k is the minimum of a maximum number of collisions, z. B. 10, and the counter reading n new (k = min (n new , 10)). After that, the time delay would no longer be increased with increasing frequency of the collisions if the counter reading and thus the number of collisions that occurred exceeded the maximum permitted number.

Erkennt ein Teilnehmer jedoch bei einem Sendewunsch, daß der Datenbus bereits belegt ist, wird das Telegramm nicht gesendet, sondern von Anfang an zurückgehalten. Mittels des Berechnungsblocks V, insbesondere durch den Unterblock VI, wird anschließend die zweite Zeitverzögerung bestimmt, nach der erneut ein Sendeversuch gestartet wird. Im Unterschied zur Be­ rechnung der ersten Zeitverzögerung nach Erkennung einer Kollision wird der Zählerstand n nicht erhöht; nneu = naktuell. Im übrigen wird die zweite Zeit­ verzögerung r . tconst bzw. der Zeitpunkt tneu für einen erneuten Sendeversuch mit derselben Formel F des Berechnungsblocks V berechnet, wie auch die Zeitverzögerung r . tconst bzw. der Zeitpunkt tneu nach einer Kollisionserken­ nung.However, if a participant recognizes that the data bus is already busy when sending a request, the telegram is not sent, but is held back from the beginning. The second time delay is then determined by means of the calculation block V, in particular by sub-block VI, after which a transmission attempt is started again. In contrast to the calculation of the first time delay after detection of a collision, the counter reading n is not increased; n new = n current . Otherwise, the second time delay r. t const or the time t new is calculated for a new transmission attempt using the same formula F of the calculation block V, as is the time delay r. t const or the time t new after a collision detection.

Durch dieses erfindungsgemäße Ausführungsbeispiel werden die Kollisio­ nen und durchschnittlichen Übertragungszeiten der Telegramme minimiert.By means of this exemplary embodiment according to the invention, the collision and average transmission times of the telegrams are minimized.

Claims (1)

Verfahren zur Übertragung von Telegrammen der Teilnehmer eines Daten­ busses mit zufälligem Buszugriff, bei dem ein Teilnehmer nach dem Erken­ nen einer Kollision durch gleichzeitig von mehreren Teilnehmern gesendete Telegramme die Übertragung seines Telegramms unterbricht und für einen neuen Sendeversuch desselben Telegramms eine erste Zeitverzögerung bestimmt, dadurch gekennzeichnet, daß die erste Zeitverzögerung (r . tconst) mittels einer Formel (F) berechnet wird, die eine von einem Zähler (n; nneu, naktuell) abhängige Zufallszahl (r = f(nneu)) enthält, wobei der Zähler bei jeder erkannten Kollision erhöht wird (nneu = naktuell + 1), und daß dieselbe Formel (F) zur Berechnung einer zweiten Zeitverzögerung (r . tconst) verwendet wird, die für einen erneuten Sendeversuch (tneu) eines Telegramms vorgegeben wird, wenn anstelle einer Kollision bereits vor dem Senden eines Tele­ gramms bei einem Sendeversuch (taktuell) des Teilnehmers erkannt wird, daß der Datenbus belegt ist, wobei der Zähler zur Berechnung der zweiten Zeit­ verzögerung nicht erhöht wird (nneu = naktuell).Process for the transmission of telegrams from the participants of a data bus with random bus access, in which a participant interrupts the transmission of his telegram after detection of a collision by telegrams sent simultaneously by several participants and determines a first time delay for a new attempt to send the same telegram, characterized in that that the first time delay (r. t const ) is calculated using a formula (F) which contains a random number (r = f (n new )) dependent on a counter (n; n new , n current ), the counter is increased for each detected collision (n new = n current + 1), and that the same formula (F) is used to calculate a second time delay (r. t const ) that is specified for a new attempt to send (t new ) a telegram , if instead of a collision before sending a telegram during a transmission attempt (t current ) of the subscriber it is recognized that the D atenbus is occupied, whereby the counter for calculating the second time delay is not increased (n new = n current ).
DE1997105681 1997-02-14 1997-02-14 Transmission of data telegrams over a data bus Withdrawn DE19705681A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
DE1997105681 DE19705681A1 (en) 1997-02-14 1997-02-14 Transmission of data telegrams over a data bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
DE1997105681 DE19705681A1 (en) 1997-02-14 1997-02-14 Transmission of data telegrams over a data bus

Publications (1)

Publication Number Publication Date
DE19705681A1 true DE19705681A1 (en) 1998-08-20

Family

ID=7820254

Family Applications (1)

Application Number Title Priority Date Filing Date
DE1997105681 Withdrawn DE19705681A1 (en) 1997-02-14 1997-02-14 Transmission of data telegrams over a data bus

Country Status (1)

Country Link
DE (1) DE19705681A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014207436A1 (en) * 2013-06-25 2014-12-31 Amantys Ltd Low-skew communication system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0064818A1 (en) * 1981-04-20 1982-11-17 Pitney Bowes, Inc. Data collision avoidance method
EP0076880A1 (en) * 1981-10-01 1983-04-20 BURROUGHS CORPORATION (a Michigan corporation) A local area contention network data communication system
DE3608173A1 (en) * 1985-03-21 1986-09-25 Apple Computer, Inc., Cupertino, Calif. DATA PROCESSING SYSTEM AND METHOD FOR TRANSMITTING DATA VIA A DATA TRANSMISSION MEDIUM BETWEEN SEVERAL DATA PROCESSING DEVICES
DE4122084A1 (en) * 1991-07-04 1993-01-07 Bosch Gmbh Robert METHOD FOR TRANSFERRING INFORMATION IN A BUS SYSTEM HAVING SEVERAL PARTICIPANTS

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0064818A1 (en) * 1981-04-20 1982-11-17 Pitney Bowes, Inc. Data collision avoidance method
EP0076880A1 (en) * 1981-10-01 1983-04-20 BURROUGHS CORPORATION (a Michigan corporation) A local area contention network data communication system
DE3608173A1 (en) * 1985-03-21 1986-09-25 Apple Computer, Inc., Cupertino, Calif. DATA PROCESSING SYSTEM AND METHOD FOR TRANSMITTING DATA VIA A DATA TRANSMISSION MEDIUM BETWEEN SEVERAL DATA PROCESSING DEVICES
DE4122084A1 (en) * 1991-07-04 1993-01-07 Bosch Gmbh Robert METHOD FOR TRANSFERRING INFORMATION IN A BUS SYSTEM HAVING SEVERAL PARTICIPANTS

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DIEBENBUSCH,Klaus: Ethernet: Grundlagen - Eigenschaften - Möglichkeiten. In: Elektronik 19, 1982, S.99-103 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014207436A1 (en) * 2013-06-25 2014-12-31 Amantys Ltd Low-skew communication system
US10069431B2 (en) 2013-06-25 2018-09-04 Maschinenfabrik Reinhausen Gmbh Low-skew communication system

Similar Documents

Publication Publication Date Title
EP1298849B1 (en) Method and device for transmitting information via a bus system and bus system
EP2622826B1 (en) Method for automatically assigning addresses to identical bus users
EP2695074B1 (en) Method and apparatus for adapting the data transmission security in a serial bus system
DE69920634T2 (en) Method for contention resolution in a mobile transmission system
DE69636650T2 (en) A packet radio communication system capable of avoiding a transmission collision
DE60101022T2 (en) Transmission of requests from a mobile device in the uplink in a wireless system
EP3172871B1 (en) Access method with access slots and priority resolution
DE69818139T2 (en) System and method for improving the performance of a CSMA / CD network in the event of a collision
DE102014214457B4 (en) Station and method for serial data transmission with dynamic reprioritization of data frames
DE102018219292A1 (en) Error frame shielding unit for a subscriber station of a serial bus system and method for communication in a serial bus system
DE102019201230A1 (en) Subscriber station for a serial bus system and method for sending a message in a serial bus system
DE10246793B4 (en) Transmission control device using a CAN protocol
EP3729738A1 (en) Method for transmitting data packets, control unit and system having control unit
EP0610202B1 (en) Process for information transmission in a bus system having several participants
EP0989701A2 (en) Data bus
DE102018203680A1 (en) Subscriber station for a serial bus system and method for data transmission in a serial bus system
DE10127417A1 (en) Transport protocol system for communication between units and a host using data packets with identification
DE10296916B4 (en) Communication device and method for supporting multiple access with line monitoring / collision detection
DE19705681A1 (en) Transmission of data telegrams over a data bus
DE102012204536A1 (en) Method for transmitting data through common transmission medium in network, involves determining one time for media access to send message in other time range of current transfer cycle or subsequent transmission cycle
EP2338248B1 (en) Method for operating a communication system with a plurality of nodes and communication system therefor
DE102011006884A1 (en) Method for transferring serial data in bus system, involves determining size of data field in presence of switching condition, so that values of four bits of data length code partially deviating from specific standard are interpreted
EP1380962B1 (en) Apparatus and method for data communication
DE102010044993A1 (en) Method for data transmission and device for environment detection
EP1473864B1 (en) Collision-free transmission of datagrams via at least one repeater

Legal Events

Date Code Title Description
OM8 Search report available as to paragraph 43 lit. 1 sentence 1 patent law
8110 Request for examination paragraph 44
8130 Withdrawal