Use Asyncstreams via Bluetooth (search for it) . Send a simple command an see. Pair your device manually with the printer first (later you can do that via BT-Admin).
ANNOUNCEMENT Starting today, this library will be abandoned and will no longer be distributed. A new, more comprehensive Android library for ESC/POS thermal printers will be released. (BT, BLE, LAN, USB) (here) (No WRAP, No Java Only B4A) BT_Printer library allows you to print text and...
Firstable, oparra, thanks for your response. I'll look around that link.
I pretend to send ZPL commands to Zebra ZQ600 Series model (receipt printer) vía Bluetooth, in this case. Further I will need to know how to send it vía Wifi. At this moment is Bluetooth.
This example implements a simple "walkie talkie". (src: wikipedia) Once the two devices are connected, either over Bluetooth or over the local network, you can press on the activity and talk. The audio captured from the microphone will be sent to the other device and played. Note that this...
Android 4+ devices support Wifi Direct (Wifi P2p). Wifi Direct allows you to connect two devices over wireless without an access point. It is similar to Bluetooth with a much extended range and performance. It is recommended to use Android 4.1+ devices as there are several major known issues...
This library is based on the library Jem:https://www.b4x.com/android/forum/threads/simple-wifi-library.38601/ Which Jem can no longer maintain. I needed some methods that the library did not have, for an application I'm doing, and instead of creating a library from scratch, I preferred to take...
Check your example and why not send ZPL command ???
B4X:
Sub Process_Globals
Private serial1 As Serial <---
Firmware:
The IMZ series printers are compatible with the CPCL and ZPL programming languages. The ZPL programming language guarantees full compatibility with many other Zebra printers.
Check the font name in memory.
If your printer has an LCD display you can choose List Fonts or send the following ZPL string to the printer to print a listing of available fonts:
^XA^WD*:*.FNT*^XZ
Will you print the list of fonts in memory?
B4X:
Dim ZPLListFont As String
ZPLListFont = "^XA^WD*:*.FNT*^XZ"
Dim ZPLCommand() As Byte
ZPLCommand = Conv.StringToBytes(ZPLListFont,"UTF8")
StrOut.WriteBytes(ZPLCommand,0,ZPLCommand.Length)
StrOut.Flush
I did several tests with the ZPL commands from B4A until I finished blocking the printer, in the end a waste of time, I had to download an application from the Zebra website to be able to do a hardware reset.