Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34

Thread: HOWTO: BlueLink - Cellphone fun with SonyEricsson and linux

  1. #11
    Join Date
    Aug 2005
    Location
    Tasmania, Australia
    Beans
    22
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: BlueLink - Cellphone fun with SonyEricsson and linux

    Hey,

    This looks like a very promising project but unfortunately I am having little luck getting it to work.

    I am using edgy with the latest updates and when running "Bluetooth File Sharing" bluelink fails to connect to my device with this error:

    Code:
    josh@Josh-Laptop:~$ sudo bluelink --debug
    DEBUG: Opening file /home/josh/.bluelink/bluelink.conf
    DEBUG: Allowed phone: 00:16:20:41:5B:D1
    DEBUG: Searching for bluetooth devices...
    DEBUG: Found 2 device(s).
    DEBUG: Number of currently active phone: 0
    DEBUG: Connect to the phone 00:16:20:41:5B:D1
    DEBUG: Opening file /home/josh/.bluelink/00:16:20:41:5B:D1.conf
    DEBUG: Opening connection to SonyEricsson phone
    DEBUG: Couldn't open socket to device: 00:16:20:41:5B:D1
    Error: Connecting phone failed!
    DEBUG: Found 2 device(s).
    DEBUG: Number of currently active phone: 0
    DEBUG: Connect to the phone 00:16:20:41:5B:D1
    DEBUG: Opening file /home/josh/.bluelink/00:16:20:41:5B:D1.conf
    DEBUG: Opening connection to SonyEricsson phone
    DEBUG: Couldn't open socket to device: 00:16:20:41:5B:D1
    Error: Connecting phone failed!
    Closing BlueLink...
    Plase wait or press CTRL+C for quick and dirty exit.
    DEBUG: Stopped scanning bluetooth devices.
    Without "Bluetooth File Sharing" here is the output of the terminal:

    Code:
    josh@Josh-Laptop:~$ sudo bluelink --debug
    DEBUG: Opening file /home/josh/.bluelink/bluelink.conf
    DEBUG: Allowed phone: 00:16:20:41:5B:D1
    DEBUG: Searching for bluetooth devices...
    DEBUG: Found 2 device(s).
    DEBUG: Number of currently active phone: 0
    DEBUG: Connect to the phone 00:16:20:41:5B:D1
    DEBUG: Opening file /home/josh/.bluelink/00:16:20:41:5B:D1.conf
    DEBUG: Opening connection to SonyEricsson phone
    DEBUG: Start monitoring RFCommSocket...
    libnotify-Message: Unable to get session bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
    terminate called after throwing an instance of 'Exception'
    Aborted (core dumped)
    My guess is that bluelink is trying to prompt my phone for a handshake here, but fails. I see a quick second of bluetooth activity on my phone before the program fails. My phone doesn't bring up any pairing key prompt or anything (although my phone should already be paired so this may not be an issue).

    My phone is the Sony Ericsson W800i, which is based on the K750i model (nearly exactly the same, just with latter software, and a different case).

    I have tried running the program from root and as a user with no success. Any help is appreciated.

    Cheers,
    Josh

  2. #12
    Join Date
    Aug 2005
    Location
    Tasmania, Australia
    Beans
    22
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: BlueLink - Cellphone fun with SonyEricsson and linux

    Well after booting up my laptop the next day it seems to "justs work". I don't think I changed anything, but it seems reasonably stable. The only issue is that I have to start the "Bluetooth File Sharing" applet after bluelink. No biggy

    Great project mate, keep up the good work.

    Cheers,
    Josh

  3. #13
    Join Date
    Apr 2005
    Location
    Finland
    Beans
    300
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: BlueLink - Cellphone fun with SonyEricsson and linux

    Quote Originally Posted by Joshua Hesketh View Post
    Well after booting up my laptop the next day it seems to "justs work". I don't think I changed anything, but it seems reasonably stable. The only issue is that I have to start the "Bluetooth File Sharing" applet after bluelink. No biggy
    I'm glad you got it working. My internet was down couple of days and I wasn't able to reply. I have the same problem with "Bluetooth file sharing" and I don't know why that is. Unfortunately I don't have much time for the project right now. I made a quick hack to pause banshee during calls, but I needs to be written again for release.

  4. #14
    Join Date
    Aug 2005
    Location
    Fortaleza
    Beans
    73
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: BlueLink - Cellphone fun with SonyEricsson and linux

    Hi,
    I'm having trouble to install it.
    I didn't find libbluetooth1-dev. I found libbluetooth2-dev and installed it.
    when I typed "make" I got the following error:
    lucas@ubuntu:~/bluelink$ make
    g++ -Wall -g main.cpp -o bluelink `pkg-config libnotify --cflags --libs` -l bluetooth -l pthread
    SonyEricsson.cpp: In member function ‘virtual void SonyEricsson::handleReceivedMessage(std::string)’:
    SonyEricsson.cpp:88: warning: format ‘%d’ expects type ‘int*’, but argument 3 has type ‘ccstatus*’
    SonyEricsson.cpp:100: warning: format ‘%d’ expects type ‘int*’, but argument 4 has type ‘ccstatus*’
    SonyEricsson.cpp:100: warning: format ‘%d’ expects type ‘int*’, but argument 5 has type ‘calltype*’
    SonyEricsson.cpp:100: warning: format ‘%d’ expects type ‘int*’, but argument 7 has type ‘exitcause*’
    SonyEricsson.cpp:142: warning: format ‘%d’ expects type ‘int*’, but argument 4 has type ‘ccstatus*’
    SonyEricsson.cpp:142: warning: format ‘%d’ expects type ‘int*’, but argument 5 has type ‘calltype*’
    main.cpp: At global scope:
    main.cpp:109: error: expected declaration before ‘}’ token
    make: ** [all] Erro 1
    Can you help me?

  5. #15
    Join Date
    Aug 2005
    Location
    Tasmania, Australia
    Beans
    22
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: BlueLink - Cellphone fun with SonyEricsson and linux

    Quote Originally Posted by LucasLinard View Post
    Hi,
    I'm having trouble to install it.
    I didn't find libbluetooth1-dev. I found libbluetooth2-dev and installed it.
    when I typed "make" I got the following error:

    Can you help me?
    I had the same problem when I tried to compile it.

    My solution was to open up main.cpp and remove the '}' token on line 109 (the very last one).

    From the comment in the code it seems that it was designed as a work around to some error, but it seems to be causing more problems.

  6. #16
    Join Date
    Aug 2006
    Beans
    Hidden!

    Post Re: HOWTO: BlueLink - Cellphone fun with SonyEricsson and linux

    Quote Originally Posted by Joshua Hesketh View Post
    I had the same problem when I tried to compile it.

    My solution was to open up main.cpp and remove the '}' token on line 109 (the very last one).

    From the comment in the code it seems that it was designed as a work around to some error, but it seems to be causing more problems.
    I'm encountering the same problem:

    g++ -Wall -g main.cpp -o bluelink `pkg-config libnotify --cflags --libs` -l bluetooth -l pthread
    SonyEricsson.cpp: In member function ‘virtual void SonyEricsson::handleReceivedMessage(std::string)’:
    SonyEricsson.cpp:88: warning: format ‘%d’ expects type ‘int*’, but argument 3 has type ‘ccstatus*’
    SonyEricsson.cpp:100: warning: format ‘%d’ expects type ‘int*’, but argument 4 has type ‘ccstatus*’
    SonyEricsson.cpp:100: warning: format ‘%d’ expects type ‘int*’, but argument 5 has type ‘calltype*’
    SonyEricsson.cpp:100: warning: format ‘%d’ expects type ‘int*’, but argument 7 has type ‘exitcause*’
    SonyEricsson.cpp:142: warning: format ‘%d’ expects type ‘int*’, but argument 4 has type ‘ccstatus*’
    SonyEricsson.cpp:142: warning: format ‘%d’ expects type ‘int*’, but argument 5 has type ‘calltype*’
    Except, no error in the Main.cpp file.

  7. #17
    Join Date
    Aug 2005
    Location
    Tasmania, Australia
    Beans
    22
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: BlueLink - Cellphone fun with SonyEricsson and linux

    Quote Originally Posted by Scotty B. View Post
    I'm encountering the same problem:



    Except, no error in the Main.cpp file.
    That output is all warnings, no errors. That means you should have successfuly compiled it and can complete the next installation steps.

  8. #18
    Join Date
    Apr 2005
    Location
    Finland
    Beans
    300
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: BlueLink - Cellphone fun with SonyEricsson and linux

    Quote Originally Posted by Joshua Hesketh View Post
    I had the same problem when I tried to compile it.

    My solution was to open up main.cpp and remove the '}' token on line 109 (the very last one).

    From the comment in the code it seems that it was designed as a work around to some error, but it seems to be causing more problems.
    yes, this is the solution. In dapper it won't compile without that bracket, but in Edgy it won't compile if the bracket is there. I'm not sure why that is.

  9. #19
    Join Date
    Aug 2006
    Beans
    28

    Re: HOWTO: BlueLink - Cellphone fun with SonyEricsson and linux

    When i try to connect my phone (Ericsson w800i) I get the following error:
    Code:
    DEBUG: Opening file /home/moos/.bluelink/bluelink.conf
    DEBUG: Allowed phone: 00:11:22:AA:BB:CC
    DEBUG: Allowed phone: 00:16:20:2E:6B:C4
    DEBUG: Searching for bluetooth devices...
    DEBUG: Found 1 device(s).
    DEBUG: Number of currently active phone: 0
    DEBUG: Connect to the phone 00:16:20:2E:6B:C4
    DEBUG: Opening file /home/moos/.bluelink/00:16:20:2E:6B:C4.conf
    DEBUG: Opening connection to SonyEricsson phone
    DEBUG: Start monitoring RFCommSocket...
    terminate called after throwing an instance of 'FileException'
    Aborted
    Do you know a solution to this? I'm fairly new to bluetooth 8)

  10. #20
    Join Date
    Apr 2005
    Location
    Finland
    Beans
    300
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: BlueLink - Cellphone fun with SonyEricsson and linux

    Quote Originally Posted by mhueting View Post
    When i try to connect my phone (Ericsson w800i) I get the following error:
    Code:
    DEBUG: Opening file /home/moos/.bluelink/bluelink.conf
    DEBUG: Allowed phone: 00:11:22:AA:BB:CC
    DEBUG: Allowed phone: 00:16:20:2E:6B:C4
    DEBUG: Searching for bluetooth devices...
    DEBUG: Found 1 device(s).
    DEBUG: Number of currently active phone: 0
    DEBUG: Connect to the phone 00:16:20:2E:6B:C4
    DEBUG: Opening file /home/moos/.bluelink/00:16:20:2E:6B:C4.conf
    DEBUG: Opening connection to SonyEricsson phone
    DEBUG: Start monitoring RFCommSocket...
    terminate called after throwing an instance of 'FileException'
    Aborted
    Do you know a solution to this? I'm fairly new to bluetooth 8)
    Well, it's because my code sucks But, I think you have enabled logging, but the log file doesn't exists. Yes, it really should create one but it doesn't. So turn off logging or create empty file for the log.

Page 2 of 4 FirstFirst 1234 LastLast

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
  •