C Programming; Open() - Multitech MultiConnect MTPCIE-H5 Developer's Manual

Hide thumbs Also See for MultiConnect MTPCIE-H5:
Table of Contents

Advertisement

USING LINUX WITH H5 DEVICES
# If you want to use the HSDPA link as your gateway
defaultroute
# pppd must not propose any IP address to the peer
#noipdefault
ipcp-accept-local
ipcp-accept-remote
# Keep modem up even if connection fails
#persist
# Hardware flow control
crtscts
# Ask the peer for up to 2 DNS server addresses
usepeerdns
# No ppp compression
novj
nobsdcomp
novjccomp
nopcomp
noaccomp
# For sanity, keep a lock on the serial line
lock
# Show password in debug messages
show-password
This script calls the option connect using the script hsdpa_connect, for example: #!/bin/sh
# Connection to the network
'' AT+CGDCONT=1,"IP","<insert here the correct APN provided by
your network operator>"
# Dial the number.
OK ATD*99***1#
# The modem is waiting for the following answer
CONNECT ''
After launching a PPP connection is possible to use ftp protocol or other utilities that allow the access to the
Internet.

C Programming

The following topics show all the functions that can be used from C source code to perform read/write operations
on the serial devices.

open()

The open() function shall establish the connection between a file and a file descriptor. The file descriptor is used by
other I/O functions to refer to that file.
Header File
fcntl.h
Prototype:
int open(const char *pathname, int flags)
Parameters:
70
TM
MultiConnect
PCIe MTPCIE-H5/MTPCIE-BW Developer Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Multiconnect mtpcie-bw

Table of Contents