[Asterisk-Users] ProSLIC and measuring of PSTN parameters like Voltage, Polarity, Power (A) and Frequency (Hz)

Rich Adamson radamson at routers.com
Mon Sep 13 05:31:18 MST 2004


>    I am interesting how can I use the capabilities of ProSLIC to
> measure the following PSTN parameters:
>    - Voltage (V) & Polarity (+-);
>    - Current (A);
>    - Frequency (Hz).
>    Are there any ready for use tools? If there aren't ready for use
> tools how can I do the above measuring?
>    

If you're playing with the TDM card, look at zaptel/fxstest.c (and the
associated Makefile for 'make fxstest' to compile it).

In order to use this, you'll probably need to stop asterisk, then run
the command like this:
# ./fxstest /dev/zap/2 stats
TIP: 52.0000 Volts
RING: 54.0000 Volts
VBAT: 54.0000 Volts

or like this:
[root at phoenix zaptel]# ./fxstest /dev/zap/1 regdump
Direct registers: 
  0. 00    1. 00    2. 03    3. 00    4. 29    5. 08    6. 00    7. 00  
  8. 00    9. 00   10. 00   11. 34   12. 40   13. 4c   14. 00   15. 00  
 16. 00   17. 00   18. 00   19. 02   20. 00   21. 00   22. 96   23. 2d  
 24. 19   25. 0b   26. c0   27. 07   28. 00   29. 00   30. 00   31. a3  
 32. 07   33. 28   34. 18   35. 00   36. 18   37. 00   38. 00   39. 00  
 40. 00   41. 00   42. 00   43. 00   44. 00   45. 00   46. 00   47. 00  
 48. 00   49. 00   50. 00   51. 00   52. 00   53. 00   54. 00   55. 00  
 56. 0f   57. 00   58. 00   59. 00  

You'll probably want to inspect the source code to see what command
line options are actually implemented as running ./fxstest by itself
is not totally accurate.

If you're not sure what those register values actually indicate, then
go to www.silabs.com and download the tech notes for the Si3050.

The fxstest.c code will also give you a pretty good starting point
for writing code to interact with the TDM card.

Rich





More information about the asterisk-users mailing list