Keyspan USA-49WG owner manual TX ACK Advance, Overview, Problem, Work Around

Page 20

7.1.f – TX ACK Advance

Overview

Many Keyspan USB serial adapters support confirmable “Transmit Acknowledgement Advance” (aka TX-ACK threshold, aka TX-ACK (nowledgement) advance, etc.) in the Keyspan Manager. This feature allows the user to adjust a device’s transmit behavior to achieve the optimum compromise between compatibility (exact emulation of built-in ports) and maximum throughput. This document describes the factors which a user should be aware of to guide their configuration of this feature.

The Problem

In the case of a standard, “built-in” serial port, the host CPU (the “brain” of the computer) can communicate directly with the serial hardware because the (serial) hardware is in the address space directly accessible to the CPU. When the serial port has transmitted all the data in its transmit FIFO (the buffer that holds characters waiting to be sent), it interrupts the CPU, which then adds more characters to the transmit FIFO with a minimum time delay.

By contrast, in a USB to serial adapter situation, information about the state of the serial port FIFO reaches the CPU by means of USB messages. The USB subsystem in most computers delays the delivery of inbound (USB peripheral to USB host computer) USB messages by about 1 millisecond. The impact of this delay on serial throughput depends on the baud rate. At 9600 baud, it takes about 1 millisecond to transmit a character. If the serial adapter signals the host when it begins transmitting the last character in its FIFO, the host learns about it at about the same time the character is actually finished being transmitted. Since outbound (USB host computer to USB peripheral) USB messages are not subject to such a long delay, the host can supply new data before the serial port has been idles for too long.

At higher baud rates, however, this 1-millisecond delay becomes more of a problem. For example, at 920 Kbps, 1 millisecond is enough time to send 92 characters. So, if you’re sending 92 characters at a time, you will only achieve 50% throughput, since half the time is spent with the adapter waiting for the host to send more data.

The Work Around

Since there’s no way to eliminate the USB delays, there’s only one work around: the serial adapter has to like about

when it’s done transmitting. The size of the lie is what’s being configured with the “TX Ack Advance” parameter: it specifies how many characters ahead of time the adapter tells the host “I’m done.” This way, the adapter still has some data to transmit while it’s waiting for more to arrive from the host. If the next data from the host arrives before the previous data is completely sent, the new data can be sent with no delay, and the device will achieve 100% transmit throughput.

Notes about the Work Around

In most situations, the serial adapter’s lie is harmless or beneficial, even. However, in some circumstances, this lie gets us into trouble. There are several ways this can happen:

Flow control: If the adapter is programmed to use flow control, the remote (receiving) end of the serial connection can ask the adapter to suspend its data transmission (e.g. if it’s not ready to receive more data). Since this state can persist indefinitely, the “I’m done” indication, if it were sent early, could arrive at the host a significant amount ahead of time. As a result, the application might use the “I’m done” signal as an indication that the remote end is ready, leading to various kinds of trouble.

20

Image 20
Contents Port USB Serial Adapter For Windows Windows ContentsIntroduction Capabilities Keyspan USB 4-Port Serial Adapter PortsInstallation Instructions Installing the Keyspan USB 4-Port Serial Adapter HardwareConfiguring Your Serial Device’s Software Configuring Your Serial DeviceConnecting Your Serial Device Hardware Configuring Your Serial Device Launching the Keyspan Serial Assistant Explanation of Assistant FeaturesKeyspan Serial Assistant Adapter Status Tab Properties TabKeyspan Serial Assistant Keyspan Serial Assistant Port Mapping Tab Diagnostics Tab Help Tab Software/Serial Device Troubleshooting Problem SolvingHardware Troubleshooting Frequently asked Questions FAQs AppendicesConfiguration Example for Windows Palm DesktopPalm Desktop External Loopback Connector Information Serial Port Pin OutsLED Behavior Color State SignificanceProblem TX ACK AdvanceOverview Work AroundWhat Should I Use? Year Limited Warranty Warranty Registration201007159 933035-EN

USA-49WG specifications

The Keyspan USA-49WG is a versatile and highly regarded USB to serial adapter, designed for efficient and reliable connectivity between USB-equipped computers and serial devices. This device is particularly popular among users who work with older serial technology or need to connect to various serial interfaces.

One of the standout features of the USA-49WG is its ability to support multiple serial connections through a single USB port. Equipped with four serial ports, this adapter allows users to connect several legacy serial devices simultaneously, making it an ideal solution for applications that require multiple connections, such as industrial automation, data logging, and point-of-sale systems.

The USA-49WG utilizes FTDI's FT232R chip, which is known for its high performance and compatibility. This chipset ensures that the adapter achieves excellent data transfer rates, with support for baud rates up to 115200 bps. This makes the Keyspan USA-49WG suitable for a range of applications that require fast and reliable communication.

Another key characteristic of the Keyspan USA-49WG is its plug-and-play functionality. Users can easily connect the device to their USB port, and it will automatically install the necessary drivers on major operating systems, including Windows, macOS, and Linux. This ease of use significantly reduces setup time, allowing users to focus on their projects without the hassle of complicated installation processes.

In terms of design, the USA-49WG is built with a compact and robust housing, providing durability for both home and industrial use. Additionally, it features LED indicators for power and data transmission, allowing users to monitor activity at a glance.

The adapter also includes a comprehensive set of features to enhance usability, such as:

- 128-byte transmit/receive FIFO buffers for efficient data handling,
- Support for RS-232 serial communication standard,
- Full-duplex communication capabilities, ensuring simultaneous data transmission and reception.

In conclusion, the Keyspan USA-49WG USB to serial adapter stands out for its multi-port functionality, ease of installation, and robust performance. It provides an excellent solution for connecting modern USB-equipped systems to legacy serial devices, making it an essential tool for various professional and home applications. Its combination of features and technologies makes it a reliable choice for those in need of seamless serial connectivity.