Android的ESC / POS打印通过WiFi [英] Android ESC/POS Printing Over WiFi

查看:980
本文介绍了Android的ESC / POS打印通过WiFi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写一个Android应用程序,这将做以下步骤,我要你帮我找到合适的API来他们加快这一进程。我将要使用的打印机支持ESC / POS协议。

I want to write an Android app which will do following in steps and I want you to help me find right APIs for them to speed up the process. The printer I am going to use supports ESC/POS protocols.

  1. 找到的所有打印机附近使用WiFi。
  2. 这将选择一台打印机可能是第一位的。
  3. 将文本文件发送到打印机进行打印,并看它是否被成功地打印出来。

我发现了一些API,如 。我相信我的问题是类似的 这个帖子

I found some APIs like this. I believe my problem is similar to this post

推荐答案

我一直在寻找这个很长一段时间。几乎没有API的摆在那里,更不用说良好的API。唯一一个我已经得到了迄今的工作是爱普生的Andr​​oid SDK

I have been looking into this for a long time. There are almost no APIs out there, much less good APIs. The only one I have gotten to work so far is the Epson Android SDK.

这支持了许多WiFi和蓝牙Epson打印机。随着code短短几行,你可以找到你想要打印的打印机的IP地址,然后添加行打印的文档。他们也有一个很好的示例应用程序,其中的每一种操作,你可能想要做的。

This supports a number of wifi and bluetooth epson printers. With just a few lines of code, you can find the IP address of the printer you want to print with, and then add lines to the document to print. They also have a good sample app that has every kind of operation you might want to do.

您可以手动编写ESC命令,但它是非常complecated。这就是为什么像被开发 JAVAPOS,试图抽象这些细节了。然而,这里是爱普生手册<一href="http://www.delfi.com/SupportDL/Epson/Manuals/TM-T88IV/Programming%20manual%20APG_1005_receipt.pdf">ESC命令

You can manually write ESC commands, but it is very complecated. That is why things like JavaPos were developed, to attempt to abstract these details away. However, here is an Epson manual for ESC commands

这篇关于Android的ESC / POS打印通过WiFi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆