Your use of the serial port seems OK in this case. What type of data does the hardware device expect (probably will need to look through the data sheet)? Use of hyper terminal (or Putty??) might help in debugging or understanding the protocol.