sample implementation of tocostick program with node serial-port