Skip to content

Commit 8d07779

Browse files
committed
VCT: Remove sprinkler server stuff
1 parent a008d7e commit 8d07779

File tree

1 file changed

+7
-36
lines changed

1 file changed

+7
-36
lines changed

Firmware/Tools/VcServerTest.c

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
#define DISPLAY_UNKNOWN_COMMANDS 0
4040
#define DISPLAY_VC_STATE 0
4141
#define DUMP_RADIO_TO_PC 0
42-
#define SEND_ATC_COMMAND 1
4342

4443
#define QUEUE_T uint32_t
4544
#define QUEUE_T_BITS ((int)(sizeof(QUEUE_T) * 8))
@@ -93,56 +92,29 @@ typedef enum
9392
CMD_ATI11 = 0, //Get myVC
9493
CMD_ATB, //Break all VC links
9594
CMD_ATA, //Get VC status
95+
96+
//Connect to the remote radio
9697
CMD_AT_CMDVC, //Select target VC
9798
CMD_ATC, //Start the 3-way handshake
9899
CMD_WAIT_CONNECTED, //Wait until the client is connected
100+
101+
//Get remote radio connection status, type and ID
99102
CMD_AT_CMDVC_2, //Select target VC
100103
CMD_ATI12, //Get the VC state
101-
CMD_GET_SERVER_MODEL, //Get the model name
102-
CMD_GET_CLIENT_MODEL, //Get the model name
103104
CMD_ATI, //Get the device type
104105
CMD_ATI8, //Get the radio's unique ID
105-
CMD_AT_DISABLE_CONTROLLER, //Disable the sprinkler controller
106-
CMD_AT_DAY_OF_WEEK, //Set the day of week
107-
CMD_AT_TIME_OF_DAY, //Set the time of day
108-
CMD_ATI89, //Display the date and time
109-
110-
//Select the solenoids for each of the zone
111-
CMD_SELECT_ZONE, //Select the zone number
112-
CMD_SELECT_SOLENOID, //Select the solenoid for the zone
113-
COMPLETE_ZONE_CONFIGURATION,//Verify that all of the zones are configured
114-
115-
//Set the start times
116-
CMD_SET_DAY_OF_WEEK, //Set the day of the week
117-
CMD_SET_START_TIME, //Set the start time
118-
CMD_SET_ALL_START_TIMES, //Verify that all of the start times are set
119-
120-
//Set the zone durations
121-
CMD_SET_DAY_OF_WEEK_2, //Set the day of the week
122-
CMD_SELECT_ZONE_2, //Select the zone number
123-
CMD_SET_ZONE_DURATION, //Set the zone on duration
124-
CMD_SET_ALL_DURATIONS, //Verify that all of the durations are set
125-
126-
/*
127-
#define SET_MANUAL_ON "AT-ZoneManualOn="
128-
#define SET_ZONE_DURATION "AT-ZoneDuration="
129-
*/
130106

131107
//Last in the list
132108
CMD_LIST_SIZE
133109
} COMMANDS;
134110

135111
const char * const commandName[] =
136112
{
137-
"ATI11", "ATIB", "ATA", "AT-CMDVC", "ATC", "WAIT_CONNECT", "AT-CMDVC_2", "ATI12",
138-
"ATI93", "ATI81", "ATI", "ATI8", "AT-EnableController=0",
139-
"AT-DayOfWeek", "AT-TimeOfDay", "ATI89",
140-
"AT-CommandZone", "AT-LatchingSolenoid", "COMPLETE_ZONE_CONFIGURATION",
141-
"AT-CommandDay", "AT-StartTime", "CMD_SET_ALL_START_TIMES",
142-
"AT-CommandDay-2", "AT-CommandZone-2", "AT-ZoneDuration", "CMD_SET_ALL_DURATIONS",
113+
"ATI11", "ATIB", "ATA", "AT-CMDVC", "ATC",
114+
"WAIT_CONNECT",
115+
"AT-CMDVC_2", "ATI12", "ATI", "ATI8",
143116
};
144117

145-
146118
typedef struct _VIRTUAL_CIRCUIT
147119
{
148120
int vcState;
@@ -470,7 +442,6 @@ int hostToStdout(VC_SERIAL_MESSAGE_HEADER * header, uint8_t * data, uint8_t byte
470442

471443
void radioToPcLinkStatus(VC_SERIAL_MESSAGE_HEADER * header, uint8_t * data, uint8_t length)
472444
{
473-
int durationBase;
474445
int newState;
475446
int previousState;
476447
int srcVc;

0 commit comments

Comments
 (0)