Difference between revisions of "Bluetooth"

From Ethersex_Wiki
Jump to: navigation, search
(Connection)
(Connection)
 
(5 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
|MENUCONFIG={{I/O}}->Radio->Bluetooth
 
|MENUCONFIG={{I/O}}->Radio->Bluetooth
 
|STATUS={{In_Development}}
 
|STATUS={{In_Development}}
|PINNING= -
+
|PINNING= yes
|ECMD= -
+
|ECMD= yes
 
|CONTROL6= -
 
|CONTROL6= -
 
|DEPENDS= -  
 
|DEPENDS= -  
|REQUIRES= -
+
|REQUIRES= Free UART
 
|TIMER= -
 
|TIMER= -
 
|CODE=[https://github.com/ethersex/ethersex/tree/master/hardware/radio/bluetooth https://github.com/ethersex/ethersex/tree/master/hardware/radio/bluetooth]
 
|CODE=[https://github.com/ethersex/ethersex/tree/master/hardware/radio/bluetooth https://github.com/ethersex/ethersex/tree/master/hardware/radio/bluetooth]
Line 28: Line 28:
 
== Connection ==
 
== Connection ==
  
When used with 5V microcontrollers, the TXD output logic swing of the module still falls within the valid 5V TTL range, hence, can be connected directly to the UART RXD of the 5V microcontroller host. The RXD and inputs, however, are not 5V tolerant, and can be damaged by 5V level logic going in. Some level translation circuit must be added to protect the inputs. A simple diode level translator circuit like the ones shown in Figure 3 and 7 will suffice in most applications. A better alternative is with the use of 5V input tolerant tiny logic chips such as 74LVC1G125 – a single buffer chip housed in SMD SOT23-5 package.
+
When used with 5V microcontrollers, the TXD output logic swing of the module still falls within the valid 5V TTL range, hence, can be connected directly to the UART RXD of the 5V microcontroller host. The RXD and inputs, however, are not 5V tolerant, and can be damaged by 5V level logic going in. Some level translation circuit must be added to protect the inputs. A simple diode level translator circuit like the ones shown in Figure 2 will suffice in most applications. A better alternative is with the use of 5V input tolerant tiny logic chips such as 74LVC1G125 – a single buffer chip housed in SMD SOT23-5 package.
  
 
<gallery>
 
<gallery>
Line 37: Line 37:
  
 
Attention: there are different version of the module and breakout board around with different firmware and pin assignment.
 
Attention: there are different version of the module and breakout board around with different firmware and pin assignment.
 +
 +
The module is connected to a free USART (TX/RX). In addition it requires at least an free I/O pin.
 +
 +
  /* switch between data and command mode (mandatory) */
 +
  pin(BT_MODULE_KEY,  PC1, OUTPUT)
 +
  /* read back pairing state of module (optional) */
 +
  pin(BT_MODULE_STATE, PC3, INPUT)
  
 
== Configuration ==
 
== Configuration ==
 +
 +
The base configuration of the module:
 +
 +
  | |                        I/O  --->                                                        | |
 +
  ...
 +
  | |                  Radio  --->                                                            | |
 +
  | |                              [ ] FS20 RF-control  --->                                | |
 +
  | |                              [ ] RFM12 ASK  --->                                      | |
 +
  | |                              [ ] Generic ASK (433MHz)                                  | |
 +
  | |                              [*] Bluetooth  --->                                      | |
 +
  ...
 +
  | |                            (3)  Bluetooth usart select                                | |
 +
  | |                            (115200) USART Baudrate                                    | |
 +
  | |                                  Device Name: "ethersex"                                | |
 +
  | |                                  Device PIN: "1234"                                    | |
 +
  | |                            --- ECMD                                                    | |
 +
  | |                            [ ] AT Command Interface                                    | |
 +
  | |                            --- Debugging Flags                                        | |
 +
  | |                            [ ] Bluetooth                                              | |
 +
 +
Optionally the module can be used with ECMD:
 +
 +
  | |                        Protocols  --->                                                  | |
 +
  ...
 +
  | |              [*] ECMD (Ethersex Command) support  --->                                  | |
 +
  ...
 +
  | |                      --- ECMD interfaces                                              | |
 +
  ...
 +
  | |                      [-] USB                                                          | |
 +
  | |                      [*] Bluetooth                                                    | |
 +
  
 
== [[ECMD]] ==
 
== [[ECMD]] ==
Line 45: Line 83:
  
 
[http://www.multiwii.com/forum/viewtopic.php?f=6&t=133 Serial Bluetooth RF Transceiver Module RS232]<br>
 
[http://www.multiwii.com/forum/viewtopic.php?f=6&t=133 Serial Bluetooth RF Transceiver Module RS232]<br>
[http://byron76.blogspot.de/ Firmware programmer]
+
[http://byron76.blogspot.de/ Firmware programmer]<br>
 +
[http://www.martyncurrey.com/category/bluetooth/ Martyn Currey's Blog]<br>
 +
[http://www.instructables.com/id/AT-command-mode-of-HC-05-Bluetooth-module/ AT Command Mode of HC-05 and HC-06 Bluetooth Module]

Latest revision as of 18:01, 9 July 2017

Bluetooth
Status
In Development
menuconfig I/O->Radio->Bluetooth
Pinning yes
Ecmd yes
Control6 -
Uses Timer -
Depends on -
Requires Free UART
Code https://github.com/ethersex/ethersex/tree/master/hardware/radio/bluetooth

BT0417C is a generic Bluetooth module loaded with SPP firmware for UART wireless cable replacement functions. It allows your target device to both send or receive the TTL data via Bluetooth technology without connecting a serial cable to your computer.

Features:

  • TTL data transparent transfer between a host Bluetooth device
  • Compatible with all Bluetooth adapters that support SPP
  • Default baud rate: 9600,8,1,N
  • Pair code: 1234
  • Built in antenna
  • Bluetooth Technology v2.0 compatible
  • Power input:3.3VDC
  • Compact Size


Connection

When used with 5V microcontrollers, the TXD output logic swing of the module still falls within the valid 5V TTL range, hence, can be connected directly to the UART RXD of the 5V microcontroller host. The RXD and inputs, however, are not 5V tolerant, and can be damaged by 5V level logic going in. Some level translation circuit must be added to protect the inputs. A simple diode level translator circuit like the ones shown in Figure 2 will suffice in most applications. A better alternative is with the use of 5V input tolerant tiny logic chips such as 74LVC1G125 – a single buffer chip housed in SMD SOT23-5 package.

Attention: there are different version of the module and breakout board around with different firmware and pin assignment.

The module is connected to a free USART (TX/RX). In addition it requires at least an free I/O pin.

 /* switch between data and command mode (mandatory) */
 pin(BT_MODULE_KEY,   PC1, OUTPUT)
 /* read back pairing state of module (optional) */
 pin(BT_MODULE_STATE, PC3, INPUT)

Configuration

The base configuration of the module:

 | |                        I/O  --->                                                        | |
 ...
 | |                  Radio  --->                                                            | |
 | |                               [ ] FS20 RF-control  --->                                 | |
 | |                               [ ] RFM12 ASK  --->                                       | |
 | |                               [ ] Generic ASK (433MHz)                                  | |
 | |                               [*] Bluetooth  --->                                       | |
 ...
 | |                             (3)   Bluetooth usart select                                | |
 | |                             (115200) USART Baudrate                                     | |
 | |                                  Device Name: "ethersex"                                | |
 | |                                  Device PIN: "1234"                                     | |
 | |                             --- ECMD                                                    | |
 | |                             [ ] AT Command Interface                                    | |
 | |                             --- Debugging Flags                                         | |
 | |                             [ ] Bluetooth                                               | |

Optionally the module can be used with ECMD:

 | |                        Protocols  --->                                                  | |
 ... 
 | |              [*] ECMD (Ethersex Command) support  --->                                  | |
 ...
 | |                       --- ECMD interfaces                                               | |
 ...
 | |                       [-] USB                                                           | |
 | |                       [*] Bluetooth                                                     | |


ECMD

Links

Serial Bluetooth RF Transceiver Module RS232
Firmware programmer
Martyn Currey's Blog
AT Command Mode of HC-05 and HC-06 Bluetooth Module