hi, im using this on my stm32. But I have some understanding problems.
I connected it same way like you with 3,3v VCC.
- I init the USART2 with 38400 baud , rts, cts.
- then my code (it blinks one time when parameter got sent, for debbuging):
[code] /
- Init BT */
/*here i need the printf and “cout” function, to check the echo replying from the BT over USART2 */
IMU_Led1_Toggle();
send_string(“\r\n+STWMOD=0\r\n”); IMU_Led1_Toggle();
send_string(“\r\n+STBD=38400\r\n”); IMU_Led1_Toggle();
send_string(“\r\n+STNA=IMU\r\n”); IMU_Led1_Toggle();
send_string(“\r\n+STAUTO=0\r\n”); IMU_Led1_Toggle();
send_string(“\r\n+STOAUT=1\r\n”); IMU_Led1_Toggle();
send_string(“\r\n+STPIN=0000\r\n”); IMU_Led1_Toggle();
send_string(“\r\n+INQ=0\r\n”); IMU_Led1_Toggle();
Delay(200);
[/code]
The pairing LED flashes 2 times in 1 second.
But I cannot find the module from my internal BT in my Laptop, I find nothing. → WHY?
Isn’t the device in discovery mode when it got power?
Sadly I can’t debug the USART2 because I didn’t finshed the printf function for my debugger yet, for reading the echos of the module.
Is my initialisation ok?
I want that the WLS123A1M for transmitting data to my PC.
please help!