Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: [PATCH 0/3] Bluetooth LE 6LoWPAN using CoC From: Marcel Holtmann In-Reply-To: <1399282285-32743-1-git-send-email-jukka.rissanen@linux.intel.com> Date: Mon, 5 May 2014 19:22:56 -0700 Cc: linux-bluetooth@vger.kernel.org Message-Id: <1536F5A0-B421-41DE-90FA-1BB55F95A4B0@holtmann.org> References: <1399282285-32743-1-git-send-email-jukka.rissanen@linux.intel.com> To: Jukka Rissanen Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Jukka, > here is first version of BT LE 6LoWPAN functionality but using > connection oriented channels instead of fixed channel one. > > At the moment, the initial configuration needs to be done manually. > So in the slave device say: > # echo node > /sys/kernel/debug/bluetooth/hci0/6lowpan_role > # echo Y > /sys/kernel/debug/bluetooth/hci0/6lowpan > # hciconfig hci0 leadv > > And in the master device say: > # echo Y > /sys/kernel/debug/bluetooth/hci0/6lowpan > # hcitool lecc my current idea of providing an mgmt API for networking is to introduce HCI_CHANNEL_NETWORK and use a network specific mgmt API on that socket. This is something to think about. We could extend it to BNEP/PAN as well where we handle the whole connection logic inside the kernel. That way you can easily enable/disable PAN or 6loWPAN. bluetoothd or even an external 6loWPAN daemon could deal with connection establishment and acceptance. However more importantly this could be easily confined into bluetooth_network.ko at some point in the future and then automatically loaded via bt-chan-4 module aliases. Similar to how we load RFCOMM module via bt-proto-3 when accessing the socket. Alternative we can create a mgmt subcommand API and then load modules via bt-mgmt-x type of handling once accessing subcommands. Regards Marcel