I send "top" to the device through serailport,then read the top info
After that, I don't known how to stop the "top"!
require 'serialport'
port = 2
args ={"baud"=>57600, "data_bits"=>8,"stop_bits"=>1,"parity"=>SerialPort::NONE}
serial_obj = SerialPort.new(port, args)
serial_obj.read_timeout=1000
serial_obj.write("top\n")
print serial_obj.read