USB to Serial port delay

I have some LabVIEW code that communicates with a TI MSP430 development board via a USB serial port simulator. The hardware that does the serial to USB conversion is part of the development board. how the application works is the LabVIEW code sends a request using the VISA write VI, and the board responds.  The requests and responses are both about 5-6 bytes each, and are being sent at 115200 baud 8-N-1.
Everything works, but there is a roughly 600ms delay between sending the request and receiving the first byte of the response. After the first byte is received, the other bytes are received within 1 ms.  I assumed the firmware in the develoment board was slow, but I put a scope on the RX and TX lines coming out of the microcontroller, and the firmware responds in less than 1 ms, so the microcontroller isn't the issue. So somewhere between the UART to USB hardware, and LabVIEW, there is a 600ms delay.  I have a feeling that it is the TI development board, or drivers that are holding things up. The USB to serial stuff seems to be kind of flaky generally on these boards.  However, I wanted to come on here, and see if anyone had any ideas about how I might figure this out, or what might be wrong.  I'm going to post on the TI forums also, and see if I get a resonse there.
Has anyone seen an issue like this before using USB to serial converters?
Is there something else I could try to narrow down where the issue is, or rule out some part of the system (like making sure that it isn't an issue with the VISA drivers)?

Jeff·Þ·Bohrer wrote:
What is the USB-Serial chipset?
The FTDI drivers offer some latentcy optimizations.  Others do not.
Most TI MSP430 boards have their own build in USB interface based on the TUSB3410 from TI and the according driver for it is the TUSBWINVCP package. Nothing to do with FTDI.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Usb to serial port converter in lenova g560

    hi this is madhan. i m using lenova g560 ideapad. there is no serial port in my laptop. For my project i need a serial port. i heard tat in market USB to serial port converters are available. Does Lenova g560 support this change?? If so is there any driver to make support to serial port?????????

    If you buy a Serial-USB interface/cable you won't have any problem. Usually this accesory comes with drivers. If you have Windows 7, mayte it will detect all automaticaly.
    Regards.
    IPnaSh
    First Spanish Community Guru - Colaborador ad honorem

  • Usb to Serial port adapter

    I have a gilsson usb to serial port bi directional adapter cable which uses the Prolific pl-2303 chipset. I am attempting to use this cable to interface a Mac Mini with a Harsper PDP plasma television.
    I am attempting to control the functions of the television via the serial port on the television. i.e. Turn on, input, volume, etc.
    What I need is software, or source code that would allow me to send hexidecimal commands to the television and receive the task completed codes.

    ZTerm will allow serial communications. Get it to ensure that throughput is happening as expected.
    RealBasic will allow you to roll your own with a fair amount of ease.
    A long time ago I used the above to communicate with my cellphone to send and receive text messages via the serial port, so I know it can work. Understanding the protocols is the difficult part...

  • USB to serial port

    Hi all,
             I am working on a VI to acquire data external to computer. The data is
    being acquired via the serial port of the computer. When i first built
    the software in labview , i tried it in my desktop( which had serial port) and it
    worked fine, i was also able to generate messages in labview and send
    it serially out.
    However now i tried it in my laptop which didnt have serial port. So i
    bought a USB to serial adapter. I can see the data from the in hyperterminal. But i cant get labview
    to work with the simulated serial port. Labview doesnt display the
    readings and gives an error: "unknown system error". I cant figure out
    why, there must be no mistake in the labview program as it works fine
    in my desktop, and also no mistake in the data being sent cause i can
    see it in the hyperterminal window in the proper format.
    Please help.
    Thank you.

    No, I am using Windows Xp only, however it has started to work today when i again tried, I do not know why!,  but thank you all for your replies, i should have posted my query after testing it thoroughly. My apologies.
    vinay
    Message Edited by raybuzz on 07-27-2009 05:58 AM

  • USB to Serial port adapter - Mac thinks  it's a modem

    I’m trying to connect my Mac’s USB port to a Sony Beta SP recorder's Serial Port using a generic USB to Serial adapter which uses the Prolific PL-2303 chip.
    I’m using the latest Prolific Universal driver, but when I plug in the USB cable I get a message that a ‘new network device has been detected’ and suggesting that I use System Preferences to set it up. But in System Preferences it seems to think the USB to Serial adapter is a modem and is looking for a phone number and other configuration data.
    Does anyone know how to get it to work as just a serial communication device to my Sony’s serial port? If I get it working I'll be connecting it to an RS232 to RS422 adapter to talk to the Sony port.
    Thanks.

    Thanks Andy.
    I'll have a go again. It was late last night when I was trying to set it up, so maybe a fresh brain will have more success. I did try to 'Cancel' the network preference window that opened, but got the impression that it would not work unless I did 'something'. Someone else told me I could cancel that message permanently within System Preferences, so I'll try that too. Yet another bit of advice I got was that I would have to install 'MacPorts' and run something called 'Minicom' to set up the serial parameters. Windows was so simple by comparison
    As a non-techie (at least in all these software and protocol issues) I'm more than a little confused.
    Regards
    Message was edited by: esmonde

  • Problems with asynchronous visa read with USB to serial port adapter

    I have an application that sends and recieves data from a power supply and on most computers (desktop PCs), the application runs fine. I found that on at least one computer, using a Keyspan Tripp Lite USB to RS232 adapter, in one out of 25 queries, I wasn't getting the whole reply back from the instrument. After some debugging I found out if I switch the VISA write and read calls from synchronous to asynchronous I don't see the error any more. Is there a way to disable asynchronous mode for that computer? I'd rather not have to find all the VISA write calls in my application and update each one just to support that computer.
    CLD (2014)

    Try playing with the Tx ACK Advance setting on that port first.  (From the Keystone config utility)  You might also look into the Rx FIFO buffer settings (16 is a short default buffer)
    There is no (Easy) way to universally disable Async .   VISA Async tranfers MAY complete synchronously anyhow (It throws a warning when that happens)  So if Keystone settings do not help you might want to swap out to a FTDI chip enabled USB - serial device.
    Jeff

  • USB and serial port access in java

    Hi
    I have a magstripe card reader connected to my computer with a USB interface (port).
    I am using javax.comm API to get the card swipe data but could not succeeded.
    Can i do that or have to do something else ???

    ok. Below is my code:
    this is a sample code come with the API.
    package msr;
    * @author Dell
    import java.io.*;
    import java.util.*;
    import javax.comm.*;
    * Class declaration
    * @author
    * @version 1.8, 08/03/00
    public class SimpleRead implements Runnable, SerialPortEventListener {
        static CommPortIdentifier portId;
        static Enumeration           portList;
        InputStream                inputStream;
        SerialPort                serialPort;
        Thread                readThread;
         * Method declaration
         * @param args
         * @see
        public static void main(String[] args) {
        boolean                portFound = false;
        String                defaultPort = "COM3";
         if (args.length > 0) {
             defaultPort = args[0];
         portList = CommPortIdentifier.getPortIdentifiers();
         while (portList.hasMoreElements()) {
             portId = (CommPortIdentifier) portList.nextElement();
             if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {
              if (portId.getName().equals(defaultPort)) {
                  System.out.println("Found port: "+defaultPort);
                  portFound = true;
                  SimpleRead reader = new SimpleRead();
         if (!portFound) {
             System.out.println("port " + defaultPort + " not found.");
         * Constructor declaration
         * @see
        public SimpleRead() {
         try {
             serialPort = (SerialPort) portId.open("SimpleReadApp", 2000);
         } catch (PortInUseException e) {}
         try {
             inputStream = serialPort.getInputStream();
         } catch (IOException e) {}
         try {
             serialPort.addEventListener(this);
         } catch (TooManyListenersException e) {}
         serialPort.notifyOnDataAvailable(true);
         try {
             serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8,
                                SerialPort.STOPBITS_1,
                                SerialPort.PARITY_NONE);
         } catch (UnsupportedCommOperationException e) {}
         readThread = new Thread(this);
         readThread.start();
         * Method declaration
         * @see
        public void run() {
         try {
             Thread.sleep(20000);
         } catch (InterruptedException e) {}
         * Method declaration
         * @param event
         * @see
        public void serialEvent(SerialPortEvent event) {
         switch (event.getEventType()) {
         case SerialPortEvent.BI:
         case SerialPortEvent.OE:
         case SerialPortEvent.FE:
         case SerialPortEvent.PE:
         case SerialPortEvent.CD:
         case SerialPortEvent.CTS:
         case SerialPortEvent.DSR:
         case SerialPortEvent.RI:
         case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
             break;
         case SerialPortEvent.DATA_AVAILABLE:
             byte[] readBuffer = new byte[20];
             try {
              while (inputStream.available() > 0) {
                  int numBytes = inputStream.read(readBuffer);
              System.out.print(new String(readBuffer));
             } catch (IOException e) {}
             break;
    }

  • Any idea on what is causing my serial ports to lock up?

    I recently purchased the NI serial-usb 4 serial port interface box because I was having a problem of my serial ports locking up, and I thought the problem might be with my serial port card. Well, after a few days with the NI boxes 2 of my serial ports locked up. This is a big problem that I need to get resolved. If anyone has any ideas on what might be causing this please let me know.
    I am running Lookout 5.0 (build 7) and Logos 4.4.0.17 on a Dell Windows XP machine with 1GB RAM and a 2 GHz processor. I have already tried recompiling my Lookout file and clearing out my database but the problem still occurs. If I restart the file then the ports start working fine again, but I need to know what is causing this since this
    wasn't a problem until about 2 months ago.
    Any responses would be greatly appreciated.
    Thanks
    Jason
    Jason Phillips

    Thanks for the response, Ben.
    I have Laplink running on the computer all the time, and we do have 2 SCADA packs in the field at this time, but I don't run the Telepace program on this computer. This computer does not have a modem. As far as the serial port card, I was using a "Byterunner" 4 serial port card but I purchased the NI 4 serial port -usb interface because I thought the byterunner card might be the problem.
    Do you think Laplink could be causing the problem?
    Jason
    Jason Phillips

  • I have problem with delay in serial port

    I have problem with serial port. I have connected two computers by serial port and I need to create program in Labview for transfer strings using start bits and stop bits. My problem is that my program is working quite well ...when I press start bit it starts to concatenate strings and if i press stop bits it stops...this is the purpose of this program...but problem is that it working only with delay...and need that this program dont need delay, because it can only concatenating data depends on delay from start bit....I wana solved problem with delay...I dont want using delay process in my program, but allways when I try to delete this delay it stop works correct
    here is my program

    Ok this should be simple - if I understand you correctly.
    You have the VISA session initialized with read termination character enabled.  So reading the number of bytes at port is NOT the correct way to read from the port.  Set the read number of bytes to something large (say 4096) and the read will return as soon as a termination character is received (or timeout).
    You'll need to make sure the sending device is configured to send termination character on writes (you can set that with a VISA property node)  and that you are sending the correct termination character.  The default is 0x0A (newline).
    Jeff

  • Using USB Printer on Beige G3 with Localtalk/Serial Port - How?

    I have an Epson Stylus 740 which has both DIN 8/Serial port and USB connections, but the serial quit showing-up, so I want to connect via the USB connector. Is this possible?
    Is there an adapter from DIN 8 Serial/Localtalk connector on Beige G3 to USB for Printer?
    Or do I need to buy a PCI to USB card?
    Other solution?
    thanks

    Russo:
    If you tried to connect an adaptor to the serial port that had a USB connector on the end, it probably won't work since the serial port isn't currently working. You'd need a USB PCI card to connect to the USB.
    I have this same printer, originally used the serial port and then switched to USB when I got the PCI card. This has worked great.
    You should see if something got turned off. Look at these:
    Under the Apple Menu>Control Panel > AppleTalk - make sure the printer port is selected
    Under Apple Menu>Control Panel > Remote Access > Modem (from the drop down menu) - make sure that the printer port isn't selected
    Under Apple Menu > Control Panel > USB Printer sharing - make sure that is turned OFF.
    You might also have to install drivers for the Epson from the disk that came with it. If you insert the CD and choose "custom install" you'll get another screen that allows you to choose the serial driver package.
    Post back if you get it working (or don't).
    HTH.
    A

  • Connection to serial port via USB adapter- error -214722150​3

    I am trying to drive a stepper motor provided with possible Labview or VB programs. This motor is supposed to be connected via serial port, but the computer has not some, so I bought an USB adpater to connect my motor via USB. I am using the labview programs provided (Labview 8.0). The program cannot connect to the port and returns error -2147221503. Where may I find some help with that ?
    Thanks
    Attachments:
    error labview.JPG ‏234 KB

    I see references to 'Luminos'. Is this the provider of the stepper motor and LabVIEW code? If so, your first step should be to contact them. The whole VI is nothing but ActiveX properties and methods and the vendor would be the only one who knows what is going on.

  • Can air for html/ajax accessing serial port or usb?

    I just have made use of Adobe AIR .I want to use printer with
    air . Do air have some poperties to accessing serial port or usb?
    I look up that on the Adobe AIR documents.I only found
    'Adobe® AIR™ provides the eans to check for changes to
    the network connectivity of the computer on which an AIR
    application is installed'.
    Do you have some demo with Adobe AIR accessing serial port or
    usb ?
    Or has another poperties to do that!
    thank you!!

    There is no API for accessing the serial port. USB devices
    can only be accessed through the file system (and only if they are
    storage devices).

  • How to connect serial or usb or parallel port

    telll me how to connect our application with serial port and how to detect weather the usb is connected or not

    Without spending too much time looking at the documentation, from using previous similar transducers, the primary two connections you are concerned with are the "+output" and the "ground". The other connections are also important, but aren't directly the concern of the Data Acquisition Hardware. The "+output" produces a variable dc voltage relative to the "ground" input that is a product of the applied pressure, with the maximum output voltage, as shown on the chart, indicating maximum pressure. So you would connect those, through a suitably shielded, moderately short length, wire to the "DAQ" analog input. You will also have to supply the transducer with it's required + supply voltage at pin 2 "vs", and the power supplie's negative to the ground. There are whitepapers on this NI site about connecting to data acquistion hardware and I strongly suggest reading them a couple of times as well as anything online you can find. Writing the DAQ software, in LabVIEW or whatever, can be trivial compared to making the correct, low noise, connections to sensor hardware.
    I didn't read how the offset adjustment signal is produced or its use, figure it is designed to allow you to "tune out" some signal offset caused by differences between sensors of a type (they will not all have the same "fullscale output" as indicated in the chart).
    As you proceed, please keep asking.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Multiple serial ports reading from a shared USB port

    I have a program that reads from 4 flow controllers, which send data through RS232 serial ports. Because the computer is located pretty far away, the vendor suggested to use an Edgeport box to convert RS232 to USB, then convert to ethernet port using a SuperBooster converter. The signal travels long distance in ethernet cable to the computer and get converted back to USB, then to the computer. In MAX, I was able to see 8 com ports from the Edgeport box, and I was able to communicate with my flow controllers.
    The problem is, it will give me some error message occasionally. Sometime it's a VISA Read error, sometime it's a VISA framing error. Could this be caused by the way the signal is transmitted?
    In the program I have four parallel WHILE loops that constantly do READ and WRITE to the 4 flow controllers. Could this be causing the errors? If so, what is the best strategy to design this program?
    Thanks

    I agree with Mike, you will need an error handling strategy that accounts for these errors.  And retries the communications.  This can be a little tricky, but very doable.  I believe some sort of statemachine approach will work best for this. 
    As for your heated probe.  I would make some sort of hardware interlock that will shut it down in case of a coolant failure.  NEVER, EVER trust the computer to be running where safety is concerned, either for personal or hardware.  There are plenty of ICs that can monitor temperature, and have warning, and alarm outputs!  Another option is some sort of watchdog on the communications bus for the coolant control, but I think this is a bit more tricky. 
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • VISA get resource name doesn't return USB serial ports

    We built an application on a computer that had an onboard serial port - COM1.  We put the option to change the COM port in the application.  We installed the built application on a computer with no serial ports, but installed a USB to serial converter that registers as COM3.  LabView does not see this port, even with a test application to return only the VISA resource names. 
    We have verified that the port is good with another program (a Modbus simulator) and installed the latest VISA runtime v4.41 separately to no avail.
    Any suggestions at further troubleshooting would be extremely helpful.
    Joe T.
    Solved!
    Go to Solution.

    My main application still isn't working, but now the small test ones are.
    Here's what I did:
    1.  Update my LabView 8.5 with the latest VISA runtime - 4.4.  This updated the Installer as well.
    2.  Added the MAX Installer to the build.
    3.  Added  the NI-VISA Configuration Support to the build
    4.  Uninstalled the application and reinstalled it with the new install volume.
    When I run MAX, COM3 shows up.  It also shows up in the Get Resources test application.  The simple test Modbus write program works, too.  I have a sneaky feeling that COM1 may be hard-coded somewhere in the main application; our next task is to find where the communications breaks down in our code.  The bottom line seems to be a lack of experience with the Application Builder on our part.
    Thanks to all who contributed!
    Joe T.

Maybe you are looking for

  • Itunes 7 and Multi Disk Backup Erroneous Message

    iTunes 7 Backup feature gives a completely erroneous message when it completes the 1st of multiple (DVD) disks (tried and it did this twice). Message says backup failed but provides options to "retry", "cancel" or "next". First time I just cancelled.

  • Powerbook G4 12" power charger

    My laptop charger has been acting up, and I noticed the chargers have different numbers (45, 60,) and I think mine is 45W. Which one do I need to purchase to replace mine?

  • When to use jsp,and when to use servlet?

    I think that jsp and servlet can realize the same functions, because when run a jsp, it is transferred to a servlet program, so when to use jsp and when to use servlet? I am now developing the input interface for a website, I just use jsp and javabea

  • How a client could retrieve interested data from log file in dbxml?

    I have heard about db_printlog utility in BDB. Is there any similar utility (like shell command or API) in bdbxml?. I want to extract updated nodes from log file.

  • Flex 2:  Drag and Drop

    Hi, I need help or maybe I can get some advice. I have a TileList that gets populated by buttons. I am using HTTPService as my WebService. I have a component called Buttons.mxml, to use as itemRenderer for my TileListEx.mxml. Everything is good as fa