usb shall work as long as you can provide hciattach a correct device file such as /dev/ttyS1. But, will usb driver get loaded before hciattach?
2009/3/13 Androidphan <[email protected]> > > What if I'm using a USB BT device? > > On 12 mrt, 18:59, Sean McNeil <[email protected]> wrote: > > Actually, you don't know if the chip is powered and the uart is working > just > > because bttest passed. It just means that he started the hcid and > hciattach > > services. Most likely his bluetooth device is not powered up and > hciattach > > is simply failing. > > > > On Fri, Mar 13, 2009 at 12:39 AM, Nick Pelly <[email protected]> wrote: > > > > > On Wed, Mar 11, 2009 at 1:57 AM, NickS <[email protected]> wrote: > > > > > > Hi: > > > > On my Netbook > > > > $bttest enable > > > > enable > > > > =0 > > > > > > command hciconfig -a and hcitool scan can get information of device. > > > > > That's good. Your chip is powered and the uart is working. > > > > > Did hcitool scan show other devices? Then the TI chip firmware is > > > correctly loaded. > > > > > > But turn on from UI, there's no any response. it's why? have no any > > > > idea. i don't want to analyze from app of UI. > > > > > What does logcat say? > > > > > Is hcid running? > > > Is hciattach running? > > > > > > I skiped rfkill in > > > > bluetooth.c,because my platform have no use it. I think I have > started > > > > services about bluetooth. follow my init.rc > > > > chmod 0660 /dev/ttyS1 > > > > chown bluetooth bluetooth /dev/ttyS1 > > > > service dbus /system/bin/dbus-daemon --system --nofork > > > > socket dbus stream 660 bluetooth bluetooth > > > > user bluetooth > > > > group bluetooth net_bt_admin > > > > service hcid /system/bin/hcid -s -n -f /etc/bluez/hcid.conf > > > > socket bluetooth stream 660 bluetooth bluetooth > > > > socket dbus_bluetooth stream 660 bluetooth bluetooth > > > > group bluetooth net_bt_admin misc > > > > disabled > > > > oneshot > > > > service hciattach /system/bin/hciattach -n /dev/ttyS1 texas 115200 > > > > user bluetooth > > > > group bluetooth net_bt_admin misc > > > > disabled > > > > oneshot > > > > service hfag /system/bin/sdptool add --channel=10 HFAG > > > > user bluetooth > > > > group bluetooth net_bt_admin > > > > disabled > > > > oneshot > > > > > init.rc looks good. > > > > > Try starting hcid and hciattach manually (as Sean suggested) > > > > > Try modifying init.rc to run hcid via /system/bin/logwrapper > > > service hcid /system/bin/logwrapper /system/bin/hcid -s -n -f > > > /etc/bluez/hcid.conf > > > So you can see its output in logcat. > > > > > Unfortunately you cannot run hciattach in logwrapper, it triggers some > > > strange timeout bug (I wonder if anyone can figure this out for me). > > > > > And yes please post the output of logcat when you try to enable BT from > the > > > UI. > > > > > You can also modify a lot of the Bluetooth source to enable more > > > logging. Look for DBG flags. > > > > > Some more tips inhttp://source.android.com/projects/bluetooth-faqbut > > > you might have read them. > > > > > Nick > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
