Home - Search - Members
Full Version: sms controller using nokia 3310 FBUS Protocol
Pages: 1, 2, 3
abbas1707
Apr 29 2007, 10:26 AM
hi ajay,
i want to make a project " sms controller using 8051".it must work in a way that one mobile phone is connected to 8051 serialy interfaced , and when sms is sent to this mobile devices connected to 8051 will be turned on/off. i want to do this using c coding.can u plzzzzzzzz help me about it,mean from where i must start,some description about cct and coding?? if u know some link related to this project plz send me dat. ok take care God bless u!
looking 4 ur reply@
Rickey
Apr 29 2007, 12:59 PM
First of all you must use 8052 because there are two types of interface available AT command based interface which runs at 9600 baud rate and FBUS interface which runs at 115.2K Baud rate.
if you can get a mobile with AT commands i will help you implementing your project.
so first of all... search in the net for any AT supported Mobile, buy that mobile doesn't matter it is a second hand.
INFO: all mobiles with modems support AT commands
if you want to check the mobile whether support AT commands or not..
then connect the mobile with Hyper Terminal
at 9600 8-n-1
in the terminal window type "AT" without quotes.
you will get a reply from the mobile as "OK"
this is how you check.
abbas1707
Apr 30 2007, 10:45 AM
hi ajay,
i hv nokia6600,7610.will any of them support AT command. how can i connect them with hyper terminal.plz reply
Rickey
Apr 30 2007, 12:51 PM
u need a phone with Serial port connection so that u can test it on hyper terminal. so search for phones like nokia 6110 etc.. i am not sure whether it support AT or not just giving you an example.

So make sure whichever phone you are buying or getting it. it must have serial port Data cable.
abbas1707
May 1 2007, 4:21 AM
hi ajay,
i have checked some cell phones but only one of them is responding to AT commands through hyper terminal. i have checked commands AT and AT+CPIN? .AT shows ok and other command shows ready.now the problem is that i dnt know abt the Rx and Tx pins on cell.And i must tell u that cell is T29s.
plz tell me what to do know.plzzzzzzzzzzzzzz
w8ting 4 ur reply!
Rickey
May 1 2007, 5:39 AM
you can connect your phone with the microcontroller via same datacable and connect that phone with the help of max232, just as a normal serial connection. I hope you understood.
now do one thing... search and download the AT command manual for T29S or Sony Ericsson (i hope i am not wrong with the company name) mobile phones.
and try with the commands for reading sms, deleting sms, sending sms and check what you get in the terminal. if possible copy paste the results of whatever you do in the terminal in the forum as your reply. So that i can explain you more and in a better way.
abbas1707
May 2 2007, 4:10 AM
hi ajay,
i have tested the following commands on hyper terminal

AT //testing
OK //output
AT+CPMS="ME" // selecting memory of mobile
+CPMS: 1,25,25,25,1,25 // output
OK
AT+CMGR=1 //reading sms at first memory location of mobile
/* i sent the message 10101100 ,from other mobile, which appeared at first location
of my mobile and when i entered the above read command the output
is given below*/
+CMGR: 1,,26
0791293303001505040C912933630754110000705020313311020831580C168BC160
OK
continued...

AT+CMGD=1 // command to delete the message which i have at first
//mermory location
OK // with this output the mesasge in my mobile at first location
// was deleted
so are these outputs ok??? what more commands should i learn??
and also i have found the pin configuration of data connector for my
T29s,, now tell me if i need to use max232??? i think i dont need it
becoz all the process will occur at TTL.plz reply
w8ing.......
abbas1707
May 2 2007, 1:49 PM

hi ajay,
i hv decoded the message which i read in the hyper terminal and which i copied into my previous post.image below shows the decoded form of that message. portion with
red color: show dat the format for message used is international.
yellow color: show msg center info
pink color:shows length of sender's number in hex..
sky color: shows date and time
grey color:show lenght of actual sms which was 10101100
brown color:shows the sms (septets converted to octets) shown in hex
about other parts i dnt kno wat they r...
so wat shud i do know????shud i learn to decode the msg via c program???
w8ing 4 ur reply!!!

Rickey
May 5 2007, 11:51 PM
messages are sent and received in the PDU format. so you need to understand the PDU format.
for this you can visit
http://www.dreamfabric.com/sms/
http://emctone.tripod.com/html/smspdu.html

usually we use 7-bit octets for normal message when we are not using any special characters. so you can see those websites for complete description. and for programming part, you can create a structure and distribute the message and decode the message part.
hope that helps for now u can just understand how this is to be done.
abbas1707
May 5 2007, 11:59 PM
i want to test dat if my cellphone is responding to AT commands sent by microcontroller
i have written a c program and before wirting this code to controller i want 2 confirm if this code ok???? or i must correct it?? im just sending AT and cheking wether OK recieved and if so turning led on!!!
********************************
#include sbit led=P1^0;
void init()
{
TMOD=0x20;
TH1=0xFD;
SCON=0x50;
TR1=1;
}
void transmit(unsigned char *a)
{
while(*a!='\0')
{
SBUF=*a;
while(TI==0);
TI=0;
a++;
}
}
unsigned char rcv()
{
while(RI==0);
return SBUF;
}
void main()
{
unsigned char ok[2];
unsigned char j;
led=0;
init();
transmit("AT");
transmit(0x0d);
for(j=0;j<2;j++)
ok[j]=rcv();
if(ok[0]=='O'&&ok[1]=='K')
led=1;

}
i have learned the other coding.program above is just for test
Rickey
May 6 2007, 12:36 AM
good.. i hope you got the desired results!
abbas1707
May 19 2007, 5:49 AM
hi ajay!
how are u?? i was bz in my exams dats y i was away from forum and my projects.yesterday i tested my program with my circuit but unfortunately there was no response from cellphone!!
i want to ask u dat when i transmitted AT and carriage return from microcontroller...will cellphone transmit OK or somthing else???
i directly connected the rx and tx pins of controller to cellphone pins.
but there is nothing.i dont understand where the problem is... code is same as i posted u before. plz give me some idea!!!!!!!!!!
Rickey
May 22 2007, 3:45 AM
well you first need to test your program on the PC.. i mean.. simulate it.. you become the phone.. connect your hardware to PC and in hyper terminal you will get AT commands you give the reply to your controller and see how your controller replies.
this way you can check whether you controller is doing exactly what you want.. i hope this will help you

forgot one thing.. in your connections.. u connected RX and TX but what about GND? without that nothing will work...!
abicash
Aug 1 2007, 1:21 AM
I am a step further in implementing the s/w on my h/w.I'll xplain in steps and thn my questions
1)I developed the s/w to send the init char 'U' 128 times and then the init string(to get h/w & s/w version of fone) of 10 bytes and waiting for the fone to answer back//all this in Keil and run it on Proteus simulation s/w,and it runs fine.(A baud rate of 2400 bauds was selected for this)
2)I have a data cable(FBUS) which connects to my 3310 to PC.I hv connectd my at89s52's Tx/Rx to a DB9 conn's(Tx/Rx)in the same ordr thru a MAX232.Now Max's Tx/Rx go to PC Rx/Tx (cross).(how do i send/attach my ckt dia?)
Now some things happen,rather dont happen...
1)On portmon(s/w to monitor serial port) nothing shows up after I run my prgm.
2)logomanager(pc suite to download logo/sms/etc to 3310) does not show fone as connected.And nuthin seems to b running.
3)On CRO also Tx/Rx are shown high(idle state)
4)hyperterminal does access the serial port though(but irrelevant of the target board)
My q's
1)in ur proj,what baud rates did u run the micro?as i see u hv some 7mhz crystal.is it mandatory to run it at 115kbps in accordance with the fbus rate?
2)what do u think may be wrong with the cable,which whn connectd to pc directly does show fone as connectd and whn done thru my ckt,does not.
pls reply cos i m stuck at this place
abicash
Aug 1 2007, 1:28 AM
the above post is related to FBUS fones and NOT MODEM fones supporting AT commands//can u help me?
I'll tell more
Ajay
Aug 1 2007, 2:00 AM
As far as i know... F-Bus runs at 115,200bps not 2400... so i think you must check the speed. Also there is a condition for F-Bus that, the data terminal ready (DTR) pin must be set and the request to send (RTS) pin cleared.
Hope you take care of these things..

Regarding attaching image.. or circuit.. do the following steps:
1. upload image to www.imageshack.us
2. copy the direct link to image
3. and put image link in [img] tags
for example:
[ i m g ]link to image[ / i m g ]
please remove space from the tags i.e. [img]
4. thats all...
abicash
Aug 1 2007, 3:32 AM
hey thx for the reply...
can 115kbps be generatd using 89s52?
the thing u said about setting DTR and clearing RTS is just reqd for the FBUS cable,which has active electronics in it and so as to power it up,these 2 pins r needed(whr setting/clearing means DTR=+12V,RTS=-12V).I jus need to knw few things.
1)whn i connect micro-->max232-->fbus cable
-->PC
PC wud not detect any activity on its serial port(PORTMON)
==for this I did this
a)made PORTMON active
b)connectd the FBUS cable(with DTR=1,RTS=0)
c)to jus chk ,turned on LOGOMANAGER (for nokia 3310)
but it shows phone as not connectd.
d)but whn i directly connect the FBUS to PC,Logomanager shows fone as connectd,and voila...PORTMON starts registering the activity
2)whn i start hyperterm and access com1,it will show sumthing on my micro(seen thru CRO)
all my routines of transmit and receive r running smooth in PROTEUS
Ajay
Aug 1 2007, 3:47 AM
well.. i used Logomanager to analyse the FBUS protocol. using the datacable for Nokia 1100. I used software called... "Serial Port Monitor" from HDD software.
I checked the status of pins RTS and DTR. the status shown is same as i explained above for FBus. Yes this is to enable the FBUS in case when you are using a data cable.
But you might be using some special cable just for FBUS. maybe..
to monitor what is going on your com port better you also download this software instead of just looking at CRO. So try using the "Free Serial Port Monitor"
Link: http://www.serial-port-monitor.com/
tell me what you see on the monitor.. the data sent and received etc.
abicash
Aug 1 2007, 3:55 AM
ok i've ripped open my cable...and seeing few things
1)the powering is done thru 2 schottkey diodes(DTR n RTS connetd to this)
2)theres an opamp(mayb as buffer)..
3)most shocking Tx and GND shorted
r u online?..can i chat wid u say gtalk?
Ajay
Aug 1 2007, 4:39 AM
I think something is wrong with your cable. did u try using a datacable? its easy.. to use it.. check if your software is working.
and i forgot to tell u
you can achive 115.2Kbps on 89S52, use timer 2 for baud rate generation and crystal used is 11.0592Mhz
abicash
Aug 1 2007, 5:34 AM
but yar to say that thers sumthin wrong wid the cable mayb wrong...becuz logomanager and nokia phone connect nicely thru the cable..only whn i try the other way round thers some goofup...and the serial-monitor u gave is very good...I was using PORTMON(from Systernals...Microsoft site)....good s/w too..
Ajay
Aug 1 2007, 7:00 AM
well.. yes.. its a good software.. and u get everything in so well mannered. Data sent received etc... so i think you must try using datacable instead of using some un-known FBUS cable...
what do u say?
abicash
Aug 2 2007, 12:57 AM
hey ther again..thx for being wid me on this
Now I m having a new prblm
I have 2 pieces of code.First one(for test purpose) transmits a char c=c+1; on hyperterm in a cont loop.whn i burn it on my micro and connect it to serial port and hyperterm,it runs fine with chars abc...etcshowing on hperterm @2400 bauds
but whn i replace the statemnt by c='U'; hyperterm wont show anything.
am i doin anythin wrong?
abicash
Aug 2 2007, 1:06 AM
heres the code in keil

#include <REG52.H>

#include <stdio.h>

#define SER_INT 4

unsigned char c,xmt_flag ;
void main (void) {

/*------------------------------------------------
Setup the serial port for 2400 baud at 11.0592MHz.
------------------------------------------------*/
SCON = 0x42; /* SCON: mode 1, 8-bit UART, enable rcvr */
TMOD |= 0x20; /* TMOD: timer 1, mode 2, 8-bit reload */

TH1 = 243; /* TH1: reload value for 2400 baud 11.0592MHz */
ES =1;
TR1 = 1; /* TR1: timer 1 run */
TI = 1; /* TI: set TI to send first char of UART */
EA=1;



while (1)
{
c=c+1; //it will keep printing ascii's in ascending order
{
xmt_flag=0;
SBUF=c;
while(xmt_flag==0);
}
}
}
void x1(void) interrupt SER_INT
{
if(TI==1)
{
TI=0;
xmt_flag=1;
}
}
//in above pgm if i replace the statement c=c+1; by c='U'; the hyperterm wont show anything
Ajay
Aug 2 2007, 3:11 AM
well just a small mistake the reload value is 244 not 243
abicash
Aug 2 2007, 4:09 AM
yes ajay..i hv figured that out around 1 hour ago ....but gr8 that u solved it...i had caculated the values before loading,but practically they wer sumthin else and had to do a bit of trial n error(i was goin for either lesser values so as to make it slower) before it showd up on my hyperterm..jus wantd to knw how u figured out it was 244?did u try on h/w?
but now my bigger pgm of sending 'U' 128 times etc and waiting for fone to send back etc is runnnig fine on hyperterm.
I m about to connct fone now...and as u suggested,i am cutting off the electronics wala part from tht cable and putting my plain DB9 conn,so its just a plain data cable now
Ajay
Aug 2 2007, 5:55 AM
hey.... and FBUS works on 115.2Kbps 2400bps wont work
you have to change that too he he..
and i did not understand what electronics wala part you cut out..
it will be better if you connect using a datacable and use two extra pins of MAX232 to control the DTR, RTS signals..
abicash
Aug 2 2007, 11:51 PM
hey
my FBUS cable which I got from a local shop here connects to the nokia 3310 below the battery(since that fone does not hv a std connection anywhr )
The other side,which connects to PC RS232(thru DB9) houses some elctronics,which whn i dismantled,had some diodes connctd to DTR n RTS,which work as rectifiers converting the +dc and -dc v/gs on both pins.This dc v/g i.e.+3V is to power up the buffers and/or max232 ON THE CONNECTOR(not on my board).
Now this phone side connector(which is quite unik) has 4 pins.which r MBUS,Tx,Rx,GND.of which MBUS is disabled.and Tx is shorted to gnd.
Now wat i m planning to do is:remove the PC side electronics wala DB9 and put a plain conn instead,using Tx,Rx,GND..to respective pins on fone side.
Now coming to ur post "it will be better if you connect using a datacable and use two extra pins of MAX232 to control the DTR, RTS signals."
what do u mean by this?...since I m not using DTR RTS,y do i cntl these?
the MAX232 on my board now is just to monitor the hyperterm/serial monitor..and the micro communication!
I m connectin the micro Tx thru a v/g divider(to convert 5v to 3v) to Rx on fone.While Tx on fone connects direct to Rx on micro thru a currnt limiting R.
and since I dont knw much bout 115kbps,i m searching..mayb u will help...
phewwwwww....lonnnnggggg post
abicash
Aug 3 2007, 1:31 AM
man i figured that out...using timer2 i got comm on hperterminal..i m not able to receive any chars...lets see!

but with 52 its possible to receive 115kbauds na?(i m defining i/p buffer len as 50)
Ajay
Aug 3 2007, 3:19 AM
long but a nice post..
with 89C52 you can get 115.2Kbps baud rate you need these values to setup..
RCLK = 1;
TCLK = 1;
RCAP2H = 255;
RCAP2L = 253;

after loading these values the serial communication will be done using Timer 2 at a baud of 115200 bps.

ok regarding what i said in my previous post.. i just wanted u to use a datacable instead of just some cable. anyways as you have decided now.. to connect to TX and RX directly... so i want to recommend you one thing.. its better to use a 3V zener diode across the circuit when converting from 5 to 3V. that will ensure the phone will not burn

as now you know how to get 115200 bps you must program your controller to talk to your phone at this speed so FBUS communication can be possible... because...
FBUS runs at 115.2Kbps
abicash
Aug 3 2007, 4:04 AM
hey thx man for being ther...
i'll definitely try n protect the fone with the gud suggestion u gave(zener)
I m yet to connect fone to the s52 yet!
i m chking all of this on hyperterm and free-serial-monito.(thx to u)
i now hv set up hyperterm @115kbaud and the fone sends chars to hyper(runing smooth)
i also hv a code writtn to wait for chars on Rx(basically receive routine) .but the hyperterm just sits idle and micro doesnt receiv any chars.Wat this mite be?
for this i defind a recv buffer of 50 chars.is this sufficient?
Ajay
Aug 3 2007, 4:20 AM
well don't do this way... i mean..
in case of phone.. its always good to use lock step method..
i.e.
Send some command
receive response
send command
receive response..

like that ways.. because you are sure that when u send some command thing to your phone its sure that you will get a reply.. only if the command is correct. Have you checked the FBUS protocol information on Gnokii (http://gnokii.org/)?
its the best place where you can find complete information of command etc used for different phones supporting FBUS protocol.

so after you send some 10 to 15 'U' send the command.. and you will surely get a response... if you are correct.. i actually tried doing this manually... by sending command to Nokia 1100. and it replied with the phone's IMEI number.
there is a software "terminal" in the download section.. use that software to connect to your phone and send command manually.. because it also supports sending data in hex format.. so you can send anything you want.. try the protocol manually.. and see what your phone replies..
abicash
Aug 3 2007, 4:47 AM
yes thats the idea...(hv been to gnokii )
actually the protocol demands sending 'U' 128 times.
i did this 'send' on hyperterm.then as if to emulate the fone sending back info,i wrote sumthin in hyperterm.
now in the micro i hv written code to recv chars and echo thm back(xmit)...so tht the effect is ;;whn i write sumthin in hyperterm,it is seen ther(i.e sent by the micro)
so it is like waiting for the fone to sned back data and receiving thm.
so i got wat u r saying...tht send sumthn get sumthn...etc.
but i m doing tht on my virtual"fone" hypoerterm.
But u c this is not happening.is this related to higher speeds and in wait-cycles,the recv buffer gets full?
Ajay
Aug 3 2007, 5:20 AM
i am really not sure that its the case..
but lock step method is usually preferred... or what you can do is.. use interrupts..
have you analyzed the protocol using any software on how phone works? see the protocol working with the help of serial monitor.. u will get to know what things are needed.. and what has to be done..
I mean once you see how things are working on serial monitor you will automatically catch up what you have to do in your program. I think you must spend time with softwares like some phone manager that support 3310. and see what commands they send.. note them down.. and try sending manually to the phone. i am sure you will help yourself that way
abicash
Aug 3 2007, 6:03 AM
no ajay u not getting wat i m saying
forget the protocol for the time being.
now lets go stepwise.
1)send char 'U' for 128 times
2)send a'get version' string of chars (this is to get the h/w and s/w version of the fone)
3)now fone sends back some ack and the data we requested.

now i am NOT connecting fone.instead of fone its the PCs hyperterm.
now whn micro is reset,a string of UUUUU...(128 times) seen on hyperterm...thn the init string (0x1E 00 etc) ALL THIS ON HYPERTERM
now to simulate fone to send back data...i use hyperterm to send back any(absolutely any garbage) chars (which i can type in hyperterm)
on micro,whn these r recd,it xmits back thm (so tht can be seen on hyperterm)..this is to just test the concept..if working rite...
here yar...it is not working...is sumthin wrong wid reception?
Ajay
Aug 3 2007, 6:09 AM
probably yes!
can i see your program?
abicash
Aug 3 2007, 6:27 AM
wher do i send it?
abicash
Aug 3 2007, 7:11 AM
hey man it just started working...all my mistake....some wiring goofup at my max232...
its happening now
thanks a million ajay..i'll jus chk furthr code on it
Ajay
Aug 3 2007, 7:59 AM
you should have checked it before...

lol anyways!! at the top right corner or bottom right corner of the forum.. there is "post reply" button
when you click on it.. you get form to post reply.. there you also have option to attach a file..
so attach your code when you're done!
abicash
Aug 6 2007, 1:03 AM
hi again ajay
Now all my pc to contollr communication is workin fine as i said earlier.
I now connected (with a lot of daring and fear) my fone to the set up.
Pls note tht the fone is connectd directly to the micro with level shifting(5v to 3v)
Now
1)I open up terminal on PC(for chking as usual
2)i ran the code..which sends sync char'U' 128 times.Then sends the 'get h/w s/w version' command with the hex codes 1E 00 0C D1 00 07 00 01 00 03 00 01 60 00 72 D5
3)here we expect the fone to send back 1E 0C 00 7F 00 02 D1 00 CF 71 followed by actual data
...but yar this fone isnt responding..at all...the terminalv1.6 on pc only shows the chars xmitted by micro..wat do u think?
abicash
Aug 6 2007, 3:15 AM
here's the test setup figure.
1186395309_1551_FT763_sms_cntl.zip
Ajay
Aug 6 2007, 4:09 AM
well.. i checked your circuit.. and i see that you're using proteus..
you need a pullup at the phone TXD side.. after resistor R3..
connect a pullup to 5V. so that the TXD signal is also at TTL level.
and are you connecting the GND of phone too? if not then connect otherwise you will not be able to get any reply.
can you attach a copy of your code. coz i am lazy to write it
abicash
Aug 6 2007, 4:30 AM
yes of course i m connecting gnd of fone.
and y is a pull-up needed?or do u mean that put a diode like in attchment....
here R4 is the pullup and see the diode


like this (mayb)fone is protected from the 5v.i.e whn fone is 3v(or high) the anode of diode is high at 5v.

and find my( code).c attachd

1186399824_1551_FT763_nokia_sms.zip
abicash
Aug 6 2007, 4:44 AM
Ajay
Aug 6 2007, 4:48 AM
ok i checked the the datasheet, pullups are not needed.
in your code.. there is a problem.. in the init_port.c, as you are using Timer 2 for baud rate generation. then you have to set RCLK and TCLK bits. please make the changes and try again..

Note: don't get offended.. electronics is like this always you have to try try and try!

abicash
Aug 6 2007, 5:05 AM
come on man,u must know abt T2CON.If u chk my code u'll find it to be 0x34,jus chk the T2CON bits.for RCLK and TCLK.and otherwise too,its generating 115kbauds,so thers not a singl mistk in the code.its testd on serial monitor etc @115kbauds.

abicash
Aug 6 2007, 5:10 AM
one more thing,...for the time being i hv removed the micro from my board.i m now chking only fone to pc connection thru termina lv1.6..whr i type in 'U' manually and chk for anythin on receiv channel
Ajay
Aug 6 2007, 7:08 AM
sorry...! i think i looked at it really fast.. and didnt check it!! anyways.. can u check your circuit.. just review it.. actually i am not able to understand what is the connection between the circuit of micro and the circuit shown in below with two DB9 ports..

make clear circuit for mobile with controller and mobile with PC.
abicash
Aug 6 2007, 11:38 PM
hey hi ajay:)
i hv just finishd talkin to my fone (not on my fone hehehe)thru my micro!
after initial queries of sending U and quering h/w version,the fone just sent back
1E 0C 00 7F 00 02 D1 00 CF 71 1E 0C 00 D2 00 26 .....Ñ.Ïq...Ò.&
01 00 00 03 56 20 30 35 2E 31 33 0A 31 31 2D 30 ....V 05.13.11-0
31 2D 30 32 0A 4E 48 4D 2D 35 0A 28 63 29 20 4E 1-02.NHM-5.(c) N
4D 50 2E 00 01 40 3D A2 1E 0C 00 D2 00 26 01 00 MP...@=¢...Ò.&..
00 03 56 20 30 35 2E 31 33 0A 31 31 2D 30 31 2D ..V 05.13.11-01-
30 32 0A 4E 48 4D 2D 35 0A 28 63 29 20 4E 4D 50 02.NHM-5.(c) NMP
2E 00 01 40 3D A2 1E 0C 00 D2 00 26 01 00 00 03 ...@=¢...Ò.&....
56 20 30 35 2E 31 33 0A 31 31 2D 30 31 2D 30 32 V 05.13.11-01-02
0A 4E 48 4D 2D 35 0A 28 63 29 20 4E 4D 50 2E 00 .NHM-5.(c) NMP..
01 40 3D A2

but now on the terminalv1.x i m not able to watch wat the micro is xmiting.(this is just natural.)bcos with the ckt i hv assembld,its not possibl to watch wat evryones saying at the same time!
is ther a work around for this?...to see both,micros as well as fones Tx lines.(at the same time)

1186468735_1551_FT763_sms_cntl1.zip
Ajay
Aug 7 2007, 4:58 AM
yeehh!!! congrats..!!
well you can watch.. just like what you did here.. u can do on the real circuit too am i right?

hey also.. i want to tell you that... in FBUS protocol, to keep the connection alive, there is a string which is sent to phone after a repeated interval and phone replies it. also this acknowledgment sting is sent when you receive some data.. thats the reason you are getting the phone's software version reply 3 times, because once the phone send it.. it wait for an acknowledgment. if you don't send it.. it sends again.. phone do this 3 times, and if still no reply, connection closed....!!
so for sending another string u need to send 'U' again.. that is not good i guess so try to check what is that ack string for nokia 3310. use logoman to analyze this.
abicash
Aug 7 2007, 11:13 PM
yes thanks ajay
i know abt the ack reply and if u see my code ,thers a provision for it.otherwise too,i have sent the readymade hex string "1E 00 0C 7F 00 02 D2 01 C0 7C" which is the ack frame sent "to" nokia!
After i sync and send the "get version" command,i come out of the loop and send this string,but still nokia's sending the version string(38 bytes) thrice..see, each day new problem!hehe
wat it actually shud do is send the ack frame(nokia to micro),38 bytes data string ,wait for ack from micro..and stop sending new version frames...but thts not happening.
wats logoman btw?...i'll just add the main() of my prg now
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Rickey's World © 2003 - 2007