Re: warmreset breaks communication with CSR8811

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tobi,

> i have problem connecting bluez (currently im using 5.49 from debian:unstable and linux-4.14) to my CSR8811 (connected via 2 wire UART).
> hciattach works and i can use some bccmd commands but when i do a warmreset (to activate my pskey changes) bluez seems unable to get a valid
> reply from the chip :-(
> 
> here my commands:
> 
> root@BLOKS ~# hciattach -s 38400 /dev/ttyS1 bcsp 38400 noflow
> Device setup complete
> root@BLOKS ~# hciconfig
> hci0:    Type: Primary  Bus: UART
>     BD Address: 00:02:5B:00:A5:A5  ACL MTU: 310:10  SCO MTU: 64:8
>     UP RUNNING
>     RX bytes:1314 acl:0 sco:0 events:41 errors:0
>     TX bytes:2583 acl:0 sco:0 commands:40 errors:0
> 
> root@BLOKS ~# bccmd -t HCI buildname
> Build name: gem_5hci_rom_bt4.1_gemA12_1407301204_dspm_encr128 2014-07-30
> root@BLOKS ~# bccmd -t HCI psload -s 0 /data/8811.psr
> Loading PSKEY_BDADDR ... done
> Loading PSKEY_ANA_FREQ ... done
> root@BLOKS ~# bccmd -t HCI warmreset
> root@BLOKS ~# hciconfig
> hci0:    Type: Primary  Bus: UART
>     BD Address: 00:02:5B:00:A5:A5  ACL MTU: 310:10  SCO MTU: 64:8
>     UP RUNNING
>     RX bytes:1639 acl:0 sco:0 events:47 errors:0
>     TX bytes:3587 acl:0 sco:0 commands:76 errors:0
> 
> root@BLOKS ~# bccmd -t HCI buildname
> Can't read version info for hci0: Connection timed out (110)
> root@BLOKS ~# bccmd -t HCI psload -s 0 /data/8811.psr
> Can't read version info for hci0: Connection timed out (110)
> root@BLOKS ~#

I am not surprised this fails since hciattach and BCSP is not really working well when you have to restart the controller. Have you tried to use the bcsp transport of bccmd tool? And only when that finished run hciattach.

Otherwise the BCSP support really needs to be convert into something that would work with btattach. I have not seen many using BCSP these days. Most switched to 3-Wire UART instead.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux