cancel
Showing results for 
Search instead for 
Did you mean: 

How to send AT commands and how to get response using STM32F446RE, SPBT3.0.DP1 bluetooth module and CubeIDE?

PTóth.1
Associate

I am using the above mentioned hardware and I am also using the Serial Bluetooth Terminal Android app which is paired with the SPBT3.0.DP1 bluetooth module. I am using UART communication and trying to put the bluetooth module in bypass mode (" Any data received from the host is sent to the remote device. Any data received form the remote device is transmitted to the host.") . The AT command for this according the user manual is: "AT+AB Bypass"

I tried with this:

HAL_UART_Transmit(&huart4, (uint8_t*)"AT+AB Bypass\r\n", 12, 10);

It sends out the command because I can see it in the android app (it writes out "AT+AB Bypass"), but there is no response and it seems like that it doesn't put the bluetooth module to bypass mode. I tried with other AT commands, with just \r and with just \n at the end but nothing seems to be working. Can I get somehow a response? Or am I sending the command out right?

Can someone help me please what should I do?

0 REPLIES 0