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@4:98cdccfb17d6, 2019-09-17 (annotated)
- Committer:
- masterkookus
- Date:
- Tue Sep 17 17:03:40 2019 +0000
- Revision:
- 4:98cdccfb17d6
- Parent:
- 3:ac1f2af8bd0f
- Child:
- 5:c656fd08007b
Basic Functionality
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 | 4:98cdccfb17d6 | 22 | }; |
masterkookus | 4:98cdccfb17d6 | 23 | |
masterkookus | 4:98cdccfb17d6 | 24 | #endif |