FTDI driver == exploding computer
Bobb Fwed
Posts: 1,119
I have a small run of a product I am developing, each of the units has an FTDI chip on it (some of you may have helped me with that resent issue). The problem I am having has to do with the driver. Each time I plug in another unit to program it, another COM port is added to my computer. I am up to over 20 at the moment, but that is going to go way up really soon.
A few different options I imagine should be possible, but ease of implementation may vary.
First, I leave everything as is, and my computer one day blows up because I reached the limit of possible COM ports which appears to be 256. That won't take long, but until then this whole problem is only an annoyance. If this limit wasn't there, I could actually use the COM number to give each Propeller a unique identifier as I program them, but alas, no joy.
Second, an option in the driver (or a different driver) that would put all FTDI chips as a single COM (say COM3). This prevents me from using more than one FTDI chip at any one time, but currently that is not a problem.
Third, and probably already available, is just to go through and delete the COM's that I haven't used in a while (but I do not know the correct way to do this).
Any help/ideas?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
April, 2008: when I discovered the answers to all my micro-computational-botherations!
Some of my objects:
MCP3X0X ADC Driver - Programmable Schmitt inputs, frequency reading, and more!
Simple Propeller-based Database - Making life easier and more readable for all your EEPROM storage needs.
String Manipulation Library - Don't allow strings to be the bane of the Propeller, bend them to your will!
Fast Inter-Propeller Comm - Fast communication between two propellers (1.37MB/s @100MHz)!
A few different options I imagine should be possible, but ease of implementation may vary.
First, I leave everything as is, and my computer one day blows up because I reached the limit of possible COM ports which appears to be 256. That won't take long, but until then this whole problem is only an annoyance. If this limit wasn't there, I could actually use the COM number to give each Propeller a unique identifier as I program them, but alas, no joy.
Second, an option in the driver (or a different driver) that would put all FTDI chips as a single COM (say COM3). This prevents me from using more than one FTDI chip at any one time, but currently that is not a problem.
Third, and probably already available, is just to go through and delete the COM's that I haven't used in a while (but I do not know the correct way to do this).
Any help/ideas?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
April, 2008: when I discovered the answers to all my micro-computational-botherations!
Some of my objects:
MCP3X0X ADC Driver - Programmable Schmitt inputs, frequency reading, and more!
Simple Propeller-based Database - Making life easier and more readable for all your EEPROM storage needs.
String Manipulation Library - Don't allow strings to be the bane of the Propeller, bend them to your will!
Fast Inter-Propeller Comm - Fast communication between two propellers (1.37MB/s @100MHz)!
Comments
— David Carrier
-Phil
Well, if this is true, maybe I won't have an issue and I can implement the unique identifier thing. I read on a few different websites that windows had the 256 limit, but maybe that was older operating systems. What version of windows does the your test machine have?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
April, 2008: when I discovered the answers to all my micro-computational-botherations!
Some of my objects:
MCP3X0X ADC Driver - Programmable Schmitt inputs, frequency reading, and more!
Simple Propeller-based Database - Making life easier and more readable for all your EEPROM storage needs.
String Manipulation Library - Don't allow strings to be the bane of the Propeller, bend them to your will!
Fast Inter-Propeller Comm - Fast communication between two propellers (1.37MB/s @100MHz)!
-Phil
open up a command prompt (as administrator if needed)
Set devmgr_show_nonpresent_devices=1
devmgmt.msc
view->show_hidden_devices
then under com ports you will see all the com ports that are not plugged in at the moment and can delete them
My suggestion then is to load a small linux like PuppyLinux if not Mint into VirtualBox and assign the FTDI port to it. The virtual Linux environment just becomes another program like any other and you never have a problem finding the comport. Better still, just boot into Linux full-blown.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*Peter*
You can also manually manipulate the com port assignments in device manager so that the com ports are numbered as you wish. I modified a setup that had four FTDI connected devices so that the com ports were in order in the same manner that the devices were physically located on the bench. This made it very easy to use since the test procedure required the operator to select different com ports during the test.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andrew Williams
WBA Consulting
WBA-TH1M Sensirion SHT11 Module
My Prop projects: Reverse Geo-Cache Box, Custom Metronome, Micro Plunge Logger
Windows allocates a new COM port for every new serial number (short sighted and ugly)
Linux allocates the /dev/ttyUSBx in the order they are plugged in (pretty silly if you value persistence)
OSX names each serial port with the serial number of the device /dev/tty.USB.xxxxx serialnumber. (really very elegant).
One day I'll get around to writing a udev rule for Linux that makes it behave that way (it's not hard, I'm just lazy).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Are you suggesting coconuts migrate?"