* [Bluez-users] HCI socket listen
@ 2007-06-16 13:21 Robert Schmidt
2007-06-17 7:20 ` Marcel Holtmann
0 siblings, 1 reply; 3+ messages in thread
From: Robert Schmidt @ 2007-06-16 13:21 UTC (permalink / raw)
To: Bluez User
[-- Attachment #1.1: Type: text/plain, Size: 504 bytes --]
Hi,
Can a HCI socket listen for connections like l2cap and rfcomm ?? In my case it throws followiing warning and does not listen:
GLib-WARNING **: giounix.c:400Error while getting flags for FD: Bad file descriptor (9)
In my program I do the following:
I Open and Bind the HCI socket (using hci_open_dev)and listen for connections.
thanks
robert.
---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games.
[-- Attachment #1.2: Type: text/html, Size: 603 bytes --]
[-- Attachment #2: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Bluez-users] HCI socket listen
2007-06-16 13:21 [Bluez-users] HCI socket listen Robert Schmidt
@ 2007-06-17 7:20 ` Marcel Holtmann
2007-06-17 13:33 ` Robert Schmidt
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2007-06-17 7:20 UTC (permalink / raw)
To: BlueZ users
Hi Robert,
> Can a HCI socket listen for connections like l2cap and rfcomm ?? In my
> case it throws followiing warning and does not listen:
>
> GLib-WARNING **: giounix.c:400Error while getting flags for FD: Bad
> file descriptor (9)
>
> In my program I do the following:
>
> I Open and Bind the HCI socket (using hci_open_dev)and listen for
> connections.
the HCI socket is not working this way. Use L2CAP if you wanna receive
incoming connections and data.
Regards
Marcel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bluez-users] HCI socket listen
2007-06-17 7:20 ` Marcel Holtmann
@ 2007-06-17 13:33 ` Robert Schmidt
0 siblings, 0 replies; 3+ messages in thread
From: Robert Schmidt @ 2007-06-17 13:33 UTC (permalink / raw)
To: BlueZ users
[-- Attachment #1.1: Type: text/plain, Size: 2261 bytes --]
Hi Marcel,
Thanks for the reply. I have two questions for you :
1) How do I send ACL data between two devices using HCI socket ?
2) I tried sending a stream of bits using SCO connection. The program is similar to scotest. Eventhough, sending and receiving works but the data received looks completely corrupted and different from data sent.
received data is like
eg : \x03*\x03*\x03*\x03*\x03*\x03*\x03*�
hcidump:
> SCO data: handle 44 dlen 48
> SCO data: handle 44 dlen 48
> SCO data: handle 44 dlen 48
> SCO data: handle 44 dlen 48
> SCO data: handle 44 dlen 48
> SCO data: handle 44 dlen 48
> SCO data: handle 44 dlen 48
> SCO data: handle 44 dlen 48
> SCO data: handle 44 dlen 48
> SCO data: handle 44 dlen 48
> SCO data: handle 44 dlen 48
> SCO data: handle 44 dlen 48
> SCO data: handle 44 dlen 48
> SCO data: handle 44 dlen 48
> HCI Event: Disconn Complete (0x05) plen 4
Is there some data conversions to be done before sending or receiving data?
Note: I know that the best way to transfer data between devices is using l2cap but these question are part of my experiment to test different connections. So,please bear with me.
best regards,
robert.
Marcel Holtmann <marcel@holtmann.org> wrote: Hi Robert,
> Can a HCI socket listen for connections like l2cap and rfcomm ?? In my
> case it throws followiing warning and does not listen:
>
> GLib-WARNING **: giounix.c:400Error while getting flags for FD: Bad
> file descriptor (9)
>
> In my program I do the following:
>
> I Open and Bind the HCI socket (using hci_open_dev)and listen for
> connections.
the HCI socket is not working this way. Use L2CAP if you wanna receive
incoming connections and data.
Regards
Marcel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
---------------------------------
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.
[-- Attachment #1.2: Type: text/html, Size: 2808 bytes --]
[-- Attachment #2: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-06-17 13:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-16 13:21 [Bluez-users] HCI socket listen Robert Schmidt
2007-06-17 7:20 ` Marcel Holtmann
2007-06-17 13:33 ` Robert Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox