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 numberInfo
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1008—Adding 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/1012—Adding 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/104—Adding 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:
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)
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)
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 |
-
1968
- 1968-01-24 DE DE19681574528 patent/DE1574528A1/en active Pending
Cited By (1)
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 |