public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Wurmsdobler <peter@wurmsdobler.org>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] #define OGF_TESTING_CMD potentially wrong?
Date: Tue, 22 Jul 2008 11:36:57 +0100	[thread overview]
Message-ID: <4885B849.7040201@wurmsdobler.org> (raw)

Hello,

a few days ago I posted a message concerning testing, i.e. on how to put 
a Bluetooth module into the test modes specified in the Bluetooth 
specification Core 2.1 (27.07.2007) using:

	hcitool cmd <OGF> <OCF> [params]

In concrete I was interested in HCI_Write_Loopback_Mode and 
HCI_Enable_Device_Under_Test_Mode, for which OCF are defined as 0x0002 
and 0x0003, respectively. OGF is defined as 0x06 in the specification.

hcitool delivers the command at the bluetooth module. However, hcidump, 
which uses #defines and tables from bluez-libs, resolves this commands 
as Unknown, as it would defined in include/hci.h

#define OGF_TESTING_CMD 0x3e

If I used OGF=0x3e in the above hcitool command, hcidump would resolve 
the string correctly, but the bluetooth module would not do what it was 
told to do.

To me it appears that the #define in hci.h is potentially wrong, or 
maybe refers to an older version of the specification, when testing 
might have been vendor specific.

Best regards,
peter


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

             reply	other threads:[~2008-07-22 10:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-22 10:36 Peter Wurmsdobler [this message]
2008-07-22 12:45 ` [Bluez-users] #define OGF_TESTING_CMD potentially wrong? Marcel Holtmann
2008-07-22 13:41   ` Peter Wurmsdobler
2008-07-26 21:35     ` [Bluez-users] compile error: bluetooth/bluetooth.h: No such file or directory thanit sara
2008-07-27  0:32       ` Mumia W..

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4885B849.7040201@wurmsdobler.org \
    --to=peter@wurmsdobler.org \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox