
This demonstrates the process of communicating through ethernet to a SEL-2431 Voltage Regulator Control Panel using SEL Fast Message. Basic device commands and data cna be requested and displayed over a connected serial port. This is a basic version and full testing and documentation has yet to be completed.
Dependencies: BufferedSerial analogAverager voltageRegulator netStatReg analogMinMax CounterMinMax
selMsg.h@19:cae910c9c06a, 2020-01-23 (annotated)
- Committer:
- masterkookus
- Date:
- Thu Jan 23 12:49:02 2020 +0000
- Revision:
- 19:cae910c9c06a
- Parent:
- 17:a69f6e51b3cb
Committed library URL publish changes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
masterkookus | 8:fa2a2c3a16ce | 1 | #ifndef SELMSG_H |
masterkookus | 16:018bed9abe89 | 2 | #define SELMSG_H |
masterkookus | 16:018bed9abe89 | 3 | |
masterkookus | 10:9da863a6da3e | 4 | const char fmCmd[5][2] = { |
masterkookus | 16:018bed9abe89 | 5 | {0xA5,0xC0}, |
masterkookus | 16:018bed9abe89 | 6 | {0xA5,0xC1}, |
masterkookus | 16:018bed9abe89 | 7 | {0xA5,0xD1}, |
masterkookus | 16:018bed9abe89 | 8 | {0xA5,0xC2}, |
masterkookus | 16:018bed9abe89 | 9 | {0xA5,0xD2} |
masterkookus | 8:fa2a2c3a16ce | 10 | }; |
masterkookus | 8:fa2a2c3a16ce | 11 | |
masterkookus | 9:d6e7981dfc89 | 12 | const char serCmd[5][7] = { |
masterkookus | 16:018bed9abe89 | 13 | {'M','E','T',' ','M','\r','\n'}, |
masterkookus | 16:018bed9abe89 | 14 | {'T','A','P','\r','\n',' ',' '}, |
masterkookus | 16:018bed9abe89 | 15 | {'A','C','C','\r','\n',' ',' '}, |
masterkookus | 16:018bed9abe89 | 16 | {'O','T','T','E','R','\r','\n'}, |
masterkookus | 16:018bed9abe89 | 17 | {'\r','\n',' ',' ',' ',' ',' '} |
masterkookus | 9:d6e7981dfc89 | 18 | }; |
masterkookus | 9:d6e7981dfc89 | 19 | |
masterkookus | 12:4bb088c27838 | 20 | const char serCmdSeq[2][5] = { |
masterkookus | 16:018bed9abe89 | 21 | {0x02,0x03,0x04,0x04,0x00}, |
masterkookus | 16:018bed9abe89 | 22 | {0x02,0x03,0x04,0x04,0x01} |
masterkookus | 12:4bb088c27838 | 23 | }; |
masterkookus | 12:4bb088c27838 | 24 | |
masterkookus | 12:4bb088c27838 | 25 | const char serCmdlen[2][5] = { |
masterkookus | 16:018bed9abe89 | 26 | {0x05,0x07,0x04,0x04,0x07}, |
masterkookus | 16:018bed9abe89 | 27 | {0x05,0x07,0x04,0x04,0x05} |
masterkookus | 9:d6e7981dfc89 | 28 | }; |
masterkookus | 9:d6e7981dfc89 | 29 | |
masterkookus | 8:fa2a2c3a16ce | 30 | #endif |