can c# be used for communicating mobile and pc? - 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.

Related

I want to send a string from an android device to a windows machine over wifi with c#. Is this possible?

I want to make a program that transmits strings from an Android device, to the web or directly to my PC.
Do note that the android and windows device are connected to the same wifi if this makes a difference. The problem here is that I do not know how to send strings from one device to another. I am thinking of doing it in a txt file and then reading it with the program on my PC (Which I have already tested), but I don't know how to transmit it.
Yes, you can share a data from cross platform devices. There are many methods to do it. I would personally recommend using Web APIs using asp.net core, the consume that Web API in your android application, it can be in Xamarin, and for Desktop you can used HttpClient package to consume either in WPF or Winform.

Connect android phone to UWP application offline

I am building a C# UWP Windows 8.1 application. I will like to know if there is a way I can connect my phone to my UWP Desktop app offline. I intended to transfer certain data and eliminate the time it takes for the devices to communicate with the server (- especially in cases of bad/no network here in Nigeria).
You can connect the two devices either using Bluetooth or Wi-fi direct. Bluetooth will probably be easier to setup. The process will be different for both platforms:
Bluetooth - UWP, Android
Wi-Fi Direct - UWP, Android
Bluetooth has broader support, but Wi-Fi direct may prove faster if you want "near real-time" performance.

How can develop Windows C# App using BLE

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...

GPRS Connection on a Windows 8 Tablet Using C#

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.

Detect incoming call iphone 5

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#.

Categories