[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100913091318.M67834@admin-gateway.ncra.tifr.res.in>
Date: Mon, 13 Sep 2010 14:47:45 +0530
From: "Raju Rameshwar Uprade" <rajsingh@...a.tifr.res.in>
To: Greg KH <gregkh@...e.de>
Cc: linux-kernel@...r.kernel.org, linux-usb@...r.kernel.org
Subject: Regarding USB-to-Serial device driver
> Good.
thanks for appreciation.
> Something wrote it to the driver, did you try it with "debug=1" on the
> modprobe line to see what the driver thinks is happening?
Ya I tried with debug=1 on the modprobe line.
> > f6e80c00 4108452201 C Bo:7:003:2 0 1 >
> > f6e80900 4108453203 C Ii:7:003:1 0:1 10 = a1200000 00000200 0000
same status bytes I am also getting.
One thing I would like to ask why it is coming on Ii (Isochronous endpoint)?
> This was some status bytes coming back, are you sure you got the line
> settings correct?
>
> Your example .c file showed no line settings being set, so you have no
> idea what baud rate you are sending at, or what the flow control is, or
> anything else like that. Please be sure to set that up properly to
> verify that you really are getting the data out to the device properly.
>
Line settings,baud rate, flow control are implemented in mcmdriver.c ( UART driver)
which is attached for your ref.
I am trying to implement functionality of mcmdriver.c in pl2303.c, so that using USB
port I can communicated with various MCM devices connected via RS-485 interface card.
On oscilloscope I have verified that the data is out properly to the device.
output of usbmon :
eebcd000 2366447340 S Co:7:005:0 s 21 22 0003 0000 0000 0
eebcd000 2366449228 C Co:7:005:0 0 0
ee9e1500 2366449269 S Bo:7:005:2 -115 6 = 02110000 0100
ee9e1500 2366450226 C Bo:7:005:2 0 6 >
eebcd700 2366455282 S Co:7:005:0 s 21 22 0000 0000 0000 0
eebcd700 2366456225 C Co:7:005:0 0 0
ef7ebc80 2366456274 S Co:7:005:0 s 21 22 0003 0000 0000 0
ef7ebc80 2366457225 C Co:7:005:0 0 0
ee9e1980 2366458228 C Ii:7:005:1 0:1 10 = a1200000 00000200 1000
ee9e1980 2366458247 S Ii:7:005:1 -115:1 10 <
ee9e1500 2366458358 S Bo:7:005:2 -115 1 = 09
ee9e1500 2366459225 C Bo:7:005:2 0 1 >
eebcdb80 2366459368 S Co:7:005:0 s 21 22 0000 0000 0000 0
ee9e1980 2366460227 C Ii:7:005:1 0:1 10 = a1200000 00000200 0000
ee9e1980 2366460252 S Ii:7:005:1 -115:1 10 <
eebcdb80 2366460256 C Co:7:005:0 0 0
eebcdb80 2366460327 S Co:7:005:0 s 21 22 0003 0000 0000 0
eebcdb80 2366461226 C Co:7:005:0 0 0
ee9e1500 2366461279 S Bo:7:005:2 -115 11 = 00010000 00000000 0000e4
ee9e1500 2366462223 C Bo:7:005:2 0 11 >
eebcdb80 2366472294 S Co:7:005:0 s 21 22 0000 0000 0000 0
eebcdb80 2366474225 C Co:7:005:0 0 0
output of usbmon tell that data going out properly, but it's going in chunks,Ideally It
should go out in one chunk.I think I have to take care of RTS line. UART drivers works
in that way,RTS is enabled for complete data out ,then it is disabled so that we can get
device response.
kindly tell me how and where I can write RTS line enable and disable code in pl2303.c,
so that it can work as mcmdriver.c.
Also today I cross checked usb-to-serial output to the serial port output which I am
getting on MSO. I have also attached output of both in .tif format.It shows that some
last bits are not going out properly thru USB-to-Serial Port.
Kindly help me.
Thanks,
Raj.
View attachment "mcmdriver.c" of type "text/x-csrc" (10674 bytes)
Download attachment "Serial_port_output.tif" of type "image/tiff" (41460 bytes)
Download attachment "USB-to-serial-port_output.tif" of type "image/tiff" (37910 bytes)
Powered by blists - more mailing lists