Android的驱动程序开发 [英] Android driver development

查看:140
本文介绍了Android的驱动程序开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算创造商店的系统。我将使用Android平板电脑和收据打印机。我打算使用打印机不支持Android。

I am planning to create a system for shops. I am going to use an android tablet and a receipt printer. The printer I am planning to use does not support Android.

我的问题是:

  • 我可以创建适用于打印机的驱动程序?
  • 请我需要了解打印机的任何东西,例如(芯片或任何其它电子的东西)
  • 是很难实现的驱动程序?

多谢

推荐答案

我会尽量避免这种设置。这句话的收据的,好像一定的可靠性和用户友好性是必需的声音。如今,随着打印机的通信主要是双向的,因为它们发出的各种信息了。处理至少一些的(墨粉不足,缺纸)肯定会帮助你的用户。除此之外,逆向工程特定打印机的协议不一定乐趣,尤其应该你不经历相对于打印机协议。此外,低成本的打印机代表各种逻辑来驱动,因为这降低了设备的费用。我不会依赖于相关的文档可用。

I would try to avoid this setup. The words shop and receipt sound as if some reliability and user friendliness are required. Today, communication with printers is mostly bi-directional because they send all kinds of information back. Processing at least some of these (toner low, out of paper) would certainly help your users. Apart from that, reverse engineering a specific printer's protocol isn't necessarily fun, especially should you not be experienced with respect to printer protocols. Also, low cost printers delegate all kinds of logic to the driver because this lowers the costs for the device. I would not rely on related documentation being available.

一个很好的迹象你所选择的打印机是否适用于所有的可能是,如果它是由一些开源印刷框架支撑。这样的框架也可能是您的第一个地址,要求回答相关的问题。

A good indication whether the printer of your choice is suitable at all may be if it's supported by some open source printing framework. Such a framework could also be your first address for answers to related questions.

只是我的两分钱。

这篇关于Android的驱动程序开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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