You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Newline is required to fush the internal printer buffer and force it to print all text without cutting
154
160
155
-
###Print Service example
161
+
## Print Service
156
162
157
163
**Print 50 text tasks on A6+**
158
164
```python
@@ -171,7 +177,8 @@ for i in range(50):
171
177
```
172
178
Newline is required to fush the internal printer buffer and force it to print all text without cutting
173
179
174
-
### Suggestions
180
+
## Recommendations
181
+
175
182
* Don't forget about concentration, this can make print brighter and better visible.
176
183
* Split long images into multiple print requests with cooldown time for printer (printer may overheat during a long print and will stop printing for a while. This will result in partial print loss because the internal buffer is about 250px height). For example, when you print [looooooooooooooooooooooooooooooongcat.jpg](http://lurkmore.so/images/9/91/Loooooooooooooooooooooooooooooooooooooooooongcat.JPG), split it into at least 20 pieces with 1-2 minutes delay because you will definetly loose something without cooling. Printer gets hot very fast. Yes, it was the first that i've printed.
177
184
* Be carefull when printing lots of black or using max concentration, as i said, printer heats up very fast.
@@ -183,6 +190,8 @@ Newline is required to fush the internal printer buffer and force it to print al
183
190
184
191
View this [python notebook](https://github.com/bitrate16/peripage-python/blob/main/notebooks/peripage-tutorial.ipynb) for tutorial
185
192
193
+
View this [python notebook](https://github.com/bitrate16/peripage-python/blob/main/notebooks/Test-notebook.ipynb) for test
194
+
186
195
## Printer disassembly
187
196
188
197
[Disassembly for A6+](https://imgur.com/a/6LLwuaD)
@@ -194,17 +203,30 @@ View this [python notebook](https://github.com/bitrate16/peripage-python/blob/ma
194
203
* Python 2.7 support
195
204
* Implement overheat protection
196
205
* Implement cover open handler
197
-
* Tweak wait timings to precisely match the printing speed
206
+
* Tweak wait timings to precisely match printing speed
198
207
* Implement printer renaming
199
208
* Implement printing stop operation
200
209
* Reverse-engineer USB driver and add support for it
> A: Implement some features and make a pull request in this repo. For example, you could add info about USB communication, write a any-font printing using PIL text drawing, make an additional research in protocol and other cool things.
218
+
219
+
> Q: How to get my printer supported?
220
+
>
221
+
> A: If you own a peripage printer that is currently unsupported, you can reverse-engineer the bluetooth packets captured from the oficial printing app and find out the specs of your printer (the main and the only spec is bytes per row). Another way is to find how many letters can fit in a row when using `printASCII()`.
222
+
>
223
+
> If you would like to participate, please make an issue and I will guide you on how to obtain required parameters.
203
224
204
225
## Credits
205
226
206
227
*[Elias Weingärtner](https://github.com/eliasweingaertner) for initial work in reverse-engineering bluetooth protocol
207
228
*[bitrate16](https://github.com/bitrate16) for additional research and python module
229
+
*[henryleonard](https://github.com/henryleonard) for specs of A40 printer
0 commit comments