Printing on a Bluetooth printer

喜欢而已 提交于 2019-12-03 11:04:23

问题


I need to print on a Bluetooth printer. I already have a program for the Windows mobile platform, that sends commands and data via Bluetooth to a Zebra RW 420 printer, using the Zebra Printer Protocol. It's just a stream sent on Bluetooth.

Now, we'd like to do this on Android. I would like to know some basic information:

  1. Is this type of printing possible/doable (we've seen very little information regarding printing on Android), or is Bluetooth limited to audio and file transfer?
  2. How to connect a Bluetooth printer to the Android device.

回答1:


Your best bet will be to use the ZebraLink SDK for Android devices. You can download it from Zebra here. The SDK comes with a load of sample code and documentation which covers how to use it, so you should be able to jump right in!




回答2:


Printing via Bluetooth on Android is not possible as of now (as per my knowledge), as Android does not support Bluetooth 'Profiles', such as BPP (Basic Printing Profile), HCRP (Hardcopy Replacement Profile), BIP (Basic Imaging Profile) etc. which are the common profiles used with Bluetooth Printing. Ref. this to know about Printing BT profiles.

Currently, Android supports OPP (Object Push Profile) which is used to send files over Bluetooth and perhaps even A2DP.

To have Bluetooth profiles implemented within the Bluetooth Stack for Android, you can refer Sybase-iAnywhere-Blue-SDK-for-Android, which provides an SDK to add this functionality to the existing BT stack implementation on Android.




回答3:


You can use a datecs printer too: http://www.datecs.bg/en (look for SDK). There are many printers, card readers, etc.



来源:https://stackoverflow.com/questions/5135673/printing-on-a-bluetooth-printer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!