Sierra Wireless FX30S User Guide
Rev 2 Mar.18
42
41110485
Linux Shell Commands
You can communicate with the FX30S using Legato shell commands. To connect
to the USB port on the Linux shell:
1.
Connect the USB port on the FX30S to the computer.
2.
Connect an SSH client [email protected]
The first time you connect, you are prompted to change your Linux root pass-
word.
For more information, refer to the Legato shell documentation on
Useful Linux commands
Useful Linux commands include:
•
Get device information:
cm info
•
Get SIM information:
cm sim
•
Get APN status:
cm data
•
Get modem status:
cm radio
•
Switch to AT mode:
microcom -E /dev/ttyAT
<CTRL +x> to escape
•
Read GPIO Value:
cat /sys/class/gpio/gpioxx/value
•
Set GPIO:
echo 1 > /sys/class/gpio/gpioxx/value
•
Clear GPIO:
echo 0 > /sys/class/gpio/gpioxx/value
•
Establish a data connection:
cm data connect
•
Check Legato application status:
app status
For a complete list of Linux commands, see:
http://legato.io/legato-docs/latest/toolsTarget_cm.html
Linux Startup
The supported method of making changes to the Linux startup is to create a
Legato application. Changes or additions to the Linux scripts in
/etc/rcS.d
are
not supported by Sierra Wireless.
Legato Application Framework
Before building custom applications for the FX30S, you need to become familiar
with Legato. The best place to start is
. Click the Build Apps icon. This
section contains:
•
Concepts
·
Overview—a high-level summary of Legato’s approach to application
development
·
Develop Apps—the essentials for creating an app from scratch
·
Definition Files—reusable external interfaces and internal content
·
Sample Apps—sample apps for commonly-needed functions
•
Tools—Information on Target, Host, and Build tools
•
Security— For security reasons:
·
You are prompted to change the Linux root password the first time you
attempt to log in to the Linux console.