Giter Site home page Giter Site logo

Comments (9)

nneuberger1 avatar nneuberger1 commented on May 20, 2024

Here's some MCP30 documentation so it appears that it only supports USB and LAN and I'll be using for both an iPad (with likely a Square stand) and mobile devices. So likely it might be better to get bluetooth enabled devices
https://www.star-m.jp/products/s_print/mcprint3/manual/en/description/confirmedModels.htm

from starxpand_flutter.

nneuberger1 avatar nneuberger1 commented on May 20, 2024

I got it to work with relatively little test code!

I created a method like the following in main.dart of the sample app.

_pressedLANPrint() async {
    var printer = StarXpandPrinter(model: StarXpandPrinterModel.mCPrint3, identifier: '192.168.10.251', interface: StarXpandInterface.lan);

// call the existing method.
await _print(printer);
}

Then I added a button in the build method.

      ElevatedButton(child: Text('LAN Print'), onPressed: _pressedLANPrint),

At least the initial testing prototype is working! Out printed the ovatu receipt and the drawer opened!

from starxpand_flutter.

davidhole avatar davidhole commented on May 20, 2024

@nneuberger1 great that you're having success :)

Regarding the app not finding your LAN printer, this should definitely work, I would perhaps ensure that you have added the relevant keys for network access: NSLocalNetworkUsageDescription

Also, is the main star sample app able to find the printer and connect without you entering the IP address directly?

from starxpand_flutter.

nneuberger1 avatar nneuberger1 commented on May 20, 2024

I got it to work now. It turns out that I had a network route vlan configuration issue. your sample app now displays the printer and it prints fine. The original StarXpandSDK iOS app scans fine as well. I did notice the simulator via Xcode won't display the printer. That could be normal however. Let me know if that's expected.

from starxpand_flutter.

nneuberger1 avatar nneuberger1 commented on May 20, 2024

@davidhole can you recommend any scanners for a POS and will work with this library?

I didn't find much yet for API integration and some of the code to support it.

Thanks again for all of your help!

I purchased some cheaper USB scanners but not sure it's going to work with this library.

from starxpand_flutter.

davidhole avatar davidhole commented on May 20, 2024

@nneuberger1 this library wraps the StarXpand SDK so my understanding is that it only works with the mPOP scanner: https://star-emea.com/products/mpop/

This is what we use it with, it's not a general purpose barcode scanning SDK.

Not sure about the simulator, but I think that this is expected functionality, for POS printing, we test on device.

from starxpand_flutter.

nneuberger1 avatar nneuberger1 commented on May 20, 2024

@davidhole thanks for all your help. I ended up purchasing a socket mobile S740 device. Some of the specs look great and they have an API for various platforms including flutter.

https://store.socketmobile.com/products/socketscan-s740-universal-barcode-scanner

I've tried using much cheaper commodity devices like a Teva USB / Bluetooth scanner but I ran into so many issues with doing keyboard workarounds because most of them use some type of Keyboard HID mode. So it'll scan and receive the data, but the data is not correct. I tried search and replace functions to get the data back to the way it was, but iOS still sees it as a keyboard and thus blocking data entry.

This was the library I tried, but just didn't work well because of the Keyboard HID mode.
https://github.com/shaxxx/flutter_barcode_listener

Thanks again for your help.

from starxpand_flutter.

nneuberger1 avatar nneuberger1 commented on May 20, 2024

You can close this since the original issue was resolved. I'm just rambling and documenting for others to help them. Have a great day mate.

from starxpand_flutter.

davidhole avatar davidhole commented on May 20, 2024

No worries :)

from starxpand_flutter.

Related Issues (5)

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.