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
netdevices.h@5:c656fd08007b, 2019-09-19 (annotated)
- Committer:
- masterkookus
- Date:
- Thu Sep 19 16:48:15 2019 +0000
- Revision:
- 5:c656fd08007b
- Parent:
- 4:98cdccfb17d6
- Child:
- 6:9f97716eae76
Basic Functionality and error checking;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
masterkookus | 4:98cdccfb17d6 | 1 | #ifndef MYNETDEVICES_H |
masterkookus | 4:98cdccfb17d6 | 2 | #define MYNETDEVICES_H |
masterkookus | 4:98cdccfb17d6 | 3 | |
masterkookus | 4:98cdccfb17d6 | 4 | #include "TCPServer.h" |
masterkookus | 4:98cdccfb17d6 | 5 | #include "TCPSocket.h" |
masterkookus | 4:98cdccfb17d6 | 6 | |
masterkookus | 4:98cdccfb17d6 | 7 | void confignetdevices(EthernetInterface *eth); |
masterkookus | 3:ac1f2af8bd0f | 8 | |
masterkookus | 3:ac1f2af8bd0f | 9 | struct netsys |
masterkookus | 3:ac1f2af8bd0f | 10 | { |
masterkookus | 3:ac1f2af8bd0f | 11 | TCPServer srv; |
masterkookus | 3:ac1f2af8bd0f | 12 | TCPSocket clt_sock; |
masterkookus | 3:ac1f2af8bd0f | 13 | SocketAddress clt_addr; |
masterkookus | 4:98cdccfb17d6 | 14 | EthernetInterface *eth; |
masterkookus | 4:98cdccfb17d6 | 15 | unsigned int tcpport; |
masterkookus | 3:ac1f2af8bd0f | 16 | bool isactive; |
masterkookus | 3:ac1f2af8bd0f | 17 | bool closeconnection; |
masterkookus | 4:98cdccfb17d6 | 18 | unsigned int aliveTime; |
masterkookus | 4:98cdccfb17d6 | 19 | unsigned int pollTimeout; |
masterkookus | 4:98cdccfb17d6 | 20 | unsigned int pollTime; |
masterkookus | 4:98cdccfb17d6 | 21 | unsigned int pollInterval; |
masterkookus | 5:c656fd08007b | 22 | unsigned int pollState; |
masterkookus | 5:c656fd08007b | 23 | bool pollRetry; |
masterkookus | 5:c656fd08007b | 24 | bool sendRetry; |
masterkookus | 5:c656fd08007b | 25 | bool connectRetry; |
masterkookus | 5:c656fd08007b | 26 | unsigned int pollRetryCount; |
masterkookus | 5:c656fd08007b | 27 | unsigned int attachFailCount; |
masterkookus | 5:c656fd08007b | 28 | unsigned int sendRetryCount; |
masterkookus | 5:c656fd08007b | 29 | unsigned int messageFailCount; |
masterkookus | 5:c656fd08007b | 30 | unsigned int txMessageCount; |
masterkookus | 5:c656fd08007b | 31 | unsigned int rxMessageCount; |
masterkookus | 4:98cdccfb17d6 | 32 | }; |
masterkookus | 4:98cdccfb17d6 | 33 | |
masterkookus | 4:98cdccfb17d6 | 34 | #endif |