You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/training.md
+8-61Lines changed: 8 additions & 61 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,27 +19,27 @@ A ball-point pen is best for pressing the training button. *Be gentle.* The trai
19
19
20
20
## Training as Client
21
21
22
-
Press and hold the training button for 2 seconds. When the cylon pattern appears, release the button. The device is now ready to receive settings from a Server. Once settings are received from a server, the device saves the parameters to NVM and then reboots with the new settings.
22
+
Press and hold the training button until the yellow LED starts to blink then release the button. The cylon pattern appears on the green LEDs. The device is now ready to receive settings from a Server. Once settings are received from a server, the device saves the parameters to NVM and then reboots with the new settings.
23
23
24
-
If training needs to be canceled, press and hold the training button for 2 seconds to exit training mode. No settings will be modified. The radio will return to normal operation.
24
+
If training needs to be canceled, press and release the training button before the yellow LED starts to blink to exit training mode. No settings will be modified. The radio will return to normal operation.
25
25
26
26
## Training as Server
27
27
28
-
Press and hold the training button for 5 seconds. When the yellow LED flashes three times you know you've held the button long enough. In this mode, the radio will respond to any training client with its settings. The radio will not exit this mode unless it is powered cycled or the **ATZ** reset command is issued.
28
+
Press and hold the training button until the blue LED starts to blink then release the button. The cylon pattern pattern appears on the green LEDs. In this mode, the radio will respond to any training client with its settings. The radio will not exit this mode unless it is powered cycled or the **ATZ** reset command is issued.
29
29
30
30
This mode (Training as Server) is convenient when multiple clients need to be paired to a server. For example, when a device is configured to be a Server in Multipoint mode, putting it in *Training as Server* mode will allow a user to put another radio into *Training as Client*. The radios will communicate and the Server radio will configure the client radio. Any number of client radios can be quickly and conveniently configured this way.
31
31
32
32
## Simple Point-To-Point Training
33
33
34
-
If a radio is set for P2P mode, entering training mode as a server will generate a new random NetID and AES key. In other words, holding the Train button for 5 seconds on one radio will cause that radio to generate new, unique/secure P2P settings. On the other radio, hold the Train button for 2 seconds. The radios will be trained to the new AES key and NetID, and the radios will reset, then immediately link up. This is helpful in the field if you need to put a pair of radios onto a different network and encryption key from other radios that may be nearby.
34
+
If a radio is set for P2P mode, entering training mode as a server will generate a new random NetID and AES key. In other words, pushing the Train button and releasing it after the blue LED flashes on one radio will cause that radio to generate new, unique/secure P2P settings. On the other radio, press the Train button and release it after the yellow LED flashes. The radios will be trained to the new AES key and NetID, and the radios will reset, then immediately link up. This is helpful in the field if you need to put a pair of radios onto a different network and encryption key from other radios that may be nearby.
35
35
36
36
## Factory Reset
37
37
38
-
Press and hold the training button for 15 seconds to enter Factory Reset mode. You know you've held the Training button long enough when the blue LED flashes 3 times. Releasing the button will then return LoRaSerial to factory settings and erase NVM. Note: You can also return a radio to factory defaults using the **ATF** command.
38
+
Press and hold the training button for 15 seconds to Factory Reset the radio. Release the button when all the LEDs blink quickly three times during the reset. Just before reset the NVM is erased and LoRaSerial returns to factory settings. Note: You can also return a radio to factory defaults using the **ATF** command.
39
39
40
40
## Temporary Training Server
41
41
42
-
It is possible to use temporary training servers for multipoint and virtual circuit modes. The only difference between a temporary server and a regular server is that the parameters are not saved to the non-volatile storage using the ATW command before exiting command mode.
42
+
It is possible to use temporary training servers for multipoint mode. The only difference between a temporary server and a regular server is that the parameters are not saved to the non-volatile storage using the ATW command before exiting command mode.
43
43
44
44
## Example: Training a Batch of Radios
45
45
@@ -66,7 +66,7 @@ Clients can enter training via the **ATT** command:
66
66
67
67
Alternatively, the Client can enter training via the button:
68
68
69
-
*Hold the training button for 2 seconds
69
+
*Press the training button and release it when the yellow LED
70
70
* The client will now obtain settings from the Server
71
71
* Settings saved to NVM
72
72
* Radio reboots
@@ -83,59 +83,6 @@ A command script is simply a text file containing the AT commands the user would
83
83
84
84
Copying and pasting command scripts into a terminal program is an efficient way of configuring a radio.
85
85
86
-
## Virtual Circuit Training
87
-
88
-
It is recommended to use a command script to initialize the server radio when performing virtual-circuit training. The client radios can either use command mode or the training button to enter training mode.
89
-
90
-
Temporary Server (Doesn't save settings):
91
-
92
-
* If not already at factory reset, hold the training button down for 15 seconds
93
-
* Connect to the LoRaSerial radio via USB or the serial port
94
-
* Enter command mode with +++
95
-
* Start from factory defaults by issuing the ATF command
96
-
* Issue the following commands:
97
-
* AT-OperatingMode=2
98
-
* AT-Server=1
99
-
* AT-SelectLedUse=2
100
-
* ATG
101
-
* Set any of the other parameters
102
-
* Enter training mode with ATT command
103
-
* Wait for clients to be trained
104
-
* Exit command mode with ATO command or reboot with ATZ command
105
-
106
-
Server (Saves settings):
107
-
108
-
* If not already at factory reset, hold the training button down for 15 seconds
109
-
* Connect to the LoRaSerial radio via USB or the serial port
110
-
* Enter command mode with +++
111
-
* Start from factory defaults by issuing the ATF command
112
-
* Issue the following commands:
113
-
* AT-OperatingMode=2
114
-
* AT-Server=1
115
-
* AT-SelectLedUse=2
116
-
* ATG
117
-
* Set any of the other parameters
118
-
* Enter training mode with ATT command
119
-
* Wait for clients to be trained
120
-
* Save parameters with ATW command
121
-
* Always reboot with ATZ command
122
-
123
-
Client:
124
-
125
-
* 2 second training button press
126
-
* Receives training parameters from server
127
-
* Saves new parameters
128
-
* Reboots
129
-
130
-
Client:
131
-
132
-
* Connect to the LoRaSerial radio via USB or the serial port
133
-
* Enter command mode using +++
134
-
* Enter training using the ATT command
135
-
* Receives training parameters from server
136
-
* Saves new parameters
137
-
* Reboots
138
-
139
86
## Training Parameters
140
87
141
88
The training parameters for radio communication fall into two groups:
@@ -149,4 +96,4 @@ Other optional sets of training parameters may be communicated between the radio
149
96
* Debug parameters
150
97
* Trigger parameters
151
98
152
-
For more information about the various radio settings, please see [AT Commands](http://docs.sparkfun.com/SparkFun_LoRaSerial/at_commands/).
99
+
For more information about the various radio settings, please see [AT Commands](http://docs.sparkfun.com/SparkFun_LoRaSerial/at_commands/).
0 commit comments