Giter Site home page Giter Site logo

Comments (19)

andrey-ushakov avatar andrey-ushakov commented on May 28, 2024 2

Hi,
Thank you for your feedback, I really appreciate it!
I didn't have time yet to dig into USB support but it looks like it's feasible using usb_serial library.
Some people already asked about the USB support, so I think it could be really useful to add this feature!

from esc_pos_printer.

AyushBherwani1998 avatar AyushBherwani1998 commented on May 28, 2024 1

@AyushBherwani1998 I think this package does not support ios? Have you tried it in ios?

Yes, this package only supports Android as of now. You will need to modify the package to support the iOS using PlatformChannel.

from esc_pos_printer.

komputerboy avatar komputerboy commented on May 28, 2024 1

any update on this?

from esc_pos_printer.

broberts-nybble avatar broberts-nybble commented on May 28, 2024

Hi Andrey,

Just to let you know, we have completed the usb driver for this, we are busy testing.

It was really simple enough to get going with very few changes.

from esc_pos_printer.

andrey-ushakov avatar andrey-ushakov commented on May 28, 2024

Hi Brandon,

Sounds great! Thank you for your work!
I'm waiting for your pull request to test it.

from esc_pos_printer.

andrey-ushakov avatar andrey-ushakov commented on May 28, 2024

Hi Brandon,

Are you ready to make a pull request? I could include your changes into the next release.

from esc_pos_printer.

kevj121 avatar kevj121 commented on May 28, 2024

Hi Andrey/Brandon

I would be really interested in testing this too? We were looking at embarking on a similar integration.

from esc_pos_printer.

n0tc0ding avatar n0tc0ding commented on May 28, 2024

@broberts-nybble can you share the usb part for this please?

from esc_pos_printer.

AyushBherwani1998 avatar AyushBherwani1998 commented on May 28, 2024

Any updates on the support for USB Driver? I would like to work if @andrey-ushakov you can provide me some guidance.

from esc_pos_printer.

andrey-ushakov avatar andrey-ushakov commented on May 28, 2024

Hi @AyushBherwani1998 ,

That will be really helpful!

I expect it shouldn't be too hard to develop using this usb_serial library (android only) but I don't have an appropriate device to which I can connect my POS printer and test.

So it would be great if you could play a bit with an Android device, POS printer and this usb lib. Basically all we need to do is to send same POS commands over USB.

For example, you can create a simple demo app where user will choose an USB device (his POS printer) from a list and after that you can print a test ticket sending commands via USB.

The most interesting part would be how to create a class architecture to support USB and WiFi (and probably Bluetooth in future) connections.

Probably we can create a low-level (abstract) class PrinterAbstract that will generate POS commands and 2 classes - PrinterWifi and PrinterUsb that will send those commands over Wifi or Usb.

from esc_pos_printer.

AyushBherwani1998 avatar AyushBherwani1998 commented on May 28, 2024

Hi @AyushBherwani1998 ,

That will be really helpful!

I expect it shouldn't be too hard to develop using this usb_serial library (android only) but I don't have an appropriate device to which I can connect my POS printer and test.

So it would be great if you could play a bit with an Android device, POS printer and this usb lib. Basically all we need to do is to send same POS commands over USB.

For example, you can create a simple demo app where user will choose an USB device (his POS printer) from a list and after that you can print a test ticket sending commands via USB.

The most interesting part would be how to create a class architecture to support USB and WiFi (and probably Bluetooth in future) connections.

Probably we can create a low-level (abstract) class PrinterAbstract that will generate POS commands and 2 classes - PrinterWifi and PrinterUsb that will send those commands over Wifi or Usb.

Hey, I'm trying to connect the thermal printer but it always throws a Platform Exception. I saw the issue was closed by @broberts-nybble

@broberts-nybble A little help would be appreciated.

from esc_pos_printer.

broberts-nybble avatar broberts-nybble commented on May 28, 2024

Hi @AyushBherwani1998 ,
That will be really helpful!
I expect it shouldn't be too hard to develop using this usb_serial library (android only) but I don't have an appropriate device to which I can connect my POS printer and test.
So it would be great if you could play a bit with an Android device, POS printer and this usb lib. Basically all we need to do is to send same POS commands over USB.
For example, you can create a simple demo app where user will choose an USB device (his POS printer) from a list and after that you can print a test ticket sending commands via USB.
The most interesting part would be how to create a class architecture to support USB and WiFi (and probably Bluetooth in future) connections.
Probably we can create a low-level (abstract) class PrinterAbstract that will generate POS commands and 2 classes - PrinterWifi and PrinterUsb that will send those commands over Wifi or Usb.

Hey, I'm trying to connect the thermal printer but it always throws a Platform Exception. I saw the issue was closed by @broberts-nybble

@broberts-nybble A little help would be appreciated.

Hey @AyushBherwani1998, basically the issue was that the device was not set to virtual com, what needed to happen was I had to plug it into my PC, open the sample app they generally provide and set it's comm protocol to Virtual COM, then it connected and did not crash.

from esc_pos_printer.

nguyenphuochai1998 avatar nguyenphuochai1998 commented on May 28, 2024

Hi @AyushBherwani1998 ,
That will be really helpful!
I expect it shouldn't be too hard to develop using this usb_serial library (android only) but I don't have an appropriate device to which I can connect my POS printer and test.
So it would be great if you could play a bit with an Android device, POS printer and this usb lib. Basically all we need to do is to send same POS commands over USB.
For example, you can create a simple demo app where user will choose an USB device (his POS printer) from a list and after that you can print a test ticket sending commands via USB.
The most interesting part would be how to create a class architecture to support USB and WiFi (and probably Bluetooth in future) connections.
Probably we can create a low-level (abstract) class PrinterAbstract that will generate POS commands and 2 classes - PrinterWifi and PrinterUsb that will send those commands over Wifi or Usb.

Hey, I'm trying to connect the thermal printer but it always throws a Platform Exception. I saw the issue was closed by @broberts-nybble
@broberts-nybble A little help would be appreciated.

Hey @AyushBherwani1998, basically the issue was that the device was not set to virtual com, what needed to happen was I had to plug it into my PC, open the sample app they generally provide and set it's comm protocol to Virtual COM, then it connected and did not crash.

Can you show me code plz!!

from esc_pos_printer.

ccfiel avatar ccfiel commented on May 28, 2024

@broberts-nybble any updates in your PR?

from esc_pos_printer.

AyushBherwani1998 avatar AyushBherwani1998 commented on May 28, 2024

I was not able to achieve the functionality using usb_serial library. Instead, I used another package esc-pos-printer-flutter with combination with this package and made an interface to achieve usb and bluetooth. If you are using esc-pos-printer-flutter package you need to add other functionalities by yourself.

from esc_pos_printer.

ccfiel avatar ccfiel commented on May 28, 2024

esc-pos-printer-flutter this is for usb. What package did you use for bluetooth? @AyushBherwani1998

from esc_pos_printer.

AyushBherwani1998 avatar AyushBherwani1998 commented on May 28, 2024

esc-pos-printer-flutter this is for usb. What package did you use for bluetooth? @AyushBherwani1998

For bluetooth I used blue_thermal_printer plugin. It has all the print options you require.

from esc_pos_printer.

ccfiel avatar ccfiel commented on May 28, 2024

@AyushBherwani1998 I think this package does not support ios? Have you tried it in ios?

from esc_pos_printer.

ccfiel avatar ccfiel commented on May 28, 2024

Thanks @AyushBherwani1998

from esc_pos_printer.

Related Issues (20)

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.