AT commands using Flowcode for AVR

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
rags
Posts: 29
Joined: Thu Dec 22, 2011 5:33 pm
Has thanked: 1 time

AT commands using Flowcode for AVR

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: AT COMMANDS USING FLOWCODE FOR AVR

Post 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"

rags
Posts: 29
Joined: Thu Dec 22, 2011 5:33 pm
Has thanked: 1 time

Re: AT COMMANDS USING FLOWCODE FOR AVR

Post 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...

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: AT commands using Flowcode for AVR

Post 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.
Attachments
MSG.fcf_avr
(40.46 KiB) Downloaded 387 times

rags
Posts: 29
Joined: Thu Dec 22, 2011 5:33 pm
Has thanked: 1 time

Re: AT commands using Flowcode for AVR

Post 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

rags
Posts: 29
Joined: Thu Dec 22, 2011 5:33 pm
Has thanked: 1 time

Re: AT commands using Flowcode for AVR

Post 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????

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: AT commands using Flowcode for AVR

Post 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.

rags
Posts: 29
Joined: Thu Dec 22, 2011 5:33 pm
Has thanked: 1 time

Re: AT commands using Flowcode for AVR

Post 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 ????

usman_aamsons
Posts: 1
Joined: Wed Mar 21, 2012 12:38 pm

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

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: AT commands using Flowcode for AVR

Post 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

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: AT commands using Flowcode for AVR

Post 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

Post Reply