repo time

Dependencies:   mbed MAX14720 MAX30205 USBDevice

Committer:
darienf
Date:
Tue Apr 06 06:41:40 2021 +0000
Revision:
20:6d2af70c92ab
another repo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
darienf 20:6d2af70c92ab 1 import serial
darienf 20:6d2af70c92ab 2 import io
darienf 20:6d2af70c92ab 3
darienf 20:6d2af70c92ab 4 ser = serial.Serial(port='com29', baudrate=9600, timeout=1)
darienf 20:6d2af70c92ab 5
darienf 20:6d2af70c92ab 6 ser.isOpen()
darienf 20:6d2af70c92ab 7
darienf 20:6d2af70c92ab 8 for x in range (0, 1):
darienf 20:6d2af70c92ab 9 ser.write("/Logging/StartMissionDefine\r\n".encode())
darienf 20:6d2af70c92ab 10 print(ser.readline())
darienf 20:6d2af70c92ab 11 ser.write("/Logging/AppendMissionCmd \"null\"\r\n".encode())
darienf 20:6d2af70c92ab 12 print(ser.readline())
darienf 20:6d2af70c92ab 13 #ser.write("/Logging/AppendMissionCmd \"/Timestamp/SetSource 0\"\r\n".encode())
darienf 20:6d2af70c92ab 14 #print(ser.readline())
darienf 20:6d2af70c92ab 15 ser.write("/Logging/AppendMissionCmd \"/MAX30001/ECG_InitStart 01 01 01 00 02 03 1F 02 00 00 01\"\r\n".encode())
darienf 20:6d2af70c92ab 16 print(ser.readline())
darienf 20:6d2af70c92ab 17 ser.write("/Logging/AppendMissionCmd \"/MAX30001/Rbias_FMSTR_Init 00 02 01 01 00\"\r\n".encode())
darienf 20:6d2af70c92ab 18 print(ser.readline())
darienf 20:6d2af70c92ab 19 ser.write("/Logging/AppendMissionCmd \"null\"\r\n".encode())
darienf 20:6d2af70c92ab 20 print(ser.readline())
darienf 20:6d2af70c92ab 21 ser.write("/Logging/EndMissionDefine\r\n".encode())
darienf 20:6d2af70c92ab 22 print(ser.readline())
darienf 20:6d2af70c92ab 23 ser.write("/Logging/WriteMission\r\n".encode())
darienf 20:6d2af70c92ab 24 print(ser.readline())
darienf 20:6d2af70c92ab 25
darienf 20:6d2af70c92ab 26 ser.close()