EP1533907A1

Method and apparatus for decoding asynchronous biphase coded data frames with variable length

Abstract

Procédé et circuit électronique de décodage d'une trame asynchrone biphase dont la longueur n'est pas connue à l'avance, application, produit programme d'ordinateur et moyen de stockage correspondants. L'invention concerne un procédé de décodage, par un circuit électronique, d'une trame asynchrone biphase portée par un signal de données encodé et comprenant L bits utiles suivis d'au moins un bit de stop. Selon l'invention, le procédé comprend une étape (22) de détection automatique de la longueur L en bits utiles de la trame de façon à décoder la totalité de la trame, la longueur L de la trame étant variable d'une trame à l'autre et telle que : Lmin ≤ L ≤ Lmax, avec Lmax = (Lmin + k), où k est un nombre entier prédéterminé supérieur ou égal à 1.

EP1533907A1, drawing sheet 1
Sheet 1 of 8

Term

Term ended

Projected expiry passed 19 November 2024, 1.8 years ago.

  1. Priority
  2. Filed
  3. Published
  4. Projected expiry
  5. Today

21 claims: 2 independent, 19 dependent

  1. 1
    Method for decoding, by an electronic circuit (14), a two-phase asynchronous frame carried by an encoded data signal and comprising L useful bits followed by at least one stop bit, characterized in that it includes a step (22) of automatic detection of the length L in useful bits of the frame so as to decode the entire frame, the length L of the frame being variable from one frame to another and such that:L min ≤ L ≤ L max , With l max = (L min + k), where k is a predetermined integer greater than or equal to 1.
  2. 5
    Method according to any one of claims 3 and 4, characterized in that , when the test mode is selected, the electronic circuit treats as a test frame at least one frame received after the frame whose length L has been detected.
  3. 6
    Process according to any one of Claims 1 to 5, characterized in that the step of automatically detecting the length L of the frame itself comprises the following successive steps:a) detection of a possible transition in a portion of the signal carrying the rank bit (L min + p), with p an integer variable which is initialized to 1;b) if no transition is detected, the rank bit (L min + p) is estimated as a stop bit and the frame is treated as a frame of (L min + (p- 1)) useful bits;c) if a transition is detected, the rank bit (L min + p) is estimated as a useful bit and: c-1) if (L min + p) = L max , the frame is treated as a frame of (L min + p) useful bits;c-2) if (L min + p) <L max , we return to step a) having previously incremented p by one to process a portion of the signal carrying the next bit.
  4. 11
    Process according to any one of Claims 8 to 10, characterized in that said predetermined threshold is equal to half of said determined maximum value of the counter, so that said time window covers approximately 50% of a binary time.
  5. 12
    Method according to any one of Claims 6 to 11, said frame comprising L useful bits followed by a first and a second stop bit, characterized in that the step of automatically detecting the length of said frame further comprises a first step of verifying the decision, taken during step b), to treat the frame as a frame of (L min + (p-1)) useful bits, said first verification step consisting in verifying that the rank bit (L min + (p + 1)) is a second stop bit.
  6. 13
    Process according to any one of Claims 6 to 12, characterized in that the step of automatically detecting the length of the frame further comprises a second step of verifying the decision, taken during step c-1), to treat the frame as a frame of (L min + p) useful bits, said second verification step consisting in verifying that the rank bit (L min + (p + 1)) is a stop bit.
  7. 14
    Process according to any one of Claims 6 to 13, characterized in that :L max = (L min + 1), and in that the step of processing the bit of rank L max itself comprises the following successive stages: a ') detection of a possible transition in a portion of the signal carrying the bit of rank L max ;b ') if no transition is detected, the bit of rank L max is estimated as a stop bit and the frame is treated as an L frame min useful bits;c ') if a transition is detected, the bit of rank L max is estimated as a useful bit and the frame is treated as an L frame max useful bits.
  8. 15
    Process according to any one of Claims 1 to 14, characterized in that said data signal is encoded according to a Manchester encoding.
  9. 16
    Computer program product, characterized in that it includes program code instructions for executing the steps of the method according to any one of claims 1 to 15, when said program is executed on a computer.
  10. 17
    Storage means, optionally totally or partially removable, readable by a computer, storing a set of instructions executable by said computer for implementing the method according to any one of claims 1 to 15.
  11. 18
    Electronic circuit for decoding a two-phase asynchronous frame carried by an encoded data signal and comprising L useful bits followed by at least one stop bit, characterized in that it includes means for automatically detecting the length L in useful bits of the frame so as to decode the entire frame, the length L of the frame being variable from one frame to another and such that:L min ≤ L ≤ L max , With l max = (L min + k), where k is a predetermined integer greater than or equal to 1.
  12. 20
    Device for controlling at least one piece of equipment, characterized in that it comprises an electronic decoding circuit according to any one of claims 18 and 19.