This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can't init device CC2564B

Other Parts Discussed in Thread: CC2564, CC2560B, WL1271

I've got some serious problems with attaching PAN1326 (with CC2564B on it).

After sudo hciattach -n -t 180 /dev/ttyUSB1 texas 115200

sudo strace hciattach -n -t 180 /dev/ttyUSB1 texas 115200
execve("/usr/local/bin/hciattach", ["hciattach", "-n", "-t", "180", "/dev/ttyUSB1", "texas", "115200"], [/* 18 vars */]) = 0
brk(0)                                  = 0x226a000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f928a0c1000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=113383, ...}) = 0
mmap(NULL, 113383, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f928a0a5000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\37\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1845024, ...}) = 0
mmap(NULL, 3953344, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f9289adb000
mprotect(0x7f9289c96000, 2097152, PROT_NONE) = 0
mmap(0x7f9289e96000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bb000) = 0x7f9289e96000
mmap(0x7f9289e9c000, 17088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f9289e9c000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f928a0a4000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f928a0a2000
arch_prctl(ARCH_SET_FS, 0x7f928a0a2740) = 0
mprotect(0x7f9289e96000, 16384, PROT_READ) = 0
mprotect(0x616000, 4096, PROT_READ)     = 0
mprotect(0x7f928a0c3000, 4096, PROT_READ) = 0
munmap(0x7f928a0a5000, 113383)          = 0
rt_sigaction(SIGALRM, {0x402a90, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f9289b11c30}, NULL, 8) = 0
alarm(180)                              = 0
open("/dev/ttyUSB1", O_RDWR|O_NOCTTY)   = 3
ioctl(3, TCFLSH, 0x2)                   = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, TCFLSH, 0x2)                   = 0
write(3, "\1\1\20\0", 4)                = 4
read(3, "\4", 1)                        = 1
read(3, "\16", 2)                       = 1
read(3, "\f", 1)                        = 1
read(3, "\1\1\20\0\6\0\0\6\r\0\220\33", 12) = 12
write(2, "Found a Texas Instruments' chip!"..., 33Found a Texas Instruments' chip!
) = 33
write(2, "Firmware file : /lib/firmware/ti"..., 64Firmware file : /lib/firmware/ti-connectivity/TIInit_6.7.16.bts
) = 64
brk(0)                                  = 0x226a000
brk(0x228b000)                          = 0x228b000
open("/lib/firmware/ti-connectivity/TIInit_6.7.16.bts", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=3230, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f928a0c0000
read(4, "BTSB\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 3230
write(2, "Loaded BTS script version 1\n", 28Loaded BTS script version 1
) = 28
write(3, "\0016\377\4\0\302\1\0", 8)    = 8
read(3, "\4", 1)                        = 1
read(3, "\16", 2)                       = 1
read(3, "\4", 1)                        = 1
read(3, "\1", 4)                        = 1
read(3, "6\377", 3)                     = 2
read(3, "\0", 1)                        = 1
write(2, "texas: changing baud rate to 115"..., 55texas: changing baud rate to 115200, flow control to 1
) = 55
ioctl(3, TCFLSH, 0x2)                   = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, TCFLSH, 0x2)                   = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
write(3, "\0017\376\2\7\20", 6)         = 6
read(3, "\4", 1)                        = 1
read(3, "\16", 2)                       = 1
read(3, "\4", 1)                        = 1
read(3, "\1", 4)                        = 1
read(3, "7\376", 3)                     = 2
read(3, "\0", 1)                        = 1
write(3, "\1\5\377\377\320b\10\0\372\7\20G\1\0\0\0\0\0\0\0\0p\265\26M\256\177\1$\246F\22"..., 259) = 259
read(3, "\4", 1)                        = 1
read(3, "\16\4", 2)                     = 2
read(3, "\1\5", 4)                      = 2
read(3, "\377\0", 2)                    = 2
write(3, "\1\5\377\273\312c\10\0\266p\265\2i\324\216\25\217\245B\31\335\310!\213\\@!\31@\336\21\366"..., 191) = 191
read(3, "\4", 1)                        = 1
read(3, "\16\4", 2)                     = 2
read(3, "\1", 4)                        = 1
read(3, "\5\377", 3)                    = 2
read(3, "\0", 1)                        = 1
write(3, "\1\5\377\215x{\10\0\210\0\265\370\360A\372\0\2757d\10\0\0\0\0\0\0\0\0\0\0\0\0"..., 145) = 145
read(3, "\4", 1)                        = 1
read(3, "\16\4", 2)                     = 2
read(3, "\1\5\377\0", 4)                = 4
write(3, "\1\5\377\205\4\363\32\0\200\36\215\0\0\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"..., 137) = 137
read(3, "\4", 1)                        = 1
read(3, "\16\4", 2)                     = 2
read(3, "\1\5\377\0", 4)                = 4
write(3, "\1\5\377\241\0\0\30\0\234\360\265\37N\7\"2p\20#spG \260p\1$\364p\3 \34"..., 165) = 165
read(3, "\4", 1)                        = 1
read(3, "\16\4", 2)                     = 2
read(3, "\1\5", 4)                      = 2
read(3, "\377\0", 2)                    = 2
write(3, "\1\203\377\24y{\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 24) = 24
read(3, "\4", 1)                        = 1
read(3, "\16\4", 2)                     = 2
read(3, "\1\203", 4)                    = 2
read(3, "\377", 2)                      = 1
read(3, "\0", 1)                        = 1
nanosleep({0, 50000}, NULL)             = 0
ioctl(3, TCFLSH, 0x2)                   = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, TIOCSETD, [15])                = 0
ioctl(3, UI_BEGIN_FF_UPLOAD, 0x4)       = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, 0x7fff97865a30)       = 0
ioctl(3, UI_BEGIN_FF_ERASE, 0)          = 0
socket(PF_BLUETOOTH, SOCK_RAW|SOCK_CLOEXEC, 1) = 5
bind(5, {sa_family=AF_BLUETOOTH, sa_data="\0\0\0\0\0\0\3\0\0\0\0\0\0\0"}, 6) = 0
ioctl(5, HCIDEVUP, 0)                   = -1 EBUSY (Device or resource busy)
write(2, "Can't init device hci0: Device o"..., 52Can't init device hci0: Device or resource busy (16)) = 52
close(5)                                = 0
write(2, "Can't initialize device: Device "..., 49Can't initialize device: Device or resource busy
) = 49
exit_group(1)                           = ?
+++ exited with 1 +++

So, init script is loading, but when it want do up the interface, we receive EBUSY.

I'm attaching only when BT_RDY is logic low, by bluez version is 5.24 and i'm running on 3.13 kernel.

Could you provide me working firmware for this chip  ?

  • Hi,

    you can get the latest service pack from http://processors.wiki.ti.com/index.php/CC256x_Downloads

    It is also worth trying by disabling the Sleep in the script. You can use the Bluetooth hardware evaluation tool to do it, you can get it from our main wiki http://processors.wiki.ti.com/index.php/CC256x

  • Still, i cannot attach hciX on CC256x with firmware provided by site in previous post.

    Is there any way to debug it ? Or maybe is there any way to modify init script and recompiling it? 

    Are those scripts should be uploaded in sequence or only one of them ?

    When I skip the bootup procedure module is asking for BTS version 6.7.1, when I boot it up properly it's 6.7.16 , why? 

    PS. I can attach PAN1323 without any problems with software 6.6.15 for this particular module.

  • Hi,

    Have you tried disabling the sleep mode? and saving it as TIInit_6.6.15.bts?

    if yes Could you please provide me the SP that is working and non working firmware? also do you have any logs?

    Version request will be different before and after downloading the firmware. This is expected. You don't have to download it again.

  • Hi. I've used bluetooth_init_cc2564B_1.0_BT_Spec_4.0.bts - and switched of sleep mode.

    Nothing improved, i have no working firmware on 1626 module. 

    i'm sending strace below.

    sudo strace hciattach -s 115200 /dev/ttyUSB1 texas
    execve("/usr/local/bin/hciattach", ["hciattach", "-s", "115200", "/dev/ttyUSB1", "texas"], [/* 18 vars */]) = 0
    brk(0)                                  = 0x1dfc000
    access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4e67ef0000
    access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=114884, ...}) = 0
    mmap(NULL, 114884, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f4e67ed3000
    close(3)                                = 0
    access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
    open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\37\2\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=1845024, ...}) = 0
    mmap(NULL, 3953344, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4e6790a000
    mprotect(0x7f4e67ac5000, 2097152, PROT_NONE) = 0
    mmap(0x7f4e67cc5000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bb000) = 0x7f4e67cc5000
    mmap(0x7f4e67ccb000, 17088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f4e67ccb000
    close(3)                                = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4e67ed2000
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4e67ed0000
    arch_prctl(ARCH_SET_FS, 0x7f4e67ed0740) = 0
    mprotect(0x7f4e67cc5000, 16384, PROT_READ) = 0
    mprotect(0x616000, 4096, PROT_READ)     = 0
    mprotect(0x7f4e67ef2000, 4096, PROT_READ) = 0
    munmap(0x7f4e67ed3000, 114884)          = 0
    rt_sigaction(SIGALRM, {0x402a90, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f4e67940c30}, NULL, 8) = 0
    alarm(10)                               = 0
    open("/dev/ttyUSB1", O_RDWR|O_NOCTTY)   = 3
    ioctl(3, TCFLSH, 0x2)                   = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, TCFLSH, 0x2)                   = 0
    write(3, "\1\1\20\0", 4)                = 4
    read(3, "\4", 1)                        = 1
    read(3, "\16", 2)                       = 1
    read(3, "\f", 1)                        = 1
    read(3, "\1\1", 12)                     = 2
    read(3, "\20\0", 10)                    = 2
    read(3, "\6\0\0\6", 8)                  = 4
    read(3, "\r\0", 4)                      = 2
    read(3, "\220\33", 2)                   = 2
    write(2, "Found a Texas Instruments' chip!"..., 33Found a Texas Instruments' chip!
    ) = 33
    write(2, "Firmware file : /lib/firmware/ti"..., 64Firmware file : /lib/firmware/ti-connectivity/TIInit_6.7.16.bts
    ) = 64
    brk(0)                                  = 0x1dfc000
    brk(0x1e1d000)                          = 0x1e1d000
    open("/lib/firmware/ti-connectivity/TIInit_6.7.16.bts", O_RDONLY) = 4
    fstat(4, {st_mode=S_IFREG|0640, st_size=7093, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4e67eef000
    read(4, "BTSB\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
    write(2, "Loaded BTS script version 1\n", 28Loaded BTS script version 1
    ) = 28
    write(3, "\0016\377\4\0\302\1\0", 8)    = 8
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\0016\377\0", 4)               = 4
    write(2, "texas: changing baud rate to 115"..., 55texas: changing baud rate to 115200, flow control to 1
    ) = 55
    ioctl(3, TCFLSH, 0x2)                   = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, TCFLSH, 0x2)                   = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    write(3, "\1\3\377\0061O\10\0\1\0", 10) = 10
    read(3, "\4", 1)                        = 1
    read(3, "\16", 2)                       = 1
    read(3, "\4", 1)                        = 1
    read(3, "\1\3\377\0", 4)                = 4
    write(3, "\0017\376\2\7\20", 6)         = 6
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\0017\376\0", 4)               = 4
    write(3, "\1\5\377\377\320b\10\0\372\7\20G\f\0\0\0\0\0\0\0\0\360\265\210\260\2\220Gh\377 &"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\312c\10\0\372\1%\256F\16M\376D(G\5\230(0\5\220\0016\2.\307\323\2"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\304d\10\0\372\6$\324t!LLa\7$\224q L\214a\10$\234w\37K\313"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\276e\10\0\372\257\212\334H\207B\25\321! \201]\0)\21\320\377)\17\3200\34\1"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377", 4)                  = 3
    read(3, "\0", 1)                        = 1
    write(3, "\1\5\377\377\270f\10\0\372\350J\376D\20G\0 (p0\275\1x(\34\1#\236F\344K\376"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\262g\10\0\372\20\265\346I\347J]2\37 \0#\1$\246F\340L\376D G\20"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\254h\10\0\372\tx\1C)p\0015zH\3018\0x\0(\1\321\6 \0\340\7"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\246i\10\0\372\310h\220B$\321{H\0x\200\10 \322zHB\177\5*\34\321\2"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\240j\10\0\372\362O\10\0\202\4\0\0E\237\0\0\vl\10\0\251\206\0\0\370\265\26"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    read(4, "\10G\1\230pU\277&p]\1(\37\321\351\216*\217(\34\1#\236F\215K\376D\30G\3\4"..., 4096) = 2997
    write(3, "\1\5\377\377\232k\10\0\372\3\0\21\"\10\0P\27\10\0JV\10\0\0\4\32\0\265\365\4\0\202"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1", 4)                        = 1
    read(3, "\5\377\0", 3)                  = 3
    write(3, "\1\5\377\377\224l\10\0\372}H+0\374\275\1\34\n{\177H\0*\2\320\311i\2)\1\321c"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\216m\10\0\372RH\t0\367F\20\265\200iPI19\tx\0)\t\321\6$\4"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\210n\10\0\372\371\214\0\0\251\206\0\0\25\206\0\0\313g\10\0\241\213\4\0\255\231\0"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16", 2)                       = 1
    read(3, "\4", 1)                        = 1
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\3779\202o\10\0004\377\275\377\265hF\377\367\26\373\377\275\377\265hF\377\367\327\374\377\275\377"..., 61) = 61
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\215x{\10\0\210\0\265\370\360A\372\0\275\353k\10\0\267l\10\0\347l\10\0qm\10"..., 145) = 145
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\205\4\363\32\0\200\36\215\0\0:\337\2\0:\32\2\0d\206\2\0~\25\0\0,#\3"..., 137) = 137
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\355\0\0\30\0\350\360\265,N\7\"2p\20#spG \260p\f%\365p\3 )"..., 241) = 241
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\203\377\24y{\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 24) = 24
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\203\377\0", 4)              = 4
    nanosleep({0, 50000}, NULL)             = 0
    ioctl(3, TCFLSH, 0x2)                   = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, TIOCSETD, [15])                = 0
    ioctl(3, UI_BEGIN_FF_UPLOAD, 0x4)       = 0
    rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
    rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
    rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    nanosleep({1, 0}, 0x7fff28c065b0)       = 0
    ioctl(3, UI_BEGIN_FF_ERASE, 0)          = 1
    socket(PF_BLUETOOTH, SOCK_RAW|SOCK_CLOEXEC, 1) = 5
    bind(5, {sa_family=AF_BLUETOOTH, sa_data="\1\0\0\0\0\0\3\0\0\0\0\0\0\0"}, 6) = 0
    ioctl(5, HCIDEVUP, 0x1)                 = -1 EBUSY (Device or resource busy)
    write(2, "Can't init device hci1: Device o"..., 52Can't init device hci1: Device or resource busy (16)) = 52
    close(5)                                = 0
    write(2, "Can't initialize device: Device "..., 49Can't initialize device: Device or resource busy
    ) = 49
    exit_group(1)                           = ?
    +++ exited with 1 +++
    

    New packages are little bit smaller than standard 6.6.15 soft ~ 7 kb, instead of ~ 24.

  • Do You have any clues ? It's huge blocker for us and we just switched from 1323, because 1326B has many improvements in BLE.

  • Hi,

    Did you make sure that you are following the first three steps mentioned in: http://processors.wiki.ti.com/index.php/CC256x_Testing_Guide ?

    And what is the host processor you are using? 

    Could you please provide me the SP(BTS) that is working?

    Is it the same blueZ version between working/non working bts files?

  • Sundeep Mandava said:

    Hi,

    Did you make sure that you are following the first three steps mentioned in: http://processors.wiki.ti.com/index.php/CC256x_Testing_Guide ?

    Yes.

    And what is the host processor you are using? 

    It's not an embedded processor, i'm using USB<>RS232 adapter (with PL2303 uC), i'm having problems in initial prototyping phase.

    We have two types of modules : 

    PAN1323 with CC2564

    and 

    PAN 1326B with CC2564B

    I can succesful run PAN1323 with attached init script.

    What I cannot, is to run PAN1326 with any firmware from download page.

    Could you please provide me the SP(BTS) that is working?

    Attached. But it's for PAN1323, I can't init PAN1326B.

    7444.TIInit_6.6.15.tar.gz

    Is it the same blueZ version between working/non working bts files?

    Yes.

  • Mr. Mandava do you have any clues ? I can't debug anything else...

  • Hi,

    Could you pleas try the attached SP 1200.bluetooth_init_cc2564B_1.0_BT_Spec_4.1.zip

    Before that (downloading the SP) please read the local version information as mentioned here  http://processors.wiki.ti.com/index.php/CC256x_Testing_Guide#UART_Communication

    see the function texas_init() and get_firmware_name() for more details read https://github.com/pauloborges/bluez/blob/master/tools/hciattach_ti.c

  • Hi, 

    I did try firmware that You provided, with no success.

     sudo strace hciattach -s 115200 /dev/ttyUSB2 texas
    execve("/usr/local/bin/hciattach", ["hciattach", "-s", "115200", "/dev/ttyUSB2", "texas"], [/* 18 vars */]) = 0
    brk(0)                                  = 0xa09000
    access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f04ac843000
    access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=115045, ...}) = 0
    mmap(NULL, 115045, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f04ac826000
    close(3)                                = 0
    access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
    open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\37\2\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=1845024, ...}) = 0
    mmap(NULL, 3953344, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f04ac25d000
    mprotect(0x7f04ac418000, 2097152, PROT_NONE) = 0
    mmap(0x7f04ac618000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bb000) = 0x7f04ac618000
    mmap(0x7f04ac61e000, 17088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f04ac61e000
    close(3)                                = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f04ac825000
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f04ac823000
    arch_prctl(ARCH_SET_FS, 0x7f04ac823740) = 0
    mprotect(0x7f04ac618000, 16384, PROT_READ) = 0
    mprotect(0x616000, 4096, PROT_READ)     = 0
    mprotect(0x7f04ac845000, 4096, PROT_READ) = 0
    munmap(0x7f04ac826000, 115045)          = 0
    rt_sigaction(SIGALRM, {0x402a90, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f04ac293c30}, NULL, 8) = 0
    alarm(10)                               = 0
    open("/dev/ttyUSB2", O_RDWR|O_NOCTTY)   = 3
    ioctl(3, TCFLSH, 0x2)                   = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, TCFLSH, 0x2)                   = 0
    write(3, "\1\1\20\0", 4)                = 4
    read(3, ^CProcess 8699 detached
     <detached ...>
    gareth@gareth-thinkpad:~/Playground/seed-utils/bleTest$ sudo strace hciattach -s 115200 /dev/ttyUSB2 texas
    execve("/usr/local/bin/hciattach", ["hciattach", "-s", "115200", "/dev/ttyUSB2", "texas"], [/* 18 vars */]) = 0
    brk(0)                                  = 0x2538000
    access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdc0aade000
    access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=115045, ...}) = 0
    mmap(NULL, 115045, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fdc0aac1000
    close(3)                                = 0
    access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
    open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\37\2\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=1845024, ...}) = 0
    mmap(NULL, 3953344, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fdc0a4f8000
    mprotect(0x7fdc0a6b3000, 2097152, PROT_NONE) = 0
    mmap(0x7fdc0a8b3000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bb000) = 0x7fdc0a8b3000
    mmap(0x7fdc0a8b9000, 17088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fdc0a8b9000
    close(3)                                = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdc0aac0000
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdc0aabe000
    arch_prctl(ARCH_SET_FS, 0x7fdc0aabe740) = 0
    mprotect(0x7fdc0a8b3000, 16384, PROT_READ) = 0
    mprotect(0x616000, 4096, PROT_READ)     = 0
    mprotect(0x7fdc0aae0000, 4096, PROT_READ) = 0
    munmap(0x7fdc0aac1000, 115045)          = 0
    rt_sigaction(SIGALRM, {0x402a90, [], SA_RESTORER|SA_NOCLDSTOP, 0x7fdc0a52ec30}, NULL, 8) = 0
    alarm(10)                               = 0
    open("/dev/ttyUSB2", O_RDWR|O_NOCTTY)   = 3
    ioctl(3, TCFLSH, 0x2)                   = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, TCFLSH, 0x2)                   = 0
    write(3, "\1\1\20\0", 4)                = 4
    read(3, "\4", 1)                        = 1
    read(3, "\16\f", 2)                     = 2
    read(3, "\1\1\20\0\6\0\0\6\r\0\220\33", 12) = 12
    write(2, "Found a Texas Instruments' chip!"..., 33Found a Texas Instruments' chip!
    ) = 33
    write(2, "Firmware file : /lib/firmware/ti"..., 64Firmware file : /lib/firmware/ti-connectivity/TIInit_6.7.16.bts
    ) = 64
    brk(0)                                  = 0x2538000
    brk(0x2559000)                          = 0x2559000
    open("/lib/firmware/ti-connectivity/TIInit_6.7.16.bts", O_RDONLY) = 4
    fstat(4, {st_mode=S_IFREG|0640, st_size=6697, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdc0aadd000
    read(4, "BTSB\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
    write(2, "Loaded BTS script version 1\n", 28Loaded BTS script version 1
    ) = 28
    write(3, "\0016\377\4\0\302\1\0", 8)    = 8
    read(3, "\4", 1)                        = 1
    read(3, "\16", 2)                       = 1
    read(3, "\4", 1)                        = 1
    read(3, "\0016\377\0", 4)               = 4
    write(2, "texas: changing baud rate to 115"..., 55texas: changing baud rate to 115200, flow control to 1
    ) = 55
    ioctl(3, TCFLSH, 0x2)                   = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, TCFLSH, 0x2)                   = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    write(3, "\0017\376\2\7\20", 6)         = 6
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\0017\376\0", 4)               = 4
    write(3, "\1\5\377\377\320b\10\0\372\7\20G\f\0\0\0\0\0\0\0\0\360\265\210\260\2\220Gh\377 &"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\312c\10\0\372\1%\256F\16M\376D(G\5\230(0\5\220\0016\2.\307\323\2"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\304d\10\0\372\6$\324t!LLa\7$\224q L\214a\10$\234w\37K\313"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\276e\10\0\372\257\212\334H\207B\25\321! \201]\0)\21\320\377)\17\3200\34\1"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\270f\10\0\372\350J\376D\20G\0 (p0\275\1x(\34\1#\236F\344K\376"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\262g\10\0\372\20\265\346I\347J]2\37 \0#\1$\246F\340L\376D G\20"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\254h\10\0\372\tx\1C)p\0015zH\3018\0x\0(\1\321\6 \0\340\7"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\246i\10\0\372\310h\220B$\321{H\0x\200\10 \322zHB\177\5*\34\321\2"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\240j\10\0\372\362O\10\0\202\4\0\0E\237\0\0\vl\10\0\251\206\0\0\370\265\26"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\232k\10\0\372\3\0\21\"\10\0P\27\10\0JV\10\0\0\4\32\0\265\365\4\0\202"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\224l\10\0\372}H+0\374\275\1\34\n{\177H\0*\2\320\311i\2)\1\321c"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    read(4, "\t0\367F\20\265\200iPI19\tx\0)\t\321\6$\4p\0010\0!\1\"\226FLJ"..., 4096) = 2601
    write(3, "\1\5\377\377\216m\10\0\372RH\t0\367F\20\265\200iPI19\tx\0)\t\321\6$\4"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\210n\10\0\372\371\214\0\0\251\206\0\0\25\206\0\0\313g\10\0\241\213\4\0\255\231\0"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\3779\202o\10\0004\377\275\377\265hF\377\367\26\373\377\275\377\265hF\377\367\327\374\377\275\377"..., 61) = 61
    read(3, "\4", 1)                        = 1
    read(3, "\16", 2)                       = 1
    read(3, "\4", 1)                        = 1
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\215x{\10\0\210\0\265\370\360A\372\0\275\353k\10\0\267l\10\0\347l\10\0qm\10"..., 145) = 145
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\205\4\363\32\0\200\36\215\0\0:\337\2\0:\32\2\0d\206\2\0~\25\0\0,#\3"..., 137) = 137
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\355\0\0\30\0\350\360\265,N\7\"2p\20#spG \260p\f%\365p\3 )"..., 241) = 241
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\203\377\24y{\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 24) = 24
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\203\377\0", 4)              = 4
    nanosleep({0, 50000}, NULL)             = 0
    ioctl(3, TCFLSH, 0x2)                   = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, TIOCSETD, [15])                = 0
    ioctl(3, UI_BEGIN_FF_UPLOAD, 0x4)       = 0
    rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
    rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
    rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    nanosleep({1, 0}, 0x7fff202e1460)       = 0
    ioctl(3, UI_BEGIN_FF_ERASE, 0)          = 1
    socket(PF_BLUETOOTH, SOCK_RAW|SOCK_CLOEXEC, 1) = 5
    bind(5, {sa_family=AF_BLUETOOTH, sa_data="\1\0\0\0\0\0\3\0\0\0\0\0\0\0"}, 6) = 0
    ioctl(5, HCIDEVUP, 0x1)                 = -1 EBUSY (Device or resource busy)
    write(2, "Can't init device hci1: Device o"..., 52Can't init device hci1: Device or resource busy (16)) = 52
    close(5)                                = 0
    write(2, "Can't initialize device: Device "..., 49Can't initialize device: Device or resource busy
    ) = 49
    exit_group(1)                           = ?
    +++ exited with 1 +++
    

    I have exactly the same error as last time.

    And yes, I always make sure that BT_RDY is 0, and then I make hciattach.

    	memset(resp,'\0', 100);
    
    	/* It is possible to get software version with manufacturer specific
    	   HCI command HCI_VS_TI_Version_Number. But the only thing you get more
    	   is if this is point-to-point or point-to-multipoint module */
    
    	/* Get Manufacturer and LMP version */
    	cmd[0] = HCI_COMMAND_PKT;
    	cmd[1] = 0x01;
    	cmd[2] = 0x10;
    	cmd[3] = 0x00;

    I can read version from controller - you can see it in strace above ! 

    write(2, "Found a Texas Instruments' chip!"..., 33Found a Texas Instruments' chip!
    ) = 33
    write(2, "Firmware file : /lib/firmware/ti"..., 64Firmware file : /lib/firmware/ti-connectivity/TIInit_6.7.16.bts

    I can see that problem is in init script, from electronic point of view I can feel no difference between PAN1326 and PAN1323 - but I can init the second one!
  • Hi,

    Assuming that you have done the read firmware version before Bluetooth turn on.

    one more question, Did you rename the file I have provided to "TIInit_6.7.16.bts" and place it in folder "/lib/firmware/ti-connectivity/" and try?

  • Hi, 

    it's a fair assumption acording to strace that i gave You.  

    Of course I renamed, if i didn't You woldn't success i reading SP i strace above!

  • Hi,

    Read Local Version Information is a HCI command, reads the values for the version information for the local Controller from the controller. Depending on this It will decide which firmware version to download and downloads it.

    At this point if you don't have the file at the location it is looking for it will print out "Warning: cannot find BTS file:"  (this log is from Hciattach_ti.c file)

    So If you have the file in the location or not (before BT is on) you will get that logs.

    The reason I have asked if you have done it before downloading the BTS file is, it will change after downloading the bts.

  • Hi, 

    Yes I understand meaning of Read Local Version - it reads version from the controller, and it's nicely done. (See - strace above!!), you're right about version change after downloading bts file. It's determinig version, download it and upload it to device.

    That procedure is done, i'm changing name of SP that it could be downloaded by controller.

    It doesn't init properly anyway.

  • And I saw that you changed Sleep in SP, I've already done it.

  • Hi,

    Could you please provide your Email ID.

  • bartosz.sroka@seedlabs.io

  • Hi,

    Could you please provide the Firmware logs? as per the mail i have sent you

  • Hi,

    Could you please try increasing the the time out in function brf_send_command_socket() in file hciattach_ti.c

    From:

    if (hci_send_req(fd, &rq, 15) < 0) {

    To:

    if (hci_send_req(fd, &rq, 150) < 0) {

  • I've alredy tried this one. 

    sudo strace ./hciattach -s 115200 /dev/ttyUSB0 texas
    execve("./hciattach", ["./hciattach", "-s", "115200", "/dev/ttyUSB0", "texas"], [/* 18 vars */]) = 0
    brk(0)                                  = 0x1b0d000
    access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fca6e75d000
    access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=115327, ...}) = 0
    mmap(NULL, 115327, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fca6e740000
    close(3)                                = 0
    access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
    open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\37\2\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=1845024, ...}) = 0
    mmap(NULL, 3953344, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fca6e177000
    mprotect(0x7fca6e332000, 2097152, PROT_NONE) = 0
    mmap(0x7fca6e532000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bb000) = 0x7fca6e532000
    mmap(0x7fca6e538000, 17088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fca6e538000
    close(3)                                = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fca6e73f000
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fca6e73d000
    arch_prctl(ARCH_SET_FS, 0x7fca6e73d740) = 0
    mprotect(0x7fca6e532000, 16384, PROT_READ) = 0
    mprotect(0x616000, 4096, PROT_READ)     = 0
    mprotect(0x7fca6e75f000, 4096, PROT_READ) = 0
    munmap(0x7fca6e740000, 115327)          = 0
    rt_sigaction(SIGALRM, {0x402be0, [], SA_RESTORER|SA_NOCLDSTOP, 0x7fca6e1adc30}, NULL, 8) = 0
    alarm(10)                               = 0
    open("/dev/ttyUSB0", O_RDWR|O_NOCTTY)   = 3
    ioctl(3, TCFLSH, 0x2)                   = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, TCFLSH, 0x2)                   = 0
    write(3, "\1\1\20\0", 4)                = 4
    read(3, "\4", 1)                        = 1
    read(3, "\16\f", 2)                     = 2
    read(3, "\1\1", 12)                     = 2
    read(3, "\20\0", 10)                    = 2
    read(3, "\6\0", 8)                      = 2
    read(3, "\0\6", 6)                      = 2
    read(3, "\r", 4)                        = 1
    read(3, "\0", 3)                        = 1
    read(3, "\220\33", 2)                   = 2
    write(2, "Found a Texas Instruments' chip!"..., 33Found a Texas Instruments' chip!
    ) = 33
    write(2, "Firmware file : /lib/firmware/ti"..., 64Firmware file : /lib/firmware/ti-connectivity/TIInit_6.7.16.bts
    ) = 64
    brk(0)                                  = 0x1b0d000
    brk(0x1b2e000)                          = 0x1b2e000
    open("/lib/firmware/ti-connectivity/TIInit_6.7.16.bts", O_RDONLY) = 4
    fstat(4, {st_mode=S_IFREG|0644, st_size=6697, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fca6e75c000
    read(4, "BTSB\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
    write(2, "Loaded BTS script version 1\n", 28Loaded BTS script version 1
    ) = 28
    write(3, "\0016\377\4\0\302\1\0", 8)    = 8
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1", 4)                        = 1
    read(3, "6\377", 3)                     = 2
    read(3, "\0", 1)                        = 1
    write(2, "texas: changing baud rate to 115"..., 55texas: changing baud rate to 115200, flow control to 1
    ) = 55
    ioctl(3, TCFLSH, 0x2)                   = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, TCFLSH, 0x2)                   = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    write(3, "\0017\376\2\7\20", 6)         = 6
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1", 4)                        = 1
    read(3, "7\376", 3)                     = 2
    read(3, "\0", 1)                        = 1
    write(3, "\1\5\377\377\320b\10\0\372\7\20G\f\0\0\0\0\0\0\0\0\360\265\210\260\2\220Gh\377 &"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\312c\10\0\372\1%\256F\16M\376D(G\5\230(0\5\220\0016\2.\307\323\2"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\304d\10\0\372\6$\324t!LLa\7$\224q L\214a\10$\234w\37K\313"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\276e\10\0\372\257\212\334H\207B\25\321! \201]\0)\21\320\377)\17\3200\34\1"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\270f\10\0\372\350J\376D\20G\0 (p0\275\1x(\34\1#\236F\344K\376"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\262g\10\0\372\20\265\346I\347J]2\37 \0#\1$\246F\340L\376D G\20"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5", 4)                      = 2
    read(3, "\377\0", 2)                    = 2
    write(3, "\1\5\377\377\254h\10\0\372\tx\1C)p\0015zH\3018\0x\0(\1\321\6 \0\340\7"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\246i\10\0\372\310h\220B$\321{H\0x\200\10 \322zHB\177\5*\34\321\2"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377", 4)                  = 3
    read(3, "\0", 1)                        = 1
    write(3, "\1\5\377\377\240j\10\0\372\362O\10\0\202\4\0\0E\237\0\0\vl\10\0\251\206\0\0\370\265\26"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5", 4)                      = 2
    read(3, "\377\0", 2)                    = 2
    write(3, "\1\5\377\377\232k\10\0\372\3\0\21\"\10\0P\27\10\0JV\10\0\0\4\32\0\265\365\4\0\202"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\377\377\224l\10\0\372}H+0\374\275\1\34\n{\177H\0*\2\320\311i\2)\1\321c"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377", 4)                  = 3
    read(3, "\0", 1)                        = 1
    read(4, "\t0\367F\20\265\200iPI19\tx\0)\t\321\6$\4p\0010\0!\1\"\226FLJ"..., 4096) = 2601
    write(3, "\1\5\377\377\216m\10\0\372RH\t0\367F\20\265\200iPI19\tx\0)\t\321\6$\4"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5", 4)                      = 2
    read(3, "\377\0", 2)                    = 2
    write(3, "\1\5\377\377\210n\10\0\372\371\214\0\0\251\206\0\0\25\206\0\0\313g\10\0\241\213\4\0\255\231\0"..., 259) = 259
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377\0", 4)                = 4
    write(3, "\1\5\3779\202o\10\0004\377\275\377\265hF\377\367\26\373\377\275\377\265hF\377\367\327\374\377\275\377"..., 61) = 61
    read(3, "\4", 1)                        = 1
    read(3, "\16", 2)                       = 1
    read(3, "\4", 1)                        = 1
    read(3, "\1", 4)                        = 1
    read(3, "\5", 3)                        = 1
    read(3, "\377", 2)                      = 1
    read(3, "\0", 1)                        = 1
    write(3, "\1\5\377\215x{\10\0\210\0\265\370\360A\372\0\275\353k\10\0\267l\10\0\347l\10\0qm\10"..., 145) = 145
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1", 4)                        = 1
    read(3, "\5\377", 3)                    = 2
    read(3, "\0", 1)                        = 1
    write(3, "\1\5\377\205\4\363\32\0\200\36\215\0\0:\337\2\0:\32\2\0d\206\2\0~\25\0\0,#\3"..., 137) = 137
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5\377", 4)                  = 3
    read(3, "\0", 1)                        = 1
    write(3, "\1\5\377\355\0\0\30\0\350\360\265,N\7\"2p\20#spG \260p\f%\365p\3 )"..., 241) = 241
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\5", 4)                      = 2
    read(3, "\377", 2)                      = 1
    read(3, "\0", 1)                        = 1
    write(3, "\1\203\377\24y{\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 24) = 24
    read(3, "\4", 1)                        = 1
    read(3, "\16\4", 2)                     = 2
    read(3, "\1\203\377\0", 4)              = 4
    nanosleep({0, 500000}, NULL)            = 0
    ioctl(3, TCFLSH, 0x2)                   = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
    ioctl(3, TIOCSETD, [15])                = 0
    ioctl(3, UI_BEGIN_FF_UPLOAD, 0x4)       = 0
    rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
    rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
    rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    nanosleep({5, 0}, 0x7fffa4308dc0)       = 0
    ioctl(3, UI_BEGIN_FF_ERASE, 0)          = 1
    socket(PF_BLUETOOTH, SOCK_RAW|SOCK_CLOEXEC, 1) = 5
    bind(5, {sa_family=AF_BLUETOOTH, sa_data="\1\0\0\0\0\0\3\0\0\0\0\0\0\0"}, 6) = 0
    ioctl(5, HCIDEVUP, 0x1)                 = -1 EBUSY (Device or resource busy)
    write(2, "Can't init device hci1: Device o"..., 52Can't init device hci1: Device or resource busy (16)) = 52
    close(5)                                = 0
    write(2, "Can't initialize device: Device "..., 49Can't initialize device: Device or resource busy
    ) = 49
    exit_group(1)                           = ?
    +++ exited with 1 +++
    

    With no success, Can't initialize device ! 

    (I've used firmware that you provided earlier).

  • I too am having the same issue with the CC2560B module (actually the PAN1325B module).  We are getting the same errors, but we are using BlueZ 4.96.  We have been using the PAN1325A module with the 6.6.15.bts service pack just fine, but all attemtps at using the B module have failed.  

    I used the 5417.bts.zip referenced earlier in this thread.

    I have also tried the original download link (http://processors.wiki.ti.com/index.php/CC256x_Downloads)

    I have followed the steps in http://processors.wiki.ti.com/index.php/CC256x_Testing_Guide

    All to no avail.  I *ALWAYS* get the same error :

    hciattach -n -t 180 /dev/ttyS1 texas 115200
    Found a Texas Instruments' chip!
    Firmware file : 
    /lib/firmware/ti-connectivity/TIInit_6.7.16.bts
    Loaded BTS script version 
    1
    texas: changing baud rate to 115200, flow control to 1
    Can't init device 
    hci0: Device or resource busy (16)Can't initialize device: Device or resource busy

  • Hi,

    We are looking in to this issue. I will let you know once we have a update.

    Make sure you are having the patch for timeout as mentioned in the previous post. 

    Could you please try with the attached service packs (SP) and let me know if any of it is working?0066.CC2564B_SP.zip

    sorry that I have provided many SP to try, as blueZ is not the default stack we use. I could not try it on my side. On my set up all the SPs were working.

     

  • Hi, 

    I've tried patches that You provided in last post, with no success. You're using Bluetopia, right ? Can you present your setup, it will be very helpful - I could determine that maybe part of our chips are broken.

  • Sundeep


    We are using the CC2560B - not the CC2564B.  Will this Service Pack work for the 2560B?

  • Same error with 0066\.CC2564B_5F00_SP.zip

    Found a Texas Instruments' chip!
    Firmware file : /lib/firmware/TIInit_6.7.16.bts
    Loaded BTS script version 1
    Cannot send hci command to socket: Connection timed out
    Can't initialize device: Connection timed out
    Found a Texas Instruments' chip!
    Firmware file : /lib/firmware/TIInit_6.7.12.bts
    can't open firmware file: No such file or directory
    Warning: cannot find BTS file: /lib/firmware/TIInit_6.7.12.bts
    Device setup complete

  • Hi,

    Please increase the timeout value in line "if (hci_send_req(fd, &rq, 15) < 0) {", in file hciattach_ti.c, to higher value (let us say 1000 for time being) .

    And also I see that your module is looking for Service pack version TIInit_6.7.12.bts,  and it did not find it in the location "/lib/firmware",  please rename the file "onlyBT_TIInit_6.7.16.bts" from the files I have sent  to TIInit_6.7.12.bts and try. and let me know if you see any improvement.

  • No change.  I get this now :

    Found a Texas Instruments' chip!
    Firmware file : /lib/firmware/TIInit_6.7.16.bts
    Loaded BTS script version 1
    Cannot send hci command to socket: Connection timed out
    Can't initialize device: Connection timed out
    Found a Texas Instruments' chip!
    Firmware file : /lib/firmware/TIInit_6.7.12.bts
    Loaded BTS script version 1
    Initialization timed out.

  • Also, tried time out value off 1000 like you suggested, and 500 just to see if it made a difference.  It did not.  Neither value worked.

  • Hi,

    I just realised that you are trying to download the SP back to back with out toggling the nshudown GPIO.

    Because of which the version is changing. the second time.

    one of our customer was able to bring it up with blueZ, with these scripts  8765.CC256x_bluez.zip

    Just renaming to TIInit_6.7.16.bts. and incresing the time to 150 he was able to over com the below issue

    Cannot send hci command to socket: Connection timed out, It is strange it is not working. Hope your UART configuration and the clock inputs are fine.

  • Trying now. 

    The UART is fine.  Have been using it for almost three years now with its current settings without fault.  The only new element is the service pack and the PAN1325B module. The PAN1325A has been flawless but sadly now NRND.

  • That worked but I had to increase the time out to 250.

  • Hi,

    I have the exact same problem when trying to run on a PC,

    The funny thing is that the response to get local version is different the second time asked, thus the 12 instead of 16 in the bts file name. Ran with prints of the local version response. @sundeep it is not a question of having the wrong firmware, it is a question of the module presenting its minor version differently(!) the second time asked.

    bluez$ sudo ./tools/hciattach -n ttyUSB2 texas
    LV response

    0000  0x04 0x0e 0x0c 0x01 0x01 0x10 0x00 0x06 0x00 0x00
    0010  0x06 0x0d 0x00 0x90 0x1b 0x00 0x00 0x00 0x00 0x00
    Found a Texas Instruments' chip!
    Firmware file : /lib/firmware/ti-connectivity/TIInit_6.7.16.bts
    Sending script to serial device
    Loaded BTS script version 1
    texas: changing baud rate to 115200, flow control to 1
    CCCCCCCCCCCCCCCCCCCCWRCSCCCCCCCWRCCCCWRCCWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRCCCC
    Added device hci0
    Can't init device hci0: Device or resource busy (16)Can't initialize device: Device or resource busy
    bluez$ sudo ./tools/hciattach -n ttyUSB2 texas
    LV response

    0000  0x04 0x0e 0x0c 0x01 0x01 0x10 0x00 0x06 0x00 0x00
    0010  0x06 0x0d 0x00 0x8c 0x1b 0x00 0x00 0x00 0x00 0x00
    Found a Texas Instruments' chip!
    Firmware file : /lib/firmware/ti-connectivity/TIInit_6.7.12.bts
    Sending script to serial device
    Loaded BTS script version 1
    texas: changing baud rate to 115200, flow control to 1
    Initialization timed out.
    CCCCCCCCCCCCCCCCCCCCWRCSCCCCCCCWRCCCCWRCCWRW

    This means that the HCI interface never gets up for some reason and that the part after the deep sleep, if there is such a command in the firmware, is never run.

    The way it works in the hciattach_ti.c is that to start with the communication is done over the raw com port but with HCI commands. Later, when the deep sleep has been passed a socket is created by a call to hci_open_dev, this call is returns OK.

    It is the ioctl(HCIDEVUP) call that fails, which means that the setting of the send timeout is completely pointless in this case since the problem occurs before we are actually trying to send anything on the socket.

    The question is why the call to ioctl(HCIDEVUP) fails with EBUSY?

  • Hi,

    Yes, the read local version information will give you different results, before downloading the firmware(service pack) and after downloading the firmware. This is expected as SP will have the initialization settings which will change it.

    You need to reset the nSHUTDOWN (BT_EN), Before downloading the SP again.

    From what you have pasted (see below).
    Added device hci0
    Can't init device hci0: Device or resource busy (16)Can't initialize device: Device or resource busy

    It looks like the line discipline is not installed properly, Which is related to blueZ.

  • Hi,

    Bartosz Sroka said:

    Hi,

    Did you make sure that you are following the first three steps mentioned in: http://processors.wiki.ti.com/index.php/CC256x_Testing_Guide ?

    Yes.

    And what is the host processor you are using? 

    It's not an embedded processor, i'm using USB<>RS232 adapter (with PL2303 uC), i'm having problems in initial prototyping phase.

    We have two types of modules : 

    PAN1323 with CC2564

    and 

    PAN 1326B with CC2564B

    I can succesful run PAN1323 with attached init script.

    What I cannot, is to run PAN1326 with any firmware from download page.

    Could you please provide me the SP(BTS) that is working?

    Attached. But it's for PAN1323, I can't init PAN1326B.

    7444.TIInit_6.6.15.tar.gz

    Is it the same blueZ version between working/non working bts files?

    Yes.

    [/quote]

    The originator of this thread had the exact same problem. The same stack worked for him with the predecessor of the PAN1326B module, the PAN1323 module. This to me suggests that either the PAN1326B module is doing something strange or that the service pack is doing / contains something strange. I have a standard installation of Ubuntu 14.04 64 bit, 3.13 kernel with bluez 4.101. I as well as the originator of the thread use a USB to serial adapter.

    Did Bartosz get it to work on his setup? You went over to a mail conversation, making it a bit hard to follow if he was successful or not.

    Sundeep Mandava said:

    It looks like the line discipline is not installed properly, Which is related to blueZ.

    What do you mean with this? What line discipline is not installed properly? Would you please elaborate. What more specifically needs to be changed/installed?

    Best regards

    Jonas

  • Hi Jonas, 

    I didn't receive any proper solution, but i've beed occupied by other development tasks.

    If I have any solution i'll post if here.

  • Sundeep,
    what do you mean with your remark that the line discipline is not installed properly? I have another bluetooth module from another vendor that works just fine and the predescessor of PAN1326B, PAN1323 reportedly also works. The changing variable is the PAN1326B. So I would like some more information on what you mean.

    Best Regards
    Jonas
  • As I said in previous posts, variable is PAN1326B - other modules works fine!
  • Hello,
    are there any news on this topic?
    I experienced the same problem (EBUSY on ioctl HDIDEVUP) with CC2564/PAN1326 on Beaglebone Black using a custom kernel build from TI Kernel Sources from SKD 7 (ti2013.12.01) and bluez 4.101. It actually works well for me with Debian 7.7 with 3.8 kernel and bluez-4.101 using the bluetooth_init_cc2564B_1.0_BT_Spec_4.1.bts firmware.
    By now I'm not sure if it is caused by kernel version, kernel configuration or bluez configuration.
  •  I'm pretty curious about that You said. PAN1326 and PAN1326B are Dualmode BT and BLE modules, do You use them with kernel 3.8 and bluez-4.101, are You planning to use it's BLE capabilities? 

  • The ioctl(HCIDEVUP) fails with EBUSY (at least in my case) because an HCI command 0x2007 returned status 0x0C.
    I enabled BT_DBG with dynamic printk on hci_core.c: This revealed the failing command issued during hci initialization:

    ...
    hci0 Event packet
    opcode 0x2007 status 0x0c
    hci0 opcode 0x2007
    hci0 result 0x0c
    hci0 end: err -16
    ...

    I actually expect this patch to solve the initial problem wich i found googling after for the nth time:
    repository.timesys.com/.../linux-3.12-am335x-bt.patch

    From 6833cb1c398f376ca31595731fd46aff074820ff Mon Sep 17 00:00:00 2001
    From: Steve Schefter <steve.schefter@timesys.com>
    Date: Mon, 28 Jul 2014 15:32:33 -0400
    Subject: [PATCH] Remove certain LE commends when using WL12xx

    The firmware module for the WL1271 is TIInit_7.6.15.bts. Although the
    device is supposed to be LE capable, the latest version of the firmware
    from github.com/.../am335x does not
    support some of the LE commands in this kernel. Instead it returns status
    12 and the hciattach command fails. Not issuing these 3 LE commands from
    the host allows the BT stack to start up.

    Signed-off-by: Steve Schefter <steve.schefter@timesys.com>
    ---
    net/bluetooth/hci_core.c | 6 ++++++
    1 file changed, 6 insertions(+)

    diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
    index fb7356f..1478992 100644
    --- a/net/bluetooth/hci_core.c
    +++ b/net/bluetooth/hci_core.c
    @@ -381,14 +381,18 @@ static void le_setup(struct hci_request *req)
    /* Read LE Local Supported Features */
    hci_req_add(req, HCI_OP_LE_READ_LOCAL_FEATURES, 0, NULL);

    +#ifndef CONFIG_WL12XX
    /* Read LE Advertising Channel TX Power */
    hci_req_add(req, HCI_OP_LE_READ_ADV_TX_POWER, 0, NULL);
    +#endif

    /* Read LE White List Size */
    hci_req_add(req, HCI_OP_LE_READ_WHITE_LIST_SIZE, 0, NULL);

    +#ifndef CONFIG_WL12XX
    /* Read LE Supported States */
    hci_req_add(req, HCI_OP_LE_READ_SUPPORTED_STATES, 0, NULL);
    +#endif

    /* LE-only controllers have LE implicitly enabled */
    if (!lmp_bredr_capable(hdev))
    @@ -505,12 +509,14 @@ static void hci_setup_event_mask(struct hci_request *req)

    hci_req_add(req, HCI_OP_SET_EVENT_MASK, sizeof(events), events);

    +#ifndef CONFIG_WL12XX
    if (lmp_le_capable(hdev)) {
    memset(events, 0, sizeof(events));
    events[0] = 0x1f;
    hci_req_add(req, HCI_OP_LE_SET_EVENT_MASK,
    sizeof(events), events);
    }
    +#endif
    }

    static void hci_init2_req(struct hci_request *req, unsigned long opt)
    --
    1.7.9.5
  • Yes, I am planning to use it as an BLE peripheral with a 3.12 kernel and bluez 4.101 or later.
  • Hi,

    Did you already found an answer on the device busy problem? Cause I have the same issue with the CC2564:

    I use bluez on a raspberry pi 2 and all drivers are set in "make menuconfig" and the kernel is recompiled.

    When I attach the device the BD address is filled in and everything seems fine but when:

    $hciconfig hci0 up

    $Can't init device hci0: Device or resource busy (16)

    The code in hciconfig.c calls the function ioctl:

    When I check with a logic state analyser, I see that when I press the command to set hci0 up: a few packets are sent and answered by the cc2564 (see all packets below). But these packets seems normal. Also under Windows the CC2564 works without problem so I don't thinks it's an hardware issue.

    Any ideas what could cause this problem?

    Thanks in advance!

    David

    Time [s] Value TX Value RX
    1.138883464000000 0x01
    1.138970132000000 0x03
    1.139056798000000 0x10
    1.139143466000000 0x00
    1.139541302000000 0x04
    1.139628178000000 0x0E
    1.139715054000000 0x0C
    1.139801930000000 0x01
    1.139888806000000 0x03
    1.139975558000000 0x10
    1.140062434000000 0x00
    1.140149310000000 0xFF
    1.140236186000000 0xFE
    1.140323062000000 0x2D
    1.140409938000000 0xFE
    1.140496814000000 0xDB
    1.140583564000000 0xFF
    1.140670440000000 0x7B
    1.140757316000000 0x87
    1.141603136000000 0x01
    1.141689804000000 0x01
    1.141776470000000 0x10
    1.141863138000000 0x00
    1.142304460000000 0x04
    1.142391336000000 0x0E
    1.142478212000000 0x0C
    1.142565088000000 0x01
    1.142651964000000 0x01
    1.142738840000000 0x10
    1.142825716000000 0x00
    1.142912468000000 0x06
    1.142999344000000 0x00
    1.143086220000000 0x00
    1.143173096000000 0x06
    1.143259972000000 0x0D
    1.143346848000000 0x00
    1.143433724000000 0x0F
    1.143520474000000 0x1B
    1.144066478000000 0x01
    1.144153144000000 0x09
    1.144239810000000 0x10
    1.144326478000000 0x00
    1.144720864000000 0x04
    1.144807616000000 0x0E
    1.144894492000000 0x0A
    1.144981368000000 0x01
    1.145068244000000 0x09
    1.145155120000000 0x10
    1.145241996000000 0x00
    1.145328872000000 0x2F
    1.145415622000000 0xDD
    1.145502500000000 0xD3
    1.145589374000000 0x2F
    1.145676250000000 0x18
    1.145763128000000 0x00
    1.146405150000000 0x01
    1.146491816000000 0x05
    1.146578482000000 0x10
    1.146665150000000 0x00
    1.147058392000000 0x04
    1.147145268000000 0x0E
    1.147232020000000 0x0B
    1.147318896000000 0x01
    1.147405772000000 0x05
    1.147492648000000 0x10
    1.147579524000000 0x00
    1.147666400000000 0xFD
    1.147753276000000 0x03
    1.147840028000000 0xB4
    1.147926904000000 0x04
    1.148013778000000 0x00
    1.148100654000000 0x04
    1.148187532000000 0x00
    1.148749488000000 0x01
    1.148836154000000 0x23
    1.148922822000000 0x0C
    1.149009488000000 0x00
    1.149390296000000 0x04
    1.149477172000000 0x0E
    1.149564048000000 0x07
    1.149650924000000 0x01
    1.149737800000000 0x23
    1.149824552000000 0x0C
    1.149911426000000 0x00
    1.149998302000000 0x00
    1.150085180000000 0x1F
    1.150172056000000 0x00
    1.150682492000000 0x01
    1.150769160000000 0x14
    1.150855826000000 0x0C
    1.150942492000000 0x00
    1.151324570000000 0x04
    1.151411444000000 0x0E
    1.151498322000000 0xFC
    1.151585196000000 0x01
    1.151671948000000 0x14
    1.151758824000000 0x0C
    1.151845700000000 0x00
    1.151932576000000 0x00
    1.152019452000000 0x00
    1.152106328000000 0xD3
    1.152193204000000 0x2F
    1.152279956000000 0x18
    1.152366832000000 0x00
    1.152453708000000 0x0F
    1.152540584000000 0x1B
    1.152627460000000 0x19
    1.152714336000000 0xAA
    1.152801212000000 0xCF
    1.152887962000000 0x52
    1.152974838000000 0x62
    1.153061716000000 0x9D
    1.153148592000000 0xA5
    1.153235468000000 0x8F
    1.153322344000000 0xAF
    1.153409220000000 0x6B
    1.153495970000000 0x99
    1.153582846000000 0x53
    1.153669722000000 0x7E
    1.153756598000000 0xD4
    1.153843474000000 0x02
    1.153930350000000 0x99
    1.154017226000000 0xFC
    1.154103978000000 0x43
    1.154190854000000 0x39
    1.154277730000000 0xE3
    1.154364606000000 0xE1
    1.154451482000000 0x0B
    1.154538358000000 0xBD
    1.154625234000000 0xD3
    1.154711986000000 0x91
    1.154798860000000 0xF6
    1.154885738000000 0x4F
    1.154972612000000 0x22
    1.155059490000000 0x09
    1.155146366000000 0x72
    1.155233242000000 0x1F
    1.155319992000000 0xBD
    1.155406868000000 0x6B
    1.155493744000000 0xFF
    1.155580620000000 0x1A
    1.155667496000000 0xFA
    1.155754372000000 0xA0
    1.155841248000000 0xA4
    1.155928000000000 0x55
    1.156014876000000 0x52
    1.156101752000000 0xA1
    1.156188628000000 0x3C
    1.156275504000000 0x9F
    1.156362380000000 0xFA
    1.156449256000000 0xFD
    1.156536008000000 0xD3
    1.156622884000000 0xDA
    1.156709760000000 0x83
    1.156796634000000 0x80
    1.156883512000000 0xE2
    1.156970388000000 0x15
    1.157057264000000 0x78
    1.157144014000000 0x31
    1.157230890000000 0x03
    1.157317766000000 0x31
    1.157404642000000 0xD3
    1.157491518000000 0xF2
    1.157578394000000 0x15
    1.157665270000000 0x25
    1.157752022000000 0x9D
    1.157838898000000 0x59
    1.157925774000000 0xF8
    1.158012650000000 0x71
    1.158099526000000 0xC6
    1.158186402000000 0xE3
    1.158273278000000 0x0A
    1.158360028000000 0x52
    1.158446904000000 0x3E
    1.158533782000000 0xBC
    1.158620658000000 0xC5
    1.158707534000000 0x62
    1.158794408000000 0x05
    1.158881286000000 0x6D
    1.158968036000000 0x8A
    1.159054912000000 0x5B
    1.159141788000000 0x1B
    1.159228664000000 0x6A
    1.159315540000000 0xB5
    1.159402416000000 0x02
    1.159489292000000 0xBE
    1.159576044000000 0x19
    1.159662920000000 0x7A
    1.159749796000000 0xED
    1.159836672000000 0x66
    1.159923548000000 0x17
    1.160010424000000 0x8B
    1.160097300000000 0x12
    1.160184050000000 0x35
    1.160270926000000 0x70
    1.160357802000000 0xC1
    1.160444680000000 0x2A
    1.160531556000000 0xE6
    1.160618432000000 0xC0
    1.160705308000000 0x61
    1.160792058000000 0x68
    1.160878934000000 0x55
    1.160965810000000 0x3A
    1.161052686000000 0x50
    1.161139562000000 0xB5
    1.161226438000000 0x87
    1.161313314000000 0x82
    1.161400066000000 0xDE
    1.161486942000000 0x69
    1.161573818000000 0x29
    1.161660694000000 0x57
    1.161747570000000 0xBC
    1.161834446000000 0x82
    1.161921322000000 0xA2
    1.162008072000000 0xA4
    1.162094950000000 0xD1
    1.162181824000000 0x17
    1.162268700000000 0x9E
    1.162355578000000 0xF8
    1.162442454000000 0x3E
    1.162529330000000 0x1B
    1.162616080000000 0x1D
    1.162702956000000 0xFF
    1.162789832000000 0xDD
    1.162876708000000 0x72
    1.162963584000000 0xC9
    1.163050460000000 0x22
    1.163137336000000 0x5B
    1.163224088000000 0xD3
    1.163310964000000 0x8F
    1.163397840000000 0xB3
    1.163484716000000 0xD7
    1.163571592000000 0xE4
    1.163658468000000 0xC6
    1.163745344000000 0x95
    1.163832094000000 0x18
    1.163918970000000 0x75
    1.164005846000000 0xB7
    1.164092722000000 0x0F
    1.164179598000000 0xDC
    1.164266476000000 0xEC
    1.164353352000000 0x1E
    1.164440102000000 0x9B
    1.164526978000000 0x93
    1.164613854000000 0x4F
    1.164700730000000 0x84
    1.164787606000000 0x8B
    1.164874482000000 0xF1
    1.164961358000000 0x9F
    1.165048110000000 0xFA
    1.165134986000000 0x52
    1.165221862000000 0x1E
    1.165308738000000 0x52
    1.165395614000000 0xFF
    1.165482490000000 0x83
    1.165569366000000 0x25
    1.165656116000000 0xEC
    1.165742992000000 0xC4
    1.165829870000000 0x61
    1.165916744000000 0xE9
    1.166003620000000 0x83
    1.166090496000000 0x8F
    1.166177374000000 0x93
    1.166264124000000 0x19
    1.166351000000000 0x56
    1.166437876000000 0xAC
    1.166524752000000 0xF9
    1.166611628000000 0x21
    1.166698504000000 0x60
    1.166785380000000 0x5E
    1.166872132000000 0xEE
    1.166959008000000 0xD3
    1.167045884000000 0xFD
    1.167132760000000 0x17
    1.167219636000000 0xC2
    1.167306512000000 0x32
    1.167393388000000 0xB1
    1.167480138000000 0x75
    1.167567014000000 0x41
    1.167653890000000 0x62
    1.167740766000000 0x51
    1.167827642000000 0x9C
    1.167914518000000 0x47
    1.168001396000000 0xF6
    1.168088146000000 0xCB
    1.168175022000000 0xD3
    1.168261898000000 0x6E
    1.168348774000000 0x30
    1.168435650000000 0x3B
    1.168522526000000 0xD0
    1.168609402000000 0x9F
    1.168696154000000 0x58
    1.168783030000000 0x9A
    1.168869906000000 0x41
    1.168956782000000 0x7D
    1.169043658000000 0xCB
    1.169130534000000 0x16
    1.169217410000000 0x6B
    1.169304160000000 0xD6
    1.169391036000000 0x8C
    1.169477912000000 0xB7
    1.169564790000000 0x23
    1.169651664000000 0xBB
    1.169738540000000 0x80
    1.169825418000000 0xE2
    1.169912168000000 0xD2
    1.169999044000000 0x60
    1.170085920000000 0xF7
    1.170172796000000 0xBC
    1.170259672000000 0x8D
    1.170346548000000 0x02
    1.170433424000000 0xBD
    1.170520176000000 0x5D
    1.170607052000000 0x5D
    1.170693928000000 0x3F
    1.170780804000000 0x0B
    1.170867680000000 0xC3
    1.170954556000000 0x47
    1.171041432000000 0xF7
    1.171128182000000 0xDE
    1.171215058000000 0x39
    1.171301934000000 0xF1
    1.171388810000000 0x4F
    1.171475688000000 0x0C
    1.171562562000000 0xB9
    1.171649440000000 0x9F
    1.171736190000000 0xF0
    1.171823066000000 0x68
    1.171909942000000 0x4C
    1.171996818000000 0xFB
    1.172083694000000 0xA0
    1.172170570000000 0x03
    1.172257446000000 0x02
    1.172344198000000 0x22
    1.172431074000000 0x82
    1.172517950000000 0x4A
    1.172604826000000 0x66
    1.172691702000000 0x37
    1.172778578000000 0x82
    1.172865454000000 0xAB
    1.172952204000000 0xDA
    1.173039080000000 0xC0
    1.173125958000000 0x16
    1.173212832000000 0xAC
    1.173299710000000 0xF6
    1.173386586000000 0x53
    1.174006882000000 0x01
    1.174093548000000 0x25
    1.174180214000000 0x0C
    1.174266882000000 0x00
    1.174655850000000 0x04
    1.174742726000000 0x0E
    1.174829602000000 0x06
    1.174916478000000 0x01
    1.175003354000000 0x25
    1.175090230000000 0x0C
    1.175176982000000 0x00
    1.175263858000000 0x60
    1.175350734000000 0x00
    1.175873884000000 0x01
    1.175960552000000 0x38
    1.176047220000000 0x0C
    1.176133886000000 0x00
    1.176520498000000 0x04
    1.176607374000000 0x0E
    1.176694250000000 0x05
    1.176781126000000 0x01
    1.176868002000000 0x38
    1.176954878000000 0x0C
    1.177041754000000 0x00
    1.177128504000000 0x05
    1.177393222000000 0x01
    1.177479890000000 0x39
    1.177566556000000 0x0C
    1.177653222000000 0x00
    1.178045392000000 0x04
    1.178132268000000 0x0E
    1.178219144000000 0x08
    1.178306020000000 0x01
    1.178392770000000 0x39
    1.178479646000000 0x0C
    1.178566522000000 0x00
    1.178653398000000 0x01
    1.178740274000000 0x33
    1.178827150000000 0x8B
    1.178914026000000 0x9E
    1.179471228000000 0x01
    1.179557894000000 0x05
    1.179644560000000 0x0C
    1.179731228000000 0x01
    1.179817894000000 0x00
    1.180185918000000 0x04
    1.180272668000000 0x0E
    1.180359544000000 0x04
    1.180446420000000 0x01
    1.180533296000000 0x05
    1.180620172000000 0x0C
    1.180707048000000 0x00
    1.181249896000000 0x01
    1.181336564000000 0x16
    1.181423230000000 0x0C
    1.181509900000000 0x02
    1.181596566000000 0x00
    1.181683232000000 0x7D
    1.182046440000000 0x04
    1.182133316000000 0x0E
    1.182220192000000 0x04
    1.182307068000000 0x01
    1.182393944000000 0x16
    1.182480694000000 0x0C
    1.182567570000000 0x00
    1.183114236000000 0x01
    1.183200902000000 0x02
    1.183287568000000 0x20
    1.183374236000000 0x00
    1.183782086000000 0x04
    1.183868962000000 0x0E
    1.183955838000000 0x07
    1.184042714000000 0x01
    1.184129590000000 0x02
    1.184216340000000 0x20
    1.184303216000000 0x00
    1.184390092000000 0x1B
    1.184476968000000 0x00
    1.184563844000000 0x0F
    1.185071574000000 0x01
    1.185158240000000 0x03
    1.185244906000000 0x20
    1.185331574000000 0x00
    1.185760984000000 0x04
    1.185847860000000 0x0E
    1.185934736000000 0x0C
    1.186021612000000 0x01
    1.186108488000000 0x03
    1.186195364000000 0x20
    1.186282240000000 0x00
    1.186368992000000 0x00
    1.186455868000000 0x00
    1.186542744000000 0x00
    1.186629620000000 0x00
    1.186716496000000 0x00
    1.186803372000000 0x00
    1.186890248000000 0x00
    1.186976998000000 0x00
    1.187525578000000 0x01
    1.187612246000000 0x1C
    1.187698912000000 0x20
    1.187785580000000 0x00
    1.188220014000000 0x04
    1.188306890000000 0x0E
    1.188393766000000 0x08
    1.188480516000000 0x01
    1.188567392000000 0x1C
    1.188654270000000 0x20
    1.188741144000000 0x0C
    1.188828020000000 0x05
    1.188914898000000 0x1F
    1.189001774000000 0x00
    1.189088524000000 0x06
  • closing old thread. pls open new thread if issue persists
    Saurabh
  • Hi

    I'm facing a similar issue. Did you solve it with that patch?
    After applying it, HCI initialization goes on, but now it's command HCI_OP_LE_SET_ADV_DATA to fail with EBUSY, returning 0x0C
    Maybe there are further patches, or a newer firmware...
    I don't know how to continue, I cannot integrate bluez-5.45 on my Linux platform