Changed the test to use a packet style communication

Due to the RPi having a serial RX buffer of 8 bytes, 8 bytes at a time
will be transmitted.