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

Adding New Printers from epson.toml #32

Open
aramis201 opened this issue Oct 20, 2024 · 6 comments
Open

Adding New Printers from epson.toml #32

aramis201 opened this issue Oct 20, 2024 · 6 comments
Labels
answered An answer has been given Stale

Comments

@aramis201
Copy link

Hello!

Tyvm for this program was able to reset an ET-2720 it's working great.

Now I'm trying to do an ET-2850 but didn't find anything in the attachment file though there's this other program i was trying that has this epson.toml file specifically this part:

[[EPSON]]
rkey = 0x364A
wkey = "Bsboujgp"
wkey1 = "Arantifo"
models = ["ET-2850", "ET-2851", "ET-2853", "ET-2855", "L4260", "L4261", "L4263", "L4265", "L4266", "L4267", "L4268", "L4269", "Workforce ST-C2100"]
mem = [
{ addr = [0x1C,0x34,0x35,0x36,0x37,0xFF] , desc = "Waste counters (?)" , reset = [0x00,0x00,0x00,0x5E,0x5E,0x5E] },
{ addr = [0x2F] , desc = "Waste counter" },
{ addr = [0x30,0x31] , desc = "Waste counter" },
{ addr = [0x32,0x33] , desc = "Waste counter" },
{ addr = [0xFC,0xFD] , desc = "Waste counter" },
{ addr = [0xFE] , desc = "Waste counter" },
]
rlen = 2
wlen = 2
mem_high = 0x7FF

anyway I can use this to create the pickle file to reset this printer?

TYVM

@Ircama
Copy link
Owner

Ircama commented Oct 20, 2024

This repository is focused on Python code development, I'm sorry but I have no time to provide usage support and add/test new printers.

The README includes all explanations on doing the work yourself. You might check the related chapter.

@Ircama Ircama added the answered An answer has been given label Oct 20, 2024
Ircama added a commit that referenced this issue Oct 21, 2024
Ref #32

Example:

Input file epson.toml

```
[[EPSON]]
rkey = 0x364A
wkey = "Bsboujgp"
wkey1 = "Arantifo"
models = ["ET-2850", "ET-2851", "ET-2853", "ET-2855", "L4260", "L4261", "L4263", "L4265", "L4266", "L4267", "L4268", "L4269", "Workforce ST-C2100"]
mem = [
{ addr = [0x1C,0x34,0x35,0x36,0x37,0xFF] , desc = "Waste counters (?)" , reset = [0x00,0x00,0x00,0x5E,0x5E,0x5E] },
{ addr = [0x2F] , desc = "Waste counter" },
{ addr = [0x30,0x31] , desc = "Waste counter" },
{ addr = [0x32,0x33] , desc = "Waste counter" },
{ addr = [0xFC,0xFD] , desc = "Waste counter" },
{ addr = [0xFE] , desc = "Waste counter" },
]
rlen = 2
wlen = 2
mem_high = 0x7FF
```

Command:

```
python3 parse_devices.py -T -c epson.toml -i -l 200
```

Conversion:
```
    PRINTER_CONFIG = {
        "ET-2850": {
            "read_key": [74, 54],
            "write_key": b"Arantifo",
            "raw_waste_reset": {28: 0, 52: 0, 53: 0, 54: 94, 55: 94, 255: 94, 47: 0, 48: 0, 49: 0, 50: 0, 51: 0, 252: 0, 253: 0, 254: 0},
            "alias": ["ET-2851", "ET-2853", "ET-2855", "L4260", "L4261", "L4263", "L4265", "L4266", "L4267", "L4268", "L4269", "Workforce ST-C2100"],
            "stats": {
                "Maintenance required level of 1st waste ink counter": [54],
                "Maintenance required level of 2nd waste ink counter": [55],
                "Maintenance required level of 3rd waste ink counter": [255],
            },
        }
    }
```
@Ircama
Copy link
Owner

Ircama commented Oct 21, 2024

You can use this command to process you fille:

python3 parse_devices.py -T -c epson.toml -i -l 200

@aramis201
Copy link
Author

You can use this command to process you fille:

python3 parse_devices.py -T -c epson.toml -i -l 200

Thank you! I'll try that tonight let you know how it goes.

Copy link
Contributor

github-actions bot commented Nov 6, 2024

This issue becomed stale because of no feedback for 15 days. Remove the stale label or add a comment; otherwise, this will be automatically closed in 30 days.

@github-actions github-actions bot added the Stale label Nov 6, 2024
@tensorx7
Copy link

tensorx7 commented Dec 1, 2024

Hello @aramis201 is this configuration working for 2850s models?

@github-actions github-actions bot removed the Stale label Dec 1, 2024
Copy link
Contributor

This issue becomed stale because of no feedback for 15 days. Remove the stale label or add a comment; otherwise, this will be automatically closed in 30 days.

@github-actions github-actions bot added the Stale label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered An answer has been given Stale
Projects
None yet
Development

No branches or pull requests

3 participants