I'm trying to develop a windows app that communicate with bluetooth device.
Now I have one bluetooth-usb dongle for my windows desktop and bluetooth BLE device.
I want to develop the app using C# and Visual Studio in Windows 10.
But I can't find official documents and APIs at all. There's no C# API about BLE in windows? If it is, How can I develop a C# App using BLE?
The Microsoft Bluetooth team did a Build talk which includes BLE sample apps for GATT Server, Beacons, and Pairing. You can find the GitHub repo here.
A Build talk about Beacons and reading from a GATT Server can be found here.
There is a BLE example included in the Universal Windows sample programs provided by Microsoft. It is called BluetoothGattHeartRate.
Not that this is the end all, but it does get you going. It would be nice, given the whole IOT push if they had a Windows Bluetooth developer example that made configuring, and all the features really simple...
Related
I want to stream live camera frames from my Windows 10 computer to my iPad, which will display the frames, in real time.
I want to develop on Windows 10 using Visual Studio for both the Windows 10 app and the iOS app.
I'm considering Windows Universal > Blank App project for the Windows 10 computer app,
and iPhone & iPad > IOS XAML APP (XAMARIN.FORMS) for the IOS app.
Which TCP socket technology should I use for the Windows UWP app, and which for the IOS XAML app?
For the iOS application, I'd use libvlcsharp which is cross-platform .NET/Mono bindings for libVLC. It should be quite simple to setup for receiving a video stream from the UWP application.
Then on the UWP side, Microsoft provides a good example of capturing and streaming video using the Media Capture API in the Real-time communication sample on GitHub.
I know that this doesn't directly answer your question about creating the TCP socket but should anyway point you to the right direction. It's been a while since I looked into developing a similar solution myself.
Please has anyone used bglib or BleDriver.NET to connect to a BLE device? I need help in using any of these libraries.
The issue is I have a bluegiga bluetooth dongle and a bluetooth calliper. I want to get data from the calliper through an existing C# desktop application. The desktop application runs on Windows 8 and 8.1, but it is just a windows desktop application. I am able to use the libraries to open the dongle's port but I can not connect with the calliper.
Can someone throw some light into this for me?
Thank you very much.
I finally found a solution to the above problem. The caliper is designed in such a way that it cannot be used through a customers' bespoke application, thus requires its manufacturer's Bluetooth application to work.
I am developing an app for a Windows 8 tablet using C# and I need to write a module that creates a GPRS connection using a SIM card.
I have tried searching for this but most results I find talk about a GPRS connection either for Windows CE or Windows Mobile and I presume the code for Windows 8 would be different.
If anyone can give me some advice on how I can create this module or link me to some websites that may explain how I can achieve this I would be great full.
Thanks...
Assuming you're programming an app in the environment formerly known as Metro, you need these WinRT APIs.
There are C# code examples provided.
This is not to be confused with the Windows 8 desktop, which has its own separate set of APIs here.
These APIs are valid for LTE, UMTS/HSPA etc as well as GPRS.
I have a question regarding the possibility of creating a winforms application in C#, which is able to detect incoming calls on an iphone.
Here is the scenario:
the iphone is connected to the computer via a usb cable.
whenever the phone rings I would like to be able to do the following:
Retrive the phone number.
Use the phone number in the winforms application, to search xml filer.
Answer the phone via the application and play an automated voice message.
Is this even possible in C#? If so how could this be done and are there any libraries designed for interacting with an iphone using C#??
Thanks and regards.
Anders
There are no SDK's that allow you to develop .NET apps that interact externally with the iPhone.
If you want to write an iPhone app, but are intimidated by the learning curve you could check out MonoTouch. It allows you to write iPhone\Android apps using C#.
As a minor project in my degree I would like to communicate mobile and pc .I am interested to communicate through bluetooth is it possible to do so in c#?
If possible please provide me list of application or hardware i would requiere in order to do so.
thanks in advance
If (and it's a big if based on the lack of information in your question) you mean "How do I write an app on my PC, using C#, that can communicate with a Windows Mobile device that is connected to my PC via ActiveSync or WMDC" then the answer is RAPI. A free, open-source managed wrapper for it is here.
Yes its possible if its with windows mobile phone or pocket pc with bluetooth. You need a bluetooth enabled computer and mobile phone. For dev you need to download the windows mobile 6 sdk.
Then developing of the communication between desktop app and mobile phone app, you can use the 32feet.Net is open source.
When you download it and installs (well it unpacks to program files folder) you will have the dll that you make reference to in Visual Studio. Also you will get some sample apps. One of them is a Bluetooth Chat that works in Desktop, Pocket PC and SmartPhone.
Another option you could use is set up a web service that acts like an intermediary between the device and your machine. One huge benefit of this is that no longer are you bound by the distance requirements of bluetooth.
Of course if you're trying to build some sort of proximity service (do z when item x is 3 meters from item y) then bluetooth is probably the way to go.