Quantcast
Channel: 32feet Forum Rss Feed
Viewing all articles
Browse latest Browse all 341

New Post: No supported Bluetooth protocol stack found.

$
0
0
I'm writing window CE application using VS2008 microsoft .net framework v.3.5 SP1 and window mobile 5.0 and inTheHand.Net.Personal runtime version v2.0.50727 version 3.7.1102.0.
and my laptop is Dell latitude with Bluetooth radio
  • Dell Wireless 375 Bluetooth Module
  • Microsoft Bluetooth Enumerator
When I debug through USA windows mobile 5.0 pocket PC emulator and connect the Bluetooth from thermometer I got 'No supported Bluetooth protocol stack found.' and the following :

'Huskey.exe' (Managed): Loaded 'c:\program files\32feet.net\netcf\InTheHand.Net.Personal.dll'
32feet.NET: 'InTheHand.Net.Personal, Version=3.5.605.0, Culture=neutral'
versions: '3.5.605.0' and '3.5.0605.0'.
Calling BSC_Initialize with:HCI_DriverInformation/COMM (COMM, 32), 'BTS'6, UART_RTS_CTS, 57600; 115200, 500.
A first chance exception of type 'System.MissingMethodException' occurred in InTheHand.Net.Personal.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
A first chance exception of type 'System.PlatformNotSupportedException' occurred in InTheHand.Net.Personal.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
A first chance exception of type 'System.PlatformNotSupportedException' occurred in InTheHand.Net.Personal.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
System.MissingMethodException: Can't find PInvoke DLL 'SS1BTPS.dll'.
System.PlatformNotSupportedException: Microsoft Bluetooth stack not supported (radio).
System.PlatformNotSupportedException: Broadcom Bluetooth stack not supported (radio).
A first chance exception of type 'System.PlatformNotSupportedException' occurred in InTheHand.Net.Personal.dll


Here is my code :
BluetoothAddress addr = BluetoothAddress.Parse("008098097690");
        BluetoothEndPoint ep = new BluetoothEndPoint(addr, BluetoothService.SerialPort);
        if (BluetoothRadio.IsSupported)
        {
            MessageBox.Show("Supported");
        }
        else
        {
            MessageBox.Show("Not supported");
        }
        BluetoothClient cln = new BluetoothClient();
        BluetoothSecurity.PairRequest(addr, "0000");
        cln.Connect(ep);

        while (true)
        {
            Stream mStream = cln.GetStream();
            byte[] received = new byte[1000];
            string txtRec = "", txtRet = "";
            int n, i, tempVal;

            try
            {
                mStream.Read(received, 0, received.Length);
                txtRec = (Encoding.ASCII.GetString(received, 0, received.Length).ToString().Replace("\0", "")).Trim();
                n = txtRec.IndexOf("H");
                if (n != -1 && txtRec.Length >= 8)
                {
                    txtRec = txtRec.Substring(n + 4, 4);
                    i = txtRec.IndexOf(".");
                    if (i != -1) txtRec.Substring(0, i);
                    tempVal = Convert.ToInt32(string.Join(null, System.Text.RegularExpressions.Regex.Split(txtRec, "[^\\d]")));
                    txtRet = tempVal.ToString();
                    return txtRet;
                }
                mStream.Flush();

            }
            catch (IOException ex) { MessageBox.Show(ex.Message); }
            return txtRet;
        }
I have tried several version of InHand Dll but it's not working either and also have copy 32feetWidcomm.dll and btwapi.dll from C:\Program Files\32feet.NET\Broadcom\Win32-x64 to my debug folder. it didn't work too.
But when I write the window application with vs2010 the same code just working fine.

Can you suggest me what should I do to correct it?

Viewing all articles
Browse latest Browse all 341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>