Android:连接并打印到 Bixolon SPP-R200 [英] Android: Connecting and Printing to Bixolon SPP-R200

查看:29
本文介绍了Android:连接并打印到 Bixolon SPP-R200的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想打印到 Bixolon SPP-R200 据我所知,它是在安卓系统上设置起来更容易的移动蓝牙打印机之一.但是,我不确定如何开始.

I would like to print to a Bixolon SPP-R200 as I've heard, it's one of the easier mobile bluetooth printers to set up with android. However I am not sure how to get started.

  1. 我想首先我必须通过蓝牙连接到打印机 - 我假设为此目的我求助于原生 Android 蓝牙 API?

  1. I guess first I'd have to connect to the printer via bluetooth - I assume for this purpose I resort to the native Android bluetooth API?

我可能需要某种 SDK 来将数据发送到打印机 - 我在 此处阅读,有一个 SDK,但浏览 bixolon 页面没有产生任何结果(即没有 SDK) - 我写信支持,但我不期待很快得到答案......

I'd probably need some kind of SDK to send data to the printer - I read here, that there is an SDK, but browsing the bixolon page has not yielded any results (i.e. no SDK) - I wrote to support, but I am not expecting an answer any time soon...

我想我会遇到的其他问题(例如:您是否像在 .Net CF 中那样将位图发送到打印机?)与该打印机的 SDK 紧密相关 - 如果存在...

I guess the other questions I'd have (like: Do you send bitmaps to the printer as you can do in .Net CF?) are tightly linked to an SDK for that printer - if it exists...

推荐答案

好吧,事实证明,支持速度快如闪电,并为我提供了一个 Android SDK,可以回答我的第二个问题.

Okay, as it turned, out support was lightning fast and provided me with an Android SDK which answers the second question I had.

所说的SDK附带了一个示例项目以及一个用户手册和一个SDK的API(不幸的是SDK jar文件不包含javadoc...).我不得不说 SDK API 是...写得不好,缺乏深度,除此之外,示例项目中使用的一些方法根本没有涵盖(例如初始化",我认为这听起来很重要和强制性...).但是,在查看示例时,您会了解如何使用 SDK.它涵盖了从通过 Wifi、USB 或蓝牙连接的所有内容(回答了我的第一个问题).

Said SDK comes with a a sample project as well as a user manual and an API of the SDK (Unfortunately the SDK jar file contains no javadoc...). I have to say the SDK API is ... poorly written and lacks depth, aside from that, some methods used in the sample project are not covered at all (such as "initialize" which I thought sounds rather important and mandatory...). However when looking at the sample you get an idea about how to use the SDK. It covers everything from connecting via Wifi, USB or bluetooth (which answers my first question).

如果有人需要 SDK/示例项目,我建议您通过 techsupp@bixolon.de 向 bixolon 支持人员发送电子邮件,以接收最新的 SDK.我在 Bixolon 的网站上没有找到 android SDK!我发现的唯一 SDK 与 .Net 相关.

If anyone is in need of the SDK/Sample Project, I suggest dropping the bixolon support guy's an email via techsupp@bixolon.de for receiving the most up-to-date SDK. I did NOT find the android SDK on Bixolon's website! The only SDK I found was .Net related.

更新

附加说明:事实证明,人们并不真正需要 SDK.我们转储了 SDK,而是创建了两个线程:一个接受连接请求(连接到打印机),另一个线程(一旦建立连接)有一个 BluetoothSocket 并写入/读取它.这样做的好处是,我们可以将它与任何移动打印机一起使用,因为它不再是 Bixolon 特有的.

On an Additional note: Turns out one does not really need the SDK. We dumped the SDK and instead, created two threads: One that accepts connection requests (to connect to the printer) and another one, which (once a connection has been established) has a BluetoothSocket and writes to it/reads from it. This has the advantage, that we can use it with any mobile printer, as it is not Bixolon-specific anymore.

有关蓝牙相关的更多信息,请查看此问答,其中我记录了获取 Bixolon 的步骤(和富士通)与安卓设备通信.

For more Bluetooth-related infos check out this Q&A where I documented the steps to get the Bixolon (and Fujitsu) to communicate with android devices.

更新 2

因为我最近路过这篇文章并查了一下,这里有一些关于 Bixolon SPP-R200 的附加链接:

Since I passed by this post recently, and looked it up, here is some additional links for the Bixolon SPP-R200:

  • 下载 Bixolon SPP-R200(驱动程序、手册、命令手册等...)
  • 产品概览 Bixolon SPP-R220
  • Bixolon 网站上有一个问答部分这里.但是,您需要先创建一个帐户才能在问答部分查看答案.如果您在搜索框中键入android",则会弹出一些答案 - 但是由于我没有帐户,所以我没有阅读它们 - 但它可能值得一试
  • Downloads for Bixolon SPP-R200 (drivers, manuals, command manuals etc...)
  • Product Overview Bixolon SPP-R220
  • There is a Q&A section in Bixolon's website here. However you need to create an account first to see the answers in the Q&A section. If you type "android" in the search box a few answers pop up - however since I have no account, I did not read them - but it might be worth a shot

这篇关于Android:连接并打印到 Bixolon SPP-R200的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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