Hey Don,
I've noticed that under the following conditions, the Zbasic IDE CPU utilization on my PC spikes to 100%:
1) I have a USB serial adapter connected to my laptop
2) The Zbasic IDE is running and the adapter is "Connected"
3) I remove the USB serial adapter from my laptop
At this point, the CPU utilization immediately spikes up to 100%. I can fix the problem by simply closing the COM port, or shutting down the IDE. But sometimes I just forget and wind up killing my battery with all that CPU utilization.
I can't tell if this is an issue with the serial drive, or the IDE specifically, but *if* it's the IDE, it would be great if it could detect and resolve this condition.
-Jeff
IDE CPU Utilization Spike
Re: IDE CPU Utilization Spike
The IDE doesn't know anything about the existence of the USB device. Rather, it interacts with the driver that presents a virtual serial port interface.everest wrote:I can't tell if this is an issue with the serial drive, or the IDE specifically, but *if* it's the IDE, it would be great if it could detect and resolve this condition.
I suspect that this is an issue within the FT232 driver and that it could only be resolved there. It would be interesting to conduct the same experiment replacing the IDE with some other application that opens the virtual serial port, e.g. a terminal emulator like TeraTerm, and see if the result is the same.
- Don Kinzer
IDE CPU Utilization Spike
You say you're removing the hardware while the application port is
open? How would you have the OS handle that circumstance?
Tom
open? How would you have the OS handle that circumstance?
Tom
Tom
I've used several of these under Windows/Linux/OSX...which has a Prolific chipset. I've never tested your scenario but it might be worth $10 to see if its driver handles this.everest wrote:It is a very simple FTDI adapter sold by Parallax for around $15.
These are even cheaper...The one on the left uses Prolific, the one in the middlet is Silicon Labs.