Script to update the firmware of some Brother printers (e. g. MFC).
Project description
Brother Printer Firmware Update Tool
Script to update the firmware of some Brother printers (e.g. MFC).
Idea:
Brother provides drivers etc. for Linux but when you want to update the firmware of your printer, Brother only provides ugly programs for Windows or Mac OS. I think, you should do firmware upgrades from time to time, because the supported printers have advanced network functionality, like SNMP, HTTP Web Management UI, and much more. Some of them can be connected with Ethernet and some of them with WiFi. The more features a system has, the greater is the risk of bugs.
You could try to use the official tools. You could try to run the Windows EXE in Wine for example. First it seemed to work, but then it crashed - like almost always I tried to run programs in wine. You could also extract the jar from the Mac OS DMG as described here. But unfortunately this tool didn't find my printer and I had no chance to debug the problems as it didn't give me any hint, what it is trying to do.
Then I found blog posts like this, that described a way to update the firmware with only standard Linux tools. I tried it and it worked :tada:
To make it a bit easier, I wrote this simple script.
See also
- https://github.com/CauldronDevelopmentLLC/oh-brother
- https://cbompart.wordpress.com/2014/05/26/brother-printer-firmware-part-2/
What the script does:
- Optional (if no IP is given): Discover the printer using MDNS
- Get printer info (like model name, firmware versions, etc.) with SNMP (v2c)
- Query the firmware download URL from Brother API server
- Download the firmware
- Upload the firmware to the printer over port 9100 (PDL-Datastream / jetdirect)
Note: Make sure the required protocols are enabled in the printer settings
Tested with:
- DCP-9020CDW
- DCP-9022CDW
- HL-5370DW
- MFC-9142CDN
- MFC-9332CDW
- MFC-L3750CDW
Usage
A: Run package using pipx
:
pipx run brother-printer-fwupd
B: Install package using pip
:
pip install --user --upgrade brother-printer-fwupd
If this does not work, try pip install --user --upgrade brother_printer_fwupd
.
C: Development installation:
- Clone the repo
- Install system dependencies:
libxslt-dev
,libxml2-dev
poetry install --extras autodiscover
poetry run brother_printer_fwupd
Use at your own risk!™
Contributions welcome.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for brother_printer_fwupd-0.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 765e67646f803c6d08f3d0937f5164792581e686d5848e938e32b46c4a2c465b |
|
MD5 | f4cd5ae4b14e4f628671f7e1abd2b1d1 |
|
BLAKE2b-256 | 4b646f0890bb1477c1004dd7c9b82bb3337dfe46e3169cdb1964d078ee95f36e |
Hashes for brother_printer_fwupd-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ade6ae7bb12c6cc2525e63006d12cc03d97a28d8495e7c462c8a6727f3163612 |
|
MD5 | 74f886e81ff32c59673d4114c8466dac |
|
BLAKE2b-256 | fd0aec13833bc314f20ffad3299b8f5a9c86906450c7e1fd9836c67a0e73a8f9 |