Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
103 user(s) are online (70 user(s) are browsing Forums)

Members: 0
Guests: 103

more...

Headlines

Forum Index


Board index » All Posts (Hans)




Re: USB Printer on OS4?
Home away from home
Home away from home


@hotrod

Quote:

hotrod wrote:
@Hans

Runing usbmgr in linux (kernel 2.4.x) will make my HP LaserJet 1010 work in AOS 4.0. Maybe looking at the sources in that program can give be of some help?


Probably not usbmgr. My guess is that the printer driver installs something that runs when usbmgr is run to initialise the printer. You'd have to look through the printer driver's sources. Details for that printer have been a bit sketchy.

Hans

Go to top


Re: USB Printer on OS4?
Home away from home
Home away from home


@Curty

Pity. But then, we know that we need more printer drivers. Actually, a new print API would be even better.

Hans

Go to top


Re: USB Printer on OS4?
Home away from home
Home away from home


@Curty

Well that sounds promising at least. It sounds like the firmware is being uploaded and then run. I'm surprised they did it this way. It almost sounds like they built the prototype using an ARM development board and then couldn't be bothered to finish the hardware off properly.

Anyway, try copying a text filr to USBPRT:, see if it does anything. Otherwise, if you have the OS3.9 or OS3.5 disks, try some of the laserjet drivers, hopefully one of them will be similar enough (look in the storage folder on SYS:).

Hans

Go to top


Re: USB Printer on OS4?
Home away from home
Home away from home


@Curty

Found it: here

This printer needs to have its firmaware loaded when switched on. You'll need to download the firmware file from the linux driver. Get it from here. For now, set up your USBPRT: the way I did so that it bypasses the printer driver. After that type:
copy sihp1020.dl USBPRT:

See if the printer responds after that. If it does, we might be able to create a more elegant solution.

Hans

Go to top


Re: USB Printer on OS4?
Home away from home
Home away from home


@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


Re: USB Printer on OS4?
Home away from home
Home away from home


@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?
Home away from home
Home away from home


@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?
Home away from home
Home away from home


@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


@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: Changing the way that drawers open
Home away from home
Home away from home


@saimo

I'll have to remember that one.

Hans

Go to top


Re: Changing the way that drawers open
Home away from home
Home away from home


@aldur

It's not going to help right now, but Workbench is scheduled for a complete rewrite to be released in some future OS4 update.

You could also have a look at Scalos. I'm not sure if they have a fully OS4 native version yet or not, but I'm pretty sure it has the feature you're looking for. I agree that opening a new window every time creates unnecessary clutter.

Hans

Go to top


Re: os4 japanese support
Home away from home
Home away from home


@olfa

Would that be the AmigaDE SDK? If so, it's not going to help. Download the OS4 SDK from here. Next, look at this site to get the cross-compilers and instructions on setting them up. It's no-where as easy as installing the SDK on a real Amigaone but it'll have to do for now.

Hans

Go to top


Re: New version of Wet released
Home away from home
Home away from home


@Chris

Wet is a useful program and I have it in my WBStartup. Just a few comments:
- I have an interesting bug. Every time I minimise the AmiDock and then maximise it, one more Wet icon appears on the dock.
- Deselecting show app-icon works fine, but when I click the minimise icon on the window, it minimises and the app-icon returns
- Is there any way that the forecast page can include temperature information? Or is this information not sent by the server?

Hans

Go to top


Re: New version of X11 available soon..
Home away from home
Home away from home


@Antique

Cygnix is about to get an update as mentioned here. It's an X11 server for Amiga OS4 and includes ports of several Linux apps as well (such as AbiWord). X11 is the graphics system for Linux.

Hans

Go to top


Re: Calibrating CPUTemp.docky
Home away from home
Home away from home


Whatever the default settings in this docky, it matches the readings from my temperature probe. Of course, that's the temperature of the base of the heat-sync/chip-surface, not the internal temp, but it's a good indicator.

BTW, I thought that temperature measurements were broken in the PowerPC chips used in the A1. How come it suddenly seems to work?

Hans

Go to top


Re: Amiga OS4 - moviemaker
Home away from home
Home away from home


@bean

Quote:

bean wrote:
There are some interesting projects around, but I think the main problem is that we all lack time and there are only a small number of developers around.


For the record, writing a video editor is on my to-do list. Don't expect it any time soon though. It's no small task and I'm having difficulty finding time to work on any of my projects. I'm also waiting for avcodec.library to finally include the video encoders as well as the decoders.

Hans

Go to top



TopTop
« 1 ... 124 125 126 (127)




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project