we have two option
- tru sms gateways -ofcourse needs to pay $ :)
- using our own mobile
Let me explain second one, for this our mobile needs to have internal modem(all modern mobile have this). we can interact with this modem using AT commands like a normal modem.
you can connect your mobile with pc tru bluetooth,IR or cables(like dku 5,2,ca-42 etc)
some of the AT commands:
+CMGS-Send message
+CMSS-Send message from storage
+CMGW-Write message to memory
+CMGD-Delete message
+CMGC-Send command
+CMMS-More messages to send
here is an example for sending a message in microsoft HyperTerminal:
AT
OK
AT+CMGF=1
OK
AT+CMGW="+85291234567"
> A simple demo of SMS text messaging.
+CMGW: 1
OK
AT+CMSS=1
+CMSS: 20
OK
OK
AT+CMGF=1
OK
AT+CMGW="+85291234567"
> A simple demo of SMS text messaging.
+CMGW: 1
OK
AT+CMSS=1
+CMSS: 20
OK
You can write the source code in C, C++,php, Java, Visual Basic, Delphi or other programming languages you like.But you have to learn how to use AT commands.
0 comments:
Post a Comment