* [Bluez-devel] BT Initialization
@ 2004-03-27 18:38 zubiwat
2004-03-27 18:44 ` Marcel Holtmann
0 siblings, 1 reply; 3+ messages in thread
From: zubiwat @ 2004-03-27 18:38 UTC (permalink / raw)
To: devel Bluetooth
[-- Attachment #1: Type: text/plain, Size: 579 bytes --]
Hi
I'm setting CSR BT device using code from blueZ hciattach.c
and after this when I'm trying to send some commands I get only this:
04 FF 13 C2 01 00 09 00 02 00 02 68 00 00 BF 0E 00 00 00 00 00 00
I get this even when I'm not sending anything. I looked for this event into specification and couldn't find it.
I think that I have to send some command to set BT up and then it will listen to my other commands like reading BT ADDR.
If someone could send me a code how to set up BT device and read BT ADDR for example I would be greatfull.
Regards
Maciej Zubilewicz
[-- Attachment #2: Type: text/html, Size: 1340 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bluez-devel] BT Initialization
2004-03-27 18:38 [Bluez-devel] BT Initialization zubiwat
@ 2004-03-27 18:44 ` Marcel Holtmann
[not found] ` <00a401c41436$58423520$fcca010a@lysydziadek>
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2004-03-27 18:44 UTC (permalink / raw)
To: zubiwat; +Cc: devel Bluetooth
Hi Maciej,
> I'm setting CSR BT device using code from blueZ hciattach.c
> and after this when I'm trying to send some commands I get only this:
> 04 FF 13 C2 01 00 09 00 02 00 02 68 00 00 BF 0E 00 00 00 00 00 00
> I get this even when I'm not sending anything. I looked for this event
> into specification and couldn't find it.
> I think that I have to send some command to set BT up and then it will
> listen to my other commands like reading BT ADDR.
> If someone could send me a code how to set up BT device and read
> BT ADDR for example I would be greatfull.
this is a vendor specific event and if you had looked into the BlueZ
source you would have seen that we send as first command the read local
supported features HCI command. Actually my question is what kind of
code do you wanna to see, because the complete BlueZ stack is open
source.
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] BT Initialization
[not found] ` <00a401c41436$58423520$fcca010a@lysydziadek>
@ 2004-03-27 20:20 ` Marcel Holtmann
0 siblings, 0 replies; 3+ messages in thread
From: Marcel Holtmann @ 2004-03-27 20:20 UTC (permalink / raw)
To: zubiwat; +Cc: BlueZ Mailing List
Hi Maciej,
> I wanna code which isn't useing system specific commands like ioctl() or
> other but simple sending bytes.
if you don't like the BlueZ code, don't use it. There are many Bluetooth
stacks on the market and you also have the freedom to write your own
one. But how do you expect help from us?
> The code from blueZ is fine and the answers are the same (almost) like those
> commented out examples. But after this i get only this vendor specific event
> and can't get answers to my commands like reading BT ADDR and other.
> If you know what is wrong please help. I have to use bits as a commands
> because I'm using only UART between my microchip and BT CSR chip. I red
> Bluetooth specification v1.1 , v1.2 and UART specification as you told me
> earlier but I alweys get the same answer and can't get through. When I read
> those bytes and then try to send wrong command like 0x00 0x00 0x09 it
> answers with a error event 04 10 01 fe and this is the only right answer I
> can get.
This is the general init code from BlueZ:
< 01 03 10 00
> 04 0E 0C 01 03 10 00 2F BE 05 00 00 00 00 00
< 01 05 10 00
> 04 0E 0B 01 05 10 00 A0 02 00 06 00 00 00
I got it by running BlueZ and using hcidump in raw mode. Decode it and
learn from it.
> I looked for other forums but I couldn't find any. If you can't answer to my
> questions and know proper forum please tell me because this is my work for
> master's degree and it's important for me.
Actually I can't do your research for your master degree.
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
end of thread, other threads:[~2004-03-27 20:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-27 18:38 [Bluez-devel] BT Initialization zubiwat
2004-03-27 18:44 ` Marcel Holtmann
[not found] ` <00a401c41436$58423520$fcca010a@lysydziadek>
2004-03-27 20:20 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox