English 中文(简体)
mobile receipt printing with J2ME via Bluetooth
原标题:

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!

问题回答

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.

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.





相关问题
How can I make mobile version of an existing web site?

We have a website coded with jsp-Java. Now, we want to show our website more user friendly on blackberry etc. Is there any tool or method to do this issue more easier? thanks for your answers.

Should I make my mobile application for Mobile 6 or Mobile 5?

I am going to be making a small application very soon. I am wondering would it be better to go and make it for 6.0 or should I make it for 5.0? I don t know much about both versions but I guessing ...

How do I combine @font-face and @media declarations?

I d like to build a common typography stylesheet with a very small number of selectors. As such, I d far prefer to use @media sections for the various versions rather than create different files, each ...

热门标签