All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] Question on using HCIDUMP to interpret data monitored from an uart
Date: Thu, 20 Apr 2006 20:03:49 +0200	[thread overview]
Message-ID: <1145556229.17818.10.camel@localhost> (raw)
In-Reply-To: <004d01c66490$21f60f80$b000a8c0@PCD040616>

Hi Han,

> I have a question about using hcidump to translate serial logged HCI
> communication to readable form.
>  
> The situation is this, I have 8 embedded devices of which 1 is the
> master and the other 7 are slave devices in a piconet and they
> communicate to each other via RFCOMM. The master sets up a connection
> to all 7 slaves in the beginning of the communication process and then
> communicates with all 7. But there is a problem that the communication
> stops after some time and we want to check what is going on.
> The embedded devices are Linux based systems with a CSR bluecore, the
> main processor communicates with the Bluecore via a serial link
> running the BCSP protocol. The Bluecore is running the lower layers of
> the stack and talking HCI to the host processor which is running
> BlueZ.
>  
> What we have now to monitor communications is one device that has the
> serial connection between Bluecore and Linux host processor routed to
> 2 external serial ports for monitoring. So it is possible to capture
> all communications between the Bluecore and the Linux host processor.
> We already have software that strips the BCSP protocol and saves the
> raw data in the format of a hcidump save file, but there is some extra
> data in the packets stored in the file that we don't know where it
> comes from, but is required by hcidump to translate the data into
> readable form. We have already found out about the time-stamp and
> direction fields, but there is other data that we suspect is state
> information added by the BlueZ stack and we don't know what that is.
>  
> Is it possible to somehow feed the data from the serial port to
> hcidump and have hcidump translate that data to readable form or is
> there some extra data reaquired that is generated by the BlueZ stack ?

this is possible and you can use the hcidump native format or the
BTSnoop format. Look at the hcidump source code and you will find the
header and format information right there. In general it is a H4 stream
with additional timestamp and direction information.
 
> BTW. it is not possible to run hcidump on the embedded device, because
> there is no way to create files on it and the CPU is to slow to handle
> the extra load (probably).

You can make hcidump to send the stream over TCP and then decode or
store it on another machine.

Regards

Marcel




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2006-04-20 18:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-20 15:36 [Bluez-devel] Question on using HCIDUMP to interpret data monitored from an uart Han Hoekstra
2006-04-20 18:03 ` Marcel Holtmann [this message]
2006-04-23 18:12 ` Martin Karger

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=1145556229.17818.10.camel@localhost \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.