-
• #2
Some usefull AT commands:
Commands:
AT&F (Reset to factory settings)
AT+CMGF=1 (Turn off the PDU mode)
AT+CPMS="ME" (Save SMS messages to phone memory, not SIM)
AT+CNMI=,1 (When SMS message received - send notification to serial)
To send SMS: AT+CMGS="+33273022", then type your message. When done enter Ctrl-Z
To receive SMS: when phone recieves SMS, it sends: +CMGL: [no]. no is the SMS number, e.g. +CMGL: 1
To view SMS: AT+CMGR=[no]
To delete SMS: AT+CMGD=[no]Bogdan
-
• #3
This is awesome - thanks! I've got a T68i kicking around - I wonder if that'll handle it.
Come to think of it - it has bluetooth I think. I wonder if the bluetooth module would connect to it (as a host) and would still be able to send the commands?
-
• #4
T68i has the same DCU-11 interface as the T630 (uart interface with unfriendly connector, some people managed to solder 3 cables /rx, tx, gnd/ directly to the phone). I bought USB to DCU-11 cable and simply cut off the USB part and soldered serial cables to the plug).
The bad news is that you need to use PDU mode (7 bit encoding scheme also used by the Nokia FBUS):
http://twit88.com/home/utility/sms-pdu-encode-decode
Bogdan -
• #5
It seems that bluetooth can be used for accessing GSM modem:
http://bluehack.elhacker.net/downloads/spec/t68i_at_commands_dev_guidelines.pdfBogdan
-
• #6
Try to use:
AT+CMGF=?to see if '1' value is available. "1" means that PDU mode can be disabled. The default is usually '0'
Bogdan -
• #7
Hi All
I've recently bought a second hand T68i just for this purpose. Not sure when I'll get around to it ... but I'll feedback when I do.
Martin
Hi,
Some time ago (before espruino 1v30) I tried to port my Nokia based GSM temperature monitoring system to espruino. Just for fun because my linux based solution worked fine.
Unfortunately it was a failure because I was not able to implement the Nokia's FBUS protocol on 8KB STM32VLDiscovery board. I simply ran out of memory...
The other day I bought an old Sony Ericcsson T630 which has nice serial interface based on AT commands. Here you can find similar models (they may have slightly more difficult SMS encoding scheme so be warned!). These phones are really cheap - a couple of euros.
http://pinouts.ru/CellularPhones-P-W/erics_t28_pinout.shtml
Here you can see an example how easy you can send an SMS:
The code above is really rough (it's not an example of good javascript style, neither good programming). It's purpose is to show the idea of using cellphone with espruino.
Bogdan