通过蓝牙以编程方式从 Android 上的无源手持打印机进行打印
我有一台来自中国 SunPhor 公司的手持式蓝牙打印机,型号为 # SUP80M1。 文档记录很差,80行文档中关于蓝牙接口的唯一说明如下:
“此打印机有蓝牙通信接口(从属单元),默认机器的名称是:CCD-308B,初始密码是0000当PDA或其他设备成功连接到打印机后,就可以使用SPP协议来操作打印机了。
Android 需要 UUID 才能连接到设备。我怎样才能从设备名称中获得 UUID,这是不可发现的。
我不知道如何连接到设备。在设置中的蓝牙设备下无法发现此设备。
供应商说他没有任何文档、示例代码或任何东西。请有人给我一些启发并给我一些正确的方向。该项目处于关键状态,我不知道该怎么办。
I have a hand held Bluetooth printer model # SUP80M1 from SunPhor company from China.
It is badly documented and the only statement about the Bluetooth interface from the 80 line documentation is below:
"This printer has a Bluetooth communication interface (slave unit), the name of the default machine is: CCD-308B, the initial password is 0000. After a PDA or other equipment which has been successfully connected to the printing machine, SPP agreement can be used to operate the printing machine."
Android requires UUID to connect to a device. How can I have a UUID from the device name, which is not discoverable.
I am clueless as to how to connect to the device. This device is not discoverable under Bluetooth devices in settings.
The vendor says he does not have any documentation, sample code or anything. Somebody, please throw some light and give some right direction to me. The project is in a critical state and I am not sure about what to do.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
必须有一个按钮或其他东西可以将设备置于可发现的模式。如果没有按钮,则可能会在开机时发生。
如果需要 PIN 码,则必须 << BT2.1。
SPP = 串行端口配置文件?该服务的简写 16 位 UUID 是 0x1101,但是您必须弄清楚 SPP 上的协议是什么。
There must be a button or SOMETHING that puts the device into a mode where it is discoverable. If there is no button then maybe it happens at power on.
If it wants a PIN code then it must be < BT2.1.
SPP = Serial Port Profile? The shortform 16-bit UUID for that service is 0x1101, but then you have to work out what the protocol over SPP is.