Ryzee119 / ogx360

Add modern xinput USB support to your Original Xbox :tv: :video_game:
403 stars 62 forks source link

Firmware updater GUI #80

Open Ryzee119 opened 2 years ago

Ryzee119 commented 2 years ago

Alot of users have issues updating the device. Its not too hard, but for a non technical user its probably not ideal.

We could have a GUI that prompts the user what to do and update the firmware.

CaptMoore commented 2 years ago

I am not terrible with technology, but a simple firmware update app would be much appreciated. I accomplished the update, but I had to try it a few times until I did it correctly.

If it’s not too much to ask, after a windows app is developed could there also be a macOS & Linux version?

Ryzee119 commented 2 years ago

If it’s not too much to ask, after a windows app is developed could there also be a macOS & Linux version? Yes this would be ideal. Something Python based may be the easiest

dtomcat commented 2 years ago

I just seen this... and I may be able to help... No promises (GUI is not my cup of tea), but I'll attempt this and hopefully get it functional, then someone else can make a "pretty" GUI. again no promises, but I'll look into it after I finish the automated OpenXenium programmer.

dtomcat commented 2 years ago

and sorry... I would only be able to Windows... I'm no bueno with MAC/Linux

dtomcat commented 2 years ago

OGX360FirmUpdtr Progress!!.. Got a lot of it done... still needs work... but I say it went from 15% chance of being done... to 98%!

dtomcat commented 2 years ago

Doing a lot of error checking (i.e. more than one pro micro connected... more than one pro micro put into programming mode at same time, etc). Do you think we should add checksums to ensure user doesn't try to upload a correct hex file? This would add a little more to your plate... with each firmware update, you'd need to add current build to file of checksums to validate against? I'm going to make this as user friendly and as hard to screw up as possible. I'm even checking for legit pro micros vs clones (still allowing to upload firmware, but in case an issue arises in future, we can tell if it's only clones, etc).

Ryzee119 commented 2 years ago

I wouldn't worry about checksum checking. Avrdude will verify the flash normally and as you say it would be a bit tricky to manage all the different checksums

dtomcat commented 2 years ago

Sneak Peak!

dtomcat commented 2 years ago

@Ryzee119 mind testing first Alpha? basically as seen in sneak peak... this mostly just check that it will work on a PC that isn't mine

Disregard... deleted program for now... I forgot that while I have the code picking the locations... the actual writing portion still has my locations hardcoded. I'll have a testable beta tomorrow or next :) sorry

Ryzee119 commented 2 years ago

Yep can do in the next day or so. Good work so far and definitely will help alot of users. Do you have source code on github anywhere?

Do you plan to opensource this and what license?

dtomcat commented 2 years ago

Not yet. It’s a bunch of ideas thrown together with no rhyme or reason. Once I get a good beta… I’ll clean up the code and document and post to GitHub. Will definitely be open sourced and have no clue on license. Not familiar with them. I usually just post the code. Maybe someone can help me with which license I should do and how?

dtomcat commented 2 years ago

Ok... a working initial Alpha version: OGX360 Firmware Updater.zip

Fingers Crossed!

Ryzee119 commented 2 years ago

First up awesome work in such a short time. I tried it out, and am hitting avrdude.exe: ser_open(): can't open device "\.\COM5": Access is denied, but weirdly it programs find if I just run avrdude from the commandline separately. EDIT: Actually it started working eventually :)

I have a couple suggestions for your consideration

EDIT: It just started working :) image

dtomcat commented 2 years ago

Thank you for the feedback! I believe the com5 issue at first would have been that the Pro micro timed out. i've noticed that you only have a few seconds to initiate an upload before the pro micro resets out of programming mode. (I'll add a note about this in the text). I tried to create hyperlinks to no avail (i'll continue trying). Did you get a splash screen initially telling you the requirements? I had an issue after adding an icon... so I'm wondering is the issue wasn't from the icon ... I had a label disappear... like you had the write button hidden... not sure why that is... I'll try to reproduce that. A rescan mechanism is definitely in the works! that is weird... not sure why it didn't expand all the way... as you see in the video, it does on mine. something I'll have to look into as well. Thanks again for the feedback... long road ahead... but mostly cosmetic! Main purpose of app is functional

dtomcat commented 2 years ago

downloads click Solutions.... Thoughts?

EDIT: the message is a tooltip and only shows when the mouse hovers over that label

dtomcat commented 2 years ago

@Ryzee119 another build (has a debug function)... when the window resizes, and you have to manual make it bigger... a windows will pop up with width/height ... can you send me those numbers?

  1. barely resize it (like one pixel) copy numbers
  2. Resize it to make it look like video and copy those numbers

Thanks! New features above are also incorporated OGX360 Firmware Updater.zip

dtomcat commented 1 year ago

Just programmed 25 chips easily, zero errors, and quickly! I think the functionality is spot on and ready… just need to work on the cosmetics. F740E3E7-A661-40AA-B2A8-5F93772A6EEE

dtomcat commented 1 year ago

Just tried the program on my ogx360i-4ch boards I made... worked perfectly! I'm confident that all that needs addressing is cosmetic issues (and a reset function to program a different firmware without closing and reopening the program). (at least on my PC).