Digi IX40 User Manual page 253

Table of Contents

Advertisement

Serial port
#!/bin/sh
# Example connect script for connecting from a PC using a Windows dial-up
# networking connection with built-in standard 33600 bps modem driver and phone
# number 123.
# The shell's 'read' builtin breaks on newline, so translate incoming carriage-
# return to newline, and outgoing newline to carriage-return-newline.
stty icrnl onlcr opost
# Read input from the serial port, one line at a time.
while read -r line; do
case "$line" in
ATDT123)
echo "CONNECT" # instruct the peer to start PPP
exit 0 # start up the local PPP session
;;
AT*)
echo "OK" # passively accept any other AT command
;;
esac
done
18. Click Apply to save the configuration and apply the change.
Command line
1. Select the device in Remote Manager and click Actions > Open Console, or log into the IX40
local command line as a user with full Admin access rights.
Depending on your device configuration, you may be presented with an Access selection
menu. Type admin to access the Admin CLI.
2. At the command line, type config to enter configuration mode:
> config
(config)>
3. The serial port is enabled by default. To disable:
(config)> serial port1 enable false
(config)>
4. Set the mode:
(config)> serial port1 mode ppp_dialin
(config)>
5. (Optional) Set a label that will be used when referring to this port.
(config)> serial port1 label label
(config)>
IX40 User Guide
Configure PPP dial-in mode
253

Advertisement

Table of Contents
loading

Table of Contents