HIGH SPEED INTERNET MODEM FAMILY
CH2166
-
Send/Retrieve Email. Unlimited Email, V.90
FEATURES
Dual function device: Can operate as both a
machine interactions. Email allows information to be
conventional analog modem and an Internet
easily transferred between systems, and provides quick
appliance.
low
cost
multi-path
communication.
Replacing
conventional modems and long distance telephone
Use with any Non-proprietary commercial or private
lines with local access Internet connections saves
ISP.
money by reducing fixed asset and maintenance costs,
Use with Cermetek’s iModem Network ISP with
and limiting communication expenses.
1000s of local access (POP) numbers world wide.
Transparent Internet operations with Point-to-Point
Protocol (PPP), Password Authentication Protocol
USER FRIENDLY INTERFACE LAYER
(PAP), Challenge Authentication Protocol (CHAP),
The CH2166 iModem provides a robust and user
Domain Name Resolution (DNS), Send Email
friendly API ~ application interface ~ tailored to offer
(SMTP), Retrieve Email (POP3), TCP/IP and UDP
high performance in environments with low bandwidth
to connect to the Internet.
CPUs. It facilitates the implementation of a wide variety
Authenticated SMTP supported.
of IP applications and insulates the user from complex
I-Sockets: Open Sockets.
Internet networking details. This API consists of various
@ ® commands that look and feel like conventional
Send/Retrieve streaming email of unlimited length.
modem AT commands. With the @ ® commands, the
Send pre-stored email up to 300K bytes from static
user can perform all standard SMTP and POP3 email
memory.
operations, including: composing, sending, retrieving
Stored email up to 1.7M bytes in volatile memory.
and deleting email messages; plus establish BSD style
socket connections. Command results are conveyed via
Retrieve email messages from POP3 servers.
the iModem’s V.24 (EIA 232-E) serial interface.
Concurrent and multiple SMTP, POP3 and Open
Socket connections supported.
Programmable via V.24 (EIA 232-E), 5 volts serial
OVERVIEW OF THE CH2166 iMODEM
interface.
A conceptual representation of the CH2166 iModem in
Resident modem supports: V.90, V.34bis, V.34,
an embedded environment is presented in Figure 1. As
V.22bis, V.22A/B V.23, V.21, Bell 212A and 103,
with virtually all Internet enabled devices, the CH2166
(depending on model) and can be used in
iModem requires Internet and ISP configuration
conventional modem mode.
parameters. Among those are email addresses,
authentication
data,
and
telephone
numbers.
Cermetek @ ® AT-like Commands.
Configuration parameters may be specified at the time
Built-in DAA connects to Telco/PSTN telephone
of an internet operation or derived from profiles stored
network with 1500 VAC RMS isolation and 2122V
on the CH2166 iModem.
peak surge protection.
UL 60950 and CSA C22.2 950 (Third Edition)
Network Protocol Stack. The CH2166 iModem uses a
Listed, reference UL File E104957 (pending).
Network Protocol Stack to perform API commands
FCC Part 68 Approved (pending)/Industry Canada
operations involving Internet interactions. This protocol
CSA CS-03 Part I approved (pending).
stack is described in Figure 2.
Pin-for-Pin compatible with CH2124/60 iModem
The organization of the stack greatly reduces the
family and modem CH179X/2056 family.
complexity of the commands while providing the user
Single supply +5 Volt operation.
with unbridled access to the power and flexibility of the
Small size: 1.35” x 1.97” x 0.55” (nominal).
CH2166. When the CH2166 is functioning as an
90 day free trial ISP subscription to provided with
Internet appliance, multiple iModem applications ~ and
each iModem.
activities using those applications ~ can execute
concurrently.
When the CH2166 is functioning as an analog modem,
INTRODUCTION
the user can only issue standard analog modem
Direct machine-to-machine interaction represents the
commands rather than the complete suite of CH2166
next logical extension of the internet. Cermetek internet
commands. This is because all data flowing from the
modem (iModem) products are designed to leverage
user to the CH2166 ~ via its RS232 Serial Port ~ is
the Internet infrastructure for commercial machine-to-
2007 Cermetek Microelectronics, Inc.
Page 1
Document No. 607-0023 Revision A5 (05/07)
Cermetek Microelectronics, Inc.
CH2166 High Speed Internet Modem Family
CH2166
iModem
Product
Internet
Family
(PPP, SMTP, TCP/IP,
ISP Telephone Number
POP3)
Internet Servers
Authentication Data
Email Addresses
Send email
Retrieve email
Configuration Parameters
Delete email
Socket Communications
Store data locally
Functions Performed
Figure 1.
Conceptualized Block Diagram illustrating the Cermetek CH2166 iModem product family
performing the embedded internet application function.
routed directly to the CH2166 modem hardware without
identified by the user. Note that Quick Commands do
interpretation, and is per standard modem operational
not use Session IDs nor are Session IDs used when
procedures and protocols (i.e., the modem transmits
Analog Modem Operation is selected.
the data out the TIP and RING pins to the PSTN).
The user allocates a Session Activity ID by issuing a
Internet Connectivity.
The CH2166 iModem uses
@GIDGET command and frees it by issuing a
Application and Link Profiles to manage configuration
@GIDFREE command. The ID uniquely identifies an
parameters.
Application Profiles contain parameters
application instance as long as it is allocated. Currently,
that apply to all aspects of SMTP and POP3 addressing
email transmission, email retrieval, email storage, and
and
network
connectivity.
Link
Profiles
contain
custom I-Socket applications are supported.
Email
parameters specific to dialup IP link connectivity.
messages of unlimited length can be sent and retrieved
with streaming email. The CH2166 is ideal for
Standard CH2166 commands enable the user to easily
applications requiring overlapping Internet operations,
distinguish instances of iModem applications, permit
storage of large amounts of data (300K bytes static
multiple simultaneous TCP connections, and allow
memory and 1.7M bytes volatile memory), and the
virtually all configurable parameters to be specified as
flexibility of BSD style socket operations.
part of the command. Quick CH2166 commands, by
contrast, allow few parameters to be specified as part of
Application Profiles.
The CH2166 stores network
the command but perform all underlying network
connectivity,
email
address,
and
authentication
connectivity operations automatically.
configuration parameters in Application Profiles. These
AP Profiles are in static CH2166 memory and are
Analog Modem Operation. The CH2166l operates
unaffected by power loss. A complete list of available
strictly as an analog V.90 modem when this function is
Application and Link Profiles can be found in Table II.
selected. It is controlled with industry standard Hayes
AT commands in this case.
Refer to Cermetek
AP Profiles can be modified with Profile Management
Document # 613-0001, AT Commands and S-
Commands (see Table I), or modified externally with
Registers, for AT commands supported by the CH2166.
any ASCII editor and then downloaded to the CH2166
via the serial port. Typical PC ASCII editors, such as
MS NotePad , may be used edit these files. Contact
®
BASIC INTERNET APPLIANCE OPERATION
Cermetek for Download assistance.
Session Activity ID. A Session Activity ID is used to
uniquely identify each instance of an iModem
There are four basic Application Profiles:
application when Standard commands are used and
Internet Appliance operation is selected.
SMTP AP Profile. This profile supplies SMTP and
TCP/IP configuration and email address data, such
This allows multiple iModem applications to be easily
2007 Cermetek Microelectronics, Inc.
Page 2
Document No. 607-0023 Revision A5 (05/07)
Cermetek Microelectronics, Inc.
CH2166 High Speed Internet Modem Family
USER API INTERFACE
SMTP
POP3
SOCKETS
API
API
API
FILE
MODEM
SMTP
POP3
SOCKETS
DNS
MEMORY
API
INTERFACE
MANAGEMENT
TCP
UDP
API
IP
PPP
MODEM
DYNAMIC
STATIC
MEMORY
MEMORY
Figure 2.
CH2166 Network Protocol Stack.
and provide robust flow control. A default iModem
as the SMTP server name , TCP Port number, and
AP Profiles is used unless another one is specified.
STMP authentication data if necessary.
Both short and long forms of Standard Commands
POP3 AP Profile. This profile supplies POP3 and
are supported and may be used interchangeably.
TCP/IP configuration and authentication data, such
as the POP3 server name and authentication data.
Quick Commands. These commands minimize
user CH2166 interactions and are provided as a
I-Socket
AP
Profile.
This
profile
supplies
convenience for experimentation and prototyping.
configuration and possibly authentication data for
A default iModem AP profile is used unless another
custom applications that use I-Sockets. It specifies
one is specified. No other instance of an iModem
information such as Internet servers, TCP port
application can be executing when one of these
numbers and possibly authentication data.
commands is used (i.e., No Session Activity ID is
used with these commands.)
Link Profile. This profile supplies configuration
data for dialup IP connections. It specifies
Device Function Selection Commands. These
information such as telephone numbers and ISP
commands are used to select Internet Appliance or
authentication data.
Analog Modem operation. They are specialized
commands that toggle CH2166 device function
Default AP profiles are provided by Cermetek. Most of
between the two kinds of operation. No Session
the configuration parameters in the AP profiles can be
Activity ID is used with these commands.
overridden
by
specifying
them
as
command
parameters.
Configuration parameters specified as
File Management Commands.
The CH2166
command parameters have precedence over those
supports numerous internal file management
contained in the AP Profiles.
commands. These commands manage files stored
in both static and volatile memory. Both short and
Command Structure. There are four basic types of
long forms of the commands are supported and
CH2166 commands as described below. Standard and
may be used interchangeably.
Quick commands are used when Internet Appliance
operation is selected. Hayes compatible AT commands
Command Architecture. The structure of Application
are used when Analog Modem operation is selected.
and Link profiles makes it possible access the contents
There
are
also
some
auxiliary
commands
for
for the entire set of associated Application and Link
configuring the device, toggling between Analog
profiles by referencing only a single profile name (i.e,
Modem and Internet Appliance operation and general
Profiles in the same set or suite contain transparent
file management.
internal linkage). Parameters specified as part of a
command have precedence over those specified in a
Refer to Table I for a brief description of all commands
profile. Command results, diagnostics, and error
supported by the CH2166.
notifications are conveyed to the user via the serial port.
Standard Commands. These allow specification
Send and Retrieve Email. The CH2166 has the ability
of virtually all relevant configuration parameters,
to send and retrieve email of unlimited length. Once a
streaming email transmission session is set up, the
2007 Cermetek Microelectronics, Inc.
Page 3
Document No. 607-0023 Revision A5 (05/07)
Cermetek Microelectronics, Inc.
CH2166 High Speed Internet Modem Family
user just sends data to the CH2166 ~ one line at a time
Contact Cermetek and ask for the CH2166 iModem
~ for as long as desired. The @ETXDEND command is
Evaluation Board.
used to end the streaming email session. Alternatively,
data in files on the CH2166 can be sent with the
@ETXFILE command.
iMODEM CONTROL METHODOLOGIES
®
@
commands
are
conveyed
from
the
user
Storage Memory. A total of 300K bytes of Flash RAM
environment to the CH2166 via the serial port. The
or static memory is available for permanent storage of
CH2166 processes received commands based on
files on the CH2166.
There is also 1.7M bytes of
configuration parameters specified as part of the
volatile memory or dynamic RAM available for
command, and in the effective Link and Application
temporary file storage on the CH2166.
profiles. Parameters specified as part of a command
have precedence over those in profiles. See Table I for
Email messages may include files from either static or
a summary of available @ Commands. User Control
®
dynamic RAM memory, at the user’s discretion.
of
operations
that
involve
networking
or
communications
falls
into
the
following
general
Refer to Cermetek document, CH2166: Commands,
categories:
Profiles and Examples, for more details.
Passive Network Control. Operations are initiated
iModem Hardware Configuration.
Each CH2166
with a single command and the underlying
iModem contains a fully functional 56kbps modem and
networking and communications operations are
the hardware and firmware needed for Internet
automatically performed without user interactions.
connectivity and functionality. The unique architecture
This type of control applies mostly to Quick
of Cermetek iModems enables the CH2166 iModem to
commands which do not use a Session Activity ID.
operate as either an Internet Appliance or as a high
reliability Analog Modem.
Active Network Control. Individual Commands ~
usually Standard Commands ~ are used to perform
The CH2166 iModem Family of products are pin
networking and communications operations such
compatible with the CH179X and CH2056 modem
as establishing and releasing TCP connections.
products. Referring to Figure 3, the CH2166 iModem
This type of control allows CH2166 networking and
Family consists of an industrial grade high speed
communications operations to be distributed in a
modem module and a µP controller with associated
way that is tailored to needs of the user’s
internal logic. The µP controller and the logic provide
application.
all the functions required for internet communication via
standard PSTN telephones lines.
The CH2166
Passive Network Control.
The type of control
contains an additional 8 Mbytes of RAM and 2 Mbytes
requires that the user simply monitor the result of the
of Flash RAM.
operation corresponding to a CH2166 command. (i.e.
The host does not participate in networking or
Required External Connections.
The CH2166
communications operations.) After the user issues a
iModem requires an external RJ-11C jack for the PSTN
CH2166 command, the CH2166 generates a POSTED
line connection.
An ITU-T V.24 serial interface is
message to indicate the operation has started.
required when host processor control of the iModem is
Subsequently the CH2166 will automatically handle all
required in the specific application. All retrieved emails
aspects of the operation and report the outcome when it
are presented to the host system for further processing
is complete. Consequently, the host CPU has much
and/or retention via the serial interface.
spare bandwidth because it only needs to monitor the
operation outcome. The CH2166 generates an OK
Approvals. The CH2166 iModem Family is FCC Part
message to report a successful operation and an
68 approved, UL 60950 and CSA C22.2 950 (Third
ERROR message with a diagnostic code otherwise.
Edition) listed and Industry Canada CS-03 approvable.
Configuration parameters are derived from Application
Physical Dimensions. The modules are designed for
and Link profiles and specified with commands as with
PCB through-hole mounting and are 1.35” x 1.97” x
all other @ commands. Execution of a CH2166 email
®
0.55” in size.
command typically involves the following steps. The
®
User ~ host processor ~ issues the appropriate @
command. The CH2166 establishes dialup/PSTN and
iMODEM EVALUATION BOARD
PPP connections with the ISP and performs any
Cermetek manufactures a companion evaluation board
necessary authentication. The CH2166 establishes a
that is designed to simplify the hardware connections
TCP connection and SMTP connection with an email
required to program the iModem as well as providing a
server. The CH2166 transfers the email message over
reliable platform to assist with system level debugging.
the TCP
connection.
The
CH2166 releases all
2007 Cermetek Microelectronics, Inc.
Page 4
Document No. 607-0023 Revision A5 (05/07)
Cermetek Microelectronics, Inc.
CH2166 High Speed Internet Modem Family
Flash ROM
µP
2Mx8
Network
Flash ROM
Protocols
Stack
32Kx8
RAM
8Mx8
CH2166
MODEM
RXD
TIP
RTS
SERIAL
V.90
DAA
DCD INTERFACE
PSTN
DSR
V-24
Ring
RI
EIA-232-E or
CTS
UART
TXD
DTR
MODEM INTERFACE
RST
SPK
+5V
GND
Figure 3. Functional Block Diagram of Cermetek CH2166 iModem Products.
connections and notifies the user of the operation
iMODEM TRANSACTION EXAMPLES
outcome by issuing an OK or ERROR response over
The following examples are intended to illustrate
the serial port.
general usage of the CH2166. For a more detailed
discussion of the commands, refer to Cermetek
Active Network Control. The user issues individual
document,
CH2166:
Commands,
Profiles
and
CH2166 commands and is notified of their outcome as
Examples.
in the Passive Network Control case. The essential
difference is that commands are used to perform
In the following examples, Enter indicates the
specific operations such as establishing an STMP
command or instruction(s) sent to the CH2166 from the
server connection or transferring an email message.
Host Controller via the CH2166’s serial interface port.
The typical sequence of commands used to transfer an
Result indicates a response generated by the CH2166
email message is as follows:
and sent to the Host Controller via the CH2166’s serial
1. Issue a command to begin an SMTP session.
interface port (or the action taken by the CH2166).
2.
Issue a command to establish a TCP connection
Commands,
actions,
are
in
bold;
and the underlying ISP dialup connection with an
descriptions/explanations are non-bolded.
SMTP server.
3. Issue a command to transfer a file containing an
email message.
IMPORTANT NOTE
4. Issue a command to release the TCP and all other
AS DELIVERED FROM THE FACTORY, the CH2166
connections.
default DCE speed is set at 19.2K bps, 8-N-1. Be
5. Issue a command to end the SMTP session.
sure to configure the host processor (DCE) to match
these parameters or the CH2166 will not properly
A Session Activity ID is used to identify the instance of
communicate with the host.
the iModem email transmission session. The CH2166
issues a POSTED message to indicate execution of
each command has started, and an OK or ERROR to
notify the user of the command outcome.
2007 Cermetek Microelectronics, Inc.
Page 5
Document No. 607-0023 Revision A5 (05/07)
Cermetek Microelectronics, Inc.
CH2166 High Speed Internet Modem Family
PROFILE MANAGEMENT EXAMPLES
EXAMPLE 1B. Change the POP3 server to be used in
The CH2166 comes from the factory with pre-
the UUNET Application Profile.
configured Application and Link profiles which are listed
in table II.
Application profiles apply to Internet
Enter:
@ERXC: PROFILE=pop3.uunet
applications such as SMTP, and Link profiles apply ISP
SERVER=TEXT-pop3.pop.net<CR>
dialup connectivity and authentication. The default
Result:
POSTED: Indicates the CH2166 has
iModem profile is configured to work with Cermetek’s
received
and
begun
executing
the
ISP and its Internet servers.
command.
Result:
OK: The CH2166 indicates the command
The user can customize profiles using with Profile
succeeded
Management commands listed in Table. Note that
these commands do not use a Session Activity ID.
EXAMPLE 1C. Change the local ISP access telephone
number in the UUNET Link Profile.
IMPORTANT NOTE
Enter:
@LINKC: LEVEL=LINK
All profile changes made with the @ETXC , @ERXC ,
PROFILE=link.imodem.uunet