Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



christopherhall.hsw%gmail.com@localhost (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.





Home | Main Index | Thread Index | Old Index