lizhong zhu
2008-Nov-12 09:55 UTC
[asterisk-users] test OpenVox B400P and junghans card for dahdi BRI wcb4xxp
hello: thanks for Tzafrir Cohen for dahdi testing. I installed dahdi-2.1-r3c svn code and asterisk1-6 for testing OpenVox B400P and junghans card. i fund that there is bug (i think) to dectect NT or TE mode. actually on the board, i set it as TE mode, but after start wcb4xxp, but it show the port is NT mode. to detect the TE mode, I modefy the code in base.c ===========================================?static void hfc_init_all_st(struct b4xxp *b4) ?? 1386 { ?? 1387???????? int i, gpio, nt; ?? 1388???????? struct b4xxp_span *s; ?? 1389 ?? 1390???????? gpio = b4xxp_getreg8(b4, R_GPI_IN3); ?? 1391 ?? 1392???????? for (i=0; i < 4; i++) { ?? 1393???????????????? s = &b4->spans[i]; ?? 1394???????????????? s->parent = b4; ?? 1395???????????????? s->port = i; ?? 1396 ?? 1397???????????????? nt = ((gpio & (1 << (i + 4))) != 0);??????????? /* GPIO=0 = NT mode change ==0 to !=0 */ ?? 1398???????????????? s->te_mode = !nt; ?? 1399 ?? 1400???????????????? dev_info(b4->dev, "Port %d: %s mode\n", i + 1, (nt ? "NT" : "TE")); ?? 1401 ?? 1402???????????????? hfc_reset_st(s); ?? 1403???????????????? hfc_start_st(s); ?? 1404???????? } ?? 1405 } ===========================================beside that, i stil can not make calls. the driver starts up and loaded into asterisk, run the command: misdn show status: ===========================*CLI> dahdi? show status Description????????????????????????????? Alarms? IRQ??? bpviol CRC4?? Fra Codi Options? LBO B4XXP (PCI) Card 0 Span 1??????????????? RED???? 0????? 0????? 0????? CCS AMI? YEL????? 399-533 feet (DSX-1) B4XXP (PCI) Card 0 Span 2??????????????? RED???? 0????? 0????? 0????? CCS AMI? YEL????? 399-533 feet (DSX-1) B4XXP (PCI) Card 0 Span 3??????????????? OK????? 0????? 0????? 0????? CCS AMI? YEL????? 399-533 feet (DSX-1) B4XXP (PCI) Card 0 Span 4??????????????? RED???? 0????? 0????? 0????? CCS AMI? YEL????? 399-533 feet (DSX-1) *CLI> =================================i add more PCI for wcb4xxp: =========================================?static struct pci_device_id b4xx_ids[] __devinitdata ?? 2625 { ?? 2626???????? { 0xd161, 0xb410, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long)&wcb4xxp }, ?? 2627???????? {0x1397, 0x08b4, PCI_ANY_ID,PCI_ANY_ID,0,0,(unsigned long)&wcb4xxp}, ?? 2628????????? {0x1397, 0xe888, PCI_ANY_ID,PCI_ANY_ID,0,0,(unsigned long)&wcb4xxp}, ?? 2629 ?? 2630???????? { 0, } ?? 2631 }; ===========================================the dmesg shows: wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01 printk: 13709 messages suppressed. wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01 printk: 13708 messages suppressed. wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01 printk: 13708 messages suppressed. wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01 printk: 13709 messages suppressed. wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01 printk: 13708 messages suppressed. wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01 printk: 13705 messages suppressed. wcb4xxp 0000:02:02.0: ec_write: Wrote 0x64 to register 0x1ab of VPM 0 but got back 0x01 ===========================system.conf: loadzone=us defaultzone=us span=1,1,3,ccs,ami span=2,2,3,ccs,ami span=3,3,3,ccs,ami span=4,4,3,ccs,ami bchan=1,2 dchan=3 bchan=4,5 dchan=6 bchan=7,8 dchan=9 bchan=10,11 dchan=12 =========chan_dahdi.conf: [channels] ; ; Default language ; ;language=en ; ; Default context ; ; switchtype = euroisdn ; p2mp TE mode (for connecting ISDN lines in point-to-multipoint mode) signalling = bri_cpe_ptmp ; p2p TE mode (for connecting ISDN lines in point-to-point mode) ;signalling = bri_cpe ; p2mp NT mode (for connecting ISDN phones in point-to-multipoint mode) ;signalling = bri_net_ptmp ; p2p NT mode (for connecting an ISDN pbx in point-to-point mode) ;signalling = bri_net pridialplan = local prilocaldialplan = dynamic nationalprefix = 0 internationalprefix = 00 priindication = passthrough echocancel = yes context=demo group = 1 ; S/T port 1 channel => 1-2 group = 2 ; S/T port 2 channel => 4-5 group = 3 ; S/T port 3 channel => 7-8 group = 4 ; S/T port 4 channel => 10-11 anyone knows that? no incoming calls and only three leds are on. i will make further study on that. thanks! james.zhu ___________________________________________________________ ???????????? http://cn.mail.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081112/fed2e05b/attachment.htm
Tzafrir Cohen
2008-Nov-12 10:45 UTC
[asterisk-users] test OpenVox B400P and junghans card for dahdi BRI wcb4xxp
On Wed, Nov 12, 2008 at 05:55:29PM +0800, lizhong zhu wrote:> the dmesg shows: > wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01 > printk: 13709 messages suppressed. > wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01 > printk: 13708 messages suppressed. > wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01 > printk: 13708 messages suppressed. > wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01 > printk: 13709 messages suppressed. > wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01 > printk: 13708 messages suppressed. > wcb4xxp 0000:02:02.0: ec_write: Wrote 0x20 to register 0x1ab of VPM 0 but got back 0x01 > printk: 13705 messages suppressed. > wcb4xxp 0000:02:02.0: ec_write: Wrote 0x64 to register 0x1ab of VPM 0 but got back 0x01I noticed that this is called (1000 times per second) even with vpm_support=0 .> ===========================> system.conf: > loadzone=us > defaultzone=us > span=1,1,3,ccs,ami > span=2,2,3,ccs,ami > span=3,3,3,ccs,ami > span=4,4,3,ccs,ami > > bchan=1,2 > dchan=3 > bchan=4,5 > dchan=6 > bchan=7,8 > dchan=9 > bchan=10,11 > dchan=12It's not dchan . It's 'hardhdlc' . See the sample system.conf: http://docs.tzafrir.org.il/dahdi-tools/#_channel_configuration You can also set: bri_hardhdlc yes in /etc/dahdi/genconf_parameters (which instructs dahdi_genconf to write there 'hardhdlc'). I figure it would become the default at some point.> =========> chan_dahdi.conf: > > > [channels] > ; > ; Default language > ; > ;language=en > ; > ; Default context > ; > ; > switchtype = euroisdn > > ; p2mp TE mode (for connecting ISDN lines in point-to-multipoint mode) > signalling = bri_cpe_ptmp > ; p2p TE mode (for connecting ISDN lines in point-to-point mode) > ;signalling = bri_cpe > ; p2mp NT mode (for connecting ISDN phones in point-to-multipoint mode) > ;signalling = bri_net_ptmp > ; p2p NT mode (for connecting an ISDN pbx in point-to-point mode) > ;signalling = bri_net > > pridialplan = local > prilocaldialplan = dynamic > nationalprefix = 0 > internationalprefix = 00 > > priindication = passthrough > > echocancel = yes > > context=demo > group = 1 > ; S/T port 1 > channel => 1-2 > > group = 2 > ; S/T port 2 > channel => 4-5 > > group = 3 > ; S/T port 3 > channel => 7-8 > > group = 4 > ; S/T port 4 > channel => 10-11> anyone knows that? no incoming calls and only three leds are on. i will make further study on that. > thanks! > james.zhu'pri debug' ? 'pri intense debug' -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
lizhong zhu
2008-Nov-13 02:29 UTC
[asterisk-users] test OpenVox B400P and junghans card for dahdi BRI wcb4xxp
hello, users: I tried to change to hardhdlc in system. but i still can not make calls. the port 4 led still can be be on. =========system.conf=================# Autogenerated by ./dahdi_genconf on Wed Nov 12 19:22:36 2008 -- do not hand edit # Dahdi Configuration File # # This file is parsed by the Dahdi Configurator, dahdi_cfg # # Global data loadzone = us defaultzone = us span=1,1,3,ccs,ami span=2,2,3,ccs,ami span=3,3,3,ccs,ami span=4,4,3,ccs,ami bchan=1,2 hardhdlc=3 bchan=4,5 hardhdlc=6 bchan=7,8 hardhdlc=9 bchan=10,11 hardhdlc=12 =========chan_dahdi.conf==========[channels] ; ; Default language ; ;language=en ; ; Default context ; ; switchtype = euroisdn ; p2mp TE mode (for connecting ISDN lines in point-to-multipoint mode) signalling = bri_cpe_ptmp ; p2p TE mode (for connecting ISDN lines in point-to-point mode) ;signalling = bri_cpe ; p2mp NT mode (for connecting ISDN phones in point-to-multipoint mode) ;signalling = bri_net_ptmp ; p2p NT mode (for connecting an ISDN pbx in point-to-point mode) ;signalling = bri_net pridialplan = local prilocaldialplan = dynamic nationalprefix = 0 internationalprefix = 00 priindication = passthrough echocancel = yes context=demo group = 1 ; S/T port 1 channel => 1-2 group = 2 ; S/T port 2 channel => 4-5 group = 3 ; S/T port 3 channel => 7-8 group = 4 ; S/T port 4 channel => 10-11 ============dmesg===========ACPI: PCI Interrupt 0000:02:02.0[A] -> GSI 22 (level, low) -> IRQ 217 wcb4xxp 0000:02:02.0: Identified Wildcard B410P (controller rev 1) at 0001a000, IRQ 217 wcb4xxp 0000:02:02.0: VPM 0/1 init: chip ver 01 printk: 5 messages suppressed. wcb4xxp 0000:02:02.0: ec_write: Wrote 0x00 to register 0x1a8 of VPM 0 but got back 0x01 wcb4xxp 0000:02:02.0: ec_write: Wrote 0x00 to register 0x1ac of VPM 0 but got back 0x01 wcb4xxp 0000:02:02.0: ec_write: Wrote 0x00 to register 0x1b0 of VPM 0 but got back 0x01 wcb4xxp 0000:02:02.0: ec_write: Wrote 0x00 to register 0x1a9 of VPM 0 but got back 0x01 wcb4xxp 0000:02:02.0: VPM 1/1 init: chip ver 01 wcb4xxp 0000:02:02.0: NOTE: hardware echo cancellation has been disabled wcb4xxp 0000:02:02.0: Port 1: TE mode wcb4xxp 0000:02:02.0: Port 2: TE mode wcb4xxp 0000:02:02.0: Port 3: TE mode wcb4xxp 0000:02:02.0: Port 4: TE mode wcb4xxp 0000:02:02.0: Did not do the highestorder stuff wcb4xxp 0000:02:02.0: Reconfigured channel 1 (B4/0/1/1) sigtype 00000080 wcb4xxp 0000:02:02.0: Reconfigured channel 2 (B4/0/1/2) sigtype 00000080 wcb4xxp 0000:02:02.0: Reconfigured channel 3 (B4/0/1/3) sigtype 00080080 wcb4xxp 0000:02:02.0: Configuring hardware HDLC on B4/0/1/3 wcb4xxp 0000:02:02.0: Reconfigured channel 4 (B4/0/2/1) sigtype 00000080 wcb4xxp 0000:02:02.0: Reconfigured channel 5 (B4/0/2/2) sigtype 00000080 wcb4xxp 0000:02:02.0: Reconfigured channel 6 (B4/0/2/3) sigtype 00080080 wcb4xxp 0000:02:02.0: Configuring hardware HDLC on B4/0/2/3 wcb4xxp 0000:02:02.0: Reconfigured channel 7 (B4/0/3/1) sigtype 00000080 wcb4xxp 0000:02:02.0: Reconfigured channel 8 (B4/0/3/2) sigtype 00000080 wcb4xxp 0000:02:02.0: Reconfigured channel 9 (B4/0/3/3) sigtype 00080080 wcb4xxp 0000:02:02.0: Configuring hardware HDLC on B4/0/3/3 wcb4xxp 0000:02:02.0: Reconfigured channel 10 (B4/0/4/1) sigtype 00000080 wcb4xxp 0000:02:02.0: Reconfigured channel 11 (B4/0/4/2) sigtype 00000080 wcb4xxp 0000:02:02.0: Reconfigured channel 12 (B4/0/4/3) sigtype 00080080 wcb4xxp 0000:02:02.0: Configuring hardware HDLC on B4/0/4/3 dahdi: Registered tone zone 0 (United States / North America) wcb4xxp 0000:02:02.0: open() on chan B4/0/1/1 (1/1) wcb4xxp 0000:02:02.0: close() on chan B4/0/1/1 (1/1) wcb4xxp 0000:02:02.0: open() on chan B4/0/1/2 (2/2) wcb4xxp 0000:02:02.0: close() on chan B4/0/1/2 (2/2) wcb4xxp 0000:02:02.0: open() on chan B4/0/1/3 (3/3) wcb4xxp 0000:02:02.0: close() on chan B4/0/1/3 (3/3) wcb4xxp 0000:02:02.0: open() on chan B4/0/2/1 (4/1) wcb4xxp 0000:02:02.0: close() on chan B4/0/2/1 (4/1) wcb4xxp 0000:02:02.0: open() on chan B4/0/2/2 (5/2) wcb4xxp 0000:02:02.0: close() on chan B4/0/2/2 (5/2) wcb4xxp 0000:02:02.0: open() on chan B4/0/2/3 (6/3) wcb4xxp 0000:02:02.0: close() on chan B4/0/2/3 (6/3) wcb4xxp 0000:02:02.0: open() on chan B4/0/3/1 (7/1) wcb4xxp 0000:02:02.0: close() on chan B4/0/3/1 (7/1) any idea for that? thanks! james ___________________________________________________________ ???????????? http://cn.mail.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081113/76317cd3/attachment-0001.htm
lizhong zhu
2008-Nov-18 06:23 UTC
[asterisk-users] test OpenVox B400P and junghans card for dahdi BRI wcb4xxp
hello, all of users: after dig the code, i found that dahdi wcb4xxp is only for digium B410P. it has VPM hardware based echo cancellation, which? Junghans and openvox bri cards do not have. anyone can tell me how to disable the ec_write methond to support other HFC BRI cards? regards! zhu? ___________________________________________________________ ????????????????? http://card.mail.cn.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081118/1bdf1746/attachment.htm
Tzafrir Cohen
2008-Nov-18 08:05 UTC
[asterisk-users] test OpenVox B400P and junghans card for dahdi BRI wcb4xxp
On Tue, Nov 18, 2008 at 02:23:56PM +0800, lizhong zhu wrote:> hello, all of users: > after dig the code, i found that dahdi wcb4xxp is only for digium B410P. it has VPM hardware based echo cancellation, which? Junghans and openvox bri cards do not have. anyone can tell me how to disable the ec_write methond to support other HFC BRI cards? > regards! > zhu?My basic work in progress is here: http://bugs.digium.com/view.php?id=13897 Please submit your patches. Please also use latest svn (or 2.1.0-rc4) as it seems to include a number of other fixes (in the D-channel handling) BTW: keeping to one thread can help others follow this. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Maybe Matching Threads
- B410P and Patton smartnode : any success ?
- PTMP BRI Unable to receive TEI from network in state 2(Assign awaiting TEI) - Asterisk 1.6.2, Latest DAHDI, LibPRI
- Problem installing B410P BRI card for asterisk
- BN8S0, dahdi, wcb4xxp
- Asterisk + Dahdi does not work with BRI NT mode