AnsweredAssumed Answered

STM32 using the USART

Question asked by eich.alexander on Sep 29, 2011
Latest reply on Sep 29, 2011 by Clive One
Hi,

I'm trying to use the USART from the STM32F103ZE to communicate with my Bluetoothmodul.

In Adruino I use the USART like this:

void setupBlueToothConnection()
{
    blueToothSerial.begin(38400);
    delay(1000);
    sendBlueToothCommand("\r\n+STWMOD=0\r\n");
    sendBlueToothCommand("\r\n+STNA=SeeduinoBluetooth\r\n");
    sendBlueToothCommand("\r\n+STAUTO=0\r\n");
    sendBlueToothCommand("\r\n+STOAUT=1\r\n");
    sendBlueToothCommand("\r\n +STPIN=0000\r\n");
    delay(2000); // This delay is required.
    sendBlueToothCommand("\r\n+INQ=1\r\n");
    delay(2000); // This delay is required.
}


But how can I send this command's with the STM32  USART, I didnt found a solution?

regards
Alex

Outcomes