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.

How to enable bluetooth while booting kernel using uim -wl1835

Other Parts Discussed in Thread: WL1835

Hi

I'm using wl1835 module for my custom board which makes use of Wifi and Bluetooth of WL1835.

I want to bring up both interfaces on booting.

Initially I tried to bring up BT after login-in by performing the following action.(This pattern only gave the correct initialization)

root@arm:~# modprobe st_drv
root@arm:~# uim &
then it showed
root@arm:~# uim:@ main
uim:begin polling...
and I had to press enter as confirmation,then
root@arm:~# modprobe btwilink
then it gave response as
root@arm:~# uim:poll broke due to event 10(PRI:2/ERR:8)

uim:poll broke due to event 10(PRI:2/ERR:8)

uim:read 1 from install

uim:@ st_uart_config
uim:read 1 from install

uim:@ st_uart_config
uim: signal received, opening /dev/ttyO0
uim: signal received, opening /dev/ttyO0
uim:@ set_baud_rate
uim:@ set_baud_rate
uim:set_baud_rate() done
uim:Setting speed to 1000000
uim:@ read_command_complete
uim: Command complete started
uim:@ read_hci_event
uim: read_hci_event
uim:set_baud_rate() done
uim:Setting speed to 1000000
uim:@ read_command_complete
uim: Command complete started
uim:@ read_hci_event
uim: read_hci_event
uim:Command complete done
uim:Speed changing to 1000000, 1
uim:@ set_custom_baud_rate
uim:Installed N_TI_WL Line displine
uim:begin polling...
uim:Invalid response
uim:begin polling...

now the interface was up and able to scan and send files


Since I have to do this in booting of kernel itself and this much of prints while booting
, But it was showing some inconsistency.... like these prints were repeating as it was broken during the line of action, attaching the log along with

udhcpd: Disabled. Edit /etc/default/udhcpd to enable it.
 * Stopping OpenSSH server[ OK ]
 * Starting OpenSSH server[ OK ]
 * Starting Mount network filesystems[ OK ]
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'Serve
rName' directive globally to suppress this message
 * 
 * Stopping Mount network filesystems[ OK ]
 * Starting configure virtual network devices[ OK ]
uim:@ main
uim:@ main
uim:begin polling...
 * Starting configure network device security[ OK ]
uim:poll broke due to event 10(PRI:2/ERR:8)

uim:read 1 from install 

uim:@ st_uart_config
uim: signal received, opening /dev/ttyO0
uim:@ set_baud_rate
uim:set_baud_rate() done
uim:Setting speed to 1000000
uim:@ read_command_complete
uim: Command complete started
uim:@ read_hci_event
uim: read_hci_event
uim:poll broke due to event 10(PRI:2/ERR:8)

uim:read 1 from install 

uim:@ st_uart_config
uim: signal received, opening /dev/ttyO0
uim:@ set_baud_rate
uim:set_baud_rate() done
uim:Setting speed to 1000000
uim:@ read_command_complete
uim: Command complete started
uim:@ read_hci_event
uim: read_hci_event
 * Stopping System V runlevel compatibility[ OK ]
uim:Invalid response
uim:begin polling...
uim:Invalid response
uim:begin polling...
 * Starting configure network device[ OK ]
[   50.898956] (stk) :ldisc installation timeoutuim:poll broke due to event 10(PRI:2/ERR:8)

uim:read 0 from install 

uim:@ st_uart_config
uim:Un-Installed N_TI_WL Line displine
uim:begin polling...
uim:poll broke due to event 10(PRI:2/ERR:8)

uim:read 0 from install 

uim:@ st_uart_config
uim:Un-Installed N_TI_WL Line displine
uim:begin polling...

Ubuntu 14.04 LTS arm ttyO2

default username:password is [ubuntu:temppwd]

arm login: [   51.899017] (stk) : timed out waiting for ldisc to be un-installed
uim:poll broke due to event 10(PRI:2/ERR:8)

uim:read 1 from install 

uim:@ st_uart_config
uim: signal received, opening /de
v/ttyO0
uim:@ set_baud_rate
uim:set_baud_rate() done
uim:Setting speed to 1000000
uim:@ read_command_complete
uim: Command complete started
uim:@ read_hci_event
uim: read_hci_event
uim:poll broke due to event 10(PRI:2/ERR:8)
uim:read 1 from install 
uim:@ st_uart_config
uim: signal received, opening /dev/ttyO0
uim:@ set_baud_rate
uim:set_baud_rate() done
uim:Setting speed to 1000000
uim:@ read_command_complete
uim: Command complete started
uim:@ read_hci_event
uim: read_hci_event
uim:Command complete done
uim:Speed changing to 1000000, 1
uim:@ set_custom_baud_rate
uim:Installed N_TI_WL Line displine
uim:begin polling...
uim:Invalid response
uim:begin polling...

Ubuntu 14.04 LTS arm ttyO2

default username:password is [ubuntu:temppwd]

arm login: 









Is there any way to initialise the BT during the booting of kernel itself (with minimal prints)?

Note:I created the script for the procedures in /etc/rcS.d/

Please help.