On Fri, 7 Feb 2003, Evgeniy Polyakov wrote:

| Hello.
|
| Description:
|  echo "test" > /dev/usb/lp0 does not produce USB connecte printer to
| print. It simply blinks 1 time and stops.
|
| After compiling printer.o(2.4.20) with #deine DEBUG, pinter logs 1
| string and continue to keep silence:
|
| ./printer.c: usblp_control_msg: rq: 0x01 dir: 1 recip: 1 value: 0
| len:0x1 result: 1
|
| On insmod printer, "printer" says:
|
| usb.c: registered new driver usblp
| ./printer.c: usblp0 set protocol 2
| ./printer.c: usblp_control_msg: rq: 0x00 dir: 1 recip: 1 value: 0 len:
| 0x3ff result: 78
| ./printer.c: usblp0 Device ID
| string[len=78]="MFG:Samsung;CMD:GDI;MDL:ML-1210;CLS:PRINTER;MODE:GDI;ST
| ATUS:I DLE;CODE:40000;"
| ./printer.c: usblp_control_msg: rq: 0x01 dir: 1 recip: 1 value: 0
| len:0x1 result: 1  ./printer.c: usblp0: USB Bidirectional printer dev 3
| if 0 alt 0 proto 2 vid 0x04E8 pid 0x300C
| ./printer.c: v0.11: USB Printer Device Class driver
|
|
| /proc/usb/devices:
| T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
| B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
| D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
| P:  Vendor=0000 ProdID=0000 Rev= 0.00
| S:  Product=USB UHCI-alt Root Hub
| S:  SerialNumber=9000
| C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
| I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
| E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
| T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
| B:  Alloc=118/900 us (13%), #Int=  1, #Iso=  0
| D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
| P:  Vendor=0000 ProdID=0000 Rev= 0.00
| S:  Product=USB UHCI-alt Root Hub
| S:  SerialNumber=9400
| C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
| I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
| E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
| T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
| D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
| P:  Vendor=046d ProdID=c030 Rev= 1.01
| S:  Manufacturer=Logitech Inc.
| S:  Product=iFeel Mouse
| C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
| I:  If#= 0 Alt= 0 #EPs= 2 Cls=03(HID  ) Sub=01 Prot=02 Driver=hid
| E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
| E:  Ad=01(O) Atr=03(Int.) MxPS=   8 Ivl=10ms
| T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=12  MxCh= 0
| D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs=  1
| P:  Vendor=04e8 ProdID=300c Rev= 1.00
| S:  Manufacturer=Samsung Electronics Co., Ltd.
| S:  Product=Samsung Laser Printer ML-1200 Series
| C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
| I:  If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp
| E:  Ad=03(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
| E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
|
| /proc/usb/drivers:
|          usbdevfs
|          hub
|          hid
|   0- 15: usblp

All of this looks fine to me.  What printer filter are you using?
http://www.linuxprinting.org/show_printer.cgi?recnum=Samsung-ML-1210
recommends the 'gdi' driver/filter.

Some printers won't print text just by echoing text to them.
They require more commands.  This could be one of those.

-- 
~Randy



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to