You are on page 1of 17

Un-medical Technology Co.

ltd can offer you a variety of module platforms to


integrate into your monitoring system. We are dedicating in and supplying all
kinds of OEM modules of patient monitoring system, such as non-invasive
blood pressure module, ECG module, digital SpO2 module, etc. We can offer
you the best solution and technology support for your product. Besides, we are
manufacturer of patient monitor, pulse oximeter, mobile BP monitor,
accessories of patient monitor, etc.

Wuhan Un-medical Technology Co.ltd


Fax86-27-83080833

Tel86-27-83083133

UN-M7104 ECG /Resp/Temp module protocol

version
number
V1.0

Version
date
2008-316

Alter
page

Description
Initial version

remarks

1. Definition of interface

Remarks:
NO.1 On / Off is the power switch of ECG board, Primarily for low- power
consumption design considerations; 0 means open;1 means close; under no
control, keep floating state.
NO.2 2and 4 cant be linked outside the temperature socket board, otherwise
the temperature cant display properly.

2 Protocol
Basic Interface Description:
Physical Interface: ECG module communicates with the host through the
asynchronous serial communication port, Serial communication parameters
are as follows:
Transfer rate: baud rate of 7104 ECG board is: 57600 Baud
Frame forma: Start bit (1), data bit (8), even parity bit (1)
Stop bit (1)
Data Packet Format: Package Type: 1 byte identifier
Data: N bytes (N determined by the packet type)
Introductions of Packet Format:
2.1 Send Packet Format
symb
Package
Data format (bytes)
Send frequency remark
ol
Type
Byte 1ECG1ECG2ECG3
Waveform
01H
125 per second
Refer
the
STATUSRESP
data1
instruction5
Byte 1ECG1ECG2ECG3
Waveform
02H
375 per second below the form
data 2
STATUS
cardiac rate
Byte 1 Low Byte of cardiac
and
ratehigh Byte of cardiac rate
04H
1 per second
respiratory
low byte of Respiration rate
rate
high byte of Respiration rate
Byte 1 type low byte of A maximum of 1 Must
be
Arrhythmia
05H
Positionhigh byte of Position
times per second acknowledged
The number
of premature
Byte 1low byte of Numberhigh
ventricular
06H
1 per second
byte of Number
contraction-s
per minute
Byte 1 low byte of ST1 high
byte of ST1low byte of ST2
ST deviation
07H
1 per second
high byte of ST2 low byte of
ST3high byte of ST3
1 per
Byte 1 channel number millisecond(50
ST-segment
08H
sequence number0~495 data bags per
template
template)
Lead
connections
A maximum of 1
Byte 1information
09H
and Signal
times per second
Information

ECG setting
information

0AH

Suffocation
alarm

OBH

System
self-test

0CH

Module ID

0DH

System reset
information

0EH

ECG
analysis
Cardiac
information
Temperature
data

0FH
10H
11H

Byte 1(Lead mode, filter mode,


gain)
6
bytes
of
setup Send
by
information,
channel
of Request
arrhythmia analysis
Byte 1 suffocation byte 0 A maximum of 1
suffocation byte 1
times per second
Byte 1 Module Self-Test
Send
by
Results temp1
Module
Request
Software Versiontemp2
Send
by
Byte 1ECG710x
Request
after each reset
--of system, Need
to answer
A maximum of 1 Must
be
Byte 1information
times per second acknowledged
Byte1type, low byte of location,
high byte of location,
Byte 1Probe state, low byte of
data1 high byte of data1,low 1 per second
byte of data 2, high byte of data2

Explanation:
1.After Each time you start, please sent all kinds of setting orders only until you
received the 0EH packets and confirm the ECG board is under normal
situation
2. After the setting orders, please receive the answer packets and make sure
that the ECG board has received the order;
3. Temperature sensor YSI-400 type
4. 0102 packet contain the ECG data points, so the data rate of ECG is 500
Per second, Respiration rate is 125 per second; Notion: the heart sound
Maybe in the 01 packet or in the STATUS byte of 02 packet
Details of Send Packet of Format
1. The basic description of format
Bit7 of packet type identification byte is always 0, Bit7 of data byte is forever 1;
The maximum length of Packet is 9 (including identification bytes)
The maximum length of data is 8 bytes;
All byte 1 of packet contains other bytes of Bit7 of the package according to
the order , Bit7 must be transferred from the byte 1 before used
Response package must be identical with the received packet
2 waveform data1 (the following data refer to bit7 has been set)
ECG1 --- ECG waveform data of The first channel (unsigned number)

ECG2 --- ECG waveform data of the second channel (unsigned


number);
ECG3 --- ECG waveform data of the third channel (unsigned number)
STATUS ---

B: Whether include heart rate (0: no, 1: yes)


P: Whether include Pacing pulse(0: No, 1: yes)
RESP --- respiratory waveform data (unsigned number)
3. Waveform data 2: the same with format of wave form data1, except without
Respiratory waveform data
4. Cardiac rate and respiratory rate
see graph above
5. Arrhythmia
F

Type

7
6
5
4
3
2
1
0
FWhether it is the beginning of an arrhythmia event (1: yes, 0: No).
Because of an arrhythmia events may continue for some time, this sign shows
whether this arrhythmia is the beginning of the events, The host Computer
can decide whether to save this bit waveform data. For example, for a VPB
bigeminal which continue 5 seconds The host computer will receive 5 types of
data: 88H08H08H08H08H.
Type0 ASY
1/2 VF/VTA 3R on TROT
4 RUN
6 CPT
7 VPB
8 BGM
9 TGM
10 TAC
11 BRD
13 PNC
14 PNP
16 MIS
20 LRN
21Arrhythmia detection is not
carried out
22 NML
24: NOS
25: Signal amplitude is too small
Arrhythmia QRS wave position (16-bit, unsigned number)
--- The location refers to the distance between QRS wave and the latest
wave of data points

6. the number of VPB per minute


7. ST segment deviation value (7103 modules doesnt have this kind of
package)
ST offset value is a 16-bit signed number; All the values are expanded by 100
times. For example, 125 stand for 1.25mv-125 stand for -1.25mv
8. ST-segment template
Channel number---

[3:0]channel number0000Bchannel 10001Bchannel 2


0010Bchannel 3
Sequence number --- 0~49every ST module wave will be sent in 50
times5 byte per time, 250 bytes in total.
data --- byte 1byte 2byte 3byte 4byte 5
9. Lead connections and Signal Information
Information 1 :
RA
LA
LL
V1

LEAD

LEAD

7
6
5
4
3
2
1
0
[5:2]: the connection information of corresponding leads (1: lead off, 0:
normal Connection)
[1:0]: lead system (00: 3-lead system, 01: 5-lead system, 11:12 lead
System)
Information 1 :
V6

V5

V4

V3

V2

7
6
5
4
3
2
1
0
[4:0]: the connection information of corresponding leads (1: lead off, 0:
normal Connection)
10. ECG setting information
Byte 024 --Way of lead

Number
channel

of

-7

[3:0]: Number of Channel. 0000B (channel 1), 0001B (channel 2), 0010B
(Channel 3)

[7:4]: way of lead


Way of
lead
standard
waveform
I
II
III

[B7:B4]
0000
0001
0010
0011

[B7:B4]

Way of
lead

0100

AVR

0101
0110
0111

AVL
AVF
V

Byte 1,3,5 (correspond to the channels settings within the meaning of


byte 0,2,4)
Gain
Filtering approach
7

[3:0]Filtering approach
[B3:B0]
0000
0001
0010
0011

Filtering
approach
Diagnosis
guardianship
Surgery
Strong filtering

[7:4]Gain
[B7:B4]
gain
0000
0.25V/mV
0001
0.50V/mV
0010
1.0V/mV
0011
2.0V/mV
Byte 6 ---[3:0]: arrhythmia analysis channel 0: Channel1,1: Channel2,2: Channel 3.
Arrhythmia channel that is "calculated heart rate channel", set up by the
host computer
[5:4]: 50/60Hz notch setting, 0:50 Hz notch, 1:60 Hz notch.
[7:6]: 50/60Hz notch selection (diagnostic mode), 0: no notch, 1: notch.
11. Suffocation alarm
Suffocation byte 0: =0no suffocation; =1, suffocation alarm;
Suffocation byte 1: did not use;
12. System self-test results
Module Self-Test Results

CPU

RAM

ROM

WD

A/D

EGG

7
6
5
4
3
2
1
0
Bit0 ~ Bit5 correspond to the Self-Test Results of ECG, A / D conversion,
Watchdog, ROM, RAM, CPU. (1: self-test is wrong, 0: self-test success).
Module Software Version byte: version number 10, for example, 10 on
behalf of 1.0,20 on behalf of 2.0
13, Module ID: ECG710x
()System reset information
ECG module send to the host computer after each reset , informing the
host computer that the module has just been reset, all settings are default,
may be inconsistent with saved settings of the host computer. The host
computer should re-set the ECG module after receiving the packet.
15. ECG analysis
0: Normal Analysis 1: R-wave detection is initializing 2: Arrhythmia in
self-learning 3: Signal is too noisy 4: the signal is too small to detect (which
may be cardioplegic or signal amplitude is too small) 5: No signal
16. Cardiac information (7103 module doesnt have this kind of
package)
Type--0 Dominant
1 Abnormal
3 Unclassified 4 Learn
Cardiac positionsixteenunsigned --- this position means the distance
between QRS wave and the latest wave.
17. Temperature data
-

BIT1 BIT0

Status
BIT0=0: the
first-channel temperature sensor on,
BIT1=0: the second-channel temperature sensor on,

=1: sensor off


=1: sensor off

TEMP1: the first channel temperature data, 16-bit unsigned number, LSB
first
TEMP2: the second channel temperature data, 16-bit unsigned number, LSB

first.
TEMP1, TEMP2 are expanded by 10 times, the unit is degrees Celsius.
For example, 204 on behalf of 20.4 .
18. Waveform data
ECGV2--- channel 1 ECG waveform data (unsigned data)
ECGV3--- channel 2 ECG waveform data (unsigned data)
ECGV4 --- channel 3 ECG waveform data (unsigned data)
ECGV5 --- channel 3 ECG waveform data (unsigned data)
ECGV6 --- channel 3 ECG waveform data (unsigned data)
19. V lead connection and sign information
-

V6

V5

V4

V3

V2

0: normal lead connection; 1: lead off


Receive the command packet format
Type of packet
Lead
mode
selection
Filtering mode
option
ECG
gain
selection
Calculated heart
rate,
channel
selection
Self-learning
trigger
Patient
Information Set
Request System
sign
ECG
setting
information
Start the module
self-test
Read self-test
results

mark

data

40H

Byte 1control byte

41H

Byte 1control byte

42H

Byte 1control byte

43H

Byte 1control byte

44H

Byte 1control byte

45H

Byte 1control byte

47H

--

49H

--

4AH

--

4BH

--

Explanation

50/60Hz notch
select Settings

4DH

ISO and ST of
4CH
ST Segment
Respiratory gain
selection
1mV calibration
signal set
Respiratory
wave detection
of high and low
threshold
settings
Temperature
probe type set
ECG3 / 5 Lead
Set

Byte 1control byte


Byte1ISO offset low byte
ISO offset high byte ST
offset low byte ST offset
high byte

4EH

Byte 1control byte

4FH

Byte 1control byte

50H

Byte 1 Threshold
adjustment
method
High-threshold

low-threshold

51H

Byte 1control byte

52H

Byte 1control byte

7104
send
0AH packet

2.4 Details about receiving the command packet format


1. The basic format description
The same with Send packet
2Lead mode selection
Control figure---Number of Channel

way

of Lead

[B3:B0]

Way to lead

[B3:B0]

Way to lead

0000

0100

AVR

0001

0101

AVL

0010

II

0110

AVF

0011

III

0111

Calibrated signal is not set by this order but by 0x4F order

3. ECG gain selection


Control word
Number of Channel
7
[B3:B0]
0000
0001
0010
0011

Gain selection
4

Filtering
approach
Diagnosis
Monitor
Surgery
Strong
filtering

4. 50/60Hz notch selection


Notch
(diagnosis)
[B4]
0
1

selection

50/60Hz notch settings

Notch
No
Yes

[B0]
Notch
0
50Hz
1
60Hz
Under custody, operation, strong filtering mode, there must be a notch,
diagnostic mode choose whether to add a notch through "notch selection
(diagnosis)
Add 50Hz or 60Hz notch through the "50/60Hz notch settings" to choose
5. ECG gain selection
Control word---

[B3:B0]
0000
0001
0010
0011

GAIN
0.25V/mV
0.50V/mV
1.0V/mV
2.0V/mV

6. Calculate heart rate channel selection


Control word

Number
Channel
2
1

of
0

Channel
selection
ChanneL
1
Channel
2
Channel
3
Automati
c-

[B3:B0]
0000
0001
0010
0011
7. Self-learning trigger
Control word
-

ARR

[0]: arrhythmia self-learning (1: for self-learning, 0: No request for


self-learning);When Select the new "patient types" or "whether wearing
pacemakers", trigger arrhythmia self-learning When they find the actual
results is incompatible with the analysis, trigger arrhythmia self-learning
8. Respiratory Gain Control
Control word
Gain selection

7
6
5
9.1mV calibration signal
Control word

CAL signal
7
6
5
4
3
CAL signal: 1:on, 0:off
Three channel effective simultaneously

10. Suffocation time selection


Control word---alarming time(unsigned data) (0: not alarm, greater than 0:
suffocation time(second))
11. Patient Information Set
Control word
P

Patient type

7
6
5
4
3
2
1
0
[2:0]: Select the type of patients (000: Adult, 001: pediatrics, 010: neonatal);
[3]: whether the patient is need to wear pacemakers (0: no, 1: yes);
12. Receive data selection
Control word---

ST

DATA RESP ECG

DATARESPSTECG Corresponding the analyzing outcome(heart rate,


Arrhythmia, Respiratory rate, suffocation alarm)Respiratory waveformST
module, ECG waveform data, and whether send them or not(1: send; 0: not
send)
Note: Respiratory and ECG waveform data cant be shut down, others can,
that means the host computer send the order but ECG module doesnt do
that.
13. The offset of ISO point and ST point by ST measurement

ISO Point Offset: isoelectric point relative to the R wave vertex position;
ST Point Offset: ST measurement point relative to the R wave vertex
position.
14. Probe type set
Sensor Type: 0 - 2k probe, 1 - 10k probe.
Type
7
6
5
15. ECG3 / 5 Lead Set

0
F1

7
6
5
F1: 0: 3lead, 1:5 lead.

16. High and low threshold settings of Respiratory wave detection


Threshold adjustment method: 0: Auto, 1: Manual
High-threshold: Respiratory high-limit threshold (Under manual mode, set
the breathing wave detection threshold)
Low threshold: breathing low limit threshold
Under Automatic mode, high-threshold bytes, low-threshold bytes

1 Protocol Example
Firmware reset

Waiting for 0x0eH

Send acknowledge
0x0eH

Send Configuration
commands to all
modules

Waiting a moment
for acknowledge

Receive the waveform


and analyze the out come

1) It can achieve firmware reset of ECG module by turning off or turning on /


off pin of power socket.
2) The module startup, default state:
First channel: II leads; second channel: I lead; third channel: V1;
ECG Gain: X 1 block; filtering modes: monitoring mode;
ECG analysis channels: the first channel;
Lead by: 5 lead system;
Patient Type: Adult way;
Pace Pulse Detection Close (required Pace analysis, you need to

open a command sent to the module)


Respiratory Gain: X 3 block; respiratory rate is calculated as:
automatic mode;
Temperature probe Type: 10k probe;
Description: body temperature of 550 indicates invalid; other parameter
values

-100 indicates an invalid value;

You might also like