Discussion in "Embedded GSM Development" started by    turker1    Aug 10, 2008.
Sun Aug 10 2008, 03:01 PM
Hi again. I connected T290i with pc. I get "OK" from hyperterminal.And I connect phone to mcu.
#include <16F628.h>

#use delay(clock=4000000)
#use rs232(baud=9600,parity=N,xmit=PIN_A2,rcv=PIN_A1,bits=8)

void main()

This code calling 8091 . i tried it is ok.
But when i want to get result a command , i cant.
#include <16F628.h>

#use delay(clock=4000000)
#use rs232(baud=9600,parity=N,xmit=PIN_A2,rcv=PIN_A1,bits=8)

void main()
if (getc()=='O') output_high(PIN_A0);

For this code I sent "AT" .So the message "OK" came. The first letter "O". The mcu doesnt output PIN_A0 high.
I think the problem is speed. MCU or phone is faster than the other one. How can i solve this problem.
Thanks for advice.
Tags 16f628delay msms 40output pinxmit
Sun Aug 10 2008, 09:08 PM
Hi.One more thing , if i use max232 i cant send commands. first codes doesnt work if i use max232.
maybe i must use resistors with mcu and phone?
Tags mcuresistors
Mon Aug 11 2008, 08:21 AM
you dont get OK as it is.. modem sends string in this way..


so you need to check for the above received chars for correct response.
Tags correct responsecharsmodemnok
Mon Aug 11 2008, 11:03 AM
With this code sometimes nothing appears on LCD, sometimes 'e' appears, sometimes 'ATe' appears. What is the problem?I used "lcd_putc("e");" to see what happens.
include <16F628.h>

#use delay(clock=4000000)
#define use_portb_lcd TRUE
#include <LCD.C>

#use rs232(baud=9600,parity=N,xmit=PIN_A2,rcv=PIN_A1,bits=8)
char s[30];
void main()
Wed Aug 13 2008, 06:01 AM
Remove \n after AT \r. Please use only \r
Fri Nov 21 2008, 11:09 AM

Why you using printf("ATD8091\r\n");

I dont understand the purpose of ATD8091

Get Social


Powered by e107 Forum System


Wed Jan 22 2020, 06:16 PM
I m getting errors while simulation process during interfacing socket output and lcd... Can i get the report of ur project which is same as us.
Tue Jan 14 2020, 07:08 AM
shubham kharade
when i am trying to simulate the program in Proteus 8 professional, I am getting some errors as cannot find module file dhtxx.md can u help me
Tue Dec 17 2019, 01:44 PM
hello..i am programming industrial timer using 8051 with 24lc64 eeprom. i have query in storing the 3 diff value in eeprom with enter button. can anyone share c code ?
Tue Dec 17 2019, 10:30 AM
Hello. Can anyone share the code in Bascon and scheme in Proteus?
Thu Nov 21 2019, 12:30 PM
how to interface 8051 microcontroller with NRF24L01+ module
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details



Sat Jan 25 2020, 12:09 PM
Thu Jan 23 2020, 11:47 AM
Sun Jan 19 2020, 02:13 AM
Sat Jan 11 2020, 10:42 AM
Tue Jan 07 2020, 06:53 PM
Tue Jan 07 2020, 12:42 PM
Sun Dec 29 2019, 05:54 AM
Fri Dec 27 2019, 06:14 PM


Guests: 50, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38118
Newest member: wounder
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Jan 26 2020, 04:05 AM
For a 12MHz crystal using a normal divided by 12 c...
wounder Avatar
Posted By wounder
Sat Jan 25 2020, 12:14 PM
I have a 8051 micro controller ,it has timer0,1,2,...
brucewilliams20 Avatar
Posted By brucewilliams20
Sat Jan 25 2020, 08:25 AM
Also, does anyone knows a platform where I can liv...
brucewilliams20 Avatar
Posted By brucewilliams20
Sat Jan 25 2020, 08:17 AM
Hi Mirza,That match and the politics, both are fin...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Jan 17 2020, 10:24 PM
We will need the circuit diagram.A Proteus simulat...
Billz Avatar
Posted By Billz
Sat Jan 11 2020, 05:43 PM
hi everyone please attached files are my c code fo...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Jan 07 2020, 08:18 PM
Not a stupid question.Setting up "Eclipse" can be...
elt Avatar
Posted By elt
Tue Jan 07 2020, 07:06 PM
So i have just began learning programming micros a...
Billz Avatar
Posted By Billz
Mon Jan 06 2020, 09:22 PM
I think it would be better if you guys try to come...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Jan 06 2020, 12:22 AM
Can you post a circuit diagram and any code you ha...