On Thu, Mar 19, 2009 at 8:46 AM, pavan savoy <[email protected]> wrote: > update: below... >> >> Hi, >> >> Why do I get this ? I have a set of Vendor Specific commands that >> hciattach would send over the hci0 socket interface, I get these when I try >> and send them, >> >> I//system/bin/hciattach( 959): Cannot send hci command to socket: >> Operation not permitted >> I//system/bin/hciattach( 959): Can't initialize device: Operation not >> permitted >> >> It had eventually came down to function writev in hci_send_cmd, and the >> writev in itself is failing. >> >> I am starting hciattach & hcid from UI, so the user/owner is 'bluetooth' >> although I do get the same message when I try and run as 'root. >> Here's the ocf/ogf when I get that error, > > [Just an update here, When run as root, it is fine, doesn't give me that > error] >> >> I//system/bin/hciattach( 959): hci_send_cmd:writing 63, 268 >> I//system/bin/hciattach( 959): hci_send_cmd: errno: 1 >> >> >> Any ideas ?? >> >> regards, >> Pavan >> >
You should check the permissions on the uart device. Make sure it is writable by user Bluetooth. For example /dev/ttyHS0. Although in your case might be different. Nick --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
