Page 1 of 1

AT commands using Flowcode for AVR

Posted: Thu Dec 22, 2011 5:40 pm
by rags
i am doing a project using atmega32 micro controller..i need to send a msg from a gsm modem to a mobile phone..and lil good at flow code..but am completely stuck with AT COMMAND and interfacing it with atmega32..can any one help me by send a sample programme , it will be really helpfull for my college project..
thank you


rags

Re: AT COMMANDS USING FLOWCODE FOR AVR

Posted: Thu Dec 22, 2011 5:52 pm
by Benj
Hello,

The easiest way to handle AT commands is to use the RS232 component and simply send the commands out as strings. After you have send out the AT command string.....

eg "AT"

... You will then need to send out a byte with the value 13, this will act as your carriage return and should make the modem / phone process the command.

Once the device has processed the command you need to do a read string to collect the response from the device.

eg.

Send String -> "AT"
Send Byte -> 13
Receive String <- "OK"

Re: AT COMMANDS USING FLOWCODE FOR AVR

Posted: Thu Dec 22, 2011 6:08 pm
by rags
thanks a lot for ur reply sir..can you please shoe or send a sample programme to send an sms..so it will be more clear an easy for me..thanks a lot in advance...

Re: AT commands using Flowcode for AVR

Posted: Fri Dec 23, 2011 12:45 pm
by Benj
Hello,

Here is an example file that requires a keypad and a LCD to allow you to enter a phone number and a text message and then transmit via a GSM module on a AVR.

Re: AT commands using Flowcode for AVR

Posted: Sun Feb 05, 2012 7:10 pm
by rags
hello sir,
we bought flowcode 4 for avr few months back so we are not able to purchase flowcode 5 immediately(it has an GSM macro) , can u help us by sending a sample programme, just to send a sms to a number.

for example : sending a sms "ALERT" to a number say "984052689", using AT commands.

it would be really helpfull if u can send a sample programme tat can be used in our version of flowcode ("FLOWCODE V4 AVR).


thanks in advance

Re: AT commands using Flowcode for AVR

Posted: Mon Feb 27, 2012 1:26 pm
by rags
in the demo programm RS232 macro has been used and "send char" option has been used..cant i use "sendstring" option???

eg : sendstring---->"AT+CMGS=9962752527"


cant i include the number of the mobile as well as the command in one single option????

Re: AT commands using Flowcode for AVR

Posted: Mon Feb 27, 2012 1:53 pm
by Benj
Hello,

You certainly can. The program you have was written before the sendstring macros existed which is why they are not currently being used.

eg this command.

SendString "ATD07700000000;"
SendByte 13

Will ask a GSM module to dial the number 07700000000, the semicolon at the end of the string specifies voice mode.

Re: AT commands using Flowcode for AVR

Posted: Mon Feb 27, 2012 2:05 pm
by rags
so in order to send a text message can i do this alone?


sendstring"at+cmgs=9962752527"
sendstring"Hello"


should i include a semicolon for the number??
should i use ctrl-z ????

what is the syntax of at*psstk="get input"?

Posted: Wed Mar 21, 2012 12:43 pm
by usman_aamsons
AT*PSSTKI=1
OK
AT+CMGF=1
OK
AT*PSSTK="SETUP MENU",1,1
OK

*PSSTK: "END SESSION"
AT*PSSTK="GET ITEM LIST",8
*PSSTK: "GET ITEM LIST",1,1,4,"Top-Up Customer",0,0,0

*PSSTK: "GET ITEM LIST",2,2,4,"Top-Up Retailer",0,0,0

OK
AT*PSSTK="MENU SELECTION",1
OK

*PSSTK: "SELECT ITEM",1,4,"Top-Up Customer",0,0,1,0,0,6
AT*PSSTK="GET ITEM LIST",6
*PSSTK: "GET ITEM LIST",1,1,4,"Balance Transfer",0,0,0

*PSSTK: "GET ITEM LIST",2,2,4,"Balance Inquiry",0,0,0

*PSSTK: "GET ITEM LIST",3,3,4,"Last Transaction",0,0,0

*PSSTK: "GET ITEM LIST",4,4,4,"Check Trans ID",0,0,0

*PSSTK: "GET ITEM LIST",5,5,4,"Change PIN",0,0,0

*PSSTK: "GET ITEM LIST",6,6,4,"U-Top Up Help Line",0,0,0

OK
AT*PSSTK="SELECT ITEM",1,2,0,0
OK

*PSSTK: "GET INPUT",1,0,4,0,4,"Enter Customer Mobile Number",0,0,255,"",11,11,0


*PSSTK: "GET INPUT",1,0,4,0,4,"Enter Top-Up Amount",0,0,255,"",2,4,0
AT*PSSTK="GET INPUT",1,4,"03425100762",0,0
ERROR

plz tell me the exact syntax of get input so that error didnot occur
Thanks

Re: AT commands using Flowcode for AVR

Posted: Wed Mar 21, 2012 1:48 pm
by Benj
Hello,

A text message should look something like this.

sendstring "AT+CSMP=17,167,0,0"
SendByte 13
StringReceive

sendstring "AT+CSDH=1"
SendByte 13
StringReceive

sendstring "AT+CMGS="
SendByte '"'
sendstring "077000000000"
SendByte '"'
SendByte 13
StringReceive

sendstring "SMS Message"
SendByte 26
StringReceive

The AT command manual for the GSM module should help to get you started.
http://www.google.co.uk/search?q=gsm+at ... =firefox-a

Re: AT commands using Flowcode for AVR

Posted: Thu Mar 22, 2012 11:49 am
by DavidA
Hi since this is a Flowcode v4 topic im going to move it into the Flowcode v4 section,

if you need access to the Flowcode v4 section of the forums please follow the instructions here: http://www.matrixmultimedia.com/support ... f=29&t=602