Skip to contentSkip to conversation

Raw Sockets

Bluez-devel Nuno Gomes 2 participants 3 messages May 25, 2005 Bluetooth drivers

lore
Share & tools
lore

Nuno Gomes

author
#0 lore raw

Hello,
I'm writting from Portugal and I'm developing an application with bluez. This application's objective is to develop an program to receive data from several bluetooth devices and create a Data Base with that information. I need to use Raw Sockets, so I can create specific headers for the bluetooth packets.
=20
Rigth now I'm having some problems using this raw sockets... So, I have some questions...
1 - How can I capture bluetooth packets using Raw Sockets?
I'm declaring sockets like this: socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO=
_HCI)
Should it be diferent???
2 - What kind of structure do I need to use to manage the packets (in sockets tcp/ip we use specific structures to receive/send packets with the libpcap)
3 - Can I use read and write structures to send and receive the packets?? =20
Thats all for now...=20
Thank You all for the help...

--=20
Nuno Miguel Gomes
Has just sent you an E-mail!!!

-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate online with coworkers and clients while avoiding the high cost of travel and communications. There is no equipment to buy and you can meet as often as you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Nuno,

Quoted 6 lines

I'm writting from Portugal and I'm developing an application with bluez. This application's objective is to develop an program to receive data from several bluetooth devices and create a Data Base with that information. I need to use Raw Sockets, so I can create specific headers for the bluetooth packets.

Quoted 9 lines

Rigth now I'm having some problems using this raw sockets... So, I have some questions...
1 - How can I capture bluetooth packets using Raw Sockets?
I'm declaring sockets like this: socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI) Should it be diferent???
2 - What kind of structure do I need to use to manage the packets (in sockets tcp/ip we use specific structures to receive/send packets with the libpcap)
3 - Can I use read and write structures to send and receive the packets??

why do you resend your question? I already answered your first one.

Regards

Marcel

-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate online with coworkers and clients while avoiding the high cost of travel and communications. There is no equipment to buy and you can meet as often as you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

author
#2 lore raw

Sorry;
I thought the original messenge didn't reach you... Thank you for the help.
And sorry once more.

--=20
Nuno Miguel Gomes
Has just sent you an E-mail!!!

-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate online with coworkers and clients while avoiding the high cost of travel and communications. There is no equipment to buy and you can meet as often as you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel