Difference between revisions of "Dahdi dummy"
Jump to navigation
Jump to search
(Created page with "It looks like John David has renamed dummy to hrtimer, dummy is designed to provide good timing on systems lacking dahdi hardware. I've attached strings of his module and th...") |
m |
||
Line 1: | Line 1: | ||
− | It looks like John David has renamed dummy to hrtimer, dummy is designed to | + | It looks like John David has renamed dummy to hrtimer, dummy is designed to |
− | provide good timing on systems lacking dahdi hardware. I've attached strings | + | provide good timing on systems lacking dahdi hardware. I've attached strings |
− | of his module and the dummy one I built today, they are virtually identical. | + | of his module and the dummy one I built today, they are virtually identical. |
− | Please test this if you have asl1.01 on a rpi. | + | Please test this if you have asl1.01 on a rpi. |
− | Simply building this seems to fix any studering on asl 1.01 running on a RPi3: | + | Simply building this seems to fix any studering on asl 1.01 running on a RPi3: |
− | bryan@StPeteRpt:~ $ sudo dahdi_test | + | bryan@StPeteRpt:~ $ sudo dahdi_test |
− | [sudo] password for bryan: | + | [sudo] password for bryan: |
− | Opened pseudo dahdi interface, measuring accuracy... | + | Opened pseudo dahdi interface, measuring accuracy... |
− | 99.614% 99.594% 99.608% 99.608% 98.476% 99.638% 99.599% 99.601% | + | 99.614% 99.594% 99.608% 99.608% 98.476% 99.638% 99.599% 99.601% |
− | 99.600% 98.450% 99.602% 99.600% 99.601% 99.600% 98.445% 99.581% | + | 99.600% 98.450% 99.602% 99.600% 99.601% 99.600% 98.445% 99.581% |
− | 99.621% 99.605% 99.597% 98.478% 99.630% 99.579% 99.626% 99.601% | + | 99.621% 99.605% 99.597% 98.478% 99.630% 99.579% 99.626% 99.601% |
− | 98.478% 99.630% 99.602% 99.600% 99.601% 98.446% 99.601% 99.580% ^C | + | 98.478% 99.630% 99.602% 99.600% 99.601% 98.446% 99.601% 99.580% ^C |
− | --- Results after 32 passes --- | + | --- Results after 32 passes --- |
− | Best: 99.638% -- Worst: 98.445% -- Average: 99.390271% | + | Best: 99.638% -- Worst: 98.445% -- Average: 99.390271% |
− | Cumulative Accuracy (not per pass): 99.967 | + | Cumulative Accuracy (not per pass): 99.967 |
− | After insmod of dummy module. | + | After insmod of dummy module. |
− | bryan@StPeteRpt:~ $ sudo dahdi_test | + | bryan@StPeteRpt:~ $ sudo dahdi_test |
− | Opened pseudo dahdi interface, measuring accuracy... | + | Opened pseudo dahdi interface, measuring accuracy... |
− | 99.990% 99.967% 99.991% 99.992% 99.991% 99.992% 99.991% 99.991% | + | 99.990% 99.967% 99.991% 99.992% 99.991% 99.992% 99.991% 99.991% |
− | 99.991% 99.988% 99.992% 99.991% 99.991% 99.992% 99.991% 99.991% | + | 99.991% 99.988% 99.992% 99.991% 99.991% 99.992% 99.991% 99.991% |
− | 99.991% 99.990% 99.992% 99.991% 99.991% 99.991% 99.991% 99.991% | + | 99.991% 99.990% 99.992% 99.991% 99.991% 99.991% 99.991% 99.991% |
− | 99.992% 99.991% 99.991% 99.992% 99.991% 99.991% 99.991% 99.991% | + | 99.992% 99.991% 99.991% 99.992% 99.991% 99.991% 99.991% 99.991% |
− | 99.991% 99.990% 99.991% 99.992% 99.991% 99.991% 99.991% 99.991% ^C | + | 99.991% 99.990% 99.991% 99.992% 99.991% 99.991% 99.991% 99.991% ^C |
− | --- Results after 40 passes --- | + | --- Results after 40 passes --- |
− | Best: 99.992% -- Worst: 99.967% -- Average: 99.990443% | + | Best: 99.992% -- Worst: 99.967% -- Average: 99.990443% |
− | Cumulative Accuracy (not per pass): 99.990 | + | Cumulative Accuracy (not per pass): 99.990 |
− | Here it is on an intel server running a pci_radio card: | + | Here it is on an intel server running a pci_radio card: |
− | root@Itchy:/home/bryan# dahdi_test | + | root@Itchy:/home/bryan# dahdi_test |
− | Opened pseudo dahdi interface, measuring accuracy... | + | Opened pseudo dahdi interface, measuring accuracy... |
− | 99.993% 99.986% 99.995% 99.992% 99.984% 99.971% 99.993% 99.990% | + | 99.993% 99.986% 99.995% 99.992% 99.984% 99.971% 99.993% 99.990% |
− | 99.992% 99.992% 99.991% 99.990% 99.996% 99.990% 99.971% 99.954% | + | 99.992% 99.992% 99.991% 99.990% 99.996% 99.990% 99.971% 99.954% |
− | 99.994% 99.992% 99.991% 99.995% 99.983% 99.993% 99.992% 99.992% | + | 99.994% 99.992% 99.991% 99.995% 99.983% 99.993% 99.992% 99.992% |
− | 99.997% 99.990% 99.985% 99.995% 99.990% 99.996% 99.989% 99.993% | + | 99.997% 99.990% 99.985% 99.995% 99.990% 99.996% 99.989% 99.993% |
− | 99.993% 99.989% 99.997% 99.989% 99.994% 99.996% 99.988% 99.993% ^C | + | 99.993% 99.989% 99.997% 99.989% 99.994% 99.996% 99.988% 99.993% ^C |
− | --- Results after 40 passes --- | + | --- Results after 40 passes --- |
− | Best: 99.997% -- Worst: 99.954% -- Average: 99.989596% | + | Best: 99.997% -- Worst: 99.954% -- Average: 99.989596% |
− | Cummulative Accuracy (not per pass): 99.992 | + | Cummulative Accuracy (not per pass): 99.992 |
− | It's identical. | + | It's identical. |
− | To build as root: | + | To build as root: |
− | # cd /usr/src/asl-dahdi-linux-2.11.1/linux | + | # cd /usr/src/asl-dahdi-linux-2.11.1/linux |
− | # export MODULES_EXTRA='dahdi_dummy' | + | # export MODULES_EXTRA='dahdi_dummy' |
− | # make | + | # make |
− | # insmod /usr/src/asl-dahdi-linux-2.11.1/linux/drivers/dahdi/dahdi_dummy.ko | + | # insmod /usr/src/asl-dahdi-linux-2.11.1/linux/drivers/dahdi/dahdi_dummy.ko |
− | # lsmod |grep dahdi | + | # lsmod |grep dahdi |
− | dahdi_dummy 3432 0 | + | dahdi_dummy 3432 0 |
− | dahdi 229561 35 dahdi_dummy | + | dahdi 229561 35 dahdi_dummy |
− | crc_ccitt 1771 1 dahdi | + | crc_ccitt 1771 1 dahdi |
− | you will need to do dahdi_genconf and then dahdi_cfg. ASL1.01 is missing this | + | you will need to do dahdi_genconf and then dahdi_cfg. ASL1.01 is missing this |
− | in the service script that starts asterisk. It needs to be added. | + | in the service script that starts asterisk. It needs to be added. |
− | Restart asterisk | + | Restart asterisk |
− | #service asterisk restart | + | #service asterisk restart |
− | # dahdi_scan | + | # dahdi_scan |
− | [1] | + | [1] |
− | active=yes | + | active=yes |
− | alarms=UNCONFIGURED | + | alarms=UNCONFIGURED |
− | description=DAHDI_DUMMY/1 (source: HRtimer) 1 | + | description=DAHDI_DUMMY/1 (source: HRtimer) 1 |
− | name=DAHDI_DUMMY/1 | + | name=DAHDI_DUMMY/1 |
− | manufacturer= | + | manufacturer= |
− | devicetype=DAHDI Dummy Timing | + | devicetype=DAHDI Dummy Timing |
− | location= | + | location= |
− | basechan=1 | + | basechan=1 |
− | totchans=0 | + | totchans=0 |
− | irq=0 | + | irq=0 |
− | I'm not on the admin list, so unicast if you have a question. | + | I'm not on the admin list, so unicast if you have a question. |
Revision as of 21:51, 28 December 2019
It looks like John David has renamed dummy to hrtimer, dummy is designed to provide good timing on systems lacking dahdi hardware. I've attached strings of his module and the dummy one I built today, they are virtually identical.
Please test this if you have asl1.01 on a rpi.
Simply building this seems to fix any studering on asl 1.01 running on a RPi3:
bryan@StPeteRpt:~ $ sudo dahdi_test [sudo] password for bryan: Opened pseudo dahdi interface, measuring accuracy... 99.614% 99.594% 99.608% 99.608% 98.476% 99.638% 99.599% 99.601% 99.600% 98.450% 99.602% 99.600% 99.601% 99.600% 98.445% 99.581% 99.621% 99.605% 99.597% 98.478% 99.630% 99.579% 99.626% 99.601% 98.478% 99.630% 99.602% 99.600% 99.601% 98.446% 99.601% 99.580% ^C --- Results after 32 passes --- Best: 99.638% -- Worst: 98.445% -- Average: 99.390271% Cumulative Accuracy (not per pass): 99.967
After insmod of dummy module.
bryan@StPeteRpt:~ $ sudo dahdi_test Opened pseudo dahdi interface, measuring accuracy... 99.990% 99.967% 99.991% 99.992% 99.991% 99.992% 99.991% 99.991% 99.991% 99.988% 99.992% 99.991% 99.991% 99.992% 99.991% 99.991% 99.991% 99.990% 99.992% 99.991% 99.991% 99.991% 99.991% 99.991% 99.992% 99.991% 99.991% 99.992% 99.991% 99.991% 99.991% 99.991% 99.991% 99.990% 99.991% 99.992% 99.991% 99.991% 99.991% 99.991% ^C --- Results after 40 passes --- Best: 99.992% -- Worst: 99.967% -- Average: 99.990443% Cumulative Accuracy (not per pass): 99.990
Here it is on an intel server running a pci_radio card:
root@Itchy:/home/bryan# dahdi_test Opened pseudo dahdi interface, measuring accuracy... 99.993% 99.986% 99.995% 99.992% 99.984% 99.971% 99.993% 99.990% 99.992% 99.992% 99.991% 99.990% 99.996% 99.990% 99.971% 99.954% 99.994% 99.992% 99.991% 99.995% 99.983% 99.993% 99.992% 99.992% 99.997% 99.990% 99.985% 99.995% 99.990% 99.996% 99.989% 99.993% 99.993% 99.989% 99.997% 99.989% 99.994% 99.996% 99.988% 99.993% ^C --- Results after 40 passes --- Best: 99.997% -- Worst: 99.954% -- Average: 99.989596% Cummulative Accuracy (not per pass): 99.992
It's identical.
To build as root: # cd /usr/src/asl-dahdi-linux-2.11.1/linux # export MODULES_EXTRA='dahdi_dummy' # make # insmod /usr/src/asl-dahdi-linux-2.11.1/linux/drivers/dahdi/dahdi_dummy.ko
# lsmod |grep dahdi dahdi_dummy 3432 0 dahdi 229561 35 dahdi_dummy crc_ccitt 1771 1 dahdi
you will need to do dahdi_genconf and then dahdi_cfg. ASL1.01 is missing this in the service script that starts asterisk. It needs to be added. Restart asterisk #service asterisk restart
# dahdi_scan [1] active=yes alarms=UNCONFIGURED description=DAHDI_DUMMY/1 (source: HRtimer) 1 name=DAHDI_DUMMY/1 manufacturer= devicetype=DAHDI Dummy Timing location= basechan=1 totchans=0 irq=0
I'm not on the admin list, so unicast if you have a question.