Discussion in "Embedded GSM Development" started by    abbas1707    Apr 29, 2007.
Mon Aug 06 2007, 03:45 pm
#41
here's the test setup figure.
Mon Aug 06 2007, 04:39 pm
#42
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
Mon Aug 06 2007, 05:00 pm
#43
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



[ Edited Mon Aug 06 2007, 05:11 pm ]
Mon Aug 06 2007, 05:14 pm
#44
this is the fig
Mon Aug 06 2007, 05:18 pm
#45
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!


Mon Aug 06 2007, 05:35 pm
#46
:-| 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.



[ Edited Mon Aug 06 2007, 05:38 pm ]
Mon Aug 06 2007, 05:40 pm
#47
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
Mon Aug 06 2007, 07:38 pm
#48
:blush 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.
Tue Aug 07 2007, 12:08 pm
#49
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)

Tue Aug 07 2007, 05:28 pm
#50
!dance 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.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

RolandPeamb
Sun Oct 13 2024, 12:58 pm
MarcusLip
Sun Oct 13 2024, 01:17 am
AlfredTus
Sat Oct 12 2024, 10:38 pm
Mazrdoh
Sat Oct 12 2024, 09:25 am
BillyThems
Sat Oct 12 2024, 07:04 am
ctaletpnyi
Sat Oct 12 2024, 04:40 am
Sazrjbp
Fri Oct 11 2024, 09:40 pm
Sazrblh
Fri Oct 11 2024, 08:08 pm