Solved

BlueTooth Device Discovery - Using C#

Posted on 2004-04-02
9
5,690 Views
Last Modified: 2013-12-14
I'm attempting to perform device discovery using C#. I've found many valuable references on how to do this on the web and in books. The problem is, all of them are written  assuming the programmer is using C++. While Java, VB and CSharp and not an issue for me, translating the code from the pointer heavy world of C++ to CSharp is taking more time than it's worth.

Does anyone know of any good examples of Bluetooth programming using c#. Anything specific to device discovery would be most appreciated.

Thanks!
Tom
0
Comment
Question by:tdenniso
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 

Author Comment

by:tdenniso
ID: 10740323
Hi Desp

I've been looking at the article on DevX and it's been helpful for the actual comm port communications, however, it does not go into the device discovery steps. It assumes you know the device you want to connect with and connect to it via the Bluetooth control panel.

On the other, I think that's written in C++ as well, and it seems to be only a sinippet at that.

Thanks!
Tom
0
 

Expert Comment

by:daverussell
ID: 10744867
Tom:
I just started down the same path, could you do a quick post of what you've found so far?  Which books and examples are the best?
Thanks
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 19

Expert Comment

by:Desp
ID: 10747115
sorry, could not help that much..
0
 

Author Comment

by:tdenniso
ID: 10756271
All:

I was able to finally find something that was pretty helpful. I am still working through some of the details, but this code is in C#:

http://www.opennetcf.org/sourcebrowse/browse.aspx?f=d:/sites/OpenNETCF/InetPub/wwwroot/Source/OpenNETCF.Net

Tom
0
 

Author Comment

by:tdenniso
ID: 10765165
The above code is pretty much what I need. However, there are some CONSTANT definitins that are missing. For example, for the WSAQUERYSET struct, I need to know what the contant value is for NS_BTH. I have found definitions for other NS_X constants, but not the one for Bluetooth. Anyone have any idea where this could be located?
0
 

Expert Comment

by:amitgaur51
ID: 10806725
tom,
were you able to obtain the values for the  constants and get the code from opennetcf.org working?
Also what books and other links have you used for WinCE development using C#
Thanks
Amit
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 11165796
PAQed, with points refunded (500)

GhostMod
Community Support Moderator
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe how to setup a Cisco WLC 5508 to work with Apple's Bonjour protocol across VLANs.  I will also discuss using screen mirroring and Airplay on an AppleTV v3.  This article covers the wireless network only and requires m…
Using in-flight Wi-Fi when you travel? Business travelers beware! In-flight Wi-Fi networks could rip the door right off your digital privacy portal. That’s no joke either, as it might also provide a convenient entrance for bad threat actors.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question