Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

checking sim900 last byte sent to controller

Status
Not open for further replies.

mohamed.elsabagh

Full Member level 2
Joined
Oct 27, 2010
Messages
145
Helped
7
Reputation
14
Reaction score
7
Trophy points
1,298
Activity points
2,320
How a micrcontroller connected ti sim900 would know the end of packet send by the sim900.
For example if i send the AT command AT to sim900 it responses with OK so how would i make my controller know that the byte which contains the 'K' is the last byte from the sim900 module without using software delays???
 

Debasis Swain

Member level 2
Joined
Feb 2, 2013
Messages
52
Helped
10
Reputation
20
Reaction score
10
Trophy points
1,288
Activity points
1,606
You can test using the following format
Commands are usually followed by a response that includes.”<CR><LF><response><CR><LF>”
 

mohamed.elsabagh

Full Member level 2
Joined
Oct 27, 2010
Messages
145
Helped
7
Reputation
14
Reaction score
7
Trophy points
1,298
Activity points
2,320
But What if in the response there are several <CR><LF> and i can't know how many of them such as reading a message or reading webserver data
 

Debasis Swain

Member level 2
Joined
Feb 2, 2013
Messages
52
Helped
10
Reputation
20
Reaction score
10
Trophy points
1,288
Activity points
1,606
Any command followed by" <CR><LF><response><CR><LF>"

*But remember one thing the command will be echo first.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top