* * *

Author Topic: Possible to port a P.O.S. to FPC/JVM?  (Read 1778 times)

ozznixon

  • Jr. Member
  • **
  • Posts: 71
    • http://www.modernpascal.com/
Possible to port a P.O.S. to FPC/JVM?
« on: December 18, 2017, 05:22:54 pm »
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
---
Want to kick the tires to a Free Pascal like script engine? http://www.ModernPascal.com/

zeljkoc

  • Jr. Member
  • **
  • Posts: 95
    • Zeljko Cvijanovic
Re: Possible to port a P.O.S. to FPC/JVM?
« Reply #1 on: December 19, 2017, 10:02:24 am »
Print to Android with BlueTooth

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

example:

Code: Pascal  [Select]
  1. var
  2.   print: AZCBlueToothPrint;
  3. begin
  4.    print:= AZCBlueToothPrint.Create(Self);
  5.    print.OpenDevice;
  6.  
  7.   if not print.write(JLString(' Kupac: ')) then begin end;
  8.  
  9. end;

ozznixon

  • Jr. Member
  • **
  • Posts: 71
    • http://www.modernpascal.com/
Re: Possible to port a P.O.S. to FPC/JVM?
« Reply #2 on: December 19, 2017, 09:41:14 pm »
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
---
Want to kick the tires to a Free Pascal like script engine? http://www.ModernPascal.com/

zeljkoc

  • Jr. Member
  • **
  • Posts: 95
    • Zeljko Cvijanovic
« Last Edit: December 20, 2017, 08:06:11 am by zeljkoc »

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus