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 Apr 21 2021, 01:25 AM
Rolland Crocker
Quit paying thousands of $$ for ripoff Facebook ads! I can show you a platform that costs only a minute bit of money and creates an almost indefinite amount of web visitors to your website}
Tue Apr 20 2021, 07:00 AM
Wow, awesome blog layout! How long have you ever been blogging for? you make running a blog glance easy. The overall glance of your website is wonderful, let alone the content material! https://1xbet-rabochee-zerkalo.best/ 1xbet рабочее на сегодня прямо сейчас рабочий зеркало 1xbet
Mon Apr 19 2021, 06:46 PM
Great work! That is the kind of info that are supposed to be shared around the net. Disgrace on Google for now not positioning this post higher! Come on over and talk over with my web site . Thanks =) https://1xbet-rabochee-zerkalo.best/ 1xbet рабочее на сегодня прямо 1xbet рабочее на сегодня
Mon Apr 19 2021, 04:30 AM
Hello superb website! Does running a blog similar to this take a lot of work? I've very little expertise in programming but I was hoping to start my own blog soon. Anyhow, if you have any suggestions or tips for new blog owners please share. I understand this is off subject nevertheless I just wanted to ask. Cheers! http://blog.bestwp.live/page.php?sitemap=yellow Williams
Sun Apr 18 2021, 05:31 PM
Brandy Levi
{{Looking for|Want to find|Want to get|Do you need} more {buyers|clients|people ready to buy|customers|serious customers|business} {for your site|for your website|for your website or online store|for your online business}? {We can provide|We can get you|We can deliver} {targeted|keyword targeted} {traffic|visitors|people} {specifically|precisely} {for your business model|for your specific type of business|for your business|for your type of business}



Thu Jun 25 2020, 03:46 PM
Mon Jun 22 2020, 03:03 PM
Tue Jun 16 2020, 05:10 PM
Sat Jun 13 2020, 09:43 PM
Thu May 21 2020, 12:44 PM
Thu May 21 2020, 01:28 AM
Wed May 20 2020, 07:05 PM
Wed May 20 2020, 11:52 AM


Guests: 97, Members: 0 ...

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

Members: 38215
Newest member: Mirza123