[SOLVED] usb serial port emulation

Hello
I'm an Arch newbie. I just purchased an HP Neoware CA21 thin client, replaced the small DOM unit by a 1GB module, and installed Arch on it. I would like to use this device as a kind of data logger, 24x7 continuous operation.
  The device I'm reading is an ADC connected via a USB port, which provides a CDC/ACM interface. When I plug it into the CA21 USB port, /dev/ttyACM0 does appear. Under Ubuntu on a normal PC the same happens but I find I can only use it via the usbserial driver, which provides serial port emulation for a USB device, creating /dev/ttyUSB0. That's because I can't get the java serial port interface rxtx to recognise a ttyACMn device, for reasons I don't understand and am still investigating.
So, I have a couple of newbie questions about Arch ...
1/ is there an equivalent to usbserial, ie a serial port emulation for USB ports?
2/ if not, or perhaps more correctly, how can my java app interface to ttyACM0? The Arduino crowd may know about this.
3/ I'm kind of assuming rxtx works under Arch - is that right?
Thanks for any help.
Andrew
Last edited by mistertransistor (2011-11-12 16:43:03)

Well, kind of solved. I found that
- adding the "options usbserial ..." line does not prevent ttyACM0 from appearing when the device is plugged in
- once ttyACM0 is there, no amount of "modprobe usbserial ..." will make ttyUSB0 appear
- however, if you "rmmod cdc-acm" and then "modprobe usbserial ..." you will get a ttyUSB0
Having figured that out, I got a test app reading the USB port with no problems. However my real app gave some odd 'Main class not found  ...' error even though the exact same jarfile runs fine under Windows XP (you may be wondering why I develop there rather than under Ubuntu. Well, I have a dual-boot machine XP/Ubuntu and NetBeans runs *much* better under XP - quite puzzling).  Eventually I solved this by creating a new NetBeans project/application and copying in the code from the existing one - a total mystery to me).
So now the device is in my garage collecting data from my seismograph. I'm writing to a USB stick, not sure about how long that will last but as I don't delete files much it's always writing in a new area and any given area gets very few write cycles.
This is marked SOLVED but I still have not found how to read ttyACM0 and I would like to do that.
Andrew

Similar Messages

  • I want to write and read a hex file from the flash buffer of the microcontroller through the USB serial port

    hello sir,
    I am developing a GUI screen from that i want to write and read a hex file from the flash buffer of the microcontroller through the USB serial port. the driver i am using is FTDID2XX driver.if anyone having examples of loading file through serial port.Please reply me .
    Thanks

    Looks like you should post your request in the LabVIEW forum, this one here preferentially is for LabWindows/CVI...

  • PXI-8176 usb serial port multiplexe​r driver installati​on

    How do I install the USB drivers for a USB/serial port multiplexer on a PXI-8176 with LV Real Time OS?? The PXI-8176 has two USB ports.
    Thanks
    Peter

    Buzz,
    Thanks for making your post here in the Discussion Forums.
    Your USB question is an interesting one. While you may be used to using USB hardware with your computer, USB hardware is not generally used in the LabVIEW RT operating environment. As this pair of short KnowledgeBases notes, USB hardware is not supported under LabVIEW RT and having USB enabled in RT tends to introduce jitter to your RT application:
    Does LabVIEW Real-Time Support USB Communication?
    Too Much Jitter When Running a LabVIEW RT Application
    Hopefully, this won't be too detrimental to your application. If you are looking for a way to accomplish something without using USB you may want to post some details of what you are trying to accomplish. This forum would hopefully be able to guide you toward an alternative method of accomplishing your goal.
    Regards,
    Jed R.
    Applications Engineer
    National Instruments

  • 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.

  • Startech usb serial port

    I have a test that needs to communicate to a piece of test hard through a usb to RS485 adapter.  However I do not seem to be getting any message to through the serial port.  Is there a simple test I could run to make sure that I can send something trough the digital com port?

    Hi GTRITom,
    Please see the following article about performing a Loopback Test. 
    http://www.ni.com/white-paper/3450/en
    Regards,
    Nathan S.
    Applications Engineer
    National Instruments

  • Konia 5800 usb serial port inf

    exccesfully installed nokia 5800 modem by downloading inf file MDMCPQ.INF there is another inf i need to download its serial usb port please tell me which is the filename?
    [IMG]http://i53.tinypic.com/wbuc1j.jpg[/IMG]

    this is winxp lite and it was hacked to remove unneccesary files nothing illegal.

  • FCP and USB-Serial ports

    I need to conrol my betacam sp deck (Sony BVM-70) via RS 422 in FCP. Does any one have a working combo based on a serial to USB cable, and if so, does FCP 5.1.4 allow deck contol via the capture window? I also would like to know if any one has a solution for a USB to paralell cable that will allow me to run a lightwave dongle via such a cable? Most cables of this type only run printers, not other devices. Please, known working solutions only....

    Here's how I have rs422 control through usb.
    Purchase a Keyspan USA-28X usb to serial adaptor http://www.keyspan.com/products/usa28xg/homepage.spml
    Purchase an Addenda cable to span from the mini-din connector on the keyspan to the d-sub connector on your vtr. Scroll to the bottom of this page: http://www.addenda-elect.com/product.htm
    This combo is used by lots of folks and it works very, very well.
    Good luck.
    Zeb

  • 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

  • HP Mini - Is there a serial port?

    On the HP Mini 110-1030NR, I need to use software that communicates through a serial port but the Mini does not show any serial ports. Is there any way to enable the serial port? I have looked in the BIOS and the Advanced section is not listed which is where the HP website support says to go to enable serial ports. Am I out of luck?
    Thanks-

    HI,
    DaleWA wrote:
    Sorry I mixed too many issues in the last message. 
    I think the simpler question is:  Can I use a USB to serial adapter with the HP Mini 110-1030NR?
    If so, how do I get it to work? I have installed the driver that came with the adapter. I know the adapter worked on an old Dell laptop. So, the issue must be the HP.
    Do you still have the manual that came with the adapter?
    Does the device show up in Device manager?
    which OS is installed on your mini?
    look under Device Manager of the System Properties screen.  (Go there by Start-Setting-Control Panel-System Properties-Hardware-Device Manager-Select View-Device by connection).
    The device should have installed as a “USB Serial Port (COMx)” attached to “USB High Speed Serial Converter”.
    Change COM Port Properties & COM Port Number
    This feature is particularly useful for programs, such as HyperTerminal, which only work with COM1 through COM4.  Please ensure that you do not change the COM Port Number already in use.
    To change the virtual COM port properties:
    Select the “USB Serial Port”
    Click “Properties”
    Select “Port Setting”
    Select “Advanced”
    Click the drop down arrow on COM Port Number and scroll to the required COM port.
    Select “OK”
    Return to the Device Manager Screen.  You will see that the USB Serial Port installation has been changed to the new COM Port Number.
    Best regards,
    erico
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • VISA (Serial port) commands fail in the VI, but work in VISA test panel

    Hi, I have an instrument which has a usb connection. When I connect it to a Windows 7 PC, it automatically picks up the driver and shows up as a "USB Serial Port (COM7) (Manufacturer is FTDI). 
    When I open up NI MAX, this device shows up as COM7 (ASRL7::INSTR) under "Serial and Parallel". And, when I click on Open VISA Test Panel, and try the "*IDN?" command, it works OK.
    However, the VI (which just sends a VISA command "*IDN?") gives me a time out error (0XBFF0015) or a device/resource not present error ( 0XBFFF0011). Attached is a screenshot of the VI. 
    Any ideas why?
    Thanks. 
    PS: I went through the process to create the VISA-USB driver, but that has some other issue, but I am trying to understand why this occurs. This device also has a GPIB port and when I use a USB-GPIB adapter, it works very well. 
    Solved!
    Go to Solution.
    Attachments:
    problem_vi.JPG ‏24 KB

    SysB1 wrote:
    Hi, I have an instrument which has a usb connection. When I connect it to a Windows 7 PC, it automatically picks up the driver and shows up as a "USB Serial Port (COM7) (Manufacturer is FTDI). 
    When I open up NI MAX, this device shows up as COM7 (ASRL7::INSTR) under "Serial and Parallel". And, when I click on Open VISA Test Panel, and try the "*IDN?" command, it works OK.
    However, the VI (which just sends a VISA command "*IDN?") gives me a time out error (0XBFF0015) or a device/resource not present error ( 0XBFFF0011). Attached is a screenshot of the VI. 
    Any ideas why?
    Thanks. 
    PS: I went through the process to create the VISA-USB driver, but that has some other issue, but I am trying to understand why this occurs. This device also has a GPIB port and when I use a USB-GPIB adapter, it works very well. 
    Look up the examples that ship with LabVIEW.  What you have there isn't quite complete - for serial VISA.  While GPIB will work great with what you have, serial VISA requires you to configure your serial port and is a little more complicated to read.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Virtual serial port??? Vista 64 bit, usb dongle, palm 755p verizon

    I have a new 64 bit Vista OS and I'm having all the same problems everyone else is.  I can't hotsync using the cable.  I purchased the bluetooth dongle (Kensington) that many have said works.  My phone recognizes the PC.  My instructions on the phone for the hot sync using bluetooth instructs me to set up a virtual serial port.  The instructions are not very clear.  This is where it falls apart for me.  Can anyone explain how to set up this virtual serial port?  Thanks.
    Post relates to: Treo 755p (Sprint)
    This question was solved.
    View Solution.

    Well I'm happy to report a successful solution.  At the recommendation of some other threads I went out and bout and ioGear GBU321 USB Bluetooth adapter and setup was a breeze and it works (although it is SLOOOOOOW compared to a cable hookup, allow some time and plug your treo in during your first sync).
    To setup you do the following (And this may also work for your Kensington):
    Insert the driver CD
    Insert the dongle when asked.
    Install the drivers
    Pair your device.  Basically go to the Bluetooth setup screen on the Palm and select "Trusted Devices".  You'll find the bluetooth adapter, select it and then either the palm or the PC will either provide or ask for a paring code.  The instructions will guide you through but basically you'll want to make sure the same numbers are entered on both screens (this prevents you from accidentally pairing with some random nearby computer)
    This will actually set up your virtual port for you. 
    You then go into the hotsync manager and click "serial" and select the port just created from the pairing process. 
    If you don't know what port was created bring up "Control Panels" and select "Phone and Modem" (Assuming you are in "Classic View").
    Click on the modem tag and you'll see something like "Standard Modem Over Bluetooth Link" and next to it will be the assigned port.
    I hope that helps.  I know I was relieved to not have to trash either my Palm or my PC (Although when the Pre or an iPhone with a physical keyboard comes out all bets are off)
    Post relates to: Treo 755p (Verizon)

  • Using a serial port via kermit and a USB adapter

    I have need to use a USB->Serial adapter for connecting to console ports (Firewalls, etc). I bought a nice Keyspan adapter for this.
    First, I've not been able to find a version of kermit that will work on Snow Leopard. Anyone have an updated version?
    Second, which device do we use for "set port /dev/ttyXXX" ? Is there some novel way that the system tells you which tty is mapped to which port?
    I'm sure there must be more to it... there is a disc with these USB devices for OS X (though I'm not sure they'll work in Snow Leopard).
    Thanks!

    Take a look at GoSerial http://www.furrysoft.de/?page=goserial it configures the port and acts as a terminal. There is also the screen command in the terminal, and minicom you can get though macports.

  • 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

  • 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...

Maybe you are looking for

  • Need help in use of XMLResolver resolveEntity method

    Hi, I have implemented the XMLResolver interface and set the resolver to XMLInputFactory.setXMLResolver method. But when i try to execute the below program it throws exception. Below is the code. Could anyone guide me how to proceed ... ---Main java

  • Searching in reverse with regular expressions

    I have recently constructed a "Find" dialog for my editor and would like to support the use of regular expressions (for people who know more about them than I do.) I have radio buttons that allow the user to search down (from the current caret positi

  • Downloaded song doesn't play

    I just downloaded a song, and when I tried to play it in itunes, it wouldn't play. Also, it won't sinc to my ipod. So basically I paid for a song that I can't listen to. Any suggestions for what to do? Thanks

  • What is AdbeRdr60_enu_full_exe in other languages?

    Hi can someone help me out? I've an urgent translation to make, it's about Adobe Reader 6.0 and installing that version. In the steps to follow the following text appears: Double click AdbeRdr60_enu_full.exe . I would like to know how I should `trans

  • 2.1 update = 3G and 5 bars constant?

    I'm in Richmond VA, USA and now my 3G signal strength shows as being 5 full bars constantly since the recent update to 2.1 Is it stuck or is it just working as it should now? Any other Richmonders out there?