Skip to contentSkip to conversation

BGB204 Can't init device hci0: Connection timed out (110)

Bluez-devel device_driver 2 participants 5 messages Oct 17, 2006 – Nov 6, 2006 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hello, all
I'm using Philips(NXP)BGB204 bluetooth Sip under the Linux 2.6.9 kernel and ran into problems now. The scenario was as follows:

[root@trina zhangqh]# insmod bluetooth.ko
Using bluetooth.ko
Bluetooth: Core ver 2.6
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized

[root@trina zhangqh]# insmod hci_uart.ko
Using hci_uart.ko
Bluetooth: HCI UART driver ver 2.1
Bluetooth: HCI H4 protocol initialized

[root@trina zhangqh]# insmod l2cap.ko
Using l2cap.ko
Bluetooth: L2CAP ver 2.4
Bluetooth: L2CAP socket layer initialized

[root@trina zhangqh]# ./hciattach ttyS1 ericsson 115200 noflow
hci_uart_tty_open: tty c38ae000
hci_uart_tty_ioctl:
h4_open: hu c3dfac40
hci_uart_register_dev:
[root@trina zhangqh]# h4_recv: hu c3dfac40 count 1 rx_state 0 rx_count 0
h4_recv: Unknown HCI packet type 00

[root@trina zhangqh]# ./hciconfig
hci0: Type: UART
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0 DOWN
RX bytes:1 acl:0 sco:0 events:0 errors:1
TX bytes:0 acl:0 sco:0 commands:0 errors:0

[root@trina zhangqh]# ./hciconfig hci0 up
hci_uart_open: hci0 c0343c00
hci_uart_send_frame: hci0: type 1 len 3
h4_enqueue: hu c3dfac40 skb c396eb80 hci_uart_tx_wakeup:
hci_uart_tty_wakeup:
h4_recv: hu c3dfac40 count 1 rx_state 0 rx_count 0
h4_recv: Unknown HCI packet type 80
h4_recv: hu c3dfac40 count 1 rx_state 0 rx_count 0
h4_recv: SCO packet
h4_recv: hu c3dfac40 count 1 rx_state 3 rx_count 3 hci_uart_tx_wakeup:
h4_recv: hu c3dfac40 count 1 rx_state 3 rx_count 2
hci_uart_flush: hdev c0343c00 tty c38ae000
h4_flush: hu c3dfac40
hci_uart_close: hdev c0343c00
hci_uart_flush: hdev c0343c00 tty c38ae000
h4_flush: hu c3dfac40
Can't init device hci0: Connection timed out (110)

I searched in hciconfig.c and found this error was caused by ioctl(ctl, HCIDEVUP, hdev) when hciconfig up the hci0. Then who could tell me what is wrong during the procedure or give me a hint?

Thank you in advance

Qinghua

-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi,

Quoted 2 lines

I'm using Philips(NXP)BGB204 bluetooth Sip under the Linux 2.6.9 kernel and ran into problems now. The scenario was as follows:

I have a BGB208 for testing and have some similar problems. The 2.6.9 should work fine, but I would prefer if you test with a 2.6.18 kernel instead, because that one is more recent.

However the following line should attach the device correctly.

	./hciattach ttyS1 any 115200 flow

If you use the Ericsson id, it will start with 57600 and then try to switch into the higher baudrate. As far as I know all BGB from Philips boot up by default in 115200.

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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw

Re: [Bluez-devel] BGB204 Can't init d evice hci0: Connection timed out (110)

Thanks for your reply, Marcel.
I have tried as your instruction, i.e.,
./hciattach ttyS1 any 115200 flow
and get the same result.
And I "diff"ed the hci_h4.c file in linux-2.6.9 and linux-2.6.18 and found they are almost the same. Who has any ideas?
Thanks in advance.

-----原始邮件-----
发件人:"Marcel Holtmann"
发送时间:2006-10-19 01:20:19
收件人:"BlueZ development"
抄送:(无)
主题:Re: [Bluez-devel] BGB204 Can't init device hci0: Connection timed out (110)

From: "Marcel Holtmann"
To: "BlueZ development"
Date: Thu, 19 Oct 2006 01:20:19 +0800 (CST)
Subject: Re: [Bluez-devel] BGB204 Can't init device hci0: Connection timed out (110)

Quoted 23 lines

Hi,

Quoted 2 lines

I'm using Philips(NXP)BGB204 bluetooth Sip under the Linux 2.6.9 kernel and ran into problems now. The scenario was as follows:

I have a BGB208 for testing and have some similar problems. The 2.6.9 should work fine, but I would prefer if you test with a 2.6.18 kernel instead, because that one is more recent.

However the following line should attach the device correctly.

	./hciattach ttyS1 any 115200 flow

If you use the Ericsson id, it will start with 57600 and then try to switch into the higher baudrate. As far as I know all BGB from Philips boot up by default in 115200.

Regards

Marcel

Quoted 10 lines

-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#3 lore raw

Re: [Bluez-devel] BGB204 Can't init d evice hci0: Connection timed out (110)

It turns out to be a hardware design fault, and I have solved it by myself. Now I can freely transfer files to and from my board through this BGB204 bluetooth Sip. Thanks anyway

Best regards

Qinghua

在2006-10-23,"device_driver" <[email protected]> 写道:
From: "device_driver" <[email protected]>
To: "bluez development" <[email protected]>
Date: Mon, 23 Oct 2006 11:29:54 +0800 (CST)
Subject: Re: [Bluez-devel] BGB204 Can't init d evice hci0: Connection timed out (110)

Thanks for your reply, Marcel.
I have tried as your instruction, i.e.,
./hciattach ttyS1 any 115200 flow
and get the same result.
And I "diff"ed the hci_h4.c file in linux-2.6.9 and linux-2.6.18 and found they are almost the same. Who has any ideas?
Thanks in advance.

-----原始邮件-----
发件人:"Marcel Holtmann"
发送时间:2006-10-19 01:20:19
收件人:"BlueZ development"
抄送:(无)
主题:Re: [Bluez-devel] BGB204 Can't init device hci0: Connection timed out (110)

From: "Marcel Holtmann"

To: "BlueZ development"

Date: Thu, 19 Oct 2006 01:20:19 +0800 (CST)

Subject: Re: [Bluez-devel] BGB204 Can't init device hci0: Connection timed out (110)

Quoted 56 lines

Hi,

Quoted 3 lines

I'm using Philips(NXP)BGB204 bluetooth Sip under the Linux 2.6.9

kernel and ran into problems now. The scenario was as follows:

I have a BGB208 for testing and have some similar problems. The 2.6.9

should work fine, but I would prefer if you test with a 2.6.18 kernel

instead, because that one is more recent.

However the following line should attach the device correctly.

	./hciattach ttyS1 any 115200 flow

If you use the Ericsson id, it will start with 57600 and then try to

switch into the higher baudrate. As far as I know all BGB from Philips

boot up by default in 115200.

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

Quoted 9 lines

_______________________________________________

Bluez-devel mailing list

[email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-devel

-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#4 lore raw

Re: [Bluez-devel] BGB204 Can't init d evice hci0: Connection timed out (110)

Hi,

Quoted 4 lines

It turns out to be a hardware design fault, and I have solved it by myself.
Now I can freely transfer files to and from my board through this BGB204 bluetooth Sip.

can you tell us how you made it work.

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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel