Comments (7)
Hey @simaybocu,
can you provide ESC/POS documentation specific to the GP-80250VN printer (in english language..)? I have no access to such a printer and all I can find is some DLL files with chinese documentation. Without proper documentation my guess is as good as yours..
from escpos.
https://www.gainscha.com.tw/view/Thermal-Receipt-Printer/32.html
from escpos.
Thats the link I found, but there is no command set manual there and the SDK are precompiled dll files...
There are two more cut commands defined in the esc/pos command manual, maybe one of those work? Have a look at "ESC i" - full cut and "ESC m" - partial cut
from escpos.
Thats the link I found, but there is no command set manual there and the SDK are precompiled dll files... There are two more cut commands defined in the esc/pos command manual, maybe one of those work? Have a look at "ESC i" - full cut and "ESC m" - partial cut
yes i have reviewed the manual script as you said https://pos-x.com/download/escpos-programming-manual/
To do this, use the Cut function.
func (e *Escpos) Cut() (int, error) {
return e.WriteRaw([]byte{esc, 'm'})
}
I edit it this way but it still doesn't cut it 😞 . Am I thinking wrong? If you have a different idea, could you please help?
from escpos.
Thats the link I found, but there is no command set manual there and the SDK are precompiled dll files... There are two more cut commands defined in the esc/pos command manual, maybe one of those work? Have a look at "ESC i" - full cut and "ESC m" - partial cut
yes i have reviewed the manual script as you said https://pos-x.com/download/escpos-programming-manual/
To do this, use the Cut function.
func (e *Escpos) Cut() (int, error) { return e.WriteRaw([]byte{esc, 'm'}) }
I edit it this way but it still doesn't cut it 😞 . Am I thinking wrong? If you have a different idea, could you please help?
using a different package. Cut function
func (e *Escpos) Cut() (int, error) {
return e.WriteRaw([]byte{0x1b, 0x64, 0x04, 0x1b, 0x64, 0x04, 0x1d, 0x56, 0x00, 0x1b, 0x40})
}
i updated it like this and the problem was solved. I'm closing the issue. But maybe it will be of use to someone else :)
from escpos.
OK I guess these are multiple commands in one:
0x1b - ESC
0x64 - d
0x04 - in this case the number 4
-> Print and Feed 4 Lines
This is done twice
0x1d - GS
0x56 - V
0x00 - the number 0
-> Cut operation.
0x1b - ESC
0x40 - @
-> Initialize the Printer aka reset all styling
Can you do me a favour and test if cutting works with:
return e.WriteRaw([]byte{gs, 0x56, 0x01})
from escpos.
Yes, cut it that way too! :)
from escpos.
Related Issues (15)
- Print number 0 (zero) at the end of every line HOT 15
- Libiconv dependency handling HOT 4
- Epson TMU220
- centering the QR code
- question: how can you print a line with this? HOT 3
- BrokenImport HOT 1
- p.SetConfig unavailable
- WASM build failing HOT 3
- Cyrillic HOT 10
- Doesn't work on WASM HOT 4
- Printing images is extremely slow HOT 1
- can't read errors from the printer
- p.SetConfig undefined (type *escpos.Escpos has no field or method SetConfig) HOT 1
- Printing from a printer with an internal IP HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from escpos.