Jump to content

Brother HL-L2340DW

From /dev/hack

This is the MONOCHROME printer with the gray exterior, in the Focus Foundry.

Brother HL-L2340DW
Status working!
Model HL-L2340DW
Hostname http://10.213.9.135



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 @@@@@

gifted from The Bikery (via Jess) a long time ago

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 physical 1line UI is surprisingly robust. use the arrows and the OK/back keys

connecting to the printer

i'd reallllly recommend connecting to this printer using the mini USB-B on the rear. the wifi on this unit is very unreliable (probably something to do with our jank-ass setup).

for all operating systems, plugging in the USB cable directly works immediately without drivers (as long as there's a CUPS compatible server running that is). for wifi connections, the following may help:

windows:

  1. attempt to add the printer using the settings app on your computer. it should show up in the list as "Brother B&W Laser".
    • if it doesn't show up automatically, then attempt to connect directly using the IP address: 10.213.9.135
  2. still having issues? use the official (proprietary) Brother drivers located here: https://support.brother.com/g/b/downloadtop.aspx?c=us&lang=en&prod=hll2340dw_us_eu_as

macOS:

  1. the printer fully supports AirPrint without drivers. it should show up on your system as "Brother B&W Laser".
  2. still having issues? use the official (proprietary) Brother drivers located here: https://support.brother.com/g/b/downloadtop.aspx?c=us&lang=en&prod=hll2340dw_us_eu_as

linux:

  1. this varies so damn much depending on your distro. it supports IPP over ports 80 and 631, so a traditional CUPS server shim should be enough to discover and print to it without issue.
  2. still having issues (and using a Debian or RHEL-based distro)? use the official (proprietary) Brother drivers located here: https://support.brother.com/g/b/downloadtop.aspx?c=us&lang=en&prod=hll2340dw_us_eu_as
  3. brlaser might help you out if you're using arch or similar? https://wiki.gentoo.org/wiki/Brother_networked_printer
    1. if you're getting the error Unsupported format "text/plain" then install cups-filters
    2. to configure the cups network printer, within the cups ui (default localhost:631), the URL lpd://<printer ip>/ or ipp://<printer ip>/ or lpd://BRW0022587682C5/BINARY_P1 worked (with the proper brlaser drivers and stuff installed).
    3. gravy: use generic make, generic PCL laser type, and ipp. works on my machine. it will ask you for credentials; it's asking for your user account

replacing the ink/toner

here's the "official" toner cartridges: https://www.brother-usa.com/products/tn660

but you can also just buy something that works just as well for a fraction of the price on Amazon: https://www.amazon.com/Ink-TN660-Replacement-TN630-DCP-L2540DW/dp/B0DXV45677/

make sure not to throw on the drum that the toner cartridge attaches to!

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=BRW2C337A12BAC6.core.devhack.net
[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.

poking at the printer

$ sudo nmap -sT -sU BRW2C337A12BAC6.core.devhack.net
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://BRW2C337A12BAC6.core.devhack.net
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://BRW2C337A12BAC6.core.devhack.net/CFG-PAGE.TXT

<<NETWORK CONFIGURATION>>

<Interface>                   WirelessLAN on
<Node Type>                   Brother NC-8300w, IEEE 802.11b/g/n (Active)
<Node Firmware Ver.>          Firmware Ver.W  (Apr  6 2023 15:22:52)
<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                   10.213.11.177    (via DHCP)
 Subnet Mask                  255.255.248.0
 IP Gateway                   10.213.8.1
 Boot Method                  AUTO
 Boot Tries                   3
 IP Filter                    Disabled

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

<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)>                  wlan0
<Authentication Mode>         WPA/WPA2-PSK
<Encryption Mode>             TKIP+AES
<Wireless Link Status>        Link OK, 11n(52Mbps), Receiving Signal=3, Operating Ch=2
<Tx Power Code>               Full, 227, 0, 0

<Network Statistics>                  <Wireless Statistics>
 Packets Received           2646       RX Frames Received OK             2425
 Bytes Received           414837       RX Frames Error                   3501
 Packets Transmitted        1396       TX Frames Transmitted OK           451
 Bytes Transmitted        118721       TX Frames Error                     15

<<NETWORK CONFIGURATION>>

<Interface>                   Wi-Fi Direct I/F Enable on
<Node Type>                   Brother NC-8300w, IEEE 802.11g/n (Active)
<Node Firmware Ver.>          Firmware Ver.W  (Apr  6 2023 15:22:52)
<MAC Address>                 2e-33-7a-12-3a-c6
<Node name>                   BRX2E337A123AC6

<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                   0.0.0.0    
 Subnet Mask                  0.0.0.0
 IP Gateway                   0.0.0.0
 Boot Method                  AUTO
 Boot Tries                   3
 IP Filter                    Disabled

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

<NetBIOS Name>                BRX2E337A123AC6
<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)


<Device Name>                 HL-L2340Dh2
<Name(SSID)>                  -
<Authentication Mode>         -
<Encryption Mode>             -
<P2P Link Status>             Not Connected
<Tx Power Code>               Full, 227, 0, 0
<Peers List>                  None
<DHCPd Settings>
 IP Address Range              192.168.118.100 - 192.168.118.110
 Lease Time                    300sec

<Network Statistics>                  <Wireless(P2P) Statistics>
 Packets Received              0       RX Frames Received OK             2425
 Bytes Received                0       RX Frames Error                   3501
 Packets Transmitted           0       TX Frames Transmitted OK           451
 Bytes Transmitted             0       TX Frames Error                     15