linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] Strange answer from HCI
@ 2004-03-25 18:49 zubiwat
  2004-03-25 23:47 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: zubiwat @ 2004-03-25 18:49 UTC (permalink / raw)
  To: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 506 bytes --]

Hi 
I'm programming a microchip to work with BT and when I send some bits I get in the answer sth like this: 04 10 01 FE.
If someone knows what it means I would be greatfull for some help.
How to set parameteres like pscan or read BD ADDR by sending bits to BT dongle. Does any one knows what bits are coresponding to what commends while setting parameteres of BT because I know bits for transmition from Specification.
Please help because I can't get through with it.

Regards

Maciej Zubilewicz

[-- Attachment #2: Type: text/html, Size: 1178 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-devel] Strange answer from HCI
  2004-03-25 18:49 [Bluez-devel] Strange answer from HCI zubiwat
@ 2004-03-25 23:47 ` Marcel Holtmann
  2004-03-26 11:43   ` Steven Singer
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2004-03-25 23:47 UTC (permalink / raw)
  To: zubiwat; +Cc: BlueZ Mailing List

Hi Maciej,

> I'm programming a microchip to work with BT and when I send some bits
> I get in the answer sth like this: 04 10 01 FE.
> If someone knows what it means I would be greatfull for some help.
> How to set parameteres like pscan or read BD ADDR by sending bits to
> BT dongle. Does any one knows what bits are coresponding to what
> commends while setting parameteres of BT because I know bits for
> transmition from Specification.

it is all in the Bluetooth HCI specification. You should really read and
understand it. Your bytes mean

	HCI event, hardware error, error code 0xfe

The error codes are vendor specific, so I don't know what 0xfe means.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-devel] Strange answer from HCI
  2004-03-25 23:47 ` Marcel Holtmann
@ 2004-03-26 11:43   ` Steven Singer
  0 siblings, 0 replies; 3+ messages in thread
From: Steven Singer @ 2004-03-26 11:43 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: zubiwat, BlueZ Mailing List

Marcel Holtmann wrote:
> Maciej Zubilewicz wrote:
>> I'm programming a microchip to work with BT and when I send some bits
>> I get in the answer sth like this: 04 10 01 FE.
>
> it is all in the Bluetooth HCI specification. You should really read and
> understand it. Your bytes mean
>
> 	HCI event, hardware error, error code 0xfe
>
> The error codes are vendor specific, so I don't know what 0xfe means.

I'm going to take a wild stab in the dark. On CSR devices, hardware
error code 0xfe is used only with the H4 (UART) host transport. It means
that the chip received a message from the host that it couldn't
understand. Typically, it means the message didn't start with 0x01, 0x02
or 0x03. The most common causes of this are a miscalculated (or
mis-encoded) length inside the previous PDU or failing to put the
appropriate H4 prefix on this PDU.

If you were unable to decode even a simple four byte message from the
chip then that indicates you're failing to understand even the basics of
how the protocol works. You need to reread the Bluetooth specifications
for the UART host transport and for the HCI. Until you understand those
you're going to get nowhere.

>> How to set parameteres like pscan or read BD ADDR by sending bits to
>> BT dongle. Does any one knows what bits are coresponding to what
>> commends while setting parameteres of BT because I know bits for
>> transmition from Specification.

This is all completely defined in the Bluetooth specification. The
part you need is only about 250 pages (in the 1.1 spec - you'll
probably get away with just 1.1 at the moment). The full spec is
available for download from https://www.bluetooth.org/spec/ and is
about 7 MB.

Are these really BlueZ questions? It looks to me like you're trying
to write your own host stack. I think you'd be better off finding
another forum.

	- Steven
-- 




**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-26 11:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-25 18:49 [Bluez-devel] Strange answer from HCI zubiwat
2004-03-25 23:47 ` Marcel Holtmann
2004-03-26 11:43   ` Steven Singer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).