Re: Advice on how to add the Epson SL-D700
Solomon Peachy <[email protected]>
| Newsgroups | gmane.linux.printing.gimp-print.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Aug 02, 2021 at 07:36:10PM -0400, Solomon Peachy wrote:
> LB 03 00 00 01 01 # sent before FP
It turns out this changes based on the media type.
Glossy: 00 01 00
Luster: 00 01 01
Matte: 00 01 32
I currently have this specified in the model.xml's preInitRemoteSequence
but that obviously won't do.
I've been trying to add it as a parameter from within a <paper> definition:
<parameter type="raw" name="escp2_preinit_remote_sequence">LB\003\000\000\001\001</parameter>
But it seems pd->preinit_remote_sequence is set in setup_basic(), far
before the paper definition is parsed. I added a hack in
adjust_density_and_ink_type() to explicitly check for that parameter:
if (pv && stp_check_raw_parameter(pv, "escp2_preinit_remote_sequence", STP_PARAMETER_ACTIVE))
pd->preinit_remote_sequence = escp2_preinit_remote_sequence(pv);
but that's a pretty ugly hack IMO. It perhaps makes more sense to add a
generic LB command send into escp2_set_remote_sequence() and create a
parameter to configure it. But what should I call it?
- Solomon
--
Solomon Peachy pizza at shaftnet dot org (email&xmpp)
@pizza:shaftnet dot org (matrix)
High Springs, FL speachy (libra.chat)
_______________________________________________
Gimp-print-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimp-print-devel
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE3H5Sx9DyiyB5hnENrGLLO/XVulEFAmEZuEUACgkQrGLLO/XV ulFAGQ//ZzBWVuZh9MssVUfE80x8rc3WXFnHXt3ogJPYpJrB9Fm6TW8Bm3LgXjDy y0jHdX8Tw/pqBcj1v+FK59WIwFNbUOjLzVoLvPaNu/D8xkv8mXLMLcxPyhLUdcvq +qANFBjOsvAb2ZNena7pIN/fzX6soY7AFYaiGqA/tYC8FxSQiZzDpX4FxTZJfVEx ETXhu+eh0G12/UZmtDa2tbyFI2F7IXYJj+E6DUu7m7kNxNPDM+ZeVCN+opoxZPgv UCq+rdrQ6O+YPSerAL38dPnZpzLv82KlETQPNcEKzx9GFjRZCVSslnP6CR52uN0m 7h/kT7Pm0d39WjHUQDANPNJZTqGwAOKtQ9JarKqr6Cf0VmEMD2xhEFm5E6Jz5miF 2+R0RGbp9ZkXpYiaOVtbTvgGyccMJZhlUjxmwK3zR4b6KfSbcEdNU99aCCZBcvo3 SrRvKq52BlpgxiBA9q7aCmVKAIoIOpyeGYIN3EvJ4FFgs8Bwl8UyU/9cGtSAEpqT +pfgZUB+UckJV6wkoeYBSIYRGLaRjFKsYfVnRTne2e3/uVDQMQD0Ug/R9xbpiUiy K2+8QSU1U9lKULusf7LWm6PWVOHfZ1SG6S+FRJ3V+ZxvG3hTOLlIdQ/7Vs2CicQF RsJjycXZBrjNpyyZp68mCt7zI6I11IsSqAzXdzG0VUO3mn025Jk= =QQJr -----END PGP SIGNATURE-----