Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Connecting and Printing to 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. 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?

  2. 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...

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...

like image 918
AgentKnopf Avatar asked Jan 02 '12 16:01

AgentKnopf


1 Answers

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

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).

If anyone is in need of the SDK/Sample Project, I suggest dropping the bixolon support guy's an email via [email protected] 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.

UPDATE

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.

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.

UPDATE 2

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

  • 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
like image 60
AgentKnopf Avatar answered Oct 24 '22 14:10

AgentKnopf