| | |
C# Code for Bluetooth
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Mar 2009
Posts: 6
Reputation:
Solved Threads: 0
Hi, I am a student doing my Final Term Project.
I am suppose to create a GUI using C# that can control and interact with a Robot call Robonova-1. The robot will be connected to the PC via Bluetooth.
I was thinking to have a connection button in my GUI to allow it to establish the connection between the GUI and the robot, but I have no idea how I should go about working on it. Because I have never learn C# before.
Could any of the expert out there help me?
I am suppose to create a GUI using C# that can control and interact with a Robot call Robonova-1. The robot will be connected to the PC via Bluetooth.
I was thinking to have a connection button in my GUI to allow it to establish the connection between the GUI and the robot, but I have no idea how I should go about working on it. Because I have never learn C# before.
Could any of the expert out there help me?
check this out, see if it provides any guidance:
http://blogs.msdn.com/codejunkie/arc...t-using-c.aspx
http://blogs.msdn.com/codejunkie/arc...t-using-c.aspx
Alex Cavnar, aka alc6379
•
•
Join Date: Mar 2009
Posts: 6
Reputation:
Solved Threads: 0
•
•
•
•
check this out, see if it provides any guidance:
http://blogs.msdn.com/codejunkie/arc...t-using-c.aspx
hi there,
thanks for the reply. is there any other site that i can visit? cant seems to be able to go into the site you given...
•
•
Join Date: Apr 2009
Posts: 3
Reputation:
Solved Threads: 0
•
•
•
•
hi there,
thanks for the reply. is there any other site that i can visit? cant seems to be able to go into the site you given...
As they say Necessity is mother of invention, I recently got a Jabra BT3030 Bluetooth headset. I paired it to my Windows Mobile phone. When I wanted to turn on the Bluetooth, I had to go to wireless manager and turn it on. I am a little bit lazy and had an idea why not map a button on the phone to toggle the bluetooh radio. But, this is not possible by default, so started working on a program to map to the button.
Fortunately it is very simple to interact with Bluetooth radio and devices on the phone using Windows Embedded Source Tools for Bluetooth Technology. This download contains bunch of C# files which you can directly use in your code. You will get classes such as BluetoothDevice and BluetoothRadio which allow you to control the device and paired devices.
C# Syntax (Toggle Plain Text)
1: using System; 2: using System.Collections.Generic; 3: using System.Text; 4: using Microsoft.WindowsMobile.SharedSource.Bluetooth; 5: 6: namespace ToggleBluetooth 7: { 8: class Program 9: { 10: static void Main(string[] args) 11: { 12: BluetoothRadio brad = new BluetoothRadio(); 13: if (brad.BluetoothRadioMode == BluetoothRadioMode.Off) 14: brad.BluetoothRadioMode = BluetoothRadioMode.On; 15: else 16: brad.BluetoothRadioMode = BluetoothRadioMode.Off; 17: } 18: } 19: }
After that, I added a setup project and made sure that a shortcut for the application is under Programs folder, so that I can map it using the Buttons applet of Settings panel. After the install on the device, you should be able to see the program in the "Assign a program" list.
As usual, here are some links and blog post.
Windows Embedded Source Tools for Bluetooth Technology - http://msdn.microsoft.com/en-us/embedded/aa714533.aspx
Channel 9 Wiki (has a good Q&A) - http://channel9.msdn.com/wiki/bluetoothdevelopment/
MSDN Code Samples page - http://msdn.microsoft.com/en-us/library/bb158662.aspx
NOTE: I did not write this. - http://blogs.msdn.com/codejunkie/arc...t-using-c.aspx
![]() |
Similar Threads
- Scanning for bluetooth devices (C#)
- Can anyone help with some simple, quick code for bluetooth? (Java)
- Need help on programming with bluetooth-enabled devices (Java)
- assembler code (Community Introductions)
- Store Bluetooth remote address to a text file (C++)
Other Threads in the C# Forum
- Previous Thread: RichTextBox to MS Word (with formatting)
- Next Thread: change regional option
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# chat check checkbox client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms function gdi+ image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






