Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functionality for HP LaserJet P2015 Series #181

Open
TheCre8r opened this issue Sep 24, 2024 · 4 comments
Open

Add functionality for HP LaserJet P2015 Series #181

TheCre8r opened this issue Sep 24, 2024 · 4 comments

Comments

@TheCre8r
Copy link

First off, I know this printer is old AF.
I am hoping you can add this, as it has the printer stats available on its web interface. If there is anything I can do to help assist in getting this added, I am more than willing to do what I can.

image

@TheCre8r
Copy link
Author

TheCre8r commented Oct 5, 2024

`http://${ipaddress}/hp/device/product_information.xml`

provides

<ProductInformation xmlns="http://www.hp.com/schemas/imaging/pls/dev/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hp.com/schemas/imaging/pls/dev/1.0 ProductInformation.xsd">
<ProductName>HP LaserJet P2015 Series</ProductName>
<FormatterNumber>REDACTED_FOR_GITHUB</FormatterNumber>
<PrinterNumber>CB364A</PrinterNumber>
<ProductSerialNumber>REDACTED_FOR_GITHUB</ProductSerialNumber>
<ServiceID>18097</ServiceID>
<DfaData>0</DfaData>
<FirmwareDatecode>20070221</FirmwareDatecode>
<MaxPrintResolution>0</MaxPrintResolution>
<ControllerNumber>8</ControllerNumber>
<DuplexInstalled>1</DuplexInstalled>
<PrintEnginePPM>27</PrintEnginePPM>
<IPAddress>REDACTED_FOR_GITHUB</IPAddress>
<HardwareAddress>REDACTED_FOR_GITHUB</HardwareAddress>
</ProductInformation>

@TheCre8r
Copy link
Author

TheCre8r commented Oct 5, 2024

`http://${ipaddress}/hp/device/info_config.xml`

provides

<ConfigurationPage xmlns="http://www.hp.com/schemas/imaging/pls/dev/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hp.com/schemas/imaging/pls/dev/1.0 ConfigurationPage.xsd">
<ProductInformation>
<ProductName>HP LaserJet P2015 Series</ProductName>
<FormatterNumber>REDACTED_FOR_GITHUB</FormatterNumber>
<PrinterNumber>CB364A</PrinterNumber>
<ProductSerialNumber>REDACTED_FOR_GITHUB</ProductSerialNumber>
<ServiceID>18097</ServiceID>
<DfaData>0</DfaData>
<FirmwareDatecode>20070221</FirmwareDatecode>
<MaxPrintResolution>0</MaxPrintResolution>
<ControllerNumber>8</ControllerNumber>
<DuplexInstalled>1</DuplexInstalled>
<PrintEnginePPM>27</PrintEnginePPM>
<IPAddress>REDACTED_FOR_GITHUB</IPAddress>
<HardwareAddress>REDACTED_FOR_GITHUB</HardwareAddress>
</ProductInformation>
<ProductSettings>
<DeviceDescription>HP LaserJet P2015 Series</DeviceDescription>
<DeviceLanguage>1</DeviceLanguage>
<AssetNumber/>
<CompanyName/>
<ContactPerson/>
</ProductSettings>
<Memory>
<TotalMemory>288</TotalMemory>
<AvailableMemory>260.68</AvailableMemory>
</Memory>
<InstalledPersonalitiesAndOptions>
<Personality>7</Personality>
<DIMM1>
<DIMM1_Side1Size>256</DIMM1_Side1Size>
<DIMM1_Side1Type>5</DIMM1_Side1Type>
<DIMM1_Side2Size>0</DIMM1_Side2Size>
<DIMM1_Side2Type>1</DIMM1_Side2Type>
</DIMM1>
</InstalledPersonalitiesAndOptions>
<PaperSettings>
<DefaultPaperSize>2</DefaultPaperSize>
<Tray1Size>0</Tray1Size>
<Tray2Size>0</Tray2Size>
<DefaultPaperType>2</DefaultPaperType>
<Tray1Type>1</Tray1Type>
<Tray2Type>1</Tray2Type>
<PaperOutTime>-1</PaperOutTime>
<PaperOutAction>0</PaperOutAction>
<ManualFeed>0</ManualFeed>
<Duplex>0</Duplex>
<Bind>0</Bind>
<PlainMediaType>2</PlainMediaType>
<LightMediaType>3</LightMediaType>
<HeavyMediaType>1</HeavyMediaType>
<CardStockMediaType>4</CardStockMediaType>
<ColoredMediaType>2</ColoredMediaType>
<PreprintedMediaType>2</PreprintedMediaType>
<LetterheadMediaType>2</LetterheadMediaType>
<PrepunchedMediaType>2</PrepunchedMediaType>
<RecycledMediaType>2</RecycledMediaType>
<LabelsMediaType>8</LabelsMediaType>
<BondMediaType>1</BondMediaType>
<EnvelopeMediaType>6</EnvelopeMediaType>
<RoughMediaType>1</RoughMediaType>
<TransparencyMediaType>5</TransparencyMediaType>
</PaperSettings>
<PrintSettings>
<Copies>1</Copies>
<WideA4>0</WideA4>
<Courier>0</Courier>
<AutoContinue>0</AutoContinue>
<Orientation>0</Orientation>
<Ret>1</Ret>
<Economode>0</Economode>
<BlackPrintDensity>3</BlackPrintDensity>
<ConnectionTimeout>120</ConnectionTimeout>
<JamRecovery>2</JamRecovery>
<PCL5e>
<FontSource>0</FontSource>
<FontNumber>0</FontNumber>
<FontPitch>10.00</FontPitch>
<FontPointSize>12.00</FontPointSize>
<SymbolSet>0</SymbolSet>
<FormLines>60</FormLines>
<LineTermination>0</LineTermination>
</PCL5e>
<PostScript>
<PS_PrintError>0</PS_PrintError>
</PostScript>
</PrintSettings>
<PageCounts>
<TotalPagesPrinted>228864</TotalPagesPrinted>
<TotalDuplexPagesPrinted>485</TotalDuplexPagesPrinted>
<TotalPagesMispicked>54</TotalPagesMispicked>
<TotalPagesJammed>24</TotalPagesJammed>
<TotalPCL6PagesPrinted>174219</TotalPCL6PagesPrinted>
<TotalPSPagesPrinted>47</TotalPSPagesPrinted>
<TotalPCLPagesPrinted>55274</TotalPCLPagesPrinted>
</PageCounts>
</ConfigurationPage>

@TheCre8r
Copy link
Author

TheCre8r commented Oct 5, 2024

`http://${ipaddress}/hp/device/hp_instant_support.xml`

provides

<xdm:Device
	xmlns:xdm="http://www.hp.com/schemas/imaging/con/xdm/1.1/"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/">
	<xdm:Configuration></xdm:Configuration>
	<xdm:Information>
		<xdm:Component id="i1000" componentType="system">
			<dd:MakeAndModel>HP LaserJet P2015 Series</dd:MakeAndModel>
			<dd:Description>HP LaserJet P2015 Series</dd:Description>
			<dd:ProductNumber>CB364A</dd:ProductNumber>
			<dd:SerialNumber>REDACTED_FOR_GITHUB</dd:SerialNumber>
			<dd:ServiceID>18097</dd:ServiceID>
			<dd:Version>
				<dd:Date>2007-02-21</dd:Date>
			</dd:Version>
		</xdm:Component>
		<xdm:Component id="i1400" componentType="digitalStorage">
			<dd:DigitalStorageTypeEnum>DIMM</dd:DigitalStorageTypeEnum>
			<dd:Capacity>
				<dd:MaxCapacity>256</dd:MaxCapacity>
				<dd:Unit>kilobyte</dd:Unit>
			</dd:Capacity>
		</xdm:Component>
		<xdm:ComponentGroup>
			<xdm:Component id="i2400" componentType="mediaInput">
				<dd:InputBin>Tray1</dd:InputBin>
				<dd:MediaSizeName>Any size</dd:MediaSizeName>
			</xdm:Component>
			<xdm:Component id="i2401" componentType="mediaInput">
				<dd:InputBin>Tray2</dd:InputBin>
				<dd:MediaSizeName>Any size</dd:MediaSizeName>
			</xdm:Component>
		</xdm:ComponentGroup>
		<xdm:ComponentGroup>
			<xdm:Component id="i2600" componentType="consumable">
				<dd:ConsumableTypeEnum>tonerCartridge</dd:ConsumableTypeEnum>
				<dd:MakeAndModel>7936</dd:MakeAndModel>
				<dd:Description>Black Cartridge Q7553X</dd:Description>
				<dd:ProductNumber>Q7553X</dd:ProductNumber>
				<dd:LastUse>2024-09-27</dd:LastUse>
				<dd:Manufacturer>
					<dd:Name>HP</dd:Name>
					<dd:Date>2006-12-27</dd:Date>
				</dd:Manufacturer>
				<dd:SerialNumber>11858</dd:SerialNumber>
				<dd:Installation>
					<dd:Date>2022-07-27</dd:Date>
				</dd:Installation>
				<dd:Reseller>
					<dd:IDNumber>0</dd:IDNumber>
				</dd:Reseller>
				<dd:Capacity measurementSource="system" id="i2700">
					<dd:MaxCapacity>2620</dd:MaxCapacity>
					<dd:Unit>tenthsOfGrams</dd:Unit>
				</dd:Capacity>
				<dd:Capacity measurementSource="elabel" id="i2800">
					<dd:MaxCapacity>100</dd:MaxCapacity>
					<dd:Unit>percent</dd:Unit>
				</dd:Capacity>
				<dd:Capacity>
					<dd:MaxCapacity>70</dd:MaxCapacity>
					<dd:Unit>1KImpressionsAt5PercentCoverage</dd:Unit>
				</dd:Capacity>
			</xdm:Component>
		</xdm:ComponentGroup>
	</xdm:Information>
	<xdm:Metrics>
		<xdm:Logs>
			<xdm:Log idRef="i1000">
				<dd:Event>
					<dd:SequenceNumber>10</dd:SequenceNumber>
					<dd:EventCode>49.1598</dd:EventCode>
					<dd:Counter>
						<dd:Unit>impressions</dd:Unit>
						<dd:CountInteger>228723</dd:CountInteger>
					</dd:Counter>
				</dd:Event>
				<dd:Event>
					<dd:SequenceNumber>9</dd:SequenceNumber>
					<dd:EventCode>20.0000</dd:EventCode>
					<dd:Counter>
						<dd:Unit>impressions</dd:Unit>
						<dd:CountInteger>228723</dd:CountInteger>
					</dd:Counter>
				</dd:Event>
				<dd:Event>
					<dd:SequenceNumber>8</dd:SequenceNumber>
					<dd:EventCode>20.0000</dd:EventCode>
					<dd:Counter>
						<dd:Unit>impressions</dd:Unit>
						<dd:CountInteger>228719</dd:CountInteger>
					</dd:Counter>
				</dd:Event>
				<dd:Event>
					<dd:SequenceNumber>7</dd:SequenceNumber>
					<dd:EventCode>13.0000</dd:EventCode>
					<dd:Counter>
						<dd:Unit>impressions</dd:Unit>
						<dd:CountInteger>228715</dd:CountInteger>
					</dd:Counter>
				</dd:Event>
				<dd:Event>
					<dd:SequenceNumber>6</dd:SequenceNumber>
					<dd:EventCode>13.0000</dd:EventCode>
					<dd:Counter>
						<dd:Unit>impressions</dd:Unit>
						<dd:CountInteger>228714</dd:CountInteger>
					</dd:Counter>
				</dd:Event>
				<dd:Event>
					<dd:SequenceNumber>5</dd:SequenceNumber>
					<dd:EventCode>49.2884</dd:EventCode>
					<dd:Counter>
						<dd:Unit>impressions</dd:Unit>
						<dd:CountInteger>228712</dd:CountInteger>
					</dd:Counter>
				</dd:Event>
				<dd:Event>
					<dd:SequenceNumber>4</dd:SequenceNumber>
					<dd:EventCode>13.0000</dd:EventCode>
					<dd:Counter>
						<dd:Unit>impressions</dd:Unit>
						<dd:CountInteger>228712</dd:CountInteger>
					</dd:Counter>
				</dd:Event>
				<dd:Event>
					<dd:SequenceNumber>3</dd:SequenceNumber>
					<dd:EventCode>13.0000</dd:EventCode>
					<dd:Counter>
						<dd:Unit>impressions</dd:Unit>
						<dd:CountInteger>228692</dd:CountInteger>
					</dd:Counter>
				</dd:Event>
				<dd:Event>
					<dd:SequenceNumber>2</dd:SequenceNumber>
					<dd:EventCode>13.0000</dd:EventCode>
					<dd:Counter>
						<dd:Unit>impressions</dd:Unit>
						<dd:CountInteger>228691</dd:CountInteger>
					</dd:Counter>
				</dd:Event>
				<dd:Event>
					<dd:SequenceNumber>1</dd:SequenceNumber>
					<dd:EventCode>13.0000</dd:EventCode>
					<dd:Counter>
						<dd:Unit>impressions</dd:Unit>
						<dd:CountInteger>228690</dd:CountInteger>
					</dd:Counter>
				</dd:Event>
			</xdm:Log>
			<xdm:Log idRef="i2600">
				<dd:Event>
					<dd:LastUse>2024-09-27</dd:LastUse>
				</dd:Event>
			</xdm:Log>
		</xdm:Logs>
		<xdm:Data>
			<xdm:DataItem idRef="i1000">
				<dd:Counter>
					<dd:Unit>impressions</dd:Unit>
					<dd:CountInteger scaling="absolute">228864</dd:CountInteger>
					<dd:ChromaticMode>monochrome</dd:ChromaticMode>
				</dd:Counter>
			</xdm:DataItem>
			<xdm:DataItem idRef="i2800">
				<dd:Counter>
					<dd:Unit>jobs</dd:Unit>
					<dd:CountInteger scaling="absolute">37</dd:CountInteger>
				</dd:Counter>
			</xdm:DataItem>
			<xdm:DataItem idRef="i2800">
				<dd:Counter>
					<dd:Unit>impressions</dd:Unit>
					<dd:CountInteger scaling="equivalent">192</dd:CountInteger>
					<dd:MediaSizeName>letter</dd:MediaSizeName>
				</dd:Counter>
				<dd:Counter>
					<dd:Unit>impressions</dd:Unit>
					<dd:CountInteger>0</dd:CountInteger>
					<dd:MediaSizeName>legal_or_b4</dd:MediaSizeName>
				</dd:Counter>
				<dd:Counter>
					<dd:Unit>impressions</dd:Unit>
					<dd:CountInteger>190</dd:CountInteger>
					<dd:MediaSizeName>a4_or_letter</dd:MediaSizeName>
				</dd:Counter>
				<dd:Counter>
					<dd:Unit>impressions</dd:Unit>
					<dd:CountInteger>0</dd:CountInteger>
					<dd:MediaSizeName>custom_or_other</dd:MediaSizeName>
				</dd:Counter>
			</xdm:DataItem>
		</xdm:Data>
	</xdm:Metrics>
	<xdm:Services></xdm:Services>
	<xdm:Status>
		<xdm:StatusCollection idRef="i1000">
			<dd:Language>en-US</dd:Language>
		</xdm:StatusCollection>
		<xdm:StatusGroup>
			<xdm:StatusCollection idRef="i2600">
				<dd:Parameter>
					<dd:Name>Consumable_Current_State</dd:Name>
					<dd:DataInt>8192</dd:DataInt>
				</dd:Parameter>
				<dd:ConsumableStateGroup>
					<dd:ConsumableState>ok</dd:ConsumableState>
				</dd:ConsumableStateGroup>
				<dd:Brand>HP</dd:Brand>
			</xdm:StatusCollection>
			<xdm:StatusCollection idRef="i2700">
				<dd:Level>2516</dd:Level>
			</xdm:StatusCollection>
			<xdm:StatusCollection idRef="i2800">
				<dd:Level>96</dd:Level>
			</xdm:StatusCollection>
		</xdm:StatusGroup>
	</xdm:Status>

@TheCre8r
Copy link
Author

TheCre8r commented Oct 5, 2024

Also not sure if this page is helpful:
https://www.hp.com/hpocv20/fp/test/aws_server3/fpconfig.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant