bitbank2 / Print2BLE

MacOS app which allows drag and drop of images to BLE thermal printers
Apache License 2.0
67 stars 11 forks source link

Can't connect #11

Closed tomhannen closed 2 years ago

tomhannen commented 2 years ago

Steps to replicate:

Power up the printer. The printer is flashing a blue LED. When I run the app (from the binary in the zip file), and click on Connect, nothing happens:

ScreenFlow

I am using: Cat thermal printer "MINI Printer", which registers as bluetooth name "MX06" using the official Fun Print iOS app MacBook Pro M1 running MacOS 12.4

Any advice for fault finding appreciated

bitbank2 commented 2 years ago

That printer name is not in the supported list. There are a bunch of cat/rabbit/panda printer variations and they not only have different BLE names, but different protocols (undocumented) too. I'm sorry, but try changing the code to search for that name and see if the protocol matches the other printers.

tomhannen commented 2 years ago

Thanks - I'll try building in XCode and give it a go. Whereabouts in the files is the variable for changing the code please?

bitbank2 commented 2 years ago

https://github.com/bitbank2/Print2BLE/blob/529c68842d484a5f7ca00f8be448deb4e81df2c9/Print2BLE/MyBLE.m#L54

tomhannen commented 2 years ago

The code failed when I added "MX06" to the *szTypes array. But then I also added "PRINTER_CAT" to the ucTypes array and it worked, kind of!

It prints approximately the top quarter of each image I feed it:

IMG_2075

Feeding works correctly.

Hope this helps with any debugging

bitbank2 commented 2 years ago

I can't debug this without having the printer here; sorry, I wish I could help more.