View Full Version : Platform SDK + Bluetooth
10-17-2009, 03:52 AM
Up to this moment I could not find method of enabling Bluetooth on the "virtual" device. Maybe this is lack of my experience, but maybe not (I have found info in many places, tha BT is not supported by the SDK).
Question: does anybody have idea, what todo to fix it ? (please don't write - enable Bluez on host machine or something similiar easy, because it's really already done)
I'm not in the developers list (200 points of karma), but I would like to play with it and release my application(s) as soon as possible.
10-18-2009, 04:43 PM
Uh, OK, but if you want real Bluetooth via host machine is only way. If you want to emulate Bluetooth there are more options available.
The SDK is not a fully emulated device, and BlueZ on the SDK would interfere with host's BlueZ. Perhaps you can make QEMU somehow emulate Bluetooth. Or you run some kind of dedicated Bluetooth emulator in the SDK. I don't know a good one, but I know they exist.
If you want to test GPS in SDK, this is discussed here (http://talk.maemo.org/showthread.php?t=32685). You can use gpsfake or gpsd on host machine, and this will run on 127.0.0.1 port 2947 which is reachable from the SDK. If decide not to emulate GPS and wish to connect to real GPS the host machine's GPS daemon must be able to talk to the GPS chip though (so it needs device in /dev; can talk integrated, Bluetooth SPP, etc). Carman also has GPS emulation but in SDK I haven't tested this.
Regarding host machine method if you have BlueZ enabled on the host machine and you pair using BlueZ udev should create the necessary entries in /dev. These should also be in Scratchbox, but they're not exactly the same. If you check the device name with ls -l /dev/device_name then you can check the type of the device_name and use mknod to create it in /scratchbox/dev
Another alternative may be Forum Nokia's remote device access program (http://apu.ndhub.net) where you use Java to have access to a real Nokia N900 but then you obviously wouldn't be able to test or use your local Bluetooth devices.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.