import serial
import time

data = "\x7e\x00\x16\x90\x00\x7d\x33\xa2\x00\x40\xe6\x4b\x5e\x03\xfd\x01\x00\x00\xff\xff\xf0\xfa\x23\x00\x2b\x02\xb2"

port = raw_input("Please enter your serial port path/name: ")

try:
    ser = serial.Serial(port, 9600)
except serial.serialutil.SerialException as e:
    print "Serial Error: ", e
    sys.exit(1)


while(True):
	ser.write(data)
	print 'Wrote data to serial hopefully'
	time.sleep(5)

@@ -20,20 +20,25 @@
 t time%0A%0A
-data
+heartbeat
  = %22%5Cx7e
@@ -142,16 +142,187 @@
 x02%5Cxb2%22
+%0Aapple = %22%5Cx7e%5Cx00%5Cx22%5Cx90%5Cx00%5Cx7d%5Cx33%5Cxa2%5Cx00%5Cx40%5Cx9f%5Cx27%5Cxa7%5Cx29%5Cx6c%5Cx01%5Cx01%5Cx00%5Cx65%5Cx00%5Cx80%5Cx6f%5Cx69%5Cx3d%5Cx06%5Cx0f%5Cx71%5Cx7d%5Cx33%5Cx5a%5Cx8a%5Cx01%5Cx00%5Cx76%5Cx01%5Cx22%5Cx00%5Cx6e%5Cx09%5Cxee%22
 %0A%0Aport =
@@ -517,38 +517,157 @@
 1)%0A%0A
-%0Awhile(True):%0A%09ser.write(data)
+heartbeatFlag = True%0Awhile(True):%0A%09if heartbeatFlag:%0A%09%09ser.write(heartbeat)%0A%09%09heartbeatFlag = False%0A%09else:%0A%09%09ser.write(apple)%0A%09%09heartbeatFlag = True%0A
 %0A%09pr

add apple packet to test_data.py