Jump to content

Recommended Posts

Posted

Alright. I've been trying all day to figure out how to use Bluetooth in my .NET app.

I read the Devx article "Make Bluetooth work for you". I also looked at a thread on this forum about connection to a GPS unit. That's not what I want to do. I want to be able to connect two Audiovox SMT5600's via Bluetooth, and exchange text.

First of all, what steps do I need to take to make the code successful? I set both phones to Discoverable mode in Bluetooth. Do I also need to add the other phone as a "Device" on each phone?

When I tried the GPS thread I found on this forum, the "Output" was simply spammed with "-->" s. Does the SMT5600 use different ports?

I'd enjoy any help anyone can give me :D

EDIT: Sorry, I was a little unclear. The Devx article didn't work for me at all, and the GPS one simply spammed "-->" s.

I also looked into the OpenNETCF.org project. Their bluetooth framework isn't complete yet, but it looks awesome! I've tried to combine their latest stable release with the unstable Bluetooth framework, but I had way too many errors, and some missing classes :lol:

Guest Peter Foot
Posted
I also looked into the OpenNETCF.org project. Their bluetooth framework isn't complete yet, but it looks awesome! I've tried to combine their latest stable release with the unstable Bluetooth framework, but I had way too many errors, and some missing classes :)

Unfortunatly there are some issues with the currently posted code because it has some dependencies which are not posted there. I'm hoping to update the sourcecode on the site soon and release a compiled version. The other main missing item is of course sample code, although the communications are all based around standard sockets so should be familiar if you have used System.Net.Socket. It's also modelled roughly on the System.Net.IrDa code so designed to be somewhat similar to using IrDa.

At the moment there is only support for outgoing connections, for example to a GPS receiver, currently it doesn't support hosting a custom service since the SDP code is not in there as it relies on some COM interop stuff, I'll try and get an update posted in the next week with a sample to establish a connection to a device such as a GPS and retrieve data.

Peter

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.