Page 1 of 1

v 0.2.1205.1 - Read Faild

Posted: Tue Dec 06, 2022 4:43 pm
by schinfo
Since the last update I've got this error under Windows 10

I've tried it as adminstrator - same error.


Screenshot 2022-12-06 173622.png

Re: v 0.2.1205.1 - Read Faild

Posted: Tue Dec 06, 2022 6:13 pm
by MM7DBT
Looks the COM Port is already being used by some other program, although that should have been caught earlier, before trying to do the read/write.
In order to determine whether the port is in use or not CPEditor tries to open it, if successful it then closes it and runs the read/write operation in Python.
If it fails to open it then it displays the error below.
cperror.PNG
Since it's not showing that error and throwing the unhandled exception from Python, I'd guess that CPEditor isn't closing the port quick enough and it's still showing as open when Python tries to use it.
The only way I can replicate that error is to manually open the port before Python does BUT after CPEditor has already checked if it was in use.
pyerror.PNG
Check that nothing else is using the COM Port, for example, having the CPS open at the same time will keep the port open.
I'll also add a further check to be sure that the port is actually closed before launching Python, I'll upload a test build here with the changes and if it works I can add it to the next update.

Re: v 0.2.1205.1 - Read Faild

Posted: Tue Dec 06, 2022 6:52 pm
by schinfo
Thank you for your prompt reply.
Unfortunately the test build has the same error.

Re: v 0.2.1205.1 - Read Faild

Posted: Wed Dec 07, 2022 9:26 am
by schinfo
Hello David,

I was able to narrow down the error. It only happens to me with Windows 10.
The COM interface works once after switching on the device, then the error message appears.
On my other PC with Windows 11 everything works fine.
Maybe this information will help you.

Re: v 0.2.1205.1 - Read Faild

Posted: Wed Dec 07, 2022 7:56 pm
by MM7DBT
Unfortunately that doesn't narrow it down much, it's a strange error if the COM Port isn't in use by anything else.

I use Windows 10 on my main computer and Windows 11 on my laptop. Both have no issues with any of my programming cables.
The Prolific one that originally came with the radios.. An FTDI based cable and a home-made cable using a CP2102 UART board.

Re: v 0.2.1205.1 - Read Faild

Posted: Fri Dec 09, 2022 5:57 am
by jdspruill
Where did this version come from? The last update I have is 0.2.1202.1....I don't see this listed on the update page. Just curious.

Re: v 0.2.1205.1 - Read Faild

Posted: Fri Dec 09, 2022 10:02 pm
by MM7DBT
I didn't have time to update the forum with the changelog at the time, then I just forgot about it :lol:

Nothing major has changed, just a bugfix that was causing the read/write to fail.
"Fixed issue with APRS CTCSS Tone causing failed codeplug uploads."