Use C# to send SMS via old Nokia phone - c#

I'm a beginner in developing an application to interact with a Nokia phone. My final goal is to use my old Nokia phone and send a SMS. I've read a lot of documentation online to see how this is done but I'm very confused as where to start. So far, I understand that I need a Nokia phone and connect it to the computer via serial cable. But in order for my C# application to interact with it, do I install PC Connectivity 3.0 or Nokia PC Suite 7.1 for that? Also I'm looking into GSMCOMM library for my C# application, but their documentation starts at the developer has already resolved all PC to Phone connectivity issues. If anybody has experience in development in .NET with Nokia phones, can you provide full steps or tutorials on how I can get started? Thanks!!!

Using Twilio for this application!

you can try :
//Replace "COM7"withcorresponding port name
SerialPort _serialPort = new SerialPort(post, 115200);
Thread.Sleep(1000);
_serialPort.Open();
Thread.Sleep(1000);
_serialPort.Write("AT+CMGF=1\r");
Thread.Sleep(1000);
_serialPort.Write("AT+CMGS=\"" + number + "\"\r\n");
Thread.Sleep(1000);
_serialPort.Write(message + "\x1A");
Thread.Sleep(1000);
_serialPort.Close();

Related

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

Windows iot/apps Programmatic Bluetooth Pairing

I'm trying to broadcast a bluetooth signal from a Raspberry Pi 2 running Windows Iot Core so that I can connect to it from smartphones and other devices, but I've been stuck for the last couple days on actually receiving a pairing signal.
Using the Windows Bluetooth docs I am able to broadcast the signal and I can see it from my desktop as well as from my phone.
However, this is as far as I can get. I want to be able to pair without a PIN (the device will not have a screen), but the pairing fails any time the device is selected.
I am using
SocketProtectionLevel.BluetoothEncryptionAllowNullAuthentication
and
DevicePairingKinds.None
But the connection callback is never hit. I have looked at many similar questions that are either unanswered or do not have the appropriate information since I am using an RPI2 and not a desktop app.
I am not looking to pair via the web interface, but simply through code
.
[UPDATE]
I've tried the 32feet.NET library but it appears to be too old to support the PI2.
I also tried a few NuGet packages, nothing seems to work yet.
I am not master in IoT but recently, I have started exploring it so I know Raspberry Pi 2 is hardware and we can use it to develop some basic IoT device/concepts. I can not help you with the code but may be with some idea.
I remember, for making any embedded system, we used serial port of pc and transferred command to devices. Something similar I found in one of the tutorial from David Jones. It is about to connect Bluetooth to windows 10 using serial port.
In both the explanations, SPP (Serial Port Profile) is used and also Universal Windows App is referenced. May be you get some start point or spark to comlete you work.
Check this and this. It also uses RPi 2.

How to Send/Receive SMS Messages from C# application, using Nokia Mobile Phone

Okay, so what I need to do is to write C# code, to integrate into an existing application.
I will (most likely) be using a Nokia 7230 mobile phone, and I'm willing to use the Nokia PC Connectivity SDK/API, or just AT commands over from C#, whatever works.
The catch here, though, is that I have absolutely no idea where to even start. I would be eternally grateful if someone could give me a step-by-step guide/tutorial on how to go about setting everything up. I've downloaded the newest versions of the PC Connectivity SDK, the PC Connectivity API, the PC Suite, and the Nokia Connectivity Framework.
If it's at all possible for me to test code with an emulator before actually purchasing a phone, that would be fantastic.
Thank you in advance for any help/advice.
GSMComm is a useful C# library for this, it comes with a bunch of samples/tools to mess around with as well.
I get the impression you going to buy a Nokia handset specifically to handle your SMS stuff? If so, you could just buy a GSM Modem (depending on your location) they are cheaper, don't include extraneous features and are not dependent on using manufacturer specific software.
What you are looking for is called an "SMS Gateway". Most of the articles on the internet discuss how to create one using Linux.
I did find this article though, which teaches you how to do it using C#: http://www.ozekisms.com/high-performance-sms-gateway/product-manual/index.php?owpn=315
It looks like you need the Nokia PC Connectivity API (note: Forum Nokia registration required for download):
Developers can use the Content Access API to build PC applications
that create, modify, and delete SMS and MMS messages. The API can be
used to send and receive SMS and MMS messages.

How to read sms

May I know how to read an SMS from my mobile phone and display on the PC?The mobile phone is connected to the PC via the data cable. I need to know how to code it using C#. I use nokia .
You can do this with the Nokia PC Connectivity API. This post may help.

can c# be used for communicating mobile and pc?

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.

Categories