Create a simple HTMLpost as Test enviroment. The HTML has 2 fields and the send button. The POST is starting a java program that takes the 2 fields and validate the input from the fields in the HTML.
1:st field = "serialnumber"
2:nd field = amount
The serial is just a check that the "call" is dedicated to the right Ubuntu maschine.
The amount will create a string like 03 00 C8 where C8 is the interpitation of amount of 10.00. This string ("03 00 C8" is sent to the RS232 port using 9600 8n1.
A respons will be given. (= ACK) Interpite the ack as "Vend Ack"
Wait for next response. 17 xx xx xx xx
Interpeat the resopns to human readable text like "Vend approved, Item 00 04 selected"
Send 07 xx xx thru RS232 as Close session
Wait for an Ack from rs232. Interpite the ack as "Close Ack"
Send 05 xx xx thru RS232 as End.
Send the responce strings back to the calling HTML like
Vend approved, Item 00 04 selected
The developmensite is available thru putty. The developmensite is a clean Ubuntu 9.04. Prefered language is Java
A SDK for Java and C# is available for the RS232 interface the the Java should communicate with.
A test enviroment ia available with logmein written in C#
All sourcecode for a working C# program is available.
More info about the protocol can be found at
[url removed, login to view]
In short term the project is to convert a C# program to Java att have it running on a Ubuntu 9.04