7.1.f – TX ACK Advance

Data flushing: Sometimes, an application will issue a “transmit flush” command to the adapter to get rid of extra data. For example, let’s say an application sends “AAAA” to the adapter, and then, once it’s received the “I’m done” indication sends “BBBB.” Now, let’s say that sometime after sending “BBBB,” the application decides to cancel whatever part of the ‘BBBB” has yet to leave the serial port, and sends a “transmit flush” command to the adapter. If the adapter had been lying about being done sending “”AAAA,” it might still not be done, and the flush could purge the transmit FIFO of some of the A’s (which is not what the application was expecting) in addition to the B’s.

Timing: In some applications, the receipt of the “I’m done” indication is used as a timing reference point. For example, an application could send a data stream like this:

COMMAND…………………………………………………….

The extra periods following COMMAND would be just used to establish a timing interval: the application would know that once the serial port said “I’m done,” the receiver would have had at least 64 character times to process COMMAND. If the “I’m done” indication was sent early, the application might then do it’s subsequently action too early.

Another possibility is that the application is using the timing of the “I’m done” message to determine the baud rate. For example, if the serial port was using external clocking, the application might not know what baud rate was being used, so it would send a message and see how long it took. The early delivery of “I’m done” could screw up its calculation.

There are many other communication protocols in which time periods are counted from the point that message has been delivered. Any time you change the timing of the “I’m done” indication, you run the risk if interfering with such protocols.

What Should I Use?

There are various way to configure Tx Ack Advance. Following is a discussion of some possibilities:

None: If you’re using a baud rate of 9600 or less, you probably don’t have a problem. The 1 millisecond delay will not significantly affect your throughput, and you can select this option. This option is also a good choice if you are running an application in which throughput is not an issue, or one in which guaranteeing 100% correct operation is important enough that you’d prefer not to risk having problems.

Auto: The ‘Auto” setting uses that calculation described above when internal clocking is used and sets the Tx Ack Advance to “None” when external clocking is used (this is because the host doesn’t know the baud rate when the clocking is supplied externally).

Experiment: If you’re using a baud rate above 9600, you can simply try increasing the Tx Ack Advance setting, and see whether it improves performance 9in which case, great!), causes problems (in which case, don’t use it) or doesn’t make any difference (in which case it doesn’t matter what you do).

21

Page 21
Image 21
Keyspan USA-49WG owner manual What Should I Use?

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.