Comments (19)
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 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.
any update on this?
from esc_pos_printer.
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.
Hi Brandon,
Sounds great! Thank you for your work!
I'm waiting for your pull request to test it.
from esc_pos_printer.
Hi Brandon,
Are you ready to make a pull request? I could include your changes into the next release.
from esc_pos_printer.
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.
@broberts-nybble can you share the usb part for this please?
from esc_pos_printer.
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.
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.
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
andPrinterUsb
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.
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) classPrinterAbstract
that will generate POS commands and 2 classes -PrinterWifi
andPrinterUsb
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.
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) classPrinterAbstract
that will generate POS commands and 2 classes -PrinterWifi
andPrinterUsb
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.
@broberts-nybble any updates in your PR?
from esc_pos_printer.
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.
esc-pos-printer-flutter this is for usb. What package did you use for bluetooth? @AyushBherwani1998
from esc_pos_printer.
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.
@AyushBherwani1998 I think this package does not support ios? Have you tried it in ios?
from esc_pos_printer.
Thanks @AyushBherwani1998
from esc_pos_printer.
Related Issues (20)
- Please update image plugin to ^4.0.0
- How to use Thermal printer in flutter Web HOT 1
- No option to pass COLOR CODE in style HOT 1
- can't print a long image HOT 2
- Socket has not been initialized when calling rawBytes method
- Line spacing using the ESC 3 <n> command
- Please update image plugin to ^4.0.0 HOT 2
- can you update example ? wifi has depecrated
- [ binding] Print result: Error. Printer connection timeout
- it will also work with Android POS Machine?
- FYI: esc_pos_dart
- issues after flutter upgrade to last. HOT 1
- Issue in install pakage.
- Image printing problem is slow on real device
- lineThrough
- Star Micronics SP700 / SP742 - Ethernet (Column spacing)
- Can we print Marathi language text using esc_pos_printer HOT 1
- The lower bound of "sdk: '>=2.7.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.
- How to monitor printer status? HOT 1
- hr()
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 esc_pos_printer.