Forum > Android-JVM

Possible to port a P.O.S. to FPC/JVM?

(1/1)

ozznixon:
Hey guys,

   I was asked to port my Point of Sale software to droid for a customer. Before I run and trip, I figured I would ask is it possible to do the following via FPC/JVM?

(using DOS terms):
Open LPT1 and print 80 chrs or less per line?
Send ^G (#7) to LPT1 during print to open cash drawer?
Interface with Credit Card reader from the headphone jack, like Square does?
Interface with a USB Bar Code Reader, and
Interface with a USB rewards card reader/Credit Card - if not using the headphone jack concept

Ozz

zeljkoc:
Print to Android with BlueTooth

Pandroid unit:
https://github.com/zeljkoc/pandroid/tree/master/units/AZCBlueTooth.pas

example:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---var  print: AZCBlueToothPrint; begin   print:= AZCBlueToothPrint.Create(Self);   print.OpenDevice;   if not print.write(JLString(' Kupac: ')) then begin end; end;

ozznixon:
Thank you! So that gets Printing out of the way, now I just have to read from card readers and bar code scanners - and I will be ready to start the port!

Thanks!
Ozz

zeljkoc:
Example
Popis work read barcode

http://forum.lazarus.freepascal.org/index.php/topic,32727.0.html

https://github.com/zeljkoc/pandroid/tree/master/project/Popis

Navigation

[0] Message Index

Go to full version