![Multitech MultiConnect MTPCIE-BW Developer'S Manual Download Page 74](http://html1.mh-extra.com/html/multitech/multiconnect-mtpcie-bw/multiconnect-mtpcie-bw_developers-manual_1855979074.webp)
USING LINUX WITH H5 DEVICES
74
MultiConnect
®
PCIe MTPCIE-H5/MTPCIE-BW Developer Guide
Chapter 16 – Using Linux with H5 Devices
Shell Commands
Testing Serial Ports
To test the serial ports created by the driver, type in a shell:
# cat /dev/ttyACM0 &
# echo –en "ATE0\r" > /dev/ttyACM03
# echo –en "AT\r" > /dev/ttyACM0
Note:
Sending ATE0 is required, to avoid issues in the terminal output. It prevents the sending/receiving
spurious characters to/from the modem when used with the Linux commands “echo” and “cat”
You can perform the same test using the other interface (ttyACM1 ttyACM3).
Create a PPP Connection
Most recent Linux distributions have GUI tools for creating PPP connections; the following instructions are for
creating a PPP connection through command line interface.
PPP support must be compiled into the kernel; pppd and chat programs are also required.
H5 Example
Step 1. Use a text editor to create a peer file containing the lines in the example below. (/dev/ttyACM0 may need
to be something like /dev/ttyS0 for a serial build). Save the file as /etc/ppp/peers/H5-peer.
Example peer file:
/dev/ttyACM0
connect "/usr/sbin/chat -v -f /etc/chatscripts/H5-chat"
noipdefault
usepeerdns
defaultroute
noauth
Step 2. Use a text editor to create a chat script containing the lines in the example below. In this example [APN]
should be replaced with the APN assigned by your cellular provider. Save the file as /etc/chatscripts/H5-chat.
Example chat script:
ABORT "ERROR"
ABORT "NO CARRIER"
ABORT "BUSY"
"" at+cgdcont=1,"IP","[APN]"
OK atd*99***1#
CONNECT ""
Step 3. Use the following command line to start pppd:
pppd debug call H5-peer
Summary of Contents for MultiConnect MTPCIE-BW
Page 1: ...MultiConnect PCIe MTPCIE H5 MTPCIE BW Developer Guide...
Page 20: ...DEVELOPER BOARD AND SCHEMATICS 20 MultiConnect PCIe MTPCIE H5 MTPCIE BW Developer Guide...
Page 22: ...DEVELOPER BOARD AND SCHEMATICS 22 MultiConnect PCIe MTPCIE H5 MTPCIE BW Developer Guide Bottom...
Page 25: ...DEVELOPER BOARD AND SCHEMATICS MultiConnect PCIe MTPCIE H5 MTPCIE BW Developer Guide 25...
Page 26: ...DEVELOPER BOARD AND SCHEMATICS 26 MultiConnect PCIe MTPCIE H5 MTPCIE BW Developer Guide...
Page 27: ...DEVELOPER BOARD AND SCHEMATICS MultiConnect PCIe MTPCIE H5 MTPCIE BW Developer Guide 27...
Page 28: ...DEVELOPER BOARD AND SCHEMATICS 28 MultiConnect PCIe MTPCIE H5 MTPCIE BW Developer Guide...
Page 29: ...DEVELOPER BOARD AND SCHEMATICS MultiConnect PCIe MTPCIE H5 MTPCIE BW Developer Guide 29...
Page 30: ...DEVELOPER BOARD AND SCHEMATICS 30 MultiConnect PCIe MTPCIE H5 MTPCIE BW Developer Guide...
Page 31: ...DEVELOPER BOARD AND SCHEMATICS MultiConnect PCIe MTPCIE H5 MTPCIE BW Developer Guide 31...
Page 32: ...DEVELOPER BOARD AND SCHEMATICS 32 MultiConnect PCIe MTPCIE H5 MTPCIE BW Developer Guide...
Page 51: ...MECHANICAL DRAWING MultiConnect PCIe MTPCIE H5 MTPCIE BW Developer Guide 51 MTPCIE BW...