Discussion in "Embedded GSM Development" started by    Alvanbert    Feb 10, 2012.
Sat Mar 10 2012, 01:29 AM
#41
The reason for missing the 2nd and 4th lines are (my opinion) the 20x4 LCD adress ranges are different.

like this :

0,1,2...........17,18,19
64,65,.........81,82,83
20,21,.........37,38,39
84,85,.....101,102,103

After writing to position 19, you must jumpt0 64th position, so u need to command the LCD
to reposition to 64 and after writing to position 83 , u need to jump to 20th position.

So u can make a function for this... Hope i am not wrong



[ Edited Sat Mar 10 2012, 01:33 AM ]
Sun Mar 11 2012, 10:41 PM
#42
you're right firoz.. Alvanbert needs to write a function that takes care of printing string and wrapping them to new line when they reaches the end of first line or say 20 characters.
Mon Mar 12 2012, 07:26 AM
#43
Yes Ajay. Am really trying to figure out how to do that. Bt need ur help on this as well
Mon Mar 12 2012, 11:49 AM
#44
u can take 4 varialbles as LINE1 , LINE2, LINE3 and LINE4 and save ur message in them with 20 charactes each.
supose ur sms is in SMS_INFO character:

for(int i=0;i<20;i++)
    LINE1[i]=SMS_INFO[i];

for(int i=0,j=20;i<20;i++,j++)
    LINE2[i]=SMS_INFO[j];

for(int i=0,j=40;i<20;i++,j++)
    LINE3[i]=SMS_INFO[j];

for(int i=0,j=60;i<20;i++,j++)
    LINE4[i]=SMS_INFO[j];


then u can write a small routine that wil send all 4 variables to 4 lines.

LCD_4line(){
LCD_Add(0x00);
for(int i=0;i<20;i++)
      LCD_data(LINE1[i]);

LCD_Add(0x64);
for(int i=0;i<20;i++)
      LCD_data(LINE2[i]);

LCD_Add(0x20);
for(int i=0;i<20;i++)
      LCD_data(LINE3[i]);

LCD_Add(0x84);
for(int i=0;i<20;i++)
      LCD_data(LINE4[i]);
}

If i were to write , then i would do something as this. May be there are easy ways, but am not sure


[ Edited Mon Mar 12 2012, 12:11 PM ]
Mon Mar 12 2012, 12:10 PM
#45
Y do i write codes in long ways

hehe this is moe simple
LCD_4line()
{
LCD_Add(0x00);
for(int i=0;i<20;i++)
      LCD_data(SMS_info[i]);

LCD_Add(0x64);
for(int i=20;i<40;i++)
      LCD_data(SMS_info[i]);

LCD_Add(0x20);
for(int i=40;i<60;i++)
      LCD_data(SMS_info[i]);

LCD_Add(0x84);
for(int i=60;i<80;i++)
      LCD_data(SMS_info[i]);
}


Some one Give proper way here , else i might spam here with all sorts of stupid coding of mine


[ Edited Mon Mar 12 2012, 12:23 PM ]
Mon Mar 19 2012, 06:44 PM
#46
Thanks Alot firoz3321, your code worked just fine for me. Now i can display the whole message on the four lcd lines.

i however still have some issues. I would love the message to start from the last point on the last line and then scroll from down upwards both horizontally to the left and upwards with each word following each other. Is it possible.

Secondly, can someone write me a function to delete sms from sim memory after a specified period of time(e.g After 5 Hours). THANK YOU ALL FOR BEING HELPFUL.
Wed Mar 21 2012, 02:26 AM
#47
Great!. Feel free to share with us...
Wed Mar 21 2012, 11:07 AM
#48
what is the best way i can use to filter my messages as they are outputting to the lcd screen. i want it to only display the content between the"#" symbol and another "#" symbol at the end. i dont want it to display anything else.

so that only messages sent with # at the beginning and at the end can be displayed. pliz help
Sun Mar 25 2012, 01:38 PM
#49
@ Alvanbert
first step is to extract relevant message from sms
after that u has to check first # then display whole message till the 2nd #
i think when u extract message from sms
that will be ur real message that u want to display
i think no need of two #
Mon Mar 26 2012, 02:22 AM
#50
@Majoka how can i do this without using the #'s because my main aim is to only display the sent sms. I dnt wnt the display to include the date, time.... I wnt only the msg as sent by the user. Thanx

Get Social

Information

Powered by e107 Forum System

Conversation

Tue Aug 19 2014, 04:51 PM
allen ndumu
please i will like to know if the problem of speed control of dc motor using keypad and l298 was if yes can i have the complete project send it to the address i really need to see it
Tue Aug 19 2014, 10:47 AM
Amit Bisht
sir i want to have some trending projects on which i could work related to ATmega 16 microcontroller
ExperimenterUK
Sat Aug 16 2014, 04:16 PM
@diligent . create a thread
Sat Aug 16 2014, 03:17 PM
diligent
in assembly langauage programming..
Sat Aug 16 2014, 03:14 PM
diligent
will anyone help me?
Thu Aug 14 2014, 10:24 PM
Amirudin Tone
i help, i need liberary IC 4047 in the proteus. thanks
ExperimenterUK
Thu Aug 14 2014, 03:59 PM
@NARAYANA are you getting an error ?
Tue Aug 12 2014, 11:47 PM
NARAYANA
i am not able to get reg please provide me registration link
Tue Aug 12 2014, 10:32 AM
saloni
sir I was needing literature survey of''ANDROID CONTROLLED SPY ROBOT USING MICROCONTROLLER"
ajay_bhargav
Mon Aug 11 2014, 12:30 PM
@nisargpatel and @NARAYANA please post questions in forum.

Downloads

Comments

rablo
Tue Aug 19 2014, 10:10 AM
faizhameed
Tue Aug 12 2014, 10:39 PM
ind3siszive
Sun Aug 10 2014, 01:05 PM
snaxxx68
Sat Aug 09 2014, 11:06 AM
[email protected]
Sat Aug 09 2014, 08:58 AM
rajiabdul
Mon Aug 04 2014, 01:31 PM
giash
Sat Aug 02 2014, 04:44 AM
a1s2d3
Fri Aug 01 2014, 05:41 PM

Online

Guests: 60, Members: 0 ...

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

Members: 37495
Newest member: rablo
Forum Activity
nisargpatel Avatar
Posted By nisargpatel
Wed Aug 20 2014, 01:29 AM
see we are measuring electrical parameters by CT, ...
jayachandra Avatar
Posted By jayachandra
Tue Aug 19 2014, 08:22 AM
HELLOim facing problem with eeprom, i wrote a prog...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Aug 16 2014, 04:11 PM
You will have to be more specific about what you a...
nisargpatel Avatar
Posted By nisargpatel
Sat Aug 16 2014, 06:03 AM
Anyone have idea related to AC/DC current measurem...
sairfan1 Avatar
Posted By sairfan1
Wed Aug 13 2014, 01:48 PM
ajay_bhargav Avatar
Posted By ajay_bhargav
Tue Aug 12 2014, 04:34 PM
Usually its better to have a LED driver circuit in...
ajay_bhargav Avatar
Posted By ajay_bhargav
Tue Aug 12 2014, 04:01 PM
There are so many apps available. Did you try a se...
sairfan1 Avatar
Posted By sairfan1
Tue Aug 12 2014, 03:59 PM
thanks, finally advise about brightness issue, I'm...
ajay_bhargav Avatar
Posted By ajay_bhargav
Tue Aug 12 2014, 03:42 PM
I could not figure out much from the images. I thi...
mohansaini Avatar
Posted By mohansaini
Tue Aug 12 2014, 12:31 AM
Hi..Sir i am trying to interface hc-06 module to a...