Multi-protocol communication frame rapid discrimination method applied to electric energy meter
The invention relates to a multi-protocol communication frame rapid discrimination method applied to an electric energy meter, and the method is characterized in that the method comprises the steps: S1, receiving and judging whether a start byte is matched or not, executing S2 if the start byte is m...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to a multi-protocol communication frame rapid discrimination method applied to an electric energy meter, and the method is characterized in that the method comprises the steps: S1, receiving and judging whether a start byte is matched or not, executing S2 if the start byte is matched, and continuing to execute S1 if the start byte is not matched; S2, receiving and judging whether the protocol category bytes are matched or not, if yes, executing S3, and if not, continuing to execute S1; S3, receiving and judging the legality of the length field, if the length field is legal, calculating the protocol data length and executing the step S4, and otherwise, continuing to execute the step S1; S4, receiving the protocol data and judging whether the receiving is overtime or not, if so, executing the step S1, and if not, executing the step S5; and S5, transmitting the received protocol data, and analyzing the received protocol data by adopting a corresponding protocol processing flow. The method g |
---|