Shop OBEX P1 Docs P2 Docs Learn Events
bs2sx — Parallax Forums

bs2sx

anisanis Posts: 2
edited 2007-03-27 23:54 in BASIC Stamp
it's "AT" command
·

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-27 22:51
    Please be careful to post followup messages in the original thread.

    You need to clarify what you're trying to do. It sounds like you would like a Stamp to "pretend" to be a cell phone and to receive and interpret modem commands ("AT" commands) and respond much the same as a cell phone would.

    Do you have a list of commands? What Baud? What responses to each command would be adequate? Can you give typical examples?

    If you have a limited subset of "AT" commands and if the simulation can be slower than the phone, you might be able to do it. The Stamps have limited storage for data like command parameters and the Stamps are a bit slower than an actual cell phone processor might be. It all depends on what your requirements are.
  • anisanis Posts: 2
    edited 2007-03-27 23:21
    I only want to simulate a cell phone responses to "at" commande, the bs2sx will only indicate what a cell phone would answer without doing any of other functionnalities of an actual cell phone
    example
    at
    ok

    at+cgms=gsm (i am not sure but it's an example)
    ok

    (i have all the list of "at" commands and their responses,there is no problem about the baud)
  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-27 23:54
    The main limiting factor will be the Baud required and the maximum length of a command. The Stamp (any model) has only 26 bytes of variable space available so a command would be limited to something less than 26 bytes. There is a special "scratchpad RAM" available, but the statement that stores serial input directly there is for fixed length inputs, not variable length like in this project (terminated by a $13 byte). It is possible to program this for low serial speed use (like 2400 Baud), but the Stamp can't do any significant amount of program operations between characters without dropping some. There are some very nice 3rd party serial input buffers that will hold 30 to 50 characters in a first-in-first-out buffer while the Stamp is analyzing the characters received.

    If the maximum command length is under maybe 20-24 characters, you could do it with the BS2sx. If you need to hold more, you will probably need one of the serial buffers.
Sign In or Register to comment.