From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Message-ID: <453447B2.000105.05297@bj126app48.126.com> Date: Tue, 17 Oct 2006 11:02:10 +0800 (CST) From: "device_driver" To: "bluez development" Subject: [Bluez-devel] BGB204 Can't init device hci0: Connection timed out (110) Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0665384356==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============0665384356== Content-Type: Multipart/Alternative; boundary="Boundary-=_giBpNvlDrxGdyfKfeIYTgwRUGrmf" --Boundary-=_giBpNvlDrxGdyfKfeIYTgwRUGrmf Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit 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 --Boundary-=_giBpNvlDrxGdyfKfeIYTgwRUGrmf Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
Hello, all
I'm using Philips(NXP)BGB204 bluetooth Sip under the L= inux 2.6.9 kernel and ran into problems now. The scenario was as follows:=

[root@trina zhangqh]# insmod bluetooth.ko
Using blu= etooth.ko
Bluetooth: Core ver 2.6
NET: Registered protocol family 3= 1
Bluetooth: HCI device and connection manager initialized
Bluetoot= h: HCI socket layer initialized

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

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

[root@trina zhangqh]# ./hciattach ttyS1 e= ricsson 115200 noflow
hci_uart_tty_open: tty c38ae000
hci_uart_tty_= ioctl:
h4_open: hu c3dfac40
hci_uart_register_dev:
[root@trina z= hangqh]# h4_recv: hu c3dfac40 count 1 rx_state 0 rx_count 0
h4_recv: U= nknown HCI packet type 00

[root@trina zhangqh]# ./hciconfig
hci= 0:   Type: UART
        B= D Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
  &nb= sp;     DOWN
      &= nbsp; RX bytes:1 acl:0 sco:0 events:0 errors:1
    = ;    TX bytes:0 acl:0 sco:0 commands:0 errors:0

[ro= ot@trina zhangqh]# ./hciconfig hci0 up
hci_uart_open: hci0 c0343c00hci_uart_send_frame: hci0: type 1 len 3
h4_enqueue: hu c3dfac40 skb c= 396eb80
hci_uart_tx_wakeup:
hci_uart_tty_wakeup:
h4_recv: hu c3d= fac40 count 1 rx_state 0 rx_count 0
h4_recv: Unknown HCI packet type 8= 0
h4_recv: hu c3dfac40 count 1 rx_state 0 rx_count 0
h4_recv: SCO p= acket
h4_recv: hu c3dfac40 count 1 rx_state 3 rx_count 3
hci_uart_t= x_wakeup:
h4_recv: hu c3dfac40 count 1 rx_state 3 rx_count 2
hci_ua= rt_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 ioct= l(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 i= n advance

Qinghua



 
 = ;






<= div style=3D"border-bottom:1px solid #999">
=0A=0A=09=BC=AB =C6=B7 =C3=C0 =C5=AE =B5=E4 = =B2=D8 ( =B6=E0 =CD=BC ) =0A=09
=0A=09 =BE=F8 =B6=D4 =D5=E6 =CA=B5 ! =C0=CF =C6=C5 =D7=F2 =CD=ED =BA=DC = =C1=ED =C0=E0 , =B4=F3 =BC=D2 =BF=B4 =BF=B4 =CB=FD =CA=C7 =C9=B6 =D1=F9 (= =D7=E9 =CD=BC )=0A=0A --Boundary-=_giBpNvlDrxGdyfKfeIYTgwRUGrmf-- --===============0665384356== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --===============0665384356== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============0665384356==--