The communication means of master-slave equipment, apparatus and system in Development in Vehicle On-Board Diagnostics equipment

The communication means of master-slave equipment, apparatus and system in Development in Vehicle On-Board Diagnostics equipment

  • CN 103,607,258 B
  • Filed: 11/18/2013
  • Issued: 07/06/2018
  • Est. Priority Date: 11/18/2013
  • Status: Active Grant
First Claim
Patent Images

1. the communication means of master-slave equipment in a kind of Development in Vehicle On-Board Diagnostics equipment, which is characterized in that include the following steps:

  • First equipment receives the encapsulation of data that the second equipment is sent, and in first equipment and the second equipment, one is main equipment,Another is slave device;

    First equipment verifies the frame head of received encapsulation of data, and whether the frame head of the received encapsulation of data of judgementCorrectly;

    When the frame head for judging received encapsulation of data is correct, judge whether the encapsulation of data has received, when encapsulation of data notWhen having received, encapsulation of data is continued to, until the encapsulation of data has received, when encapsulation of data has received, to being receivedTo encapsulation of data verified, and after verifying successfully, return to corresponding response message;

    When the frame head mistake for judging received encapsulation of data, stop receiving data;

    Wherein, the encapsulation of data is PACKET_DATA structures, which includes frame head, frame data and frame check;

    InstituteState that frame head includes frame signature, frame size, frame number and frame head verify and;

    The frame head verification and ulAdd=ulSign+ulSize+ulSerial;

    Wherein ulSign signs for frame;

    UlSize is frame total size, is that frame check and frame head size and data are longThe summation of degree;

    UlSerial is frame number;

    First equipment verifies the frame head of received encapsulation of data, judges the frame head of received encapsulation of dataWhether correctly include:

    First equipment judges whether the frame head of received encapsulation of data is effective according to frame signature;

    When the frame head for judging received encapsulation of data is effective, judge whether the length of received encapsulation of data is more than frame headLength;

    When the length of the encapsulation of data received is more than frame head length, judge frame head verification with whether correctly;

    When frame head verifies and is correct, judge that the frame head of received encapsulation of data is correct;

    When the frame head for judging received encapsulation of data is not imitated or work as the length of received encapsulation of data and be less than or waitWhen frame head length or when frame head verifies and is incorrect, the frame head mistake of received encapsulation of data is judged.

View all claims
    ×
    ×

    Thank you for your feedback

    ×
    ×