Pic to GSM Phone connection (HSerin problems)


Closed Thread
Results 1 to 40 of 289

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,184

    Default

    Hi!

    All phones default on power up to Autobaud mode. The first connection defines the speed from that moment on upt to the next power up.

    This is over ruled only if you define explicitly and store to the phone's memory the speed to use.

    So, in your case may be you did a connection with the mobile at 19200 with the Hyperterminal and then without reseting the mobile, did you connected to the PIC circuit? Are you sure the mobile does autobaud at power up? If it does then you should send an AT command without any parameters to sync the mobile to the speed you set in the beginning of your program.

    Ioannis

  2. #2
    Join Date
    Sep 2005
    Location
    Switzerland
    Posts
    46

    Default

    Hello,
    as far as I know, I read again the manual, it's not possible to set baud speed to be used through the port. The only set possible for baud speed is if you want to connect to the internet (wap). I tried in any case to set it at 9600 but it did not work.
    I checked the at command manual and i did the following check with the cable and hyperterm (19200,8,N,1):
    AT+CBST?
    > +CBST:0,0,1 the phone is in autobauding
    then i typed:
    AT+CBST 7,0,1
    AT+CBST?
    > +CBST:7,0,1 the phone is at 9600 baud
    Great, I thought, now i change the hyperterm setting from 19200 to 9600 and let's see !!
    Nothing, exactly like before, at + enter, no answer back
    I reset the hyperterm to 19200 and i type
    AT+CBST?
    > +CBST:7,0,1 the phone is still at 9600 baud

    Seen that the phone is in autobauding and it's not possible to set via menu
    I'll try to add to the code this:

    >>CUT
    BAUD = 84 ' 9600,8,N,1(True,driven)

    Start:

    SerOut2 TX, BAUD, ["AT+CBST=7,0,1",13] ' <-------------------------------
    SerOut2 TX, BAUD,["AT",13]
    Pause 500
    SerOut2 TX, BAUD, ["AT+CMGF=1",13] ' Use TXT Mode
    Low LED ' Turn OFF Status LED
    >>CUT

    I have some doubts but I will try
    What do you think you guys ??
    Bye
    Last edited by Lotondo; - 6th September 2005 at 19:48.

  3. #3
    Join Date
    Sep 2005
    Location
    Switzerland
    Posts
    46

    Default

    Hi,
    i added this line
    SerOut2 TX, BAUD, ["AT+CBST=7,0,1",13]

    but no success.

    I'm running out of ideas.

    Thanks for yr help
    Lotondo

  4. #4
    Join Date
    Sep 2005
    Location
    Switzerland
    Posts
    46

    Default

    Tried with Sony Ericsson T610
    it works just GREAT !!!!
    I dont know what's wrong with damn Nokia 7110 !!

    Any help will be appreciated
    Thanks

    Lotondo

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,184

    Default

    Why not read any manuals about the specified phone?

    With Wavecom module, 6210 and 6310 I had no problem with any commands. May be your phone is a little different.

    Ioannis

  6. #6
    Join Date
    Sep 2005
    Location
    Switzerland
    Posts
    46

    Default

    Guys, I finally successed !
    The Nokia 7110 did work too !
    Here what I did:
    The 7110 boots and sets itself in autobaud mode,
    even i forced it to work at 9600 baud with
    AT+CBST= 7,0,1
    it did not send out any sms. (see code previous msgs)
    Now I did not want to waist more time I already did,
    so I reprogrammed the 16f84a and I change the
    line:
    BAUD = 84 ' 9600,8,N,1(True,driven)
    with this one
    BAUD = 32 ' 19200,8,N,1(True,driven)
    and it worked !
    According to what I read here and in some manuals
    the 16f84a with 4Mhz quarz should not work properly
    with that baud speed, but it did.
    Now I'll get more time to study some code
    Thanks again
    Lotondo

  7. #7
    Join Date
    Apr 2005
    Posts
    17

    Default

    Woiw nice to hear about it!!
    Congrats my friend..

    Now my problem is this..since I can successfully send SMS I also what it to received and process some command I want it to fucntion like this:

    SerIn2 Rx, Baud (...READ THE MESSAGE IN 1ST MEMORY LOCATION) if the message contains a command like, ON1 call ON1 routine, if it contains OFF1 call OFF1 routine else goto DELETE_SMS. Then make a loop to check it again..

Similar Threads

  1. Serial VB 2005 pic 16f877a problems
    By Snap in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 8th July 2013, 00:52
  2. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  3. problem with the GSM controller
    By Dariolo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th May 2009, 20:33
  4. Automatic VB6 to pic serial connection
    By arniepj in forum Code Examples
    Replies: 13
    Last Post: - 10th January 2008, 07:57
  5. Pic to GSM Phone connection
    By samertop in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th July 2005, 13:40

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