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
Diff: mydevices.h
- Revision:
- 7:be13a9037d41
- Parent:
- 4:98cdccfb17d6
- Child:
- 8:fa2a2c3a16ce
--- a/mydevices.h Thu Sep 19 18:14:31 2019 +0000 +++ b/mydevices.h Mon Sep 23 12:29:52 2019 +0000 @@ -1,68 +1,19 @@ -#define numservers 1 -#define numclients 1 -#define numserial 1 - -/*Comment out to disable http*/ -#define httpserver - -/*Server 1 Information*/ -#define s1tcpport 23 -#define s1timeout 30 -#define s1sport true - -/*Server 2 Information*/ -#define s2tcpport 0 -#define s2timeout 0 -#define s2sport false - -/*Server 3 Information*/ -#define s3tcpport 0 -#define s3timeout 0 -#define s3sport false +/*Client Information*/ +#define setclientport 23 +#define setclientaddress "10.150.1.242" +#define setpolltimeout 200 +#define setpollinterval 500 +#define setpollenabled true -/*Server 4 Information*/ -#define s4tcpport 0 -#define s4timeout 0 -#define s4sport false - -/*Client 1 Information*/ -#define c1tcpport 23000 -#define claddress "10.150.1.245" -#define c1polltimeout 200 -#define c1pollinterval 500 - -/*Client 2 Information*/ -#define c2tcpport 0 -#define c2address "0.0.0.0" -#define c2polltimeout 0 -#define c2pollinterval 0 - -/*Client 3 Information*/ -#define c3tcpport 0 -#define c3address "0.0.0.0" -#define c3polltimeout 0 -#define c3pollinterval 0 - -/*Client 4 Information*/ -#define c4tcpport 0 -#define c4address "0.0.0.0" -#define c4polltimeout 0 -#define c4pollinterval 0 +#define setserverport 23 +#define setseveraddress "10.150.1.241" +#define setsevermask "255.255.255.0" +#define setsevergateway "10.150.1.245" +#define setservertimeout 50 /*Serial Port Information*/ #define sport0rx PD_6 #define sport0tx PD_5 #define sport0buff 256 -#define sport0baud 9600 -#define sport1rx -#define sport1tx -#define sport0buff 256 -#define sport0baud 9600 -#define sport2rx -#define sport2tx -#define sport0buff 256 -#define sport0baud 9600 -#define sport3rx -#define sport3tx -#define sport0buff 256 +#define sport0mult 4 #define sport0baud 9600 \ No newline at end of file