background image

7.1.f - TX Ack Advance

Overview

 

Many Keyspan USB serial adapters support configurable "Transmit Acknowledgment 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 minimal time delay.

By contrast, in a USB to serial adapter, 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 idle 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 lie 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. 

 Keyspan:USB Twin Serial Adapter for Mac OS-v1.9 User Manual

This User Manual applies to the Keyspan USB Twin Serial Adapter Software  for Mac OS

(rev 02may12JA) 

Page 32

Summary of Contents for USB Twin Serial Adapter

Page 1: ...y Asked Questions FAQs Compatibility List for Mac OS Configuration Examples for Mac OS Serial Port Pin Outs TX Ack Advance MIDI Information Notices Keyspan Warranty Information Support Information Key...

Page 2: ...n Serial Adapter Software for Mac OS requires the following Macintosh At least one available USB port Mac OS 8 6 9 x Contents The Keyspan USB Twin Serial Adapter package includes Keyspan USB Twin Seri...

Page 3: ...pan USB Twin Serial Adapter s ports Please note that AppleTalk LocalTalk and Geoport are not disabled by the Keyspan USB Twin Serial Adapter if you have these features installed already Keyspan USB Tw...

Page 4: ...pan Serial Assistant s Advanced Setting s screen Once you ve emulated the Printer port Port 1 will be accessible by selecting the PRINTER port icon or Printer Port USB port name in your serial device...

Page 5: ...erial Software for Mac OS Installer If the Keyspan Adapter is connected to your computer disconnect it now Run the Keyspan USA28X Installer for Mac OS by double clicking the installer icon This will s...

Page 6: ...r by connecting the Adapter s USB cable into any built in USB port on your computer or USB Hub It is not necessary to turn off your computer when attaching the Adapter Keyspan USB Twin Serial Adapter...

Page 7: ...he serial port on your Keyspan USB Twin Serial Adapter Step 2 Determine Which Keyspan Port Your Serial Device Is Connected To If your have a Keyspan product that has more than one serial port please n...

Page 8: ...Keyspan Serial Assistant window If your Keyspan hardware and software are installed correctly the Serial Adapter Status text box will report Driver and USA 28X Device found OK or Renumerating Done If...

Page 9: ...your serial devices documentation on which method your serial device uses and how to access that software s serial port configuration screen Once you ve determined where to select or configure your se...

Page 10: ...l Adapters connected to your computer If your Keyspan adapter hardware and software are installed correctly you will see Driver and USA 28x Device found OK or Renumerating Done in the Serial Adapter S...

Page 11: ...ardware and software are installed correctly you will see Driver and USA 28X Device found OK or Renumerating Done in the Serial Adapter Status text box If you do not receive either of these messages p...

Page 12: ...options Once you click this button you will open the Keyspan Manager window The External Loopback command tests the Adapter s ability to send and receive data This test requires an external loopback c...

Page 13: ...rial Adapter or adapters that has been installed in your computer The Use Naming Cin Din check box allows use of an alternative port naming conventions This option is provided for compatibility with c...

Page 14: ...and and cannot be closed by the application that opened it When you click on this button Keyspan Manager will send calls to the port which should reset the port and close it This will not prove effec...

Page 15: ...te the Printer Port or Modem Port as found on older Macintosh computers This allows software that is not CommToolBox Savvy to use a port on the Keyspan adapter Note This option is only available on Ma...

Page 16: ...in the Menu bar and provides access to the following command s The Display Driver Events command copies the Keyspan Adapter s serial driver s internal event buffer into the Keyspan Manager s event lo...

Page 17: ...onitor data The Disable Printer Emulation command will disable Printer port emulation on ALL Keyspan USB Twin Serial Adapters connected to your computer Deselecting this option will allow Printer port...

Page 18: ...Support for further assistance Otherwise skip ahead to Step 2 Software Serial Device Troubleshooting Step 2 Check The Physical Connections Make certain that your serial device is powered on and is pro...

Page 19: ...Adapter contact Keyspan Tech Support for further assistance When You Need More Help The Keyspan web site http www keyspan com is your best source for technical support information The web site includ...

Page 20: ...ial Port Pin Out and Loopback Test Information TX Ack Advance White Paper on the TX Ack Advance feature MIDI Information Information about Keyspan serial ports and MIDI Notices FCC CE VCCI Copyright a...

Page 21: ...your device is connected to in port or connection configuration screen dialog menu etc for that device Depending on what type of serial device you have you may have to configure a control panel an app...

Page 22: ...If you are encountering this problem or something similar to it please contact Keyspan Tech Support for further instructions Keyspan USB Twin Serial Adapter for Mac OS v1 9 User Manual This User Manu...

Page 23: ...our web site at http www keyspan com For the compatibility list for other operating system ie Mac OS X Windows etc please refer to the user manual for that platform or visit our web site at http www k...

Page 24: ...AppleTalk N N N PowerRIP RIP software ImageWriter N N N ImageWriter Y Y Y ImageWriter II Y Y Y LaserWriter 300 N Y Y LaserWriter LS N Y Y LaserWriter 310 StyleWriter I Y Y Y StyleWriter II Y Y Y Styl...

Page 25: ...ial Y Y Y HP Deskwriter 340 serial N HP Deskwriter 500 series serial Y Y Y HP Deskwriter 600 series serial Y Y Y HP Deskjet 800 series serial Y Y Y HP LaserJets AppleTalk N N N Seiko Label Printer Y Y...

Page 26: ...Please see that product s documentation for details HP DeskWriter 340 USA28x USA18x SXPro4 This printer may work using an older version of the DeskWriter 310 printer drivers lower than v6 0 3 AppleTal...

Page 27: ...esktop For the latest version of this list please visit our web site at http www keyspan com For the configuration examples for other operating system ie Mac OS X Windows etc please refer to the user...

Page 28: ...correctly To do this open the Keyspan Serial Assistant located in Control Panels When you open the Keyspan Serial Assistant you will see a window similar to the one shown below the Keyspan Serial Ass...

Page 29: ...anager selection in the Palm menu as shown below the HotSync Manager selection in the Palm menu Once the HotSync Manager application is opened you will be presented with the HotSync Software Setup win...

Page 30: ...pplication to monitor the port on your Keyspan serial adapter Please note The name s of your Keyspan serial port s vary from Keyspan product to product Please check the Capabilities section in your Ke...

Page 31: ...ith emission specifications cables should be shielded using braided shields and metal hoods with 360 contact between the shields and hoods External Loopback Connector Information The Keyspan Serial As...

Page 32: ...bout 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 charact...

Page 33: ...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 exampl...

Page 34: ...rformance in 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 Calculate If you know that your application will not...

Page 35: ...mentations of the MIDI standard some devices may not compatible with the USB Twin Serial Adapter Please contact your MIDI device and or software manufacturer for compatibility of their products with t...

Page 36: ...ection against harmful interference in a residential installation This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instructions...

Page 37: ...1000 4 4 1995 EN61000 4 6 following the provisions of the Electromagnetic Compatibility Directive Mike Ridenhour Richmond CA USA President April 2002 Canada Digital Apparatus EMI Standard This Class B...

Page 38: ...d subject to the terms and conditions of a duly executed License Agreement KEYSPAN SPECIFICALLY DECLINES ALL WARRANTIES WHETHER IMPLIED OR EXPRESSED INCLUDING BUT NOT LIMITED TO THOSE OF MERCHANTABILI...

Page 39: ...t KEYSPAN grants you a non exclusive license to Use one copy of the Software on a single computer Dedicated Computer Make one copy of the Software for archival purposes or copy the Software onto the h...

Page 40: ...Product along with a copy of your paid invoice to KEYSPAN within 90 days of the date you received the Product If KEYSPAN is unable to make the Product conform to the above warranty KEYSPAN at its opt...

Page 41: ...PAN representative KEYSPAN is not bound by any provision of any purchase order acceptance confirmation correspondence or otherwise unless KEYSPAN specifically agrees to the provision in writing This a...

Page 42: ...Friday 9 am to 5 pm Pacific International Support Options If you live outside of the United States and require assistance with your Keyspan product please contact the Keyspan s distributor in your co...

Reviews: