[maemo-developers] [maemo-developers] Getting the pl2303 usb serial driver to work with /dev/ttyUSB0
From: markc at catsandwich.com markc at catsandwich.comDate: Wed Feb 22 04:29:19 EET 2006
- Previous message: [maemo-developers] Using network connection within emulator
- Next message: [maemo-developers] Tips for making an application installer package
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ed, The problem was the belkin hub, using an iogear all works. Oddly I cannot find a problem with the belkin in "normal" use -- all a ports work under suse, as does the b port. This makes me worry about the cable hack, could there be a floating ground between the a && b ports in some hubs, etc ? Anyway I can open /dev/ttyUSB0 and open, tcsetattr, install signal handlers, etc. Thanks! Mark >-----Original Message----- >From: Ed Bartosh [mailto:Eduard.Bartosh at nokia.com] >Sent: Monday, February 20, 2006 04:49 AM >To: ext markc at catsandwich.com >Cc: ext maemo-developers-bounces at maemo.org, maemo-developers at maemo.org >Subject: Re: [maemo-developers] Getting the pl2303 usb serial driver to work with /dev/ttyUSB0 > >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 markc at catsandwich.com 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:Eduard.Bartosh at nokia.com] >> >Sent: Sunday, February 19, 2006 04:52 PM >> >To: ext maemo-developers-bounces at maemo.org >> >Cc: maemo-developers at maemo.org >> >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 maemo-developers-bounces at maemo.org 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 >> >> maemo-developers at maemo.org >> >> https://maemo.org/mailman/listinfo/maemo-developers >> >-- >> >Best regards, >> >Ed >> >_______________________________________________ >> >maemo-developers mailing list >> >maemo-developers at maemo.org >> >https://maemo.org/mailman/listinfo/maemo-developers >> > >> >> >-- >Ed > >
- Previous message: [maemo-developers] Using network connection within emulator
- Next message: [maemo-developers] Tips for making an application installer package
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]