Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jumperless app firmware updater seems to have an error. #35

Open
ReanimationXP opened this issue Nov 11, 2024 · 1 comment
Open

Jumperless app firmware updater seems to have an error. #35

ReanimationXP opened this issue Nov 11, 2024 · 1 comment

Comments

@ReanimationXP
Copy link

ReanimationXP commented Nov 11, 2024

There appears to be an issue with the firmware updater in Jumperless.exe. I get the following output when running it, even as admin. I suspect the error has something to do with 'ser.close()' on line 386 of JumperlessWokwiBridge.py.

C:\Jumperless>Jumperless.exe


1: COM6 [USB Serial Device (COM6)]
2: COM7 [USB Serial Device (COM7)]



Autodetected Jumperless at COM6
Autodetected USB-Serial at COM7



 'menu'   to open the Bridge App menu
 'skip'   to disable Wokwi updates and just use as a terminal
 'update' to force firmware update - yours is up to date (1.3.17)
 'slots'  to assign Wokwi projects to slots (this menu)
    ^--   (you can enter these commands at any time)

  ENTER   to accept and go to Jumperless

      'x' to clear all slots
      'c' to clear a single slot

Enter the slot number you'd like to assign a project to:

slot 0
slot 1
slot 2
slot 3
slot 4
slot 5
slot 6
slot 7


slot > update

Would you like to update your Jumperless with the latest firmware? Y/n


Downloading latest firmware...
Traceback (most recent call last):
  File "JumperlessWokwiBridge.py", line 1244, in <module>
  File "JumperlessWokwiBridge.py", line 916, in assignWokwiSlots
  File "JumperlessWokwiBridge.py", line 452, in updateJumperlessFirmware
NameError: name 'ser' is not defined. Did you mean: 'set'?
[48448] Failed to execute script 'JumperlessWokwiBridge' due to unhandled exception!

I got a similar error navigating to the menu and navigating back:

C:\Jumperless>jumperless


1: COM6 [USB Serial Device (COM6)]
2: COM7 [USB Serial Device (COM7)]



Autodetected Jumperless at COM6
Autodetected USB-Serial at COM7



 'menu'   to open the Bridge App menu
 'skip'   to disable Wokwi updates and just use as a terminal
 'update' to force firmware update - yours is up to date (1.3.17)
 'slots'  to assign Wokwi projects to slots (this menu)
    ^--   (you can enter these commands at any time)

  ENTER   to accept and go to Jumperless

      'x' to clear all slots
      'c' to clear a single slot

Enter the slot number you'd like to assign a project to:

slot 0
slot 1
slot 2
slot 3
slot 4
slot 5
slot 6
slot 7


slot > menu
                        Bridge App Menu


                a = Assign Wokwi Links to Slots
                d = Delete Saved Projects
                r = Restart Bridge App
                s = Restart Serial
                f = Change Wokwi update frequency - currently 0.75s
                u = Update Jumperless Firmware - 1.3.17
                j = Go Back To Jumperless



menu > j
Traceback (most recent call last):
  File "JumperlessWokwiBridge.py", line 1244, in <module>
  File "JumperlessWokwiBridge.py", line 911, in assignWokwiSlots
  File "JumperlessWokwiBridge.py", line 618, in bridgeMenu
NameError: name 'ser' is not defined. Did you mean: 'set'?
[17836] Failed to execute script 'JumperlessWokwiBridge' due to unhandled exception!
@Architeuthis-Flux
Copy link
Owner

Interesting. Would you mind testing something for me? Load an older version of the firmware (by holding boot, plugging it in, and dropping this file on the drive that pops up), then reopen the app and select Yes when it asks if you'd like to update the firmware.

I'll push a fix anyway, but I'm curious if it's a sequencing thing that happens when you force a firmware update versus letting it auto-update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants