hello greg,

we are trying provide tty interface for the bluetooth driver. we have
written a tty line discipline for that. while doing the testing we have one
bluetooth device connected to the PC via UART and another through USB.

i have two doubts now.

1. while sending the packets from uart, packet type is sent first and then
the actual data. in usb we are receiving the packet and in callback(int and
read bulk) we are putting the packet type at the beginning and calling the
receive_buf of the line discipline. since this is the serial tty interface i
think there are two packet type fields when data comes to the line
discipline. one that is sent from the uart side and another added in the
callback. how is this handled/should be handled.

2. while sending data from USB, the packet type is checked in the
bluetooth_write based on the packet type the rest of the data is sent using
appropriate urbs. now i have noticed that we are not sending the packet type
along with the data. when an uart connected guy receives the packet on what
basis is he going to decide what type of packet he has received. because we
have not sent the packet type at all.


thanks in advance,

regards,
ravi kumar
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to