Page 4 of 11 FirstFirst 1234567891011 LastLast
Results 31 to 40 of 106

Thread: HFP for Linux Bluetooth Hands Free

  1. #31
    Newbie
    Join Date
    Jul 2007
    Posts
    17
    Quote Originally Posted by samr7 View Post
    your carrier isn't implementing UDUB. Perhaps the busy button needs to be removed if the phone claims to support normal call rejection.
    Yes, i never hear something about UDUB feature in italy carriers'. So i think that's not so important for me.
    I haven't added any of this to hfconsole because I'm not a big UI guy and am actually looking for some help. Know anybody who knows python?
    I was wondering to learn python.. It could be a starting point. But I'm also studying for Zend PHP certification, and working, and doing sport and so on. My free time it's very little.... But you just show me that anyone can contribute to this project, and i hope i will.
    At the same time it will hopefully fulfill its primary objective of being a hands-free better than FreePhone.
    I hope so

    Anyone that want to join this project?

  2. #32
    Newbie
    Join Date
    May 2007
    Posts
    27
    thx samr7,

    now i am able to build and run it. looks ok but i have problems with my soundcard at the moment (ALC889). i will make more tests when i solved the other problem.

    it seems that the progress of this project goes forward very fast.

    GREAT JOB!!!

  3. #33
    Newbie
    Join Date
    Oct 2008
    Posts
    7
    Quote Originally Posted by samr7 View Post
    I'm sorry your mic doesn't work and the voice is garbled, and am puzzled why this would be the case, given that the loopback worked well and your pump configuration appears to be healthy. What sort of Bluetooth module are you using? Does 'hciconfig hci0 voice' as discussed earlier in the thread give any clues?
    The bluetooth dongle says just "Prodige" on it. Some linux HW compatibility list claimed that it's supported. What brand of dongle are you using? I could try and find the same one, then we'd know if it's the dongle causing problems.

    Output of hciconfig seems to be exactly like yours:
    Code:
    hci0:   Type: USB
            BD Address: 00:01:53:00:CF:08 ACL MTU: 384:8 SCO MTU: 64:8
            Voice setting: 0x0060 (Default Condition)
            Input Coding: Linear
            Input Data Format: 2's complement
            Input Sample Size: 16 bit
            # of bits padding at MSB: 0
            Air Coding Format: CVSD

    Takes quite a to want this feature in an HTPC! Seriously, that would be very cool to see. If you want to plug it in to Freevo and need help/features/etc, or have some constructive things to say about the backend interfaces , let me know!
    I'll get to that once I get the system working on the lower level first. What I'd eventually like is a clean and simple Python API which could be used to place/hangup calls, perhaps monitor some status parameters and also some sort of a hook/callback for incoming calls and hang-ups.

    I'm not really into the car stuff (I only learned about nghost now, came here because google found your forum post :-)), but I'm really glad that you have decided to generalize the functionality into general purpose libraries.

  4. #34
    Newbie
    Join Date
    May 2007
    Posts
    27
    i am able to start hfconsole, pair my device, accept calls and dial out.
    but when the call starts the bt-connection broke.

    my mobile is an sony ericcson V630


    my output:
    Code:
    hfconsole
    
    (hfconsole:6048): libglade-WARNING **: could not find glade file './hfconsole.glade'
    
    (hfconsole:6048): libglade-WARNING **: could not find glade file './data/hfconsole.glade'
    HFPD: HCI Command status: 0x00 0x01 0x0405
    HFPD: HCI Command status: 0x00 0x01 0x041b
    HFPD: HCI Command status: 0x00 0x01 0x0419
    HFPD: HCI Name request complete (0): "00:19:63:1C:E2:78" -> "Markus"
    HFPD: SDP: Supported features: 17
    HFPD: << AT+BRSF=15
    HFPD: HCI Submit 0x0419
    HFPD: HCI Command status: 0x00 0x01 0x0419
    HFPD: HCI Name request complete (0): "00:19:63:1C:E2:78" -> "Markus"
    HFPD: >> +BRSF:503
    HFPD: >> OK
    HFPD: << AT+CIND=?
    HFPD: >> +CIND: ("service",(0-1)),("callheld",(0-2)),("call",(0-1)),("callsetup",(0-3)),("signal",(0-5)),("roam",(0-1)),("battchg",(0-5)),("message",(0-1)),("batterywarning",(0-1)),("chargerconnected",(0-1))
    HFPD: >> OK
    HFPD: << AT+CMER=3,0,0,1
    HFPD: >> OK
    HFPD: << AT+CLIP=1
    HFPD: >> ERROR
    HFPD: << AT+CCWA=1
    HFPD: >> ERROR
    HFPD: << AT+CHLD=?
    HFPD: >> ERROR
    HFPD: << AT+CIND?
    HFPD: AG 00:19:63:1C:E2:78: Connected
    HFPD: >> +CIND: 1,0,0,0,5,0,3,0,0,0
    HFPD: >> OK
    HFPD: << AT+BLDN
    HFPD: >> OK
    HFPD: >> +CIEV: 4,2
    HFPD: HCI Command status: 0x00 0x01 0x0429
    HFPD: AudioGatewayStart: /net/sf/nohands/hfpd/00_19_63_1C_E2_78
    HFPD: ** OpLatency: primary open took 156ms
    HFPD: ALSA play state: 2
    HFPD: ALSA play state: 2
    HFPD: ALSA rec state: 2
    HFPD: ALSA rec state: 2
    HFPD: Config warn: Configured output minimum buffer (40) is less than the bottom packet size (170)
    HFPD: Pump: packet size = 12
    HFPD: Pump: input max fill = 340
    HFPD: Pump: bot packet size = 170
    HFPD: Pump: bot min fill = 170
    HFPD: Pump: bot max fill = 340
    HFPD: Pump: top packet size = 24
    HFPD: Pump: top min fill = 40
    HFPD: Pump: top max fill = 64
    HFPD: Pump: watchdog timeout = 500
    HFPD: Echo tail: 800
    HFPD: ALSA play state: 2
    HFPD: ALSA rec state: 2
    HFPD: >> +CIEV: 4,3
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: **** ALSA playback xrun ****
    HFPD: SoundIoPump: Top endpoint watchdog timeout
    HFPD: SoundIoPump Stopped
    HFPD: Spontaneous audio stream halt
    HFPD: Read from RFCOMM socket: Software caused connection abort
    HFPD: AG 00:19:63:1C:E2:78: Disconnected
    HFPD: HCI socket read error: Broken pipe
    HFPD: Bluetooth System Shut Down
    HFPD: SCO MTU: 64:8
    HFPD: Bluetooth System Started
    HFPD: *** Your configured device class may not be recognized as a hands-free
    HFPD: *** Edit /etc/bluetooth/hcid.conf and change:
    HFPD: *** class 0x380408;
    HFPD: HCI Command status: 0x00 0x01 0x0405
    HFPD: HCI Command status: 0x00 0x01 0x041b
    HFPD: HCI Command status: 0x00 0x01 0x0419
    HFPD: HCI Name request complete (0): "00:19:63:1C:E2:78" -> "Markus"
    HFPD: SDP: Supported features: 17
    HFPD: << AT+BRSF=15
    HFPD: >> +BRSF:503
    HFPD: >> OK
    HFPD: << AT+CIND=?
    HFPD: >> +CIND: ("service",(0-1)),("callheld",(0-2)),("call",(0-1)),("callsetup",(0-3)),("signal",(0-5)),("roam",(0-1)),("battchg",(0-5)),("message",(0-1)),("batterywarning",(0-1)),("chargerconnected",(0-1))
    HFPD: >> OK
    HFPD: << AT+CMER=3,0,0,1
    HFPD: >> OK
    HFPD: << AT+CLIP=1
    HFPD: >> ERROR
    HFPD: << AT+CCWA=1
    HFPD: >> ERROR
    HFPD: << AT+CHLD=?
    HFPD: >> ERROR
    HFPD: << AT+CIND?
    HFPD: AG 00:19:63:1C:E2:78: Connected
    HFPD: >> +CIND: 1,0,0,0,5,0,3,0,0,0
    HFPD: >> OK
    my output in dmesg:
    Code:
    usb 4-2: new full speed USB device using uhci_hcd and address 2
    usb 4-2: configuration #1 chosen from 1 choice
    usb 4-2: New USB device found, idVendor=0a5c, idProduct=2101
    usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    usb 4-2: Product: Acer Module
    usb 4-2: Manufacturer: Broadcom Corp
    Bluetooth: HCI USB driver ver 2.9
    usbcore: registered new interface driver hci_usb
    Bluetooth: SCO (Voice Link) ver 0.5
    Bluetooth: SCO socket layer initialized
    usb 4-2: USB disconnect, address 2
    usb 4-2: new full speed USB device using uhci_hcd and address 3
    usb 4-2: configuration #1 chosen from 1 choice
    usb 4-2: New USB device found, idVendor=0a5c, idProduct=2101
    usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    usb 4-2: Product: Acer Module
    usb 4-2: Manufacturer: Broadcom Corp
    any idea whats the reason for this problem?

  5. #35
    Newbie
    Join Date
    May 2007
    Posts
    27
    it seems that my post yesterday was to long (Moderator have to publish it) so i will write with less log messages.

    i am able to run hfconsole, pair the device, accept calls and dial out. but when the call starts the bt-connection break.

    i only post things which i think they are important:
    after starting hfconsole:
    (hfconsole:7889): libglade-WARNING **: could not find glade file './hfconsole.glade'

    (hfconsole:7889): libglade-WARNING **: could not find glade file './data/hfconsole.glade'
    ...........
    HFPD: << AT+CLIP=1
    HFPD: >> ERROR
    HFPD: << AT+CCWA=1
    HFPD: >> ERROR
    HFPD: << AT+CHLD=?
    HFPD: >> ERROR
    HFPD: << AT+CIND?
    HFPD: AG 00:19:63:1C:E2:78: Connected
    .........
    HFPD: >> RING
    HFPD: >> +CIEV: 4,1
    HFPD: HCI Command status: 0x00 0x01 0x0429
    HFPD: AudioGatewayStart: /net/sf/nohands/hfpd/00_19_63_1C_E2_78
    HFPD: ** OpLatency: primary open took 140ms
    HFPD: ALSA play state: 2
    HFPD: ALSA play state: 2
    HFPD: ALSA rec state: 2
    HFPD: ALSA rec state: 2
    HFPD: Config warn: Configured output minimum buffer (40) is less than the bottom packet size (170)
    HFPD: Pump: packet size = 12
    HFPD: Pump: input max fill = 340
    HFPD: Pump: bot packet size = 170
    HFPD: Pump: bot min fill = 170
    HFPD: Pump: bot max fill = 340
    HFPD: Pump: top packet size = 24
    HFPD: Pump: top min fill = 40
    HFPD: Pump: top max fill = 64
    HFPD: Pump: watchdog timeout = 500
    HFPD: Echo tail: 800
    HFPD: ALSA play state: 2
    HFPD: ALSA rec state: 2
    HFPD: **** ALSA playback xrun ****
    ......................
    HFPD: SoundIoPump: Top endpoint watchdog timeout
    HFPD: SoundIoPump Stopped
    HFPD: Spontaneous audio stream halt
    HFPD: Read from RFCOMM socket: Software caused connection abort
    HFPD: AG 00:19:63:1C:E2:78: Disconnected
    HFPD: HCI socket read error: Broken pipe
    HFPD: Bluetooth System Shut Down
    HFPD: SCO MTU: 64:8
    HFPD: Bluetooth System Started
    HFPD: *** Your configured device class may not be recognized as a hands-free
    HFPD: *** Edit /etc/bluetooth/hcid.conf and change:
    HFPD: *** class 0x380408;


    in hcid.conf i set:
    # Local device class
    class 0x380408;

    can anybody help me resolving this problem?

  6. #36
    Newbie
    Join Date
    May 2007
    Posts
    27
    it seems that my post yesterday was to long (Moderator have to publish it) so i will write with less log messages.

    i am able to run hfconsole, pair the device, accept calls and dial out. but when the call starts the bt-connection break.

    i only post things which i think they are important:
    after starting hfconsole:
    (hfconsole:7889): libglade-WARNING **: could not find glade file './hfconsole.glade'

    (hfconsole:7889): libglade-WARNING **: could not find glade file './data/hfconsole.glade'
    ...........
    HFPD: << AT+CLIP=1
    HFPD: >> ERROR
    HFPD: << AT+CCWA=1
    HFPD: >> ERROR
    HFPD: << AT+CHLD=?
    HFPD: >> ERROR
    HFPD: << AT+CIND?
    HFPD: AG 00:19:63:1C:E2:78: Connected

  7. #37
    Newbie
    Join Date
    May 2007
    Posts
    27
    part 2:
    .........
    HFPD: >> RING
    HFPD: >> +CIEV: 4,1
    HFPD: HCI Command status: 0x00 0x01 0x0429
    HFPD: AudioGatewayStart: /net/sf/nohands/hfpd/00_19_63_1C_E2_78
    HFPD: ** OpLatency: primary open took 140ms
    HFPD: ALSA play state: 2
    HFPD: ALSA play state: 2
    HFPD: ALSA rec state: 2
    HFPD: ALSA rec state: 2
    HFPD: Config warn: Configured output minimum buffer (40) is less than the bottom packet size (170)
    HFPD: Pump: packet size = 12
    HFPD: Pump: input max fill = 340
    HFPD: Pump: bot packet size = 170
    HFPD: Pump: bot min fill = 170
    HFPD: Pump: bot max fill = 340
    HFPD: Pump: top packet size = 24
    HFPD: Pump: top min fill = 40
    HFPD: Pump: top max fill = 64
    HFPD: Pump: watchdog timeout = 500
    HFPD: Echo tail: 800
    HFPD: ALSA play state: 2
    HFPD: ALSA rec state: 2
    HFPD: **** ALSA playback xrun ****
    ......................
    HFPD: SoundIoPump: Top endpoint watchdog timeout
    HFPD: SoundIoPump Stopped
    HFPD: Spontaneous audio stream halt
    HFPD: Read from RFCOMM socket: Software caused connection abort
    HFPD: AG 00:19:63:1C:E2:78: Disconnected
    HFPD: HCI socket read error: Broken pipe
    HFPD: Bluetooth System Shut Down
    HFPD: SCO MTU: 64:8
    HFPD: Bluetooth System Started
    HFPD: *** Your configured device class may not be recognized as a hands-free
    HFPD: *** Edit /etc/bluetooth/hcid.conf and change:
    HFPD: *** class 0x380408;


    in hcid.conf i set:
    # Local device class
    class 0x380408;

    can anybody help me resolving this problem?

  8. #38
    Newbie
    Join Date
    Oct 2008
    Posts
    7
    Quote Originally Posted by BPM80 View Post
    i am able to run hfconsole, pair the device, accept calls and dial out. but when the call starts the bt-connection break.
    I noticed that hfconsole leaves instances of hfpd behind, and if I don't kill the old instances before starting hfconsole again, it behaves exactly like you described (except that the BT connection doesn't really break, but the voice isn't transmitted to PC either).

    So maybe "killall hfpd" before running hfconsole helps.

  9. #39
    Newbie
    Join Date
    May 2007
    Posts
    27
    same problem.
    when a call starts the bt-connection break. when the call is over the device is attachted again.

    i never made apps in python but i could make a frontend in java if you want.

    but python is much better i think because user do not need to install the jre. perhaps i should lern python but i have to code every day in the office and so there is less time to learn a new language.

  10. #40
    Newbie samr7's Avatar
    Join Date
    Mar 2006
    Posts
    42
    Quote Originally Posted by BPM80 View Post
    HFPD: HCI socket read error: Broken pipe
    HFPD: Bluetooth System Shut Down
    HFPD: SCO MTU: 64:8
    HFPD: Bluetooth System Started
    Hi BPM80,

    This is _very_ interesting. Can you reproduce it reliably? It's strange that the entire Bluetooth subsystem on your machine was shut down and restarted at this point. Are there any clues in your /var/log/messages file? I'll bet you'll find some USB disconnect messages there, and that all of this happened because your Bluetooth HCI was reset by the USB subsystem. I have seen this happen, but did not get to the bottom of it and was left to speculate that it was caused by firmware bugs in the Bluetooth adapter. Anyway, if this is indeed caused by firmware bugs, there might be some way to alter hfpd to not exacerbate them.

    Do you have any other Bluetooth dongles on hand?

Similar Threads

  1. Instructions on getting FREE wireless internet from T-Mobile using GPRS
    By bankingdom in forum Wireless Communications
    Replies: 298
    Last Post: 08-16-2011, 02:37 PM
  2. Proper Bluetooth phone application (Paid or free)
    By f1racr in forum Wireless Communications
    Replies: 2
    Last Post: 06-28-2008, 09:41 PM
  3. Free Bluetooth Headset for people in L.A.
    By Rafster in forum Off Topic
    Replies: 0
    Last Post: 06-18-2008, 12:14 AM
  4. Replies: 0
    Last Post: 02-15-2007, 10:12 AM

Bookmarks

Posting Permissions

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