Discussion in "Embedded GSM Development" started by    Alvanbert    Feb 10, 2012.
Sat Mar 10 2012, 06:29 AM
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, 06:33 AM ]
Mon Mar 12 2012, 02:41 AM
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, 11:26 AM
Yes Ajay. Am really trying to figure out how to do that. Bt need ur help on this as well
Mon Mar 12 2012, 03:49 PM
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(){
for(int i=0;i<20;i++)
LCD_data(LINE1[i]);

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

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

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, 04:11 PM ]
Mon Mar 12 2012, 04:10 PM
Y do i write codes in long ways

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

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

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

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, 04:23 PM ]
Mon Mar 19 2012, 10:44 PM
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, 06:26 AM
Great!. Feel free to share with us...
Wed Mar 21 2012, 03:07 PM
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, 05:38 PM
@ 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, 06:22 AM
@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

### Information

#### Conversation

Sun May 20 2018, 10:01 AM
justinb
how to write and execute a program that read the keypad button and display the number on 7 segment on intel8051 at89s52 in assembly language?
Sun May 20 2018, 09:56 AM
justinb
how to write and execute a program that read the keypad button and diplay the number on 7 segment ?
Sun May 20 2018, 05:44 AM
StephenTitly
https://coindump.biz/?ref=0110ce0e15d11860f5c787dd7668239a
Thu May 17 2018, 06:36 AM
HAMZA TAJ
sir iwant to ask about controller of three phase supply by using back to back thyristor instead of triac....will u give me some guideline?
Sat Apr 28 2018, 12:54 PM
ashutosh jain
IR Remote Switch using TV remote (RC5 Protocol) is not working properly. opp1 & opp2 is in problem.plz help
Fri Apr 27 2018, 08:09 PM
@kaiserslautern Post in forum
Wed Apr 25 2018, 07:09 AM
kaiserslautern
Hello everyone, using software uart is a very good idea for a second serial port. Thank you so much. I would kindly like to know how to connect this port to the PC?
Sat Apr 21 2018, 07:50 PM
This is a community site. Feel free to help anyone needing advice
Thu Mar 29 2018, 10:47 AM
Thu Mar 29 2018, 10:45 AM
can any one using dspic30f2010.

### Recent

bdmehta
Tue May 22 2018, 02:30 AM
kmag1953
Sun Apr 29 2018, 07:09 PM
udiwonder
Sat Apr 28 2018, 12:41 PM
pirpiri
Sat Apr 21 2018, 03:35 PM
Pater
Fri Apr 20 2018, 02:38 PM
jamiel
Sat Apr 14 2018, 12:47 AM
akrepkral76
Wed Apr 04 2018, 07:51 PM
samanthaeaves
Mon Apr 02 2018, 06:27 AM

#### Online

Guests: 50, Members: 0 ...

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

Members: 37998
Forum Activity
##### Posted By ExperimenterUK
Mon May 14 2018, 10:17 PM
So the main problem is that I am not getting Analo...
##### Posted By ExperimenterUK
Mon May 14 2018, 09:40 PM
Hi sir after checking all the connection i...
##### Posted By Pater
Mon May 14 2018, 05:36 PM
Basically my project is based on Data Acquisition ...
##### Posted By LAMBO
Sun May 13 2018, 02:13 PM
Hi sir after checking all the connection i...
##### Posted By ExperimenterUK
Mon May 07 2018, 07:27 PM
This design should be fine.Choose a frequency betw...
##### Posted By Pater
Mon May 07 2018, 01:28 PM
Sorry for late reply as exams were on,Based on my ...
##### Posted By ExperimenterUK
Thu May 03 2018, 03:32 PM
If the circuit works with a light bulb, the probl...
##### Posted By LAMBO
Thu May 03 2018, 08:04 AM
Hi sir as u mentioned above everthing is working...
##### Posted By ExperimenterUK
Wed May 02 2018, 08:28 PM
Thanks for the video clip, it's a good idea.Electr...
##### Posted By LAMBO
Wed May 02 2018, 10:53 AM
Hi sir did the changes as per instructions. ...