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.
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)
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.
Comments
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.
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)
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.