Thread: Reading From USB

  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    5

    Reading From USB

    Hello -

    I need to integrate data collection by reading from the USB port. There is no library functions for this device and currently can be read by Hyperterminal.

    Thanks!

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    >> and currently can be read by Hyperterminal
    Does this device show up as a COM port? What is the device?

    gg

  3. #3
    Registered User
    Join Date
    Jan 2007
    Posts
    5
    Yes - It shows up as COM 3 in Hyperterminal. Is a parallax device

  4. #4
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Do you just want to read data from the serial port?

    gg

  6. #6
    Registered User
    Join Date
    Jan 2007
    Posts
    5
    I want to read data from USB and its showing up as COM3 in Hyperterminal. Is that the same as reading data from the the serial port?

  7. #7
    Registered User
    Join Date
    Jan 2008
    Posts
    18
    Quote Originally Posted by mbh5m View Post
    I want to read data from USB and its showing up as COM3 in Hyperterminal. Is that the same as reading data from the the serial port?
    Post it clearer please.
    What type of device?
    Is this a converter from RS232 to USB (As I think from your description)?

  8. #8
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by mbh5m View Post
    I want to read data from USB and its showing up as COM3 in Hyperterminal. Is that the same as reading data from the the serial port?
    If your device turns up as Com3, then you should be able to use it as a seriall port (COM3) - if not, then there's something else that is wrong.

    Note that the fact that the device sits on USB has very little to do with how you read it at application level. You'd never say "How do I read from a PCI device" when you are using a built-in serial port, even tho' that is actually a PCI device, right?

    [You can of course, given the right set of software, read data directly from the USB device itself - but it wouldn't make much sense to do that].

    So, you need to find a "Serial port" comms package that you can use [or write one yourself, but if you want to make your life easy, find one that has already been tested and works, as there are many aspects of serial comms that can be quite tricky].

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 02-02-2009, 07:27 AM
  2. question about usb
    By h3ro in forum Tech Board
    Replies: 6
    Last Post: 01-18-2009, 05:02 PM
  3. Replies: 2
    Last Post: 01-28-2008, 03:07 AM
  4. reading thro an USB port
    By sdherzo in forum C++ Programming
    Replies: 1
    Last Post: 04-17-2007, 05:26 AM
  5. Printers On USB
    By (TNT) in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 03-10-2002, 11:48 AM