Results 1 to 7 of 7

Thread: AT Commands with pic

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    3

    AT Commands with pic

    Hi;

    I want to ask if I can use AT commands in PIC Programming (PIC Basic or others). And How can I do it?

    Thanks for your help...

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: AT Commands with pic

    You use AT commands with a Hayes-compatible modem. If you want a PIC controller to respond to AT commands you'll have to write code in the PIC to parse the commands and respond to them. There's no inherent "AT interpreter" in a PIC controller.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    3

    Re: AT Commands with pic

    Hello;

    Thanks for your help;

    But can you give me more information about sentences that you wrote;

    "you'll have to write code in the PIC to parse the commands and respond to them"

    How can i do it; can you give me an example?

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: AT Commands with pic

    If the PIC sees ATH1<return> on its serial input, it changes the voltage on the pin connected to the relay that connects the phone line. If it sees ATDT12345<return>, it uses the pins connected to the touchtone generator to dial 12345.

    What code you write depends on what commands you want to handle and what hardware you have connected to the PIC. I can't see why you'd want to build your own modem using a PIC when modems are so cheap.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    3

    Re: AT Commands with pic

    Hi again;

    This is my graduate project. I am attanding at the department of electrical & electronics engineering and to finish my university i have to do this project. My project is;

    "A remote object (e.g. a car) will be located by GPS and the location information will be transferred to a monitor/controller centre through a GPRS connection established between the car and the centre. The centre could be in a police station where, in the case of a theft, the engine of the car could be remotely stopped by the control, using the GPRS connection."

    Yes i can do it with a modem but, i can not. Because i have to use AT commands into the pic because of our teacher (he wants).
    There will be connected with series to pic, a GPS molule and a phohe. firstly i have to connect the phone to GPRS with pic, then i will take the datas from GPS than send these datas with GPRS. Of course i have to do all of them with pic programming.

  6. #6
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: AT Commands with pic

    You're required to send signals to the phone line with a PIC? Or do you mean send signals to a cell phone with a PIC? In which case you're using a modem. (You should know that.)

    You'll need 1 serial port for the GPS and another one for the phone. The PIC reads the location from the GPS, and sends it using AT commands to the phone. As far as what AT commands you send the phone for what functions, some of that depends on the phone, some are universal.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  7. #7
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: AT Commands with pic

    I have to ask what does this have to do with packaging and deploying VB applications to other computers?

    If the answer is nothing, then you are in the wrong forum.

    I am not being rude, but its just that you really won't get much exposure for your question in here.

Posting Permissions

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



Click Here to Expand Forum to Full Width