1

I need to make an app in J2ME that can be able to read a SMS and then print it on an epson tm-p60 printer(ESC/POS emulation) via bluetooth.

i looked at the epson supprt site but the only ADK/drivers they provide are for:

1.Sun Java2 SDK Standard Edition Version 1.4.2_10
2.Sun Java2 SDK Standard Edition Version 1.4.2_04
3.Sun Java SE Development Kit 6 Update 3

so i don't know how am i gonna be able to use ESC/POS commands inJ2ME.

I'm a bit clueless on how i will approach this project.. plus w/c would be better to use for this project? Netbeans or Eclipse?

Thanks!

Jonas
  • 121,568
  • 97
  • 310
  • 388
Jemuel Dalino
  • 135
  • 3
  • 12

2 Answers2

1

SPP (Serial Port Profile) over Bluetooth means using an RFCOMM connection to send and receive data as if it were a physical serial connection. This is part of JSR 82, so you will be able to develop only on handsets that support this JSR.

You need to:

  • Figure out how to discover bluetooth devices, and scan for SPP services on a discovered device, then connect to one of those services, using one of the many JSR 82 tutorials out there.

  • Then send ESC/POS protocol data over that connection -- I assume you have the protocol specification available? Google turned up this application programming guide.

HTH.

funkybro
  • 8,432
  • 6
  • 39
  • 52
0

JSR-82 Bluetooth API support L2CAP protocol, RFCOMM and OBEX profile. I don't know detail of Bluetooth basic printing profile (BPP) but, if you look into basic printing profile document you can find that BPP built on OBEX profile.

I can't find open source project for BPP on JSR-82. Please try to search it, but if you can't find one you might need to write your own.

Wonil
  • 6,364
  • 2
  • 37
  • 55