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

packet.type == 219: raise ValueError #36

Open
Soggytoast111 opened this issue Nov 6, 2024 · 2 comments
Open

packet.type == 219: raise ValueError #36

Soggytoast111 opened this issue Nov 6, 2024 · 2 comments

Comments

@Soggytoast111
Copy link

I'm trying to troubleshoot my setup here -- Can you explain what is tripping this?
Model: B1
Connection: Bluetooth
Printing: examples\B21_30x15mm_240x120px

DEBUG | PngImagePlugin:call:190 - STREAM b'IHDR' 16 13
DEBUG | PngImagePlugin:call:190 - STREAM b'sRGB' 41 1
DEBUG | PngImagePlugin:call:190 - STREAM b'gAMA' 54 4
DEBUG | PngImagePlugin:call:190 - STREAM b'pHYs' 70 9
DEBUG | PngImagePlugin:call:190 - STREAM b'IDAT' 91 403
DEBUG | printer:_log_buffer:146 - send: 55:55:21:01:05:25:aa:aa
DEBUG | printer:_log_buffer:146 - recv: 55:55:31:01:01:31:aa:aa
DEBUG | printer:_log_buffer:146 - send: 55:55:23:01:01:23:aa:aa
DEBUG | printer:_log_buffer:146 - recv: 55:55:33:01:01:33:aa:aa
DEBUG | printer:_log_buffer:146 - send: 55:55:01:01:01:01:aa:aa
DEBUG | printer:_log_buffer:146 - recv: 55:55:db:01:02:d8:aa:aa

...

  File "printer.py", line 259, in start_print
    packet = self._transceive(RequestCodeEnum.START_PRINT, b"\x01")
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "printer.py", line 159, in _transceive
    raise ValueError
@MultiMote
Copy link

MultiMote commented Nov 6, 2024

You received PrintError (0xdb) LackPaper (0x02) after PrintStart. It is not handled by niimprint.

P.S. B1 uses other PrintStart format (7 bytes of payload instead of 1). See this.

@Soggytoast111
Copy link
Author

Thanks. Another stupid question answered. I didn't have the roll properly loaded.

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

2 participants