AT commands using Flowcode for AVR
Moderator: Benj
AT commands using Flowcode for AVR
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
thank you
rags
- 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
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"
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"
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: AT COMMANDS USING FLOWCODE FOR AVR
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...
- 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
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.
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: AT commands using Flowcode for AVR
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
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
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????
eg : sendstring---->"AT+CMGS=9962752527"
cant i include the number of the mobile as well as the command in one single option????
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: AT commands using Flowcode for AVR
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 ????
sendstring"at+cmgs=9962752527"
sendstring"Hello"
should i include a semicolon for the number??
should i use ctrl-z ????
-
- Posts: 1
- Joined: Wed Mar 21, 2012 12:38 pm
what is the syntax of at*psstk="get input"?
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
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
- 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
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
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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
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
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