Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
interfaces:bt0417c [2023/12/05 12:30]
darron [Linux]
interfaces:bt0417c [2023/12/15 07:36] (current)
darron [Windows]
Line 5: Line 5:
 \\ \\ \\ \\
 {{:interfaces:btload.jpg?200}} {{:interfaces:btload.jpg?200}}
 +\\ \\
 +{{:interfaces:bt0417c-rev.jpg?200}}
 </wrap> </wrap>
  
 This is a low cost bluetooth module that may or may not come on a base board. There are a number of variations and here we have the one known as the HC-05. This can be configured as a bluetooth master or slave and appears to be the most popular and versatile. This is a low cost bluetooth module that may or may not come on a base board. There are a number of variations and here we have the one known as the HC-05. This can be configured as a bluetooth master or slave and appears to be the most popular and versatile.
  
-The module is comprised of a CSR BC417 radio and an MX29LV800 flash chip.+The module is comprised of a CSR BC417 radio which supports BT 2.0+EDR and an MX29LV800 flash chip
 + 
 +This module has been verified to work with the RPi 400 and its internal BT 5.0 BLE interface using the legacy mode rfcomm interface.
 === Pinout === === Pinout ===
 My module came on a board with the following layout. There are at least two other board variations which don't apply here. My module came on a board with the following layout. There are at least two other board variations which don't apply here.
Line 106: Line 110:
 __btkrn__ __btkrn__
  
-For Pi4, BT can be enabled in /boot/config.txt and btattach (above) is not needed.+Alternatively to the above, BT can be enabled in /boot/config.txt so btattach is not needed.
  
 <code> <code>
Line 117: Line 121:
  
 == Bluez 4 == == Bluez 4 ==
 +
 +__hciconfig__
 +
 <code> <code>
 hciconfig hci0 up hciconfig hci0 up
Line 130: Line 137:
  
 == Bluez 5 == == Bluez 5 ==
 +
 +__bluetoothctl__
 +
 <code> <code>
-bluetoothctl 
 [NEW] Controller 00:11:67:5A:96:F3 BlueZ 5.27 [default] [NEW] Controller 00:11:67:5A:96:F3 BlueZ 5.27 [default]
 [bluetooth]# power on [bluetooth]# power on
Line 154: Line 163:
 [DEL] Controller 00:11:67:5A:96:F3 BlueZ 5.27 [default] [DEL] Controller 00:11:67:5A:96:F3 BlueZ 5.27 [default]
 </code> </code>
 +
 +== RFCOMM ==
  
 Talk to module via virtual serial port. Talk to module via virtual serial port.
Line 160: Line 171:
 sdptool add --channel=666 SP sdptool add --channel=666 SP
 rfcomm bind rfcomm0 98:D3:31:50:19:9C rfcomm bind rfcomm0 98:D3:31:50:19:9C
-screen /dev/rfcomm0 9600+picocom /dev/rfcomm0
 </code> </code>
 +
 +===Windows====
 +
 +<wrap right>
 +{{:interfaces:rfcom.jpg?200|Intel BT 5.2}}
 +</wrap>
 +
 +In Windows 10 scan for BT devices, click connect and enter the pass code.
 +
 +A COM port will be added for the module which acts just like a regular hardware
 +com port.
 +
 +This test was performed using an Intel BT 5.2 motherboard adapter.
 === Resources === === Resources ===