AVRCP for Windows phone 8? - bluetooth

I have a project for multimedia player running on WP8. Does WP8 SDK supports AVRCP that user can control playback from Bluetooth device? What APIs or events I should use to receive control events? Thanks!

From a consumer perspective WP7 OS supports BT-AVRCP 1.3 and so does WP8 OS. Based on MSDN the BT-AVRCP 1.4 profile is supported for WP8.
From a developer perspective BT-SPP is supported for direct developer reads & writes. I'm not sure if WP8 can successfully open a BT-AVRCP socket, so go ahead and try to open a socket to one and see what happens.
If you're just trying to play Audio on a Bluetooth headset, use the plain-old WP7/WP8 media playback classes and use the new WP8 AudioRoutingManager to force output on bluetooth headset.
AudioRoutingManager.SetAudioEndpoint(AudioRoutingEndpoint.Bluetooth)

Related

Socket Mobile and Web Bluetooth

Hey Socket Mobile team,
I was wondering if you have plans on integrating with Web Bluetooth. I've tried connecting to my Socket Mobile D750 from chrome://bluetooth-internals on Chrome version 59.0 but I'm getting an error that says Unsupported_Device.
I have the scanner in HID mode. Chrome's documentation says that it supports BLE 4.0, but I couldn't find which version of BLE your scanners have.
No plans right now.
At the time of writing, none of our barcode scanners have BLE. The recently announced D600 RFID reader uses BLE and supports reading using HID mode or a GATT profile - but you wouldn't be able to write tags
However, the upcoming Capture SDK uses HTTP on Android and Windows to communicate between your app and the service. If you are targeting those platforms and are okay with being on the bleeding edge, you could write your own Javascript client.

Does the Universal Windows Application infrastructure support any Serial Port communications?

I have a WPF desktop application that would make a good candidate as a Universal Windows App. The application has a must-have dependence on USB or Bluetooth devices that act as a Serial Port.
In all my reading I've yet to discover whether there is any access to a SerialPort API in a UWA.
I suspect the answer is 'No support'. If so, does anyone know of a USB or Bluetooth GPS that supports whatever APIs the UWA has for that sort of thing. I have to be able to read things like ground speed, elevation, rate of climb, etc.
If the answer is 'Supported', could you point me to some documentation.
For the "Bluetooth devices that act as a Serial Port", I assume you mean the RFCOMM. They are both supported on Windows Runtime since Windows 8.1 and you can also use them in the Universal Windows Application.
namespace: Windows.Devices.Usb and Windows.Devices.Bluetooth.Rfcomm.
About the Bluetooth GPS, I'm not sure if it uses RFCOMM or not (it depends on the devices), and it is also possible to use the GATT.
Code Sample: Custom USB device access sample

Read data from non-connectable BLE sensor?

I have a BLE thermometer and I'd like to record the data from it as the monitoring application (available for both Android and iOS) that comes with it doesn't do it, it merely displays the data on the screen for a limited time.
I tried all BLE apps on both Android (I have a Nexus5 with Android 4.4) and iOS 7.1 iPad with but, while some discovered the device, none of them could display any data because all try to connect to the sensor whereas the sensor returns 0 for kCBAdvDataIsConnectable.
Is this possible? It must be because its own app does it, but I'm not too familiar with BLE and I may be missing something. I was surprised that none of the apps in the App/Play store had the feature of "listening" what a device sends without connecting. But then again, I'm not very familiar with BLE.
A few pointers are appreciated.

Bluetooth support on Android Emulator

I want to know if the developer team which made the emulator have some information to make bluetooth work in the Android emulator, indicate some links about it, if they have some date for release or if they'll make it works in the future.
as far as I know there is no support in the emulator for bluetooth. And I will have to teach android and bluetooth in some classes. And the students will need to code stuff and test (guess it) in the android emulator.
So I came up with a bare-bone reimplementation of the android bluetooth API on top of tcp. You can find it on here on github.
Basically, you run a tcp-server on your machine, and the emulators will connect through it.
Instead of using the classes in the package android.bluetooth, you just need to use the classes in the package dk.itu.android.bluetooth (and other 2 little modifies).
As for now it supports:
switch on/off the "radio"
discovery devices (only other android emulators)
creating bluetooth services
connecting to bluetooth services
It's not much, but until we got some more from the android guys, I guess there is nothing else around.
Hope it'll be useful, cheers!
The documented bluetooth limitation appears inconsistent with the qemu -bt option. So, how is bluetooth enabled in the emulator so the -bt options can be used, or at least to know that bluetooth is supported?
The target/board/.../BoardConfig.mk having "BOARD_HAVE_BLUETOOTH := true" doesn't provide a bluetooth icon or enable bluetooth. So, how do we turn on bluetooth on the android qemu emulator?
What does it mean that bluetooth is not supported given the -bt option for emulating USB devices that were provided in 2008? The post and limitations are outdated.
The functional limitations of the emulator include:
No support for placing or receiving actual phone calls. You can simulate phone calls (placed and received) through the emulator console, however.
No support for USB connections
No support for device-attached headphones
No support for determining network connected state
No support for determining battery charge level and AC charging state
No support for determining SD card insert/eject
No support for Bluetooth
http://developer.android.com/tools/devices/emulator.html#limitations

mobile receipt printing with J2ME via Bluetooth

I need to make an app in J2ME that can be able to read a SMS and then print it on an epson tm-p60 printer(ESC/POS emulation) via bluetooth.
i looked at the epson supprt site but the only ADK/drivers they provide are for:
1.Sun Java2 SDK Standard Edition Version 1.4.2_10
2.Sun Java2 SDK Standard Edition Version 1.4.2_04
3.Sun Java SE Development Kit 6 Update 3
so i don't know how am i gonna be able to use ESC/POS commands inJ2ME.
I'm a bit clueless on how i will approach this project.. plus w/c would be better to use for this project? Netbeans or Eclipse?
Thanks!
SPP (Serial Port Profile) over Bluetooth means using an RFCOMM connection to send and receive data as if it were a physical serial connection. This is part of JSR 82, so you will be able to develop only on handsets that support this JSR.
You need to:
Figure out how to discover bluetooth devices, and scan for SPP services on a discovered device, then connect to one of those services, using one of the many JSR 82 tutorials out there.
Then send ESC/POS protocol data over that connection -- I assume you have the protocol specification available? Google turned up this application programming guide.
HTH.
JSR-82 Bluetooth API support L2CAP protocol, RFCOMM and OBEX profile. I don't know detail of Bluetooth basic printing profile (BPP) but, if you look into basic printing profile document you can find that BPP built on OBEX profile.
I can't find open source project for BPP on JSR-82. Please try to search it, but if you can't find one you might need to write your own.

Resources