System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a logical serial port for a physical USB

Geert Van Pamel
Regular Advisor

How to create a logical serial port for a physical USB

Problem: I have an UPS (Uninterruptable power supply) with an USB cable connection. For Windows, the package is can talk USB, but for Linux, only a serial port is supported, typically /dev/ttyS1 or /dev/cua1

I have found on internet 2 packages that might do the trick, but I do not understand how to implement them... those SW kits basically contain only one C program.

http://ftdi-usb-sio.sourceforge.net
http://www.ftdichip.com/Drivers/VCP.htm

Could anybody give me an advice?
5 REPLIES
sshakthi
Advisor

Re: How to create a logical serial port for a physical USB

hi,

let me know the make and model of the UPS

or go through the link it may helps.

http://www.vttoth.com/ER-OF800.htm

and this is for APC ups usb

http://sourceforge.net/project/showfiles.php?group_id=54413&package_id=73150&release_id=440720
Geert Van Pamel
Regular Advisor

Re: How to create a logical serial port for a physical USB

Geert Van Pamel
Regular Advisor

Re: How to create a logical serial port for a physical USB

Sorry to insist, but my problem is not yet solved?
Matti_Kurkela
Honored Contributor

Re: How to create a logical serial port for a physical USB

http://ftdi-usb-sio.sourceforge.net
http://www.ftdichip.com/Drivers/VCP.htm

These packages will not help you. They are for converters that plug into computer's USB port and provide a serial port for any external peripheral. They are designed to be used by a "host" USB entity, which is the computer.

The UPS presents itself to the computer as a "device" USB entity, which cannot use other USB devices unless the USB host entity coordinates the access. So you cannot plug an USB-to-Serial converter to any arbitrary USB device and expect it to work.

Unless you have access to the source code of the Powerware UPS firmware, you cannot change the UPS to use any USB-to-Serial converters.

If the program that came with the UPS cannot use USB with Linux, I suggest you abandon that program, and use something else instead.

"Network UPS Tools" is a free software package that can handle many USB-connected UPSes on Linux, including Powerware 5110.

MK
MK
TY 007
Honored Contributor

Re: How to create a logical serial port for a physical USB

Hello,

RS-232 Serial to USB adapter:
http://www.ramelectronics.net/html/usb_serial.htm

Thanks