2.5.2 Serial USB Interface
The Wi-Fi Access Point credentials can be reconfigured through a Serial Command Line Interface (CLI) on the AVR-IoT WG Development Boards. This interface may also be used to provide application diagnostic information. To access this interface, use any preferred serial terminal application (Tera Term, CoolTerm, and PuTTy) and open the serial port labeled Curiosity Virtual COM port, with the following settings:
Baud rate | Data | Parity bit | Stop bit | Flow control | Local echo | Transmit protocol |
---|---|---|---|---|---|---|
9600 | 8 bits | None | 1 bit | None | ON | CR+LF (Carriage Return + Line Feed) |
Command | Arguments | Description |
---|---|---|
reset | — | Reset the settings on the device |
device | — | Print the unique device ID of the on-board ECC device |
key | — | Print the public key of the board |
reconnect | — | Re-establish connection to the Cloud |
version | — | Print the version of the AVR-IoT firmware library |
cli_version | — | Print the command line interface firmware version of the AVR-IoT library |
wifi | <Network SSID>, <Password>, <Security Option*> | Enter the Wi-Fi network authentication details |
debug
| <Debug Options**> | Print debug messages to see status of board operation |
- Open – Password and Security option parameters are not required.
- WPA/WPA2 – Security Option Parameter not required.
- WEP – Network Name, Password, and
Security Option (3) Parameter are required when connecting to a WEP network. For
example, ‘
wifi MCHP.IOT,microchip,3
’.
**- The debug option won't work unless the user selects Enable debug
messages option in the AVR-IoT Sensor Node Library. Configured Debug Severity
level is used to determine messages displayed using
debug_printer()
:
0. Normal – At this level, only standard operating behavior or data are displayed.
1. Warning – At this level, information related to nuance in operation or configuration is displayed.
2. Notice – At this level, alerts or context-specific information is displayed.
3. Info – At this level, operation or variable information relevant to the end application is displayed.
4. Debug – At this level, error messages, state, or run-time variations during problem solving or development process are displayed.