Re: moxa uport 1110 RS232 USB to serial support?

2016-11-18 Thread Marko Cupać
On Fri, 18 Nov 2016 14:28:58 +0100
Arrigo Marchiori via freebsd-stable <freebsd-stable@freebsd.org> wrote:

> Hello,
> 
> I am resending this reply message to the freebsd-usb@ and
> freebsd-stable@ mailing list, because it bounced back to me after one
> day.
>
> I am afraid that the short answer is «no».
> 
> For what I could find on-line:
> 
>  - the Moxa UPort 1110 driver for Linux is the same as the Texas
>Instruments TUSB3410
>(source:
> https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/usb/serial?id=b923c6c62981cec5e2d2187fd700c2fc4386fc45)
> 
>  - the port comms/uticom was a driver for the TUSB3410, but it was
>deprecated, and removed three years ago.
>FreeBSD forum thread: https://forums.freebsd.org/threads/18151/
>Port information: http://www.freshports.org/comms/uticom
>SourceForge page: https://sourceforge.net/projects/uticom/
> 
> I hope this helps.

Arrigo,

it does help, thank you. I'm not subscribed to freebsd-usb, but I'm
gonna check archives to see if there are any follow-ups.

I am not sure, but I think I used this adapter on OpenBSD without the
need to install additional packages. Moxa Uport 1110 is also in
OpenBSD's usbdevs.h:
http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/dev/usb/usbdevs.h?rev=1.683=text/plain

Perhaps someone with much more knowledge than me would be able to port
this to FreeBSD?
-- 
Before enlightenment - chop wood, draw water.
After  enlightenment - chop wood, draw water.

Marko Cupać
https://www.mimar.rs/
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: moxa uport 1110 RS232 USB to serial support?

2016-11-18 Thread Arrigo Marchiori via freebsd-stable
Hello,

I am resending this reply message to the freebsd-usb@ and
freebsd-stable@ mailing list, because it bounced back to me after one
day.

On Thu, Nov 17, 2016 at 10:08:44AM +0100, Marko Cupać wrote:

> Hi,
> 
> is it possible to use Moxa Uport 1110 USB to serial adapter on FreeBSD
> 11.0?
> http://www.moxa.com/product/uport_1110.htm

I am afraid that the short answer is «no».

For what I could find on-line:

 - the Moxa UPort 1110 driver for Linux is the same as the Texas
   Instruments TUSB3410
   (source: 
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/usb/serial?id=b923c6c62981cec5e2d2187fd700c2fc4386fc45)

 - the port comms/uticom was a driver for the TUSB3410, but it was
   deprecated, and removed three years ago.
   FreeBSD forum thread: https://forums.freebsd.org/threads/18151/
   Port information: http://www.freshports.org/comms/uticom
   SourceForge page: https://sourceforge.net/projects/uticom/

I hope this helps.
-- 
rigo

http://rigo.altervista.org
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

moxa uport 1110 RS232 USB to serial support?

2016-11-17 Thread Marko Cupać
Hi,

is it possible to use Moxa Uport 1110 USB to serial adapter on FreeBSD
11.0?
http://www.moxa.com/product/uport_1110.htm

Upon plugging in all I get in dmesg is:
ugen0.4:  at usbus0

No cuaUX devices appear in /dev.

Thank you in advance,
-- 
Before enlightenment - chop wood, draw water.
After  enlightenment - chop wood, draw water.

Marko Cupać
https://www.mimar.rs/
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Cypress Semiconductor USB to serial

2008-09-16 Thread Куцевол Максим
My UPS has a usb interface with USB-to-Serial chip.
But ucycom driver doesn't recognize it.
uhid driver does, but it doesn't help me, I need a virtual com port.
(output below is without uhid loaded)
What can I do to get it working?

udi = '/org/freedesktop/Hal/devices/usb_device_665_5161_noserial'
  freebsd.device_file = '/dev/ugen1'  (string)
  freebsd.driver = 'ugen'  (string)
  freebsd.unit = 1  (0x1)  (int)
  info.bus = 'usb_device'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_0_0_noserial'
(string)
  info.product = 'USB to Serial'  (string)
  info.subsystem = 'usb_device'  (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_665_5161_noserial'
(string)
  info.vendor = 'Cypress Semiconductor'  (string)
  usb_device.bus_number = 0  (0x0)  (int)
  usb_device.can_wake_up = false  (bool)
  usb_device.configuration_value = 1  (0x1)  (int)
  usb_device.device_class = 0  (0x0)  (int)
  usb_device.device_protocol = 0  (0x0)  (int)
  usb_device.device_revision_bcd = 2  (0x2)  (int)
  usb_device.device_subclass = 0  (0x0)  (int)
  usb_device.is_self_powered = false  (bool)
  usb_device.max_power = 100  (0x64)  (int)
  usb_device.num_configurations = 1  (0x1)  (int)
  usb_device.num_interfaces = 1  (0x1)  (int)
  usb_device.num_ports = 0  (0x0)  (int)
  usb_device.port_number = 3  (0x3)  (int)
  usb_device.product = 'USB to Serial'  (string)
  usb_device.product_id = 20833  (0x5161)  (int)
  usb_device.speed_bcd = 336  (0x150)  (int)
  usb_device.vendor = 'Cypress Semiconductor'  (string)
  usb_device.vendor_id = 1637  (0x665)  (int)
  usb_device.version_bcd = 272  (0x110)  (int)

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cypress Semiconductor USB to serial

2008-09-16 Thread Steve Franks
On Tue, Sep 16, 2008 at 12:32 PM, Куцевол Максим [EMAIL PROTECTED] wrote:
 My UPS has a usb interface with USB-to-Serial chip.
 But ucycom driver doesn't recognize it.
 uhid driver does, but it doesn't help me, I need a virtual com port.
 (output below is without uhid loaded)
 What can I do to get it working?

 udi = '/org/freedesktop/Hal/devices/usb_device_665_5161_noserial'
  freebsd.device_file = '/dev/ugen1'  (string)
  freebsd.driver = 'ugen'  (string)
  freebsd.unit = 1  (0x1)  (int)
  info.bus = 'usb_device'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_0_0_noserial'
 (string)
  info.product = 'USB to Serial'  (string)
  info.subsystem = 'usb_device'  (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_665_5161_noserial'
 (string)
  info.vendor = 'Cypress Semiconductor'  (string)
  usb_device.bus_number = 0  (0x0)  (int)
  usb_device.can_wake_up = false  (bool)
  usb_device.configuration_value = 1  (0x1)  (int)
  usb_device.device_class = 0  (0x0)  (int)
  usb_device.device_protocol = 0  (0x0)  (int)
  usb_device.device_revision_bcd = 2  (0x2)  (int)
  usb_device.device_subclass = 0  (0x0)  (int)
  usb_device.is_self_powered = false  (bool)
  usb_device.max_power = 100  (0x64)  (int)
  usb_device.num_configurations = 1  (0x1)  (int)
  usb_device.num_interfaces = 1  (0x1)  (int)
  usb_device.num_ports = 0  (0x0)  (int)
  usb_device.port_number = 3  (0x3)  (int)
  usb_device.product = 'USB to Serial'  (string)
  usb_device.product_id = 20833  (0x5161)  (int)
  usb_device.speed_bcd = 336  (0x150)  (int)
  usb_device.vendor = 'Cypress Semiconductor'  (string)
  usb_device.vendor_id = 1637  (0x665)  (int)
  usb_device.version_bcd = 272  (0x110)  (int)

 ___
 freebsd-stable@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to [EMAIL PROTECTED]


I believe most older cypress chips require you load a .hex firmware
file from devfs.rules on usb connect before they will do anything
useful.  You can probably find this file (with some other extension
than .hex, no doubt) in the windows driver package/install that comes
with the device.  You might need a spare windows box to un-cab the
files.  Anyway, after that you would call ezload
(/usr/ports/misc/ezload) from devfs.rules to burn the .hex into ram
every time the device is plugged in.  I am the new ezload maintainer
as of last week.  ezload won't work with recent Cypress chips, but I
have a patch such that it will.  If you think this is your problem,
get back to me, and I'll get you started.

On the other hand, the Cypress chip may not need a .hex at all - that
is not something I know for sure...I do know that silicon labs  ftdi
serial-usb converters have native support and need no .hex (I have
several of each)...

Steve
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Cypress Semiconductor USB to serial

2008-09-16 Thread Andrew Thompson
On Tue, Sep 16, 2008 at 10:32:46PM +0300, ??? ?? wrote:
 My UPS has a usb interface with USB-to-Serial chip.
 But ucycom driver doesn't recognize it.
 uhid driver does, but it doesn't help me, I need a virtual com port.
 (output below is without uhid loaded)
 What can I do to get it working?

You could try adding it to the ucycom_devices table in
sys/dev/usb/ucycom.c and recompiling ucycom.


Andrew
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: usb to serial

2006-11-10 Thread Maxim Konovalov
Hi Hans,

On Fri, 10 Nov 2006, 08:38+0100, Hans Petter Selasky wrote:

 On Thursday 09 November 2006 18:29, Maxim Konovalov wrote:
  [ iedowse CC'ed ]
 
  Hello,
 
  On Fri, 5 May 2006, 11:04-0400, David Coder wrote:
   thx for the suggestions, guys.  with
  
device uftdi
device uplcom
  
   in the kernel config the adapter shows up as
  
ugen0: ArkMicroChips USB-UART Controller, rev 1.10/0.01, addr 2
  
   no specific com port shows up, however, so i must need something else.
 
  Alex Rodin have ported uark(4) driver from OpenBSD.  I made code
  cleanup and intergation in the tree.  You can gettest patches for
  HEAD and RELENG_6 there:
 
  http://maxim.int.ru/stuff/uark.diff
  http://maxim.int.ru/stuff/uark.diff.6
 
  Ian, could you please review the patches?
 

 Hi, do you think that you could also port the serial driver to the new USB
 stack, and send me a patch file?

 Please see:

 http://www.turbocat.net/~hselasky/usb4bsd

 Download the SVN version, and type svn diff to generate a patch when you are
 finished. Look at the other serial drivers in my SVN tree, how the USB/UCOM
 stuff is done.

Are there any correlations with p4://depot/projects/usb?

The second question: is it OK to commit uark(4) as is and then convert
it to the new model?

-- 
Maxim Konovalov
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: usb to serial

2006-11-10 Thread Hans Petter Selasky
On Friday 10 November 2006 10:08, Maxim Konovalov wrote:
 Hi Hans,

 On Fri, 10 Nov 2006, 08:38+0100, Hans Petter Selasky wrote:
  On Thursday 09 November 2006 18:29, Maxim Konovalov wrote:
   [ iedowse CC'ed ]
  
   Hello,
  
   On Fri, 5 May 2006, 11:04-0400, David Coder wrote:
thx for the suggestions, guys.  with
   
 device uftdi
 device uplcom
   
in the kernel config the adapter shows up as
   
 ugen0: ArkMicroChips USB-UART Controller, rev 1.10/0.01, addr 2
   
no specific com port shows up, however, so i must need something
else.
  
   Alex Rodin have ported uark(4) driver from OpenBSD.  I made code
   cleanup and intergation in the tree.  You can gettest patches for
   HEAD and RELENG_6 there:
  
   http://maxim.int.ru/stuff/uark.diff
   http://maxim.int.ru/stuff/uark.diff.6
  
   Ian, could you please review the patches?
 
  Hi, do you think that you could also port the serial driver to the new
  USB stack, and send me a patch file?
 
  Please see:
 
  http://www.turbocat.net/~hselasky/usb4bsd
 
  Download the SVN version, and type svn diff to generate a patch when
  you are finished. Look at the other serial drivers in my SVN tree, how
  the USB/UCOM stuff is done.

 Are there any correlations with p4://depot/projects/usb?

Yes, it is the same.


 The second question: is it OK to commit uark(4) as is and then convert
 it to the new model?

I would prefer no. It is better to commit uark(4) to the USB p4 project, 
than HEAD, because then we don't have to worry about integrating the driver.

I looked at your uark.diff, and it shouldn't be too difficult to port it to 
the new USB architecture.

Have a look at ufoma.c:

http://www.turbocat.net/~hselasky/isdn4bsd/sources/src/sys/dev/usb/ufoma.c

From what I can see you need to:

Make a config thread, from where you do the configuration. You should not call 
usbd_do_request() directly from the ucom callbacks!

Add config for the USB BULK transfers needed.

And a little more.

Do you have hardware that you can test the UARK driver with?

--HPS
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: usb to serial

2006-11-10 Thread Maxim Konovalov
[...]
  The second question: is it OK to commit uark(4) as is and then convert
  it to the new model?

 I would prefer no. It is better to commit uark(4) to the USB p4 project,
 than HEAD, because then we don't have to worry about integrating the driver.

 I looked at your uark.diff, and it shouldn't be too difficult to port it to
 the new USB architecture.

 Have a look at ufoma.c:

 http://www.turbocat.net/~hselasky/isdn4bsd/sources/src/sys/dev/usb/ufoma.c

 From what I can see you need to:

 Make a config thread, from where you do the configuration. You should not call
 usbd_do_request() directly from the ucom callbacks!

 Add config for the USB BULK transfers needed.

 And a little more.

Thanks for the tips!

 Do you have hardware that you can test the UARK driver with?

Alex does, I don't.

-- 
Maxim Konovalov
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: usb to serial

2006-11-10 Thread Ian Dowse
In message [EMAIL PROTECTED], Hans Petter Selasky writes:
On Friday 10 November 2006 10:08, Maxim Konovalov wrote:
 The second question: is it OK to commit uark(4) as is and then convert
 it to the new model?

I would prefer no. It is better to commit uark(4) to the USB p4 project,
than HEAD, because then we don't have to worry about integrating the driver.

If the driver works, then there should be no need to hold off on
committing it to -CURRENT. Having it in -CURRENT now allows it to
be MFC'd to RELENG_6 sooner. From a quick glance it looks fine to
me, so I'd say just go ahead and commit it Maxim.

Ian
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: usb to serial

2006-11-10 Thread Maxim Konovalov
On Fri, 10 Nov 2006, 11:09-, Ian Dowse wrote:

 In message [EMAIL PROTECTED], Hans Petter Selasky writes:
 On Friday 10 November 2006 10:08, Maxim Konovalov wrote:
  The second question: is it OK to commit uark(4) as is and then convert
  it to the new model?
 
 I would prefer no. It is better to commit uark(4) to the USB p4 project,
 than HEAD, because then we don't have to worry about integrating the driver.

 If the driver works, then there should be no need to hold off on
 committing it to -CURRENT. Having it in -CURRENT now allows it to
 be MFC'd to RELENG_6 sooner. From a quick glance it looks fine to
 me, so I'd say just go ahead and commit it Maxim.

Yes, it works.  I'd prefer to commit it first and then adopt for a new
model too.

Thank you both!

-- 
Maxim Konovalov
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: usb to serial

2006-11-09 Thread Maxim Konovalov
[ iedowse CC'ed ]

Hello,

On Fri, 5 May 2006, 11:04-0400, David Coder wrote:


 thx for the suggestions, guys.  with

   device uftdi
   device uplcom

 in the kernel config the adapter shows up as

   ugen0: ArkMicroChips USB-UART Controller, rev 1.10/0.01, addr 2

 no specific com port shows up, however, so i must need something else.

Alex Rodin have ported uark(4) driver from OpenBSD.  I made code
cleanup and intergation in the tree.  You can gettest patches for
HEAD and RELENG_6 there:

http://maxim.int.ru/stuff/uark.diff
http://maxim.int.ru/stuff/uark.diff.6

Ian, could you please review the patches?

TIA!

-- 
Maxim Konovalov
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: usb to serial

2006-11-09 Thread Hans Petter Selasky
On Thursday 09 November 2006 18:29, Maxim Konovalov wrote:
 [ iedowse CC'ed ]

 Hello,

 On Fri, 5 May 2006, 11:04-0400, David Coder wrote:
  thx for the suggestions, guys.  with
 
   device uftdi
   device uplcom
 
  in the kernel config the adapter shows up as
 
   ugen0: ArkMicroChips USB-UART Controller, rev 1.10/0.01, addr 2
 
  no specific com port shows up, however, so i must need something else.

 Alex Rodin have ported uark(4) driver from OpenBSD.  I made code
 cleanup and intergation in the tree.  You can gettest patches for
 HEAD and RELENG_6 there:

 http://maxim.int.ru/stuff/uark.diff
 http://maxim.int.ru/stuff/uark.diff.6

 Ian, could you please review the patches?


Hi, do you think that you could also port the serial driver to the new USB 
stack, and send me a patch file?

Please see:

http://www.turbocat.net/~hselasky/usb4bsd

Download the SVN version, and type svn diff to generate a patch when you are 
finished. Look at the other serial drivers in my SVN tree, how the USB/UCOM 
stuff is done.

--HPS
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: usb to serial

2006-05-05 Thread David Coder

thx for the suggestions, guys.  with 

device uftdi
device uplcom

in the kernel config the adapter shows up as 

ugen0: ArkMicroChips USB-UART Controller, rev 1.10/0.01, addr 2

no specific com port shows up, however, so i must need something else.

David Coder
Network Engineer Emeritus, Verio
Washington, DC

On Wed, 3 May 2006, Marc Fonvieille wrote:

:Date: Wed, 3 May 2006 14:38:22 +0200
:From: Marc Fonvieille [EMAIL PROTECTED]
:To: David Coder [EMAIL PROTECTED]
:Cc: freebsd-stable@freebsd.org
:Subject: Re: usb to serial
:
:On Wed, May 03, 2006 at 08:33:22AM -0400, David Coder wrote:
: 
: Is there a generic freebsd driver for usb-to-rs-232 adapters?  My Thinkpad
: (running 6.1-RC) doesn't have a standard db-9 port.
: 
:
:uftdi(4) for some  USB/RS232 adapters.
:
:Marc
:___
:freebsd-stable@freebsd.org mailing list
:http://lists.freebsd.org/mailman/listinfo/freebsd-stable
:To unsubscribe, send any mail to [EMAIL PROTECTED]
:

On Wed, 3 May 2006, Vivek Khera wrote:

:Date: Wed, 3 May 2006 10:00:42 -0400
:From: Vivek Khera [EMAIL PROTECTED]
:To: freebsd-stable freebsd-stable@freebsd.org
:Subject: Re: usb to serial
:
:
:On May 3, 2006, at 8:33 AM, David Coder wrote:
:
: Is there a generic freebsd driver for usb-to-rs-232 adapters?  My Thinkpad
: (running 6.1-RC) doesn't have a standard db-9 port.
:
:I bought a generic one from BestBuy which works with the uplcom driver (I just
:load it from loader.conf).  I have an older one I bought there a year ago that
:also works with the driver, but only reliably up to 38400 baud.  That could be
:due to the system to which it is connected, though.  The new one seems safe up
:to 115200.
:
:They show up as device /dev/cuaU0 in FreeBSD 6+.  They both probe as:
:
:ucom0: Prolific Technology Inc. USB-Serial Controller, rev 1.10/3.00, addr 2
:
:

On Wed, 3 May 2006, Helge Oldach wrote:

:Date: Wed, 3 May 2006 16:02:57 +0200 (MET DST)
:From: Helge Oldach [EMAIL PROTECTED]
:To: David Coder [EMAIL PROTECTED]
:Cc: freebsd-stable@freebsd.org
:Subject: Re: usb to serial
:
:Marc Fonvieille:
:On Wed, May 03, 2006 at 08:33:22AM -0400, David Coder wrote:
: Is there a generic freebsd driver for usb-to-rs-232 adapters?  My Thinkpad
: (running 6.1-RC) doesn't have a standard db-9 port.
:uftdi(4) for some  USB/RS232 adapters.
:
:uplcom(4) as well, for example
:
:ucom0: Prolific Technology PL2303 Serial adapter (ATEN/IOGEAR UC232A), rev 
1.10/2.02, addr 4
:
:Helge
:___
:freebsd-stable@freebsd.org mailing list
:http://lists.freebsd.org/mailman/listinfo/freebsd-stable
:To unsubscribe, send any mail to [EMAIL PROTECTED]
:
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: usb to serial

2006-05-05 Thread Vivek Khera


On May 5, 2006, at 11:04 AM, David Coder wrote:


thx for the suggestions, guys.  with

device uftdi
device uplcom


you should really only need one of these.



in the kernel config the adapter shows up as

ugen0: ArkMicroChips USB-UART Controller, rev 1.10/0.01, addr 2



it did not detect it as a serial port, just a generic device.  you  
might need a different driver.  Look to see if ArkMicroChips is a  
supported device.  Seems not.



no specific com port shows up, however, so i must need something else.


look for /dev/cuaU0 once you get it recognized as a real device, not  
a generic object.




Re: usb to serial

2006-05-05 Thread Daniel O'Connor
On Saturday 06 May 2006 00:34, David Coder wrote:
 thx for the suggestions, guys.  with

   device uftdi
   device uplcom

You can just kldload these BTW.
Saves time when testing :)

 in the kernel config the adapter shows up as

   ugen0: ArkMicroChips USB-UART Controller, rev 1.10/0.01, addr 2

What does usbdevs -v say about it?

I have a CP2102 based device here and I am currently trying to port the Linux 
driver (reverse engineered from USB tracing) - you may be in the same boat.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


pgpIHOkNSz2eC.pgp
Description: PGP signature


usb to serial

2006-05-03 Thread David Coder


Is there a generic freebsd driver for usb-to-rs-232 adapters?  My Thinkpad
(running 6.1-RC) doesn't have a standard db-9 port.


Thx.

David Coder
Erstwhile Network Engineer
Washington, DC
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: usb to serial

2006-05-03 Thread Marc Fonvieille
On Wed, May 03, 2006 at 08:33:22AM -0400, David Coder wrote:
 
 Is there a generic freebsd driver for usb-to-rs-232 adapters?  My Thinkpad
 (running 6.1-RC) doesn't have a standard db-9 port.
 

uftdi(4) for some  USB/RS232 adapters.

Marc
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: usb to serial

2006-05-03 Thread Vivek Khera


On May 3, 2006, at 8:33 AM, David Coder wrote:

Is there a generic freebsd driver for usb-to-rs-232 adapters?  My  
Thinkpad

(running 6.1-RC) doesn't have a standard db-9 port.


I bought a generic one from BestBuy which works with the uplcom  
driver (I just load it from loader.conf).  I have an older one I  
bought there a year ago that also works with the driver, but only  
reliably up to 38400 baud.  That could be due to the system to which  
it is connected, though.  The new one seems safe up to 115200.


They show up as device /dev/cuaU0 in FreeBSD 6+.  They both probe as:

ucom0: Prolific Technology Inc. USB-Serial Controller, rev 1.10/3.00,  
addr 2




Re: usb to serial

2006-05-03 Thread Helge Oldach
Marc Fonvieille:
On Wed, May 03, 2006 at 08:33:22AM -0400, David Coder wrote:
 Is there a generic freebsd driver for usb-to-rs-232 adapters?  My Thinkpad
 (running 6.1-RC) doesn't have a standard db-9 port.
uftdi(4) for some  USB/RS232 adapters.

uplcom(4) as well, for example

ucom0: Prolific Technology PL2303 Serial adapter (ATEN/IOGEAR UC232A), rev 
1.10/2.02, addr 4

Helge
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: uplcom usb to serial adapter broken

2005-01-06 Thread Ryan Falkenberg
usbdevs:
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
 addr 2: PL2303 Serial adapter (ATEN/IOGEAR UC232A), Prolific Technology


dmesg:
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.3-STABLE #12: Wed Jan  5 17:45:47 MST 2005
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/BOWMORE
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Celeron(TM) CPU1066MHz (1063.24-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x6b1  Stepping = 1
  
Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real memory  = 393740288 (375 MB)
avail memory = 375545856 (358 MB)
acpi0: PTLTD   RSDT on motherboard
acpi0: Power Button (fixed)
acpi_ec0: Embedded Controller: GPE 0x1c port 0x66,0x62 on acpi0
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x1008-0x100b on acpi0
cpu0: ACPI CPU (3 Cx states) on acpi0
acpi_lid0: Control Method Lid Switch on acpi0
acpi_button0: Power Button on acpi0
acpi_button1: Sleep Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
agp0: Intel 82830M (830M GMCH) SVGA controller mem
0xe000-0xe007,0xe800-0xefff irq 10 at device 2.0 on
pci0
agp0: detected 8060k stolen memory
agp0: aperture size is 128M
pci0: display at device 2.1 (no driver attached)
uhci0: Intel 82801CA/CAM (ICH3) USB controller USB-A port
0x1800-0x181f irq 10 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: Intel 82801CA/CAM (ICH3) USB controller USB-A on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: Intel 82801CA/CAM (ICH3) USB controller USB-B port
0x1820-0x183f irq 11 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: Intel 82801CA/CAM (ICH3) USB controller USB-B on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pcib1: ACPI PCI-PCI bridge at device 30.0 on pci0
pci2: ACPI PCI bus on pcib1
xl0: 3Com 3c905C-TX Fast Etherlink XL port 0x3000-0x307f mem
0xe020-0xe020007f irq 10 at device 1.0 on pci2
miibus0: MII bus on xl0
ukphy0: Generic IEEE 802.3u media interface on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:08:74:39:dc:c1
cbb0: O2Micro OZ6912/6972 PCI-CardBus Bridge irq 10 at device 4.0 on pci2
cardbus0: CardBus bus on cbb0
pccard0: 16-bit PCCard bus on cbb0
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel ICH3 UDMA100 controller port
0x1860-0x186f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on
pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: serial bus, SMBus at device 31.3 (no driver attached)
pcm0: Intel ICH3 (82801CA) port 0x18c0-0x18ff,0x1c00-0x1cff irq 10
at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
pcm0: SigmaTel STAC9700/83/84 AC97 Codec
pci0: simple comms at device 31.6 (no driver attached)
atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0
atkbd0: AT Keyboard irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: PS/2 Mouse irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
acpi_acad0: AC Adapter on acpi0
acpi_cmbat0: Control Method Battery on acpi0
fdc0: floppy drive controller port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: 1440-KB 3.5 drive on fdc0 drive 0
npx0: [FAST]
npx0: math processor on motherboard
npx0: INT 16 interface
orm0: ISA Option ROMs at iomem
0xdc000-0xd,0xd8000-0xdbfff,0xcc800-0xccfff on isa0
pmtimer0 on isa0
sc0: System console at flags 0x100 on isa0
sc0: VGA 16 virtual consoles, flags=0x300
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
Timecounter TSC frequency 1063241234 Hz quality 800
Timecounters tick every 1.000 msec
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
ad0: 19077MB HITACHI DK23DA-20/00J2A0G0 [38760/16/63] at ata0-master UDMA100
wi0: Lucent Technologies WaveLAN/IEEE at port 0x3080-0x30bf irq 10
function 0 config 1 on pccard0
wi0: using Lucent Technologies, WaveLAN/IEEE
wi0: Lucent Firmware: Station (8.10.1)
wi0: Ethernet address: 00:02:2d:5e:20:34
wi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ata1-slave: FAILURE - ATAPI_IDENTIFY timed out
ata1-slave: FAILURE - ATAPI_IDENTIFY timed out
ata1-slave: FAILURE - ATAPI_IDENTIFY timed out
acd0: DVDROM HL-DT-STDVD-ROM GDR8081N/0108 at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a
Waiting (max 60 seconds) for system process `vnlru' to 

Re: uplcom usb to serial adapter broken

2005-01-06 Thread Ryan Falkenberg
On Thu, 6 Jan 2005 11:21:28 +1100, David Billett
[EMAIL PROTECTED] wrote:
 Hi Ryan,
 
 It must be the season for these or something... I just answered the same
 question over at [EMAIL PROTECTED]
 
 http://marc.theaimsgroup.com/?l=freebsd-questionsm=110494189823566w=2
 
 I'll cut and paste my answer to Stefano here.

I'm new to FreeBSD, for future reference should this type of question
appear on this list or -questions?  For the record I'm running FreeBSD
5.3-STABLE is that considered to be 5.3 or stable?

 Alex's patch cleaned up by Nick Denev:
 http://www.totalterror.com/src/uplcom.c.patch
 
 I don't run 5.3, so I've no idea if it will apply to a 5.3 kernel
 source, but it may point you in the right direction.
 ---
 
 I've just checked the source of sys/dev/usb/uplcom.c for 4.10 and 5.3
 and I think the patch should apply to both. Let me know if it works for
 you.

Thanks, the patch does apply properly but it doesn't seem to help the
problem.  I can still send data but not receive.  Am Installing the
patched drivers properly?  I did a cvsup, deleted all of /usr/obj/,
applied the patch, then followed the buildworld canonical instructions
from the handbook.  Is there a way to only build and install the
uplcom drivers?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: uplcom usb to serial adapter broken

2005-01-06 Thread Daniel O'Connor
On Fri, 7 Jan 2005 05:35, Ryan Falkenberg wrote:
I plugged mine in and got..

Jan  7 08:53:33 inchoate kernel: ucom0: Prolific Technology PL2303 Serial 
adapter (ATEN/IOGEAR UC232A), rev 1.10/2.02, addr 2
Jan  7 08:53:53 inchoate kernel: ucom0: at uhub0 port 1 (addr 2) disconnected
Jan  7 08:53:53 inchoate kernel: All threads purged from cuaU0
Jan  7 08:53:53 inchoate kernel: All threads purged from ttyU0
Jan  7 08:53:53 inchoate kernel: ucom0: detached

I tested it talking to my DSL-300 modem and it worked fine (TX  RX) 
but I don't think that thing needed HW flow control to work.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


pgpYZ76Rhx8mB.pgp
Description: PGP signature


uplcom usb to serial adapter broken

2005-01-05 Thread Ryan Falkenberg
I have a PL-2303 usb to serial adapter that I am trying to make work
on my laptop that I've recently migrated to freebsd 5.3 from linux. 
After loading ucom and uplcom I can connect to and send commands to
serial devices with minicom but I cannot see the results of any
commands.  If I connect to a managed switch I can login  and type
commands but no output is ever sent back to the screen (I have
verified that commands sent from the adapter are reaching the switch).
 I have also tried connecting to a serial modem with the same results.

I have experienced the same results on my laptop and a desktop, both
are freebsd 5.3.  I can communicate properly with the serial devices
using a freebsd desktop with a standard serial port so I know the
baudrates are correct, and I can communicate with the serial devices
from my laptop using the usb adapter in windows and linux using the
uplcom drivers.  I can also use my laptop to sync with a usb
handspring visor in freebsd, so I think the usb system is working
properly.

Can anyone help me get this adapter working under freebsd?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: uplcom usb to serial adapter broken

2005-01-05 Thread Brian Reichert
On Wed, Jan 05, 2005 at 11:29:18AM -0700, Ryan Falkenberg wrote:
 I have a PL-2303 usb to serial adapter that I am trying to make work
 on my laptop that I've recently migrated to freebsd 5.3 from linux. 

What does the device probe as?  Let's see 'pciconf -l'.

-- 
Brian Reichert  [EMAIL PROTECTED]
37 Crystal Ave. #303Daytime number: (603) 434-6842
Derry NH 03038-1713 USA BSD admin/developer at large
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: uplcom usb to serial adapter broken

2005-01-05 Thread Daniel O'Connor
On Thu, 6 Jan 2005 08:48, Brian Reichert wrote:
 On Wed, Jan 05, 2005 at 11:29:18AM -0700, Ryan Falkenberg wrote:
  I have a PL-2303 usb to serial adapter that I am trying to make work
  on my laptop that I've recently migrated to freebsd 5.3 from linux.

 What does the device probe as?  Let's see 'pciconf -l'.

I think you mean usbdevs :)

Also the output of dmesg after insertion would be useful.

I have one of these devices at home I can test (although I have -current 
machines, not 5.3)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


pgpkRTPpP9Mur.pgp
Description: PGP signature


Re: uplcom usb to serial adapter broken

2005-01-05 Thread Brian Reichert
On Thu, Jan 06, 2005 at 10:33:18AM +1030, Daniel O'Connor wrote:
  What does the device probe as?  Let's see 'pciconf -l'.
 
 I think you mean usbdevs :)

Bah, humbug.  Yes, that's what I mean. :)

 Also the output of dmesg after insertion would be useful.

Yah, what he said!

 I have one of these devices at home I can test (although I have -current 
 machines, not 5.3)

I have a varient of one of them as well, and wanted to compare notes.

 -- 
 Daniel O'Connor software and network engineer
 for Genesis Software - http://www.gsoft.com.au
 The nice thing about standards is that there
 are so many of them to choose from.
   -- Andrew Tanenbaum
 GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C



-- 
Brian Reichert  [EMAIL PROTECTED]
37 Crystal Ave. #303Daytime number: (603) 434-6842
Derry NH 03038-1713 USA BSD admin/developer at large
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]