jayanth.devarayanadurga
Banned
- Joined
- Dec 4, 2012
- Messages
- 4,280
- Helped
- 822
- Reputation
- 1,654
- Reaction score
- 791
- Trophy points
- 1,393
- Location
- Bangalore, India
- Activity points
- 0
I am trying to test the response for AT\r command given to my mobile. In real term it shows response as AT\r\n\rOK\n\r. I tried to compare the received string with stored string but it didn't work, so I tried to print the integer values I get after subtracting 0x30 from each character in the response buffer and I get the following values.
17 A
36 T
-35 CR
-38 LF
31 O
27 K
-35 CR
-38 LF
I am assuming -35 as \r and -38 as \n but still I can't check the response with the stored string. What the real term is showing is different from what I am getting on LCD. How to conform the response character sequence?
I am attaching the RealTerm showing the response.
17 A
36 T
-35 CR
-38 LF
31 O
27 K
-35 CR
-38 LF
I am assuming -35 as \r and -38 as \n but still I can't check the response with the stored string. What the real term is showing is different from what I am getting on LCD. How to conform the response character sequence?
I am attaching the RealTerm showing the response.