Re: Is there a document for setting up Bluetooth on a Raspberry Pi 3B?

[email protected] (Michael van Elst)
Newsgroups gmane.os.netbsd.ports.arm
Organization Serpens User Group
Message-ID <[email protected]>
[email protected] (Christopher Hall) writes:

>As far as I can tell from the source code of btattach the bcmxx-3wire
>line triggers the firmware upload to the bluetooth chip then tries to
>connect the "bth5" driver

Indeed.


>so I am wondering if the "bth5" reference in btattach.c needs to be
>changed to "bthfive".

In btattach.conf:

# Raspberry Pi 3 Bluetooth UART
bcm43xx-3wire   /dev/dplcom0    921600          -FPi 115200

which in btattach refers to

    { 
        .name = "bcm43xx-3wire",
        .line = "bth5",
        .descr = "Broadcom BCM43xx (3-wire)", 
        .init = &init_bcm43xx,
        .speed = B115200,
    },

The "line" value then matches

static struct linesw bth5_disc = {
        .l_name = "bth5",
        .l_open = bth5open,
        .l_close = bth5close, 
        .l_read = ttyerrio,
        .l_write = ttyerrio,
        .l_ioctl = bth5ioctl,
        .l_rint = bth5_slip_receive, 
        .l_start = bth5_slip_transmit,
        .l_modem = ttymodem,
        .l_poll = ttyerrpoll
};

the "bth5" line discipline.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.