forked from jpaalasm/zephyr-bt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
61 lines (55 loc) · 2.5 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
pyzephyr is a Python library for interfacing with a Zephyr BioHarness(TM) device
over a serial Bluetooth connection.
The following things are supported:
- Reading the data stream from the device and sending command messages to
the device (zephyr.protocol.Protocol)
- Parsing data messages from a serial stream (zephyr.message.MessageFrameParser)
- Extracting signal values from signal packets (zephyr.signal.SignalMessageParser)
- Collecting continuous and timestamped signal streams (zephyr.signal.SignalCollector)
- Extracting R-to-R ECG events (zephyr.rr_event.SignalCollectorWithRRProcessing)
- A continuous stream of signal values with a constant delay, which hides the
packet representation of the signals (zephyr.delayed_stream.DelayedRealTimeStream)
The typical flow of
- data from the device to pyzephyr and
- commands from pyzephyr to the device
is shown below.
|--------------------------------------------------------|
| Serial connection |
|--------------------------------------------------------|
| ^
| |
v |
|-----------------------| |------------------------|
| Bytes from device | | Bytes to device |
|-----------------------| |------------------------|
| ^
| |
v |
|--------------------------------------------------------|
| Protocol |
|--------------------------------------------------------|
| ^
| |
v |
|-----------------------| |------------------------|
| MessageFrameParser | | Commands to the device |
|-----------------------| |------------------------|
|
|
v
|-----------------------|
| SignalCollector |
|-----------------------|
|
|
v
|-----------------------|
| DelayedRealTimeStream |
|-----------------------|
|
|
v
|-----------------------|
| A continuous stream |
| of signal values |
|-----------------------|