[ignoredResponse] CRLF after +IPD
[ignoredResponse] CRLF after +IPD
Postby tilz0R » Sun Jul 10, 2016 4:36 pm
This could provide better programming for AT parsing. Adding these 2 characters does not cost you more than 2 characters and 10 seconds of work.
You simply ignored this request previously.
It is added before +IPD, so:
CRLF
+IPD.....
Why not also after it?
If this makes problem for you, add CRLF before any command you send.
It is easier and performance better to check for CRLF than "any character" and always check what is it.
Re: CRLF after +IPD
Postby pratik » Sun Jul 10, 2016 10:05 pm
Your request has been noted.
However, we have issued a lot of updates already and by now, the AT responses have become rather standard. Changing the structure of a response will render many currently used parsers ineffective.
If you find the parsing CPU consuming or difficult, please use our SDK to write programs that run directly on the ESP8266. It can work at up to 160MHz, which can help simplify your design and eliminate the need for using AT command firmware as well.
Let us know if you need help getting started, we are happy to help!
Re: CRLF after +IPD
Postby tilz0R » Tue Jul 12, 2016 12:56 am
Easiest and cost performance is to save read data from device to buffers and read strings until you detect LF character. The problem is in this case:
+IPD,x,y:mydataislong0,CLOSED<CR><LF>.
My working buffer has for example length that it will save +IPD...0,CLOS and not with ED<CR><LF> at the end so I can't detect that "easily".
This makes me to write data back to cyclic buffers at the beginning of buffer and so on.
Or at least you can add command to enable <CR><LF> characters before command response is received or add it to any +IPD at the end.
Using your SDK is not my option right now. I'm working with STM32 devices and I have ESP as device to access to internet a few times. I don't need to learn SDK right now. I have my own ESP parser library for AT and I have problems to solve this easily and without complications.
http://esp8266at.com is a website for parser.
Re: CRLF after +IPD
Postby pratik » Thu Jul 14, 2016 12:16 pm
I have forwarded this issue to the engineers working on the AT firmware. Meanwhile, you may always customize the AT commands according to your requirements by adding custom commands and responses. The demo is in the NONOS_SDK.
Thank you for your input!
Re: [ignoredResponse] CRLF after +IPD
Postby tilz0R » Fri Jul 29, 2016 2:08 pm
Re: [ignoredResponse] CRLF after +IPD
Postby akouz » Fri Jul 29, 2016 3:10 pm
tilz0R wrote:Why you don't want to add CRLF after +IPD statement with data?
Sorry, it does not make sense. +IPD command declares number of bytes to follow, you should use that.
Additional symbols CR LF after the data are just waste of time. Anyone who sends data where CR LF can appear inside data packet will not be able to use CR LF as symbols indicating end of data.
Re: [ignoredResponse] CRLF after +IPD
Postby pratik » Sat Jul 30, 2016 1:15 pm
Who is online
Users browsing this forum: No registered users and 189 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.