使用蓝牙或WiFi进行无线打印 [英] Wireless printing using Bluetooth or WiFi
问题描述
大家好,
我有一个项目,运行Compact 7的SoC需要能够通过无线连接进行打印,无论是蓝牙还是wifi。在这个阶段未定。蓝牙将是首选,但确实限制了可用的打印机数量。
我想询问是否有人在使用支持蓝牙或WiFi的打印机的WinCE打印方面有任何经验。那么你的接口是什么类型的打印机?
从蓝牙方面有一个BPP(基本打印配置文件) - 但我不相信WinCE蓝牙软件堆栈支持此配置文件?
从WiFi方面,您可以使用标准PCL3驱动程序进行打印吗?
正在打印的文档将包含文本和图形的混合。
赞赏任何评论。
谢谢
Simon
虽然没有现成的Windows Embedded Compact BPP API,但您可以使用它,只要您可以创建正确的数据包格式。 BPP基于OBEX,它基本上类似于HTTP的二进制版本。您需要阅读BPP规范才能理解
数据格式。 Windows Embedded上的蓝牙API基于套接字 - 您打开与指定要使用的服务的远程设备的连接,有公共蓝牙服务的标准Guids。我担心我不能指出你的全部样本
,因为我主要使用.NETCF包装器来处理原生蓝牙API。
Peter
Hi all,
I have a project whereby a SoC running Compact 7 needs to have the ability to print over a wireless connection, either bluetooth or wifi. Undecided at this stage. Bluetooth would be the preferred option, but does limit the number of available printers.
I wanted to ask if anyone has had any experience in printing in WinCE using either a Bluetooth or WiFi enabled printer. Is so what types of printer where your interfacing to?
From the Bluetooth side there is a BPP (Basic Printing Profile) - but I don't believe the WinCE bluetooth software stack supports this profile?
From the WiFi side, could you use a standard PCL3 driver to do the printing?
The documents being printing would contain a mixture of text and graphics.
Any comments appreciated.
Thanks
Simon
While there is no ready made BPP API for Windows Embedded Compact you can use it so long as you can create the right packet formats. BPP is based on OBEX which is essentially like a binary version of HTTP. You'll need to read the BPP spec to understand the data formatting. The Bluetooth APIs on Windows Embedded are based on Sockets - you open a connection to a remote device specifying the service to use, there are standard Guids for the public Bluetooth services. I'm afraid I can't point you at a full sample as I've worked mainly with .NETCF wrappers around the native Bluetooth APIs.
Peter
这篇关于使用蓝牙或WiFi进行无线打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!