Help me about communicating PIC with cellular phone...


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    8

    Default

    Yes I had cross connected RX and TX of the phone and pic. I don't think the problem is because of it.

    Nokia is working with TTL Logic so it gives high for 3.3v (so 5volt too) and low for 0 volts; So I think max232 is not needed to use here. Because it is using for RS232 which is working with 12Volt.

  2. #2
    Join Date
    Dec 2005
    Posts
    1,073

    Default

    Quote Originally Posted by d_hamen
    Yes I had cross connected RX and TX of the phone and pic. I don't think the problem is because of it.

    Nokia is working with TTL Logic so it gives high for 3.3v (so 5volt too) and low for 0 volts; So I think max232 is not needed to use here. Because it is using for RS232 which is working with 12Volt.
    You still need to invert the logic. The PIC UART is uninverted. You either need to use SerIn/SerOut so you can invert in your firmware or you need to add two inverters (e.g. using the comparators as suggested in the link I gave earlier).

    I'm not sure what you mean by "so 5volt too" but 3.3V is inadequate if you are using the PIC at 5V Vdd. Port C has Schmidt Trigger buffers which need 0.8*Vdd for a logic High (0.8*5V=4V). If you use SerIn/SerOut or DebugIn/Debug on pins that have TTL buffers, 3.3V should be OK.

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073

    Default

    Are you sure about those 7250i pins? Everything I can find indicates the 7250i has USB and IR but there's nary a mention of a serial connection.

    What is FBus?

  4. #4
    Join Date
    Nov 2006
    Posts
    8

    Default

    FBUS is a protocol that nokia phones are using. It is same as AT commands but a bit complex.
    I made the program as you said. but it doesn't work. FBus Rx&Tx means it is supported for serial connection for Nokia 7250i.


    INCLUDE "modedefs.bas"

    DEFINE OSC 4 ' Define clock Oscillator Frequency at 4Mhz
    DEFINE HSER_CLROERR 0

    OUTPUT PORTc.6
    INPUT PORTc.7
    PORTc = %00000000 ' Initial state of PORT C


    Main:

    ' Make a call

    serout2 portC.6, T9600, ["ATZ",13,10] ' Reset the phone
    Pause 1000

    serout2 portC.6, T9600, ["ATDT",34,"+905448515247",59,34,",129",13,10] ' Make a call for 15 sec.s 59 is ;
    PAUSE 15000

    serout2 portC.6, T2400, ["AT",13,10] ' Finish the call
    PAUSE 1000

    GOTO Main

    END


    Thanks...
    Last edited by d_hamen; - 4th November 2006 at 06:49.

  5. #5
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185

    Default

    Himmm,

    I now where this phone number comes from!

    -------------------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  6. #6
    Join Date
    Dec 2005
    Posts
    1,073

    Default

    You need INVERTED logic -try N2400.

    And, assuming you use +5V to power the PIC, you are still using PortC which needs 4V for a logic high so the 3.3V from the Nokia will not be detected. Look at the Electrical Characteristics section of the datasheet.

    Do you have a URL that explains the FBus connections and protocol?
    Last edited by dhouston; - 4th November 2006 at 15:07.

  7. #7
    Join Date
    Dec 2005
    Posts
    1,073

    Default

    I found numerous links about F-Bus. If they are accurate, you are pretty far off base.It runs at 115200bps. Here's a schematic of the interface hardware...
    Last edited by dhouston; - 5th November 2006 at 02:11.

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. communication of pic 18f4520 and cell phone
    By Alisha in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 11:47
  3. Replies: 288
    Last Post: - 25th August 2008, 16:53
  4. Replies: 2
    Last Post: - 12th September 2007, 08:08
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts