×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    1

    [Help] J2ME BlueTooth A2DP/HSP Connection Problem

    My demo plays some music with KVM Player. Now I want transport sound to Bluetooth headset(support A2DP & AVRCP). I can find three serive provided by headset. 1, Headset Unit, 2,HandsFree unit, 3,Audio Sink. I tried to connect to Headset and Audio sink. The first method result is connect ok, and received AT+VGS=13, AT+VGM=9 from headset. And in the cellphone Bluetooth device list, indicate the connection between cellphone and headset has been established, but the voice did not transport to headset. I tried send some AT command to headset, and it did not work yet, When I press the button of headset, the sound transport to headset. The second method result is: it blocked at create connection.
    1,Why can’t transport sound to head in my demo automatically but cellphone does?
    2,How I disconnect the connection? I close the connection in demo, but sound remain from headset, but cellphone does

    The description Chinese as follow.

    求助 J2ME连接A2DP/HSP问题
    我的DEMO使用KVM播放音乐,现在我想将声音输出到蓝牙耳机上(支持A2DP & AVCRP)。搜索蓝牙耳机之后,找到了三种服务,分别为Headset unit, Handsfree unit和AudioSink。我试着连接headset和audio sink,结果如下:
    1, 连接Headset提示连接成功,从耳机接收到AT+VGS=13, AT+VGM=9,从手机系统设置->蓝牙->匹配装置列表中看到手机已经和耳机连接上了,但是声音并没有传到耳机。我试着向耳机发送AT指令,但是也没有用。最后按下耳机接听键之后,声音才传到耳机上。
    2, 创建连接时阻塞了,根本无法创建与audio sink的连接。
    问题如下:
    1, 我该怎样做才能使音频自动传输到耳机,为什么手机连接就行,而我创建的连接就不行呢?
    2, 我该怎么断开音频连接,手机可以断开连接,但demo中将建立的连接close,声音还是从耳机发出
    Last edited by melord; 2010-12-23 at 00:44.

  2. #2
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: [Help] J2ME BlueTooth A2DP/HSP Connection Problem

    what is your device? what does all these non-latin characters mean?

Similar Threads

  1. j2se server j2me client bluetooth connection problem
    By bepolat in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2010-07-14, 11:05
  2. A2DP connection Midlet
    By Xesbeth in forum Mobile Java General
    Replies: 4
    Last Post: 2008-06-06, 13:27
  3. problem in establishing connection between devices in j2me using bluetooth
    By vibrating_minds in forum Mobile Java General
    Replies: 3
    Last Post: 2008-01-03, 10:47
  4. A2DP support in J2ME
    By ppiggy in forum Bluetooth Technology
    Replies: 4
    Last Post: 2006-11-07, 21:39
  5. A2DP support in J2ME
    By ppiggy in forum Mobile Java General
    Replies: 0
    Last Post: 2006-09-18, 06:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×