CN105812086A - Monitor communication method and system - Google Patents

Monitor communication method and system Download PDF

Info

Publication number
CN105812086A
CN105812086A CN201410841497.XA CN201410841497A CN105812086A CN 105812086 A CN105812086 A CN 105812086A CN 201410841497 A CN201410841497 A CN 201410841497A CN 105812086 A CN105812086 A CN 105812086A
Authority
CN
China
Prior art keywords
packet
data
function
function command
monitor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410841497.XA
Other languages
Chinese (zh)
Other versions
CN105812086B (en
Inventor
黄德律
林秋声
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Comen Medical Instruments Co Ltd
Original Assignee
Shenzhen Comen Medical Instruments Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Comen Medical Instruments Co Ltd filed Critical Shenzhen Comen Medical Instruments Co Ltd
Priority to CN201410841497.XA priority Critical patent/CN105812086B/en
Publication of CN105812086A publication Critical patent/CN105812086A/en
Application granted granted Critical
Publication of CN105812086B publication Critical patent/CN105812086B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a monitor communication method used for controlling the communication between modules inside the monitor. The monitor communication method comprises steps of receiving and transmitting function orders corresponding to agreement function identifiers of two parties, generating a corresponding function identifier and data corresponding to the function order according to the function order to be transmitted by the internal module which is a data transmission party, packaging the function identifier and the data into a data packet to transmit, parsing out the function order and the corresponding data from the data packet by the internal module which is used as a data reception party after receiving the data packet, and executing the corresponding function according to the function order and the data. The invention discloses a monitor communication system. The monitor communication method and system can realize high efficiency communication.

Description

The communication means of monitor and system
Technical field
The present invention relates to medical device communication technical field, particularly relate to communication means and the system of a kind of monitor.
Background technology
Monitor is a kind of to measure and to control physiological parameters of patients, and can compare with known set value, the device or system that can send alarm if there is exceeding standard.Include multiple internal module inside monitor, between each internal module, have the communication protocol of oneself to communicate.But, in the communication protocol that traditional monitor adopts, there is following various problem:
(1) data transmitted only comprise medical parameter data itself, and do not include some complementary data, it is impossible to ensureing the effectiveness of data receiver, this can make data reliability reduce.(2) medical parameter data sends with fixing word length, when data volume is less than word length, send still according to fixed word length (what fall short of fills space character), sender can be made to communicate with the MCU of recipient some bytes useless more, thus causing the inefficient of communication, increasing burden and the power consumption of MCU, response speed is slack-off;And when needs send perhaps data volume in more, sender has to segmentation and sends, or the word length that script agreement is fixing being lengthened again, or adjust agreement, data are carried out the workload of processing procedure and just increase by such recipient, it appears more bother.
On the whole, traditional communication protocol is used to get up to realize communicating of high reliability, high efficiency and low-power consumption.
Summary of the invention
Based on this, it is necessary to provide the communication means of a kind of monitor that can realize high efficiency communication and realize system.
The communication means of a kind of monitor, is used for the communication controlling between the internal module of described monitor, comprises the steps:
The function command that receiving-transmitting sides appointment function mark is corresponding;
Internal module as data receiver generates, according to the function command to send, the data that corresponding Function Identification is corresponding with described function command;
Described Function Identification and data are encapsulated as packet and send;
As the internal module of data receiver after receiving described packet, from packet, parse function command and corresponding data, perform corresponding function according to described function command and data.
Wherein in an embodiment, the internal module as data receiver also adds check bit in the packet, and whether the data for verifying reception are correct.
Wherein in an embodiment, the internal module as data receiver also adds packet header and bag tail in the packet, lays respectively at first character joint and last byte of packet, for identifying head and the afterbody of described packet.
Wherein in an embodiment, the internal module as data receiver also adds frame length in the packet, for indicating the length of this packet.
Wherein in an embodiment, the described internal module as data receiver, after receiving described packet, parses function command and corresponding data from packet, according to described function command and data perform corresponding function step particularly as follows:
As the packet header of packet described in the internal module identification of data receiver, receive and store packet data;
Detection has been received by whether byte number is equal to the numerical value of described frame length, if so, receives last byte and detects whether it is described bag tail;
Judge that whether the numerical value of the described check bit of reception is correct, from packet, if so, parse function command and corresponding data and perform corresponding function according to described function command and data.
Wherein in an embodiment, the numerical value of described check bit be other bytes in packet except described packet header, bag tail and check bit itself numerical value and.
Wherein in an embodiment, leaving according to the data corresponding with described function command that the function command to send generates as the internal module of data receiver in the data bit of packet, described data bit includes more than one byte.
The communication system of a kind of monitor, is used for the communication realizing between the internal module of described monitor, including:
Definition module, the function command corresponding for realizing receiving-transmitting sides appointment function mark;
Data generation module, for generating, according to described function command, the data that corresponding Function Identification is corresponding with described function command;
Sending module, for being encapsulated as packet by described Function Identification and data and sending;
Receiver module, for, after receiving described packet, parsing function command and corresponding data from packet, performs corresponding function according to described function command and data.
Wherein in an embodiment, described sending module also adds in the packet for verifying the whether correct check bit of the data of reception, for identifying the packet header of the head of described packet, for identifying the bag tail of the afterbody of described packet and for indicating the frame length of the length of this packet.
Wherein in an embodiment, described receiver module includes:
Identify and receive unit, for identifying the packet header of described packet, receive and store packet data;
Whether the first detection unit, be equal to the numerical value of frame length, if so, receive last byte by described identification with receiving unit for detecting the byte number having been received by;
Second detection module, for detecting whether last byte received is described bag tail;
Judging unit, whether the numerical value for judging the described check bit of reception is correct;
Performance element, for parsing function command and corresponding data and performing corresponding function according to described function command and data from packet.
The communication means of above-mentioned monitor and system, described Function Identification and data are encapsulated as packet be transmitted, the data of described packet are to retransmit after generating according to the function command to send, rather than with fixing word length transmission, thus do not have the data volume situation fewer of more than word length, improve the efficiency of MCU.
Accompanying drawing explanation
Fig. 1 is the communication means flow chart of monitor in an embodiment;
Fig. 2 is packet structure schematic diagram in an embodiment;
Fig. 3 is the method flow diagram receiving packet in embodiment illustrated in fig. 1 as the internal module of data receiver;
Fig. 4 is packet structure schematic diagram in another embodiment;
Fig. 5 is the communication system module figure of monitor in an embodiment.
Detailed description of the invention
The communication means of a kind of monitor, is used for the communication controlling between the internal module of described monitor.Specifically refer to Fig. 1, be the communication means flow chart of monitor in an embodiment.
The method comprises the steps:
Step S110: the function command that receiving-transmitting sides appointment function mark is corresponding.
Step S120: the internal module as data receiver generates, according to the function command to send, the data that corresponding Function Identification is corresponding with described function command.
Step S130: described Function Identification and data are encapsulated as packet and send.
In the present embodiment, check bit, packet header, bag tail and frame length are also added in the packet as the internal module of data receiver.
Incorporated by reference to Fig. 2, it it is packet structure schematic diagram in an embodiment.
This packet structure includes following byte: packet header 110, frame length 120, Function Identification 130, check bit 140 and bag tail 150.
Packet header 110 is for the head of identification data packet.In data transmission procedure, the first character joint sending packet is packet header 110, receives process, just starts to receive data, otherwise do not receive when recognizing packet header 110, in order to avoid data receiver dislocation.
Which it is appreciated that if multiple internal module communications of monitor, then different internal module correspondence difference packet header, in order to identify the packet being sent to internal module.So can be easily achieved the intercommunication mutually between multiple internal module.
Specifically, each internal module is both provided with different packet header, communicates realizing multiple internal module in bus.When there being internal module to send data in bus, other only just receive packet in the packet header detecting oneself as the internal module of recipient, otherwise do not receive.Send in the process of data, if it is desired to the object that change data send, only packet header need to be changed into the packet header of respective inner module, respective inner module just can in the packet header of bus identification oneself and receive data, and other are not that the internal module of recipient is because identifying and not receiving data less than the packet header of oneself.
Frame length 120 is for indicating the length of this packet.In the present embodiment, second byte of packet is frame length 120, receives process, and receiving the second byte is frame length 120, receives the byte number of this packet afterwards according to the numerical value of frame length 120, in order to avoid receiving some useless data.
Function Identification 130 is for providing the function command of correspondence.3rd byte of packet is the Function Identification 130 generated according to the function command to send, and has received a packet and has verified after correctly, having performed corresponding function according to the Function Identification 130 of this packet and data.
Whether check bit 140 is used for verifying after a packet receives correct.Transmission process, packet automatically generates the check bit 140 being positioned at penultimate byte.According to the check bit 140 of the penultimate byte of this packet, reception process, after having received a packet, verifies whether this packet receives correctly.If verifying incorrect, then abandon this packet.
The numerical value of check bit 140 be other bytes in described packet except institute packet header 110, check bit 140, bag tail 150 numerical value and.In the present embodiment, the data of check bit 140 are added the sum of gained equal to the numerical value of frame length 120 and 130 two bytes of Function Identification.
Bag tail 150 is for the afterbody of identification data packet.Last byte sending packet is bag tail 150, for the end of this packet is described.Reception process, after completing reception data by word length, last byte is bag tail 150, and a packet just calculates reception completely.
Packet structure in the present embodiment does not generate the situation of corresponding data when being primarily directed to the internal module as data receiver according to the function command to send.If generating the data corresponding with described function command, then can increase data bit in the packet to deposit data.
Further, in the present embodiment, packet header 110 and bag tail 150 are used uniformly across hexadecimal representation.Being appreciated that in other embodiments, packet header 110 and bag tail 150 can also adopt other systems to represent.
Step S140: as the internal module of data receiver after receiving described packet, parses function command and corresponding data from packet, performs corresponding function according to described function command and data.
Incorporated by reference to Fig. 3, for embodiment illustrated in fig. 1 receives the method flow diagram of packet as the internal module of data receiver.The method includes:
Step S210: as the packet header of packet described in the internal module identification of data receiver, receive and store packet data.
In the present embodiment, only one internal module in the corresponding monitor in the packet header 110 of each packet.Reception process, recipient only just starts to receive packet data when recognizing the packet header that packet header 110 is correspondence oneself, does not otherwise receive, in order to avoid data receiver dislocation.
Step S220: whether the byte number that detection has been received by is equal to the numerical value of described frame length, if so, performs step S230.
In the present embodiment, the second byte of the packet received is frame length 120, determines the byte number receiving this packet afterwards according to the numerical value of frame length 120, in order to avoid receiving some hashs.Then last byte of reception is determined according to frame length 120.
Step S230: receive last byte and detect whether it is bag tail 150, if so, performs step S150, performs step S210 if it is not, return.
The reception just having calculated a packet when last byte is bag tail 150 only detected, otherwise just abandon the data received, again identify the packet header 110 of packet.
Step S240: judge that whether the numerical value of the described check bit of reception is correct, if so, perform step S250, perform step S210 if it is not, return.
In the present embodiment, the numerical value of check bit 140 be other bytes in described packet structure except packet header 110, check bit 140, bag tail 150 numerical value and, be frame length 120 and Function Identification 130 numerical value and.
Specifically, if the check bit automatically generated in transmission process is 6, and frame length 120 and the numerical value of Function Identification 130 and (if there being data bit, then for frame length 120, Function Identification 130 and described data bit numerical value and) be also equal to 6, the numerical value that check bit 140 is described is correct, then perform step S250.On the contrary, if the numerical value calculated and not etc. 6, then the numerical value of explanation check bit 140 is incorrect, then need abandon the data of this packet and return to step S210.
Step S250: parse function command and corresponding data from packet and perform corresponding function according to described Function Identification and data.
Refer to Fig. 4, for packet structure schematic diagram in another embodiment.
This packet structure includes the following byte of arrangement: packet header 210, frame length 220, Function Identification 230, data bit 240, check bit 250 and bag tail 260.
Wherein, the function of packet header 210, frame length 220, Function Identification 230 check bit 250 and bag tail 260 refer to the description of embodiment in Fig. 1, repeats no more here.
It may be noted that the numerical value of check bit 250 be described packet structure middle wrapping head 210, verification and 250 and bag tail 260 outside other bytes numerical value and.Therefore, in the present embodiment, the data of check bit 250 are added the sum of gained equal to the numerical value of frame length 220, Function Identification 230 and 240 3 bytes of data bit.
Data bit 240 is for depositing the data corresponding with described function command that the internal module as data receiver generates according to the function command to send.If a certain function command generates the data of correspondence in communication process, then and then increase, at Function Identification 230, the data bit 240 depositing data below.In the present embodiment, data bit 240 is 1 byte, it will be understood that in other embodiments, it is also possible to the needs according to function, increases the length of data bit.When packet structure has two or more byte data position, check bit 250 is then positioned at after the data bit of last 1 byte.
Further, in the present embodiment, packet header 210 and bag tail 260 are used uniformly across hexadecimal representation.Being appreciated that in other embodiments, packet header 210 and bag tail 260 can also adopt other systems to represent.
Finally, also provide for the communication system of a kind of monitor, be used for the communication realizing between the internal module of described monitor.
Refer to Fig. 5, be the communication system module figure of monitor in an embodiment, be used for the communication realizing between the internal module of described monitor, this system includes:
Definition module 310, the function command corresponding for realizing receiving-transmitting sides appointment function mark.
Data generation module 320, for generating, according to the function command to send, the data that corresponding Function Identification is corresponding with described function command.
Sending module 330, for being encapsulated as packet by described Function Identification and data and sending.
In the present embodiment, sending module 330, when sending data, also adds the whether correct check bit of the data for verifying reception, in the packet for identifying the packet header of the head of described packet, for identifying the bag tail of the afterbody of described packet and for indicating the frame length of the length of this packet.Being appreciated that in other embodiments, it is also possible to add data bit at described packet, described data bit is for depositing the data produced in communication process.
Receiver module 340, for, after receiving described packet, parsing function command and corresponding data from packet, performs corresponding function according to described function command and data.
In the present embodiment, receiver module 340 includes:
Identify and receive unit, for identifying the packet header of described packet, receive and store packet data.
For detecting, first detection unit, has been received by whether byte number is equal to the numerical value of frame length, if so, receives last byte by described identification with receiving unit.
Whether the second detection unit, be described bag tail for detecting last byte of reception.
Judging unit, whether the numerical value for judging the described check bit of reception is correct.
In the present embodiment, the numerical value of described check bit be other bytes in described packet except described packet header, check bit, bag tail numerical value and.
Performance element, for parsing function command and corresponding data and performing corresponding function according to described function command and data from packet.
The communication means of above-mentioned monitor and system, described Function Identification and data are encapsulated as packet be transmitted, the data so transmitted not only comprise medical parameter data itself, some complementary data can also be added, thereby may be ensured that the reliability of data receiver, simultaneously, the data of described packet are to retransmit after generating according to the function command to send, rather than with fixing word length transmission, thus do not have the data volume situation fewer of more than word length, improve the efficiency of MCU and reduce its power consumption.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that, for the person of ordinary skill of the art, without departing from the inventive concept of the premise, it is also possible to making some deformation and improvement, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1. a communication means for monitor, is used for the communication controlling between the internal module of described monitor, comprises the steps:
The function command that receiving-transmitting sides appointment function mark is corresponding;
Internal module as data receiver generates, according to the function command to send, the data that corresponding Function Identification is corresponding with described function command;
Described Function Identification and data are encapsulated as packet and send;
As the internal module of data receiver after receiving described packet, from packet, parse function command and corresponding data, perform corresponding function according to described function command and data.
2. the communication means of monitor according to claim 1, it is characterised in that the internal module as data receiver also adds check bit in the packet, whether the data for verifying reception are correct.
3. the communication means of monitor according to claim 2, it is characterized in that, internal module as data receiver also adds packet header and bag tail in the packet, lays respectively at first character joint and last byte of packet, for identifying head and the afterbody of described packet.
4. the communication means of monitor according to claim 3, it is characterised in that the internal module as data receiver also adds frame length in the packet, for indicating the length of this packet.
5. the communication means of monitor according to claim 4, it is characterized in that, the described internal module as data receiver is after receiving described packet, from packet, parse function command and corresponding data, according to described function command and data perform corresponding function step particularly as follows:
As the packet header of packet described in the internal module identification of data receiver, receive and store packet data;
Detection has been received by whether byte number is equal to the numerical value of described frame length, if so, receives last byte and detects whether it is described bag tail;
Judge that whether the numerical value of the described check bit of reception is correct, from packet, if so, parse function command and corresponding data and perform corresponding function according to described function command and data.
6. the communication means of monitor according to claim 3, it is characterised in that the numerical value of described check bit be other bytes in packet except described packet header, bag tail and check bit itself numerical value and.
7. the communication means of monitor according to claim 1, it is characterized in that, leaving according to the data corresponding with described function command that the function command to send generates as the internal module of data receiver in the data bit of packet, described data bit includes more than one byte.
8. a communication system for monitor, is used for the communication realizing between the internal module of described monitor, including:
Definition module, the function command corresponding for realizing receiving-transmitting sides appointment function mark;
Data generation module, for generating, according to described function command, the data that corresponding Function Identification is corresponding with described function command;
Sending module, for being encapsulated as packet by described Function Identification and data and sending;
Receiver module, for, after receiving described packet, parsing function command and corresponding data from packet, performs corresponding function according to described function command and data.
9. the communication system of monitor according to claim 8, it is characterized in that, described sending module also adds in the packet for verifying the whether correct check bit of the data of reception, for identifying the packet header of the head of described packet, for identifying the bag tail of the afterbody of described packet and for indicating the frame length of the length of this packet.
10. the communication system of monitor according to claim 9, it is characterised in that described receiver module includes:
Identify and receive unit, for identifying the packet header of described packet, receive and store packet data;
Whether the first detection unit, be equal to the numerical value of frame length, if so, receive last byte by described identification with receiving unit for detecting the byte number having been received by;
Second detection module, for detecting whether last byte received is described bag tail;
Judging unit, whether the numerical value for judging the described check bit of reception is correct;
Performance element, for parsing function command and corresponding data and performing corresponding function according to described function command and data from packet.
CN201410841497.XA 2014-12-30 2014-12-30 The communication means and system of patient monitor Active CN105812086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410841497.XA CN105812086B (en) 2014-12-30 2014-12-30 The communication means and system of patient monitor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410841497.XA CN105812086B (en) 2014-12-30 2014-12-30 The communication means and system of patient monitor

Publications (2)

Publication Number Publication Date
CN105812086A true CN105812086A (en) 2016-07-27
CN105812086B CN105812086B (en) 2019-05-03

Family

ID=56980167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410841497.XA Active CN105812086B (en) 2014-12-30 2014-12-30 The communication means and system of patient monitor

Country Status (1)

Country Link
CN (1) CN105812086B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106571892A (en) * 2016-11-08 2017-04-19 北京小米移动软件有限公司 Data processing method and device
CN107733556A (en) * 2016-08-12 2018-02-23 北京小米移动软件有限公司 Message checking method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118504A (en) * 2006-08-03 2008-02-06 西门子(中国)有限公司 Process and device for transferring parameter between application module and COM component
CN101267425A (en) * 2007-03-16 2008-09-17 上海贝电实业股份有限公司 Inter-board interface communication protocol for dynamic environment distributed monitoring system
CN101267444A (en) * 2007-03-16 2008-09-17 上海贝电实业股份有限公司 Communication protocol for monitoring mode and monitoring center in dynamic environment
CN101482814A (en) * 2008-01-08 2009-07-15 黄伟 Instruction display, input and storage method used for embedded system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118504A (en) * 2006-08-03 2008-02-06 西门子(中国)有限公司 Process and device for transferring parameter between application module and COM component
CN101267425A (en) * 2007-03-16 2008-09-17 上海贝电实业股份有限公司 Inter-board interface communication protocol for dynamic environment distributed monitoring system
CN101267444A (en) * 2007-03-16 2008-09-17 上海贝电实业股份有限公司 Communication protocol for monitoring mode and monitoring center in dynamic environment
CN101482814A (en) * 2008-01-08 2009-07-15 黄伟 Instruction display, input and storage method used for embedded system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107733556A (en) * 2016-08-12 2018-02-23 北京小米移动软件有限公司 Message checking method and device
CN107733556B (en) * 2016-08-12 2021-09-07 北京小米移动软件有限公司 Message checking method and device
CN106571892A (en) * 2016-11-08 2017-04-19 北京小米移动软件有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN105812086B (en) 2019-05-03

Similar Documents

Publication Publication Date Title
KR101519793B1 (en) Network system for vehicle and data transmission method of a different kind communication controller in the same system
US9331854B2 (en) Message authentication method in communication system and communication system
US20160191408A1 (en) Communication control apparatus and communication control method
US20170109521A1 (en) Vehicle network system whose security is improved using message authentication code
US20170134394A1 (en) Data transmitting and receiving method, transmitter, receiver and can bus network
US20150124839A1 (en) Method of Packaging and Unpackaging Packet and Appartuses Using the Same
WO2017026359A1 (en) Communication device
CN105183687B (en) A kind of timesharing serial port communication method and system
KR102148757B1 (en) Method and apparatus for transmitting/receiving data in a communication system
CN107836095B (en) Method for generating a secret or key in a network
JP2015526943A5 (en)
CN103984325A (en) IEEE802.15.4-oriented equipment data synchronization method of intelligent housing system
CN106464581A (en) Data transmission method and system and data receiving device
CN105812086A (en) Monitor communication method and system
CN102970737B (en) A kind of contention resolution of the wireless network transmissions based on constructive interference and system
CN109194643A (en) Data transmission, message parsing method, device and equipment
CN104580346A (en) Data transmission method and device
CN104271412A (en) Apparatus and method for receiving signals in a vehicle
US20130016762A1 (en) Data communication system, method of optimizing preamble length, and communication apparatus
CN106330397A (en) Method and device for implementing data interaction on ZigBee and Modbus RTU protocols
WO2017000737A1 (en) Transmission checking method, node, system and computer storage medium
CN106789517A (en) CAN data link and its by turn loss arbitration method
CN106789916A (en) Network transfer method and device, network transfer method and device based on UDP
WO2016000372A1 (en) Sequence detection method and device, and computer storage medium
CN202385121U (en) Control system of FSM-based short distance home communication protocol

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant