dear groove
thanks for reply,
i knew it is not a big deal, but i don't know why it could not response "OK" when i send AT0x0d0x0a in no line ending model?
(in normal case, it will be response "OK" when i send AT in Both NL&CR model)
but i don't know why it could not response "OK" when i send AT0x0d0x0a in no line ending model?
Because "0x0d" and 0x0d are different things. There is NO way for you to send a binary value from the Serial Monitor application. What it does is append either 0x0A, 0x0D, both, or neither, depending on the option selected.
Because "0x0d" and 0x0d are different things. There is NO way for you to send a binary value from the Serial Monitor application. What it does is append either 0x0A, 0x0D, both, or neither, depending on the option selected.
do you know what should i need to input after AT then press "send" button to get the response OK(model-no line ending ) instead of input AT then press "send" button (model-Both NL& CR)?
so, you mean that we can not do any thing to instead of the setting "Both NL& CF" in serial port of the Arduino IDE Tools?
Boy, you catch on slowly. Yes, that is what we mean. Now, if you use a different tool, then you might be able to mix binary data and ASCII data together.
so far, i know that i could send after AT by setting the option Both NL & CR,
and Pauls tell me that is no way to do this use any code to instead of in arduino serial port ,
and Pauls's idea is mix using two kinds of tools.
though there are no easy answer to me, but i still figure out something interest here.
and Pauls tell me that is no way to do this use any code to instead of in arduino serial port ,
No in the arduino serial monitor not port.
If you would only say what your are trying to do instead of asking some half backed question about what you think your soloution might be.
If you want to send things out from a serial port it is very easy to add a CR and LF to it. If you want to send CR and LF by typing from the serial monitor then it is impossible. If you want to send CR and LF automatically from the serial monitor then just enable that option.