Quantcast
Channel: MultiTech Developer Resources » All Posts
Viewing all articles
Browse latest Browse all 7111

Reply To: Connect to MTQ-H5-B01 via PPP over uart/serial

$
0
0

Hi Kyle,
The serial (UART) interface on the MTQ-H5-B01 models does not connect directly to the serial port on HE910 radio module. I don’t think a ppp link would work over the serial port on the B01 builds.
For this use case I would recommend using the B02 model. On the B02 builds the UART pins connect directly to a serial port on the HE910 module.

Here is a simple H5-Linux PPP 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

This command line enables logging of debug information and tells pppd to use the peer file referenced by the call option.
After about 20-30 seconds type ifconfig and see if a ppp interface is listed.
If not, check syslog for pppd and chat events. Normally pppd/chat logging is written to /var/log/syslog (could vary depending on syslog configuration).

The above example should be able to establish a ppp link using a -H5 product. You may need to alter the config files to optimize for your application.


Viewing all articles
Browse latest Browse all 7111

Trending Articles