Hi:
I keep on trying to get AIRcable USB Bluetooth Dondgles work under 
Linux. I have made some improvements:
-> The USB Serial Generic can read PERFECTLY well from the device.
-> The USB Serial Generic can write with problems on the device.
AIRcable staff has been very friendly by telling me that they implement 
the USB protocol by software, they hardware uses the protocol ACM/CDC. 
But I require to split off 4 bytes on every USB block transfer.
I have started to to implement my own Device Driver based on Usb Serial 
one, but i can figure out one thing. AIRcable devices has two different 
interfaces (see the proc/bus/usb/devices output next), the in/out 
interface is interface number 1, when using the standard Generic driver 
it attaches by himself correctly to the interface number one, but when i 
do it with my driver it attaches to both interfaces and it is driving my 
  crazy.

With none driver:
T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 17 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=02(comm.) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=16ca ProdID=1502 Rev=10.77
S:  Manufacturer=Wireless Cables Inc
S:  Product=AIRcable USB
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr= 60mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=1ms
I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

With Generic driver:
T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 17 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=02(comm.) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=16ca ProdID=1502 Rev=10.77
S:  Manufacturer=Wireless Cables Inc
S:  Product=AIRcable USB
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr= 60mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=1ms
I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 
Driver=usbserial_generic
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

With my driver
T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 17 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=02(comm.) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=16ca ProdID=1502 Rev=10.77
S:  Manufacturer=Wireless Cables Inc
S:  Product=AIRcable USB
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr= 60mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=AIRcable USB
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=1ms
I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=AIRcable USB
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

My idea is to use Generic driver as much as i can, but reimplement the 
Write methods to make them fit this devices, i do not want to reinvent 
the wheel. To be honest i'm not perfectly familiar with USB lenguaje, so 
I'm sure that the error must be in my code. If anyone could help me it 
could be perfect. I don't want the solution to all the driver, i want to 
do something by my own, i want to learn :=).
Thanks a lot,
Manuel Naranjo




Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to