2006-08-27 14:00:37

by Manuel Bernhardt

[permalink] [raw]
Subject: [Bluez-users] Can't use capi/cmtp with bfusb

Hi,

i try to get my BlueFritz! USB-Stick get working on my Kurobox (An NAS
based on an PPC-CPU) but i've the problem, that i can't use the capi
device after loading all modules (See messages at the end of this mail).

Here some infos what I do:

1. I plug the stick on the Kurobox and the kernel does recognize the stick:

usb 2-1: new full speed USB device using ohci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
Bluetooth: Core ver 2.10
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: HCI USB driver ver 2.9
usbcore: registered new driver hci_usb

Loaded modules are now:

hci_usb 19260 0
bluetooth 66476 1 hci_usb

2. Next I load the bfusb driver with _modprobe bfusb_

Syslog output:
Bluetooth: BlueFRITZ! USB driver ver 1.1
usbcore: registered new driver bfusb

Modules loaded now:

bfusb 14244 0
firmware_class 12224 1 bfusb
hci_usb 19260 0
bluetooth 66476 2 bfusb,hci_usb

3. Now i execute /etc/init.d/bluez-utils start

Output:
Starting bluez-utils: hcid sdpd rfcomm.

Syslog output:
Bluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.8

Loaded modules:
rfcomm 48572 0
l2cap 27140 5 rfcomm
bfusb 14244 0
firmware_class 12224 1 bfusb
hci_usb 19260 2
bluetooth 66476 8 rfcomm,l2cap,bfusb,hci_usb

4. When i enter hciconfig, i see the bluez interface - it's up:

hci0: Type: USB
BD Address: 00:04:0E:89:DA:BA ACL MTU: 120:20 SCO MTU: 0:0
UP RUNNING PSCAN ISCAN
RX bytes:101 acl:0 sco:0 events:13 errors:0
TX bytes:300 acl:0 sco:0 commands:13 errors:0

Additionally i execute hciconfig hci0 lp because holtmann writes in his
how-to (http://www.holtmann.org/linux/bluetooth/isdn.html), that this
could be necessary:

hci0: Type: USB
BD Address: 00:04:0E:89:DA:BA ACL MTU: 120:20 SCO MTU: 0:0
Link policy: RSWITCH HOLD SNIFF PARK

5. I execute now _modprobe cmtp_

Syslog output:
CAPI Subsystem Rev 1.1.2.8
Bluetooth: CMTP (CAPI Emulation) ver 1.0

Loaded modules:
cmtp 24320 0
kernelcapi 50548 1 cmtp
rfcomm 48572 0
l2cap 27140 6 cmtp,rfcomm
bfusb 14244 0
firmware_class 12224 1 bfusb
hci_usb 19260 2
bluetooth 66476 9 cmtp,rfcomm,l2cap,bfusb,hci_usb

7. Next I do an _modprobe capi_ because.

Syslog output:
capifs: Rev 1.1.2.3
capi20: Rev 1.1.2.7: started up with major 68 (middleware+capifs)

Modules:
Module Size Used by
capi 21928 0
capifs 6888 2 capi
cmtp 24320 0
kernelcapi 50548 2 capi,cmtp
rfcomm 48572 0
l2cap 27140 6 cmtp,rfcomm
bfusb 14244 0
firmware_class 12224 1 bfusb
hci_usb 19260 2
bluetooth 66476 9 cmtp,rfcomm,l2cap,bfusb,hci_usb

8. Yet I do an ciptool search:

Searching ...
Checking service for 00:04:0E:85:C2:21
Connecting to device 00:04:0E:85:C2:21

Syslog output:
Bluetooth: Found 1 CAPI controller(s) on device 00:04:0E:85:C2:21
kcapi: Controller 1: 00:04:0E:85:C2:21 attached
kcapi: card 1 "00:04:0E:85:C2:21" ready.

Now .... when i enter now an capiinfo, i should get an full info about
available capi features, right?

I get this here:

Number of Controllers : 1
Controller 1:
Manufacturer: AVM Berlin
CAPI Version: 2.0
Manufacturer Version: 3.101-04 (49.20)
Serial Number: 0000000
BChannels: 512
Global Options: 0x31000000
B1 protocols support: 0x0f0000c0
56 kbit/s bit-transparent operation
Modem with all negotiations
B2 protocols support: 0x0b0b0000
B3 protocols support: 0x0f000080
Modem

0100
0200
31000000
0f0000c0
0b0b0000
0f000080
00000000 00000000 00000000 00000000 00000000 00000000
01000001 00020000 00000000 00000000 00000000
FAC REQ - Illegal command or subcommand or message length less than 12
bytes (0x1102)

Other capi applications doesn't also work so i think, the connection
isn't established right. What I do wrong?

Here some further details:
Linux lansrv01 2.6.17.8-mh5_kurobox_hg #2 Sat Aug 19 01:49:26 CEST 2006
ppc GNU/Linux
- Kernel includes patch from http://www.bluez.org/patches.html

I hope i give enough details so someone can help me, solving this problem.

Kind regards
Manuel Bernhardt




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2006-08-30 07:56:50

by Manuel Bernhardt

[permalink] [raw]
Subject: Re: [Bluez-users] Can't use capi/cmtp with bfusb

Ok! But thanks for the fact, that's an CAPI problem. That helps me a lot
annoy the right people :-)

> go ahead and annoy the ISDN4Linux mailing list. And it is not a problem
> of hardware. I have an Ultra 10 from Sun and a Apple Quad G5 here. The
> CAPI subsystem is the problem. It is hardcoded for little endian in a
> strange way. At least it works with AMD64 and EM64T now.

And: Thx for made BlueFritz and features available to linux !

Have a nice day
Manuel


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-08-30 09:46:29

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] Can't use capi/cmtp with bfusb

Hi Manuel,

> > I think the problem is that your CPU is big endian and the CAPI
> > subsystem is not working on big endian systems. I tried to fix it at one
> > point, but never succeeded.
>
> thank you for this information. That means, that i should annoy the
> ISDN4Linux-Mailinglist (or which project/group is the right contact point
> in your opinion?) with my concern? If you say, you need only an System for
> testing and it's no big job, do this big endian changes, I also could give
> you temporary access to my ppc-box for developing. I'm not an c/c++
> expert, but if i can contribute to open source by giving access to
> hardware, I do it.

go ahead and annoy the ISDN4Linux mailing list. And it is not a problem
of hardware. I have an Ultra 10 from Sun and a Apple Quad G5 here. The
CAPI subsystem is the problem. It is hardcoded for little endian in a
strange way. At least it works with AMD64 and EM64T now.

Regards

Marcel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-08-30 05:50:00

by Manuel Bernhardt

[permalink] [raw]
Subject: Re: [Bluez-users] Can't use capi/cmtp with bfusb

Hi Marcel,

> I think the problem is that your CPU is big endian and the CAPI
> subsystem is not working on big endian systems. I tried to fix it at one
> point, but never succeeded.

thank you for this information. That means, that i should annoy the
ISDN4Linux-Mailinglist (or which project/group is the right contact point
in your opinion?) with my concern? If you say, you need only an System for
testing and it's no big job, do this big endian changes, I also could give
you temporary access to my ppc-box for developing. I'm not an c/c++
expert, but if i can contribute to open source by giving access to
hardware, I do it.

I search now a long time for a way, get CAPI on one of my NAS and now i
thought, i found a way because the bluefritz usb stick doesn't need
hardware depended firmware (i tried first an "old" fritz!x but avm
rejected my request for an ppc firmware) but now the kernel code doesn't
match the requirements... "nice"

Manuel


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-08-29 21:52:23

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] Can't use capi/cmtp with bfusb

Hi Manuel,

> i try to get my BlueFritz! USB-Stick get working on my Kurobox (An NAS
> based on an PPC-CPU) but i've the problem, that i can't use the capi
> device after loading all modules (See messages at the end of this mail).

I think the problem is that your CPU is big endian and the CAPI
subsystem is not working on big endian systems. I tried to fix it at one
point, but never succeeded.

Regards

Marcel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-08-28 20:00:18

by Manuel Bernhardt

[permalink] [raw]
Subject: Re: [Bluez-users] Can't use capi/cmtp with bfusb

Hi,

really no one where have an idea? If other information are needed, say
it and you get it. It would be very nice if i would get bfusb working
with cmtp on my nas because i could use my nas as an voice box for ex.
I hope, i'dnt overrun the mailinglist with the detailed description in
my first mail.

Manuel Bernhardt

Manuel Bernhardt schrieb:
> Hi,
>
> i try to get my BlueFritz! USB-Stick get working on my Kurobox (An NAS
> based on an PPC-CPU) but i've the problem, that i can't use the capi
> device after loading all modules (See messages at the end of this mail).
>
> Here some infos what I do:
>
> 1. I plug the stick on the Kurobox and the kernel does recognize the stick:
>
> usb 2-1: new full speed USB device using ohci_hcd and address 2
> usb 2-1: configuration #1 chosen from 1 choice
> Bluetooth: Core ver 2.10
> NET: Registered protocol family 31
> Bluetooth: HCI device and connection manager initialized
> Bluetooth: HCI socket layer initialized
> Bluetooth: HCI USB driver ver 2.9
> usbcore: registered new driver hci_usb
>
> Loaded modules are now:
>
> hci_usb 19260 0
> bluetooth 66476 1 hci_usb
>
> 2. Next I load the bfusb driver with _modprobe bfusb_
>
> Syslog output:
> Bluetooth: BlueFRITZ! USB driver ver 1.1
> usbcore: registered new driver bfusb
>
> Modules loaded now:
>
> bfusb 14244 0
> firmware_class 12224 1 bfusb
> hci_usb 19260 0
> bluetooth 66476 2 bfusb,hci_usb
>
> 3. Now i execute /etc/init.d/bluez-utils start
>
> Output:
> Starting bluez-utils: hcid sdpd rfcomm.
>
> Syslog output:
> Bluetooth: L2CAP ver 2.8
> Bluetooth: L2CAP socket layer initialized
> Bluetooth: RFCOMM socket layer initialized
> Bluetooth: RFCOMM TTY layer initialized
> Bluetooth: RFCOMM ver 1.8
>
> Loaded modules:
> rfcomm 48572 0
> l2cap 27140 5 rfcomm
> bfusb 14244 0
> firmware_class 12224 1 bfusb
> hci_usb 19260 2
> bluetooth 66476 8 rfcomm,l2cap,bfusb,hci_usb
>
> 4. When i enter hciconfig, i see the bluez interface - it's up:
>
> hci0: Type: USB
> BD Address: 00:04:0E:89:DA:BA ACL MTU: 120:20 SCO MTU: 0:0
> UP RUNNING PSCAN ISCAN
> RX bytes:101 acl:0 sco:0 events:13 errors:0
> TX bytes:300 acl:0 sco:0 commands:13 errors:0
>
> Additionally i execute hciconfig hci0 lp because holtmann writes in his
> how-to (http://www.holtmann.org/linux/bluetooth/isdn.html), that this
> could be necessary:
>
> hci0: Type: USB
> BD Address: 00:04:0E:89:DA:BA ACL MTU: 120:20 SCO MTU: 0:0
> Link policy: RSWITCH HOLD SNIFF PARK
>
> 5. I execute now _modprobe cmtp_
>
> Syslog output:
> CAPI Subsystem Rev 1.1.2.8
> Bluetooth: CMTP (CAPI Emulation) ver 1.0
>
> Loaded modules:
> cmtp 24320 0
> kernelcapi 50548 1 cmtp
> rfcomm 48572 0
> l2cap 27140 6 cmtp,rfcomm
> bfusb 14244 0
> firmware_class 12224 1 bfusb
> hci_usb 19260 2
> bluetooth 66476 9 cmtp,rfcomm,l2cap,bfusb,hci_usb
>
> 7. Next I do an _modprobe capi_ because.
>
> Syslog output:
> capifs: Rev 1.1.2.3
> capi20: Rev 1.1.2.7: started up with major 68 (middleware+capifs)
>
> Modules:
> Module Size Used by
> capi 21928 0
> capifs 6888 2 capi
> cmtp 24320 0
> kernelcapi 50548 2 capi,cmtp
> rfcomm 48572 0
> l2cap 27140 6 cmtp,rfcomm
> bfusb 14244 0
> firmware_class 12224 1 bfusb
> hci_usb 19260 2
> bluetooth 66476 9 cmtp,rfcomm,l2cap,bfusb,hci_usb
>
> 8. Yet I do an ciptool search:
>
> Searching ...
> Checking service for 00:04:0E:85:C2:21
> Connecting to device 00:04:0E:85:C2:21
>
> Syslog output:
> Bluetooth: Found 1 CAPI controller(s) on device 00:04:0E:85:C2:21
> kcapi: Controller 1: 00:04:0E:85:C2:21 attached
> kcapi: card 1 "00:04:0E:85:C2:21" ready.
>
> Now .... when i enter now an capiinfo, i should get an full info about
> available capi features, right?
>
> I get this here:
>
> Number of Controllers : 1
> Controller 1:
> Manufacturer: AVM Berlin
> CAPI Version: 2.0
> Manufacturer Version: 3.101-04 (49.20)
> Serial Number: 0000000
> BChannels: 512
> Global Options: 0x31000000
> B1 protocols support: 0x0f0000c0
> 56 kbit/s bit-transparent operation
> Modem with all negotiations
> B2 protocols support: 0x0b0b0000
> B3 protocols support: 0x0f000080
> Modem
>
> 0100
> 0200
> 31000000
> 0f0000c0
> 0b0b0000
> 0f000080
> 00000000 00000000 00000000 00000000 00000000 00000000
> 01000001 00020000 00000000 00000000 00000000
> FAC REQ - Illegal command or subcommand or message length less than 12
> bytes (0x1102)
>
> Other capi applications doesn't also work so i think, the connection
> isn't established right. What I do wrong?
>
> Here some further details:
> Linux lansrv01 2.6.17.8-mh5_kurobox_hg #2 Sat Aug 19 01:49:26 CEST 2006
> ppc GNU/Linux
> - Kernel includes patch from http://www.bluez.org/patches.html
>
> I hope i give enough details so someone can help me, solving this problem.
>
> Kind regards
> Manuel Bernhardt
>
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users