Example C and Java host code to talking to an arduino or other "serial" device