[android-porting] Re: Android 2.3.3 NFC capabilities concerns

2011-02-09 Thread Nick Pelly
Foreground activities can push NDEF messages over P2P. http://developer.android.com/reference/android/nfc/NfcAdapter.html#enableForegroundNdefPush(android.app.Activity, android.nfc.NdefMessage) On Thu, Feb 10, 2011 at 3:26 PM, Ajith Kamath sjce.aj...@gmail.com wrote: Hi I went through the

[android-porting] Re: [android-kernel] android rfkill problems - again

2010-03-11 Thread Nick Pelly
What do you suggest as an alternative? On Thu, Mar 11, 2010 at 2:15 PM, pavan savoy pavan.sa...@gmail.com wrote: Android when it wants to turn BT on, write's 1 onto the rfkill entry (which has type bluetooth), and up until now this is the reason we had wl127x_rfkill.c on OMAP or

[android-porting] Re: Enabling bluetooth on Android

2009-08-14 Thread Nick Pelly
http://source.android.com/projects/bluetooth-faq has some hints On Wed, Aug 12, 2009 at 9:00 PM, Prasannadeveloper.symb...@gmail.com wrote: Can any help me to enable bluetooth on android platofrm (steps to configuration, patched,test program ..etc)?

[android-porting] Re: android restart during a2dp connection

2009-08-07 Thread Nick Pelly
Hi, Sorry for the late reply, This is a really strange failure log. We have never seen this before. Sorry I know that is not very useful :( Nick On Wed, Jul 29, 2009 at 7:01 AM, pavan savoypavan.sa...@gmail.com wrote: Hi, On the donut branch - a2dp connection the first time, when userdata

[android-porting] Re: android restart during a2dp connection

2009-08-07 Thread Nick Pelly
JK just pointed out to me that this might be a DBUS failure that we fixed a while back. Can you make sure you have this patch in your build? commit 4a364130fb072bf44367e537f8d24e7e00c6ca69 Author: Nick Pelly npe...@google.com Date: Thu Jun 18 15:05:34 2009 -0700 Fix runtime restarts due

[android-porting] Re: Problem in connecting to Bluetooth devices

2009-08-06 Thread Nick Pelly
On Sun, Aug 2, 2009 at 10:07 PM, Sidharth Malhotrasep...@gmail.com wrote: Hi all, I am using the latest cupcake build. When I start Bluetooth (BT) UI and inquire for devices, a few strange things are happening: 1. Sometimes Inquiry does not show any devices on the UI. Upon debgging with

[android-porting] Re: Making Bluetooth work on x86 - please help

2009-08-06 Thread Nick Pelly
Hi, It is hard to help with the information you have given. If you can scan from the command line then that is a very good start. Do you have the logs when you try and turn BT on/off from the UI? I would try instrumenting the UI code and JNI code with log statements to see where exactly it

[android-porting] Re: poll timer in hciattach

2009-05-29 Thread Nick Pelly
This code is to pull down the kernel HCI interface (specifically it detaches the HCI line discipline from the tty) when Bluetooth is turned off. It is a horrible embarrassment that it polls. I've been meaning to investigate and fix for a while. I *believe* when I last tested that things still

[android-porting] Re: Where is the bluetooth MAC address saved?

2009-04-29 Thread Nick Pelly
It's on the Bluetooth chipset. You can obtain it programatically using Bluez's DBUS interface, or BluetoothDevice.java. Bluez also uses the address in /data/misc/hcid/[MAC] but its a bad idea to rely on that. On Wed, Apr 29, 2009 at 12:24 AM, windrg win...@paran.com wrote: Hello, All? I'd

[android-porting] Re: Issue in booting the new Android opensource 1.5(API level 3)

2009-04-29 Thread Nick Pelly
The framework assumes that if it can't get the battery level then the battery level is zero, and shuts down. This is bad framework behavior, but you can workaround by providing a battery level. I don't know off the top of my head what interface this uses, but I have a feeling UEvent may be

[android-porting] Re: Bluetooth HID and DUN work

2009-04-22 Thread Nick Pelly
2009/4/22 cappe...@gmail.com cappe...@gmail.com Hi All !! Until now , I finished to port several Bluetooth profiles including HID and DUN. Well you get these for free with Bluez :) Did you make any useful code changes? If so it would be nice to share them with us or with the Bluez

[android-porting] Published Bluetooth supported features

2009-04-14 Thread Nick Pelly
(For those involved in Bluetooth) The question often comes up of exactly what Bluetooth features are supported by Android. I just published this document to help. http://source.android.com/projects/bluetooth-features Hope this helps! Nick --~--~-~--~~~---~--~~

[android-porting] Re: Bluetooth not working on G1 device (cupcake version)

2009-04-13 Thread Nick Pelly
/rfkill0/state On Mon, Apr 13, 2009 at 10:15 AM, Nick Pelly npe...@google.com wrote: Your init.trout.rc is wrong. This is all you need in it for Bluetooth: service hciattach /system/bin/hciattach \ -n -s 115200 /dev/ttyHS0 texas 400 flow user bluetooth group bluetooth

[android-porting] Re: Number of Bluetooth Connections

2009-04-09 Thread Nick Pelly
was previously Paired with the phone! Vishy On Apr 3, 1:47 am, Nick Pelly npe...@google.com wrote: On Wed, Apr 1, 2009 at 7:57 AM, vishy vish...@gmail.com wrote: Hi , During our initial testing with Android Phones(Using Cupcake build) we noticed that the phone connects to more than

[android-porting] Re: a2dp on android

2009-04-07 Thread Nick Pelly
On Mon, Apr 6, 2009 at 11:33 PM, Bhargavi bha...@gmail.com wrote: Hello All, Whenever we get an incoming connection from a stereo headset , only HFP gets connected. The incoming AVDTP (A2DP)connection is not processed.This is the behaviour which is seen always. I could see no default

[android-porting] Re: Number of Bluetooth Connections

2009-04-06 Thread Nick Pelly
, PAN, etc? Although conflicting cases may be rare, I know some carkits can make calls or listening to music while transferring phonebook entries (via OBEX) via Bluetooth. Jackson On Apr 3, 4:47 am, Nick Pelly npe...@google.com wrote: On Wed, Apr 1, 2009 at 7:57 AM, vishy vish

[android-porting] Re: Does the g1 support play music into gsm channels

2009-04-03 Thread Nick Pelly
On 4/2/09, dingerjun dinger...@163.com wrote: Dear Dave, Thanks for your help. Does the g1 bluetooth headset connect directly to the baseband? The app processor need not route the data from the bluetooth to gsm stack? Correct. On the HTC Dream there is a dedicated PCM audio link

[android-porting] Re: Number of Bluetooth Connections

2009-04-02 Thread Nick Pelly
On Wed, Apr 1, 2009 at 7:57 AM, vishy vish...@gmail.com wrote: Hi , During our initial testing with Android Phones(Using Cupcake build) we noticed that the phone connects to more than one BT HF device.Can anyone share some information on the number of devices Android phones can connect to

[android-porting] Re: how to test bluetooth handset/handsfree without phone module

2009-03-31 Thread Nick Pelly
On Mon, Mar 30, 2009 at 7:58 PM, katherine katherine...@freescale.com wrote: Hi, I'm going to test the bluetooth handset/handsfree on my platform, but I don't have the phone module. Any one did such kind of test? Thanks a lot in advance! BluetoothHeadset.startVoiceRecognition() will try to

[android-porting] Re: If the bluetooth is build as module not build in, where is better to insmod it

2009-03-23 Thread Nick Pelly
On 3/22/09, katherine katherine...@freescale.com wrote: If the bluetooth is build as module not build in, where is better to insmod it? I'm thinking of insmod( including some other bt init steps, e.g. setting the pskey for csr chip) and rmmod in the bt_enable and bt_disable in

[android-porting] Re: Operation not permitted

2009-03-20 Thread Nick Pelly
On Fri, Mar 20, 2009 at 4:21 PM, pavan savoy pavan.sa...@gmail.com wrote: Sean, Currently, this is the setting, user bluetooth group bluetooth net_bt_admin misc This should be fine. For reference, here is our hciattach service hciattach /system/bin/hciattach \ -n -s 115200

[android-porting] Re: Operation not permitted

2009-03-19 Thread Nick Pelly
On Thu, Mar 19, 2009 at 8:46 AM, pavan savoy pavan.sa...@gmail.com 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):

[android-porting] Re: Build libbluedroid.so ERROR

2009-03-10 Thread Nick Pelly
On Mon, Mar 9, 2009 at 11:08 PM, NickS lzh20044...@163.com wrote: Thanks your help, Nick, I had built libbluedroid.so. Now I want to run bluetooth from UI and in system/bluetooth/bluedroid/bluetooth.c, asprintf(rfkill_state_path, /sys/class/rfkill/rfkill%d/state, rfkill_id); can get the path

[android-porting] Re: Build libbluedroid.so ERROR

2009-03-05 Thread Nick Pelly
2009/3/4 NickS lzh20044...@163.com Hi All: One error puzzled me when I built libbluedroid.so. Error info: target SharedLib: libbluedroid (out/target/product/eee_701/obj/ SHARED_LIBRARIES/libbluedroid_intermediates/LINKED/libbluedroid.so)

[android-porting] Re: bluetooth on/off from UI

2009-03-03 Thread Nick Pelly
don't how I can tell the server_bluetoothDevice that adapter has been removed ? regards, Pavan On 3/3/09, Nick Pelly npe...@google.com wrote: Hi Pavan, It would be nice if the UI could be updated when hcid hits this particular failure case. Feel free to send a patch. Nick On Mon

[android-porting] Re: Error compiling Bluez on Cupcake

2009-02-25 Thread Nick Pelly
Sounds like our x86 (bionic?) libc does not have those symbols defined. # grep -R siglongjmp bionic/ bionic/libc/arch-arm/bionic/sigsetjmp.S: * C library -- sigsetjmp, siglongjmp bionic/libc/arch-arm/bionic/sigsetjmp.S:ENTRY(siglongjmp) bionic/libc/include/setjmp.h:voidsiglongjmp(sigjmp_buf,

[android-porting] Re: why does the code seem specific to msm platform ?

2009-02-18 Thread Nick Pelly
Hi Pavan, On Wed, Feb 18, 2009 at 9:31 PM, pavan savoy pavan.sa...@gmail.com wrote: Hi, I was surprised to see, bluetooth.c in bluedroid/ directory to find, access(/dev/ttyHS0... sort of code ? What does this mean ? Do you mean this code? /* TODO: Remove this once legacy hciattach is

[android-porting] Re: bluetooth cpu utilization

2009-02-17 Thread Nick Pelly
Yes we have CPU usage of around 30-40% by mediaserver when playing back MP3 over Bluetooth. Note that we do SBC encoding in the mediaserver. What kind of numbers were you expecting? The cpu usage in the kernel side shouldn't be too bad. It just slaps on some L2CAP headers, and the uart transfer

[android-porting] Re: bluetooth cpu utilization

2009-02-17 Thread Nick Pelly
) that could be used to test cpu utilization? schedtop Thanks! On Feb 17, 3:38 pm, Nick Pelly npe...@google.com wrote: Yes we have CPU usage of around 30-40% by mediaserver when playing back MP3 over Bluetooth. Note that we do SBC encoding in the mediaserver. What kind of numbers were you expecting

[android-porting] Re: Bluetooth Scan invocation...

2008-12-22 Thread Nick Pelly
On Mon, Dec 22, 2008 at 12:58 PM, pavan savoy pavan.sa...@gmail.com wrote: Hi, I have been observing a strange situation with bluetooth scanning. When I Turn off bluetooth and turn it on again, the scanning result doens't have any devices. But the first time, the scan does have a few

[android-porting] Re: android_get_control_socket fails....

2008-12-08 Thread Nick Pelly
This is some Android specific magic. When two linux processes wish to communicate via a unix domain socket on a traditional linux distribution they often use /tmp. However on Android we got rid of /tmp for security and storage accountability reasons. Instead a mechanism was introduced for daemons

[android-porting] Re: Running App without a Android Make file

2008-12-02 Thread Nick Pelly
The binary has to be built with a compatible toolchain. The easiest way to do this is to use an Android Makefile, but it is not the only way. On 12/2/08, pavan savoy [EMAIL PROTECTED] wrote: Hi. Can I run a binary on Android, without actually building with it ? Can't I just copy it to

[android-porting] Re: Permissions for services

2008-11-24 Thread Nick Pelly
hcid immediately drops to UID bluetooth. See android_bluez.c We also have modifications to the kernel so that only processes with root, or gid bt or gid bt_admin can create new Bluetooth sockets for security. Since hcid immeidately drops root you'll need the bt_admin gid. Nick On Mon, Nov 24,

[android-porting] Re: Bluetooth error

2008-11-18 Thread Nick Pelly
and everything gone beserk. I certainly tested it with a earlier version of code and never faced this issue. Please respond on this. Thanks Regards, Pavan Savoy On Tue, Nov 18, 2008 at 9:23 AM, Nick Pelly [EMAIL PROTECTED] wrote: Can you send a patch? On Tue, Nov 18, 2008 at 8:51 AM, pavan

[android-porting] Re: Bluetooth error

2008-11-18 Thread Nick Pelly
hoping to verify and submit a fix soon. Thanks Regards, Pavan Savoy. On Tue, Nov 18, 2008 at 1:52 PM, Nick Pelly [EMAIL PROTECTED] wrote: On Tue, Nov 18, 2008 at 1:48 PM, pavan savoy [EMAIL PROTECTED]wrote: Yeah, couple of silly mistakes, the hcid, said /system/etc/bluez/hcid.conf