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,