Shop OBEX P1 Docs P2 Docs Learn Events
USB port access same as serial port access from Visual Basic or C++ — Parallax Forums

USB port access same as serial port access from Visual Basic or C++

ChilesChiles Posts: 15
edited 2008-12-16 17:18 in General Discussion
hi and thx for any help in advance- I'm using Visual Studio 2005 and a basic stamp 2

If I buy an usb adapter so I can use one of my newer computers that doesn't have rs-232 port.· Will I thru the usb adapter be able to do everything I now do with a RS232 serial port?

If I load the usb driver, can I use the serial port tool found in Visual Studio when programming in basic or C++ now?

This is all after I have already programmed the basic stamp.

I hope i've made myself clear?
yeah.gif

Comments

  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2008-12-16 06:05
    Hi Chiles, Visual Studio will see your USB to Serial adaptor as a regular Com port so your fine there. I have read that certain USB to Serial cables will not work so I would recommend being sure you purchase a cable that works with Parallax products by ordering the one that Parallax sell.

    http://www.parallax.com/Store/Microcontrollers/BASICStampModules/tabid/134/List/1/catpageindex/2/ProductID/379/Default.aspx?txtSearch=usb+to+serial&SortField=ProductName%2cProductName

    Jeff T.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2008-12-16 17:18
    The Parallax USB to Serial has the hardwire flow control lines as well ast the Rx and Tx.

    That is important for programing BasicStamps, SXes, and Propellers. But it also comes in handy a serial port flow control can tell your PC to wait while a microcontroller is busy. Otherwise, your PC might send commands that are not being listened to by the microcontroller.

    In other words, get the adapter that has all the goodies. You will need them.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    How do you like my name change?

    aka G. Herzog [noparse][[/noparse] 黃鶴 ] in Taiwan
Sign In or Register to comment.