Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Online Firmware Updater COM port Configuration #1

Open
KiranShingote opened this issue Apr 21, 2022 · 12 comments
Open

Online Firmware Updater COM port Configuration #1

KiranShingote opened this issue Apr 21, 2022 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@KiranShingote
Copy link

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 elmasria added the bug Something isn't working label Apr 22, 2022
@elmasria
Copy link

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
Copy link
Author

KiranShingote commented Apr 22, 2022

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
Copy link

Hi @KiranShingote,

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

Best Regards,
Ahmad EL Masri

@KiranShingote
Copy link
Author

Thank you Ahmad,

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

Regards,

Kiran

@elmasria
Copy link

@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
Copy link
Author

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
Copy link
Contributor

siryisdev commented Apr 27, 2022

Hi @KiranShingote,
Can you pls provide info about:

  • OS which you are using
  • Device that you have
  • What type of device you want to provision on pycom website.

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
Copy link
Author

KiranShingote commented Apr 27, 2022

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants