A2DP API for bluetooth?

Hi,
I want to send a sound to a a BT module. This module is like a headset.
I searched everywhere for a BT example for WP8 but I can't find any help.
I have this code:
StreamSocket socket = new StreamSocket();
await socket.ConnectAsync(peer.HostName, "1");
Why "1"? In the sample, RFCOMM is selected. If I want A2DP, what should I write?
Another question is: is there an API for A2DP? The protocol is really hard to understand. And I don't know where to begin if I have to write all without any library... All with socket.OutputStream()?
Hope someone can help me with this problem.
Thank you!
Adriano

Thank you very much Mark,
I was afraid, that it was not possible.
WP8 has the A2DP and  AVRCP protocol, but developers have to write again the entire protocol that is already present in the system to communicate with BT speakers?
I want to send 2 audio streams to 2 BT-speakers at the same time. Do you think, is it possible with Windows Phone 8?
From your links, I saw that there is a way to send data to the device without RFCOMM.
Old code:
StreamSocket socket = new StreamSocket();
await socket.ConnectAsync(peer.HostName, "1");
New code:
StreamSocket socket = new StreamSocket();
await socket.ConnectAsync(peer.HostName, "{0000110D-0000-1000-8000-00805F9B34FB}");
DataWriter dataWriter = new DataWriter(socket.OutputStream);
DataReader dataReader = new DataReader(socket.InputStream);
AdvancedAudioDistributionService: GUID = {0000110D-0000-1000-8000-00805F9B34FB}
AudioSourceService: GUID = {0000110A-0000-1000-8000-00805F9B34FB}
HeadsetService: GUID = {00001108-0000-1000-8000-00805F9B34FB}
I will try with this.
Thank you again for the links. Once I got it, I will insert a little example on this topic. Maybe it can help someone.
Adriano

Similar Messages

  • Create Midlet for Bluetooth A2DP profile

    Hello,
    I'm a newbie. I would like to know if it's possible to create a midlet for bluetooth A2DP profile. If it is, please let me know where i can get information on this.
    Thank you so much,
    Ken

    Now I'm facing the same problem with A2DP on my Nokia 6230 (original player doesn't support it) so I'm about to create my own player supporting this bluetooth protocol. I just wanted to ask you how far you've got with this.
    Thx.

  • Javadoc for Bluetooth API?

    Where can I download the Javadoc for Bluetooth API?

    the javadoc is available with SUN WTK2.5 (<wtk_folder>/docs/api/jsr082)

  • No A2DP support for Nokia N80!

    I just wonder why Nokia can't add support for A2DP in the new firmware for Nokia N80ie cellphone. =(
    I just uppdatet my phone in hope of getting somewhere,but it was pointless.
    It would be pretty nice if i could use my N80 as a real media centre with my Jabra BT 620s bluetooth headset but no way.
    I am just intrested why not, i have read som discussions in this forum and other N phones did get their uppdates with A2DP support . Or am i wrong. Am i doing somethig wrong and cant get this to work?

    A2DP and AVRCP does not require additional hardware for bluetooth 1.2 and above. It is based purely on software simulation.
    Nokia can support A2DP in nokia n80. but battery could be an issue. Initial prototype of N80 had bluetooth 2 but then it was downgraded to 1.2 !!!

  • Does the E61 have the A2DP stereo music bluetooth ...

    Hi all
    I am buying a s/h E61 which apparently has bluetooth v 1.2 - I wonder if the E61 has the A2DP stereo music bluetooth profile so I can use my SonyE stereo bluetooth earphones with it and also do bluetooth audio streaming to my bluetooth v2.0 enabled laptop (as I can with a couple of bluetooth phones I already have).
    Thanks,
    Allan

    Hmmm the E61 doesn't have the A2DP or music streaming profiles (that work with the PC) - nor can it even be usd as a bletooth remote - since there's no HID profile
    It plays mono when used with my stereo bluetooth headphones so I use a single 'hands free' bluetooth earpiece headset for streaming audio (in mono) by bluetooth. It can't stream music to the PC at all by bluetooth (despite connecting to my PCs headset profile). The E61 came with a single earpiece wired headphone set (HS-5) and I then seperately bought a set of stereo wired headphones (HS-23). While the stereo sound through these is reasonable, it does mean trailing wires.In all other respects I love the E61 - but its poor bluetooth facilities mean that I will be buying an E75 also soon. The E75 does have version 2.0 bluetooth with A2DP stereo streaming. It also has two cameras and does video calling (properly) and also has A-GPS and HSDPA 3.5G and more memory and takes microSD cards up to 16GB. The E61 is a great phone still in all other respects.
    Allan

  • Does the Ipod Touch 5th generation support AVRCP for bluetooth connectivity.

    Do the Ipod Touch 5th generation support AVRCP for bluetooth connectivity.
    I would like to know if it supports the volume control, call answering function and next/back song panel in a bluetooth headphone. (AVRCP bluetooth)
    Does it support headphones with microphone? (for Face Time, TinyChat or recording)
    Does it support this device on bluetooth with the Ipod Touch 5th Gen?
    http://www.jaybirdgear.com/sportsband-bluetooth-headphones/
    Thanks in advance

    Thanks for a speedy reply
    http://support.apple.com/kb/HT3647
    Though this wasn't updated (not having the Ipod Touch 5) but seeing the Ipod Touch 4 having both AVRCP and A2DP, Ipod Touch 5 should also have those...
    Thank you so much... Have a wonderful day

  • Need API for creation of tag cloud

    Hi,
    I have a requirement to create a tag cloud based on a particular business logic. Does Webcenter provide API for the same?
    Can I customize the "Tagging - Tag Cloud" task flow? If yes, how and to what extent?
    Thanks in advance,
    Anurag

    Hi  Ajit,
      No another FM is available . U can directly create using transaction SE01 .
    Or u can create using BDC .

  • API for open purchase order creation

    Hi,
    Is thier any API for creation of open purchase order?
    Thanks
    triveni

    see if this helps
    Re: APIs in PO
    Mahendra

  • How can I make a shortcut for bluetooth in my iPhone 4 ?

    Hello everyone
    How can I make a shortcut for bluetooth in my iPhone 4 ?

    sorry not that I know of, out of the box that is, would be heady to quickly change between headset and normal mode though
    let apple know you want this feature
    http://www.apple.com/feedback/iphone.html
    there are 3th party solutions though
    http://www.macrumors.com/2012/04/17/new-app-turns-bluetooth-on-and-off-with-one- touch/

  • TIP for Bluetooth, Vista 64-bit, and PalmZire72

    I'm indebted to all the folks who have added so much to the discussion and hopeful solutions to the VISTA 64-bit problem for those of us who desperately want to keep using our dependable PALM devices. (Too bad that Palm as a company is not so dependable!) 
    I got a Palm Zire 72 back in 2004 and it has become a vital part of doing business and living life since that time.
    I've always synced to Outlook2003 for my Calendar, Contacts, Tasks, & Notes.
    When I bought a new laptop with VISTA 64-bit, I had forgotten my previous determination to NOT go with 64-bit. However, the price was too good on a last display model HP and I grabbed it, 64-bit VISTA notwithstanding. 
    Then I did research here on this forum and I knew I needed a bluetooth adapter that had at least SOME success with VISTA 64, but I didn't read far enough to steer me to the Iogear adapters that seem favored here.
    I bought an off brand AZIO from NewEgg after reading of others having some success with this adapter.
    I hope my observations can help others, either with these or other brands that may have the same problems.
    I already had my MSOffice installed on the HP, and had backed up my full Personal Folders from the old Compaq and then pointed the new installation to a copy of the PST file, which brought over everything including emails to the new PC.
    This was probably not the best way to go because I got myself into a pickle because I used the new PC for downloading emails, but I could not sync to this PC with my Palm
    I also downloaded the latest PalmDesktop, version 6.2 by Access and installed it to the PC, telling it that I wanted to sync to Outlook for my Calendar, Contacts, Tasks, Memos, and some other things I'm unsure of now.
    Anyway, once I got the AZIO adapter, I installed it to the PC and tried to address the various issues before trying to sync.
    I made sure the name on my PalmZire72 matched the name PalmDesktop used for me.
    I checked my Device Manager and it listed my Bluetooth Device (with about 5 line items showing as various Toshiba Bluetooth devices, since the AZIO uses the Toshiba Bluetooth stack for its drivers. There was also a bluetooth radio listed there.)
    I tried to setup my devices with the Palm device, turning on Bluetooth, making it discoverable, but I got no Bluetooth option listed when I looked at the possible HotSync methods. I could only choose USB or Network or Serial, but no Bluetooth option.
    I selected Serial and tried to use a Port that I could see in Device Manager on the PC under Ports. I tried using all the ports showing as connected to the Toshiba device but none of them allowed a HotSync to work.
    I created a port using the Bluetooth Local COM program listed at the bottom of my programs within the Control Panel on the PC. I pointed the Palm Serial Sync to that port but still no luck.
    The weird thing was that I KNEW my PC and PALM were talking because they each would discover the other and know the correct name I had given the other device. I knew the Bluetooth device was connecting somehow, but every time I ran the Setup Devices on the PALM bluetooth setup, it would end with the "port being used by other application" message.
    I ALSO noted that even though Device Manager knew I had the bluetooth device installed, I NEVER found any such devices listed in the Bluetooth Devices program that I could pull up from either the tray icon or from Control Panel. It would always be empty and I couldn't get it to discover any device on my computer.
    I tried various uninstall/reinstalls of both the PalmDesktop and the USB Bluetooth adapter, but nothing changed anything. Each time I could verify that the Palm and the PC would identify the other one by correct name I would assign, but I could never get a device listed in the critical Bluetooth Devices program and HotSync would fail.
    FINALLY, after giving up and buying a new Iogear GBU421 WM adapter tonight when I found one at WalMart, I came home and began the battle again.
    But I couldn't quite give up on this AZIO without ONE more try at it. I had read about installing Generic drivers in place of the ones given with a device, and I don't even think these were in the same setup as mine, but I wanted to give it a shot. These were on the "Vista 64 Hotsync solution found" thread that has so much info on it. I posted a new thread simply because I hope this specific piece to the puzzle may be found a bit quicker in its own thread.
    I went to Device Manager, looked at the various drivers, wondered which one to change first, and decided to change the Bluetooth radio driver first. I don't know why. Lucky guess? :-)
    It seems to me it may not have had a Toshiba designation as did the other various ones listed there.
    Then I also changed the Toshiba RFCOMM listed, and pointed it to something different. It was guesswork at best, but I was searching for generic drivers.
    After this, the other Toshiba Bluetooth devices mostly disappeared from the Device Manager list of Bluetooth devices. It now also divided them into TWO categories, Bluetooth   and   Bluetooth Radios.
    Bluetooth only shows a Bluetooth RFCOMM.
    Bluetooth Radios shows a Generic Bluetooth Radio   and a  Microsoft Bluetooth Enumerator. 
    None of these shows a red X or other problem mark.
    In my Systray, however, I show a normal blue/white icon for Bluetooth Devices and a blue/red icon for Bluetooth Manager.
    The Devices window will show my Palm Zire listed with my assigned name.
    The Bluetooth Manager window, identified as Bluetooth Settings, shows nothing. No connections are listed and if I click on New Connection, I'm told that "Bluetooth is not ready." 
    Nonetheless, I am Hotsyncing successfully!!!
    The first try, (after going to generic drivers and thus actually being able to "Pair Devices" via the Bluetooth Devices window) seemed so slow that I may have given up prematurely. 
    I finally hit "Cancel" on the Palm device, which seemed to hang forever and not be able to get out of that loop, so I forced a shut down via the power off button.
    Then I also had to to a Ctrl-Alt-Delete to force the HotSync to shut down on the PC as well.
    I did a soft reset of the PalmZire and I restarted the PC after that. The next time I tried to HotSync, it didn't hang on Step 1 (of 12) even though it WAS VERY SLOW. I have a LOT of appointment info etc that I save and there was a lot to have sync for the first time on this PC.
    I got a message that this device (the Palm) had synced before on another PC, and did I want to allow this to proceed since it might create lots of duplicates. I chose to let it go ahead. It did create a fair number of duplicate appointments, but mainly on in the repeating appointments type. I just went through these in Outlook and deleted one of each duplicate, deleting the whole series when I did. The next HotSync went very fast, and cleaned all these duplicates up on the Palm as well.
    I have not restarted again yet, and I am not sure all is going to remain in place, but I know now that I can probably make it work out. The lack of anything listed in the Bluetooth Settings window on my PC does concern me, but I'm hopeful it won't be an issue. I don't expect to use Bluetooth for anything else, at least for now.
    After all the hours I have fussed and read and griped, I am hopeful I have it worked out. I strongly suggest reading the thread mentioned above about HotSync solution found, but in addition to the other factors you have to address, remember to try changing drivers if your bluetooth doesn't work right away. (If it does, consider yourself HIGHLY BLESSED!)
    Well, I gotta quit this short novella and go to bed, but I hope this helps someone else manage to set up bluetooth on a 64-bit VISTA system.
    How in the world does anything as helpful as a PALM go out of business? It must have taken a lot of concerted effort by management to destroy the future of such a helpful piece of hardware!
    Hang in there, Zire; I need you to keep working till a suitable alternative comes along. I doubt it'll be a Crackberry!
    Dale
    Post relates to: Zire 72

    Further notes: When I allowed my PC to come back up from a Hibernate state, there was an error message waiting for me that said something like Port 5 is busy; Will wait till port is open" or something like that.
    However, the Port I had been using (that I created for HotSyncing) was Port 8, which had worked. I don't know why this happens, but it seems to repeat itself if I do not do a clean boot.
    As long as I restart the PC or boot from a shut-down state, my adapter seems fine and Port 8 is available and does work for the HotSync.
    It was VERY slow on the first HotSync that had to run MANY procedures and lots of calendar stuff, but now the HotSyncs are SO FAST. Much faster than they were with the USB and Windows XP.
    I have now turned my Firewall ON and it does NOT affect the HotSync. (I DID go into the Firewall setup and added Bluetooth Settings, HotSync Manager, and Palm Desktop to the exceptions list to ALLOW these through the Firewall.)
    My antivirus program also does not seem to cause any problems for the HotSync, even though it does have to interject itself each time the Outlook data gets accessed. It just verifies that there is no virus activity going on, so it makes a momentary pause as Outlook info is updated.
    I also have found that the HotSync runs fine whether Outlook is already open or not.
    So far, I'm quite happy things are smoothing out!! Let's hope it continues.

  • Windows Vista claims for "Bluetooth Peripheral Device" driver

    When I connect my iPhone via bluetooth to my computer for "tethering", Windows Vista claims for "Bluetooth Peripheral Device" driver and i can´t connect.
    Where is the driver? Anyone knows it?
    Thanks!

    My Mac Book Pro decided to update with windows update ... I lost bluetooth and when my machine started up it said found new hardware ... and proceeded to look for the driver BCM2046A ... its not on the Mac Discs nor on the XP Disc ...
    I searched and searched and searched ..bump
    I then found this link download and use ... and pass on ....
    http://www.broadcom.com/support/license.php?file=SetupBtwDownloadSE.exe

  • Java communication api for windows 64 bit

    Hi,
    I need communication api for windows 64 bit. Are these api's in developement?
    Thanks,
    Andrea Todeschini

    If you use version 2.0 of the rxtx library then it provides a complete implementation of the javax.comm package.
    Version 2.1 does not (its in the gnu.io namespace)
    // Try the following url
    http://users.frii.com/jarvi/rxtx/download.html
    matfud

  • I need API for Narrator in Ease of Access

    Hi,
    I need to see if Narrator accessibility is on/off. (Only on WP 8.1)
    How can it be done? Is there any API for this?
    I was googling for a long time and can't see anything.

    While I recognize the potential for abuse, an API for determining whether or not Narrator is running would be very useful for developing accessible apps that work across devices.
    In my limited experience developing the test application for a Cordova accessibility plugin on Windows Phone 8.1, I can provide a couple good reasons for providing a way to detect if Narrator is running.
    Aria live regions simply don’t appear to work on Windows Phone 8.1. If you test any web pages that use live regions, Narrator on Windows Phone fails to announce changes to the live region. 
    Live regions seem to work on the desktop, but are harder to work with for providing text to speech for complex interactions than the Windows.Media.SpeechSynthesis API. For example:
    It’s difficult to stop speaking a live region update. Once, a screen reader starts speaking a string from a live region, removing the text node or replacing it with an empty string will not stop speaking that string.
    I’ve implemented "speak" and "stop" methods to speak or stop speaking a string of text in my Cordova accessibility plugin for Windows, but without knowing whether or not Narrator is on or off, the methods will work all the
    time, even when Narrator is off, which is not desirable.
    Cordova apps are often developed to use gestures for navigation. The pointer event listeners that respond to these gestures may not be accessible when Narrator is active, in which case is important to provide an alternate mode of navigation. Windows
    Phone already provides an example of this; if you scroll to the bottom of the start screen, there is a button that navigates to the application list, which may be there for accessibility, because the two-finger swipe gesture to access the application
    list may not be easily discoverable to someone using Narrator.
    Here are links to the test application and mobile accessibility plugin for reference:
        Test App: https://github.com/majornista/phonegap-mobile-accessibility-test
        Plugin: https://github.com/majornista/phonegap-mobile-accessibility-test

  • API for Physical Inventory Tag Count

    Hi , Please let me know if any Public API available for updating the physical Inventory tag count ? We have requirement like update of physical counts of Inventory tags, the idea is the counts  are stored  in flat file is in same column format of Physical Inventory Tag count form in Inventory , here just we need to update the counts. let me know any public API avaialble

    According to the oracle knowledgebase, there is no Public API.  But there is an enhancement request that you might want to add your company to.
    Bug 3611131 : INTERFACE/API FOR PHYSICAL INVENTORY ADJUSTMENTS / TAGS

  • Need API for Entitlement Conversion

    HI All,
    We are in process of converting Contracts from Legacy to Oracle. In due process we are converting Entitlements too like Coverage times, Reaction times, resolution times, etc. Can anyone help me in finding the right API for doing this.
    Thanks,
    DP

    Hi PCV,
    You need to first create a currency translation types using transaction RRC1.
    Tab1 - Exchange Rate: -
    You need to give a exchange rate based on which currency conversion will take place. Check with your business which exchange rate type to be used. You need to extract these exchange rate types from R/3 on a daily basis.
    Tab2 - Source Currency
    In your case it should be " Source Currency from data record".
    Tab3 - Target Currency
    You can set the target currency fixed as
    USD.  
    Tab4 - Time reference
    You need to check this with business.                 
    You have got two places where you can perform a currency translation.
    1) In the update rules and store the converted amounts in USD in cube.
    2) Store the original transaction records in the cube and do the currency conversion at the query level.
    I would suggest to go for option 2. In the query select the key figure that you want to carry out the currency conversion on. Right click -> properties -> currency translation -> selct the translation key that you have already defined.
    Hope it helps.
    Thx,
    Soumya

Maybe you are looking for

  • Problem with download speed when minimizing Firefox

    On my desktop whenever I try to download something in Firefox and minimize the browser, the download speed will slow down to like 20 KB a second. The second I open the browser though it shoots back up to 90 KB a second and stays constant unless I min

  • Getting KERNEL_SECURITY_CHECK_FAILURE (bugcheck: 0x00000139) crash every day

    Sometimes it's twice a day. Every time I come back to my computer and find that it's on the login screen, I know that it crashed and rebooted. I think there could be some connection to the USB subsystem. Often times, my keyboard won't work after a cr

  • [SOLVED] mplayer not keeping mkv aspect ratios

    When playing MKVs which have Display Width/Height defined, it appears the Movie-Aspect is never being set. Here's sample console output: mplayer movie.mkv -snip- [mkv] |+ segment information... [mkv] | + timecode scale: 1000000 [mkv] | + duration: 68

  • Differences in operation of Adobe Content Viewer in IPad and IPhone

    Seem to have different operation of Content Viewer on IPhone and IPad.  On Iphone if I download a folio from the Library I can access Library again and select another folio by tapping top left hand corner. On IPad no such functionality have to delete

  • TV shows deleted after updating

    I play an episode of a TV show on my iPod, and then when I update it, the episode I previously played is off my iPod, and yet still in my iTunes library. This glitch is only applicable to TV shows.