Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
31 user(s) are online (14 user(s) are browsing Forums)

Members: 0
Guests: 31

more...

Support us!

Headlines

 
  Register To Post  

(1) 2 3 4 5 »
USB Printer on OS4?
Home away from home
Home away from home


See User information
Ok, so i tried to install an Epson C82 color ink printer to
OS4Final through the USB port.

Printer is on
Printer works (Selftest positively done)
PRT: is in DEVS/DosDrivers

/* $VER: PRT 52.1 (10.12.2006)
*
* PRT: for A1 Amiga Hardware
*/

EHandler = L:Port-Handler
Priority = 5
StackSize = 2000
GlobVec = -1
Device = printer.device
Unit = 0
Flags = 0
Control = "PAR"

USBControl says there's an Printer of Class 7, Subclass 1
installed.

Now, why doesn't it print at all?

Multiview and NotePad sending it off to the printer, but
nothing happens (not even a message)

AmiPDF tries to print, but simply sits there with the window
"Printing..." or similar open forever and nothing happens.

Sending text directly to PRT: doesn't do anything either.

Anyone able to help out with some hints or things i can try?

Please?

Thanks a lot

Go to top
Re: USB Printer on OS4?
Not too shy to talk
Not too shy to talk


See User information
@Raziel

Have you set the Port device and unit in the Printer preferences to use usbprinter.device?
It is described here: Documentation/usb/usbprinter_dev.doc

Go to top
Re: USB Printer on OS4?
Home away from home
Home away from home


See User information
@ZeroG

Yup, already done

Go to top
Re: USB Printer on OS4?
Home away from home
Home away from home


See User information
Tried it with ESCUtil off Aminet (although i'm not sure, if
it's able to talk to the usbprinter.device and it didn't
work...still blaming the printer :-/

Go to top
Re: USB Printer on OS4?
Just can't stay away
Just can't stay away


See User information
@Raziel

Hi I'm trying to get a Epson Stylus C88+ to work.
<
EHandler = L:Port-Handler
Priority = 5
StackSize = 2000
GlobVec = -1
Device = printer.device
Unit = 0
Flags = 0
Control = "PAR"
<
You want a 'usbprinter.device' !

From Scabit's messages at AmigaWorld:

1) Make a copy of the PRT: device and icon found in DEVS:DOSDrivers
and rename them to USBPRT ...
2) Edit the USBPRT driver so that device = usbprinter.device and
save...
3) Go to prefs/printers and set up your printer prefs by selecting
your proper printer and then changing the port device to
usbprinter.device. Set the unit name box at the top to USBPRT: be
sure to have the ":". Save

New Shell process 7
7.OS4:> echo to usbprt: "test"

Doesn't do anything! Even Sys:Prefs/Printer 'TEST' doesn't do
anything. I can't even get error.

Some of my messages at Yahoo Groups: amiga OS4
28377
28401
28420


OK, It's your turn fo an idea!

Go to top
Re: USB Printer on OS4?
Home away from home
Home away from home


See User information
@Snuffy

Quote:

From Scabit's messages at AmigaWorld:

1) Make a copy of the PRT: device and icon found in DEVS:DOSDrivers
and rename them to USBPRT ...
2) Edit the USBPRT driver so that device = usbprinter.device and
save...
3) Go to prefs/printers and set up your printer prefs by selecting
your proper printer and then changing the port device to
usbprinter.device. Set the unit name box at the top to USBPRT: be
sure to have the ":". Save

Doesn't do anything! Even Sys:Prefs/Printer 'TEST' doesn't do
anything. I can't even get error.


From TetiSoft's (one of the OS4 devs) message (#7)

> 2) Change the PRT file to indicate "device = usbprinter.device"

DONT DO THAT.
It will succesfully break all existing programs which send control codes
to PRT: because usbprinter.device can NOT be used as replacement for
printer.device.

> You wrote "Have you looked in at the documentation that is on the OS4Final CD,"
> Yes...I have. It is very small....but nontheless it turns out to be all I really need.

Then READ IT AGAIN.
Especially this part:
----snip----
After installation your printing system must be set to use usbprinter.device
as transport layer rather than e.g. a1parallel.device or a1serial.device. This
is done using the AmigaOS Printer preferences program.
----snip----

This part doesnt say that you shall hack the PRT mountlist.
Please re-install the original PRT mountlist from the CD, thanks.

Quote:

New Shell process 7
7.OS4:> echo to usbprt: "test"

Doesn't do anything! Even Sys:Prefs/Printer 'TEST' doesn't do
anything. I can't even get error.


For me neither, i tried with PRT, though

I COULD use the parallel cable that came with the printer,
but why should i? I want to be able to use it with USB, damn.

/me lying on the floor, kicking and screaming



edit: Fixed the quote

Go to top
Re: USB Printer on OS4?
Home away from home
Home away from home


See User information
@all

Modern Epson printers require an init sequence to be sent before they will respond. This sequence drops them out of a communication mode that only Epson's own drivers support (it's proprietary and they won't share the docs). After that, it will respond to whatever you send it.

Just not that we have no printer driver that supports these printers. The old EpsonColor driver will print in B&W after you've sent the init string.

To find the init string you'll have to search the web for Linux drivers for Epson printers. I can't remember what it was. If you have linux installed on your machine you can test it by printing in Linux first and then trying to print from OS4 (without reseting the printer).

The bottom line is, WE NEED NEW PRINTER DRIVERS. Turboprint offers up-to-date drivers, but it's too pricey for me (i.e., it costs more than my printer is worth).

BTW, I have my Epson connected to my A1 and use LPR from os4depot to print from my winXP laptop via the network. It prints fine.

Hans

Go to top
Re: USB Printer on OS4?
Home away from home
Home away from home


See User information
@Hans

Thanks, that clears it and brings the worst situation to
live...i read about that init on the OS4 forums, they did
it by first letting a Win PeeCee do the initialization and
use the Epson on Amiga afterwards.

Not the way i wanna take...

About new printer drivers, yeah, i really hope there will
be some, otoh, if the manufacturers don't share the docs
there is no way to get them.

I presume porting Linux drivers to OS4 is impossible?*

*in more than the actual porting way (time, possibility etc.)

Go to top
Re: USB Printer on OS4?
Home away from home
Home away from home


See User information
@Raziel

No need to let a win PC do the initialization. The following code will send the init code, print "Blah" at the top of the page and eject the page.

#include <stdio.h>

int main(){
 
FILE *printer fopen("USBPRT:""w+b");
 if(!
printer){
 
printf("ERROR: Could not open printer DOS device");
 return 
10;
 }
 
fwrite("\0\0\0\033\001@EJL 1284.4\n@EJL     \n\033@"129printer);
 
fprintf(printer"\033@");
 
fprintf(printer"blah\n");
 
fprintf(printer"\014");
 
fprintf(printer"\033\030R");
 
fprintf(printer"\033@");
 
fclose(printer);
 return 
0;
}


I called my printer DOS device USBPRT:. This can be simplified to
#include <stdio.h>

int main(){
 
FILE *printer fopen("USBPRT:""w+b");
 if(!
printer){
 
printf("ERROR: Could not open printer DOS device");
 return 
10;
 }
 
fwrite("\0\0\0\033\001@EJL 1284.4\n@EJL     \n\033@"129printer);
 
fprintf(printer"\033@");
 
fclose(printer);
 return 
0;
}


That will send the init string to the printer. After that, it will respond. I was going to have a go at writing a driver myself, but gave up. At that stage the printer drivers were all 68k, so I would have had to set up a cross-compiler. It would have taken too much time and I have other projects that have a higher priority. Maybe after they release the new SDK, and privide some nice example code, I might have another go. One of the problems is, the AmigaOS printer API is not very good. Thay didn't aim very high in terms of what it was supposed to do.

Hans

Go to top
Re: USB Printer on OS4?
Home away from home
Home away from home


See User information
@Hans

Hmm, i'm doing something wrong here, i compiled your examples
load in a copy of PRT: called USBPRT:, tried and nothing

I don't get an error message, but it does nothing in return
either, the first example doesn't print anything...?

Go to top
Re: USB Printer on OS4?
Quite a regular
Quite a regular


See User information
@Raziel

Maybe you can try to flush the output before closing the printer, just add :
fflush(printer);

before the fclose line.

Back to a quiet home... At last
Go to top
Re: USB Printer on OS4?
Home away from home
Home away from home


See User information
@abalaban

Thanks for that, Alex

Unfortunately still nothing

Go to top
Re: USB Printer on OS4?
Amigans Defender
Amigans Defender


See User information
@Raziel

have you tried to use an hammer on your printer? this sometimes works..

Go to top
Re: USB Printer on OS4?
Quite a regular
Quite a regular


See User information
@afxgroup

Ah yes the hammer or the good old "fixerer upperer" Has a 1001 uses! -:)


ace

Go to top
Re: USB Printer on OS4?
Home away from home
Home away from home


See User information
@Raziel

Ok I just looked at my USBPRT DOS driver file and it looks like this:
EHandler L:Port-Handler
Priority 
5
StackSize 
2000
GlobVec 
= -1
Device 
usbprinter.device
Unit 
0
Flags 
0
Control 
"PAR"


So I'm bypassing the printer device altogether. The printer driver is obviously swallowing up the control codes my little program sends and spitting somthing out.

I know that you should use "printer.device", however, all the control codes are manipulated by the specific printer driver that you've set up for that unit in the printer prefs. Seeing as you don't have a proper printer driver for your Epson printer, that's as good as useless. The printer is likely to understand many of the control codes anyway.

Hans

Go to top
Re: USB Printer on OS4?
Not too shy to talk
Not too shy to talk


See User information
@Hans

Quote:

The printer driver is obviously swallowing up the control codes my little program sends and spitting somthing out.


Maybe we should use the PRD_RAWWRITE command of the printer.device to get around this?

Go to top
Re: USB Printer on OS4?
Just can't stay away
Just can't stay away


See User information
@Hans

Quote:
So I'm bypassing the printer device altogether. The printer driver is obviously swallowing up the control codes my little program sends and spitting somthing out.
printer.device uses the drivers to convert the generic printer.device sequences (check the printer.doc autodoc, CMD_WRITE) to printer specific ones, change it back to printer.device and use the aRAW sequence (\e[Pn"r with n = number of raw chars following) in front of your command.

Go to top
Re: USB Printer on OS4?
Home away from home
Home away from home


See User information
@joerg

Quote:

joerg wrote:
@Hans

Quote:
So I'm bypassing the printer device altogether. The printer driver is obviously swallowing up the control codes my little program sends and spitting somthing out.
printer.device uses the drivers to convert the generic printer.device sequences (check the printer.doc autodoc, CMD_WRITE) to printer specific ones, change it back to printer.device and use the aRAW sequence (\e[Pn"r with n = number of raw chars following) in front of your command.


Thanks for that info. That's a better way to do it. The program listing I gave was just a quick test I did a year ago.

@all

If you're going to use this hack, I suggest you install the EpsonColor printer driver off the aminet. It will translate the control codes to Epson control sequences. It will even print graphics in black and white. It can't do colour because the control codes for colour have changed since the printers that driver was written for.

The source code for EpsonColor is available so someone with a 68k compiler could always hack it to send the init string, thus removing the need for the program I listed above. I don't have a 68k compiler set up right now so I'm waiting for an updated SDK. Printer drivers are now PowerPC native.

Hans

Go to top
Re: USB Printer on OS4?
Just popping in
Just popping in


See User information
@Hans

How about my Epson 1020 LaserJet,
Would be nice to be able to print from this on OS4?

Go to top
Re: USB Printer on OS4?
Home away from home
Home away from home


See User information
@Curty

I can't find any info on that printer. You sure it's not an HP printer? HP usually uses the term Laserjet. If you have the OS3.5/3.9 install disks, you can always look to see if there is a driver. It should work with OS4.

If it is an HP laserjet, you might be able to find the driver. IIRC, there are more drivers for HP printers for the Amiga than Epson ones. If it is an Epson, I can't seem to find any information about it so I don't know what the printing protocol is.

Hans

Go to top

  Register To Post
(1) 2 3 4 5 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project