
UC-8100-LX Software
Advanced Configurations on Peripherals
3-11
Dial-Up Connetions
APN is set manually in /etc/qmi-network.conf. Consult your carrier for the correct APN name and insert it into
the configuration file like below: (APN=internet is used in the example, but your APN can be different)
moxa@Moxa:~$ echo “APN=internet” | sudo tee /etc/qmi-network.conf
To dial up with default configuration, use the following command.
moxa@Moxa:~$ sudo /sbin/cell_mgmt start
cell_mgmt
is a Moxa script setup for your convenience. If you need to alter any options in making the cellular
connection, you may use
qmi-network
and
qmi-cli
commands.
moxa@Moxa:~$ sudo qmi-network /dev/cdc-wdm0 start
Loading profile...
APN: internet
Starting network with 'qmicli --device-open-flag-net-802-3 -d /dev/cdc-wdm0
--wds-start-network=internet --client-no-release-cid'...
Saving state... (CID: 9)
Saving state... (PDH: 1205295888)
Network started successfully
Note that you need to manually start dhcp client if you use qmi-network to connect. The default interface of
cellular connection is wwan0
moxa@Moxa:~$ dhclient wwan0
Disconnecting from a Dial-Up Network
Be sure to hang-up the connection if you don’t need the service anymore. To disconnect, you many use the
following command.
moxa@Moxa:~$ sudo /sbin/cell_mgmt stop
Alternatively you may use qmi-network too.
moxa@Moxa:~$ sudo qmi-network /dev/cdc-wdm0 stop
GPS
The GPS function of MC-7304/ MC-7354 is enabled by default.You may get raw GPS data by just listen to the
GPS port /dev/ttyUSB1.
moxa@Moxa:~# cat /dev/ttyUSB1
Switching Between US Carrier Frequency Bands (MC-7354 only)
MC-7354 has pre-setup different profiles for different carriers in the US. If you are using the SIM card from
Versizon, AT&T, or Sprint, you need to change to correspondant image for the module to connect. For ISPs
other than mentioned carriers, you may chosse the generic profile.
Insert the following command to check which profile is currently used.
moxa@Moxa:~# echo -n -e 'ATE0\r\n' | sudo tee /dev/ttyUSB1
moxa@Moxa:~# echo -n -e 'AT!entercnd="A710"\r\n' | sudo tee /dev/ttyUSB1
moxa@Moxa:~# echo -n -e 'AT!GOBISETIMAGEPREF?\r\n' | sudo tee /dev/ttyUSB1
moxa@Moxa:~$ sudo cat /dev/ttyUSB1
Please follow the section corresponds to your carrier to switch profiles.