C

cmd.ino
Go to the documentation of this file.
1
2 void drawLine(void)
3 {
4 int i;
5 for (i = 0 ; i < 3 ; i++)
6 Serial.print(F("----------"));
7 Serial.println("");
8 }
9
10 /**----------------------------------------------------------------------------------*/
11 void dmpProgID()
12 {
13 int i;
14 delay(1000);
15 for (i = 0 ; i < 3 ; i++)
16 Serial.println(" ");
17 Serial.print(F("APC220 radio reprogramming - version: "));
18 Serial.print(vrs);
19 Serial.print(F(" - compiled "));
20 Serial.println(__DATE__);
21 Serial.println(F("(C) Jens Dalsgaard Nielsen - http://es.aau.dk/staff/jdn - AAU (GPL 2)"));
22 drawLine();
23 }
24
25 void setupHlp()
26 {
27 Serial.println(F(" FFFFFF: frequency: 434000 (434 MHz default ) range approx 418000-4/5000 "));
28 Serial.println(F(" R: Rf data rate - 1/2/3/4 equals 2400(1km)/4800/9600/19200bps"));
29 Serial.println(F(" P: Radio output power - 0 .. 9 9 equals 13dBm(20mW)."));
30 Serial.println(F(" B: UART baudrate - 0/1/2/3/4/5/6 equals 1200/2400/4800/9600/19200/38400/57600bps"));
31 Serial.println(F(" C: Byte Chek Parity - 0/1/2 equals NoCheck(8N1)/EvenParity(8E1)/OddParity(8O1)"));
32 Serial.println(F(""));
33 Serial.println(F("Write example: w 434000 3 9 3 0 is..."));
34 Serial.println(F(" 434,000 MHz 9600 baud in air, 20mW, 9600baud on UART, No Parity(8N1)"));
35 }
36 /**----------------------------------------------------------------------------------*/
37 void menu(void)
38 {
39 Serial.println(" ");
40 Serial.println(F("COMMANDS:"));
41 Serial.println(F(" c : Clear Screen"));
42 Serial.println(F(" r : Read apc220 radio config"));
43 Serial.println(F(" R : reset program"));
44 Serial.println(F(" P : draw radio"));
45 Serial.println(F(" b : start beacon mode"));
46
47 Serial.println(F(" p xx : Fast program - program channel xx relative to config try 'v' for help "));
48 Serial.println(F(" w FFFFFF R P B C - number of letters indicates precise number of digits" ));
49 setupHlp();
50 Serial.println(F("\nENTER COMMAND: "));
51 }
52
53
54
setupHlp
void setupHlp()
Definition: cmd.ino:25
vrs
const int vrs
Definition: apc220setup.ino:73
drawLine
void drawLine(void)
Definition: cmd.ino:2
menu
void menu(void)
Definition: cmd.ino:37
dmpProgID
void dmpProgID()
Definition: cmd.ino:11