Hi,

I'm sorry, I missed your point. I thought you need console on usb2serial
device.

I'd suggest you to get console first just to make sure everything is ok,
then try with your application. If getty works and your application
doesn't you always can look into getty sources :)

My environment:

I'm using ATEN USB-Serial converter model UC-232A and
modified USB HUB Targus model PA050.

Here is what I have in dmesg when I connect the usb2serial device:
[  121.367797] USB cable connected
[  121.475891] hub 1-0:1.0: port 1 disabled by hub (EMI?), re-enabling...
[  121.482788] usb 1-1: USB disconnect, address 2
[  121.654632] usb 1-1: new full speed USB device using ohci and address 3
[  121.885620] hub 1-1:1.0: USB hub found
[  121.890502] hub 1-1:1.0: 4 ports detected
[  122.013061] usb 1-1: 92mA over 8mA budget!
[  122.017425] hub 1-0:1.0: 92mA over power budget!
[  122.235351] usb 1-1.1: new full speed USB device using ohci and address 4
[  122.334350] usb 1-1.1: device v0557 p2008 is not supported
[  122.362060] pl2303 1-1.1:1.0: PL-2303 converter detected
[  122.385772] usb 1-1.1: PL-2303 converter now attached to ttyUSB0

And device node has been also created by udev:
Nokia770-07:~# ls -l /dev/ttyUSB*
crw-rw----    1 root     dialout  188,   0 Jan  4 21:06 /dev/ttyUSB0

This is from /proc/bus/usb/devices:

T:  Bus=01 Lev=02 Prnt=03 Port=00 Cnt=01 Dev#=  4 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0557 ProdID=2008 Rev= 3.00
S:  Manufacturer=Prolific Technology Inc.
S:  Product=USB-Serial Controller
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=pl2303
E:  Ad=81(I) Atr=03(Int.) MxPS=  10 Ivl=1ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms


Good luck!

On Mon, 2006-02-20 at 00:54 +0000, ext [EMAIL PROTECTED] wrote:
> Ed,
> 
>   Many thanks for the reply -- I am using an IOGEAR GUC232A, which works fine 
> on my SuSe 9.3 dev machine.
> 
>   Just to make sure I flashed to the latest image 2005.51-13 -- thus 
> replacing my custom kernel.  No /dev/ttyUSB0, etc.
> 
>   I don't need a getty, just a serial device.  We hope to be able to talk to 
> the rs-232 port on a very specialized bit of test equipment using software 
> that already runs on a SuSe 9.3 laptop.  Our app builds fine under the 
> SDK_ARM, and is very generic -- only using bits of:
> 
> #include <termios.h>
> #include <stdio.h>
> #include <unistd.h>
> #include <fcntl.h>
> #include <sys/signal.h>
> #include <sys/types.h>
> 
>   Once I am able to talk to the device our hope is to add a GUI for display 
> of acquired spectra, calibration, etc.  It would be wonderful not to have to 
> lug a laptop about as is done now.
> 
>   As of now -- I am thinking it may be the hub -- still looking.
> 
>   Thanks,
> 
>   Mark
> 
> 
> >-----Original Message-----
> >From: Ed Bartosh [mailto:[EMAIL PROTECTED]
> >Sent: Sunday, February 19, 2006 04:52 PM
> >To: ext [EMAIL PROTECTED]
> >Cc: [email protected]
> >Subject: Re: [maemo-developers] Getting the pl2303 usb serial driver to work 
> >with /dev/ttyUSB0
> >
> >Hi,
> >
> >PL2303 driver is compiled into n770 kernel:
> >grep ^CONFIG_USB_SERIAL arch/arm/configs/n770_defconfig
> >CONFIG_USB_SERIAL=y
> >CONFIG_USB_SERIAL_CONSOLE=y
> >CONFIG_USB_SERIAL_PL2303=y
> > 
> >My pl2303-compatible usb-2-serial adapter works with n770 without any 
> >modifications.
> >Unfortunately I don't remember the model. I'll tell you tomorrow if it's 
> >needed.
> >
> >And you probably don't need to makedev devices. udev should take care of 
> >them.
> >inittab should also be modified to run getty on ttyUSB0 if usb2serial device 
> >is 
> >connected to n770 on boot stage. 
> >Look at /etc/init.d/ttyusb for the details. 
> >
> >On Sun, 2006-02-19 at 19:36, ext [EMAIL PROTECTED] wrote:
> >> Hello,
> >> 
> >> 
> >> I need to get usbserial working so that my application can communicate 
> >> with a bit of specialized hardware via rs-232 -- using a PL2303 USB to 
> >> serial adapter.
> >> 
> >> I've checked the kernel config and see the pl2303 driver is there, and 
> >> have rebuilt the kernel without the serial console (under the usbserial 
> >> config).
> >> 
> >> Flashed the kernel, and used flasher to enable USB host, etc.
> >> 
> >> MAKEDEV usb builds the device special files, /dev/ttyUSB0, etc.
> >> 
> >> However I cannot open the device -- "so such device" error.
> >> 
> >> Has anyone else done this ?
> >> 
> >> Any info, suggestions would be most welcome.
> >> 
> >> Thanks.
> >> 
> >> Mark
> >> 
> >> 
> >> 
> >> 
> >> _______________________________________________
> >> maemo-developers mailing list
> >> [email protected]
> >> https://maemo.org/mailman/listinfo/maemo-developers
> >-- 
> >Best regards,
> >Ed
> >_______________________________________________
> >maemo-developers mailing list
> >[email protected]
> >https://maemo.org/mailman/listinfo/maemo-developers
> >
> 
> 
-- 
Ed

_______________________________________________
maemo-developers mailing list
[email protected]
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to