Code Monkey home page Code Monkey logo

Comments (7)

hennedo avatar hennedo commented on June 16, 2024

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.

simaybocu avatar simaybocu commented on June 16, 2024

https://www.gainscha.com.tw/view/Thermal-Receipt-Printer/32.html

from escpos.

hennedo avatar hennedo commented on June 16, 2024

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.

simaybocu avatar simaybocu commented on June 16, 2024

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.

simaybocu avatar simaybocu commented on June 16, 2024

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.

hennedo avatar hennedo commented on June 16, 2024

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.

simaybocu avatar simaybocu commented on June 16, 2024

Yes, cut it that way too! :)

from escpos.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.