Skip to contentSkip to conversation

Bluetooth and C#

Bluez-devel Marcel Holtmann 2 participants 5 messages Dec 18, 2005 Bluetooth drivers

lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

Hi guys,

I was playing a little bit with Mono and C# lately and I think we are really in need for some good C# Bluetooth bindings. I would expect that Microsoft already defined some, but I wasn't able to locate any good documentation about Windows Bluetooth programming with C#. I found some crap about the CE mobile/embedded stuff, but not for the desktop OS. However there exists some stuff from www.32feet.net which tries to provide a framework for Bluetooth, but I am not really sure if it is usable and if it would make sense to implement the same interface for Linux. Some example code of how to use it can be found here:

http://www.totalannihilation.dk/wordpress/code/BluetoothConsoleScanner.cs

So does anybody used C# under Windows XP for Bluetooth programming so far or is the only option still C++?

Regards

Marcel

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#1 lore raw

Hi Marcel,

Quoted 3 lines

I was playing a little bit with Mono and C# lately and I think we are really in need for some good C# Bluetooth bindings.

Good idea. If you want to write a BlueZ#, then through P/Invoke you would be able to call into libbluetooth.so.

Quoted 3 lines

I would expect that
Microsoft already defined some

No, not that I'm aware of - that is not in .NET Framework 1.0, 1.1 and 2.0. Also Mono does not currently ship any.

Quoted 5 lines

, but I wasn't able to locate any good
documentation about Windows Bluetooth programming with C#. I found some crap about the CE mobile/embedded stuff, but not for the desktop OS.

There was something at OpenNETCF.org for the .NET CF but it has dependencies on external COM interop components by InTheHand.

Quoted 4 lines

So does anybody used C# under Windows XP for Bluetooth programming so far or is the only option still C++?

I am not aware of a free, widely used Bluetooth framework for .NET. If you come upon any others, please let me know!

Best regards,

Andreas

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

author maintainer
#2 lore raw

Hi Andreas,

Quoted 5 lines
Quoted 3 lines

I was playing a little bit with Mono and C# lately and I think we are really in need for some good C# Bluetooth bindings.

Good idea. If you want to write a BlueZ#, then through P/Invoke you would be able to call into libbluetooth.so.

I am not going to do this, because I am looking for a standard solution and not a home brewed one.

Quoted 5 lines
Quoted 3 lines

I would expect that
Microsoft already defined some

No, not that I'm aware of - that is not in .NET Framework 1.0, 1.1 and 2.0. Also Mono does not currently ship any.

Too bad.

Quoted 6 lines
Quoted 4 lines

, but I wasn't able to locate any good
documentation about Windows Bluetooth programming with C#. I found some crap about the CE mobile/embedded stuff, but not for the desktop OS.

There was something at OpenNETCF.org for the .NET CF but it has dependencies on external COM interop components by InTheHand.

This is the stuff from www.32feet.net now.

Regards

Marcel

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#3 lore raw

Marcel,

Quoted 8 lines
Quoted 3 lines

If you want to write a BlueZ#, then through P/Invoke you would be able to call into libbluetooth.so.

I am not going to do this, because I am looking for a standard solution and not a home brewed one.

Every standard interface would need some kind of implementation - there is no Microsoft stack on Linux so that would be BlueZ in some way.

Regards,

Andreas

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

author maintainer
#4 lore raw

Hi Andreas,

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

If you want to write a BlueZ#, then through P/Invoke you would be able to call into libbluetooth.so.

I am not going to do this, because I am looking for a standard solution and not a home brewed one.

Every standard interface would need some kind of implementation - there is no Microsoft stack on Linux so that would be BlueZ in some way.

yes, but that are implementation details. And with a standard interface they are hidden.

Regards

Marcel

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel