| | |
Scanning for bluetooth devices
Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Jun 2004
Posts: 1
Reputation:
Solved Threads: 0
I am working on a project for college that involves bluetooth. I was required to use .Net. I have only programmed in C before, and therefore have started to teach myself C#. I have written all of the program already, including sending the data over a bluetooth connection. The only part I am having difficulty with is scanning for bluetooth devices in the area.
Can anyone give me any ideas on how to go about doing this or sample code.
Thanks a lot,
Tim
Can anyone give me any ideas on how to go about doing this or sample code.
Thanks a lot,
Tim
•
•
Join Date: Sep 2004
Posts: 19
Reputation:
Solved Threads: 0
I haven't read through all the material, but it looks like it's specific for each blue tooth device. You'll need a BlueTooth SDK from the hardware vendor and then use PInvoke to access it's functions.
This newsgroup thread seems to be excellent.
http://dotnetjunkies.com/Newsgroups/.../30/99101.aspx
This newsgroup thread seems to be excellent.
http://dotnetjunkies.com/Newsgroups/.../30/99101.aspx
If you don't know it, learn it ;)
This is absolutely not true! I haven't done bluetooth in C# before, but I've done it in C/C++ and am familiar with the bluetooth protocol. You need to just do a device inquiry over sdp (Service Discovery Protocol). This is not vendor specific---A Huge Nightmare if it was vendor specific!!! Look in your API for SDP I'm sure you'll find something. If you decided instead to run Linux and bluez then I could help you
.
Ed
.Ed
•
•
•
•
Originally Posted by C#Coder
it looks like it's specific for each blue tooth device. You'll need a BlueTooth SDK from the hardware vendor and then use PInvoke to access it's functions.
•
•
•
•
In a world without walls or fences,
What use are Windows and Gates.
•
•
Join Date: Mar 2005
Posts: 1
Reputation:
Solved Threads: 0
Hi, maybe late, but here is a good place where you can find example code about how to perform SDP, with microsoft's bluetooth APIs:
http://www.lenholgate.com
About data transfer between devices, I'm still working on it. I'm new to visual C++ and MFC, so I'm finding a little bit difficult to achieve the goal of creating a piconet. I think now I am close to it, and if any one knows anything about the topic of bluetooth piconets, don´t hesitate contacting me.
http://www.lenholgate.com
About data transfer between devices, I'm still working on it. I'm new to visual C++ and MFC, so I'm finding a little bit difficult to achieve the goal of creating a piconet. I think now I am close to it, and if any one knows anything about the topic of bluetooth piconets, don´t hesitate contacting me.
•
•
Join Date: Dec 2005
Posts: 3
Reputation:
Solved Threads: 0
Hi Tim,
I am not sure but maybe u could use OBEX to discover the Bluetooth devices around the area and connect to it?
By the way, I am interested in your application, care to talk/post your code?
I am doing a C# application to communciate between desktop and PDA.
I have problems converting the VB .NET application found at http://www.devx.com/wireless/Article/11511/0 to C# application.
Please assist
Thanks.
Clement
I am not sure but maybe u could use OBEX to discover the Bluetooth devices around the area and connect to it?
By the way, I am interested in your application, care to talk/post your code?
I am doing a C# application to communciate between desktop and PDA.
I have problems converting the VB .NET application found at http://www.devx.com/wireless/Article/11511/0 to C# application.
Please assist
Thanks.
Clement
•
•
Join Date: Mar 2006
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by tadhg
I am working on a project for college that involves bluetooth. I was required to use .Net. I have only programmed in C before, and therefore have started to teach myself C#. I have written all of the program already, including sending the data over a bluetooth connection. The only part I am having difficulty with is scanning for bluetooth devices in the area.
Can anyone give me any ideas on how to go about doing this or sample code.
Thanks a lot,
Tim
![]() |
Other Threads in the C# Forum
- Previous Thread: how to get installation folder in custom installer
- Next Thread: how to name shortcuts dynamically
| Thread Tools | Search this Thread |
.net access algorithm app application array bitmap box c# check checkbox client color combo combobox concurrency control conversion csharp custom cyclethruopenforms data database datagrid datagridview dataset datatable date/time datetime degrees dll draganddrop drawing enabled encryption enum excel file filename files finalyearproject form format forms function gdi+ getoutlookcontactusinfcsvfile globalization gtk image input install installer java list localization math microsoftc#visualexpress mono mouseclick mysql operator panel path photoshop picturebox pixelinversion post programming radians regex remoting richtextbox save server sleep socket sql sql-server statistics string table text textbox thread time timer timespan update usercontrol users validate validation visualstudio webbrowser webcam wia winforms wpf xml





