Skip to contentSkip to conversation

understading bluetooth init

DISCUSSION Claudio Fiorini 2 participants 5 messages Dec 22, 2008 – Jan 5, 2009 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

hi,
is there any point of start to know what exactly happens when i plug a BT dongle in my usb port? I mean what code is sent to BT through USB?

thanks a lot

claudio

maintainer
#1 lore raw

Hi Claudio,

Quoted 2 lines

is there any point of start to know what exactly happens when i plug a BT dongle in my usb port? I mean what code is sent to BT through USB?

this is kinda generic broad questions that can't be answered here quickly by anybody. It would take some time to write this up. Why are you asking?

Regards

Marcel

#2 lore raw

Thanks for your answer.
I'm using an arduino board and a ps3 gamepad to move 3 servos for a small robotic arm. I would like to put a BT dongle to the arduino, the one that is used from a normal computer, without buy a bluetooth module that cost too much for now because my arm is just a prototype for something that i'll build in the few months.
Anyway to make it short, i don't need to make huge data transfer, but just some bytes, so i can skip many USB and BT features to do that?

I know something about bluez because is searched inside source code to create Rbluez, ruby c extension, but i tried to find out what exactly happen, in kernel space and user space, when i plug a usb dongle but, for me, is too much now.

Maybe to start this search you can tell me which file is have to investigate!

Thanks

claudio

Quoted 18 lines · Marcel Holtmann

Hi Claudio,

Quoted 2 lines

is there any point of start to know what exactly happens when i plug a BT dongle in my usb port? I mean what code is sent to BT through USB?

this is kinda generic broad questions that can't be answered here quickly by anybody. It would take some time to write this up. Why are you asking?

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#3 lore raw

Hi Claudio,

first things first, don't top-post on the mailing list. It is a proper open source mailing list that uses bottom posting and inline quoting.

Quoted 8 lines

I'm using an arduino board and a ps3 gamepad to move 3 servos for a small robotic arm. I would like to put a BT dongle to the arduino, the one that is used from a normal computer, without buy a bluetooth module that cost too much for now because my arm is just a prototype for something that i'll build in the few months.
Anyway to make it short, i don't need to make huge data transfer, but just some bytes, so i can skip many USB and BT features to do that?

Quoted 7 lines

I know something about bluez because is searched inside source code to create Rbluez, ruby c extension, but i tried to find out what exactly happen, in kernel space and user space, when i plug a usb dongle but, for me, is too much now.

Maybe to start this search you can tell me which file is have to investigate!

as I said before, there is no easy answer to such a question. You can grab one of my old presentation that I did around 2003, but even that might not help that much. It is a really complex system. Sorry, there is nothing I can really do in a quick answer. If you wanna look into the kernel code, look at net/bluetooth/ and include/net/bluetooth/. The actual drivers for the USB dongle is at drivers/bluetooth/btusb.c.

Regards

Marcel

#4 lore raw
Quoted 7 lines · Marcel Holtmann

You can
grab one of my old presentation that I did around 2003, but even that might not help that much. It is a really complex system. Sorry, there is
nothing I can really do in a quick answer. If you wanna look into the kernel code, look at net/bluetooth/ and include/net/bluetooth/. The actual drivers for the USB dongle is at drivers/bluetooth/btusb.c.

thanks for your answer.
last year i bought a book about linux kernel network internals, but i never had time to read, could it be useful to help me out?

thanks
claudio