yellobyte / ElectronicLoad-Control-XY-FZ35

Control Program for Electronic Loads XY-FZ25 and XY-FZ35
17 stars 2 forks source link

Windows 11 Error opening port #2

Closed PricelessToolkit closed 1 year ago

PricelessToolkit commented 1 year ago

Hi, when I choose the com port I get the error "Error opening port" Even the LEDs not blinking on the USB TTL adapter, but with PuTTY communication is working "When I type something I got a response (failed)"

yellobyte commented 1 year ago

Hi there, Win11 isn't the problem. Update the drivers for the small USB-TTL board. Check the respective COM port in the Windows device manager exists. Or try a USB-TTL board with a >>different<< chip (CH340/FT232/CP2102/CP2109/etc.) Cheers

yellobyte commented 1 year ago

And surely, try different USB ports !! USB2.0, 3.0, 3.1, front, rear, on MB, etc. Of my 12 USB-A ports in the PC, two of them reject to work with any USB-TTL adapter. One is a socket on an extension card. The other 10 work flawlessly with all tested adapters. It took a while to figure it out.

PricelessToolkit commented 1 year ago

Thanks for your quick response, yes of course I tried different ports and adapters, I checked it with other software too "TestController" and its works, on all USB ports. I think the program simply can't open the COM port. if I open the same port with any SERIAL program and send "start " I can see incoming data.

yellobyte commented 1 year ago

Tried a different PC ? Laptop ?

PricelessToolkit commented 1 year ago

Thanks for your time! but unfortunately, the same behavior on my wife's laptop, PuTTY, and Arduino IDE serial monitor all work except what I really need.

PricelessToolkit commented 1 year ago

i will try to debug with Virtual Serial Port Emulator https://www.eltima.com/products/vspdxp/?gclid=CjwKCAjwjMiiBhA4EiwAZe6jQ-vn3UOTN0uB0tBPj6i7qf0sD57WjNk7uH_LjHNDOcoxGKpLahnEVhoCFOsQAvD_BwE

yellobyte commented 1 year ago

Maybe running the prog as admin helps

PricelessToolkit commented 1 year ago

virtual uart When I connect it with a split virtual com port its works COM16 FZ35 COM2 PyTTY COM1 Electronic Load

yellobyte commented 1 year ago

You had successfully opened COM3. Was that a real one ? The load just didn't answer...

PricelessToolkit commented 1 year ago

no COM3 is virtual, he got no answer because I connected the first to the "VIRT COM" and then the real one

yellobyte commented 1 year ago

If VSPE is the solution for you then have fun with the program. Hope it's useful for you. Cheers

PricelessToolkit commented 1 year ago

Thanks

yellobyte commented 1 year ago

As a last thought: Running the prog in a VM with a virtual COM port pinned to a real one might work too. COMinVM

PricelessToolkit commented 1 year ago

Thanks that is a good idea!

yellobyte commented 1 year ago

Oh yes, please give it a star if you think it's worth one :-) Thx

yellobyte commented 1 year ago

Just for the sake of trying: I build a version 1.2.1 this time with VSCommunity2022/SDK11/Redist2022. Can you please give it a try and see if it fixes your problem on Win11 ? Merci beaucoup! --> rename extension from .jpg to .7z and unzip it for usage. (The one online which gave you COM troubles is V1.2.0 built with VSC2019/SDK10/Redist2019.) ElectronicLoad_V1 2 1_x64 exe

PricelessToolkit commented 1 year ago

Hi, and thanks, no I can't test it with USB-TTL, I integrated Bluetooth module HC-05 "Soldered directly" and it works very well.__

blackonix-gh commented 10 months ago

Hi there, just letting you know that version 1.2.1 on Win11 does not fix the problem

yellobyte commented 10 months ago

Hi, I'm running this tool on different Win11 machines (R9-5900X, i5-11400, Laptop i7-1165G7) connected via CP2102 USB-TTL with driver version 10.1.10.103 without a hint of a problem. I'm puzzled as to what the problem could be. Load1

yellobyte commented 10 months ago

Just gave this one a try and worked as well. Maybe a USB-TTL driver issue ? Load2

blackonix-gh commented 10 months ago

Maybe the problem is in a cheap Chinese USB-TTL module. Unfortunately I can’t check that because I don’t have others at hand image

yellobyte commented 10 months ago

Use a CP2102 module and give this one a try: CP210x_Universal_Windows_Driver.zip

Yoliq commented 7 months ago

EDIT after connection adjustment (I had RX connected on RX and TX on TX) issue is still present. Putty connection works fine, see image. So I suppose problem is with SW.

Hello @yellobyte , issue still active with CP2102 chip and driver version 10.1.8. Computer with Windows 11. See images attached. IMG_0925 IMG_0926 IMG_0927 ![Screenshot 2024-02-08 135154](https://github.com/yellobyte/ElectronicLoad-Control-XY-FZ35/assets/61565461/9dc899ea-79b Screenshot 2024-02-08 163451 4-4d8f-b7db-2d30f7d15180) Screenshot 2024-02-08 135315

yellobyte commented 7 months ago

Pls get me a snapshot of the program when the error message shows up.

Yoliq commented 7 months ago

Pls get me a snapshot of the program when the error message shows up.

Here it is. In the meantime I tested on Windows 10 computer and program works there. See my next post. Snapshot below is from PC with Windows 11 where program do not work.

Screenshot 2024-02-08 135154

Yoliq commented 7 months ago

Program works with Windows 10 PC. See images below.

Screenshot 2024-02-11 113901

Screenshot 2024-02-11 113937

Also see that the driver used is old version --> so this should not be a driver issue.

My guess:

Program works when COM number is 1 decimal (e.g. COM7). But the moment COM number is 2 decimal (e.g. COM13) the program breaks. I would investigate in this direction.

yellobyte commented 7 months ago

Thanks. I'll come back to you.

Yoliq commented 7 months ago

Ok, thank you.

yellobyte commented 7 months ago

New release 1.3.0 is attached. COM issue supposed to be fixed. Pls give it a decent try and report any issues. ElectronicLoadV1.3.0.zip

Yoliq commented 7 months ago

Works like a charm 😁

So far tried:

Only issue is that Windows Defender auto blocks file when downloaded. So in order to run program you have to temporarily disable it.

image

yellobyte commented 7 months ago

Thanks for testing! Without further issues I will release this version shortly. Cheers Thomas

yellobyte commented 7 months ago

BTW: You wouldn't happen to know the protocol of the ATORCH DL24 load by any chance ? BTW 2: Did you realize you can click on the values in the "Operational Settings" section and the respective dialog pops up ?

PricelessToolkit commented 7 months ago

By the way, have you tried measuring the accuracy of the device? for my unit is 0.6-0.9A off the measurement.

yellobyte commented 7 months ago

I tested a few of my devices years ago. Below are the pairs Set:Measured, all in Amps, done with a Brymen BM257s. Device 1: 0.01:0.013, 0.02:0.023, 0.1:0.107, 0.2:0.207, 1.0:1.037, 2.0:2.058, 3.0:3.070, 4.0:4.080 Device 2: 0.01:0.004, 0.02:0.013, 0.1:0.093, 0.2:0.194, 1.0:0.993, 2.0:1.993, 3.0:2.993, 4.0:3.994 Device 3: 0.01:0.003, 0.02:0.013, 0.1:0.096, 0.2:0.199, 1.0:1.033, 2.0:2.054, 3.0:3.088, 4.0:4.126 Obviously normal production tolerances. One of the many devices I bought became toast after using for a few minutes at 5A. All others were fine. Overall I'm still satisfied with the little gadgets. You really can't complain at that price anyway. BTW: Does 1.3.0 fix your old COM problem ?

PricelessToolkit commented 7 months ago

That means mine is defective, I haven't checked more than 3 amps. yes, I completely agree, for this price it is a good device. Maybe you know another similar device 2-3 amps but more accurate and up to 100$ ?

Thanks

yellobyte commented 7 months ago

Bought an ATORCH DL24 recently (150W) for 20USD just for playing around with the protocol which is still unknown to me. Not really used or tested so far.

Yoliq commented 6 months ago

BTW: You wouldn't happen to know the protocol of the ATORCH DL24 load by any chance ?

--> sorry to dissapoint, I do not :( Have you tried to contact the manufacturer?

BTW 2: Did you realize you can click on the values in the "Operational Settings" section and the respective dialog pops up ?

--> I did not, its nice little touch!

By the way, have you tried measuring the accuracy of the device? for my unit is 0.6-0.9A off the measurement.

--> Tried yesterday with Lion battery 3S6P configuration. Load currents were set to 2A, 1A, 2.7A. Accuracy was always around +-10mA.

yellobyte commented 6 months ago

Just fyi: I have uploaded version 1.3.1. Only minor changes & a small bug fix to 1.3.0. Clicking on the left chart axis will change scale. Have fun! Oh yes, bug reports are welcome.