Page 3 of 11 FirstFirst 1234567891011 LastLast
Results 21 to 30 of 106

Thread: HFP for Linux Bluetooth Hands Free

  1. #21
    Newbie
    Join Date
    Jul 2007
    Posts
    17
    Woah .. I didn't know that there was a hfpd Now i watched in the precess table and killed them..
    Surprise The sound now it's absolutely better . Quite human It's a little metallic, robotic, but it's very very better
    I think that the bug of yesterday was only a bad use of the application
    I get a better sound if i set "hciconfig hci0 scomtu 128:16"?

    Only one notice.. When a call is incoming, I see a popup window that ask me what to do.. Response, reject busy etc.. I'm not able to clik on that buttons! I have to use mobile buttons..

    Also.. my mobile it's a nokia 6680, but if you want a hcidump you have just to tell me which commands i have to type

  2. #22
    Newbie samr7's Avatar
    Join Date
    Mar 2006
    Posts
    42
    I just committed some changes to SVN to address the current laundry list of fixes/features, including:
    • Warning about lack of kernel RFCOMM and SCO support
    • Rudimentary SCO MTU checking
    • Device history list in hfconsole
    • Voice attach/detach script actions in hfconsole
    • hfpd/hfconsole version checking

  3. #23
    Newbie samr7's Avatar
    Join Date
    Mar 2006
    Posts
    42
    Quote Originally Posted by Malo View Post
    Only one notice.. When a call is incoming, I see a popup window that ask me what to do.. Response, reject busy etc.. I'm not able to clik on that buttons! I have to use mobile buttons..
    How inconvenient!

    Are the buttons grayed out? When you click them, do they sink and raise as if to recognize that they're being clicked?

    I suppose the call alert window might behave unresponsively if there were some modal dialog open when it popped up, and I haven't tested that condition, but that doesn't sound like your problem. You didn't happen to have the config window or scan window open did you?

    Quote Originally Posted by Malo View Post
    Also.. my mobile it's a nokia 6680, but if you want a hcidump you have just to tell me which commands i have to type
    If you can reproduce the RFCOMM connection dropping problem with hfconsole, before you start to reproduce, just run:

    Code:
    hcidump >hci.log
    After you've reproduced the problem, stop it with CTRL+C, and PM me the hci.log. I'm not sure if hcidump is installed by default by your distro, so you might have to dig up the package name and follow the procedure to get it installed.

    Thanks!

  4. #24
    Newbie
    Join Date
    Jul 2007
    Posts
    17
    Hi.. I've just synced with the last view of svn and get hcidump. I killed old hfsd in bakground. The I started hcidump, start hfconsole and get the first automatically attemp to attach the device that failed. Then, i make a second attach request manually, that failed again. Then a third. After, I make a scan and a attach request that failed again. I send you the log by PM

    I think that i make wrong something when I sync the new version.. Everytime it's hard to make my mobile to work properly. I tried to restart bluetooth daemon and my mobile, but it doesn't work. I'll try tomorrow, now it's time to go to sleep

    Thank you again, yor program rocks ! It's going to be really useful.. Tomorrow i'll try the incoming popup window, also

  5. #25
    Newbie
    Join Date
    May 2007
    Posts
    27
    i am searching soooooo long for such an app.
    i was coding java since years. but i was never coding languages used in this project.
    but i would help as much i can in testing and bug-finding.

    my first problem is that i am not able to run ./configure:
    Code:
    checking for BLUEZ... configure: error: Package requirements (bluez >= 2.00) were not met:
    i installed everything i find with apt-cache search bluez. i am using sidux (debian sid).

    please help me to build it so that i am able to start testing

  6. #26
    Newbie samr7's Avatar
    Join Date
    Mar 2006
    Posts
    42
    Quote Originally Posted by BPM80 View Post
    my first problem is that i am not able to run ./configure:
    Code:
    checking for BLUEZ... configure: error: Package requirements (bluez >= 2.00) were not met:
    i installed everything i find with apt-cache search bluez. i am using sidux (debian sid).
    Hi BPM80,

    On Ubuntu at least, the bluez-libs packages are called:

    libbluetooth2
    libbluetooth-dev

  7. #27
    Newbie
    Join Date
    Oct 2008
    Posts
    7
    Hi,

    thanks a lot for an excellent piece of software. I have a dream to integrate it to the HTPC-platform Freevo, so I can call people from my couch with a remote, without having to fetch the phone from 2 meters away.

    I was able to build it and make a call, and heard the other end's voice via PC speakers (although a bit garbled), and the mic didn't seem to work. A good start anyway.

    That was 2 days ago. Today I was trying again, calls was made OK but the voice wasn't transferred to PC, it stayed on the phone. The loopback test in the GTK app works, I was able to hear my voice crystal clear from the speakers.

    I updated code from SVN and rebuilt, but it didn't help. There's also a python stack trace, which I don't think I saw before the SVN update. When making the call, the phone (N95) first says "handsfree activated" and then immediately "handset activated", as if it tries to transfer the voice to the PC but somehow fails. Also the "transfer voice" in hfconsole has no effect.

    Here's the output from hfconsole:

    Code:
    % hfconsole
    
    (hfconsole:6664): libglade-WARNING **: could not find glade file './hfconsole.glade'
    Update hist: 00:1C:9A:27:71:DE/None
    HFPD: HCI Command status: 0x00 0x01 0x0405
    HFPD: HCI Command status: 0x00 0x00 0x041b
    HFPD: HCI Command status: 0x00 0x01 0x0000
    HFPD: HCI Command status: 0x00 0x01 0x0419
    HFPD: HCI Name request complete (0): "00:1C:9A:27:71:DE" -> "Teh Phone"
    HFPD: SDP: Supported features: ef
    HFPD: << AT+BRSF=15
    HFPD: HCI Submit 0x0419
    HFPD: HCI Command status: 0x00 0x01 0x0419
    HFPD: HCI Name request complete (0): "00:1C:9A:27:71:DE" -> "Teh Phone"
    Update hist: 00:1C:9A:27:71:DE/Teh Phone
    HFPD: >> +BRSF: 239
    HFPD: >> OK
    HFPD: << AT+CIND=?
    HFPD: >> +CIND: ("service",(0,1)),("call",(0,1)),("callsetup",(0-3)),("call_setup",(0-3)),("callheld",(0-2)),("signal",(0-5)),("roam",(0-1)),("battchg",(0-5))
    HFPD: >> OK
    HFPD: << AT+CMER=3,0,0,1
    HFPD: >> OK
    HFPD: << AT+CLIP=1
    HFPD: >> OK
    HFPD: << AT+CCWA=1
    HFPD: >> OK
    HFPD: << AT+CHLD=?
    HFPD: >> +CHLD: (0,1,1x,2,2x,3,4)
    HFPD: Hold modes: 0 1 1x 2 2x 3 4
    HFPD: >> OK
    HFPD: << AT+CIND?
    HFPD: AG 00:1C:9A:27:71:DE: Connected
    HFPD: >> +CIND: 1,0,0,0,0,4,0,4
    HFPD: >> OK
    HFPD: HCI Command status: 0x00 0x01 0x0409
    HFPD: AudioGatewayStart: /net/sf/nohands/hfpd/00_1C_9A_27_71_DE
    HFPD: ** OpLatency: primary open took 77ms
    HFPD: ALSA play state: 2
    HFPD: ALSA play state: 2
    HFPD: ALSA rec state: 2
    HFPD: ALSA rec state: 2
    HFPD: Pump: packet size = 24
    HFPD: Pump: input max fill = 340
    HFPD: Pump: bot packet size = 170
    HFPD: Pump: bot min fill = 336
    HFPD: Pump: bot max fill = 672
    HFPD: Pump: top packet size = 24
    HFPD: Pump: top min fill = 336
    HFPD: Pump: top max fill = 672
    HFPD: Pump: watchdog timeout = 500
    HFPD: Echo tail: 800
    HFPD: ALSA play state: 2
    HFPD: ALSA rec state: 2
    HFPD: HCI Command status: 0x00 0x01 0x040f
    HFPD: AG /net/sf/nohands/hfpd/00_1C_9A_27_71_DE: CloseVoice
    HFPD: SoundIoPump Stopped
    HFPD: ** OpLatency: primary close took 55ms
    ERROR:dbus.connection:Exception in handler for D-Bus signal:
    Traceback (most recent call last):
      File "/var/lib/python-support/python2.5/dbus/connection.py", line 210, in maybe_handle_message
        self._handler(*args, **kwargs)
      File "/usr/local/bin/hfconsole", line 1480, in soundio_state_changed
        self.command_voice_attach(False)
      File "/usr/local/bin/hfconsole", line 281, in command_voice_attach
        p = subprocess.Popen(exc, shell=True)
      File "subprocess.py", line 593, in __init__
        errread, errwrite)
      File "subprocess.py", line 1047, in _execute_child
        args = list(args)
    TypeError: 'NoneType' object is not iterable
    HFPD: HCI Command status: 0x00 0x01 0x0406

    I did some quick debugging; it's trying to execute command self.command_voice_attach_dcmd with subprocess.Popen, but the command is None. The command is tried to be parsed from the config file ~/.hfconsole.rc, but there are no attach_command or detach_command directives there.

    Any help is appreciated.


    Also this looks like a bug in hfconsole (starting at line 338, rev 22):

    Code:
                    if self.configfile.has_option('options', 'attach_command'):
                            cmd = self.configfile.get('options', 'attach_command')
                    self.command_voice_attach_acmd = cmd
                    cmd = None
                    if self.configfile.has_option('options', 'attach_command'):
                            cmd = self.configfile.get('options', 'detach_command')
    the latter part checks for 'attach_command' in config, but reads from 'detach_command'.

  8. #28
    Newbie
    Join Date
    Jul 2007
    Posts
    17
    I just recompiled the last svn.. It's working .. Good job man

    I was re-testing the "Incoming call" popup.. You also fixed it . But what is the function of "busy" button? If I press "ignore", it close the pupup, the mobile is still ringing and it's right. If i choose "busy", the same thing happen.. It's not important,just a notice .
    Also, in the older svn view i can choose to hear my mobile ringer when a call is incoming. Now, there is no option in the preferences, only a ringer sound file choose. I try to use a wav file as ringer, but it's not played when a call is incoming.
    There is somenthing wrong/not handled?

    I was thinking about other features.. Which informations can you get from the mobile? I saw around other software (for Windows that work like a headset) that can display also a battery indicator and signal strenght, and carrier information.. I don't know if you can get many other information, like gsm cell, HSPDA infromation and so on.. But it could be nice. I think that your program will be used by a a target of advanced user, wich are never satisfied about details.. I hope you understand me

    You are going to make a really useful extension for nGhost, i think that it must be in the next release. By the way, for now I like the idea to use it on my pc, or on my notebook. I hope that the project will be relased as "end-user" application, not only as plugin.. I hope that soon I'll be able to make a binary package for my Archlinux distribution.

    For further evolution of your software, it could be really hot to have a phone managing system also for contacts, calendar. Other really nice feature it's to associated a photo, a video or a ringer for each number or contact (or group of contacts). Also, work like a registrator, or play a stored file (like a telephone secretary, i don't know the correct translation ) for number that i don't want to response..

    Otherwise.. Your developing it's very appreciated Thank you

  9. #29
    Newbie samr7's Avatar
    Join Date
    Mar 2006
    Posts
    42
    Quote Originally Posted by duxa View Post
    thanks a lot for an excellent piece of software. I have a dream to integrate it to the HTPC-platform Freevo, so I can call people from my couch with a remote, without having to fetch the phone from 2 meters away.

    I was able to build it and make a call, and heard the other end's voice via PC speakers (although a bit garbled), and the mic didn't seem to work. A good start anyway.
    Hi duxa,

    That's awesome that it mostly worked for you. 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?

    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'm hoping to plug it in to nghost in the near future. This could be done as a completely integrated UI, in which case it would present a whole new set of features and requirements to those creating nghost skins. But I'm also interested in avoiding breakage due to nghost interfaces changing, and keeping the connections simple seems valuable. So, integration there might involve merely modifying hfconsole to use nghost's IPC protocol, and using it to report status and call notifications. The other settings could be done using the Gtk UI.

    Quote Originally Posted by duxa View Post
    Also this looks like a bug in hfconsole (starting at line 338, rev 22):
    That's exactly right. Those attach/detach commands were added in the prior version but I didn't test it with those options missing from the config file. It should be fixed now. Thanks!

  10. #30
    Newbie samr7's Avatar
    Join Date
    Mar 2006
    Posts
    42
    Quote Originally Posted by Malo View Post
    I was re-testing the "Incoming call" popup.. You also fixed it . But what is the function of "busy" button? If I press "ignore", it close the pupup, the mobile is still ringing and it's right. If i choose "busy", the same thing happen.. It's not important,just a notice .
    Also, in the older svn view i can choose to hear my mobile ringer when a call is incoming. Now, there is no option in the preferences, only a ringer sound file choose. I try to use a wav file as ringer, but it's not played when a call is incoming.
    There is somenthing wrong/not handled?
    Hi Malo,

    I'm glad it worked for you!

    The ignore button is only supposed to hide the popup, as it sounds like it is doing correctly. The busy button should send the User Determine User Busy command. Hopefully it's correctly noticing whether your phone supports it, and is correctly sending the command! If you can PM me the HFPD> lines, I'll verify it, but will guess that it's working correctly, but your carrier isn't implementing UDUB. Perhaps the busy button needs to be removed if the phone claims to support normal call rejection.

    Quote Originally Posted by Malo View Post
    I was thinking about other features.. Which informations can you get from the mobile? I saw around other software (for Windows that work like a headset) that can display also a battery indicator and signal strenght, and carrier information.. I don't know if you can get many other information, like gsm cell, HSPDA infromation and so on.. But it could be nice. I think that your program will be used by a a target of advanced user, wich are never satisfied about details.. I hope you understand me
    This is very true! The only indicators that hfconsole reports right now are the call status and the service indicators. It receives, but doesn't do anything with standard indicators for signal strength and battery status. Some phones also provide nonstandard voice mail and battery charger attached indicators that could be reported too. 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?

    Most phones support the serial port profile, and implement a number of GSM commands and status indicators over it. Most support SMS and phone book access through SPP. However, through the hands-free profile connection, most phones support only a subset of the services they offer through SPP, usually omitting SMS and phone book access. In this regard, HFP for Linux is inherently at a disadvantage to apps that use SPP, such as FreePhone for Road Runner. At the same time it will hopefully fulfill its primary objective of being a hands-free better than FreePhone.

    Quote Originally Posted by Malo View Post
    You are going to make a really useful extension for nGhost, i think that it must be in the next release. By the way, for now I like the idea to use it on my pc, or on my notebook. I hope that the project will be relased as "end-user" application, not only as plugin.. I hope that soon I'll be able to make a binary package for my Archlinux distribution.
    Thanks!

    The Gtk frontend will remain as standard, hopefully with some additional feature as you suggest, maybe with some help from gammu. Getting distributions to package it could be a challenge.

    Quote Originally Posted by Malo View Post
    For further evolution of your software, it could be really hot to have a phone managing system also for contacts, calendar. Other really nice feature it's to associated a photo, a video or a ringer for each number or contact (or group of contacts). Also, work like a registrator, or play a stored file (like a telephone secretary, i don't know the correct translation ) for number that i don't want to response..
    The lack of phone book is annoying, and I do want to do something about it. The suggestion of integrating gammu/gnokii sounds like an easy way to fix the problem, and that's the direction I'll be thinking about first. Adding pictures and custom ringers would be cool too. Making the ring tone setting work at all might also be a good idea.

    It's starting to sound a little bit like Asterisk the way you describe it. I think Asterisk already has a hands-free profile plugin as well, but I've never used it.

    The feature I'm currently working on is a nonlinear distortion test to try to diagnose audio problems that might affect the echo canceler. The echo canceler works, but it is not sufficient in my car -- the acoustic echo makes people want to get off the phone real fast -- and this is unacceptable.

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
  •