Board.KolibriOS.org

Official KolibriOS board
It is currently Sun Jul 21, 2019 8:27 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 170 posts ]  Go to page Previous 13 4 5 6 712 Next
Author Message
PostPosted: Wed Apr 17, 2013 7:35 pm 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
Третья версия драйвера (если можно так выразиться). В данный момент внутрь usblp3.obj вкомпилирован файл в формате PCL5, подходящий для большинства лазерных принтеров. Эта версия драйвера должна заставить работать принтер как минимум у 0CodErr, но может быть, поможет и Mario.

This version of driver now supports USB 1284.4 (DOT4) printers (sets it to bidir mode), obj file is compiled with PCL5 test page, suitable for most laser printers. It is possible to compile it with PostScript test file, but it's better to check which printer control languages are supported by your printer.


Attachments:
usblp3.obj [16.11 KiB]
Downloaded 92 times
usblp3.asm [7.52 KiB]
Downloaded 85 times
Top
   
PostPosted: Wed Apr 17, 2013 7:50 pm 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
Если у вас есть желание получить рабочий принтер в Колибри, не поленитесь - сделайте снифф печати тестовой страницы (скажем, белого листа с надписью Test) из Windows или Linux.
В Windows поможет http://www.wingmanteam.com/usbsnoopy/ или Wireshark+usbpcap
В Linux - Wireshark + usbmon


Top
   
PostPosted: Wed Apr 17, 2013 8:17 pm 
Offline

Joined: Sun Oct 30, 2011 6:43 pm
Posts: 1499
Quote:
usblp3.obj
Attachment:
BOARDLOG.TXT [6.41 KiB]
Downloaded 85 times
Spoiler: Show
Image


Top
   
PostPosted: Wed Apr 17, 2013 8:37 pm 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
Не совсем так, как должно было быть - шрифты немного не те, но в этом файле нет embedded-шрифтов. На некоторых принтеров вместо текста вообще может быть пустое место - но это не имеет большого значения, шрифты можно подключать, и это легко. Поздравляю!


Top
   
PostPosted: Wed Apr 17, 2013 9:59 pm 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
Маленькая правка. Я не тестировал, но хуже стать не должно.

hindplayr, please, test this driver with printer which wrote "Error: invalid endpoint"


Attachments:
usblp3.asm [7.52 KiB]
Downloaded 79 times
usblp3.obj [16.11 KiB]
Downloaded 82 times
Top
   
PostPosted: Wed Apr 17, 2013 11:25 pm 
Offline
Kernel Developer

Joined: Sun Feb 10, 2013 12:37 pm
Posts: 2329
SoUrcerer wrote:
но может быть, поможет и Mario.

Не помогло.
Spoiler: Show
Attachment:
BOARDLOG.TXT [8.38 KiB]
Downloaded 83 times

_________________
Всем чмоки в этом проекте! Засуньте эти 11 лет себе в жопу!


Top
   
PostPosted: Wed Apr 17, 2013 11:26 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
SoUrcerer wrote:
Маленькая правка. Я не тестировал, но хуже стать не должно.

hindplayr, please, test this driver with printer which wrote "Error: invalid endpoint"


error: invalid endpoint descriptor (hp deskjet 940c=07/01/02)

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Wed Apr 17, 2013 11:48 pm 
Offline
Kernel Developer

Joined: Sun Feb 10, 2013 12:37 pm
Posts: 2329
SoUrcerer wrote:
сделайте снифф печати тестовой страницы (скажем, белого листа с надписью Test) из Windows или Linux.
В Windows поможет http://www.wingmanteam.com/usbsnoopy/ или Wireshark+usbpcap
В Linux - Wireshark + usbmon

W7, скачал по ссылке, запустил, есть только "USB Printing Support" и другого печатного в списке нет, но есть много Unknown Device. Присоединился к
"USB Printing Support", дальше не понял чего делать - никаких запросов не выдает и если куда и пишется чего, то я не знаю куда.

_________________
Всем чмоки в этом проекте! Засуньте эти 11 лет себе в жопу!


Top
   
PostPosted: Thu Apr 18, 2013 7:40 am 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
lsusb -v please. I want to know endpoints of your printer. Also, I have some ideas how to fix it.

Mario, для твоего принтера остается выбрать формат данных


Top
   
PostPosted: Thu Apr 18, 2013 8:25 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
SoUrcerer wrote:
lsusb -v please. I want to know endpoints of your printer.


I used this "USB View" tool: http://bit.ly/a3NnbO

Spoiler: Show
Device Descriptor:
bcdUSB: 0x0110
bDeviceClass: 0x00
bDeviceSubClass: 0x00
bDeviceProtocol: 0x00
bMaxPacketSize0: 0x08 (8)
idVendor: 0x03F0 (Hewlett Packard)
idProduct: 0x1604
bcdDevice: 0x0100
iManufacturer: 0x01
0x0409: "Hewlett-Packard"
iProduct: 0x02
0x0409: "DeskJet 940C"
iSerialNumber: 0x03
0x0409: "HU2311P367CO"
bNumConfigurations: 0x01

ConnectionStatus: DeviceConnected
Current Config Value: 0x00
Device Bus Speed: Full
Device Address: 0x02
Open Pipes: 0

Configuration Descriptor:
wTotalLength: 0x0020
bNumInterfaces: 0x01
bConfigurationValue: 0x01
iConfiguration: 0x00
bmAttributes: 0xC0 (Bus Powered Self Powered )
MaxPower: 0x01 (2 Ma)

Interface Descriptor:
bInterfaceNumber: 0x00
bAlternateSetting: 0x00
bNumEndpoints: 0x02
bInterfaceClass: 0x07
bInterfaceSubClass: 0x01
bInterfaceProtocol: 0x02
iInterface: 0x00

Endpoint Descriptor:
bEndpointAddress: 0x81 IN
Transfer Type: Bulk
wMaxPacketSize: 0x0040 (64)
bInterval: 0x00

Endpoint Descriptor:
bEndpointAddress: 0x02 OUT
Transfer Type: Bulk
wMaxPacketSize: 0x0040 (64)
bInterval: 0x00

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Thu Apr 18, 2013 8:39 am 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
Hidnplayr, that's pretty weird, because these endpoints should be detected good. Pretty strange. Also, I checked few printers with BULK OUT 0x02, they worked pretty normal. So, please, check next version of driver.


Top
   
PostPosted: Thu Apr 18, 2013 8:41 am 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
Новая версия драйвера, информация об устройстве теперь должна выводиться на доску отладки. Я не уверен, что будет работать у всех - но нужно тестировать.

New driver version, now we're trying to get printer capabilities - so we'll know which exactly data format printer want to use.


Attachments:
usblp4.asm [8.31 KiB]
Downloaded 84 times
usblp4.obj [16.77 KiB]
Downloaded 89 times
Top
   
PostPosted: Thu Apr 18, 2013 9:00 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
After a lot of printer noises, the test page came out of the HP940c printer (PCL5 format)

Printer ID is MFG:HEWLETT-PACKARD;MDL:DESKJET 940C;CMD:MLC,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard DeskJet 940C;SERN:HV2311P367C0;VSTATUS:$HB0$NC0,ff,DN,IDLE,CUT,KO,CO,SM,NR,KP029,CP100;VP:0800,FL,B0,VJ: ;

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Thu Apr 18, 2013 9:06 am 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
Just fine, DeskJets are working too. Good HP :D


Top
   
PostPosted: Thu Apr 18, 2013 9:10 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
The pixma IP4000 does not even start to print as expected.

Printer ID is MFG:Canon;CMD:BJL,BJRaster3,BSCCe;SOJ:TXT01;MDL:iP4000;CLS:PRINTER;DES:Canon iP4000;VER:1.09;STA:10;FSI:03;

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 170 posts ]  Go to page Previous 13 4 5 6 712 Next

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited