0

I'm attempting to use a HC-06 bluetooth module on a raspberry pi zero (not w). I have it wired correctly and have used it before on older versions of raspbian, but I decided to update to the lastest raspbian buster (July 2019) and now I can't seem to get the bluetooth module working.

When I type the command systemctl status bluetooth I get the following output:

● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:bluetoothd(8)

Jul 10 03:03:48 raspberrypi systemd[1]: Condition check resulted in Bluetooth service being skipped.

I have enabled the serial-interface through raspi-config, but it appears that some setting is causing it to not look for a bluetooth module at all. Has anybody seen this before? I can seem to find this same issue with this error message.

Consequently with the bluetooth service not working, bluetoothctl seems to freeze and not allow any input.

aerotec88
  • 1
  • 1
  • 2
  • But HC06 does not link to Rpi using Bluetooth. HC06 talks to Rpi using UART. HC06 is a "serial through thing", which serially passing Rpi's serial data to the other side's Bluetooh guy, say android phone. – tlfong01 Sep 16 '19 at 02:56

1 Answers1

0

Question

How can Rpi talk to HC06?

Answer

  1. Let us use the HC06 Module, Reference (1) as an example.

  2. Let us first study the HC06 chip specification and user guide, Reference (2).

  3. The chip uses two UART pins, TxD and RxD to talk to the Rpi, using AT commands.

  4. Now let us look at the block diagram.

hc06 block diagram_2019sep1601

  1. Let us first make sure that the HC06 module is working, by

Sending the AT command "AT".

If the module returns "OK",

then everything is fine.

The user guide describes the AT command set in Chapter 9.

AT command

/ to continue, ...

References

(1) AliExpress Bluetooth HC-06 Module US$3

(2) HC06 User Manual - Guangzhou HC Info Tech

(3) HC05/06 Modules and AT Commands

(4) BlueZ V5.5 Problems

tlfong01
  • 4,665
  • 3
  • 10
  • 24