TI ADS1298 ECG
TI ADS1298 모듈에서 쓰이는 ECG(Electrocardiogram) 형식이다. TI ADS1298는 심전도 체크 모듈로 주로 쓰인다.
특징
여는 프로그램
알려진 뷰어 없음. (아직 못찾음) 기존에 소개된 ECG 뷰어 6종 모두 해당사항이 없다.
파싱 가이드
적합한 변환식(formula)를 찾을 경우 아래의 파이선 코드로 파싱에 도움을 받을 수 있을 것이다.
#!/usr/bin/env python # -*- coding: utf-8 -*- IF = "data/chf01.ecg" OF = "chf01.csv" def doing(byte, pos): if byte != b'0x4': with open(OF, 'a') as f: f.write("\n" + str(pos) + "," + str(int.from_bytes(byte, 'little'))) return 0 def end(): print("done"); return 0 def main(args): pos = 0 byte = b'' with open(IF, 'rb') as f: while pos == 0 or byte != b'': byte = f.read(1) doing(byte, pos) pos +=1 if byte == b'': end() return 0 if __name__ == '__main__': import sys sys.exit(main(sys.argv))