How to set UUID in Win CE? RRS feed

  • Question

  • I'm building an android app to communicate with a Win CE 5 PC(with a bluetooth dongle and C# code) using Bluetooth to transfer messages. To start and learn about how the bluetooth connection works I've started by making a connection between an android tablet and my Win 7 PC. I got this to work and tried to get it to work in WIN CE but It doesn't work.

    It seems I can't set de UUID of the device. I use the following code to set the UUID.

    Guid mUUID = new Guid("00001101-0000-1000-0000-00005F9B34FB");
    BluetoothClient con;
    updateUI("Generated UUID is: " + mUUID.ToString());
    serverStarted = true;
    updateUI("Server started, waiting for clients");
    BluetoothListener bluetoothListener = new BluetoothListener(mUUID);
    updateUI("UUID used to connect is: " + mUUID.ToString());
    con = bluetoothListener.AcceptBluetoothClient();
    updateUI("Client has connected");
    Stream mStream = con.GetStream();

    When I use the same code on Win 7 and search for the bluetooth device using a bluetooth network scanner I can see the bluetooth dongle with the UUID I've set using this code. But this doesn't work on WIn CE. but it doesn't give any errors it jsut runs the code fine but doesn't seem to set the UUID.

    Does anyone know why this doesn't work? or what the correct code is?

    Thanks in advance and sorry any language errors!

    Monday, November 18, 2013 9:38 AM

All replies

  • Does anyone knows what might be the reason this doesn't work?
    Could it be I've got a wrong type of bluetooth dongle?


    Monday, November 25, 2013 7:56 AM