USB-to-serial adapter configuration
Hi all: How does one configure settings for USB-to-serial adapter in FreeBSD ? The one i have purchased is http://www.usbgear.com/computer_cable_details.cfm?sku=CHEAP-SERIALcats=199catid=482%2C1303%2C199%2C461%2C106%2C1009%2C601 On the Gentoo box, 'lsusb' displays it as: Bus 002 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port i have to access a headless AMD64X2 box running FreeBSD 7.2-STABLE, from a FreeBSD 8.0 laptop. So far, i've used 'cu' and '/dev/cu0a', but thats because both the systems had a serial port interface. The key info i'm looking for is: . what is the driver to load . what is the device entry to look for . is 'cu' good enough or i need to install some other tool thanks Saifi. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: USB-to-serial adapter configuration
On Mon, May 18, 2009 at 04:07:09PM +, Saifi Khan typed: Hi all: How does one configure settings for USB-to-serial adapter in FreeBSD ? The one i have purchased is http://www.usbgear.com/computer_cable_details.cfm?sku=CHEAP-SERIALcats=199catid=482%2C1303%2C199%2C461%2C106%2C1009%2C601 On the Gentoo box, 'lsusb' displays it as: Bus 002 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port Your adapter should be recognised by the uplcom driver. put uplcom_load=YES in loader.conf or load manually. Check dmesg for the device name. Also, I think cu is good enough ;) Ruben i have to access a headless AMD64X2 box running FreeBSD 7.2-STABLE, from a FreeBSD 8.0 laptop. So far, i've used 'cu' and '/dev/cu0a', but thats because both the systems had a serial port interface. The key info i'm looking for is: . what is the driver to load . what is the device entry to look for . is 'cu' good enough or i need to install some other tool thanks Saifi. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: USB-to-serial adapter configuration
On Mon, 18 May 2009, Ruben de Groot wrote: On Mon, May 18, 2009 at 04:07:09PM +, Saifi Khan typed: Hi all: How does one configure settings for USB-to-serial adapter in FreeBSD ? The one i have purchased is http://www.usbgear.com/computer_cable_details.cfm?sku=CHEAP-SERIALcats=199catid=482%2C1303%2C199%2C461%2C106%2C1009%2C601 On the Gentoo box, 'lsusb' displays it as: Bus 002 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port Your adapter should be recognised by the uplcom driver. put uplcom_load=YES in loader.conf or load manually. Check dmesg for the device name. Also, I think cu is good enough ;) Ruben This is the error shown in 'dmesg' log ugen0.2: Prolific Technology at usbus0 uplcom0: Prolific Technology PL2303 Serial (ATEN/IOGEAR UC232A), class 0/0, rev 1.10/3.00, addr 2 on usbus0 uplcom0: init failed! device_attach: uplcom0 attach returned 6 uplcom0: Prolific Technology PL2303 Serial (ATEN/IOGEAR UC232A), class 0/0, rev 1.10/3.00, addr 2 on usbus0 uplcom0: init failed! device_attach: uplcom0 attach returned 6 Scenarios: 1. kldstat -v | grep uplcom shows 303 uhub/uplcom 2. uplcom_load=YES in /boot/loader.conf with a reboot In both the scenarios, 'dmesg' shows the same error. On re-attaching the device, the following error is shown. usb2_alloc_device:1574: set address 2 failed (USB_ERR_STALLED, ignored) usb2_alloc_device:1612: getting device descriptor at addr 2 failed, USB_ERR_STALLED! ugen0.2: at usbus0 (disconnected) uhub_reattach_port:417: could not allocate new device! The output from 'usbconfig dump_info' shows ugen3.1: UHCI root HUB Intel at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: EHCI root HUB Intel at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.1: UHCI root HUB Intel at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: UHCI root HUB Intel at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen2.1: UHCI root HUB Intel at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON The 'dmesg' extract of USB is as follows: usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 uhub0: Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1 on usbus3 ugen4.1: Intel at usbus4 uhub1: Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1 on usbus4 ugen0.1: Intel at usbus0 uhub2: Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1 on usbus0 ugen1.1: Intel at usbus1 uhub3: Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1 on usbus1 ugen2.1: Intel at usbus2 uhub4: Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1 on usbus2 Root mount waiting for: usbus4 usbus3 usbus2 usbus1 usbus0 uhub0: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered Root mount waiting for: usbus4 Root mount waiting for: usbus4 Root mount waiting for: usbus4 uhub1: 8 ports with 8 removable, self powered Here is the system information. FreeBSD bsd 8.0-CURRENT-200905 FreeBSD 8.0-CURRENT-200905 #0: Mon May 4 23:25:09 UTC 2009 r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 Any suggestions on how i can get uplcom drive to work ? thanks Saifi. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: USB-to-serial adapter configuration
On Monday 18 May 2009, Saifi Khan wrote: On Mon, 18 May 2009, Ruben de Groot wrote: On Mon, May 18, 2009 at 04:07:09PM +, Saifi Khan typed: Hi all: How does one configure settings for USB-to-serial adapter in FreeBSD ? The one i have purchased is http://www.usbgear.com/computer_cable_details.cfm?sku=CHEAP-SERIALcats =199catid=482%2C1303%2C199%2C461%2C106%2C1009%2C601 On the Gentoo box, 'lsusb' displays it as: Bus 002 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port Your adapter should be recognised by the uplcom driver. put uplcom_load=YES in loader.conf or load manually. Check dmesg for the device name. Also, I think cu is good enough ;) Ruben This is the error shown in 'dmesg' log ugen0.2: Prolific Technology at usbus0 uplcom0: Prolific Technology PL2303 Serial (ATEN/IOGEAR UC232A), class 0/0, rev 1.10/3.00, addr 2 on usbus0 uplcom0: init failed! device_attach: uplcom0 attach returned 6 uplcom0: Prolific Technology PL2303 Serial (ATEN/IOGEAR UC232A), class 0/0, rev 1.10/3.00, addr 2 on usbus0 uplcom0: init failed! device_attach: uplcom0 attach returned 6 Scenarios: 1. kldstat -v | grep uplcom shows 303 uhub/uplcom 2. uplcom_load=YES in /boot/loader.conf with a reboot In both the scenarios, 'dmesg' shows the same error. On re-attaching the device, the following error is shown. Hi, usb2_alloc_device:1574: set address 2 failed (USB_ERR_STALLED, ignored) usb2_alloc_device:1612: getting device descriptor at addr 2 failed, USB_ERR_STALLED! ugen0.2: at usbus0 (disconnected) uhub_reattach_port:417: could not allocate new device! Looks like the firmware crashed if it does not re-enumrate. Any suggestions on how i can get uplcom drive to work ? Try looking up the USB-ID line for your device and modify the uplcom flags (TYPE_XXX) for your device so that it does not require init for example. /* TrendNet TU-S9 */ {USB_UPL(USB_VENDOR_PROLIFIC, USB_PRODUCT_PROLIFIC_PL2303, 0x0400, 0x, TYPE_PL2303X)}, /* ST Lab USB-SERIAL-4 */ {USB_UPL(USB_VENDOR_PROLIFIC, USB_PRODUCT_PROLIFIC_PL2303, 0x0300, 0x03FF, TYPE_PL2303X)}, /* IOGEAR/ATEN UC-232A (also ST Lab USB-SERIAL-1) */ {USB_UPL(USB_VENDOR_PROLIFIC, USB_PRODUCT_PROLIFIC_PL2303, 0, 0x02FF, TYPE_PL2303)}, Use: usbconfig dump_device_desc To get the version number for your chip (See 0, 0x02FF above) Make sure that the TYPE flag is correct. Also see: /sys/dev/usb/serial/uplcom.c Then: make -C /sys/modules/usb/uplcom clean all install kldunload uplcom kldload uplcom --HPS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org