for the network stufff, I was thinking of opening a socket and just dumping the 
printer data from stdin or from a file depnding on commandline options. it'
s the easiest way to go. sockets is probably about 10-20 lines of code I think.
google sockets example (or look in the source code of the telnet program in 
wattcp).
then it's not 


DHCP printers are another thing altogether.  they do exist, they seem to be the 
consumer printers like officejets and like printers that have wifi or ethernet. 
they default to DHCP, but can be manually config'd for static (works better I 
think with static, just make sure ip is outside of DHCP range). 

not sure how to handle usb printers at this point. I know they are packet 
driven. usb.org has the specs. usb 2.0 uses 8b/10b but usb 3.0 uses 128b/132b 
encoding.


>________________________________
> From: Michael B. Brutman <[email protected]>
>To: Technical discussion and questions for FreeDOS developers. 
><[email protected]> 
>Sent: Saturday, July 12, 2014 9:17 AM
>Subject: Re: [Freedos-devel] FreeDOS JetDirect driver
> 
>
>
>My understanding of the printer problem leads to believe this is not 
>terribly easy.
>
>If every program out there uses the BIOS interrupts to send data to the 
>printer, then it is pretty easy - you install a handler to intercept the 
>BIOS calls and buffer the outgoing data elsewhere. The outgoing data 
>then gets sent via a network to the printer.  A TSR is not really even 
>needed; you can have a standard program do this, shell to DOS, and then 
>run the program to be intercepted from there.  Not as convenient as a 
>TSR, but much easier for debugging.
>
>However, if a program "bit bangs" the parallel port directly you can't 
>capture that output.  I don't know of any technique that allows one to 
>intercept raw port I/O commands, unless you are running in a virtual 
>machine (virtual 8086 mode included).  Then the host operating system 
>technically can intercept raw port I/O.
>
>The mTCP netcat program can be used to send the contents of a file 
>straight to a printer.  I think the HP JetDirect stuff (often found on 
>other printers) is pretty crude; it is just an open port and there is no 
>protocol or handshaking required.
>
>
>Mike
>
>
>
>
>
>------------------------------------------------------------------------------
>_______________________________________________
>Freedos-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/freedos-devel
>
>
> 

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to