ERROR - can't open /dev/rfcomm0

Help
Simon Waid
2009-11-29
2012-12-10
  • Simon Waid
    Simon Waid
    2009-11-29

    Hi,

    I've got a weired problem with anyremote. When I use the device browser of ganyremote I can send AT-Commands to my phone and it  answers. However, when I try to launch an aplication (click on start) I get:

    `
    - ERROR - connect socket for frontend
    - INFO - openPort()
    - ERROR - can't open /dev/rfcomm0
    - INFO - Stop process …`

    Any Idea what could be the cause of this?

    Thanks & Best regards!

     
  • Mike
    Mike
    2009-11-30

    Which phone/model do You have ?

    If You want to connect to the phone in AT-mode it needs to create
    that /dev/rfcomm* before. You have to login as root to do that.
    Please read http://anyremote.sourceforge.net/setup-at.html for details.

     
  • Simon Waid
    Simon Waid
    2009-11-30

    Hi mikefedotov!

    My phone is a Siemens E71.

    I've done

    `sudo rfcomm bind XX:XX:XX:XX 1` (where the XX is the phones MAC)
    before trying to connect. /dev/rfcomm0 exists, however I always get the same errors, even when trying to connect with cu.

    What I don't understand: Why do I get replies, when I run the "device browser"?

    Best regards!

     
  • Mike
    Mike
    2009-11-30

    what about
    sudo rfcomm bind XX:XX:XX:XX 0 ?

     
  • Mike
    Mike
    2009-12-11

    There is a bug in v5.0 and it will be fixed in v5.1
    For now You can use a workaround - manually edit configuration file and change line
    Make(var,Device,by_value,/dev/rfcomm0);
    to
    Make(var,Device,by_value,/dev/rfcommXXX);

     
  • Simon Waid
    Simon Waid
    2009-12-13

    Hi!

    I just played around a bit and found out that my problem was a stupid permissions-problem.
    The solution is very simple:

        sudo rfcomm bind 0 XX:XX:XX:XX:XX:XX
        sudo chmod 666 /dev/rfcomm0

    Afterwards the Siemens E71 works well in AT-mode.

    To mikefedotov:
    Thank you for your effort! I guess you have access to the HP, so you might want to add the Siemens E71 to the list of working phones.

    - It needs the non-JSR-82-Version of anyremote
    - It works in bluetooth-AT-mode
    - It doesn't work in bluetooth-server mode
    - no IR, no WiFi
    - rest wasn't tested