Main Site Documentation

Problem With Bluetooth module


#1

i just try to connect bluetooth module with my laptop,in i used the bluetooth beta version that have released by Eduardo Velloso

and this is the program i used


using System;
using System.Collections;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;

using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.Velloso;

namespace BluetoothTest
{
    public partial class Program
    {
        // This method is run when the mainboard is powered up or reset.   
        Bluetooth bluetooth = new Bluetooth(9);
        Bluetooth.Client client;
       // Bluetooth.Host host;
        void ProgramStarted()
        {

            Debug.Print("Program Started");

            // Client Test
           client = bluetooth.ClientMode;

            // Host Test
            //host = bluetooth.HostMode;

        //    button.ButtonPressed += new Button.ButtonEventHandler(button_ButtonPressed);
            bluetooth.BluetoothStateChanged += new Bluetooth.BluetoothStateChangedHandler(bluetooth_BluetoothStateChanged);
            bluetooth.DataReceived += new Bluetooth.DataReceivedHandler(bluetooth_DataReceived);
            client.EnterPairingMode();
            
        }

        void bluetooth_DataReceived(Bluetooth sender, string data)
        {
            Debug.Print("Received: " + data);
        }

        void bluetooth_BluetoothStateChanged(Bluetooth sender, Bluetooth.BluetoothState btState)
        {
            //Debug.Print("New state:" + btState.ToString());
            if (btState == Bluetooth.BluetoothState.Connected)
            {
                client.Send("HELLO");
                
            }
        }

        
      
           
        
    }
}


and following images are show the out put i get but am unable to connect the bluetooth module with my laptop, am using windows 7. please help me on this i need to connect my laptop with .net Gadgeteer bluetooth module please help me on this ASAP


#2

this is the connectivity Diagram


#3

does any one know what is the problem here?


#4

Maybe try to contact the driver author? We will be doing some tests on it and adding it to SDK in near future but we haven’t tried it just yet.


#5

You don’t need to add the module in the Designer.