Heya Trevor,

I'm actually in the process of doing something similar myself - in another 
language (C#), but the concept is still the same.

Firstly, you'll need a cell phone or cellular modem that uses the ol' Hayes 
Modem commands  - you know, the "AT+XXX" commands.
A lot of cell phones use these, especially the old Nokias.
Look for a phone that provides a cellular modem feature - they're more likely 
to support the Hayes Commands.

If you can't find a compatible phone, and you only want the SMS/MMS feature, 
try to get hold of a cellular model.
I'm currently playing with a WaveCom Fastrack M1305B - it's end of lined, but 
theres alot of info around on them.

Once you have full communication with them (ie: you can connect via 
hyperterminal and get a response from the "AT+CGMI" command) - send the modem 
commands to do what you desire.

Google code has a really simple to use class for communicating with the COM 
port with PHP: http://code.google.com/p/php-serial/

One thing to note, and it's a kicker - most phone in NZ use the PDU format to 
send and receive messages.
It's not an format that's easy to come by or create, as it uses septets, 
bin-octaves and semi-octets in a combined string with a length identifier.

Example to send a SMS with commands:

AT+CMGF=0 //Set PDU mode
AT+CSMS=0 //Check if modem supports SMS commands
AT+CMGS=23 //Send message with a length of 23 octets
>0011000B916407281553F80000AA0AE8329BFD4697D9EC37<ctrl-z> // input the message, 
>and ctrl+z to sent (char 26)

Decoding is just the reverse.

More info on PDU can be found here: http://www.dreamfabric.com/sms/


 Best of luck :)

~ C



From: [email protected] [mailto:[email protected]] On Behalf Of 
Trevor NESBIT
Sent: Tuesday, 6 October 2009 9:33 p.m.
To: [email protected]
Subject: [phpug] Downloading Text Messages from a Mobile Phone

Hi everyone

I am conducting an experiment and am interested to know if anyone has any 
experience in writing a PHP app (or part of one) that downloads text messages 
via data cable from a mobile phone...

Any suggestions of directions to head in would be appreciated...

Trevor Nesbit
Information Systems Lecturer
University of Canterbury

 </table





--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to