LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-15-2009, 07:32 PM   #1
chickenlinux
Member
 
Registered: Mar 2008
Location: Here - Where else?
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270

Rep: Reputation: 31
Question Telnet to usb device on interface usb0 (and find IP of device)


Hello! I recently read this article about changing the ready message on HP printers. In order to do so, one must connect to port 9100 on a HP printer. My printer is USB, and I thought I'd try to figure out how to telnet into it. I setup a usb0 interface by running "ifconfig usb0 10.1.0.1" Wireshark confirms that I usb0 is a usb network interface. (WOOT!) However...

From here, I'm not sure how to:
a. tell if this is even remotely possible
b. find the ip of my printer
c. connect to it by telnet over my usb0 interface

If this is impossible or massively time consuming or not even worth it - please let me know. I'd appreciate any help, as I've never done ANYTHING like this before. I just need a little advice on where to go.
 
Old 10-17-2009, 06:57 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
What is the model number of your printer?
At first glance since your printer is connected via USB and not ethernet it is not possible using the method from the article. Depending on what language your printer uses (PCL etc) you might be able to send the commands by just writing to its device.
 
Old 10-17-2009, 07:29 PM   #3
chickenlinux
Member
 
Registered: Mar 2008
Location: Here - Where else?
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270

Original Poster
Rep: Reputation: 31
It's an HP Officejet 4215 all-in-one. Would the device just be lp0 or would it be anything special for my purpose or HP Drivers?

Would I just create a file with all the infos and cat file > [device] it? Would it really be that easy?
 
Old 10-17-2009, 08:13 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
Look for /dev/usblp0

A quick look at the specification shows the print language as Lightweight Imaging Device Interface Language (LIDIL) so I would not expect that message trick to work on your printer. I know nothing about the printer language or if it has similar commands used by the printers in the article. So I would say its not worth the effort but others might have more knowledge.
 
Old 10-18-2009, 11:18 AM   #5
chickenlinux
Member
 
Registered: Mar 2008
Location: Here - Where else?
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270

Original Poster
Rep: Reputation: 31
Well, thanks, that's a perfect answer to my question. I'll give it a shot anyway, but you're probably right, it's not worth my time. I've got a friend who has a networked one that I'm almost sure will work who I'll ask if I can use his, I'd just use one of those "net use lpt1" commands or something similar to connect to it, and work from there.

Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 07:32 AM
Couldn't Find Interface Ppp0: No Such Device orc Linux - Networking 10 09-12-2009 08:56 AM
installing Sierra 881 USB wireless, cannot find /usb/tty/USB0 becausei'mstubborn Linux - Hardware 7 01-04-2009 12:49 PM
UL 1.0 GRUB: could not find device for /boot: not found or not a block device cma Linux - General 4 12-12-2005 03:35 AM
HID ( Human Interface Device ) USB saeed371 Debian 1 10-16-2005 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration