* BCCMDs
@ 2008-12-29 22:37 David Thornton
2008-12-29 23:00 ` BCCMDs David Thornton
2008-12-30 1:47 ` BCCMDs Marcel Holtmann
0 siblings, 2 replies; 5+ messages in thread
From: David Thornton @ 2008-12-29 22:37 UTC (permalink / raw)
To: linux-bluetooth
Hi,
(sorry, i posted to Marcel - then joined the mailing list so it looked
like i posted to him directly sorry!)
Well any way: i was wondering if someone could show me a quick bluecore
comand demo - like a warm reset or something
(in a C array, and if you could heavily commented :)
Anything you have to teach me about bccmds would be appreciated!
Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: BCCMDs
2008-12-29 22:37 BCCMDs David Thornton
@ 2008-12-29 23:00 ` David Thornton
2008-12-30 1:47 ` BCCMDs Marcel Holtmann
1 sibling, 0 replies; 5+ messages in thread
From: David Thornton @ 2008-12-29 23:00 UTC (permalink / raw)
To: linux-bluetooth
Hi,
Also (and this was my main problem) how do you dissect bccmd responses -
lol i know 0x04 then 0xff then im stumped!
(do bccmds generate COMMAND_STATUS (0x0f) HCI responses ? )
thanks again!
David Thornton wrote:
> Hi,
>
> (sorry, i posted to Marcel - then joined the mailing list so it looked
> like i posted to him directly sorry!)
>
> Well any way: i was wondering if someone could show me a quick
> bluecore comand demo - like a warm reset or something
> (in a C array, and if you could heavily commented :)
>
> Anything you have to teach me about bccmds would be appreciated!
>
> Thanks
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: BCCMDs
2008-12-29 22:37 BCCMDs David Thornton
2008-12-29 23:00 ` BCCMDs David Thornton
@ 2008-12-30 1:47 ` Marcel Holtmann
1 sibling, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2008-12-30 1:47 UTC (permalink / raw)
To: David Thornton; +Cc: linux-bluetooth
Hi David,
> (sorry, i posted to Marcel - then joined the mailing list so it looked
> like i posted to him directly sorry!)
>
> Well any way: i was wondering if someone could show me a quick bluecore
> comand demo - like a warm reset or something
> (in a C array, and if you could heavily commented :)
>
> Anything you have to teach me about bccmds would be appreciated!
the bccmd tool comes with full source code and it contains an example to
warm reset a device. Same as the bdaddr tool. So what else do you need.
Regards
Marcel
^ permalink raw reply [flat|nested] 5+ messages in thread
* bccmds
@ 2008-12-30 5:15 David Thornton
2008-12-30 5:19 ` bccmds Marcel Holtmann
0 siblings, 1 reply; 5+ messages in thread
From: David Thornton @ 2008-12-30 5:15 UTC (permalink / raw)
To: linux-bluetooth
Thanks,
I looked at bccmd.c in /tools right after you posted - and hence solved
my problem.
I am, though, getting a strange error after sending an HCI inquiry command.
here are the first 15 lines of each response:
thingo: 0x04
thingo: 0x0f
thingo: 0x04
thingo: 0x00
thingo: 0x01
thingo: 0x00
thingo: 0x00
thingo: 0x00
thingo: 0x00
thingo: 0x00
that packet is normal - command status event
thingo: 0x04
thingo: 0x10
thingo: 0x01
thingo: 0x35
thingo: 0x01
thingo: 0x00
thingo: 0x00
thingo: 0x00
thingo: 0x00
thingo: 0x00
hardware error - but i cannot tell what the error code means (yes i will
check Core Spec 2.0 now :) )
thingo: 0x04
thingo: 0xff
thingo: 0x1f
thingo: 0xc3
thingo: 0x02
thingo: 0x00
thingo: 0x0f
thingo: 0x00
thingo: 0x20
thingo: 0xa7
this packet looks like a CSR manufaturer specific response (0xff) what
does that mean?
even stranger is when run again and every subsequent time before a
reboot (of bluecore) it works and gives back the correct amount of
hosts found!!!
Is it to do with some kind of baud error? Bluecore can adapt to
different baud rates just by looking at the data sent over time - but i
want to know what effect this - moreover what it mucks up.
thanks and sorry for the long email
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: bccmds
2008-12-30 5:15 bccmds David Thornton
@ 2008-12-30 5:19 ` Marcel Holtmann
0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2008-12-30 5:19 UTC (permalink / raw)
To: David Thornton; +Cc: linux-bluetooth
Hi David,
> I looked at bccmd.c in /tools right after you posted - and hence solved
> my problem.
>
> I am, though, getting a strange error after sending an HCI inquiry command.
>
> here are the first 15 lines of each response:
>
> thingo: 0x04
> thingo: 0x0f
> thingo: 0x04
> thingo: 0x00
> thingo: 0x01
> thingo: 0x00
> thingo: 0x00
> thingo: 0x00
> thingo: 0x00
> thingo: 0x00
>
> that packet is normal - command status event
>
> thingo: 0x04
> thingo: 0x10
> thingo: 0x01
> thingo: 0x35
> thingo: 0x01
> thingo: 0x00
> thingo: 0x00
> thingo: 0x00
> thingo: 0x00
> thingo: 0x00
>
> hardware error - but i cannot tell what the error code means (yes i will
> check Core Spec 2.0 now :) )
>
> thingo: 0x04
> thingo: 0xff
> thingo: 0x1f
> thingo: 0xc3
> thingo: 0x02
> thingo: 0x00
> thingo: 0x0f
> thingo: 0x00
> thingo: 0x20
> thingo: 0xa7
>
> this packet looks like a CSR manufaturer specific response (0xff) what
> does that mean?
>
> even stranger is when run again and every subsequent time before a
> reboot (of bluecore) it works and gives back the correct amount of
> hosts found!!!
>
> Is it to do with some kind of baud error? Bluecore can adapt to
> different baud rates just by looking at the data sent over time - but i
> want to know what effect this - moreover what it mucks up.
you can use "hcidump -X -V -m 10" to have it decode CSR vendor commands
and events. It has support for decoding BCCMDs.
Regards
Marcel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-30 5:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-29 22:37 BCCMDs David Thornton
2008-12-29 23:00 ` BCCMDs David Thornton
2008-12-30 1:47 ` BCCMDs Marcel Holtmann
-- strict thread matches above, loose matches on Subject: below --
2008-12-30 5:15 bccmds David Thornton
2008-12-30 5:19 ` bccmds Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox