Moxa UPort 1150 and RS-422/485… what's the "proper" way to switch modes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

A silly question: I have a Moxa UPort 1150 USB serial interface that I
am trying to coax into either RS-422 or 4-wire RS-485 mode.  Internally,
this is a TI USB 3410 device, and works with the ti_usb_3410_5052 module.

Moxa have a (poorly maintained as usual) driver for these devices, and I
see reference to things like RS-485 in the TI driver.  Moxa's driver did
a kludge where they used `setserial` to control the mode, and used the
device "port" number to set that mode.  I do not think it wise to try
and replicate that same kludge, as I understand that parameter is for
configuring the I/O port (e.g. 0x3f8 for /dev/ttyS0 on older
IBM-compatibles).

Now, *some* versions of `stty` allegedly have an "rs485" option: mine
(in coreutils 8.25) does not.  I suspect this is 2-wire RS-485, which
won't do here, as my RX and TX are on different RS-485 pairs.

What's the "proper" way to configure such ports for RS-422 and/or 4-wire
RS-485?  Is there an example driver in the tree that I can use as a
guide to porting Moxa's mode-switch code over to the ti_usb_3410_5052
driver?

Regards,
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux