Update the LED documentation #489
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
LED States
A variety of LEDs are visible on the LoRaSerial radio to give the user feedback about the state of the system.
LEDs on the LoRaSerial
First lets define the LEDs on the LoRaSerial device. The following diagram shows the various LEDs:
The red LED is the power indicator. G1 through G4 in the diagram above are all green LEDs.
The LED behavior may be changed by using the AT-SelectLedUse command and setting the value to one of the mode numbers described in the sections below. As an example, if the radio is in multipoint mode the following serial data sequence causes the LEDs to display more information about the radio behavior.
LED Mode 0 (LEDS_MULTIPOINT)
When the radio is in multipoint mode, selecting this mode for the LEDs provides additional insight into the radio's behavior.
LED Mode 1 (Default: LEDS_P2P)
When the radio is in point-to-point mode, selecting this mode for the LEDs provides additional insight into the radio's behavior.
LED Mode 2 (LEDS_VC)
When the radio is in virtual-circuit mode, selecting this mode for the LEDs provides additional insight into the radio's behavior.
LED Mode 3 (LEDS_RADIO_USE)
This mode is useful for users who want additional LED feedback about the RF link.
LED Mode 4 (Default: LEDS_RSSI)
In the Received Signal Strength Indicator (RSSI) mode uses the green LEDs to indicate ranges of signal strengths:
LED Mode 5 (LEDS_BUTTON_PRESS)
The button press mode is an internal mode used to indicate the state of the button press. The green LEDs are counting seconds. The following blue and yellow LED behavior occurs:
Press time < 4 seconds: Blue LED is off and if in command mode or not performing training the yellow LED is off. Otherewise if not in command mode and performing training the yellow LED is flashing and upon button release the radio exits training.
4 seconds <= button press time < 8 seconds: Yellow LED is off and if in command mode or not performing training the blue LED is off. Otherewise if not in command mode and performing training the blue LED is flashing and upon button release the radio enters training in client mode.
8 seconds <= button press time < 16 seconds: If in command mode or not performing training both LEDs are off. Otherewise if not in command mode and performing training the both LEDs are flashing and upon button release the radio enters training in server mode.
16 seconds <= button press time: Reset pattern caused by a system reset
LED Mode 7 (LEDS_CYLON)
The cylon eye pattern in green is typically used to indicate radio training. One green LED is lit at a time and the lit LED moves from side to side.
LED Mode 8 (LEDS_ALL_OFF)
This is a testing pattern with all LEDs off.
LED Mode 9 (LEDS_BLUE_ON)
This is a testing pattern with only the blue LED on.
LED Mode 10 (LEDS_YELLOW_ON)
This is a testing pattern with only the yellow LED on.
LED Mode 11 (LEDS_GREEN_1_ON)
This is a testing pattern with only the G1 LED on.
LED Mode 12 (LEDS_GREEN_2_ON)
This is a testing pattern with only the G2 LED on.
LED Mode 13 (LEDS_GREEN_3_ON)
This is a testing pattern with only the G3 LED on.
LED Mode 14 (LEDS_GREEN_4_ON)
This is a testing pattern with only the G4 LED on.
LED Mode 15 (LEDS_ALL_OFF)
This is a testing pattern with all LEDs on.
Other LED modes
Undefined LED modes display the RSSI pattern (mode 4).