Sunteți pe pagina 1din 10

PIKA Technical Bulletin #44 V-12 E&M Interface Implementation

The V-12 Formula supports both TYPE 1 and TYPE 5 of the E&M signaling system. Both types can be operated with 2-wire or 4-wire audio paths. The current V-12 software driver does not directly support this E&M protocol, but applications do have direct access to the signaling leads and can easily implement the desired signaling protocols.

V-12 Card Hardware Setup


The PIKA V-12 Formula card is equipped with line interface configuration keys that allow each V12 trunk interface to function as an E&M interface. The configuration key programs a pair of adjacent circuits on the V-12. For the V-12 to be used as an E&M trunk interface the E/M trunk configuration key must be installed for both 2-Wire and 4-Wire systems. For 4-Wire E&M system, factory modification is required under FSB #042 V-12 4 Wire E&M MODIFICATION, converting the card to a 6 port 4-Wire E&M system. The V-12 M lead provides relay contact outputs for driving GROUND, BATTERY or OPEN signals out to the external system (i.e. PBX or ancillary device). The M lead output signal is generated under software control of RELAY 0 of any line circuit. This relay is used to switch the M-lead output for that line between battery and ground (E&M TYPE 1). A user selectable jumper on the line interface configuration key allows the relay to switch between battery and open circuit when removed (E&M TYPE 5). For E&M signaling TYPE 5 only, the configuration key must be modified by cutting the track marked on the drawing below with a small knife. For Type 5 E&M interface cut this track

For Type 5 E&M interface cut this track

E/M

V-12

PIKA

The following table shows how V-12 E&M based applications can meet any required interface signaling voltage requirements:

1 - PIKA Technical Bulletin # 44

RELAY 1 STATE* OFF OFF OFF OFF


*

RELAY 0 STATE OFF ON OFF ON

E&M TYPE 1 1 5 5

M-lead output generated BATTERY GROUND OPEN GROUND

Note that relay 1 is always set to OFF.

External Power supply Connections


An external -48VDC power supply is required to supply and detect signaling voltages. The current requirement for this supply is at least 80mA per line (about 1 Amp per 12 line card). The following diagram illustrates how the power connector must be connected for E&M mode operation:

External Power Connector


1 2 3 GROUND -48VDC

External Supply

V12

2-Wire E&M
The 2-Wire E&M uses one pair of wires to transmit and receive audio, a second pair is used for signaling. Each 2-Wire E&M interface is constructed from one channel. The block diagram below shows how to connect the V-12 2-Wire E&M to a PBX:

2 - PIKA Technical Bulletin # 44

V-12
Channel 0 Audio

PBX

Single E&M interface circuit

Audio path Signaling path Channel 1 Audio path Signaling path Channel 2 Channel 3

M lead E lead

Channel 11

Telco Line Connections The V-12 E&M lines are connected through an RJ-21style connector, with pinout as defined below:

E 0 A u d io 0 E 1 A u d io 1

1 2 3 4

26 27 28 29

M 0 A u d io 0 M 1 A u d io 1

E 11 A u d io 1 1

23 24 25

48 49 50

M 11 A u d io 1 1

The following table shows in detail the full telco connector pinout for the 2 Wire E&M:
Pin Signal Pin Signal V-12 Channel number E&M Circuit number

3 - PIKA Technical Bulletin # 44

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

E0 Audio 0 E1 Audio 1 E2 Audio 2 E3 Audio 3 E4 Audio 4 E5 Audio 5 E6 Audio 6 E0 Audio 3 E4 Audio 4 E0 Audio 4 E5 Audio 5 E0 Audio 5 N/A

26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50

M0 Audio 0 M1 Audio 1 M2 Audio 2 M3 Audio 3 M4 Audio 4 M5 Audio 5 M6 Audio 6 M7 Audio 7 M8 Audio 8 M9 Audio 9 M 10 Audio 10 M 11 Audio 11 N/A

Channel 0 Channel 1 Channel 2 Channel 3 Channel 4 Channel 5 Channel 6 Channel 7 Channel 8 Channel 9 Channel 10 Channel 11 N/A

E&M 0 E&M 1 E&M 2 E&M 3 E&M 4 E&M 5 E&M 6 E&M 7 E&M 8 E&M 9 E&M 10 E&M 11 N/A

The following diagram illustrates the pinout provided by the optional Telco line extender cable and breakout box:

1
/ /

E0 M0

Audio 0 Audio 0

2
/

E1 M1

Audio 1 Audio 1

12
/

E11 M11

Audio 11 Audio 11

4-Wire E&M
Supported by: model V-12 FORMULA with factory modification under FSB # 042 V-12 4 Wire E&M MODIFICATION

4 - PIKA Technical Bulletin # 44

The 4-Wire E&M trunk interface is based on six wires, two pairs for balanced audio ( Audio out for transmitting, Audio In for receiving) and one pair for DC signaling (E lead and M lead). Each E&M interface circuit uses two channels on the V12, the first channel to form the audio transmitting path and the signaling leads, the second channel is used to form the audio receiving path, as shown the diagram below:

V-12
Channel 0 Audio path Signaling path Channel 1 Audio path Signaling path Channel 2 Channel 3 Audio In Audio Out

PBX

M lead E lead

Single E&M interface circuit

Unused

Channel 11

5 - PIKA Technical Bulletin # 44

Telco Line Connections The V-12 E&M lines are connected through an RJ-21style connector, with pinout as defined below:

E0 A u d io O u t 0 U nused A u d io In 0

1 2 3 4

26 27 28 29

M0 A u d io O u t 0 U nused A u d io I n 0

U nused A u d io In 5

23 24 25

48 49 50

U nused A u d io In 5

The following table shows in detail the full telco connector pinout for the 4 Wire E&M:
Pin 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Signal E0 Audio Out 0 Unused Audio in 0 E1 Audio Out 1 Unused Audio in 1 E2 Audio Out 2 Unused Audio in 2 E3 Audio Out 3 Unused Audio in 3 E4 Audio Out 4 Unused Audio in 4 E5 Audio Out 5 Unused Audio in 5 N/A Pin 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 Signal M0 Audio Out 0 Unused Audio in 0 M1 Audio Out 1 Unused Audio in 1 M2 Audio Out 2 Unused Audio in 2 M3 Audio Out 3 Unused Audio in 3 M4 Audio Out 4 Unused Audio in 4 M5 Audio Out 5 Unused Audio in 5 N/A V-12 Channel number Channel 0 Channel 1 Channel 2 Channel 3 Channel 4 Channel 5 Channel 6 Channel 7 Channel 8 Channel 9 Channel 10 Channel 11 N/A N/A E&M 5 E&M 4 E&M 3 E&M 2 E&M 1 E&M Circuit number E&M 0

6 - PIKA Technical Bulletin # 44

The following diagram illustrates the pinout provided by the optional Telco line extender cable and breakout box:

1
/ /

E0 M0

Audio Out 0 Audio Out 0

2
/

Unused Unused

Audio In 0 Audio In 0

12
/

Unused Unused

Audio In 5 Audio In 5

7 - PIKA Technical Bulletin # 44

Software considerations
E-lead Input Supervision The V12-E-lead detects DC input signals using an on-board microprocessor and analog to digital converter. The E-lead input supervision circuits have software programmable voltage switching detection that enable detection of voltage transitions between BATTERY, GROUND or OPEN signals. This detection capability allows the V-12 to meet any required E&M sensing voltage requirements. In order for the E-lead to detect Relay 1 must be off. When voltage transitions occur on the E-lead line, an event is returned to the application by the V-12 device driver. The following table also shows how to use the supervision capabilities of the V-12:

E&M TYPE*

Transition on the E-lead

DRIVER EVENT

1 EVT_LCTERM BATTERY GROUND 1 EVT_LCNEG GROUND BATTERY 5 EVT_LCTERM OPEN GROUND 5 EVT_LCPOS GROUND OPEN * Note that Relay 1 must be OFF in order to detect transitions on the E-lead.

The application uses V-12 API function pika_set_loop_current() to setup the voltage trip point used to determine when the E-lead has made a transition. The parameter lc_on_threshold must be set to detect at a value less than 10 V. Parameter lc_off_threshold determines the voltage threshold that is used to determine that a voltage transition has occurred on the E-lead and should be greater than 60V in order to get an event. The actual value programmed into lc_on_threshold and lc_off_threshold is given in the following table:

lc_threshold 0x18 0x30 0x55 0x70 0x80

Equivalent DC Voltage -10 -20 -30 -40 -50

8 - PIKA Technical Bulletin # 44

The following diagram graphically illustrates how the E-lead voltage detection feature works:

PROGRAMMED THRESHO LDS


0x00

S E N S E L in e V o lt a g e T r a n s it io n s

T Y P IC A L VO LTAG E THRESHO LDS 0 V o lt s -1 0 V o lts

lc _ o n _ th re s h o ld

LCTERM event

LCPOS or LCNEG event

lc o ff th re s h o ld = 0 x F E p ro g ra m m in g lim it 0 x F F

-6 0 V o lts -7 0 V o lts

Controlling V-12 Relays Application programs use a low level API function pika_send_hc11_msg() to directly control Relay 1 and Relay 0 as described here.

Syntax #include "pika.h" pika_errors pika_send_hc11_msg ( int ch, char far * msg, int msg_size);

Description This function can be used to send, directly from the application, a message to the on-board HC11 microprocessor which controls hookswitch relays and performs voltage supervision. The first byte of all the messages contains the sequence number and it is filled by the driver.

Arguments ch channel number; if the message affects all the channels on the board, the first channel of the board should be specified pointer to the message to be sent the total length of the message

msg msg_size

Return 0 = operation failed because the send queue is full

9 - PIKA Technical Bulletin # 44

1 = operation completed successfully

Applicable Events No events are applicable to this API, but if the message starts an operation on HC11, the microcontroller will send back a message when the operation is complete. If the channel corresponding to the message is idle, the driver will ignore the response message. If the channel is not idle, the message can interfere with the operation already in progress.

DOS TSR Driver Access AH AL DS:DX BX = PIKA_SEND_HC11_MSG(184) = channel. = pointer to the message to be sent = message size

Setting a relay using pika_send_hc11_msg() In order to set a relay, a 5 byte message has to be sent. The message has the following structure: typedef struct { byte header; byte opcode; byte pid; byte rid; byte mid; } Relay;

/* /* /* /* /*

header and opcode for channel on relay ID relay mode

sequence number */ message => 0x12 */ board */ */ ID */

header
opcode

- is filled in by the driver - 18 (HC11_SET_RELAY) - channel on board, from 0 to 11 Ex: System channel 14 is on board channel 2 - 0 or 1 (each channel has two relays) - 0 to set the relay ON or 1 to set the relay OFF

pid

rid mid

10 - PIKA Technical Bulletin # 44

S-ar putea să vă placă și