I am having issues with receiving the response to the AT commands from the NINA after switching from data mode to back to command mode. I used the "ATS2?" command to check the escape character and received just a single 43(DEC) as a response which is basically '+' in ASCII. The section 2.5 of the "NINA-B1 Getting Started" manual states the following:
"By default, NINA-B1 will enter command mode and has to be reconfigured to start up in data mode or extended data mode. From the data mode or extended data mode, it is possible to enter the command mode by transmitting escape sequence to the module. By default, the escape sequence is:
1. Silence 1 second
2. +++
3. Silence 1 second"
Here is the NINA-B1 AT commands Manual
I did the above in my program and also get an "OK", but for some reason after switching from the data mode to command mode, the NINA does not respond to the AT commands. Below is my code snippet for switching from Data Mode to Command Mode.
void TS_NinaDataModeToCommandMode(void){
_delay_ms(1000);
UART_write('+');
UART_write('+');
UART_write('+');
_delay_ms(1000);
}
Any insights would be helpful.