This project has moved. For the latest updates, please go here.

Xamarin and 32Feet.NET

Topics: Bluetooth - Microsoft, Bluetooth - Other
Jan 14, 2013 at 3:22 PM

Basics:

I'm a C# developer using Xamarin and VS2010 to create an app for an ASUS Transformer tablet.  I want to use 32Feet.NET to create an application that runs on the tablet, sending simple string messages to a laptop running Windows 7, listening for those messages. 

I've tried exploring a couple of samples (BluetoothChat2 among them), but even when I remove all UI elements from the code, the deployment onto the tablet fails.  The message alludes to a dependency on System.Windows.Forms from within the 32Feet.NET dlls.

Is there an example of core Bluetooth messaging that doesn't use any UI elements on the 'client' side?  I'd like to just get to 'hello world'...

Details:

I'm working with a high-school robotics team in FIRST.  We're trying to create a scouting application that uses Bluetooth to connect Wiimotes to an ASUS Transformer tablet (this part is finished), which will operate as a user interface for the person on the Wiimote.

The tablet will basically be sending database commands to the PC, which will update a SQLExpress or MSAccess database with data related to the match the user is watching. 

We're going to have two tablets, with three users on Wiimotes connected to each tablet, watching a FIRST match and inputting data....

Any help appreciated.

Developer
Jan 15, 2013 at 7:49 PM
Edited Jan 15, 2013 at 8:22 PM

The tablet runs Android? We've not done any work to allow 32feet.NET to use the Android Bluetooth API. It's something that I'm sure is possible but its not in place at the moment. It shouldn't be too difficult to add the Android Bluetooth API support however...

EDIT: REMOVE nonsense about WinForms! :-,(

 

((More generally. In the past we've added support in 32feet.NET for Mono and could use the BlueZ stack on Linux and various stacks on Windows. However for BlueZ and the Microsft stacks in particular we needed to patch Mono. By default they block access to Bluetooth (and other non-TCP/IP) Sockets. :-( See e.g. http://32feet.codeplex.com/wikipage?title=BlueZ%20on%20Linux ))

Feb 12, 2013 at 6:39 PM
You wouldn't happen to support it on MonoMac would you?
Developer
Feb 12, 2013 at 9:40 PM
No, never looked at that platform. But send me a Mac and a copy of the Xamarin tools and I'll have a serious look at get it working. :-)
Developer
Feb 12, 2013 at 10:02 PM
I have created that Android support. See http://32feet.codeplex.com/wikipage?title=Android This has only had basic testing, but appears to work. Please give us your feedback.
Feb 13, 2013 at 3:43 AM
<div dir="ltr"> <div> <div> <div> <div>I mentioned to my son (16 years old) tonight that I had posted a message on your forum, then received a reply, and then received a code fix from the software's author within two weeks.<br> <br> </div> He paused, then said, &quot;That's a pretty huge deal, actually.&quot;<br> <br> </div> I agree! Thanks so much! I think I have my UI work finished, or at least close enough, so should be working on the Bluetooth connection shortly. <br> <br> </div> Thanks again for your prompt attention and willingness to pitch in. I'll keep you posted.<br> <br> </div> Jason<br> </div> <div><br> <br> <div>On Tue, Feb 12, 2013 at 5:02 PM, alanjmcf <span dir="ltr">&lt;<a href="mailto:notifications@codeplex.com" target="_blank">notifications@codeplex.com</a>&gt;</span> wrote:<br> <blockquote style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex"> <div> <p>From: alanjmcf</p> <div>I have created that Android support. See <a href="http://32feet.codeplex.com/wikipage?title=Android" rel="nofollow" target="_blank"> http://32feet.codeplex.com/wikipage?title=Android</a> This has only had basic testing, but appears to work. Please give us your feedback.<br> </div> <div> <div> <p>Read the <a href="http://32feet.codeplex.com/discussions/429561#post1000302" target="_blank"> full discussion online</a>.</p> <p>To add a post to this discussion, reply to this email (<a href="mailto:32feet@discussions.codeplex.com?subject=[32feet:429561]" target="_blank">32feet@discussions.codeplex.com</a>)</p> <p>To start a new discussion for this project, email <a href="mailto:32feet@discussions.codeplex.com" target="_blank"> 32feet@discussions.codeplex.com</a></p> <p>You are receiving this email because you subscribed to this discussion on CodePlex. You can <a href="https://32feet.codeplex.com/discussions/429561/unsubscribe/" target="_blank"> unsubscribe</a> on CodePlex.com.</p> <p>Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com</p> </div> </div> </div> </blockquote> </div> <br> </div>