Bluetooth connection error

HomeForumsMonoBrick Communication LibraryBluetooth connection error

Tagged: 

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #5550
    Author Image
    Joel
    Participant

    Hello,

    First, thank you for your work, it is exactly what I was looking for.
    I’m using ubuntu 14.04 and I can control my NXT using monobrick through USB.
    To use a bluetooth connection, I tried to replace this line

    var brick = new Brick<Sensor,Sensor,Sensor,Sensor>(“usb”);

    with

    var brick = new Brick<Sensor,Sensor,Sensor,Sensor>(“/dev/rfcomm1”);

    I have configured the connection (using the default pwd “1234”) and I can see my computer in my nxt.

    When I run my program, I receive this error :

    Error: Failed to open connection
    Press any key to end…

    Unhandled Exception:
    System.IO.IOException: Mauvais descripteur de fichier
    at System.IO.Ports.SerialPortStream.ThrowIOException () [0x00000] in <filename unknown>:0
    at System.IO.Ports.SerialPortStream.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
    at System.IO.Ports.SerialPortStream.Finalize () [0x00000] in <filename unknown>:0

    Do you know what I’m doing wrong?

    Thank you for your answer,

    Joël

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Posted in

Make a donation