Brother HL-L2340DW: Difference between revisions

From /dev/hack
No edit summary
Maia (talk | contribs)
No edit summary
 
(26 intermediate revisions by 8 users not shown)
Line 1: Line 1:
This is the MONOCHROME printer with the white exterior, in the Focus Foundry. No color printing. If you wanna print color stuff go to [[The other brother printer]].
@@@@@ PLEASE do not leave stuff on top of the printer. it WILL jam and fuck up remote printing @@@@@
Model: HL-L2340DW
Model: HL-L2340DW


Printer WebUI is http://192.168.50.40/general/status.html
`lp -o sides=one-sided` is still printing two-sided
 
WIP Printer container is http://10.213.10.105, it is actively connected to the printer
Printer WebUI is http://10.213.10.105/general/status.html
MAC is 2c:33:7a:12:ba:c6
MAC is 2c:33:7a:12:ba:c6


Line 13: Line 20:
* https://wiki.gentoo.org/wiki/Brother_networked_printer
* https://wiki.gentoo.org/wiki/Brother_networked_printer
* https://wiki.gentoo.org/wiki/Driverless_printing
* https://wiki.gentoo.org/wiki/Driverless_printing
Unsupported format "text/plain" -> install cups-filters




Line 18: Line 27:


the printer's 1line UI is surprisingly robust. use the arrows and the OK/back keys
the printer's 1line UI is surprisingly robust. use the arrows and the OK/back keys
to configure the cups network printer the URL lpd://192.168.50.40/ or ipp://192.168.50.40/ works (with the proper brlaser drivers and stuff installed).
gravy: within the cups ui, use generic make, generic PCL laser type, and ipp. works on my machine
<pre>
$ sudo nmap -sT -sU 192.168.50.40
Starting Nmap 7.94 ( https://nmap.org ) at 2024-03-06 18:52 PST
Nmap scan report for 192.168.50.40
Host is up (0.045s latency).
Not shown: 994 closed udp ports (port-unreach), 993 closed tcp ports (conn-refused)
PORT    STATE        SERVICE
21/tcp  open          ftp
23/tcp  open          telnet
80/tcp  open          http
443/tcp  open          https
515/tcp  open          printer
631/tcp  open          ipp
9100/tcp open          jetdirect
69/udp  open          tftp
137/udp  open          netbios-ns
161/udp  open          snmp
3702/udp open|filtered ws-discovery
5353/udp open          zeroconf
5355/udp open|filtered llmnr
Nmap done: 1 IP address (1 host up) scanned in 16.70 seconds
</pre>
ftp is also enabled:
<pre>
$ curl ftp://192.168.50.40
total 1
-r--r--r--  1 root    printer  4096 Sep 28  2001 CFG-PAGE.TXT
----------  1 root    printer      0 Sep 28  2001 Ready-----------
</pre>
<pre>
$ curl ftp://192.168.50.40/CFG-PAGE.TXT
<<NETWORK CONFIGURATION>>
<Interface>                  WirelessLAN on
<Node Type>                  Brother NC-8300w, IEEE 802.11b/g/n (Active)
<Node Firmware Ver.>          Firmware Ver.D  (Sep 27 2014 01:34:28)
<MAC Address>                2c-33-7a-12-ba-c6
<Node name>                  BRW2C337A12BAC6
<Active services>            BRN2C337A12BAC6
                              BINARY_P1
                              TEXT_P1
                              POSTSCRIPT_P1
                              PCL_P1
                              BRN2C337A12BAC6_AT
<Protocols>
TCP/IP              Enabled              IPv6                Disabled
NetBIOS/IP          Enabled              APIPA                Enabled
WebBasedManagement  Enabled              SNMP                Enabled
LPD                  Enabled              Raw Port            Enabled
IPP                  Enabled              WebServices          Enabled
SMTP                Enabled              FTP                  Enabled
TFTP                Enabled              mDNS                Enabled
LLMNR                Enabled              Proxy                Disabled
<IP Settings>
IP Address                  192.168.50.40    (via DHCP)
Subnet Mask                  255.255.255.0
IP Gateway                  192.168.50.1
Boot Method                  AUTO
Boot Tries                  3
IP Filter                    Disabled
GW Timeout (sec)            21
DNS Address Config          AUTO
Primary DNS Server          192.168.50.1
Secondary DNS Server        0.0.0.0
<NetBIOS Name>                BRW2C337A12BAC6
<WINS Address Config>        AUTO
<Primary WINS Server>        0.0.0.0
<Secondary WINS Server>      0.0.0.0
<Send E-mail Settings(SMTP)>
Device Mail Address          brn2c337a12bac6@example.com
Server                      0.0.0.0
Port                        25
<mDNS Service Name>          Brother HL-L2340D series
<WebServices Name>            Brother HL-L2340D series [2c337a12bac6]
<SNMP Settings>
Communication Mode          v1/v2c(RW)
<Comm. Mode>                  Infrastructure
<Name(SSID)>                  InternetOfShit
<Authentication Mode>        WPA/WPA2-PSK
<Encryption Mode>            AES
<Wireless Link Status>        Link OK, 11n(26Mbps), Receiving Signal=2, Operating Ch=1
<Tx Power Code>              Full, 227, 0, 0
<Network Statistics>                  <Wireless Statistics>
Packets Received          64903      RX Frames Received OK            64266
Bytes Received          7701030      RX Frames Error                  1467
Packets Transmitted        2825      TX Frames Transmitted OK        670298
Bytes Transmitted        585502      TX Frames Error                    90
</pre>
=== Firmware updates ===
==== Via the WebUI ====
Apparently the printer can be updated via the webui successfully
==== Remotely ====
Brother only provides a windows and mac (and mobile) client to upload firmware: https://support.brother.com/g/b/faqend.aspx?c=us&lang=en&prod=hll2340dw_us_eu_as&faqid=faq00100468_001#UpdateFirmware
But I've found https://github.com/sedrubal/brother_printer_fwupd which seems to be promising
<pre>
$ brother_printer_fwupd --printer=192.168.50.40
[i] Querying printer info via SNMP.
[i] Detected HL-L2340D series with following firmware version(s): MAIN@1.07
[i] Querying firmware download URL from Brother update API.
[i] Try to get information for firmware part MAIN@1.07
[!] Invalid response: Expected tag 'VERSIONCHECK' to be in response '<?xml version="1.0" encoding="utf-8"?>
<RESPONSEINFO/>'.
[i] Retry with MFC-L3750CDW hack...
[i] Firmware update for MAIN to version 1.27 required.
[i] Downloading firmware file.
100.0 %
[i] Uploading firmware file to printer via jetdirect.
[!] Could not upload firmware None to update part MAIN@1.07: service/proto not found
[i] Done.
</pre>
[[Category:Hardware]]
[[Category:Space]]

Latest revision as of 01:08, 9 October 2024

This is the MONOCHROME printer with the white exterior, in the Focus Foundry. No color printing. If you wanna print color stuff go to The other brother printer.

@@@@@ PLEASE do not leave stuff on top of the printer. it WILL jam and fuck up remote printing @@@@@

Model: HL-L2340DW

`lp -o sides=one-sided` is still printing two-sided

WIP Printer container is http://10.213.10.105, it is actively connected to the printer Printer WebUI is http://10.213.10.105/general/status.html MAC is 2c:33:7a:12:ba:c6

gifted from The Bikery (via Jess)

drivers: https://support.brother.com/g/b/downloadtop.aspx?c=us&lang=en&prod=hll2340dw_us_eu_as

`brlaser` on linux seems to work too

Unsupported format "text/plain" -> install cups-filters


THE "MANUAL" IS AT https://support.brother.com/g/s/id/htmldoc/printer/cv_hll2300d/use/manual/index.html#GUID-CF52D2C7-FC76-4D85-94CD-21CAF1981773_159

the printer's 1line UI is surprisingly robust. use the arrows and the OK/back keys

to configure the cups network printer the URL lpd://192.168.50.40/ or ipp://192.168.50.40/ works (with the proper brlaser drivers and stuff installed).

gravy: within the cups ui, use generic make, generic PCL laser type, and ipp. works on my machine

$ sudo nmap -sT -sU 192.168.50.40
Starting Nmap 7.94 ( https://nmap.org ) at 2024-03-06 18:52 PST
Nmap scan report for 192.168.50.40
Host is up (0.045s latency).
Not shown: 994 closed udp ports (port-unreach), 993 closed tcp ports (conn-refused)
PORT     STATE         SERVICE
21/tcp   open          ftp
23/tcp   open          telnet
80/tcp   open          http
443/tcp  open          https
515/tcp  open          printer
631/tcp  open          ipp
9100/tcp open          jetdirect
69/udp   open          tftp
137/udp  open          netbios-ns
161/udp  open          snmp
3702/udp open|filtered ws-discovery
5353/udp open          zeroconf
5355/udp open|filtered llmnr

Nmap done: 1 IP address (1 host up) scanned in 16.70 seconds

ftp is also enabled:

$ curl ftp://192.168.50.40
total 1
-r--r--r--   1 root     printer   4096 Sep 28  2001 CFG-PAGE.TXT
----------   1 root     printer      0 Sep 28  2001 Ready-----------
 $ curl ftp://192.168.50.40/CFG-PAGE.TXT

<<NETWORK CONFIGURATION>>

<Interface>                   WirelessLAN on
<Node Type>                   Brother NC-8300w, IEEE 802.11b/g/n (Active)
<Node Firmware Ver.>          Firmware Ver.D  (Sep 27 2014 01:34:28)
<MAC Address>                 2c-33-7a-12-ba-c6
<Node name>                   BRW2C337A12BAC6

<Active services>             BRN2C337A12BAC6
                              BINARY_P1
                              TEXT_P1
                              POSTSCRIPT_P1
                              PCL_P1
                              BRN2C337A12BAC6_AT

<Protocols>
 TCP/IP               Enabled               IPv6                 Disabled
 NetBIOS/IP           Enabled               APIPA                Enabled
 WebBasedManagement   Enabled               SNMP                 Enabled
 LPD                  Enabled               Raw Port             Enabled
 IPP                  Enabled               WebServices          Enabled
 SMTP                 Enabled               FTP                  Enabled
 TFTP                 Enabled               mDNS                 Enabled
 LLMNR                Enabled               Proxy                Disabled

<IP Settings>
 IP Address                   192.168.50.40    (via DHCP)
 Subnet Mask                  255.255.255.0
 IP Gateway                   192.168.50.1
 Boot Method                  AUTO
 Boot Tries                   3
 IP Filter                    Disabled

 GW Timeout (sec)             21
 DNS Address Config           AUTO
 Primary DNS Server           192.168.50.1
 Secondary DNS Server         0.0.0.0

<NetBIOS Name>                BRW2C337A12BAC6
<WINS Address Config>         AUTO
<Primary WINS Server>         0.0.0.0
<Secondary WINS Server>       0.0.0.0

<Send E-mail Settings(SMTP)>
 Device Mail Address          brn2c337a12bac6@example.com
 Server                       0.0.0.0
 Port                         25

<mDNS Service Name>           Brother HL-L2340D series

<WebServices Name>            Brother HL-L2340D series [2c337a12bac6]

<SNMP Settings>
 Communication Mode           v1/v2c(RW)


<Comm. Mode>                  Infrastructure
<Name(SSID)>                  InternetOfShit
<Authentication Mode>         WPA/WPA2-PSK
<Encryption Mode>             AES
<Wireless Link Status>        Link OK, 11n(26Mbps), Receiving Signal=2, Operating Ch=1
<Tx Power Code>               Full, 227, 0, 0

<Network Statistics>                  <Wireless Statistics>
 Packets Received          64903       RX Frames Received OK            64266
 Bytes Received          7701030       RX Frames Error                   1467
 Packets Transmitted        2825       TX Frames Transmitted OK        670298
 Bytes Transmitted        585502       TX Frames Error                     90


Firmware updates

Via the WebUI

Apparently the printer can be updated via the webui successfully

Remotely

Brother only provides a windows and mac (and mobile) client to upload firmware: https://support.brother.com/g/b/faqend.aspx?c=us&lang=en&prod=hll2340dw_us_eu_as&faqid=faq00100468_001#UpdateFirmware

But I've found https://github.com/sedrubal/brother_printer_fwupd which seems to be promising

 $ brother_printer_fwupd --printer=192.168.50.40
[i] Querying printer info via SNMP.
[i] Detected HL-L2340D series with following firmware version(s): MAIN@1.07
[i] Querying firmware download URL from Brother update API.
[i] Try to get information for firmware part MAIN@1.07
[!] Invalid response: Expected tag 'VERSIONCHECK' to be in response '<?xml version="1.0" encoding="utf-8"?>
<RESPONSEINFO/>'.
[i] Retry with MFC-L3750CDW hack...
[i] Firmware update for MAIN to version 1.27 required.
[i] Downloading firmware file.
 100.0 %
[i] Uploading firmware file to printer via jetdirect.
[!] Could not upload firmware None to update part MAIN@1.07: service/proto not found
[i] Done.