* [Bluez-users] poll() problem ...
@ 2007-01-28 20:28 Imran Siddique
2007-01-28 21:47 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Imran Siddique @ 2007-01-28 20:28 UTC (permalink / raw)
To: bluez-users
[-- Attachment #1.1: Type: text/plain, Size: 714 bytes --]
HI,
I am making a assignment 'file transfer using Bluetooth on hci layer'. I take code from hci.c. The problem is sometime my program works perfectly and transfer file successful. But most of the time it failed.
Sender sends the Handshake packet and on Receiving side it receives. Receiver sends HACK to Sender but didn't receive anything. Means
n = poll(&p, 1, timeout)
n goes to 0. and the error is ETIMEDOUT.
But the same program works fine sometime.
I am getting sick from this problem.
I also try with different and same timeout values. but it doesn't effect in anyway.
Please help me.
Regards,
---------------------------------
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
[-- Attachment #1.2: Type: text/html, Size: 829 bytes --]
[-- Attachment #2: Type: text/plain, Size: 347 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- 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] 2+ messages in thread
* Re: [Bluez-users] poll() problem ...
2007-01-28 20:28 [Bluez-users] poll() problem Imran Siddique
@ 2007-01-28 21:47 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2007-01-28 21:47 UTC (permalink / raw)
To: BlueZ users
Hi Imran,
> I am making a assignment 'file transfer using Bluetooth on hci
> layer'. I take code from hci.c. The problem is sometime my program
> works perfectly and transfer file successful. But most of the time it
> failed.
> Sender sends the Handshake packet and on Receiving side it receives.
> Receiver sends HACK to Sender but didn't receive anything. Means
>
> n = poll(&p, 1, timeout)
>
> n goes to 0. and the error is ETIMEDOUT.
> But the same program works fine sometime.
> I am getting sick from this problem.
> I also try with different and same timeout values. but it doesn't
> effect in anyway.
actually it is a bad idea trying to use ACL links directly to transfer
files. The ACL packets are only meant to be used by L2CAP.
However you have to show us your complete code. Otherwise we can't tell
you anything.
Regards
Marcel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-28 21:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-28 20:28 [Bluez-users] poll() problem Imran Siddique
2007-01-28 21:47 ` Marcel Holtmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.