DE1574528A1 - Method and device for the determination of test characters of any given number - Google Patents

Method and device for the determination of test characters of any given number

Info

Publication number
DE1574528A1
DE1574528A1 DE19681574528 DE1574528A DE1574528A1 DE 1574528 A1 DE1574528 A1 DE 1574528A1 DE 19681574528 DE19681574528 DE 19681574528 DE 1574528 A DE1574528 A DE 1574528A DE 1574528 A1 DE1574528 A1 DE 1574528A1
Authority
DE
Germany
Prior art keywords
memory
mod
check
counter
characters
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.)
Pending
Application number
DE19681574528
Other languages
German (de)
Inventor
Gerhard Dipl-Math Renelt
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.)
Philips Intellectual Property and Standards GmbH
Original Assignee
Philips Patentverwaltung GmbH
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 Philips Patentverwaltung GmbH filed Critical Philips Patentverwaltung GmbH
Priority to GB333969A priority Critical patent/GB1261382A/en
Priority to FR6901369A priority patent/FR2000680A1/fr
Publication of DE1574528A1 publication Critical patent/DE1574528A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
    • G06F11/1012Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices using codes or arrangements adapted for a specific type of error
    • G06F11/104Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices using codes or arrangements adapted for a specific type of error using arithmetic codes, i.e. codes which are preserved during operation, e.g. modulo 9 or 11 check

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Detection And Correction Of Errors (AREA)

Description

"Verfahren und Vorrichtung zur Bestimmung von Prüfzeichen beliebig vorgegebener Anzahl". Die Erfindung betrifft ein Verfahren und eine Vorrichtung zur Berechnung von Prüfziffern beliebig vorgebbarer Anzahl aus Informationsdaten und zur Kontrolle von damit abgesicherten Informationsdaten, deren einzelnen Zeichen Zahlen aus einem Restklassensystem mod M fest zugeordnet sind."Any method and device for determining test marks predetermined number ". The invention relates to a method and an apparatus for calculating check digits of any number from information data and for the control of information data secured with it, their individual characters Numbers from a residual class system mod M are permanently assigned.

Die Daten bestehen im allgemeinen aus einer Folge von Zeichen aus einem gegebenen Zeichenvorrat (Dezimalziffern, Alphabet etc.), dem auch die Prüfzeichen entnommen werden. Die Bestimmung der Prüfzeichen erfolgt in systematischer Weise aus den Informationszeichen, und zwar so, daß sich möglichst viele Fehler dadurch erkennen lassen. Hierzu wird zunächst jedem Zeichen eine Zahl aus einem geeigneten Restklassensystem mod M (M Primzahl ":z: Zeichenvorrat) zugeordnet. Die einzelnen Zeichen können dabei natürlich auch binär untercodiert sein oder es lassen sich im Falle binärer Daten mehrere Binärstellen zu einem Zeichen zusammenfassen. Die Prüfzeichen werden dann durch gewichtete Quersummenbildung im gewählten Restklassensystem gewonnen. Bei geeigneter Gewichtsauswahl erhält man dabei eine optimale Absicherung.The data generally consists of a sequence of characters a given set of characters (decimal digits, alphabet, etc.), which also includes the check characters can be removed. The test marks are determined in a systematic manner from the information signs, in such a way that as many errors as possible arise reveal. To do this, each character is first assigned a number from a suitable one Residual class system mod M (M prime number ": z: character set) assigned. The individual Characters can of course also be sub-coded in binary, or they can be in the case of binary data, combine several binary digits into one character. the Check marks are then weighted checksums in the selected residual class system won. With a suitable choice of weight you get an optimal protection.

Es wurde bereits ein Verfahren angemeldet, bei dem solche PrÜfzeichen mit geeigneter Gewichtsfolge erzeugt werden. Dieses Verfahren hat jedoch gegenüber dem hier beschriebenen den Nachteil, daß es einen wesentlich höheren Aufwand für die Prüfzeichenherstellung erfordert.A procedure has already been registered in which such test marks can be generated with a suitable weight sequence. This Procedure has however, compared to the one described here, the disadvantage is that it is a much higher rate Requires effort for the production of the test mark.

Die Erfindung ist dadurch gekennzeichnet, daß für jede Prüfziffer ein Speicher verwendet wird, daß nach jeder Eingabe eines Zeichens die zugehörige Zahl zum Inhalt des ersten Speichers Spl mod M addiert wird, der so entstandene Inhalt zum Inhalt des nächsten Speichers Sp2 mod M addiert wird u.s.f., und daß nach Eingabe und Verarbeitung des letzten Informationszeichens bei umgekehrter Verarbeitungsfolge der Inhalt des vorletzten Speichers zum Inhalt des drittletzten Speichers addiert wird u.s.f. und in diesem ersten Schritt nach beendeter Eingabe der Inhalt des ersten Speichers festgelegt wird, danach in einem entsprechenden zweiten Schritt .der Inhalt des zweiten Speichers festgelegt wird u.s.f., bis schließlich zur Festlegung des Inhaltes des drittletzten Speichers, und daB die zuletzt erhaltenen Speicherinhalte die Prüfzeichen ergeben.The invention is characterized in that for each check digit a memory is used that each time a character is entered, the associated Number is added to the content of the first memory Spl mod M, the resultant Content is added to the content of the next memory Sp2 mod M, etc., and that after entering and processing the last information character in the reverse processing sequence the contents of the penultimate memory are added to the contents of the third last memory becomes u.s.f. and in this first step, after the input has been completed, the content of the first Memory is set, then in a corresponding second step. The content of the second memory is determined and so on, until finally the determination of the Contents of the third from last memory, and that the last memory contents received the test marks result.

Das hier beschriebene Verfahren benötigt keine explizite Speicherung der Gewichtsfolgen und kommt für jedes Prüfzeichen mit einem einzigen Speicherplatz aus. Es hat deshalb den Vorteil, die Prüfzeichenbestimmung bzw. Prüfung bei optimaler Absicherung mit extrem geringem Aufwand zu ermöglichen.The procedure described here does not require any explicit storage of the weight sequences and comes with a single memory location for each test character the end. It therefore has the advantage of determining or testing the test mark when it is optimal To enable protection with extremely little effort.

Im Folgenden soll die Arbeitsweise des Verfahrens am Beispiel eines Systems mit p = 5 Prüfzeichen, mit denen m = 7 Informationszeichen .im Restklassensystem mod M = 11 abgesichert werden, im einzelnen erläutert werden. Die Informationszeichen mögender Reihe nach mit al bis a7 bezeichnet werden. Vor Beginn wird der Inhalt aller Speicher zu 0 gesetzt. Beim ersten Schritt wird a1 zum Inhalt des ersten Speichers Spl addiert, das Ergebnis zum Inhalt des zweiten Speichers Sp2 usw.' so daB schließlich in allen Speichern der Inhalt a1 steht.In the following, the method of operation of the method is shown using the example of a Systems with p = 5 test characters, with which m = 7 information characters in the residual class system mod M = 11 are secured, are explained in detail. The information signs can be designated in sequence with al to a7. Before starting, the content all memories set to 0. In the first step, a1 becomes the content of the first memory Spl added, the result to the content of the second memory Sp2, etc. ' so that in the end the content a1 is in all memories.

Beim zweiten Schritt wird a2 zum Inhalt a1 des ersten Speichers Spi addiert, so daß in diesem d.er Wert a1 + a2 entsteht. Dieser Inhalt wird zum Inhalt des zweiten Speichers Sp2 addiert und ergibt dort das Ergebnis 2a1 + a2 usw: In dieser Weise ergeben sich als Inhalte in den Speichern nach dem 2. Schritt: (Spi): a1 + a2 (Sp2): 2a1 + a2 (Sp3): 3a1 + a2 (Sp4): 4a1 + a2 (Sp5): 5a1 + a2 Der 3. Schritt ergibt folgenden Stand: (Spi): a1 + a2 + a3 (Sp2): 3a1 + 2a2 + a3 (Sp3): 6a1 + 3a2 + a3 (Sp4): 10a1 + 4a2 + a3 (Sp5): 15a1 + 5a2 + a3 Weiterhin erhält man nach Schritt 4: (Spi): a1 + a2 + a3 + a4 (Sp2): 4a1 + 3a2 + 2a3 + a4 (sp3): loai + 6a2 + 3a3 + a4 (Sp4): 20a1 + 10a2 + 4a3 + a4 (Sp5): 35a1 + 15a2 + 5a3 + a4 nach Schritt 5: (SP1): a1 + a2 + a3 + a4 + a5 (SP2): 5a1 + 4a2 + 3a3 + 2a4 + a5 (Sp3): 15a1 + 10a2 + 6a3 + 3a4 + a5 (SP4): 35a1 + 20a2 + 10a3 + 4ad + a5 (Sp5): 70a1 + 35a2 + 15a3 + 5a4 + a5 nach Schritt 6: (Sp1):- a1 + a2 + a3 + a4 + a5 + a6 (Sp2): 6a1 +- 5a2 + 4a3 + 3a4 + 2a5 + a6 (Sp3): 21a1 + 15a2 + 10a3 + 6a4 + 3a5 + a6. (SP4): 56a1 + 35a2 + 20a3 + 10a4 + 4a5 + a6 (Sp5): 126a1 + 70a2 + 35a3 + 15a4 + 5a5 + a6 nach Schritt 7: (SP1): a1 + a2 + a3 + a4 + a5 + a6 + a7 (Sp2): 7a1 + 6a2 + 5a3 + 4a4 + 3a5 + 2a6 + a7 (Sp3): 28a1 + 21a2 + 15a3 + 10a4 + 6a5 + 3a6 + a7 (SP4): 84a1 + 56a2 + 35a3 + 20a4 + 10a5 + 4a6 + a7 (Sp5): 210a1 + 126a2 + 70a3 + 35a4 + 15a5 + 5a6 + a7 oder in Formeln, im@Speicher Spv nach Schritt /u den Inhalt: Nach Schritt 7 (Eingabe des letzten Informationszeichens) sind bereits die zwei Prüfzeichen P4 und P5 entstanden und stehen in den beiden letzten Speichern Sp4 und Sp5. Zur Bestimmung der übrigen Prüfzeichen wird die Bearbeitungsrichtung umge- kehrt und nun vom.vorletzten Speicher Sp.4 ausgegangen. Nach Schritt 8 ergeben sich damit folgende neue Speicherin- halte: (SP3): 112a1 + 77a2 + 50a3 + 30a4 + 16a5 + 7a6 + 2a7 (SP2): 119a1 + 83a2 + 55a3 + 34a4 + 19a5 +:-9a6 + 3a7-,#, (Sp1): 120a1 + 84a2 +, 56a3 +_35a4 + 20a5 + 10a6 + 4.g7 Der letztgenannte Speicher (Sp1) enthält damit das Prüfzei- chen P1. . In Schritt 9 wird wieder ausgehend von Sp4 die Bearbeitung wiederholt, jedoch nur noch bis zum Speicher S%, in dem da- . mit ein weiteres Prüfzeichen P2 entsteht. Die neuen Speicher- inhalte nach Schritt 9 lauten: (SP3): 196a1 + 133a2 + 85a3 + 50a4 + 26a5 + 11a6 + 3a7 (SP2): 315a1 + 216a2 + 140a3 + 84a4 + 45a5 + 20a6 + 6a7 Schließlich ergibt sich im letzten Schritt das noch fehlende Prüfzeichen zu: (Sp3): 280a1 + 189a2 + 120a3 + 70a4 + 36a5 + 15a6 + 4a7 Formelmäßig lassen sich die so gewonnenen Prüfzeichen Pv all- gemein durch.: (v = 192...p) mit der gewünschten Anzahl p der Prüfzeichen und mitm = M +.1 - p als Anzahl der Infflrmationszeichen darstellen, wie man leicht durch.Induktionsschluß verifiziert: Ist die wirkliche Anzahl der Informationszeichen geringer, so werden diese durch Festzeicheni z.B. Nullen, zur gewünschten Anzahl ergänzt. Als Gewichte ergeben..sich nach diesem Verfahren die Werte: (v = 1,2,...,p) (ji= 1,2,...9 m)0 Eine optimale Absicherung wird dann erhalten,-wenn alle Determinanten und Unterdeterminanten, die sich aus der Gewichtsmatrix bilden lassen, von 0 verschieden sind. Durch die Form (2) der Gewichte wird diese Forderung erfüllt, was die Optimalität der Absicherung gewährleistet, Die Zeichnung stellt Ausführungsbeispiele von Schaltungsanordnungen zur Durchführung des Verfahrens dar. Es zeigen: Fig. 1a eine Anordnung mit einem Addierer und einem Zweifach-Umschalter, Fig. lb eine Anordnung mit Einfach-Umschaltung und Zwischenspeicher, Fig. 2 die Verwendung von hintereinandergeschalteten Zählern. In Fig. 1a wird im Aufnahmespeicher Spo das ankommende Zeichen gespeichert. Sp1 bis Sp5 bezeichnen die Speicher zur Aufnahme der Prüfzeichen, die ganz am Anfang gleich 0 gesetzt werden. Die Speicher können dabei aus bistabilen Kippstufen bestehen und z.B. als Schieberegister geschaltet sein. In jedem Schritt des Eingabeteils werden mittels des Schalters S zunächst der Speicher Spo und Spl an den Eingang des mod-M-Addierers Ad gelegt und das Ergebnis na h $p abgespeichert.In the second step, a2 is added to the content a1 of the first memory Spi, so that the value a1 + a2 arises in this. This content is added to the content of the second memory Sp2 and results there in the result 2a1 + a2 etc.: In this way the contents in the memories after the 2nd step result: (Spi): a1 + a2 (Sp2): 2a1 + a2 (Sp3): 3a1 + a2 (Sp4): 4a1 + a2 (Sp5): 5a1 + a2 The 3rd step results in the following status: (Spi): a1 + a2 + a3 (Sp2): 3a1 + 2a2 + a3 (Sp3): 6a1 + 3a2 + a3 (Sp4): 10a1 + 4a2 + a3 (Sp5): 15a1 + 5a2 + a3 Furthermore, after step 4 you get: (Spi): a1 + a2 + a3 + a4 (Sp2): 4a1 + 3a2 + 2a3 + a4 (sp3): loai + 6a2 + 3a3 + a4 (Sp4): 20a1 + 10a2 + 4a3 + a4 (Sp5): 35a1 + 15a2 + 5a3 + a4 after step 5: (SP1): a1 + a2 + a3 + a4 + a5 (SP2): 5a1 + 4a2 + 3a3 + 2a4 + a5 (Sp3): 15a1 + 10a2 + 6a3 + 3a4 + a5 (SP4): 35a1 + 20a2 + 10a3 + 4ad + a5 (Sp5): 70a1 + 35a2 + 15a3 + 5a4 + a5 after step 6: (Col1): - a1 + a2 + a3 + a4 + a5 + a6 (Sp2): 6a1 + - 5a2 + 4a3 + 3a4 + 2a5 + a6 (Sp3): 21a1 + 15a2 + 10a3 + 6a4 + 3a5 + a6. (SP4): 56a1 + 35a2 + 20a3 + 10a4 + 4a5 + a6 (Sp5): 126a1 + 70a2 + 35a3 + 15a4 + 5a5 + a6 after step 7: (SP1): a1 + a2 + a3 + a4 + a5 + a6 + a7 (Sp2): 7a1 + 6a2 + 5a3 + 4a4 + 3a5 + 2a6 + a7 (Sp3): 28a1 + 21a2 + 15a3 + 10a4 + 6a5 + 3a6 + a7 (SP4): 84a1 + 56a2 + 35a3 + 20a4 + 10a5 + 4a6 + a7 (Sp5): 210a1 + 126a2 + 70a3 + 35a4 + 15a5 + 5a6 + a7 or in formulas, in @ memory Spv after step / u the content: After step 7 (entering the last information character) the two test characters P4 and P5 have already been created and are available in the last two memories Sp4 and Sp5. For determination of the other test marks, the processing direction is reversed and now assumed from the penultimate memory column 4. After step 8, the following new memory entries result hold: (SP3): 112a1 + 77a2 + 50a3 + 30a4 + 16a5 + 7a6 + 2a7 (SP2): 119a1 + 83a2 + 55a3 + 34a4 + 19a5 +: - 9a6 + 3a7 -, #, (Sp1): 120a1 + 84a2 +, 56a3 + _35a4 + 20a5 + 10a6 + 4.g7 The last-mentioned memory (Sp1) thus contains the test digit chen P1. . In step 9, processing starts again from Sp4 repeated, but only up to the memory S%, in which there-. with another test mark P2. The new storage contents after step 9 are: (SP3): 196a1 + 133a2 + 85a3 + 50a4 + 26a5 + 11a6 + 3a7 (SP2): 315a1 + 216a2 + 140a3 + 84a4 + 45a5 + 20a6 + 6a7 Finally, in the last step, there is what is still missing Certification mark for: (Sp3): 280a1 + 189a2 + 120a3 + 70a4 + 36a5 + 15a6 + 4a7 In terms of formula, the Pv test marks obtained in this way can be mean by .: (v = 192 ... p) with the desired number p of test characters and with m = M +.1 - p as the number of information characters, as can be easily verified by induction conclusion: If the actual number of information characters is lower, these are supplemented by fixed characters, e.g. zeros, to the desired number . The following values are obtained as weights according to this procedure: (v = 1,2, ..., p) (ji = 1,2, ... 9 m) 0 An optimal protection is obtained, -if all determinants and sub-determinants, which can be formed from the weight matrix, from 0 are different. The shape (2) of the weights fulfills this requirement, which ensures the optimality of the protection. The drawing shows exemplary embodiments of circuit arrangements for carrying out the method FIG. 1b shows an arrangement with single switchover and buffer memory, FIG. 2 shows the use of counters connected in series. In Fig. 1a, the incoming character is stored in the recording memory Spo. Sp1 to Sp5 designate the memories for receiving the check characters, which are set to 0 at the very beginning. The memories can consist of bistable multivibrators and can be connected as shift registers, for example. In each step of the input part, first the memories Spo and Spl are applied to the input of the mod-M adder Ad by means of the switch S and the result na h $ p is stored.

nd Sp2 Sodann gelangt der Inhalt von (Sp1)'/in en mod-M-Addierer Ad und dessen Ergebnis nach Sp2 usw. Nach beendeter Eingabe wird der Inhalt des vorletzten Speichers (Sp4) und des drittletzten Speichers (Sp3) in Ad addiert und das Ergebnis im letzteren Sp3 abgespeicherto Anschließend wird die Summe der Inhalte von (Sp3) und (Sp2) gebildet und nach Sp2 gebracht, sowie die Summe der Inhalte von (Sp2) und (Sp1) nach Sp1. Im nächsten Schritt wird der gleiche Arbeitsgang bis zum Abspeichern in Sp2 wiederholt und im letzten Schritt bis zum Abspeichern in Sp3o Zur Vereinfachung des Schalters S kann zusätzlich ein Zwischenspeicher Spa verwendet werden, der ebenfalls das jeweilige Ergebnis des Addierers zwischenspeichert oder/und der als Eingabespeicher des einen Summanden des Addierers dient. In Fig. 1b ist letzterer Fall genauer ausgeführt. Durch einen Taktschalter T wird in Taktstellung 1 die Summe der Inhalte des Zwischenspeichers und des über den Schalter S1 angeschlossenen Speichers gebildet und etwas verzögert in Speicher Spa zwischengespeichert. Anschließend erfolgt in Taktstellung 2 die Rückspeicherung in den angeschlossenen Speicher, so daß danach die Summe in beiden Speichern steht und der Schalter S1 in die nächste Stellung rückt. Häufig werden die Prüfzahlen nicht parallel benötigt, sondern zeitlich nacheinander, so daß die Speicher nacheinander abgefragt werden müssen. In diesem Falle kann ausgenutzt werden, daß die Prüfzeichen in einem zeitlichen Ablauf gebildet werden und jeweils im Augenblick der endgültigen Bildung bereits verwendet werden können. Dazu wird der Ausgang des mod M-Addierers Ad jeweils dann abgegriffen, wenn ein endgültiger Speicherinhalt festgelegt wird. Sind die Speicher Spl bis Sp5 als mod-M-Zähler Z1 bis Z5 ausgeführt, so kann der Addierer nebst Aufnahme- und Zwischenspeicher entfallen. Durch eine den ankommenden Zeichen a@ entsprechende Anzahl Impulse wird zunächst der Zähler Z1 um a@ Stellungen weitergestellt. Durch M weitere Impulse gelangt der Zähler Z1 wieder in die gleiche Stellung, während die Impulse nach dem 0-Durchgang des Zählers Z, auch in den Zähler Z2 laufen und damit eine Addition bewirken. Durch M Impulse in den Zähler Z2 und Ankopplung des Zählers Z3 nach dem Nulldurchgang wird eine Addition im letzten Zähler bewirkt u.s.f. Dabei ist eine Anordnung entsprechend Fig. 1a unter Weglassung von Ad und Spo bei gleicher Schalterführung S möglich. Es kann jedoch auch eine Anordnung nach Fig. 2 gewählt werden. Gemäß jedem ankommenden Zeichen aIU gelangen a@ + K o M Impulse in den Zähler Z1, alle Impulse nach dem 1. Nulldurchgang dieses Zählers auch in den Zähler Z2, alle Impulse nach dem 1. Nulldurchgang dieses Zählers auch in den Zähler Z3 u.s.f. K ist dabei eine ganze'Zahl, die entweder dadurch bestimmt wird, daß mindestens ein Nulldurchgang des vorletzten Zählers auftritt oder die fest zu K = p r 1 gewählt wird. Nach Eingabe und Verarbeitung des letzten Informationszeichens stehen zwei Prüfzeichen bereits in den beiden letzten Zählern. Zur Bestimmung der übrigen Prüfzeichen (in Fig. 2 nicht gezeichnet) gelangen K # M Impulse in den vorletzten Zähler, alle Impulse nach dessen Nulldurchgang auch in den drittletzten Zähler u.s.f. K ist dabei wieder eine ganze Zahl, die durch die Forderung nach einem Nulldurchgang des ersten oder zweiten Zählers festgelegt wird oder durch K = p-2 festgesetzt wird. Nach diesem Schritt steht das erste Prüfzeichen im Zähler 1. Zur Bestimmung des zweiten Prüfzeichens (im Fall P.> 3) laufen g # M Impulse in den vorletzten Zähler und in gleicher Weise ein entsprechender Teil in die vorhergehenden Zähler, jedoch jetzt nur noch bis zum 2. Zähler. Zähler Z1 ist also jetzt abgetrennt, Im nächsten Schritt wird Zähler Z2 abgetrennt, so daß keine Veränderung der Zählerstände von Zähler Z1 und Z2 mehr erfolgen u.s.f. Das Verfahren endet mit der Abtrennung des drittletzten Zählers bzw. unmittelbar davor. Die Prüfzeichen können aus den entstandenen Zählerständen direkt oder auch durch Umcodierung, z.B. etwa durch Komplementbildung, gewonnen werden. Werden nur drei Prüfzeichen gewünscht, so kann auch auf die Umkehr der Verarbeitungsrichtung verzichtet werden. Nach Eingabe und Verarbeitung des letzten Informationszeichens können . zwei Prüfzeichen den beiden letzten Speichern entnommen werden, sowie das dritte Prüfzeichen in diesem Falle nach einem weiteren Schritt, welcher der zusätzlichen Eingabe einer 0 entspricht, aus dem mittleren Speicherplatz, Die Prüfzeichen stehen dann jedoch nicht gleichzeitig zur Verfügung, sondern der mittlere Speicher enthält zunächst das zweite Prüfzeichen und nach einem weiteren Schritt das dritte Prüfzeichen, womit das zweite Prüfzeichen gelöscht wird.nd Sp2 The content of (Sp1) '/ then arrives in a mod-M adder Ad and its result after Col2 etc. After the input has been completed, the content of the penultimate The memory (Sp4) and the third from last memory (Sp3) in Ad are added and the result stored in the latter Sp3 o The sum of the contents of (Sp3) is then and (Sp2) formed and brought to Sp2, as well as the sum of the contents of (Sp2) and (Sp1) after Sp1. The next step is the same process until it is saved Repeated in Sp2 and in the last step until it is saved in Sp3o. For the sake of simplicity of the switch S, a buffer spa can also be used temporarily stores the respective result of the adder and / or as an input memory one of the summands of the adder is used. The latter case is detailed in FIG. 1b. By means of a clock switch T, the sum of the contents of the buffer is set in clock position 1 and the memory connected via switch S1 and somewhat delayed cached in memory spa. Then takes place in clock position 2 the Restore in the connected memory, so that afterwards the sum in both Save and the switch S1 moves to the next position. Become common the check numbers are not required in parallel, but one after the other, so that the Memory must be queried one after the other. In this case it can be used that the test characters are formed in a temporal sequence and can already be used at the moment of final formation. In addition the output of the mod M adder Ad is tapped each time a final Memory content is determined. Are the memories Spl to Sp5 as mod-M counters Z1 up to Z5, the adder, along with the recording and intermediate memory, can be omitted. With a number of pulses corresponding to the incoming character a @, the counter Z1 advanced by a @ positions. The M further impulses get the Counter Z1 again in the same position, while the pulses after the 0 passage of the counter Z, also run into the counter Z2 and thus cause an addition. By M pulses into the counter Z2 and coupling of the counter Z3 after the zero crossing an addition is effected in the last counter, etc. An arrangement is corresponding here Fig. 1a with the omission of Ad and Spo with the same switch guide S possible. However, an arrangement according to FIG. 2 can also be selected. According to each arriving Character aIU get a @ + K o M pulses in the counter Z1, all pulses after the 1st zero crossing of this counter also in counter Z2, all pulses after the 1st Zero crossing of this counter also in the counter Z3 etc. K is a whole number which is either determined by the fact that at least one zero crossing of the penultimate one Counter occurs or which is chosen to be fixed at K = p r 1. After input and processing of the last information character there are already two test characters in the last two Counters. To determine the remaining test marks (not shown in FIG. 2) K # M pulses in the penultimate counter, all pulses after its zero crossing as well in the third from last counter etc. K is again an integer that goes through the requirement for a zero crossing of the first or second Counter is established or is established by K = p-2. After this step it is first test character in meter 1. To determine the second test character (in the case P.> 3) g # M pulses run into the penultimate counter and a corresponding one in the same way Part in the previous counter, but now only up to the 2nd counter. counter Z1 is now disconnected. In the next step, counter Z2 is disconnected, see above that the counter readings of counters Z1 and Z2 are no longer changed, etc. The process ends with the disconnection of the third from the last meter or immediately before. The test marks can be taken directly or from the resulting counter readings can be obtained by recoding, e.g. by forming a complement. Will only If three test marks are desired, the processing direction can also be reversed be waived. After entering and processing the last information character can . two test characters can be taken from the last two memories, as well as the third test mark in this case after a further step, which of the additional Entering a 0 corresponds to the middle memory location, the check characters are available then not available at the same time, but the middle memory contains first the second test mark and after a further step the third test mark, with which the second test mark is deleted.

Claims (2)

PATETTTANSPRÜCHE 1. Verfahren zur Berechnung von Prüfziffern beliebig vorgebbarer Anzahl aus Informationsdaten und zur Kontrolle von damit abgesicherten Informationsdaten, deren einzelnen Zeichen Zahlen aus einem Restklassensystem mod M fest zugeordnet sind, dadurch gekennzeichnet, daß für jede Prüfziffer ein Speicher verwendet wird, daß nach jeder Eingabe eines Zeichens die zugehörige Zahl zum Inhalt des ersten Speichers Spl mod M addiert wird, der so entstandene Inhalt zum Inhalt des.nächsten Speichers Sp2 mod M addiert wird u.s.f., und daß nach Eingabe und Verarbeitung des letzten Informationszeichens bei umgekehrter Verarbeitungsfolge der Inhalt des vorletzten Speichers zum Inhalt des drittletzten Speichers addiert wird u.s.fo und in diesem ersten Schritt nach beendeter Eingabe der Inhalt des ersten Speichers festgelegt wird, danach in einem entsprechenden zweiten Schritt der Inhalt des zweiten Speichers festge-_ legt wird u.s.f., bis schließlich Zur Festlegung des Inhaltes des drittletzten Speichers, und daß die zuletzt erhaltenen Speicherinhalte die Prüfzeichen ergeben. PATETTTANSPRÜCHE 1. Any method for calculating check digits specifiable number from information data and for the control of secured Information data, the individual characters of which are numbers from a residual class system mod M are permanently assigned, characterized in that a memory for each check digit it is used that after each input of a character the corresponding number is added to the content of the first memory Spl mod M is added, the resulting content to the content of the next memory Sp2 mod M is added and so on, and that after input and processing of the last information character, if the processing sequence is reversed, the content of the penultimate memory is added to the content of the third last memory u.s.fo and In this first step, after the input has been completed, the content of the first memory is determined, then in a corresponding second step the content of the second Memory is determined and so on, until finally to determine the content of the third from last memory, and that the last memory contents received the check characters result. 2. Verfahren nach Anspruch 1, dadurch gekennzeichnet, daß die Prüfzahl /a üs den Speicherinhalten abgeleitet werden, z.B.
durch Komplementbildung. 3. Verfahren nach Anspruch 1 oder 2, dadurch gekennzeichnet, daß die Prüfzahlen zeitlich nacheinander aus den Ergebnissen der entsprechenden Additionen, die die endgültigen Speicherinhalte ergeben, gewonnen werden. 4. Verfahren zur Bestimmung von drei Prüfzeichen nach Anspruch 1 oder 2, dadurch gekennzeichnet, daß nach Eingabe des letzten Informationszeichens zwei der Prüfzeichen aua den beiden letzten Speichern und danach das dritte nach einem weite- . ren Schritt entsprechend einer zusätzlichen Eingabe einer 0 ohne Umkehr der Verarbeitungsrichtung aus dem zweitletzten Speicher gewonnen werden. 5. Verfahren nach den Ansprüchen 1 bis 4 zur Kontrolle von Datengruppen, welche die Prizfzeichen bereits enthalten, dadurch gekennzeichnet, daß die Prüfzeichen nochmals aus den Informationsdaten bestimmt und mit den Prüfzahlen verglichen werden und bei Nichtübereinstimmung ein Fehlersignal oder eine Fehleranzeige abgegeben wird. 6. Anordnung zur Durchführung des Verfahrens nach den Ansprüchen 1 bis 4, dadurch gekennzeichnet, daß für die nacheinander eintreffenden, den einzelnen Informationszeichen zugeordneten Zahlen ein Aufnahmespeicher (Spo) vorgesehen ist und ein Schalter (S) den Ausgang des Aufnahmespeichers mit dem Eingang des ersten Prüfzeichenspeichers (Sp1) oder den Ausgang eines beliebigen Prüfzeichenapeichers mit dem Eingang des jeweils folgenden oder vorhergehenden Prüfzeichenspeichers über einen mod M-Addierer (Ad) verbindet. 7. Anordnung nach Anspruch 6, dadurch gekennzeichnet, daß ein Zwischenspeicher (Spa) vorgesehen ist, der das jeweilige Ergebnis des mod M-Addierers (Ad) aufnimmt und/oder jeweils einen Summanden für den mod M-Addierer (Ad) liefert. 8. Anordnung zur Durchführung des Verfahrens nach den Ansprüchen 1 bis 4, dadurch gekennzeichnet, daß die Prüfzeichenspeicher (Sp1, Sp2 ...) als mod M-Zähler ausgeführt sind, daß die den einzelnen Informationszeichen zugeordneten Zahlen durch eine gleich große Anzahl von Impulsen dargestellt sind und daß ein Schalter (S) die Zähleingänge benachbarter Zähler verbindet. 9. Anordnung nach Anspruch 8, dadurch gekennzeichnet, daß zur Addition der Inhalte zweier mod M-Zähler (z.B. Sp1, Sp2) der erste mod M-Zähler M Zählimpulse erhält und nach *dem Nulldurchgang dieses ersten Zählers die Zähleingänge der beiden mod M-Zähler parallelgeschaltet sind, so daß der zweite Zähler die dann noch eintreffenden Zählimpulse erhält. 10. Anordnung nach Anspruch 8 und 9, dadurch gekennzeichnet, daß alle Zähler hintereinandergeschaltet sind und nach dem Nulldurchgang eines mod-M-Zählers je nach Verarbeitungsrichtung entweder der vorhergehende. oder der folgende mod M-Zähler die dann noch eintreffenden Zählimpulse erhältg wobei der erste Zähler zur Eingabe einer Zahl eine gleich große Anzahl von Impulsen zuzüglich einem ganzzahligen Vielfachen von M Impulsen bzw. der zweitletzte Zähler zur Errechnung der Prüfzahlen nach beendeter Eingabe dem zweitletzten Zähler ein ganzzahliges Vielfaches von M Impulsen erhält.
2. The method according to claim 1, characterized in that the check number / a can be derived from the memory contents, e.g.
through complement formation. 3. The method according to claim 1 or 2, characterized in that the check numbers are obtained one after the other from the results of the corresponding additions which result in the final memory contents. 4. A method for determining three test characters according to claim 1 or 2, characterized in that after entering the last information character two of the test characters aua the last two memories and then the third after a wide. ren step can be obtained from the penultimate memory according to an additional input of a 0 without reversing the processing direction. 5. The method according to claims 1 to 4 for checking data groups which already contain the check characters, characterized in that the check characters are determined again from the information data and compared with the check numbers and if they do not match, an error signal or an error display is issued. 6. Arrangement for performing the method according to claims 1 to 4, characterized in that a recording memory (Spo) is provided for the successively arriving numbers assigned to the individual information characters and a switch (S) connects the output of the recording memory to the input of the first Check-character memory (Sp1) or the output of any check-character memory with the input of the respectively following or preceding check-character memory via a mod M adder (Ad). 7. Arrangement according to claim 6, characterized in that an intermediate memory (Spa) is provided which receives the respective result of the mod M adder (Ad) and / or supplies a summand for the mod M adder (Ad). 8. Arrangement for carrying out the method according to claims 1 to 4, characterized in that the test character memory (Sp1, Sp2 ...) are designed as mod M counters that the numbers assigned to the individual information characters by an equal number of pulses are shown and that a switch (S) connects the counting inputs of adjacent counters. 9. An arrangement according to claim 8, characterized in that for adding the contents of two mod M counters (e.g. Sp1, Sp2) the first mod M counter M receives counting pulses and after the zero crossing of this first counter, the counting inputs of the two mod M- Counters are connected in parallel so that the second counter receives the counting pulses that still arrive. 10. Arrangement according to claim 8 and 9, characterized in that all counters are connected in series and after the zero crossing of a mod-M counter, depending on the processing direction, either the previous one. or the following mod M counter receives the counting pulses that are still arriving, the first counter entering a number with an equal number of pulses plus an integer multiple of M pulses or the penultimate counter for calculating the check numbers after the input has been completed the penultimate counter receives integer multiple of M pulses.
DE19681574528 1968-01-24 1968-01-24 Method and device for the determination of test characters of any given number Pending DE1574528A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
GB333969A GB1261382A (en) 1968-01-24 1969-01-21 Method and device for determining test symbols
FR6901369A FR2000680A1 (en) 1968-01-24 1969-01-24

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
DEP0043887 1968-01-24

Publications (1)

Publication Number Publication Date
DE1574528A1 true DE1574528A1 (en) 1971-05-13

Family

ID=7379851

Family Applications (1)

Application Number Title Priority Date Filing Date
DE19681574528 Pending DE1574528A1 (en) 1968-01-24 1968-01-24 Method and device for the determination of test characters of any given number

Country Status (1)

Country Link
DE (1) DE1574528A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE2809341A1 (en) * 1977-03-04 1978-09-07 Cii Honeywell Bull SYSTEM FOR CHECKING THE VALIDITY OF A CODE GROUP READ BY A MACHINE FROM A DOCUMENT

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE2809341A1 (en) * 1977-03-04 1978-09-07 Cii Honeywell Bull SYSTEM FOR CHECKING THE VALIDITY OF A CODE GROUP READ BY A MACHINE FROM A DOCUMENT

Similar Documents

Publication Publication Date Title
DE2508706C2 (en) Circuit arrangement for coding data bit sequences
DE3742098C2 (en)
DE2418653C3 (en) Device for displaying an extreme value of a sequence of digital values
DE2228526B2 (en) Method and arrangement for reading and decoding groups of bar marks representing data in coded form
DE1162398B (en) Compressor for data consisting of bits with different values
DE2519381A1 (en) DATA PROCESSING SYSTEM
DE2637620C2 (en) Method for regulating a variable that is dependent on several manipulated variables
DE2518588B2 (en) METHOD FOR MONITORING THE ACCURACY OF CODE SIGNAL GROUPS IN EQUIPMENT OF MESSAGE TECHNOLOGY
CH461116A (en) Digital position measuring device
DE3435539C2 (en)
DE3411015A1 (en) Method and device for the failsafe representation of a mimic diagram on a screen
DE3742142A1 (en) METHOD AND DEVICE FOR COMPRESSING AND RECONSTRUCTING DATA SEQUENCES
DE1574528A1 (en) Method and device for the determination of test characters of any given number
DE3329023A1 (en) DEVICE FOR TESTING LOGICAL SWITCHGEAR
DE3039306C2 (en) Device for receiving asynchronous and bit-by-bit serially transmitted data
DE1474024C3 (en) Arrangement for the arbitrary rearrangement of characters within an information word
DE2111670A1 (en) Arrangement for displaying the mean rate of occurrence of a signal indicative of an event
DE1094490B (en) Method and arrangement for converting binary numbers into decimal numbers and vice versa
DE1212152C2 (en) Static counter
DE3942150C2 (en) Method and circuit arrangement for data backup in storage units
DE3816203C2 (en)
DE2440147C3 (en) Threshold switching network for binary signals
DE2153561A1 (en) Distortion measuring device with digital display
DE2407285B1 (en) Method and device for word synchronization in digital, serial data transmission
DE1512583A1 (en) Method and arrangement for error detection and / or correction of binary information