Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
108 user(s) are online (96 user(s) are browsing Forums)

Members: 1
Guests: 107

tekmage, more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 10 11 12 (13) 14 15 16 »
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Just popping in
Just popping in


See User information
Quote:

Chris wrote:
Please test this:
http://homepage.ntlworld.com/cdyoung/tmp/dot4print.lha

It should work with all HP printers, Dot4 or otherwise.

Quote:
Set your printer's serial number as follows:
setenv SAVE hpmud/0 00ABCD012345

The serial number can be obtained from USBInspector (and various other places)

Print a file using this syntax:
dot4print <filename>

The file can be a plain text file, or something processed by printer.device and written to a file (using printtofile.device)


There's also a mode parameter if you don't want normal Dot4 mode, see readme for details.

I have to power cycle my printer after every print, not sure what that is about yet.


I get my borrowed Sam next week so I will see about getting gutenprint to the point I'm at on AROS as soon as I get it setup.


after I confirm it working I will be posting an AOS4 archive for testing. :)

Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Amigans Defender
Amigans Defender


See User information
@terminills

Excellent!

Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Home away from home
Home away from home


See User information
Quote:

terminills wrote:
..
I get my borrowed Sam next week so I will see about getting gutenprint to the point I'm at on AROS as soon as I get it setup.


after I confirm it working I will be posting an AOS4 archive for testing. :)


Ya Da Man ! Great stuff

@ Chris

feels good finally getting both text & graphics working on our DOT4 printers eh

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Just popping in
Just popping in


See User information
Sounds exciting, cant wait.

Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Amigans Defender
Amigans Defender


See User information
Anybody know anything about libusb? It's giving me grief (again).

As a standalone, the code works fine.
As a .device, usb_find_devices never returns (I think it's getting stuck in a loop)

I got some debug out of libusb, and the devices are being found:
Quote:

Setting debugging level to 9 (on)
usb_os_find_busses: Found usb0
usb_os_find_devices: Found 5fe54790 on usb0
usb_os_find_devices: Found 5fe54b50 on usb0
usb_os_find_devices: Found 5fcda380 on usb0
usb_os_find_devices: Found 5fcda540 on usb0
usb_os_find_devices: Found 5fe546d0 on usb0
usb_os_find_devices: Found 5fcda1c0 on usb0
usb_os_find_devices: Found 5fe54610 on usb0
usb_os_find_devices: Found 5fe54d50 on usb0
usb_os_find_devices: Found 57961280 on usb0
usb_os_find_devices: Found 579612c0 on usb0


libusb must be working, so I haven't done anything completely stupid.

Any ideas?

Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Just popping in
Just popping in


See User information
@Chris:

Hmm... perhaps any stdlib calls in there, needing dos.library (hence needing a process)?

Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Amigans Defender
Amigans Defender


See User information
@whose

It's libusb.library so shouldn't be.

It looks like libusb.library has a _manager_Init function which does all the setup (loadng newlib.library etc). I'm not getting any debug out of this to say it has been called.

I thought the OS was supposed to call this, although I'm not sure, as usually that sort of setup is in the Open or Obtain functions.

edit: oh, wait, that's the "manager" interface. somewhat confused now. I'll try obtaining it regardless and see if anything interesting happens.

edit2: opening the "manager" interface makes no difference, BUT if I disconnect the printer it stops the device getting stuck.

edit3: Hmm, if I run dot4print and then try to use my .device, I don't get the freeze. There's definitely something that is getting initialised by the command line tool that I'm missing in the .device. In the meantime, I've created a little init command which is an adequate workaround for now.


Edited by Chris on 2013/2/23 11:55:06
Edited by Chris on 2013/2/23 11:59:59
Edited by Chris on 2013/2/23 12:25:30
Edited by Chris on 2013/2/23 12:43:46
Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Not too shy to talk
Not too shy to talk


See User information
if you manage to open libusb.library, then manager_init has been run with success.

“The best thing about a boolean is even if you are wrong, you are only off by a bit.”
Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Home away from home
Home away from home


See User information
@ rwo

great to see you back in this thread

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Amigans Defender
Amigans Defender


See User information
@rwo

OK, thanks. I don't think the problem is libusb, I think it is my ineptitude with writing .devices. I'm using a stripped-down lpr.device as a template, and have never written a .device before so don't really know what I'm doing.

I have a mostly-working port of libhpmud (supports Dot4 protocol on HP printers, amongst other things), I just need to get a sequence of six commands called from it in UnitOpen/CMD_WRITE/UnitClose (I'm not entirely sure whether printer.device opens and closes the unit around each job, but I assume it does).

Quote:

char uri[100];
int bytes = 0;
int ret;
HPMUD_DEVICE dd;
HPMUD_CHANNEL cd;
/* Open unit */
ret = hpmud_make_usb_serial_uri(serial, &uri, 100, &bytes);
if(ret == HPMUD_R_OK) {
ret = hpmud_open_device(uri, HPMUD_DOT4_MODE, &dd);
if(ret == HPMUD_R_OK) {
ret = hpmud_open_channel(dd, HPMUD_S_PRINT_CHANNEL, &cd);
if(ret == HPMUD_R_OK) {
/* CMD_WRITE */
ret = hpmud_write_channel(dd, cd, buf, size, 60, &bytes);
if(ret == HPMUD_R_OK) {
// io_Actual = bytes
}
}
/* Close unit */
ret = hpmud_close_channel(dd, cd);
}
ret = hpmud_close_device(dd);
}


That's literally it! The serial number comes out of a config file, and is the only bit which reliably works.

I can provide my libhpmud port if anybody wants to have a crack at it? I'm geting nowhere here.

Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Amigans Defender
Amigans Defender


See User information
I've taken a different approach, and released a beta of Dot4Spool - which is a print spooler anybody can use, with some built in (temperamental) Dot4 support.
http://www.unsatisfactorysoftware.co. ... wnload.php?file=dot4spool

Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Quite a regular
Quite a regular


See User information
Maybe I'm mixing up something here ('cos I only use network based printing - PCL/PS): What's the difference between this Dot4 driver* and your fresh upload?

*: http://www.os4depot.net/index.php?fun ... river/printer/usbdot4.lha

X1000|II/G4|440ep|2000/060|2000/040|1000
Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Amigans Defender
Amigans Defender


See User information
Quote:

cha05e90 wrote:
Maybe I'm mixing up something here ('cos I only use network based printing - PCL/PS): What's the difference between this Dot4 driver* and your fresh upload?

*: http://www.os4depot.net/index.php?fun ... river/printer/usbdot4.lha


That Dot4 driver is a proper .device, however it doesn't work for me and was never completed.

Mine is a print spooler device, which just chucks the printer.device's output into a spool directory. It then has a commodity which grabs the data from there and chucks it to the printer - either via a device such as PAR: or using built-in Dot4 printing. The Dot4 support on this does work for me, properly, in all cases that I've tried (bar the annoying habit it has of losing or not communicating with the printer when printing starts).

The advantage of the dot4.device is that it is the standard OS4 way of doing things and it is simple to install.
The advantage of my approach is that you get a print spooler for free (and you can use it as that and ignore the Dot4 stuff if you want). The disadvantage is it has an extra component to install/run.

Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Quite a regular
Quite a regular


See User information
@Chris

Ah, thank you very much for this explanation! Then I'll might try at least the spooling facilities of your device!

X1000|II/G4|440ep|2000/060|2000/040|1000
Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Amigans Defender
Amigans Defender


See User information
Right, bored with this now.

I've taken a completely different approach:
* ipp.device (Internet Printing Protocol driver - I've had limited success with LPR, but this thing seems rock solid)
* A Linux netbook being deployed as a print server

Set the printer driver in OS4 to PostScript, et voila! I don't even need a native OS4 driver for my printer (although the LJ4 one I'd been using previously was perfectly good).

I'm intending to deploy a Raspberry Pi as a permanent print server, and maybe a scanner server too. Problem permanently fixed.

Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Home away from home
Home away from home


See User information
Quote:

Chris wrote:
Right, bored with this now.

I've taken a completely different approach:
* ipp.device (Internet Printing Protocol driver - I've had limited success with LPR, but this thing seems rock solid)
* A Linux netbook being deployed as a print server

Set the printer driver in OS4 to PostScript, et voila! I don't even need a native OS4 driver for my printer (although the LJ4 one I'd been using previously was perfectly good).

I'm intending to deploy a Raspberry Pi as a permanent print server, and maybe a scanner server too. Problem permanently fixed.


I have cumulating problems with lpr myself (cumulating after more OS updates roll in) as it seems the device gets more and more unstable.

Where can i get that ipp.device (i take it it's working in AmigaOS4?)
Could you refrain the steps you took to make it work? I too would like to put the lpr to rest.

Using a printer with it's own IP through a router here.

Thanks a lot

Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Not too shy to talk
Not too shy to talk


See User information

CD32/A500/A600/A600+Furia/A1200/A4000D+A2320+PiccoloSD64/Sam440 flex 800MHz RAM 1GB HD7750 128MB OS4.1 SBLive! ->
Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Home away from home
Home away from home


See User information
Heh, on Aminet...i didn't look there

Thanks

Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Home away from home
Home away from home


See User information
Too bad it doesn't work here.

On printing i get a console window telling me 192.168.178.2: (the IP of the router the printer is connected to)

The documentation is rather short, where do i get the "Printer-name" from or how and where do i set it?

Seems i need to go back to lpr...

Go to top
Re: USB (DOT4) Printers & OS4.1 **Testing in Progress**
Amigans Defender
Amigans Defender


See User information
@Raziel

Yeah, the documentation is minimal as is the error reporting (although the Installer script is quite good). That error probably means it can't contact the printer.

What sort of printer is it? If it's a newish one it may well support IPP natively, in which case the details you need will be in the web interface on the printer.

If not, you'll need to install CUPS on a Linux box, set that up so it can print, and also set "share printers" and "remote admin" in the server settings.

Then you can go to http://printserver:631/printers - that will show all the printers, the whole printer URL you need to give ipp.device is the URL behind the link for whatever the printer is.

If it's an HP printer, apparently the URL should be http://169.254.15.2:631/ipp/port1 (with your printer's IP address in place of that one of course)

Go to top

  Register To Post
« 1 ... 10 11 12 (13) 14 15 16 »

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project