Solved

BlueTooth Device Discovery - Using C#

Posted on 2004-04-02
9
5,647 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
9 Comments
 
LVL 19

Expert Comment

by:Desp
ID: 10740255
0
 

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
 
LVL 19

Expert Comment

by:Desp
ID: 10747115
sorry, could not help that much..
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Multi-source agreements are important because they set standards that all manufacturers should follow to ensure that devices are compatible with multiple vendors. The multi-source agreement (MSA) is an agreement that establishes how multiple vendors…
This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now