
AMW004 Evaluation
Using WiConnect, Section 3
ARG-MW004E-105R
•
AMW004 Evaluation Guide
Page | 13
Page | 13
©2014 ACKme Networks. http://ack.me
February 27, 2015
February 27, 2015
Success
> reboot
[Disassociated]
Rebooting
wiconnect-1.1.0.5, Built:2014-05-07 00:07:31 for AMW004.3, Board:AMW004-E03.1
[Ready]
> get wlan.ssid
ssid_WILL_be_saved
>
Note!
WiConnect configures some services (such as GPIO initialization) only after reboot. It may be
necessary to save and reboot the module before the new value of some variables takes effect.
3.11
Command vs. Stream Mode
The WiConnect serial interface may be used in either Command Mode or Stream Mode. A brief description of each of
these modes is provided in the following text. For detailed information, please refer to the
WiConnect Reference
Guide
.
Command Mode
Command mode provides an asynchronous command interface that a host may use to send and receive control and
data information. Command mode is typically used by a host to configure WiConnect, however it may also be used
by simple hosts that need ultimate master/slave control over information sent to, and received from, the module. All
preceding examples demonstrate usage of WiConnect in command mode.
There are two ways to interact with WiConnect in Command mode. When operating in human friendly command
mode, WiConnect provides verbose asynchronous responses that are easy for humans to read. In machine friendly
command mode, verbose prints and the command prompt are disabled and a well-defined response header is
returned after each command.
Configuring Command Mode
Command mode can be configured using the convenience variable
system.cmd.mode
Command
Description
set system.cmd.mode human
Enable human friendly command mode
set system.cmd.mode machine
Enable machine friendly command mode
Setting
system.cmd.mode
executes a macro that sets the value of the four variables used to switch between
human and command mode. These variables, together with the human and machine mode setting, are listed in the
following table.
Command
Human / Machine Description
set system.print_level
all
/
0
Set debug & informational print level
set system.cmd.header_enabled
0
/
1
Disable/enable a response header
set system.cmd.prompt_enabled
1
/
0
Turn on/off the user prompt
set system.cmd.echo
on
/
off
Turn on/off character echo. In human
mode, lets you see what you're typing