Date: Thu, 05 May 2011 18:53:54 +0200 From: Raoul <rmgls@free.fr> To: bluetooth@freebsd.org Subject: Re: opcodes documentation Message-ID: <20110505165831.A3222D481C8@smtp5-g21.free.fr>
next in thread | raw e-mail | index | archive | help
On Thu May 5 15:04:01 UTC 2011 Iain Hibbert plunky at rya-online.net wrote: > On Thu, 5 May 2011, Raoul wrote: >> are they device specifics, or something like read/rwite and so on? >> >> Sorry for thje naive newbie question, but sure some slight >> additions to the man page would be appreciated on this topic. > > you would need to read the Bluetooth Core specification for details about > this, see www.bluetooth.com which I guess the manpage should also > reference. > > the 'opcode' that you need is constructed by the NG_HCI_OPCODE() macro, > from the OGF & OCF values for each command which are all defined in > ng_hci.h along with the packet structures.. > > in NetBSD I provided an HCI_CMD_xxx value that evaluates to the correct > value for each command (since there is only a single command with each > name, it doesn't really make sense to require the OGF/OCF in the API), and > BlueZ also uses this method now I believe.. > > regards, > iain Hello Iain, Many thanks for your help, its clear. I am always glad, and have so much to learn. Raoul rmgls@free.fr
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110505165831.A3222D481C8>