Hi all,
I tested the revision containing the fix : jenkins-taulabs-next-win32-391:bd0a26a4 20130210 17:32
I
still have problems with the UART2. I can't make it accept a Bluetooth
module. I use 57600 8N1 settings. I attached the diagram obtained with
the logic analyzer. Channel 0 (Black) is connected to USART2_RXI (PD6)
and Channel 1 (Brown) is connected to USART2_TXO (PD5). On the PD6 I
observe UART data coming from BT module ans seems to be ok. On PD5 i see
some short pulses with the 0.4375us width. The line polarity also seems
wrong for serial data.
I am back from holidays again. I see a lot of new developments are going on.
I still didn’t manage in setting up the serial port of the F3 board in such a manner that it can be used to program Bluetooth adapters and such (using Windows 7). Instead I purchased a Arduino USB to Serial adapter. With the help of that adapter it was a breeze to change the settings on the HC-06 Bluetooth device. I used the serial monitor that’s build into the Arduino software, but you could also use Putty or another program for this. Here is what I did:
Default settings of the HC-06:
Slave
9600, N, 8, 1
Name linvor
Pincode 1234
First to test if the serial connection is working type AT in the command line. The HC-06 should reply with OK.
After that you can change the baudrate
Sent: AT+BAUD#
Receive: OKbaud
1: 1200
2: 2400
3: 4800
4: 9600
5: 19200
6: 38400
7: 57600
8: 115200
I used
Sent: AT+BAUD7
Receive: OK57600
Changing the name of the Bluetooth device:
Sent: AT+NAMEyourname
Receive: OKyourname
Example
Sent: AT+NAMEflyingf3
Receive: OKflyingf3
Changing the pincode:
Sent: AT+PINxxxx
Receive: OKsetpin
Example
Sent: AT+PIN7410
Receive: OKsetpin
what should the baud rate be?
what should the name be?
what should the passkey be?
I also unplugged the FC from the USB and reset it, and powered it with the battery, still getting RX 0
am i missing something?
i used arduino+hyperterminal to reach the AT commands and change the bluetooth settings
USART1_RXI (PA9) Connected to the Bluetooth TXUSART1_TXO (PC5) Connected to the Bluetooth RX
dont mind the resistors and the yellow wire, it just leads to the key so i can access the AT commands, as soon as this works with the Flying F3 il remove those.
i still have to test the BtModule loop, hopefully its not the bluetooth module itself thats broken
i was able to access the bluetooth and change the settings via AT command, so that should mean the RX/TX works. =/
because this release has the controller for the bluetooth, the one at the google play store doesnt have that option