73M1866B/73M1966B FXOCTL Application User Guide November 2, 2009 Rev. 4.1 UG_1x66B_009



Similar documents
73S1215F, 73S1217F Device Firmware Upgrade Host Driver/Application Development User s Guide April 27, 2009 Rev UG_12xxF_029

Table 1 below is a complete list of MPTH commands with descriptions. Table 1 : MPTH Commands. Command Name Code Setting Value Description

Using Altera MAX Series as Microcontroller I/O Expanders

Software User Guide UG-461

2-Wire/4-Wire Telephone Line Interface. XE0204 Block Diagram

RPDO 1 TPDO 1 TPDO 5 TPDO 6 TPDO 7 TPDO 8

PRT-CTRL-SE. Protege System Controller Reference Manual

Using the Teridian 73M2901CE in 4-Wire and Leased Line Applications

LEN s.r.l. Via S. Andrea di Rovereto 33 c.s CHIAVARI (GE) Tel Fax mailto: len@len.it url: http//

SYMETRIX SOLUTIONS: TECH TIP February 2014

eztcp Technical Document Modbus/TCP of eztcp Caution: Specifications of this document may be changed without prior notice for improvement.

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Quectel Cellular Engine

Connect to telephone. Connect to wall jack

System Requirements. Hiro H50113

HP Service Manager. Software Version: 9.40 For the supported Windows and Linux operating systems. Application Setup help topics for printing

COMSPHERE 6700 SERIES NETWORK MANAGEMENT SYSTEM

Sipura SPA-3102 Simplified Users Guide Version 1.1a In Progress :)

EView/400i Management Pack for Systems Center Operations Manager (SCOM)

How To Wire An Extron Ip Link Device To A Cell Phone With A Sim Sim Sim Card (Ipl) For A Sim Card With A Power Adapter (Iphones) For An Extravoy) For Free (For A Simio)

Configuring the 930A for Common PBX Metallic Signaling Interfaces

GSMPBX version 1.3 Datasheet

Getting Started with IntelleView POS Administrator Software

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

HT1632C 32 8 &24 16 LED Driver

Telecommunications Switching Systems (TC-485) PRACTICAL WORKBOOK FOR ACADEMIC SESSION 2011 TELECOMMUNICATIONS SWITCHING SYSTEMS (TC-485) FOR BE (TC)

Building Conferencing Applications Using Intel NetStructure Host Media Processing Software

There are numerous ways to access monitors:

IP Office Essential Edition IP Office Essential Edition - Quick Version Phone Based Administration

Miniature Surface-Mount DAA for Audio or Data Transfer XE0402LCC BLOCK DIAGRAM

73M2901CE Programming the Imprecise Call Progress Monitor Filter

SUDT AccessPort TM Advanced Terminal / Monitor / Debugger Version 1.37 User Manual

How To Manage A Cart In A Remote Management Software

HOMEWORKS. RS-232 Protocol. Data Protocol for Communicating with Lutron's HOMEWORKS System

Flexible Active Shutter Control Interface using the MC1323x

AN4646 Application note

1. Make sure that no client accounts are open. 2. Click on Setup, then click Modem. The Modem Setup window will appear.

Curso de Telefonía IP para el MTC. Sesión 4-1 Tipos de llamadas. Mg. Antonio Ocampo Zúñiga

CallFinder. Model CF220 DID Adapter Quick Start Guide

V.25 bis Autodialer (External Modem Only)

WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide

AN4128 Application note

DS2155 T1/E1/J1 Single-Chip Transceiver

IP Office Basic Edition IP Office Basic Edition - Quick Mode Phone Based Administration

LinkPlus Interface Guide

NEC Express5800 Series NEC ESMPRO AlertManager User's Guide

AA9604 Auto Attendant

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

-Helping to make your life betterwww.person-to-person.net

D-MAX WEB GUIDE CONTROLLER WITH OPERATOR INTERFACE PANEL QUICK START SETUP MANUAL

ADC SWATCH (v3.0) Switch Monitoring Software) User Manual)

Data sheet Wireless UART firmware version 4.02

DriveRight. Fleet Management Software. Getting Started Guide. CarChip. DriveRight. Drivers. Vehicles. Product #8186

BIODEX ADDENDUM BIODEX EMG/ANALOG SIGNAL ACCESS CONFIGURATION UTILITY SOFTWARE FOR SYSTEM 3 REVISION 2 AND SYSTEM 4 DYNAMOMETERS

Firmware version: 1.10 Issue: 7 AUTODIALER GD30.2. Instruction Manual

HANDLING SUSPEND MODE ON A USB MOUSE

Compatible with All FXS Ports of Digium Asterisk VoIP PBX

HighPoint RAID Management Command Line Interface Guide

ZL30136 GbE and Telecom Rate Network Interface Synchronizer

Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation

IP Link Device Interface Ethernet Communication Sheet

DiskPulse DISK CHANGE MONITOR

MAX6683 Evaluation System/Evaluation Kit

Using SNMP with Content Gateway (not V-Series)

How To Use A 1232 On A 1236 On A Computer Or A Cell Phone

DS1621 Digital Thermometer and Thermostat

NortechCommander Software Operating Manual MAN R6

MBAM Self-Help Portals

User s Manual. Management Software for Inverter

OnQ 2x10 KSU/PBX Telephone System P/N User s Guide P/N Rev. A

CyberData SIP Paging Adapter Integration with Zultys MX

DS1621 Digital Thermometer and Thermostat

Global Monitoring + Support

Using Avaya B189 Conference IP Phone

Export: Exporting the call log or Voice Mail messages from the Viewer software is not supported.

4310/4320 Wireless Position Monitor Burst Configuration and Diagnostics

Scanning Comparator (ScanComp) Features. General Description. Input/Output Connections. When to Use a Scanning Comparator. clock - Digital Input* 1.

BLUETOOTH SERIAL PORT PROFILE. iwrap APPLICATION NOTE

T-BOXN12R. First steps with T-BOXN12R. You can make it wireless. Date: Version 1.0

ACCESS CONTROL DOOR PHONES Installation and Programming Manual

Chapter 11 V.25 bis Autodialer

Lync for Mac 2011 Deployment Guide

Application Notes for Konftel 300 Conference Unit with Avaya IP Office - Issue 1.0

Business Communications Manager ATA 2 User Guide

ORACLE USER PRODUCTIVITY KIT USAGE TRACKING ADMINISTRATION & REPORTING RELEASE 3.6 PART NO. E

ACCESS CONTROL DOOR PHONES Installation and Programming Manual

Title page. IP Phone Call Center User Guide. Nortel Communication Server 1000

Configuring connection settings

USB Card Reader Configuration Utility. User Manual. Draft!

MBP_MSTR: Modbus Plus Master 12

Expat kiss_fft gsoap smartgwt Linux Qt md5 zlig log 4cpp sqlite gcc/g++/libc/libc++ gwt

APPLICATION NOTE # Using Sage SMOS for VoIP Testing, IP Phone to IP Phone TABLE OF CONTENTS

Unattended Answering Device Instruction Manual

Nokia E61i Configuring connection settings

Using the NI 17xx Smart Camera Direct Drive Lighting Controller

PC Program User s Guide ( ) 1. Connecting the PC. 2. Installation and Start-up. 3. Programming

Channelized E1 and Channelized T1 Setup Commands

USER GUIDE EDBG. Description

TICO-EN. TiXML-Console TICO. User Manual V

isppac-powr1220at8 I 2 C Hardware Verification Utility User s Guide

Transcription:

Simplifying System Integration TM 73M1866B/73M1966B FXOCTL Application User Guide November 2, 2009 Rev. 4.1

73M1866B/73M1966B FXOCTL Application User Guide 2009 Teridian Semiconductor Corporation. All rights reserved. Teridian Semiconductor Corporation is a registered trademark of Teridian Semiconductor Corporation. Linux is a registered trademark of Linus Torvalds. All other trademarks are the property of their respective owners. Teridian Semiconductor Corporation makes no warranty for the use of its products, other than expressly contained in the Company s warranty detailed in the Teridian Semiconductor Corporation standard Terms and Conditions. The company assumes no responsibility for any errors which may appear in this document, reserves the right to change devices or specifications detailed herein at any time without notice and does not make any commitment to update the information contained herein. Accordingly, the reader is cautioned to verify that this document is current by comparing it to the latest version on http://www.teridian.com or by checking with your sales representative. 2 Rev. 4.1

73M1866B/73M1966B FXOCTL Application User Guide Table of Contents 1 Introduction... 5 1.1 FXOCTL User Space Application... 5 1.2 FXOCTL Command Summary... 6 2 Command Descriptions... 7 2.1 Help Command... 7 2.2 1x66 Hardware Register Access... 8 2.2.1 Register Read Commands... 8 2.2.2 Register Write Command... 9 2.3 Answering of Incoming Calls... 9 2.3.1 Auto Answer Setting Command... 9 2.3.2 Answer Command... 10 2.4 Set Active Channel Command... 10 2.5 Dial Commands... 11 2.6 Exit Command... 12 2.7 Hook Switch Operation... 12 2.7.1 Off-Hook Command... 12 2.7.2 On-Hook Command... 13 2.8 FXO Line Status and Monitor... 13 2.8.1 IET Setting Command... 14 2.8.2 Measure Command... 15 2.9 GPIO Management... 16 2.9.1 GPIO Config Command... 16 2.9.2 GPIO Data Command... 17 2.9.3 GPIO Control Command... 17 2.10 Loopback Management... 18 2.10.1 Loopback Set Command... 18 2.10.2 Loopback Clear Command... 18 2.10.3 Loopback Get Command... 18 2.11 Billing Tone Filter Commands... 19 2.12 Threshold Override Commands... 19 2.13 Sample Rate Selection Command... 20 3 Related Documentation... 21 4 Contact Information... 21 Revision History... 22 Rev. 4.1 3

73M1866B/73M1966B FXOCTL Application User Guide Figures Figure 1: Conceptual Diagram of the Linux FXOCTL Application... 5 Figure 2: Help Command Logging Session... 7 Figure 3: Register Read Command Logging Session... 8 Figure 4: Register Write Command Logging Session... 9 Figure 5: Autoanswer Command Logging Session... 9 Figure 6: Answer Command Logging Session... 10 Figure 7: Set Active Channel Logging Session... 10 Figure 8: Dial Command Logging Session... 11 Figure 9: Exit Command Logging Session... 12 Figure 10: Off-Hook Command Logging Session... 12 Figure 11: On-Hook Command Logging Session... 13 Figure 12: IET Command Logging Session... 14 Figure 13: Measure Command Logging Session... 15 Figure 14: GPIO Config GET/SET Command Logging Session... 16 Figure 15: GPIO Data Command Logging Session... 17 Figure 16: GPIO Control Logging Session... 17 Figure 17: Loopback Command Logging Session... 18 Figure 18: Billing Tone Filter Command Logging Session... 19 Figure 19: Override Threshold Command Logging Session... 19 Figure 20: Sample Rate Selection Command Logging Session... 20 Tables Table 1: Summary of FXOCTL Commands... 6 4 Rev. 4.1

73M1866B/73M1966B FXOCTL Application User Guide 1 Introduction This document describes the 73M1866B/73M1966B FXOCTL Application, a software tool that is used to demonstrate and evaluate the 73M1866B/73M1966B Reference Driver and the 73M1866B/73M1966B devices in a system. This user guide applies to both the 73M1966B and 73M1866B, which will be collectively referred to as the 73M1x66B in this document. The current FXOCTL Application version can be used on Linux 2.4 and 2.6 kernels. The FXOCTL Application is a command line parser that manages 73M1x66B devices via FXOAPI through the reference driver. Functions and features of the 73M1x66B supported by the 73M1866B/73M1966B Reference Driver are leveraged by this FXOCTL Application. This interactive user application is made up of an executable named fxoctl, which requires no parameters when executed from the Linux shell prompt. The FXOCTL Application works in conjunction with the 73M1866B/73M1966B Reference Driver, which can be ported to a range of processors and operating systems. 1.1 FXOCTL User Space Application User Console Input/Output FXOCTL Command Application FXOAPI ---------------------------- 73M1x66B Reference Driver Figure 1: Conceptual Diagram of the Linux FXOCTL Application The FXOCTL Application can be used to test drive the reference drivers and the FXOAPI for the 73M1x66B FXO product. It is expected the user will transfer the knowledge learning from using this FXOCTL application to their own product once they are familiar with the operation of the code. The commands are not necessarily the same as those found in modems, but they do allow the 73M1x66B to perform the basic functions such as going on and off hook, pulse dialing, etc. Rev. 4.1 5

73M1866B/73M1966B FXOCTL Application User Guide 1.2 FXOCTL Command Summary Entering fxoctl at the command line brings up the FXOCTL program. Refer to the individual command descriptions in Section 2 for syntax and usage. When running the FXOCL program displays the following prompt: FXOCTL:XX> where: XX is the current active channel. The FXOCTL program can manage all 16 FXO channels as supported in the 73M1x66B daisy chain configuration. Each channel is independently run on an FXO device or the 73M1x66B chip set. Upon startup the current active channel is defaulted to channel 0. In which case the prompt will look like this: FXOCTL:00> Most commands, without specifying channel number, apply to current active channel. However, some commands provide options for selecting a desired channel (other than the current active channel). Table 1 provides an overview of the commands implemented in the FXOCTL Application. Table 1: Summary of FXOCTL Commands Command Description? Displays the Help screen same as the Help command. Sets channel to auto answer mode. When set, the application automatically autoanswer answers the incoming RING by going off-hook and performs PCM parameter setting. answer Manually answers a call. This command manually answers the RING by going off-hook and performs PCM parameter setting. billingtonefilter Billing tone filter disable/enable command. callmonitor Managing the setting of call progress monitor audio. channel Sets active channel ID. countryconfig Managing the default country setting parameter. dial Performs pulse dialing. display Not implemented. exit Exits the FXOCTL program. gpio Managing GPIO operation. help Displays the Help screen. iet Interval Event Table. Used to manage the IET table such as list active IET entries, delete entries and update IET entries. loopback Managing loopback operation. measure Measures voltage/current. This command initiates or terminates voltage or current measuring session. offhook Takes an FXO channel off-hook. ohhook Takes an FXO channel on-hook. register Manages the 73M1x66B internal registers (read/write). samplerate Select PCM sample rate 8 or 16 khz operation. threshold Modifying line parameter threshold. quit Same as exit. 6 Rev. 4.1

73M1866B/73M1966B FXOCTL Application User Guide 2 Command Descriptions This section provides the details of each FXOCTL command. The command syntax varies based on each command but in general it consists of the command verb follow by its parameters. Some commands are self-contained (no parameter is needed) while others may have optional or mandatory parameter(s). The command verb is auto filled by the program. The user need only type enough to distinguish the command from the rest and the program will fill in the rest. A space character is also filled in so that the user is ready to type in the parameter. The command line is always terminated by the Enter key. The Enter key at the end of each command triggers the FXOCTL program to start parsing and executing the command. The following sections describe the syntax for each command. 2.1 Help Command The help command displays the FXOCTL command syntax. FXOCTL:NN> help or FXOCTL:NN>? Where: NN Current active channel ID. The following is a log of the help command. FXOCTL:00> help? - Display FXOCTL command syntax. autoanswer - Auto-answer on in coming ring. answer - Manually answer a ring. billingtonefilter - Billing tone filter enable/disable. callmonitor - Call progress monitor audio setting. channel X - Set active channel X (0..15). countryconf - Country default parameters. dial nnnnnn - Dial number nnnnnn. display - Display... exit - Exit the FXOCTL program. gpio - Managing GPIO configuration and control. help - Display FXOCTL command syntax. iet - Manage IET table. loopback - Loopback control. measure - Measure current/voltage. offhook - Go off-hook on current active channel. onhook - Go on-hook on current active channel. register rgxx - display content of reg rgxx. register rgxx=0xyy - set value 0xYY to reg rgxx. register display rgxx - display content of reg rgxx. register display all - display content of all regs. samplerate 8 or 16kHz Select new PCM sample rate. threshold - Line parameter threshold management. quit - Exit the FXOCTL program. Figure 2: Help Command Logging Session Rev. 4.1 7

73M1866B/73M1966B FXOCTL Application User Guide 2.2 1x66 Hardware Register Access The FXOCTL provides access to the 1x66 hardware register via register read and write command as described below. 2.2.1 Register Read Commands The register command can be used to reads the content register(s) on the current active device (NN). FXOCTL:NN> register <rgxx> (read and display register XX) FXOCTL:NN> register display <rgxx> (read and display register XX) FXOCTL:NN> register display all (read and display all registers) Where: XX NN 00 to 25 hexadecimal represent the registers from 00 to 25 hex. Shows the current active device ID. Refer to the chip data sheet for registers, their usage and contents. The following is a log of the command to read register 0x03, 0x12 and all registers. FXOCTL:00> register rg03 RG03-0xE0 FXOCTL:00> register display rg12 RG12-0x04 FXOCTL:00> register display all -----+---------------------------------------------------------------------- RGXX 0 1 2 3 4 5 6 7 8 9 A B C E -----+---------------------------------------------------------------------- 00 0x00 0x00 0x00 0xE0 0xE4 0x1B 0x00 0x00 0x00 0x00 0x00 0x00 0x2A 0xE0 10 0x00 0x0E 0x04 0x80 0x2A 0x38 0xD0 0x00 0x01 0x44 0x04 0x24 0x00 0x02 20 0x00 0x00 0x00 0x00 0x00 0xED 0x5C 0x40 -----+---------------------------------------------------------------------- FXOCTL:00> Figure 3: Register Read Command Logging Session 8 Rev. 4.1

73M1866B/73M1966B FXOCTL Application User Guide 2.2.2 Register Write Command The register command can also be used to write a value to the register on the current active device (NN). FXOCTL:NN> register rgxx=0xyy Where: XX 00 to 25 hexadecimal represent the registers from 00 to 25 hex. YY Hexadecimal value from 0x00 to 0xFF. NN Shows the current active channel ID. Refer to the chip datasheet for registers, their usage and contents. The following is a log of the command to write register 0x12 with the value of 0xC0. FXOCTL:00> register rg12=0xc0 FXOCTL:00> 2.3 Answering of Incoming Calls Figure 4: Register Write Command Logging Session The FXOCTL reports incoming RING event when one is detected. Each FXO channel can be programmed for auto answer mode to automatically answer the call, or manually answered by the user using this answer command. 2.3.1 Auto Answer Setting Command The autoanswer command sets auto answer mode to the channel. In this mode the incoming call on the FXO channel will be automatically answered by the FXOCTL program. This is accomplished by bringing the channel off-hook when incoming ring is detected without user intervention. FXOCTL:NN> autoanswer (set auto-answer mode on current active channel) FXOCTL:NN> autoanswer <XX> (set auto-answer mode on channel XX) Where: XX 00 to 15 decimal represents the device ID. NN Shows the current active channel ID. The following is a log of the command to set auto answer mode on current active channel (0) and on channel 3. FXOCTL:00> autoanswer Set auto-answer on current active channel: 0 Set auto-answer on active channel (0). FXOCTL:00> autoanswer 3 Set auto-answer on channel: 3 Set auto-answer on channel 3. Figure 5: Autoanswer Command Logging Session Rev. 4.1 9

73M1866B/73M1966B FXOCTL Application User Guide 2.3.2 Answer Command The answer command manually answers an incoming call by bringing the FXO channel off-hook. This command is manually issued by the user when the RING event is detected. FXOCTL:NN> answer FXOCTL:NN> answer <XX> (answer call on current active channel) (answer call on channel ID XX) Where: XX 00 to 15 decimal represent the channel ID. NN Shows the current active channel ID. The following is a log of the command to answer incoming call on channel 0, and channel 3. FXOCTL:00> RING(0) Incoming RING on channel 0. answer Answer call on current active channel: 0. FXOCTL:00> FXOCTL:00> RING(3) answer 3 Manually answer current active channel (0). Incoming RING on channel 3. Manually answer channel 3. Answer call on channel: 3. FXOCTL:00> 2.4 Set Active Channel Command Figure 6: Answer Command Logging Session The channel command sets the current active channel to a specific channel ID. FXOCTL:NN> channel <XX> Where: XX New desired active channel ID 00 to 15 (decimal). NN Shows the current active channel ID. The following is a log of the command to set new active channel ID to channel 5. FXOCTL:00> channel 5 Set active channel to 5. FXOCTL:05> Command prompt changed to active channel id of 05. Figure 7: Set Active Channel Logging Session 10 Rev. 4.1

73M1866B/73M1966B FXOCTL Application User Guide 2.5 Dial Commands The dial is the command for managing pulse dial feature. With this command the user can perform pulse dialing with a numeric digit string, abort or cancel an on-going dial process, or changing or display pulse dial timing parameter. To display the dial timing parameter omit all input after the token param. FXOCTL:NN> dial <nnnnnnnnn> dial cancel dial param <ii> <jj> <kk> dial param (dial number nnnnnnnnnn) (cancel dial) (change param to ii jj & kk) (display timer parameters) Where: nnnnnnnn Numeric dial string. ii On-hook duration. jj Off-hook duration. kk Inter-digit duration. The following is a log of the command: 1. Dial on current active channel (0) with the dial string of 7142136016. 2. Cancel an on-going dial command. 3. Change dial timer parameters on-hook duration to 40, off-hook duration to 60 and inter-digit duration to 800 ms. FXOCTL:00> dial 7142136016 FXOCTL:00> dial cancel Cancel pulse dial on current active channel: 0. FXOCTL:00> DIAL_ABORTED(0) FXOCTL:00> dial param 40 60 800 FXOCTL:00> dial param On-hook duration : 40 ms. Off-hook duration : 60 ms. Inter-digit duration: 800 ms. FXOCTL:00> Dial 7142136016. Cancel a dial session. Set dial parameters to 40, 60, and 800 ms. Display dial parameters. Figure 8: Dial Command Logging Session Rev. 4.1 11

73M1866B/73M1966B FXOCTL Application User Guide 2.6 Exit Command The exit command terminates the FXOCTL program. When issued, the user is prompted and asked to confirm with a Y(es) or N(o). A yes terminates the program. FXOCTL:NN> exit Where: NN Shows the current active channel ID. The following is a log of the command to exit the FXOCTL program. FXOCTL:00> exit Are you sure you want to quit? (Y or N)y Good bye! Enter Y to confirm. 2.7 Hook Switch Operation Figure 9: Exit Command Logging Session The FXOCTL provides commands to manually control the hook switch operation of the FXO channel. The FXO channel can be switched off hook or on hook. 2.7.1 Off-Hook Command The offhook command brings the FXO channel off-hook. FXOCTL:NN> offhook FXOCTL:NN> offhook XX (Current channel ID off-hook) (Channel ID XX off-hook) Where: NN Shows the current active channel ID. The following is a log of commands that bring the current channel ID and channel 4 off-hook. FXOCTL:00> offhook Channel 0 is OFF-hook. FXOCTL:00> FXOCTL:00> offhook 4 Take current channel (0) off-hook. Take channel 4 off-hook. Channel 4 is OFF-hook Figure 10: Off-Hook Command Logging Session 12 Rev. 4.1

73M1866B/73M1966B FXOCTL Application User Guide 2.7.2 On-Hook Command The onhook command brings the FXO channel on-hook. FXOCTL:NN> onhook FXOCTL:NN> onhook <XX> (Bring current channel ID off-hook) (Bring channel XX off-hook) Where: XX Channel ID. NN Show the current active channel ID. The following is a log of commands that bring the current channel ID and channel 4 on-hook. FXOCTL:00> onhook Channel 0 is ON-hook. FXOCTL:00> FXOCTL:00> onhook 4 Take current channel (0) on-hook. Take channel 4 on-hook. Channel 4 is ON-hook. Figure 11: On-Hook Command Logging Session 2.8 FXO Line Status and Monitor The FXO line s current and voltage can be autonomously monitored by setting the desired level of the IET (Interval Event Table). The FXOCTL provides commands for managing the IET and controlling the monitoring process. Rev. 4.1 13

73M1866B/73M1966B FXOCTL Application User Guide 2.8.1 IET Setting Command The iet (Interval Event Table) is a table of up to 10 entries of interval threshold parameters. The driver can be instructed to monitor the line current and/or voltage and send an appropriate event when the current or voltage falls within active interval threshold. The iet command can be used for managing this IET table. The command consists of setting (updating) IET entry, deleting (clearing) an IET entry from the table, or list all active IET entries. FXOCTL:NN> iet <voltage current> list FXOCTL:NN> iet <voltage current> clear <row> FXOCTL:NN> iet <voltage current> set <row> <min> <max> <event> Where: <row> Row number (0 to 9). <min> Minimum voltage/current range. <max> Maximum voltage/current range. <event> Event ID (unsigned 32bit value). NN Shows the current active channel ID. The following log consists of the following IET commands: 5 IET setting commands (set row 0, 1, 2, 3, and 4) IET list command IET clear command (clear row 3) IET list command FXOCTL:00> iet voltage set 0 100 200 1000 FXOCTL:00> iet voltage set 1 200 300 2000 FXOCTL:00> iet voltage set 2 300 400 3000 FXOCTL:00> iet voltage set 3 400 500 4000 FXOCTL:00> iet voltage set 4 500 600 5000 FXOCTL:00> iet voltage list ROW MIN MAX EVENT ------ ------- ------- -------------- 0 100 200 1000 1 200 300 2000 2 300 400 3000 3 400 500 4000 4 500 600 5000 FXOCTL:00> iet voltage clear 3 FXOCTL:00> iet voltage list ROW MIN MAX EVENT ------ ------- ------- -------------- 0 100 200 1000 1 200 300 2000 2 300 400 3000 4 500 600 5000 Set IET voltage row 0, 1, 2, 3, and 4. List all active IET voltage entries. Delete IET voltage row number 3. List all active IET voltage entries. Figure 12: IET Command Logging Session 14 Rev. 4.1

73M1866B/73M1966B FXOCTL Application User Guide 2.8.2 Measure Command The measure command is used to initiate or terminate a monitoring session. A monitoring session can be for line voltage or line current. Both measuring entity (voltage and current) can be active currently. (Stop) (Start) FXOCTL:NN> measure <voltage current> stop Where: NN Show current active channel ID. FXOCTL:NN> measure <voltage current> start <XX> <YY> Where: XX Sample time interval (in ms). YY Average Sample count (1 to 20). NN Shows the current active channel ID. The following is a log of the measuring commands. Start voltage measurement FXOCTL:00> measure voltage start 100 10 session with 100ms interval and 10 average sample counts. LINE_STATE(0) HookState: OnHook, Entity: Voltage, Row: 0, Event: 1000 FXOCTL:00> measure voltage stop Stop voltage measurement session. Event triggered for voltage matches IET row 0, on-hook state, with event =1000. Figure 13: Measure Command Logging Session Rev. 4.1 15

73M1866B/73M1966B FXOCTL Application User Guide 2.9 GPIO Management The FXOCTL provides three commands for managing the GPIO: 1. Config configures the GPIO pin for operation. 2. Control enable/disable the GPIO pin. 3. Data accessing GPIO data. 2.9.1 GPIO Config Command The GPIO pin must be configured properly before it can be used. Using this command the user can display the GPIO configuration (GET), or configure the GPIO pin for the desired operation (SET). Configuring the GPIO is simple, it requires only up to two parameters: 1. Signal direction (input or output). 2. If configured as input the GPIO will generate interrupt upon rising or falling edge signal this parameter selects the edge transition. For output direction this parameter is not relevant. (GET) FXOCTL:NN> gpio config get gpiox Where: gpiox gpio5, gpio6, or gpio7. NN Shows the current active channel ID. (SET) FXOCTL:NN> gpio config set gpiox [input output] [rising falling] Where: gpiox gpio5, gpio6, or gpio7. NN Shows the current active channel ID. The following is a log of the gpio config commands. FXOCTL:00> gpio config get gpio5 GPIO-5: Status : DISABLE Direction: INPUT Polarity : FALLING Display configuration for GPIO5. GPIO5 configured as input, interrupt triggered on falling edge. The GPIO is current disabled. FXOCTL:00> gpio config set gpio6 input rising Configure GPIO6 as input, with rising edge triggered. Figure 14: GPIO Config GET/SET Command Logging Session 16 Rev. 4.1

73M1866B/73M1966B FXOCTL Application User Guide 2.9.2 GPIO Data Command Using this data command the GPIO pin can be read (if configured as input) or written into (if configured as output) with signal level of high or low. (GET) FXOCTL:NN> gpio data get gpiox Where: gpiox gpio5, gpio6, or gpio7. NN Shows the current active channel ID. (SET) FXOCTL:NN> gpio data set gpiox [low high] Where: gpiox gpio5, gpio6, or gpio7. NN Shows the current active channel ID. The following is a log of the gpio data commands. FXOCTL:00> gpio data set gpio6 low Write low signal to GPIO6. FXOCTL:00> gpio data get gpio6 Read the GPIO6 data signal. GPIO6 data:low 2.9.3 GPIO Control Command Figure 15: GPIO Data Command Logging Session The GPIO pin is controlled (enable/disable) using this command. Once configured properly using the config command the GPIO can be set to operational using this command. FXOCTL:NN> gpio [enable disable] gpiox Where: gpiox gpio5, gpio6, or gpio7 NN Shows the current active channel ID. The following is a log of the gpio control commands. FXOCTL:00> gpio enable gpio5 Enable GPIO5. FXOCTL:00> gpio disable gpio6 Disable GPIO6. Figure 16: GPIO Control Logging Session Rev. 4.1 17

73M1866B/73M1966B FXOCTL Application User Guide 2.10 Loopback Management There are six different loopback mode can be set internally by the driver. Using the loopback command the user can disable the loopback, query the loopback status, or enable one of the following loopback modes: 1. PCM loopback 2. Digital loopback 1 3. Internal loopback 1 4. Digital loopback 2 5. Internal loopback 2 6. Analog loopback 2.10.1 Loopback Set Command This command enables one of the loopback modes. FXOCTL:NN> loopback set [pcm digital1 internal1 digital2 internal2 analog] Where: NN Shows the current active channel ID. 2.10.2 Loopback Clear Command This command disables the loopback. FXOCTL:NN> loopback clear Where: NN Shows the current active channel ID. 2.10.3 Loopback Get Command The command displays the active loopback mode. FXOCTL:NN> loopback get Where: NN Shows the current active channel ID. The following is a log of the loopback commands. FXOCTL:00> loopback set pcm FXOCTL:00> loopback get Active loopback: PCM FXOCTL:00> loopback clear Enable PCM loopback. Display current active loopback session. Disable loopback. Figure 17: Loopback Command Logging Session 18 Rev. 4.1

73M1866B/73M1966B FXOCTL Application User Guide 2.11 Billing Tone Filter Commands This command enables or disables the billing tone filter. If enable the user must specify the Receive Low Pass Notch (RLPN) frequency of 12 or 16 khz. FXOCTL:NN> billingtonefilter [enable disable] [12khz 16khz] Where: NN Shows the current active channel ID. The following is a log of the billing tone filter commands: FXOCTL:00> billingtonefilter enable 12khz FXOCTL:00> billingtonefilter disable Enable billing tone filter with RLPN at 12 khz. Disable billing tone filter. Figure 18: Billing Tone Filter Command Logging Session 2.12 Threshold Override Commands The FXO channel is operating with the parameter threshold configured by the channel initialization procedure. This command can be used to override the threshold value with new threshold. Three threshold parameters can be overridden: 1. Active Termination Loop (ACZ) 2. DC Current Voltage Characteristic Control (DCIV) 3. Ring Detect Threshold FXOCTL:NN> threshold acz xx dciv yy rgth zz Where: xx 0 15 (Active Termination Loop). yy 0 3 (DC Current Voltage Characteristic Control). zz 0 3 (Ring Detect Threshold). NN Shows the current active channel ID. The following is a log of the billing tone filter commands: FXOCTL:00> threshold acz 5 dciv 2 rgth 2 Override threshold. Figure 19: Override Threshold Command Logging Session Rev. 4.1 19

73M1866B/73M1966B FXOCTL Application User Guide 2.13 Sample Rate Selection Command The 73M1x66B device can operate in one of two sample rates 8 khz or 16 khz sample rate. The device defaults to 8 khz operation upon startup and can be changed to run at 16 khz using this command. Notes: Changing of PCM sample rate will affect the followings: 1. Data presented in PCM timeslots - reallocation of transmit and receive timeslots may be necessary or required to properly communicate with peer interface. 2. Barrier interface operation - a momentarily lost of synchronization on the barrier interface is expected. However, the driver will automatically attempt to recover barrier synchronization. The SYNC lost event is sent and should be followed by SYNC restored event when the barrier is synced up again. FXOCTL:NN> samplerate [8khz 16khz] Where: NN Shows the current active channel ID. The following is a log of the sample rate selection commands: FXOCTL:00> samplerate 16khz Change sample rate to 16 khz. Figure 20: Sample Rate Selection Command Logging Session 20 Rev. 4.1

73M1866B/73M1966B FXOCTL Application User Guide 3 Related Documentation The following 73M1x66B documents are available from Teridian Semiconductor Corporation: 73M1866B/73M1966B Data Sheet 73M1866B/73M1966B Reference Driver User Guide 73M1866B/73M1966B FXOAPI User Guide 4 Contact Information For more information about Teridian Semiconductor products or to check the availability of the 73M1866B and 73M1966B, contact us at: 6440 Oak Canyon Road Suite 100 Irvine, CA 92618-5201 Telephone: (714) 508-8800 FAX: (714) 508-8878 Email: fxo.support@teridian.com For a complete list of worldwide sales offices, go to http://www.teridian.com. Rev. 4.1 21

73M1866B/73M1966B FXOCTL Application User Guide Revision History Revision Date Description 1.0 3/9/2007 First publication. 1.1 9/25/2007 Reformatted to the company style. Miscellaneous editorial changes. 1.1.1 2/4/2008 Changed the document number and changed Manual in the title to Guide. 2.0 11/18/2008 Changed the document title to 73M1866B/73M1966B FXOCTL Application User Guide from 73M1966 Linux Application User Guide. Updated document to be relevant as a user guide for the FXOCTL demo application. 3.0 6/12/2009 Documents the redesign using the FXOAPI. 4.0 10/2/2009 Rewrote Section 2.5, Dial Commands. Added Section 2.9, GPIO Management. Added Section 2.10, Loopback Management. Added Section 2.11, Billing Tone Filter Commands. Added Section 2.12, Threshold Override Commands. 4.1 11/2/2009 Added PCM samplerate selection command. 22 Rev. 4.1