pycom / pycom-firmware-updater

6 stars 1 forks source link

Online Firmware Updater COM port Configuration #1

Open KiranShingote opened 2 years ago

KiranShingote commented 2 years ago

Hi Team,

I am using the L04 module with my application board. I could update firmware using Offline Firmware Updater but do face an issue after selection of comport while using Online Firmware Updater. It shows an error Cannot configure the port, something went wrong. Original message: OSError(22, 'The parameter is incorrect.', None, 87)

Kindly guide me for the same.

Thanks and Regards,

Kiran

elmasria commented 2 years ago

Hi @KiranShingote

Thank you for reporting the issue.

Which version of pycom-firmware-updater are you using?

Make sure that the device is not connected to any other terminal/application.

Have a nice day.

Best Regards, Ahmad El Masri

KiranShingote commented 2 years ago

Hi Ahmad,

Thank you for reply. I have Pycom -Online-Firmware-Update version 1.0.3 which is downloaded from Firmware Updater page on Pybytes by clicking on Windows Installer. And I sure the port is not connected to any other application/terminal. Also, I checked that Pycom-Online-fwtool is running in task manager.

image

image

image

Regards,

Kiran

elmasria commented 2 years ago

Hi @KiranShingote,

Most probably because of the selected default speed, can you try to use this value "115200"?

Best Regards, Ahmad EL Masri

KiranShingote commented 2 years ago

Thank you Ahmad,

But this doesn't work. Next button is still disabled.

Regards,

Kiran

elmasria commented 2 years ago

@KiranShingote make sure you do scan after you select the speed and reselect the target device (ensure that the speed is set before selecting the device)

KiranShingote commented 2 years ago

Thank you Ahmad,

I did the same as you suggested. If click on Rescan button, speed changes to 921600 again. Whereas If I select 115200 speed and select port from dropdown, It shows OSError as mention in the first message.

Regards,

Kiran

siryisdev commented 2 years ago

Hi @KiranShingote, Can you pls provide info about:

Also you can firstly try to download the latest version of the pycom-firmware-updater from Release page(https://github.com/pycom/pycom-firmware-updater/releases). Another option is to connect device to another port.

Regards, Stas

KiranShingote commented 2 years ago

Hi Stas,

OS is Windows 10 Pro (64 bit) I have the L04 module on my application board. On clicking on the mentioned link, I am getting the below message. I guess have downloaded the same software from the Pybytes website. I also tried it on different PC and ports.

image

One another observation, when I tried reinstallation, It stuck at the below screen forever.

image

Then I closed installation through Task manager and It showed the below message.

image

And when I clicked finish, It showed the below message,.

image

Thanks and Regards,

Kiran

siryisdev commented 2 years ago

First try to delete all the pycom-firmware-updater instances (current one and previous). By default it located at C:/Program Files x64/Pycom And reinstall the one you download today. Installation sometimes is bugged(we will fix this in the next release) and need to be closed through task manager. Then you will have an item in the main menu with which you will be able to start the app. If app is working there will be a tray icon with green label. And then try to do all the steps once again.

siryisdev commented 2 years ago

Also there is a possibility that you have a bad Com port drivers for Windows 10. You will need to update them. The issue that you send is known for some Windows 10 versions. The problem is that for communicating with device the app need to write some configs to device through COM port, but the library that we use underneath can't do it cause there are some additional restictions on Windows 10 build.

KiranShingote commented 2 years ago

Hi Stas,

As you suggested I did the same uninstall-install process. Application is running in the background now but still I am facing the same issue.

image

Secondly, you mentioned about main menu. I do not see any window and main menu. Please clarify.

MY PC comport works fine for Offline firmware updater. Any solution on additional restrictions you mentioned?

Thanks and Regards,

Kiran

siryisdev commented 2 years ago

After proper uninstall process, there should be no background process. We redesign app to work as usual application, not a service.

Offline firmware updater can use other tools to connect to your device. COM port will work ok, but Windows 10 on some builds has some restictions, that won't give us access to your COM port device without additional drivers