简体   繁体   English

将 USB POS 打印机与 Android 平板电脑上的应用程序集成

[英]Integrate USB POS printer with app from Android tablet

My goal is to integrate a USB POS thermal printer with a small demo Android app that I will using from an Android tablet.我的目标是将 USB POS 热敏打印机与我将在 Android 平板电脑上使用的小型演示 Android 应用程序集成。

I have two POS printers:我有两台 POS 打印机:

  • Epson TM-T88III爱普生 TM-T88III
  • POS-5870 POS-5870

I also have a Sanei N10 tablet that I am connecting to the POS printer via a USB OTG dongle cable.我还有一台 Sanei N10 平板电脑,我通过 USB OTG 加密狗电缆连接到 POS 打印机。

I downloaded the USB Host Diagnostic (from Google Play Store) to see if it would recognize the POS printers that I connected to the tablet.我下载了 USB 主机诊断(从 Google Play 商店),看看它是否能识别我连接到平板电脑的 POS 打印机。 It recognized both printers, however the EPSON TM-T88III was recognized on the Android OS level while the POS-5870 was recognized only on the kernel level.它可以识别两台打印机,但是 EPSON TM-T88III 在 Android 操作系统级别上被识别,而 POS-5870 仅在内核级别上被识别。

I also tried using the USB Printer Driver 2.1 DevEd app (from the Google Play store), however I couldn't set the any of the printers as the default printer to use.我还尝试使用 USB Printer Driver 2.1 DevEd 应用程序(来自 Google Play 商店),但是我无法将任何打印机设置为要使用的默认打印机。

I also tried using the POS Printer Driver (ESC) app (from the Google Play store), however, it couldn't connect with the printers.我还尝试使用 POS 打印机驱动程序 (ESC) 应用程序(来自 Google Play 商店),但是,它无法与打印机连接。

I was wondering if there is any way I can get the POS printers connected to my Android tablet and perform a test print?我想知道是否有任何方法可以将 POS 打印机连接到我的 Android 平板电脑并执行测试打印? In addition, is there any SDKs/source code that I can use to detect and perform a test print?此外,是否有任何 SDK/源代码可用于检测和执行测试打印?

My 2 cents.我的 2 美分。 I did an app that can print from Android(Bluetooth) to a Zebra printer.我做了一个可以从 Android(蓝牙)打印到 Zebra 打印机的应用程序。 Bases on our search, it depends more on your printer provider.根据我们的搜索,它更多地取决于您的打印机提供商。 We couldn't find a "library" that can print to any printer.我们找不到可以打印到任何打印机的“库”。 That's whay we went for Zebra printers, since they support Android.这就是我们选择 Zebra 打印机的原因,因为它们支持 Android。 I'm not sure if Epson does provide Android libraries to use with their printers.我不确定 Epson 是否确实提供了与他们的打印机一起使用的 Android 库。

i think the problem with epson api is that it only supports ARMv5TE architecture, I am not sure which tablet you are using, but if the tablet's processor is not ARMv5TE based then I dont think the printers will work, I havent looked at any of the zebra printers, or star for that matter but i assume their apis also must have some limitations in terms of what architecture they support.我认为 epson api 的问题在于它只支持 ARMv5TE 架构,我不确定您使用的是哪种平板电脑,但如果平板电脑的处理器不是基于 ARMv5TE 的,那么我认为打印机不会工作,我没有看过任何斑马打印机,或明星,但我认为他们的 api 在他们支持的架构方面也必须有一些限制。 on that note Epson should release api for ARMv7 and ARMv8 all variants now as thats those are the latest chips and will be most widely used in the coming months.关于这一点,爱普生现在应该发布适用于 ARMv7 和 ARMv8 所有变体的 api,因为那是最新的芯片,将在未来几个月内得到最广泛的使用。

As far I know, Epson have specific documentation about SDK API for mobile, you can find it in here EPSON SDK API .据我所知,爱普生有关于移动 SDK API 的特定文档,你可以在这里找到它EPSON SDK API They provide useful information about specific device requirement and support printer.它们提供有关特定设备要求和支持打印机的有用信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM