[PATCHv3 0/5] Three-wire (H5) support in btproxy

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

 



From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>

Changes:
	* v3: Fixed bugs, added emulation of received packet loss.
	* v2: Fix comments from review, added h5 debug
	* v1: Split code to h5.[ch], remove global vars, add callbacks
	* RFC: Initial code

With H5 support it is possible to create pts and attach to it using
hciattach ot btattach with 3wire protocol. This is useful for testing
and developing three-wire protocol.
Implementation is based on kernel hci_h5.c H5 protocol.

Simple usage:
To open virtual pts run:
$ sudo tools/btproxy -d --pty -3
Opening pseudoterminal
New pts created: /dev/pts/2
Opening user channel for hci0

Now attach to it using hciattach:
$ sudo hciattach -n /dev/pts/2 3wire
Device setup complete

Andrei Emeltchenko (5):
  btproxy: Add support for creating pseudoterminal
  btproxy: Add three-wire (h5) protocol initial support
  btproxy: Fix possible string overflow
  btproxy: Simplify Bluetooth proxy
  btproxy: h5: Emulate packet loss

 Makefile.tools  |   3 +-
 tools/btproxy.c | 138 ++++++++++++-
 tools/h5.c      | 605 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/h5.h      |  36 ++++
 4 files changed, 777 insertions(+), 5 deletions(-)
 create mode 100644 tools/h5.c
 create mode 100644 tools/h5.h

-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux