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.

Bluetooth initalization timed out issue on AM1707

Other Parts Discussed in Thread: AM1707, WL1271

Hi all,

I am using custom AM1707  board with Wl1271 chipset for BLUETOOTH . I am using DaVinci-PSP-SDK-03.20.00.14 kernel.

I am facing some issues in initialisation of bluetooth. Wl1271 is interfaced by UART1 to the Processor (AM1707)

I am using the command  " hciattach /dev/ttyS1 texas 2000000 " , which gives the error as Initialization timed out..

 

I have  observed some more issues those are as follows...

1. When i use the command

dbus-daemon --system , I got following message

Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory

I am unable to see /var/run/dbus itself..

 

2. When i use the command 

bluetoothd -nd  , I got following messages

bluetoothd[1082]: Bluetooth deamon 4.75
bluetoothd[1082]: src/main.c:parse_config() parsing main.conf
bluetoothd[1082]: src/main.c:parse_config() discovto=0
bluetoothd[1082]: src/main.c:parse_config() pairto=0
bluetoothd[1082]: src/main.c:parse_config() pageto=8192
bluetoothd[1082]: src/main.c:parse_config() name=%h-%d
bluetoothd[1082]: src/main.c:parse_config() class=0x000100
bluetoothd[1082]: src/main.c:parse_config() discov_interval=0
bluetoothd[1082]: src/main.c:parse_config() Key file does not have key 'DeviceID'
bluetoothd[1082]: Unable to get on D-Bus

According to me though the above two commands give some error, It should not effect the hciattach command. Please correct me if i am wrong. our main concern is the

Initialization timed out error

3. When i give the stty setting command before running hciattach

# stty -F /dev/ttyS1 -a

speed 9600 baud; rows 24; columns 80;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

and if i run again stty setting command after running hciattach

# stty -F /dev/ttyS1 -a

speed 115200 baud; rows 24; columns 80;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon
-ixoff -iuclc -ixany -imaxbel
-opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
-isig -icanon -iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

 

when i run BT_Init.sh then i got only Initialization timed out . We are using the correct firmware file TIInit_7.2.31.bts downloaded from TI  website.

Please suggest a solution for this.

thanks,

Lokesh