Home | History | Annotate | only in /src/usr.sbin/btattach
History log of /src/usr.sbin/btattach
RevisionDateAuthorComments
 1.4 10-Aug-2017  jmcneill Derive the firmware name from the device's local name instead of
hard-coding BCM4340A1. Search hw.firmware.path for the firmware image
instead of loading it from the current directory.
 1.3 10-Aug-2017  nat Add support for bcm 43xx devices using the btuart h5 protocol.

Currently It will only load 1 firmware image for rpi3.

To use change to the directory containing the firmware BCM4340A1.hcd.
Then issue: btattach -FPi 115200 bcm43xx /dev/ttydevice 921600.

Then you can use the bluetooth device btfive0.

This enables the embedded bluetooth controller on rpi3.
 1.2 06-Dec-2009  kiyohara Support Infineon UniStone (PBA31308).
from Gumstix's bluez-utils-hciattach-pba31308.patch.
tested on Gumstix verdex-pro.
 1.1 15-Apr-2008  plunky some changes to serial bluetooth host controller interfaces

btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
 1.10 13-Aug-2017  wiz Indent to avoid line breaks in tag; give tag width in table; use Nm
to refer to hciattach because we'll probably never have hciattach(8).
 1.9 11-Aug-2017  jmcneill Make the "bcm43xx" type use H4 transport and add a new "bcm43xx-3wire"
type for use with H5 transport. The naming of the types here matches
those used in a series of BlueZ patches from the Raspberry Pi foundation.
 1.8 18-Mar-2014  riastradh Merge riastradh-drm2 to HEAD.
 1.7 20-Jul-2013  wiz Use Mt for email addresses.
 1.6 28-Apr-2011  wiz branches: 1.6.4; 1.6.10; 1.6.14;
Fix a typo.
 1.5 09-Mar-2010  wiz Sort sections. Try to improve description of -t.
 1.4 08-Mar-2010  kiyohara Add -t, -F, -P.
 1.3 06-Dec-2009  kiyohara Add unistone.
 1.2 15-Mar-2009  joerg Remove .Pp as it breaks visible context.
 1.1 15-Apr-2008  plunky branches: 1.1.10;
some changes to serial bluetooth host controller interfaces

btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
 1.1.10.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.6.14.1 23-Jul-2013  riastradh sync with HEAD
 1.6.10.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.16 07-Feb-2023  mlelstv - Reconfigure port speed only when initial speed was different.
- Time out HCI commands instead of hanging forever.
- When bcm43xx reset fails, assume that firmware is already
running and start line discipline.

This allows to re-attach bcm43xx without reboot.
 1.15 11-Aug-2017  jmcneill Make the "bcm43xx" type use H4 transport and add a new "bcm43xx-3wire"
type for use with H5 transport. The naming of the types here matches
those used in a series of BlueZ patches from the Raspberry Pi foundation.
 1.14 10-Aug-2017  nat Add support for bcm 43xx devices using the btuart h5 protocol.

Currently It will only load 1 firmware image for rpi3.

To use change to the directory containing the firmware BCM4340A1.hcd.
Then issue: btattach -FPi 115200 bcm43xx /dev/ttydevice 921600.

Then you can use the bluetooth device btfive0.

This enables the embedded bluetooth controller on rpi3.
 1.13 16-Jun-2015  christos improve error messages (remove \n, use __func__, etc)
 1.12 27-Aug-2011  joerg Mark types as static and usage as dead.
 1.11 09-Mar-2010  kiyohara Remove white-spaces.
 1.10 08-Mar-2010  plunky use %zd for ssize_t argument
 1.9 08-Mar-2010  plunky fix compilation errors
 1.8 08-Mar-2010  kiyohara Add option 'test mode'(-t).
Can test your Bluetooth module via com-port.
This mode guess speed for bcsp(4) or btuart(4), if not respond.
 1.7 08-Mar-2010  kiyohara Add options 'no parity'(-P) and 'disable flow control'(-F).
Also default enable parity for bcsp.
 1.6 17-Feb-2010  plunky sort entries in structure
clarify init name type for CSR modules
 1.5 06-Dec-2009  kiyohara Support Infineon UniStone (PBA31308).
from Gumstix's bluez-utils-hciattach-pba31308.patch.
tested on Gumstix verdex-pro.
 1.4 06-Dec-2009  kiyohara Fix some bugs.
1. Remove O_NDELAY. Please block it. Or read() returns EAGAIN.
2. We want data size. header already read.
3. Call errx(). errno(2) unspecified at now.
 1.3 15-Apr-2009  lukem Fix -Wsign-compare issues.
(Use %u not %d for unsigned ints.)
 1.2 21-Jul-2008  lukem branches: 1.2.6;
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
 1.1 15-Apr-2008  plunky branches: 1.1.4;
some changes to serial bluetooth host controller interfaces

btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
 1.1.4.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.2.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.5 07-Feb-2023  mlelstv - Reconfigure port speed only when initial speed was different.
- Time out HCI commands instead of hanging forever.
- When bcm43xx reset fails, assume that firmware is already
running and start line discipline.

This allows to re-attach bcm43xx without reboot.
 1.4 10-Aug-2017  nat Add support for bcm 43xx devices using the btuart h5 protocol.

Currently It will only load 1 firmware image for rpi3.

To use change to the directory containing the firmware BCM4340A1.hcd.
Then issue: btattach -FPi 115200 bcm43xx /dev/ttydevice 921600.

Then you can use the bluetooth device btfive0.

This enables the embedded bluetooth controller on rpi3.
 1.3 06-Dec-2009  kiyohara Support Infineon UniStone (PBA31308).
from Gumstix's bluez-utils-hciattach-pba31308.patch.
tested on Gumstix verdex-pro.
 1.2 15-Apr-2009  lukem Fix -Wsign-compare issues.
(Use %u not %d for unsigned ints.)
 1.1 15-Apr-2008  plunky branches: 1.1.10;
some changes to serial bluetooth host controller interfaces

btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
 1.1.10.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1 10-Aug-2017  jmcneill Derive the firmware name from the device's local name instead of
hard-coding BCM4340A1. Search hw.firmware.path for the firmware image
instead of loading it from the current directory.
 1.1 10-Aug-2017  jmcneill Derive the firmware name from the device's local name instead of
hard-coding BCM4340A1. Search hw.firmware.path for the firmware image
instead of loading it from the current directory.
 1.3 16-Jun-2015  christos improve error messages (remove \n, use __func__, etc)
 1.2 15-Apr-2009  lukem Fix -Wsign-compare issues.
(Use %u not %d for unsigned ints.)
 1.1 15-Apr-2008  plunky branches: 1.1.10;
some changes to serial bluetooth host controller interfaces

btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
 1.1.10.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.6 07-Feb-2023  mlelstv - Reconfigure port speed only when initial speed was different.
- Time out HCI commands instead of hanging forever.
- When bcm43xx reset fails, assume that firmware is already
running and start line discipline.

This allows to re-attach bcm43xx without reboot.
 1.5 03-Sep-2017  nat Fix copyright error.

Ok plunky@.
 1.4 14-Aug-2017  nat Set controller clock based on baud rate.
 1.3 10-Aug-2017  jmcneill Derive the firmware name from the device's local name instead of
hard-coding BCM4340A1. Search hw.firmware.path for the firmware image
instead of loading it from the current directory.
 1.2 10-Aug-2017  jakllsch remove currently-unused variables that trip up the build
 1.1 10-Aug-2017  nat Add support for bcm 43xx devices using the btuart h5 protocol.

Currently It will only load 1 firmware image for rpi3.

To use change to the directory containing the firmware BCM4340A1.hcd.
Then issue: btattach -FPi 115200 bcm43xx /dev/ttydevice 921600.

Then you can use the bluetooth device btfive0.

This enables the embedded bluetooth controller on rpi3.
 1.1 15-Apr-2008  plunky some changes to serial bluetooth host controller interfaces

btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
 1.2 06-Dec-2009  kiyohara Fix comment. CSR use BlueCore command.
 1.1 15-Apr-2008  plunky some changes to serial bluetooth host controller interfaces

btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
 1.3 16-Jun-2015  christos improve error messages (remove \n, use __func__, etc)
 1.2 15-Apr-2009  lukem Fix -Wsign-compare issues.
(Use %u not %d for unsigned ints.)
 1.1 15-Apr-2008  plunky branches: 1.1.10;
some changes to serial bluetooth host controller interfaces

btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
 1.1.10.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.3 16-Jun-2015  christos improve error messages (remove \n, use __func__, etc)
 1.2 15-Apr-2009  lukem Fix -Wsign-compare issues.
(Use %u not %d for unsigned ints.)
 1.1 15-Apr-2008  plunky branches: 1.1.10;
some changes to serial bluetooth host controller interfaces

btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
 1.1.10.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.3 16-Jun-2015  christos improve error messages (remove \n, use __func__, etc)
 1.2 15-Apr-2009  lukem Fix -Wsign-compare issues.
(Use %u not %d for unsigned ints.)
 1.1 15-Apr-2008  plunky branches: 1.1.10;
some changes to serial bluetooth host controller interfaces

btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
 1.1.10.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.3 09-Mar-2010  kiyohara Remove white-spaces.
 1.2 06-Dec-2009  kiyohara Check return values.
 1.1 15-Apr-2008  plunky some changes to serial bluetooth host controller interfaces

btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
 1.4 16-Jun-2015  christos improve error messages (remove \n, use __func__, etc)
 1.3 09-Mar-2010  kiyohara Remove white-spaces.
 1.2 15-Apr-2009  lukem Fix -Wsign-compare issues.
(Use %u not %d for unsigned ints.)
 1.1 15-Apr-2008  plunky branches: 1.1.10;
some changes to serial bluetooth host controller interfaces

btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
 1.1.10.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.3 16-Jun-2015  christos a couple more stray \n
 1.2 16-Jun-2015  christos improve error messages (remove \n, use __func__, etc)
 1.1 06-Dec-2009  kiyohara Support Infineon UniStone (PBA31308).
from Gumstix's bluez-utils-hciattach-pba31308.patch.
tested on Gumstix verdex-pro.

RSS XML Feed