elitevenkat Active Member Licensed User Longtime User Jun 23, 2015 #1 I have a Andriod POS machine with a built-in printer. How do i print from my application ? there is no documentation with the hardware!!! Has anyone used this kind of device ?
I have a Andriod POS machine with a built-in printer. How do i print from my application ? there is no documentation with the hardware!!! Has anyone used this kind of device ?
aviario Active Member Licensed User Longtime User Jun 23, 2015 #2 https://www.b4x.com/android/forum/threads/bluetooth-printing-via-spp.17692/ Upvote 0
timwil Active Member Licensed User Longtime User Jun 23, 2015 #3 I recently got an Android POS device with built in printer. They provided some .so library files and a sample/demo program. I had #Walter Flores here in the forum do up a wrapper for the library and it is printing very well - no problems. It will all depend on how your printer is connected. My guess is that it is on a serial port in which case you might try the direct serial output. I am including a program that worked for me on my device without the library. The device has a serial port that I connected an external DataMax ticket printer to and it printed with no problems. If you device is connected directly (which I suspect it is) to a RS232 port then you would just need to find the name of the serial port to use it. Mine was /dev/ttyS2 Attachments directrs232.zip directrs232.zip 15.2 KB · Views: 505 Upvote 0
I recently got an Android POS device with built in printer. They provided some .so library files and a sample/demo program. I had #Walter Flores here in the forum do up a wrapper for the library and it is printing very well - no problems. It will all depend on how your printer is connected. My guess is that it is on a serial port in which case you might try the direct serial output. I am including a program that worked for me on my device without the library. The device has a serial port that I connected an external DataMax ticket printer to and it printed with no problems. If you device is connected directly (which I suspect it is) to a RS232 port then you would just need to find the name of the serial port to use it. Mine was /dev/ttyS2