Serial Driver

The driver is, for the most part, finished.  It can now take the glass size and a set of port numbers and amounts, and convert them into system calls.  It also calls the appropriate delay between  each call.  The order of calls is as follows:  driver.exe   -glass size-  -first port #-  -first amount-  -second port #- …..etc.  The most difficult part about this was figuring out how to handle strings in the C language.  Currently, it outputs the calls to the screen using a Linux machine.  It will be tested tomorrow (or sometime soon) on the actual machine, and the calls will be sent to the command line rather than simply being output.  Then, we just need to have the php code call it when a drink needs to be made.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*