Hi,
I want to connect a Serial Gadget to Linux Host.
I have configured the Slave to work as a Serial Gadget.
The dmesg at the Slave looks like this:
udc: USB reset done, gadget g_serial
gs_set_config: Gadget Serial configured, full speed BULK config
I have loaded cdc-acm driver using insmod.
When i connect usb cable to the host:
I get the following:
# dmesg
usbcore: registered new driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.23:USB Abstract Control Model
driver for USB mod
ems and ISDN adapters
usb 2-2: new full speed USB device using address 12
# cat /proc/bus/usb/devices
T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 12 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=ff(vend.) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0525 ProdID=a4a6 Rev= 2.07
S: Manufacturer=Linux 2.6.12-rc2-omap2 with omap_udc
S: Product=Gadget Serial
S: SerialNumber=0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
<--------- (Why ?)
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
# cat /proc/devices
Character devices:
1 mem
4 /dev/vc/0
4 tty
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
6 lp
7 vcs
10 misc
13 input
14 sound
21 sg
29 fb
36 netlink
116 alsa
128 ptm
136 pts
166 ttyACM
180 usb
Block devices:
1 ramdisk
2 fd
3 ide0
9 md
22 ide1
253 device-mapper
254 mdp
At Device Side:
cat < /dev/ttygserial
<cat blocks>
At Host Side:
[EMAIL PROTECTED] dev]# cat > /dev/input/ttyACM0
bash: /dev/input/ttyACM0: Invalid argument
[EMAIL PROTECTED] dev]#
I have tried ttyACM0 to ttyACM15
But i get the same message.
Why ?.
And in /proc/bus/usb/devices
Why the Driver is None
Now, I tried with usbserial.ko driver. if i specify vendor id it loads
; if i specify the product id (0xa4a6) it does not load saying
(usbserial: `0xa4a6' invalid for parameter `product')
If i dont specify that it loads fine.
I get dmesg:
usb 2-1: new full speed USB device using address 2
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
I want to use 'cat' command to write from one serial port and recieve
from another serial port.
But On Slave (Gadget) Side: the cat command sleeps. but on host side
the cat command says:
no such device
Why ?.
What is wrong with my setup ?.
Please Explain.
I tried with both cdc-acm driver and usbserial drivers. But the result
is same. it is not working why ?
Regards,
Ram
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel