+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    shani_developer's Avatar
    shani_developer Guest

    Default gsm modem and pic communication

    hi everybody
    i am my my project on gsm based controlling system
    i have done simulation using proteus isis and it is working properly i have attached sony ericsson t290 ia can send and receive sms using simulation but when i made hardware it can only send but cant receive i use rsout and rsin commands for sending and receiving sms. but the problem is that the gsm phone not giviing any responce. i used 12mhz crystal and 9600 baud rate then i tested the hardware using hserin and hserout commands and test the circuit but still it is not giving any responce in hardware i used max 232 between pic and gsm modem.

    Device 18F4520
    DEFINE OSC 12


    ' Set transmit register to transmitter enabled
    DEFINE HSER_TXSTA 24h
    DEFINE HSER_RCSTA 90h
    DEFINE HSER_SPBRG 77 '.16% error
    DEFINE HSER_CLROERR 1
    DEFINE HSER_BAUD 9600
    SPBRG=77
    TRISC=%10111111
    BAUDCON.3=1


    SMS: 'this is the SMS commands routine in order to send an SMS

    HSerOut ["AT" ,13] 'set modem speed to 9600 baud


    Hi, we are pleased to see that you are using our forum.

    We'd like you to become a member of our community. Membership is FREE, please REGISTER and view our forums without these annoying reminders!

    Once registered you may post on the forums, download from the file areas and use the WIKI without interruption.






    HSerIn 3000, SMS, [Wait("OK")]
    Print At 1,1,"working" 'in order to test whther it is executing hserin command

    but the phone still not responding
    please solve this problem
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    2,251

    Default

    As a first step I would recommend to study the AT commnads of the specific phone.

    Maybe it needs something at the beginning to enter AT command mode.

    Then, please, DO connect the phone to a PC directly and test it with a Terminal program.

    After you feel confident with the phone then go for the micro controller connection.

    At this stage you do not know what the phone sends as a response. Maybe instead of 'OK' sends a 0 (zero).

    Ioannis

Members who have read this thread : 8

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