Android Question Android POS Unit Cash Box Opening Library

Devendra

Member
Licensed User
Longtime User
I have a POS android unit, i am trying to develop a program for the POS Software, I have a issue in Openning the Drawer and Using the Customer Display, I contacted my supplier he cave me a SDK which explain in Eclips in which i dont know, How do i get the Library from this SDK, Supplier express that the Library is there, What is the File, I have attached the source for your information.
 

Attachments

  • CashBox_Devendra.zip
    506.4 KB · Views: 299

Devendra

Member
Licensed User
Longtime User
Dear Erel,

Ok, Can you help me in this, I was using Basic4android in my earlier Job ( ABS Information Systems (Pvt) Ltd ) Under the Licence name ([email protected]) i am the one who introduced the product there, I am trying to introduce this product to my present company BeyondSoft Solutions (Pvt) Ltd. as well, Only problem i have is this com[any has a specific device, Can you give me some more instructions if you don't mind.
 
Upvote 0

Devendra

Member
Licensed User
Longtime User
Dear Earl,

I tried with your SLC tool Looks Fine When I Use the Source code of the POS Android Device i Get The Following Error , PLS Help

Starting step: Compiling Java code.
javac 1.8.0_11
D:\Android\POS-SDK\T508_E308_Android-POS-Terminal-SDK\CashBox_DEMO\CashBox_DEMO\src\com\example\cashbox_demo\GpioControl.java:10: error: unmappable character for encoding UTF-8
finger = 0 // ???
^
1 error


Error.

What is this , My Program Works Fine in Eclips ( Demo )
 
Upvote 0

Devendra

Member
Licensed User
Longtime User
Dear Earl,

I Got the SLC to give the out put of the Jar i added the jar to my Android project Without any error it got added but how to i call the functions in this PLS give me a clue , Also i have good news for you i have already obtained the Geen light to purchase the B4A from my Present company ( Beyond Soft Solutions (Pvt) Ltd., I have forwarded the details to my accounts department to go ahead
 
Upvote 0

ivan.tellez

Active Member
Licensed User
Longtime User
Dear Earl,

I Got the SLC to give the out put of the Jar i added the jar to my Android project Without any error it got added but how to i call the functions in this PLS give me a clue , Also i have good news for you i have already obtained the Geen light to purchase the B4A from my Present company ( Beyond Soft Solutions (Pvt) Ltd., I have forwarded the details to my accounts department to go ahead

Erel actualy give you a BIG "Clue":

Start with the tutorials here: http://www.b4x.com/android/forum/forums/libraries-developers-questions.32/

Openning a drawer souns like a very simple lib, check if they provide a compiled Jar and in that case you can use also:

http://www.b4x.com/android/forum/th...h-additionaljar-and-javaobject-picasso.40904/
 
Upvote 0

Devendra

Member
Licensed User
Longtime User
Erel actualy give you a BIG "Clue":

Start with the tutorials here: http://www.b4x.com/android/forum/forums/libraries-developers-questions.32/

Openning a drawer souns like a very simple lib, check if they provide a compiled Jar and in that case you can use also:

http://www.b4x.com/android/forum/th...h-additionaljar-and-javaobject-picasso.40904/

Thanks for the reply,

i Can attach the Jar of the SLC , Can you see what is wrong, This is not exposing anything to the B4A Ide, I cannot DIM this library since it does not show any function Can you explain why.
 

Attachments

  • JavaLibrary.zip
    7.5 KB · Views: 236
Upvote 0

Devendra

Member
Licensed User
Longtime User
Dear Earl,

Please give me a response why the SLC method does not Expose my Cashbox SDK Library, It Gives the output with out any error, But when i Importt it to B4A IDE it does not show any method why is this.
 
Upvote 0

Devendra

Member
Licensed User
Longtime User
Where is the documentation of this library?

You cannot convert a standard jar file to a library with SLC.

Ok I will send the Full Demo Program With The SDK, Pls Test this and let me know if you can.
 

Attachments

  • JavaLibrary.zip
    7.5 KB · Views: 251
  • CashBox_Devendra.zip
    506.4 KB · Views: 232
Upvote 0

Devendra

Member
Licensed User
Longtime User
Dear Erel,

Thanks for the speedy reply, Is it a long Process or Cam you explain this process, Explain me what has to be done, Or Does B4A do this on a paid basis, Please confirm.

This POS unit is a very popular unit if B4A has the library it will be helpful to others as well, I can provide the Source Code my supplier has already given me the approval to modify or wrap their source code for my purpose.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Hi Devendra,

As I read your ping pong with Erel, I think it may be a long way to learn how to wrap it.
On the other side, if you are writing the POS by yourself from scratch in Basic4android, then I would carefully study the source code they gave you, just to find the I/O Address of the cash register. If you found it then case closed.. otherwise you may need to write a small routine that will iterate through all possible combinations of a byte (0 to FF)
until the drawer's solenoid is actuated (opened). then write down that address and use it in your App.. you can then use the serial library to operate it.
 
Upvote 0

Devendra

Member
Licensed User
Longtime User
Dear Beja,

Thanks for the post, you gave me nice clue of what try for the drawer, I will try this for your Information This uses a Rj-11 Port to connect the cash box but why i am going after the library is i have some more issues Customer Display, Printing to Printer Internally Fixed. By the way it s a good advice for a drawer box i will try this or i can get my supplier ( Chinese Manufacturer ) to give me those. I think we have to consider the buad rate as well in to this.

i have already put a like to your message.

Devendra
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Thanks
If it is Chinese then I can guarantee it is 8-N-1. and also you can open the drawer and look into the PCB, try to find an 8-Switch DIP IC sometimes they set the
address by hardware switches. like this.. you can then read the binary on/ff into a hex or decimal value and use it with the serial library.
 

Attachments

  • 8DIPSwitch.jpg
    8DIPSwitch.jpg
    23.4 KB · Views: 216
Upvote 0

Devendra

Member
Licensed User
Longtime User
Thanks
If it is Chinese then I can guarantee it is 8-N-1. and also you can open the drawer and look into the PCB, try to find an 8-Switch DIP IC sometimes they set the
address by hardware switches. like this.. you can then read the binary on/ff into a hex or decimal value and use it with the serial library.

Thank you for the response and the advice, I am going to try this method, Do you have a idea about Java or at least wrappers of java, I think your method should work general Chinese products they use the stander ed methods, I think they might have a DIP switch, Why i am more concern is more than the drawer , The LED Display & Printing Support.

By the way you look pretty comfortable with the Hardware, I think we have to consider the Buard rate as well when communicating with the serial port. I will open the unit and see for the alternatives as you explained.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Talking Chinese the rate is almost all the time is 9600. So you first try 8-N-1 9600

I have no good background in Java and that's why I am here.. but If I wanted a piece of information I can get it from Java or the red devil itself.
See if they set the address by DIP or by software.. if DIP then it easy because you just read it.. in case of software port address then you try the
method I mentioned. Please note I assumed an 8-bit address but sometimes the address may be 16-bit, so just keep this in mind.

I think if you could figure out the port address then switching LEDs or even printing should be easy using b4a.

Good luck!
 
Upvote 0

Devendra

Member
Licensed User
Longtime User
Thanks Beja,

Its nice of you taking your time, I used the serial library which does not talk about a serial Port as good old days, Do you have a idea of how to open the serial port in B4A. Can you describe the library in B4A.
 
Upvote 0
Top