Announcement

Collapse
No announcement yet.

HS4-PI bluetooth doesn't work

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by PFL View Post

    Yes, but you still need to do this:


    sudo apt install bluetooth pi-bluetooth bluez blueman
    Hi I ran that. completed without errors rebooted but still get the same no such device result. Also hcitool dev is empty, result of bluetooth status is this.


    root@HS4PiV5:~# sudo hciconfig hci0 reset
    Can't get device info: No such device
    root@HS4PiV5:~# sudo invoke-rc.d bluetooth restart
    root@HS4PiV5:~# sudo systemctl status bluetooth
    ● bluetooth.service - Bluetooth service
    Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
    Active: active (running) since Tue 2022-02-15 20:30:24 UTC; 19s ago
    Docs: man:bluetoothd(8)
    Main PID: 1070 (bluetoothd)
    Status: "Running"
    Tasks: 1 (limit: 4915)
    CGroup: /system.slice/bluetooth.service
    └─1070 /usr/lib/bluetooth/bluetoothd

    Feb 15 20:30:24 HS4PiV5 systemd[1]: Starting Bluetooth service...
    Feb 15 20:30:24 HS4PiV5 bluetoothd[1070]: Bluetooth daemon 5.50
    Feb 15 20:30:24 HS4PiV5 systemd[1]: Started Bluetooth service.
    Feb 15 20:30:24 HS4PiV5 bluetoothd[1070]: Starting SDP server
    Feb 15 20:30:24 HS4PiV5 bluetoothd[1070]: Bluetooth management interface 1.18 initialized
    root@HS4PiV5:~# hcitool dev

    I also see this error
    sudo systemctl start hciuart.service
    Job for hciuart.service failed because the control process exited with error code.
    See "systemctl status hciuart.service" and "journalctl -xe" for details.
    root@HS4PiV5:~# systemctl status hciuart.service
    ● hciuart.service - Configure Bluetooth Modems connected by UART
    Loaded: loaded (/lib/systemd/system/hciuart.service; disabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Tue 2022-02-15 20:38:21 UTC; 1min 3s ago
    Process: 1214 ExecStart=/usr/bin/btuart (code=exited, status=1/FAILURE)

    Feb 15 20:38:15 HS4PiV5 systemd[1]: Starting Configure Bluetooth Modems connected by UART...
    Feb 15 20:38:21 HS4PiV5 btuart[1214]: Can't set line discipline: Invalid argument
    Feb 15 20:38:21 HS4PiV5 btuart[1214]: Can't initialize device: Invalid argument
    Feb 15 20:38:21 HS4PiV5 btuart[1214]: bcm43xx_init
    Feb 15 20:38:21 HS4PiV5 btuart[1214]: Flash firmware /lib/firmware/brcm/BCM4345C0.hcd
    Feb 15 20:38:21 HS4PiV5 btuart[1214]: Set Controller UART speed to 460800 bit/s
    Feb 15 20:38:21 HS4PiV5 systemd[1]: hciuart.service: Control process exited, code=exited, status=1/FAILURE
    Feb 15 20:38:21 HS4PiV5 systemd[1]: hciuart.service: Failed with result 'exit-code'.
    Feb 15 20:38:21 HS4PiV5 systemd[1]: Failed to start Configure Bluetooth Modems connected by UART.

    Comment


      #17
      Originally posted by trevor-austin View Post

      Hi I ran that. completed without errors rebooted but still get the same no such device result. Also hcitool dev is empty, result of bluetooth status is this.


      root@HS4PiV5:~# sudo hciconfig hci0 reset
      Can't get device info: No such device
      root@HS4PiV5:~# sudo invoke-rc.d bluetooth restart
      root@HS4PiV5:~# sudo systemctl status bluetooth
      ● bluetooth.service - Bluetooth service
      Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
      Active: active (running) since Tue 2022-02-15 20:30:24 UTC; 19s ago
      Docs: man:bluetoothd(8)
      Main PID: 1070 (bluetoothd)
      Status: "Running"
      Tasks: 1 (limit: 4915)
      CGroup: /system.slice/bluetooth.service
      └─1070 /usr/lib/bluetooth/bluetoothd

      Feb 15 20:30:24 HS4PiV5 systemd[1]: Starting Bluetooth service...
      Feb 15 20:30:24 HS4PiV5 bluetoothd[1070]: Bluetooth daemon 5.50
      Feb 15 20:30:24 HS4PiV5 systemd[1]: Started Bluetooth service.
      Feb 15 20:30:24 HS4PiV5 bluetoothd[1070]: Starting SDP server
      Feb 15 20:30:24 HS4PiV5 bluetoothd[1070]: Bluetooth management interface 1.18 initialized
      root@HS4PiV5:~# hcitool dev

      I also see this error
      sudo systemctl start hciuart.service
      Job for hciuart.service failed because the control process exited with error code.
      See "systemctl status hciuart.service" and "journalctl -xe" for details.
      root@HS4PiV5:~# systemctl status hciuart.service
      ● hciuart.service - Configure Bluetooth Modems connected by UART
      Loaded: loaded (/lib/systemd/system/hciuart.service; disabled; vendor preset: enabled)
      Active: failed (Result: exit-code) since Tue 2022-02-15 20:38:21 UTC; 1min 3s ago
      Process: 1214 ExecStart=/usr/bin/btuart (code=exited, status=1/FAILURE)

      Feb 15 20:38:15 HS4PiV5 systemd[1]: Starting Configure Bluetooth Modems connected by UART...
      Feb 15 20:38:21 HS4PiV5 btuart[1214]: Can't set line discipline: Invalid argument
      Feb 15 20:38:21 HS4PiV5 btuart[1214]: Can't initialize device: Invalid argument
      Feb 15 20:38:21 HS4PiV5 btuart[1214]: bcm43xx_init
      Feb 15 20:38:21 HS4PiV5 btuart[1214]: Flash firmware /lib/firmware/brcm/BCM4345C0.hcd
      Feb 15 20:38:21 HS4PiV5 btuart[1214]: Set Controller UART speed to 460800 bit/s
      Feb 15 20:38:21 HS4PiV5 systemd[1]: hciuart.service: Control process exited, code=exited, status=1/FAILURE
      Feb 15 20:38:21 HS4PiV5 systemd[1]: hciuart.service: Failed with result 'exit-code'.
      Feb 15 20:38:21 HS4PiV5 systemd[1]: Failed to start Configure Bluetooth Modems connected by UART.
      Did you tried the desktop version OS?

      Comment


        #18
        Originally posted by PFL View Post

        Did you tried the desktop version OS?
        I'm confused what you mean? I'm using a raspberry PI 4 and HS4 for raspberry PI?

        Comment


          #19
          Originally posted by trevor-austin View Post

          I'm confused what you mean? I'm using a raspberry PI 4 and HS4 for raspberry PI?
          Yes, HS4 is also working with raspberry pi OS desktop, not only lite OS, usually bluetooth works better on desktop.

          Comment


            #20
            Originally posted by PFL View Post

            Yes, HS4 is also working with raspberry pi OS desktop, not only lite OS, usually bluetooth works better on desktop.
            Ah I see, I’m running headless under a caravan front bench so can’t do that. However I have up, undid al gte changes and plugged in a usb Bluetooth single and it all just worked

            Comment


              #21
              Originally posted by PFL View Post
              Do this to enable bluetooth:

              sudo nano /boot/config.txt

              add this 2 lines:

              enable_uart=1

              dtoverlay=pi3-miniuart-bt
              I have RPi-4 running HS4 and, of course, the Bluetooth has been inactivated. I followed instructions on this thread and have gotten this far:

              homeseer@HS4PiV6:~ $ sudo systemctl status bluetooth
              ● bluetooth.service - Bluetooth service
              Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset
              Active: active (running) since Tue 2022-07-19 21:50:05 EDT; 8min ago
              Docs: man:bluetoothd(8)
              Main PID: 502 (bluetoothd)
              Status: "Running"
              Tasks: 1 (limit: 4915)
              CGroup: /system.slice/bluetooth.service
              └─502 /usr/lib/bluetooth/bluetoothd

              Jul 19 21:50:05 HS4PiV6 systemd[1]: Starting Bluetooth service...
              Jul 19 21:50:05 HS4PiV6 bluetoothd[502]: Bluetooth daemon 5.50
              Jul 19 21:50:05 HS4PiV6 systemd[1]: Started Bluetooth service.
              Jul 19 21:50:05 HS4PiV6 bluetoothd[502]: Starting SDP server
              Jul 19 21:50:05 HS4PiV6 bluetoothd[502]: Bluetooth management interface 1.18 ini
              lines 1-15/15 (END)
              ● bluetooth.service - Bluetooth service
              Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
              Active: active (running) since Tue 2022-07-19 21:50:05 EDT; 8min ago
              Docs: man:bluetoothd(8)
              Main PID: 502 (bluetoothd)
              Status: "Running"
              Tasks: 1 (limit: 4915)
              CGroup: /system.slice/bluetooth.service
              └─502 /usr/lib/bluetooth/bluetoothd

              Jul 19 21:50:05 HS4PiV6 systemd[1]: Starting Bluetooth service...
              Jul 19 21:50:05 HS4PiV6 bluetoothd[502]: Bluetooth daemon 5.50
              Jul 19 21:50:05 HS4PiV6 systemd[1]: Started Bluetooth service.
              Jul 19 21:50:05 HS4PiV6 bluetoothd[502]: Starting SDP server
              Jul 19 21:50:05 HS4PiV6 bluetoothd[502]: Bluetooth management interface 1.18 initialized


              However, I also get this:

              homeseer@HS4PiV6:~ $ sudo bluetoothctl
              Agent registered
              [bluetooth]# scan on
              No default controller available


              So, the Bluetooth device is not being seen by the RPi and Bluetooth is not working. Any help would be appreciated. Thanks.


              Comment


                #22
                Is the logged in user a member of the bluetooth group?

                Roger D

                Comment


                  #23
                  Originally posted by Roger D View Post
                  Is the logged in user a member of the bluetooth group?

                  Roger D
                  Thanks for the response. What I have learned is that the installation image from HomeSeer turns off Bluetooth so as not to interfere with Z-Wave. There was no way that I could get it turned on. True or not, what I did was to install a standard RPi OS and then install the HomeSeer program. In this case, Bluetooth is functional.

                  Comment


                    #24
                    I thought I read somewhere that you couldn't have Bluetooth enabled and the Z-Wave hat installed because they used the same serial connection? I suspect that's why BT is disabled by default. Since you are using a Pi4 (not a Hometroller hub) you should be fine.
                    "if I have seen further [than others], it is by standing on the shoulders of giants." --Sir Isaac Newton (1675)

                    Comment


                      #25
                      The Raspberry Pi 4 with the Z-Wave hat can co-exist without problems. I ran mine that way for over a year.

                      Roger D

                      Comment

                      Working...
                      X