python gd-77_firmware_loader mods for mac
python gd-77_firmware_loader mods for mac
As MacOSX cannot use usblib, it need use hidapi library instead, is there any easy way to do this modification?
source https://stackoverflow.com/questions/257 ... r-mac-os-x
import hid
hidraw = hid.device(0x15a2, 0x1010)
hidraw.open(0x15a2, 0x1010)
hidraw.send_feature_report([0x00, 0x00, 0x00,0x00,0x00,0x00,0x00,0x00])
something like this..
source https://stackoverflow.com/questions/257 ... r-mac-os-x
import hid
hidraw = hid.device(0x15a2, 0x1010)
hidraw.open(0x15a2, 0x1010)
hidraw.send_feature_report([0x00, 0x00, 0x00,0x00,0x00,0x00,0x00,0x00])
something like this..
Re: python gd-77_firmware_loader mods for mac
Hi,
Which one is the easiest to install on OS X ?
Cheers.
---
Daniel
Looking at this, it seems there are few solutions, like hid from PyPI, cython-hidapi, etc.Riku wrote: ↑Sat Apr 11, 2020 8:16 amAs MacOSX cannot use usblib, it need use hidapi library instead, is there any easy way to do this modification?
source https://stackoverflow.com/questions/257 ... r-mac-os-x
import hid
hidraw = hid.device(0x15a2, 0x1010)
hidraw.open(0x15a2, 0x1010)
hidraw.send_feature_report([0x00, 0x00, 0x00,0x00,0x00,0x00,0x00,0x00])
something like this..
Which one is the easiest to install on OS X ?
Cheers.
---
Daniel
Re: python gd-77_firmware_loader mods for mac
hidapi went with pip on osx.
according this: https://github.com/signal11/hidapi it is compatible with other os aswell windows linux
% pip install hidapi
Collecting hidapi
Downloading hidapi-0.9.0.post2.tar.gz (55 kB)
|████████████████████████████████| 55 kB 755 kB/s
Requirement already satisfied: setuptools>=19.0 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from hidapi) (41.2.0)
Installing collected packages: hidapi
Running setup.py install for hidapi ... done
Successfully installed hidapi-0.9.0.post2
according this: https://github.com/signal11/hidapi it is compatible with other os aswell windows linux
% pip install hidapi
Collecting hidapi
Downloading hidapi-0.9.0.post2.tar.gz (55 kB)
|████████████████████████████████| 55 kB 755 kB/s
Requirement already satisfied: setuptools>=19.0 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from hidapi) (41.2.0)
Installing collected packages: hidapi
Running setup.py install for hidapi ... done
Successfully installed hidapi-0.9.0.post2
Re: python gd-77_firmware_loader mods for mac
Okay. I will try to use it, it would be great to have a single script for all platforms.Riku wrote: ↑Sat Apr 11, 2020 12:30 pmhidapi went with pip on osx.
according this: https://github.com/signal11/hidapi it is compatible with other os aswell windows linux
% pip install hidapi
Collecting hidapi
Downloading hidapi-0.9.0.post2.tar.gz (55 kB)
|████████████████████████████████| 55 kB 755 kB/s
Requirement already satisfied: setuptools>=19.0 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from hidapi) (41.2.0)
Installing collected packages: hidapi
Running setup.py install for hidapi ... done
Successfully installed hidapi-0.9.0.post2
Cheers.
---
Daniel
Re: python gd-77_firmware_loader mods for mac
yeah would be nice, not to start windows machine every time just for upgrading firmware. as been using now long time hackintosh pc :DD
Mono wont work so... only option is this python script. also cps is a problem on unix system like linux/osx but one thing at the time
Mono wont work so... only option is this python script. also cps is a problem on unix system like linux/osx but one thing at the time
Re: python gd-77_firmware_loader mods for mac
Hi,
Expect a test version today
Cheers.
---
Daniel
Expect a test version today
Cheers.
---
Daniel
Re: python gd-77_firmware_loader mods for mac
Hi,
Here is a version that implements hidapi support.
To run it under Linux, install the according package (under Debian/Ubuntu like, it's python-hidapi for Python 2.7, or python3-hidapi for Python 3.x).
Under Windows, some extra steps are needed (it's written at the top of the Python file):
About OS-X, Riku, it would be great if you can provide the installation instruction, that way I could had them to the file header too.
Cheers.
---
Daniel
Here is a version that implements hidapi support.
To run it under Linux, install the according package (under Debian/Ubuntu like, it's python-hidapi for Python 2.7, or python3-hidapi for Python 3.x).
Under Windows, some extra steps are needed (it's written at the top of the Python file):
Code: Select all
# Windows (tested with Python 3.8):
# - Download hidapi-win.zip from https://github.com/libusb/hidapi/releases
# * unzip
# * copy hidapi.dll to C:\Windows\System32
#
# - Download Cython interface to the hidapi from https://pypi.org/project/hidapi/#files (take care to get matching Python version, "cpxx")
# * once downloaded: python -m pip install hidapi-0.9.0.post2-cp38-cp38-win_amd64.whl (filename must change according to version and platform)
#
# - Install python modules:
# * pip install urllib3 enum34
Cheers.
---
Daniel
- Attachments
-
- gd-77_firmware_loader.py.zip
- (6.51 KiB) Downloaded 200 times
Re: python gd-77_firmware_loader mods for mac
Hi,
It seems Riku is busy, but I see few downloads. So, for the people who downloaded the script, could you report if it works for you or not ?
Cheers.
---
Daniel
It seems Riku is busy, but I see few downloads. So, for the people who downloaded the script, could you report if it works for you or not ?
Cheers.
---
Daniel
Re: python gd-77_firmware_loader mods for mac
If you want me to test this on a mac, I can try tomorrow.
I have a hackintosh and a real mac
I have a hackintosh and a real mac
Re: python gd-77_firmware_loader mods for mac
Hi Roger,
BTW, the version I will push is a bit different, it contains the latest changes about the GD-77S filename, and few things, nothing critical.
Cheers.
---
Daniel
Okay, that's cool, I have it already in an incoming PR, but I wait for some feedback to pull the trigger
BTW, the version I will push is a bit different, it contains the latest changes about the GD-77S filename, and few things, nothing critical.
Cheers.
---
Daniel