IonicWind Software

IWBasic => General Questions => Topic started by: Brian on March 28, 2021, 11:45:35 AM

Title: Feedback required, please, if you have the time
Post by: Brian on March 28, 2021, 11:45:35 AM
Hello,

I have been messing trying to see if I can get a response on whether my printer is switched on or off

On my Epson, when it is ON, Attributes returns 2624; when it is OFF, Attributes returns 3648

After a bit of digging, I realised that other makes of printers return similar values

ON:
Canon and Epson = 2624
Brother and Konica = 576

OFF:
Canon and Epson = 3648
Brother and Konica = 1600

Could you run this console program with your printer turned off, note the name of the printer and attribute, and then run it again with the printer on, and do the same

I obviously can't test it with anything else here, as I have only the one printer. Oh, and if anyone as an HP printer, that would be helpful, as well

Many thanks,

Brian
Title: Re: Feedback required, please, if you have the time
Post by: billhsln on March 28, 2021, 05:06:50 PM
I am not sure if it is due to my printer being a Network printer, but this is what I got for both on and off:

PrinterName        : HP Officejet Pro 8600 (Network)
PortName           : CN26CBT3KP05KC
DriverName         : HP Officejet Pro 8600
Attributes         : 2624

Status             : (null)

Bill
Title: Re: Feedback required, please, if you have the time
Post by: Andy on March 29, 2021, 03:59:01 AM
Brian,

Same as Canon and Epson for my HP Deskjet 2560C

Andy.
Title: Re: Feedback required, please, if you have the time
Post by: Egil on March 29, 2021, 05:04:28 AM
Brian,

My Brother HL-1210W connected to an USB port reports same values as for your Brother printer.

Egil
Title: Re: Feedback required, please, if you have the time
Post by: Brian on March 29, 2021, 07:21:18 AM
Thanks, chaps - gives me something to work on. Any more?

Brian
Title: Re: Feedback required, please, if you have the time
Post by: Brian on March 30, 2021, 03:54:41 AM
Here's a little test for you. The code should report if you have a default printer installed, or whether your default printer is switched on or off

Brian
Title: Re: Feedback required, please, if you have the time
Post by: ckoehn on April 17, 2021, 01:17:26 PM
I am just catching up here today.  I haven't been on this forum for awhile it seems.

Here is something to think about.

2624 = 0000 1010 0100 0000
3648 = 0000 1110 0100 0000

 576 = 0000 0010 0100 0000
1600 = 0000 0110 0100 0000

It looks like the 10th bit (bits start with 0) is set when the printer is unavailable.  I don't know if this is for all printers or not but it is interesting.

Later,
Clint