Epson LX-310 unsupported device on N2

Post Reply
tonnys
Posts: 14
Joined: Fri Mar 13, 2020 10:45 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Epson LX-310 unsupported device on N2

Post by tonnys »

Odroid N2 ubuntu 18.04.3 kernel 4.19 cannot use Epson LX-310. Tried it with another Epson, TM-U220B. Same problem. Use Armbian, same result: unsupported device.

The printer connected via USB cable to N2 USB3 port.

Why? Never have these kind of problem in my entire time using
different SBC. Just this N2 have these problem.

jgmdev
Posts: 199
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 61 times
Been thanked: 141 times
Contact:

Re: Epson LX-310 unsupported device on N2

Post by jgmdev »

I my self have an epson multifunction printer and linux support is kind of poor. Searching on the epson support page only found LX-300 and LX-300+ which doesn't even has linux drivers:

https://epson.com/Support/Printers/Impa ... PT_C130001

https://epson.com/Support/Printers/Impa ... C11C294161

The TM-U220 at least seems to have drivers for linux but with poor support...

https://epson.com/Support/Point-of-Sale ... lter=Linux

tonnys
Posts: 14
Joined: Fri Mar 13, 2020 10:45 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Epson LX-310 unsupported device on N2

Post by tonnys »

I'm using raw printing. So, no need for driver. Just need the printer detected and linux create device file in /dev/usb.

All others SBC that i use with kernel > 3.14 do it right. Just N2 that is an anomaly.

I think find a good SBC for server that has RTC, but damn. It has this issues..

Will look around, maybe there's a way

tonnys
Posts: 14
Joined: Fri Mar 13, 2020 10:45 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Epson LX-310 unsupported device on N2

Post by tonnys »

Tried it again using USB hub from USB OTG, to no avail. Then with manjaro linux. Same, not working. Didn't know if my hardware is buggy, the OS that's buggy, or all N2 is useless. All is well using XU4 or C1.

mad_ady
Posts: 8596
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 579 times
Been thanked: 488 times
Contact:

Re: Epson LX-310 unsupported device on N2

Post by mad_ady »

I'm not a printer expert, and it's well known the fact that in linux it takes a few minutes to set up a web server, but it can take months to set up a printer, but:
1. Do you see the printer with lsusb? What does it say when you run dmesg -w and plug in the printer?
2. When you do lsmod with the printer connected on xu4 do you see any kernel modules relevant to the printer?
3. Does cups detect it? Have you tried a generic PCL driver? Not sure if Epson supports it, but HP does.
4. You can try to install all cups-elated packages that you see on xu4 on the n2 and copy over the cups configuration.

tonnys
Posts: 14
Joined: Fri Mar 13, 2020 10:45 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Epson LX-310 unsupported device on N2

Post by tonnys »

mad_ady wrote:
Sun Mar 15, 2020 2:43 am
I'm not a printer expert, and it's well known the fact that in linux it takes a few minutes to set up a web server, but it can take months to set up a printer, but:
1. Do you see the printer with lsusb? What does it say when you run dmesg -w and plug in the printer?
2. When you do lsmod with the printer connected on xu4 do you see any kernel modules relevant to the printer?
3. Does cups detect it? Have you tried a generic PCL driver? Not sure if Epson supports it, but HP does.
4. You can try to install all cups-elated packages that you see on xu4 on the n2 and copy over the cups configuration.
Thanks for chime in, @mad_ady
1. Yes, the printer is detected with lsusb and show in dmesg.

Code: Select all

dmseg:
[72146.311212] usb 1-1.4: new full-speed USB device number 4 using xhci-hcd
[72146.438215] usb 1-1.4: New USB device found, idVendor=04b8, idProduct=0202
[72146.438218] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[72146.438220] usb 1-1.4: Product: EPSON UB-U03II
[72146.438222] usb 1-1.4: Manufacturer: EPSON
[72146.438223] usb 1-1.4: SerialNumber: 20190121182700065M03C
[72146.439423] usb 1-1.4: Unsupported device

Code: Select all

lsusb:
Bus 001 Device 004: ID 04b8:0202 Seiko Epson Corp. Receipt Printer M129C/TM-T70
2. The missing piece from lsmod and the XU4 and other STB is usblp. N2 kernel is like many 3.14 STB linux kernel that I try: have no usblp.

3. I've brought home the Epson TM-U220B for experimenting. CUPS show unknown printer. But my Brother HL-1211W detected by CUPS (not yet trying to install, have work to do now, will do it later), but same, the dmesg shows that Unsupported device. CUPS as of newer version looks like they bypass usblp.

4. With XU4, I never install CUPS, cause I use RAW Printing, or low level printing function (send raw data to the printer). These printer (POST / Dot Matrix Printer) usually detected by kernel, that use usblp, to create character device in /dev/usb, like /dev/usb/lp0. So, it oughtn't be related to CUPS.

mad_ady
Posts: 8596
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 579 times
Been thanked: 488 times
Contact:

Re: Epson LX-310 unsupported device on N2

Post by mad_ady »

Ok, in this case, either recompile your kernel (see wiki for howto) or ask @odroid to include usblp in their next kernel build.

Question: if you're using raw printing, I'm guessing you're printing locally only. How? What data format? I'd like to learn more about your setup. I'm using cups on a c1 with a hp printer and turned it into a network printer, but sometimes it gives me headaches.

tonnys
Posts: 14
Joined: Fri Mar 13, 2020 10:45 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Epson LX-310 unsupported device on N2

Post by tonnys »

mad_ady wrote:
Sun Mar 15, 2020 3:59 pm
Ok, in this case, either recompile your kernel (see wiki for howto) or ask @odroid to include usblp in their next kernel build.

Question: if you're using raw printing, I'm guessing you're printing locally only. How? What data format? I'd like to learn more about your setup. I'm using cups on a c1 with a hp printer and turned it into a network printer, but sometimes it gives me headaches.
Noted. How can I ask @odroid to include usblp to their next kernel build? Thanks.
mad_ady wrote:
Sun Mar 15, 2020 3:59 pm
Question: if you're using raw printing, I'm guessing you're printing locally only. How? What data format? I'd like to learn more about your setup. I'm using cups on a c1 with a hp printer and turned it into a network printer, but sometimes it gives me headaches.
We can print locally or remotely with raw printing using usblp, with a little hacking here and there. For Epson, the data were text with ESC/P format. Label printer usually use ZPL (you can googling about these format. It just text files, really).

We can netcat with 9100 port if just 1 printer. Because I use more than 1 printer, I'm using ssh.

Code: Select all

1. create ssh public ip (ssh-keygen) at server.
2. usermod -a -G lp username at print server.
3. reboot printer server.
4. ssh-copy-id from server to the printer server.
5. scp username@print-server-ip:/dev/usb/lpX (usually, the 1st printer that turn on will be lp0). So, just tell the client to turn on the printer in order. Even better, create character device with [b]mknod[/b]. We can set, e.g., TM-U220B to lp90 and LX-310 to lp91 for example.
These users thanked the author tonnys for the post:
mad_ady (Sun Mar 15, 2020 11:35 pm)

mad_ady
Posts: 8596
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 579 times
Been thanked: 488 times
Contact:

Re: Epson LX-310 unsupported device on N2

Post by mad_ady »

Usually @odroid is reading the forums and should pick up the module in a few days.

tonnys
Posts: 14
Joined: Fri Mar 13, 2020 10:45 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Epson LX-310 unsupported device on N2

Post by tonnys »

mad_ady wrote:
Sun Mar 15, 2020 11:36 pm
Usually @odroid is reading the forums and should pick up the module in a few days.
Nice! Glad to hear that.

Meanwhile, I've compiled usblp kernel driver as module. I'll post here for reference if in the future someone missing their driver kernel:

Code: Select all

1. sudo apt update
2. sudo apt install build-essential libncursesw5-dev
3. git clone --depth 1 https://github.com/hardkernel/linux.git -b odroidn2-4.9.y 
4. make oldconfig
5. make menuconfig
6. go to Device Drivers > USB Support > USB Printer Support > set flag as 'M' (module)
7. in my case, find . -name 'usblp.c', note the source file directory, then,
8. make M=your/driver/folder. In my case, make M=drivers/usb/class
9. sudo cp -f drivers/usb/class/usblp.ko /lib/modules/`uname -r`/kernel/drivers/usb/class/
10. sudo depmod -a
11. sudo modprobe usblp

User avatar
odroid
Site Admin
Posts: 35602
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1204 times
Been thanked: 879 times
Contact:

Re: Epson LX-310 unsupported device on N2

Post by odroid »

We've enabled the usblp driver.
https://github.com/hardkernel/linux/com ... 975c1786cf

Just update the system with the following commands and you will have Kernel 4.9.216-69 with the usblp driver.

Code: Select all

sudo apt update
sudo apt full-upgrade
sudo reboot
These users thanked the author odroid for the post (total 2):
mad_ady (Tue Mar 17, 2020 2:19 pm) • tonnys (Tue Mar 17, 2020 9:22 pm)

tonnys
Posts: 14
Joined: Fri Mar 13, 2020 10:45 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Epson LX-310 unsupported device on N2

Post by tonnys »

odroid wrote:
Tue Mar 17, 2020 9:48 am
We've enabled the usblp driver.
https://github.com/hardkernel/linux/com ... 975c1786cf

Just update the system with the following commands and you will have Kernel 4.9.216-69 with the usblp driver.

Code: Select all

sudo apt update
sudo apt full-upgrade
sudo reboot
Many thanks, odroid.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest