From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> Changes: * 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 (2): btproxy: Add support for creating pseudoterminal btproxy: Add three-wire (h5) protocol initial support Makefile.tools | 3 +- tools/btproxy.c | 121 +++++++++++- tools/h5.c | 596 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/h5.h | 36 ++++ 4 files changed, 752 insertions(+), 4 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