Home Forum Developers BR4 Appliance ISDN clock syncronisation

JRPassphrase Registration Control

In order to register on this site, you must first submit the passphrase below.

TODO list for each hardware target can be found as sticky topic in the corresponding forum


steinwej
useravatar
User Info

ISDN clock syncronisation

Hello !

Can somebody help me with the clocking of the BR4 device. According to the manual I can seleect
under the Port options "Master Clock". This changes the option in the file misdn-init.conf to
"option = 1,master_clock".
But the option prompt is not checked in /etc/init.d/misdn.
Is the correct approach to change the pcm_config parameter for the xfhc driver ? Would this be bit 20 - bit 22  ?
Thanks alot !

Hans


Administrator has disabled public posting
steinwej
useravatar
User Info

Re: ISDN clock syncronisation

o.k. It seems that the existing mode uses the auto Sync. It uses the first te port for sync.
If you want a sync of a port defined in the web interface, you need to modify /etc/init.d/misdn and write the pcm_config parameter like 0x0D200000 for port 2.

Hans


Administrator has disabled public posting
admin
useravatar
User Info

Re: ISDN clock syncronisation

Hi Hans,

You are right. For the BR4 we are using fixed auto synchronization on the first available TE port.

In case you modify the GUI and /etc/init.d/misdn  to make it flexible please share you solution with us.

Thank you!
Dimitar


Administrator has disabled public posting
steinwej
useravatar
User Info

Re: ISDN clock syncronisation

This patch applies to trunk.

Regards

Hans

--- misdn.old    2011-04-01 09:03:02.000000000 +0200
+++ misdn.new    2011-04-01 09:04:47.000000000 +0200
@@ -1,6 +1,23 @@
#!/bin/sh
# Start up file for misdn
MISDNCONF="/persistent/etc/misdn-init.conf"
+
+PCM_CONF=0x0D000000 # auto sync - uses the first te port
+
+if [ "$(grep -i 'master' $MISDNCONF | grep -o 1)" != "" ]
+then
+        PCM_CONF=0x0D100000
+elif [ "$(grep -i 'master' $MISDNCONF | grep -o 2)" != "" ]
+then
+        PCM_CONF=0x0D200000
+elif [ "$(grep -i 'master' $MISDNCONF | grep -o 3)" != "" ]
+then
+        PCM_CONF=0x0D300000
+elif [ "$(grep -i 'master' $MISDNCONF | grep -o 4)" != "" ]
+then
+        PCM_CONF=0x0D400000
+fi
+
TMP=`grep  'te_ptmp' ${MISDNCONF}`
if [[ "`echo ${TMP}|grep '1'`" != "" ]]
then
@@ -34,7 +51,7 @@
        modprobe mISDN_l1 debug=0;
        modprobe mISDN_l2 debug=0;
        modprobe l3udss1 debug=0;
-        modprobe xhfc debug=0 protocol=$PORT1,$PORT2,$PORT3,$PORT4 layermask=0xf,0xf,0xf,0xf pcm=1 pcm_config=0x0D000000 spi_sel=5;;
+        modprobe xhfc debug=0 protocol=$PORT1,$PORT2,$PORT3,$PORT4 layermask=0xf,0xf,0xf,0xf pcm=1 pcm_config=$PCM_CONF spi_sel=5;;
    stop) ;;
    restart) ;;
    enable) rm -f /persistent/etc/rc.d/S40misdn;


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 2587  Total Topics: 299  Total Polls: 1  Total Posts: 1727  Dormant
User Info:   Newest User :  user2553   Members Online: 0   Guests Online: 229
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked