I'm fairly new to C#, and I'm currently working on integrating an Arduino Uno with a Kinect for Windows sensor. I'm building on someone else's work migrating the environment to a Windows 8.1 App, and to the new Kinect sensors released in 2014. I've looked everywhere else on how to integrate serial communication into Windows 8.1 apps, but it appears that it hasn't been done before, or the functionality has not been added to Windows 8.1, evidenced by the error I get when I attempt to add the System.IO.Ports library. So my question is whether this can be worked around or not. I'm using Visual Studio 2013, .NET v4.6, and the target platform is x86. Any more information can be provided on request. Thank you so much!
EDIT on 10/08/15 at 14:03: I've figured out that if I can write a Windows Forms Arduino COM interface and call that from within the 8.1 App when the serial ports need to be initialized or written to, it might work. Am I addressing this correctly? It would be great to know if this was the right way to approach it. Thanks again!
You are basically right, you have to create three apps, win8.1, proxy and serial handler. The resulting app won't be allowed in the windows store.
Here is an example app
Excellent How To here
Related
My client asked for an application to run on Ios/Android/WindowsPhone a year ago. We proposed to use Xamarin.Forms and for the Ios/Android part all went perfect. We are now facing the problem of Windows Phone. The platform is basically dead so the client asked if it's possibile to convert the app from mobile to desktop without using the windows store.
This application will be used on multiple pcs ranging from windows 7 to 8.1 to 10.
I know that it's possibile to reuse the C# code from Xamarin on .Net, but I was wondering if it's possible a direct export of the project from Xamarin.
Thanks.
I've written an application using 32feet library. It works on Windows 7,8,10. I can find my device, connect to it, send and receive data, but the application doesn't work on Windows XP. It can't find any bluetooth devices. I need to get it working on XP.
What could be the reasons for that? Does somebody knows?
How beta windows phone 8.1 app. Might sound like a newbie question but bear with me. I have written and app like quite a few others but this is the first app where I want to support wp8.1 and wp10. The app side loaded on to a wp8.1 or wp10 device works fine as expected.
If put into the Windows store as beta with the necessary emails will install on wp10 devices but refuses to install on wp8.1 devices no matter what.
If I put into the store as normal it fails testing with an ungraceful shutdown that I cannot replicate.
I can't install beta to get the crash dumps to find out what's going on. So now am completely stuck.
Any help or advice would be much appreciated.
If you want to publish a beta version to a specific group of people, then you'll need to select the following option :
Hide this app and make it available only to the people you specify
below, who can download this app on Windows Phone 8.x devices. A
promotional code may be used to download this app on Windows 10
devices.
Only the people whose email addresses (associated with their Microsoft accounts) that you enter in the box can download your app by using the direct link to its listing. If you want W10 beta testers, then you'll need in addition to generate promotional code and send each promoted link to your W10 beta testers. Check this link to learn more about beta publishing on Windows Store.
If you failed to install beta version on WP8.1 devices, I can see two reasons:
Email addresses defined in the publisher portal do not match with the one activated on the WP8.1 devices
You tried to install the WP8.1 app immediately after defining the list of Email addresses in the publisher portal. In fact you'll to wait couple of hours before beta version becomes available on devices
Thanks for your answers. But after a long protracted process I finally got through to Microsoft. (If you do't have paid for MSDN support is damn near impossible to talk to anyone) Turns out there was a problem with my dev account. safe to say the issue is now fixed and apps are downloading/installing again
hope everything is fine with you!
I got stuck trying to route my voip calls through earpiece on my windows phone 8.1 application. Before asking here, I did some google research and I found another thread called "how to play audio through earpiece only in windows phone 8 application".
There they suggest to use the AudioRoutingManager interface and it is available inside windows phone 8.1 SDK but whenever I call any method, the UnauthorizedAccessException is thrown. I can't add the ID_CAP_AUDIOROUTING and the ID_CAP_VOIP capabilities because they don't exist on windows phone 8.1 projects (I am using visual studio 2013).
Now one very important information: I am not using microsoft.phone.networking.voip classes. I have my own SIP stack implemented in cpp which I have already ported for many platforms, like Android, IOS, MAC, Symbian, Linux and now windows phone. This sip stack is working very well on windows phone, I can make calls for PSTN numbers and the audio is connected on both parts but I can't route the audio through earpiece, it is only played through speakers and I always get this UnauthorizedAccessException exception when I try to change the audio routing mode.
I have run out of ideas here and I am really considering to drop the window phone project if I can't overcome this limitation. Any help wiil be appreciated.
Thanks
I`m asking this question again as I got no answer for about a week now ...
I want to know how to write a C# desktop application that can connect to the mobile version of the same application (that I will create). The desktop application will be used as a backup/restore for the mobile application.
I want to know also how to write the mobile version (using C# if possible).
May i know, in what way you want to communicate with the mobile version of the application? Ideally the cross domain/application communication is possible using services(WCF/Webservices).
I hope the following link may be useful for you : Bluetooth in C#, Which stack, Which SDK?