Skip to contentSkip to conversation

BT Initialization

Bluez-devel zubiwat 2 participants 3 messages Mar 27, 2004 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore

zubiwat

author
#0 lore raw

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

maintainer
#1 lore raw

Hi Maciej,

Quoted 9 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

A message that is not in the archive (sent off-list or not yet received): 00a401c41436$58423520$fcca010a@lysydziadek

maintainer
#3 lore raw

Hi Maciej,

Quoted 2 lines

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?

Quoted 10 lines

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.

Quoted 3 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel