Knowledge Base

The Digium Knowledge Base is a searchable library of troubleshooting advice and current information updated by Digium support technicians.


Search:     Advanced search
Browse by category:
Contact Us

Knowledge Base / Hardware / Products / Digital Interface Cards / How do I run a pattern loopback test (patlooptest) on my E1/T1 card?

How do I run a pattern loopback test (patlooptest) on my E1/T1 card?

Views: 4828, Votes: 4

Posted:
16 Apr, 2007 - Support D.

Updated:
05 Nov, 2008 - Support D.

Print Email article

patlooptest can be used to test ports on any of Digium's E1/T1 digital interface cards. This test transmits a bit pattern and listens for the same bit pattern to be received, comparing the results. To run the test, plug an E1/T1 loopback cable into the port to be tested.

1. With the system powered off, confirm that the board jumpers are set appropriately for E1 mode or T1 mode. (Refer to the user's manual for the interface card.)

2. Use zttool (or dahdi_tool) to confirm that the span is "OK" (green alarm):

   zttool
or
   dahdi_tool

3. Make a backup of /etc/zaptel.conf (or /etc/dahdi/system.conf).

4. Configure the span(s) as follows.

For E1 mode, /etc/zaptel.conf (or /etc/dahdi/system.conf) should contain:

   span=1,0,0,ccs,hdb3,crc4
   clear=1-31
   # for TE2xx and TE4xx, uncomment the following two lines
   # span=2,0,0,ccs,hdb3,crc4
   # clear=32-62
   # for TE4xx, uncomment the following four lines
   # span=3,0,0,ccs,hdb3,crc4
   # clear=63-93
   # span=4,0,0,ccs,hdb3,crc4
   # clear=94-124

For T1 mode, /etc/zaptel.conf (or /etc/dahdi/system.conf) should contain:

   span=1,0,0,esf,b8zs
   clear=1-24
   # for TE2xx and TE4xx, uncomment the following two lines
   # span=2,0,0,esf,b8zs
   # clear=25-48
   # for TE4xx, uncomment the following four lines
   # span=3,0,0,esf,b8zs
   # clear=49-72
   # span=4,0,0,esf,b8zs
   # clear=73-96

5. Use ztcfg (or dahdi_cfg) to configure the channels:

   ztcfg -vvv
or
   dahdi_cfg -vvv

6. Make the tests, including patlooptest:

   cd /usr/src/zaptel/
   make tests
or
   cd /usr/src/dahdi-linux-complete-N.N.N+N.N.N/tools/
   make tests

7. Run patlooptest:

   ./patlooptest /dev/zap/1 300
   Going for it...
or
   ./patlooptest /dev/dahdi/1 300
   Going for it...

(To run patlooptest on each of four E1 spans:

   ./patlooptest /dev/zap/1 300
   ./patlooptest /dev/zap/32 300
   ./patlooptest /dev/zap/63 300
   ./patlooptest /dev/zap/94 300
or
   ./patlooptest /dev/dahdi/1 300
   ./patlooptest /dev/dahdi/32 300
   ./patlooptest /dev/dahdi/63 300
   ./patlooptest /dev/dahdi/94 300

To run patlooptest on each of four T1 spans:

   ./patlooptest /dev/zap/1 300
   ./patlooptest /dev/zap/25 300
   ./patlooptest /dev/zap/49 300
   ./patlooptest /dev/zap/73 300
or
   ./patlooptest /dev/dahdi/1 300
   ./patlooptest /dev/dahdi/25 300
   ./patlooptest /dev/dahdi/49 300
   ./patlooptest /dev/dahdi/73 300
)

The first parameter to patlooptest is the channel on which to run the test (e.g., /dev/zap/1 or /dev/dahdi/1 ). The test should be run on the first channel of the span in question.

The second parameter is an optional timeout (e.g., 300), measured in seconds.

patlooptest should complete without displaying any errors. If there are errors, it may indicate that the card or port is bad. However, errors could also be caused by interrupt misses or a faulty loopback plug.

If patlooptest does not terminate after the timeout interval, then the card is probably not taking any interrupts.

Other articles in this category
document I am hearing an echo. What can I do to fix this?
document How do I install Zaptel on a machine running Debian?
document How do I setup caller ID?
document How do I install the Zaptel drivers on a system running Fedora Core?
document Asterisk does not properly detect when a caller hangs up the phone. How do I fix this?
document How do I install Zaptel drivers on a system running Redhat?
document When will the LED's light up on my TDM400P/TE110P/TE2XXP/TE4XXP?
document What kind of cable do I use to connect to a channel bank?
document Do I need a sound card for music on hold or voicemail?
document Which pins of the crossover cable are for TX- TX+ RX- RX+?
document Where can I find a motherboard with 3.3 volt slots for the TE410P/TE411P/TE210P card?
document What kernel modules are used for which piece of Digium hardware?
document Why do I hear echo when I make a call?
document What are the differences between FXS and FXO interfaces?
document What is the difference between loopstart, groundstart, and kewlstart signalling?
document I'm using Cybiolink P-1 ADSI analog phone with Asterisk. Unfortunately sometimes when I make a call Asterisk doubles or skips some DTMF's resulting in a wrong number. Can you help ?
document I am unable to break dialtone with a channel bank and a T1 card.
document I have two cards: E100P and T100P (E400P and T400P). How can I tell which one is E1/T1 ?
document How do I install Digium's T1/E1 cards?
document I have E100P and T100P cards in my box. How can I know which one was loaded first ?
document I have two E100P cards in my box. How do I determine which one was loaded first ?
document I have TE410 and want to use it with 24 FXS T1 channel band and 8 FXO/16 FXS T1 channel bank and two E1 spans. How do I configure the config files ?
document What do I do if I can't compile Zaptel package on my system ?
document How do I connect a channel bank to my T1/E1 card?
document How do I configure Digium's T1/E1/J1 cards?
document Why does modprobe hang while loading a Zaptel kernel module?
document How do I fix echo over VoIP when a Digium card is in the call path?
document Why is my card getting an IRQ miss?
document Why do I get an NMI error?
document Why am I getting dropped calls?
document Why am I getting phantom rings?
document Why am I having DTMF detection problems?
document Why is there a pause after the last DTMF digit?
document Why am I not getting a dialtone using a channel bank and a T1 card?
document Why is my handset not ringing?
document How do I make an E1/T1 loopback connector?
document Which certifications has the TE411P received?
document Which certifications has the TE410P received?
document Which certifications has the TE406P received?
document Which certifications has the TE405P received?
document Which certifications has the TE110P received?
document How do I set the Dual/Quad span card in T1/E1 mode?
document How do I configure multiple Dual/Quad span cards in same machine?
document Is my T100P still under warranty?
document Is my E100P still under warranty?
document I'm using E&M Wink channels on a T1/E1 line and Asterisk is not getting the correct CallerID or DID numbers. What is the problem?
document Is my T400P still under warranty?
document Is my E400P still under warranty?
document How do I troubleshoot problems over email with Digium's Technical Support staff?
document I am getting error messages about PCI Master Aborts. What is wrong?
document I can't find the TE411P for sale on Digium's site. Why is that?
document I can't find the TE406P for sale on Digium's site. Why is that?
document Does the B410P provide Zaptel timing?

RSS Powered by KBPublisher (Knowledge base software)