User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 429,965 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,565 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 48476 | Replies: 27
Reply
Join Date: Jun 2004
Location: Ireland
Posts: 1
Reputation: tadhg is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
tadhg tadhg is offline Offline
Newbie Poster

Scanning for bluetooth devices

  #1  
Jun 29th, 2004
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2004
Posts: 24
Reputation: chunguy is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
chunguy's Avatar
chunguy chunguy is offline Offline
Newbie Poster

Re: Scanning for bluetooth devices

  #2  
Sep 26th, 2004
hi hi,
sorry, i can't offer any advice on your question, but t'm interested to know how your project has gone. can you share with me what tools or informational links you used for your project.
Reply With Quote  
Join Date: Sep 2004
Posts: 24
Reputation: chunguy is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
chunguy's Avatar
chunguy chunguy is offline Offline
Newbie Poster

Re: Scanning for bluetooth devices

  #3  
Oct 1st, 2004
anyone else has any information on how to makeuse of bluetooth devices
Reply With Quote  
Join Date: Sep 2004
Posts: 18
Reputation: C#Coder is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
C#Coder C#Coder is offline Offline
Newbie Poster

Re: Scanning for bluetooth devices

  #4  
Oct 1st, 2004
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
If you don't know it, learn it ;)
Reply With Quote  
Join Date: Aug 2004
Location: Hanover
Posts: 152
Reputation: cosi is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
cosi's Avatar
cosi cosi is offline Offline
Junior Poster

Re: Scanning for bluetooth devices

  #5  
Oct 1st, 2004
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

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.
Reply With Quote  
Join Date: Mar 2005
Posts: 1
Reputation: iman is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
iman iman is offline Offline
Newbie Poster

Re: Scanning for bluetooth devices

  #6  
Mar 30th, 2005
Can you please share some of your code to how we able to read from the bluetooth device, and respond.

- Thanks.
Reply With Quote  
Join Date: Mar 2005
Posts: 1
Reputation: I am blue is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
I am blue I am blue is offline Offline
Newbie Poster

Re: Scanning for bluetooth devices

  #7  
Mar 31st, 2005
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.
Reply With Quote  
Join Date: Dec 2005
Posts: 3
Reputation: caton is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
caton caton is offline Offline
Newbie Poster

Re: Scanning for bluetooth devices

  #8  
Dec 15th, 2005
Hi Tim, I am not sure but maybe u could use OBEX to
Reply With Quote  
Join Date: Dec 2005
Posts: 3
Reputation: caton is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
caton caton is offline Offline
Newbie Poster

Re: Scanning for bluetooth devices

  #9  
Dec 15th, 2005
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
Reply With Quote  
Join Date: Mar 2006
Posts: 2
Reputation: Udara is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Udara Udara is offline Offline
Newbie Poster

Re: Scanning for bluetooth devices

  #10  
Mar 3rd, 2006
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

I am also involved in a project where I use a bluetooth usb dongle connected to the PC(which communicates with other bluetooth devices). So can I know " what would be the most suitable programming language in developing my own application programs for that USB bluetooth dongle?". Please help me with this.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C# Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the C# Forum

All times are GMT -4. The time now is 11:42 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC