Hein (fub) wrote,
Hein
fub

  • Mood:

'Native' USB

As I reported earlier, I have been working with the FT232-chips from FTDI. (As an aside, I wish I had thought of the name 'Future Technology Devices' as the name of my company!)

There are drivers for these chips to create a virtual COM port: your software talks to the newly appeared COM port, the driver translates this into USB-data and the chip translates this back to TTL-level RS232.
However, it is not as elegant, and the user can always select a different COM port in your software's settings -- one that might not be the right one. Wouldn't it be much cooler if you simply could plug in your USB-enabled device, the 'found new hardware'-dialog told you that it is a 'CreaCon Widget', no extra COM port, and the software automatically picks up on it?

This is possible with the D2XX direct drivers -- with a few simple API calls, you can send bytes to the chip (via USB, obviously) which then translates this into TTL-level RS232. Which means no more virtual COM ports, auto-detect of the device, and all sorts of neat tricks.
I found some good sample code, and I will develop this further for use in my MaxPWM kit, which will allow you to program the color cycles and/or command the module directly through USB.
Tags: electronics
Subscribe

  • Final RPG-a-Day: Thank

    The last prompt for RPG-a-Day this year is ‘Thank’. If you have read every entry of this year’s RPG-a-Day, then I certainly…

  • Next-to-last RPG-a-Day: Mention

    Today’s prompt is ‘Mention’. I guess this is where I mention people I look up to, or websites I frequent? Ok, here’s…

  • RPG-a-Day 29: System

    We’re in the home stretch for this year’s RPG-a-Day! Today’s prompt is ‘System’. Paulo, who has been doing…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment