Sending sms using C# over bluetooth - c#

Can I send sms messages to an android device from .net C# application via bluetooth if it is yes then please guide me how to do it?
regards

Gammu/Wammu is one of the most popular libraries there, that support communicationg to lots of different phones over various protocols including Bluetooth.
You can use it to transmit SMS over bluetooth to your phone (depending on the model - see http://wammu.eu/phones/), to send the SMS.
You can also read SMS from your phone using it if required.
libGammu has C library (http://wammu.eu/docs/manual/c/), but I am not sure you can execute C code directly from C#
Hopefully it gives you at least a nod in the right direction.

Related

Make a mobile number send an SMS

i am thinking if it is possible to have a (remote) cell/mobile number send an SMS via C#?
for example, my cell number is +00 000 000 0000 and i want it to send a message to 0000 and say "Hello There", is there such technology that can do as such? This is different from using an SMS Gateway API which uses a specific number and send to 0000. I want my own cell number to send that message without touching my phone, is it possible via any AT Commands, or are there any (free) API that can help me with this?
Thanks.
If you are trying to get your PC to make your phone send an SMS message, you would have to build two pieces of software:
You would have to write a mobile app native to the phone's operating system that listens to some kind of push notification service to know to when to send a message. Depending on the phone OS, it may or may not be possible to actually send an SMS without first rooting the phone.
You would then need to write code on your PC to send a push notification that your phone app would receive, respond to, and send the SMS message.
If you are asking can you write mobile app software that can cause the phone it is running on to send an SMS, well I would refer you to the SDK of the phone OS you are targeting for that information.
Try Twilio: https://www.twilio.com/.
I'm using it for most of my projects.
You can try for free for 30 days. After the trial is over, you have to upgrade your account with at least 20.00 US$.
It supports plenty of programming languages, including .Net, Java, Python, etc.

sending sms through mobile connected with pc

I am trying to develop the application which, any mobile is connected with PC and needs to send SMS through the mobile one by one, software is used only to connect the mobile and type the message.
When the send button is clicked the message should send through mobile not through any modems.
I have tried to search everywhere, but I couldn't find anything.
Can anybody guide me on how to proceed?
Thanks in advance.
If you want to do it on your own without using a sms-library you can open the modem in handset through a serial port and send out hayes at-commands for sms-operation.
Before you program you can try it using a terminal program.
Example
; Send message to "0170 00000" (Ctrl+Z to finish and send the message)
AT+CMGS="017000000"
> This is a SMS Test!!^Z
+CMGS: 3 ; OK, message gone
Note: these at-commands are not supported on every handset. Maybe the handset needs additional configuration through extra at commands (set textmode, set sms-gateway, ...)
Several sms hayes related commands are described in http://www.cellular.co.za/at_etsi.htm .
Yes, absolutely you can send sms through your pc connected with your cell phones. "Nokia PC Suite" is the only software; after installing software in your computer, connect your Nokia handset by usb cable with computer and select pc suite option. After then launch Nokia PC Suite. Now there u go.
What you are trying to do is difficult. It is difficult not because the programming is difficult, but because there are restrictions (security!) from the carrier side and from the mobile manufacturer side.
To be able to send messages from a mobile device connected to a PC, the mobile device must provide access to the internal functions its OS uses to deliver those SMSs. They could be low level modem commands, or a high level API; but in any case it will depend on the device manufacturer SDK.
If you want to type more efficiently, then maybe a mobile device with support for a bluetooth keyboard is a good idea.
I guess that depends strongly on the used mobile phone. I don't think there's a generic solution for all manufacturers. And such feature is probably hardly documented.
However, I'm not sure, if this is worth the effort at all, because e.g. Nokia provides the software "Ovi Suite" (or older PC Suite), which already supports sending SMS via connected phone. I think there are similar programs from other manufacturers.
It is possible to send SMS from a computer via a connected phone, but the phone itself will be the modem (I assume you don't want to connect another device for SMS). You can see this question, this question and (possibly) GSMComm for more info

sms applcation via C# and sms gateway

I suppose to develop sms application(basically send\receive) using c# 4.0.In this i wish to use NOKIA 6630 phone as the GSM moderm.i have two problems here.
1)could any one tell me a better free sms gateway for this?
2)is nokia 6630 have gsm mordem?.
i m heavily appreciated with your answers.
Not sure what do you mean by free sms gateway here when you are using your phone.
6630 has a modem. So you can use it. If you can have PC suite (or Ovi suite) in your pc, you should visit these links:
http://www.emant.com/index.php?tid=681002
http://www.forum.nokia.com/info/sw.nokia.com/id/bd896b31-92ba-4624-aa9d-ebf732e7cc0d/Nokia_PC_Suite_Connectivity_API_1_1.html
If you do not want PC Suite and want to develop stand alone application, you need to send sms using AT command. You need to use the SerialPort class for this.
In order to use your phone as a GSM Modem connect to it as if you are connecting to a Serial Port. (There are drivers which adapt USB to Serial Port. Your phone drivers might do this).
Once you manage to connect to it you can send commands such as AT+CNMI (to receive) and AT+CMGS (to send).
You might want to connect via hyperterminal to try it out first before you program it.
A good tutorial is here.
You have one good choice to install one sms Gateway for eg. NowSMS gateway to send or receive messages. Its good one and all the related help for installation and configuration is given here http://www.nowsms.com/doc/installing-nowsms
But one problem you had while using this gateway for receiving messages you need to change your mobile phone as not supported this feature for nowsms gateway.

Is it possible Connecting and sending message through GSM modem using asp.net?

I ve developed a c# winforms application for sending sms by using this article of Sending sms using GSM It works pretty well... Now i want to send sms using GSM communication (ie) a mobile phone connected to PC and i have detect it and send sms using it in asp.net.....
Is it possible Connecting and sending message through GSM modem using asp.net?
Of course you can! The only point is that, as ASP.NET is a server side programming, the GSM modem will have to be connected to the server running the app. Even, your already developed code can be reused. Put that code as an assembly with public interface to get the functionalities. Include it in the ASP.NET app and you can send SMS.
There should be no difference if your app is a regular console/winforms app or whether it's an ASP.NET app.
You would just want to be a bit more security-conscious if anyone on the internet is able to connect to your website and send messages...
Yes. You could create a Windows service that contains the logic for accessing the GSM modem and sending SMS messages. This service can then be access from your ASP.NET web application.
There are lots of articles out there on running a WCF service as a Windows service, here's one on MSDN, Hosting and Consuming WCF Services.
But on second thought, setting up a service may be overkill here. You could use your library from within your app just as fine.
You can do it as mentioned by Kangkan in his answer. You will need to connect your modem to the server which is less feasible and very much less recommended to do so. The best option you can have is to subscribe to a third-party SMS gateway and send SMS through their HTTP apis. There are many such providers available that provide this kindaa service. Just google them and you'll find the one that best suits your needs.

Bluetooth communications with C#

I want to write 2 programs with C# one work on PC, the other work on a windows mobile phone.
So I want the PC program to send a signal via Bluetooth ( 1 byte maybe) to the windows mobile phone. and the mobile program (which work on background) handles and accepts this byte without the need of pairing.
how to code this?
please I need any kind of help.
My library 32feet.NET should be useful...
Device Discovery can be done with BluetoothClient.DiscoverDevices, and sending data should be done with classes BluetoothClient and BluetoothListener, see the User Guide for more info.
If your phone can use Serial Bluetooth adapters (RFCOMM), you could send it using the serial class.

Categories

Resources