Digi W manual Originating, Answering, and Disconnecting Calls

Page 35

Originating, Answering, and Disconnecting Calls

In the following table, an application requests a TCP session with the Digi device server. The table displays the responses of the Digi device server and application as they negotiate a TCP connection.

Application AT Com-

Digi Device Server Response

Notes

mand

 

 

 

 

 

AT&F

OK.

AT command request to restore defaults to factory set-

tings-Digi device server responds OK.

 

 

 

 

 

 

Receives request to start a

Request to start TCP session with IP address and TCP

ATDT ipaddress:TCPport#

TCP session. CONNECT

port number of the Digi device server-Digi device server

 

115200.

starts a TCP session

 

 

 

 

 

Escape sequence is sent <P> is Pause in seconds with

<P>+++<P>

OK

“+++” being the escape sequence in ASCII characters -

Digi device server switches from AT command to data

 

 

 

 

mode

 

 

 

ATH

NO CARRIER response sent

Disconnect AT command is sent-Digi device server

responds with NO CARRIER

 

 

 

 

 

In the following table, the Digi device server receives a request for a connection.

AT Command

Digi Device Server Response

Notes

 

RING

The Digi device server sends a Call Notification

 

 

 

 

 

Manual (ATA) or Auto Answer (ATS0=n) response-the

ATA (or ATS0=n)

CONNECT 115200

Digi device server sends a CONNECT message when

 

 

the TCP session is started

 

 

 

 

NO CARRIER

The Digi device server sends a NO CARRIER message

 

when the remote disconnects

 

 

 

 

 

Originating Calls

To send data to a Digi device server, enter the following information for your application replacing the telephone number with the Digi device server’s IP address and TCP port number. Enter the following command:

ATDT ipaddress:tcp_port#

an example is ATDT 146.135.13.5:50001

Answering Calls

The Digi device server listens on a pre-defined TCP port to receive data. When the Digi device server receives a call notification (RING) through a serial port to begin a TCP connection, it needs to reply with an ATA or a pre-configured Auto-Answer to answer the call.

Note: The TCP ports assigned to the serial ports are as follows:

Serial port 1 listens on TCP port 50001

Serial port 2 listens on TCP port 50002

Serial port 3 listens on TCP port 50003

Serial port 4 listens on TCP port 50004

Disconnecting Calls

The TCP connection disconnects by either dropping the DTR signal on the serial port or sending the escape sequence <P>+++<P> to the Digi device

Chapter 9 Modem Emulation

35

Image 35
Contents Digi TS W Family 9000329B Chapter Introduction Chapter Configuring WirelessConfiguring the IP Address N t e n t sChapter Configuring Autoconnection Setting Up RealPortConfiguring the Serial Ports Chapter Configuring PPPConfiguring Security Features Configuring IP RoutingConfiguring Users Configuring the Digi Device for IAIndustrial AutomationConfiguring DNS Configuring SnmpReference and Certifications Configuring Power Over the Serial PortsContents T r o d u c t i o n Setup OverviewOther Documents in the Library About Entering Commands on the Command LineSupported Devices About This GuideAbout Configuration Methods Configuration Prerequisites N f i g u r i n g W i r e l e s s Configuration ConsiderationsSelect Discover Digi Device from the CD Configuring Wireless Configuring Wireless Configuring Wireless Configuring Wireless N f i g u r i n g t h e I P a d d r e s s Options for Configuring the IP Address and MaskConfiguring the IP Address Using ARP-Ping Configuring the Ethernet Interface from the Command Line Configuring an IP Address using Dhcp and Rarp About RealPort T t i n g U p R e a l P o r tSetting Up RealPort Configuring the Serial Port Settings with the Web Interface Options for Configuring the Serial PortsConfiguring the Serial Port Settings from the Command Line N f i g u r i n g P P P Configuring Inbound PPP ConnectionsConfiguring Outbound PPP Connections Command Line Configuring Inbound PPP Connections ExampleProcedure Sample Use the following table for additional configurations Configuring PPP Common User Scenarios D e m E m u l a t i o nModem Emulation Digi One TS and PortServer TS 2/4 MEI only Serial Device Digi Device Server Modem Emulation Cable SignalsApplication AT Com Digi Device Server Response Mand Originating, Answering, and Disconnecting CallsServer. P represents a one second pause Code Modem Emulation AT Command Set Function ResultATP Function ResultATXn Accepted but ignored There is no Nvram support currently AT+MS Ascii Registers Function Range Units Saved DefaultRegister Function Range Units Saved Default Register Function Range Units Saved Default 17 11h =XON/XOFF &K4 Result Codes Short Long Form Modem Emulation N f i g u r i n g a u t o c o n n e c t i o n Configuring a Port for Autoconnection Web InterfaceCommands for Configuring Autoconnection by Port or by User Configuring a User for Autoconnection Web InterfaceClick Change Profile Configuring TCP Socket CommunicationConfiguring UDP Multicast Click Serial PortsClick Change Profile and select UDP Socket Configuring Autoconnection N f i g u r i n g I P R o u t i n g Configuring Static RoutesConfiguring Dynamic Routes Using RIP Configuring Proxy ARP Configuring IP Routing N f i g u r i n g S e c u r i t y F e a t u r e s Controlling Access to the ConfigurationControlling Access to Inbound Ports Controlling Access to the Command Line Controlling Access to Outbound PortsDevice Required Hardware Firmware Issuing User PasswordsConfiguring SSH Version 2 for Secure Communication Http Controlling Access to ServicesSnmp SSH Configuring Security Features Configuring the User-Defined Protocol Configuring ModbusConfiguring the Digi Device for IA Industrial Automation About the Domain Name System N f i g u r i n g D N SConfiguration Procedures About Snmp and the Device Server Agent N f i g u r i n g S N M PMIB Configuration Procedure Web InterfaceN f i g u r i n g U s e r s About Configuring UsersCommon User Features Feature Description Set user FieldClick New User Configuring a User Web InterfaceCommands for Configuring a User Upgrading the Firmware Copying the Configuration to and from a Remote HostResetting Device Server Configuration to Defaults Commands for Resetting the Configuration to Defaults Managing the OS and Configuration Configuring RI Power Serial Power FeatureConfiguring DTR Power DTR on DTR OFF Serial Power TableConfiguring Power Over the Serial Ports Color State Indicates F e r e n c e a n d C e r t i f i c a t i o n sInterpreting the LEDs RJ-45 Pinouts EIA-232 EIA-422/485 EIA-485 Half Full-Duplex Environmental CertificationsDigi Contact Information Digi Contacts Reference and Certifications