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

cannot print on D110_M #32

Open
jonsnow1357 opened this issue Feb 11, 2025 · 4 comments
Open

cannot print on D110_M #32

jonsnow1357 opened this issue Feb 11, 2025 · 4 comments

Comments

@jonsnow1357
Copy link

Hello,

I just got a new D110 Niimbot (says D110_M on the case) and all I can get so far are empty labels :(
I am trying to print png images from CLI.

There is a crash at line 296 in NiimPrintX/nimmy/printer.py because the return packet has 8 bytes instead of 4
I would be willing to help debug further but I cannot find any details about the BT protocol used to decode these packets.

Please advise

@MultiMote
Copy link

MultiMote commented Feb 11, 2025

Just ignore the extra data.

Alternative implementation

AndBondStyle/niimprint#38

@jonsnow1357
Copy link
Author

jonsnow1357 commented Feb 12, 2025

I tried, and it prints 2 empty labels ...

I think this is a different protocol. I have added some debug prints in the info section and you can see the differences.

  • SN is ASCII and not hex
  • SW ver is 4.17 in the Android app
  • HW ver si 4.01 in the Android app

2025-02-10T22:45:24.685666-0500 | INFO | Niimbot Information
Niimbot Information
2025-02-10T22:45:32.243818-0500 | INFO | Successfully connected to D110_M-GC18062826
DBG <NiimbotPacket type=72 data=bytearray(b'\t\x10')>
DBG <NiimbotPacket type=75 data=bytearray(b'GC18062826')>
DBG <NiimbotPacket type=73 data=bytearray(b'\x04\x11')>
DBG <NiimbotPacket type=76 data=bytearray(b'\x04\x01')>
Device Type : 2320
Device Serial : 47433138303632383236
Software Version : 10.41
Hardware Version : 10.25
2025-02-10T22:45:36.135131-0500 | INFO | Printer D110_M-GC18062826 disconnected.

Would you be willing to add support for this?
It's not clear to me how you can add multiple protocols to your code ...

@jonsnow1357 jonsnow1357 changed the title cannot print on D110 cannot print on D110_M Feb 12, 2025
@MultiMote
Copy link

MultiMote commented Feb 12, 2025

It's not clear to me how you can add multiple protocols to your code

That's not my code, and I am not the NiimPrintX author 😄

I think @LorisPolenz implemented support for your printer in #6
As I know, D110_M is compatible with B1 print task. But this PR is not accepted as this project is not maintained.

Alternatively, you can try niimblue, which is supported by me 🙂

@jonsnow1357
Copy link
Author

I can confirm that #6 works for D100_M.

Thank you

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