v 0.2.1205.1 - Read Faild

Report any bugs or errors you find here.
Post Reply
schinfo
Posts: 3
Joined: Tue Dec 06, 2022 4:31 pm

v 0.2.1205.1 - Read Faild

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
MM7DBT
Site Admin
200posts
Posts: 209
Joined: Wed Jun 02, 2021 6:59 pm
Location: Scotland
Callsign: MM7DBT

Re: v 0.2.1205.1 - Read Faild

Post 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.
You do not have the required permissions to view the files attached to this post.
-73 de MM7DBT
schinfo
Posts: 3
Joined: Tue Dec 06, 2022 4:31 pm

Re: v 0.2.1205.1 - Read Faild

Post by schinfo »

Thank you for your prompt reply.
Unfortunately the test build has the same error.
schinfo
Posts: 3
Joined: Tue Dec 06, 2022 4:31 pm

Re: v 0.2.1205.1 - Read Faild

Post 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.
User avatar
MM7DBT
Site Admin
200posts
Posts: 209
Joined: Wed Jun 02, 2021 6:59 pm
Location: Scotland
Callsign: MM7DBT

Re: v 0.2.1205.1 - Read Faild

Post 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.
-73 de MM7DBT
jdspruill
0posts
Posts: 2
Joined: Tue Mar 15, 2022 10:14 pm
Callsign: W5TLR

Re: v 0.2.1205.1 - Read Faild

Post 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.
User avatar
MM7DBT
Site Admin
200posts
Posts: 209
Joined: Wed Jun 02, 2021 6:59 pm
Location: Scotland
Callsign: MM7DBT

Re: v 0.2.1205.1 - Read Faild

Post 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."
-73 de MM7DBT
Post Reply