Skip to content

Bluetooth support for Raspberry Pi Zero W #224

@angrycandy

Description

@angrycandy

Environment

  • Elixir version (elixir -v):
Erlang/OTP 24 [erts-12.0.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Elixir 1.12.0 (compiled with Erlang/OTP 24)
  • Nerves environment: (mix nerves.env --info)
==> nerves
==> firmware
|nerves_bootstrap| Environment Package List

  Pkg:         nerves_toolchain_ctng
  Vsn:         1.8.3
  Type:        toolchain_platform
  BuildRunner: {nil, []}

  Pkg:         nerves_toolchain_armv6_nerves_linux_gnueabihf
  Vsn:         1.4.2
  Type:        toolchain
  BuildRunner: {Nerves.Artifact.BuildRunners.Local, []}

  Pkg:         nerves_system_br
  Vsn:         1.16.0
  Type:        system_platform
  BuildRunner: {nil, []}

  Pkg:         nerves_system_rpi0
  Vsn:         1.16.0
  Type:        system
  BuildRunner: {Nerves.Artifact.BuildRunners.Local, []}

|nerves_bootstrap| Loadpaths Start


Nerves environment
  MIX_TARGET:   rpi0
  MIX_ENV:      dev

|nerves_bootstrap| Environment Variable List
  target:     rpi0
  toolchain:  /home/bfw/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-linux_x86_64-1.4.2
  system:     /home/bfw/.nerves/artifacts/nerves_system_rpi0-portable-1.16.0
  app:        .

|nerves_bootstrap| Loadpaths End
  • Additional information about your host, target hardware or environment that
    may help

NA

Current behavior

There is no UART for Bluetooth.

iex(1)> cmd "ls /dev/ttyA*"
/dev/ttyAMA0
0
iex(2)>

Expected behavior

https://hexdocs.pm/blue_heron_transport_uart/readme.html

BlueHeron supports UART-based Bluetooth modules. Currently, this ONLY includes the Cypress Semiconductor BCM43438. This part is on the Raspberry Pi Zero W and the Raspberry Pi 3 B. It is NOT on the 3 B+.

https://hexdocs.pm/nerves_system_rpi0/readme.html#linux-kernel-configuration-notes

In Networking support, disable Amateur Radio support, CAN bus subsystem, IrDA subsystem, Bluetooth, WiMAX, Plan 9, and NFC. (TBD - this may be too harsh, please open issues if you're using any of these and it's the only reason for you to create a custom system.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions