CN102075316A - Method for transmitting mass data in real time by synchronous transmission technology - Google Patents

Method for transmitting mass data in real time by synchronous transmission technology Download PDF

Info

Publication number
CN102075316A
CN102075316A CN2010106113683A CN201010611368A CN102075316A CN 102075316 A CN102075316 A CN 102075316A CN 2010106113683 A CN2010106113683 A CN 2010106113683A CN 201010611368 A CN201010611368 A CN 201010611368A CN 102075316 A CN102075316 A CN 102075316A
Authority
CN
China
Prior art keywords
data
slave
main frame
state
transmission
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.)
Pending
Application number
CN2010106113683A
Other languages
Chinese (zh)
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.)
Guangdong Biolight Meditech Co Ltd
Original Assignee
Guangdong Biolight Meditech 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 Guangdong Biolight Meditech Co Ltd filed Critical Guangdong Biolight Meditech Co Ltd
Priority to CN2010106113683A priority Critical patent/CN102075316A/en
Publication of CN102075316A publication Critical patent/CN102075316A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a method which meets the requirements of bandwidth, reliability and real-time property simultaneously and is used for bidirectionally transmitting mass data based on synchronous transmission technology. In the method, a protocol is embedded in the synchronous transmission process, a host computer and a slave computer adjust transmission contents in real time according to the protocol, and all transmission is initiated by the host computer, so the whole transmission process is designed as a control transmission process, and the host computer and the slave computer check transmission according to the minimum time slice. Practice proves that the method has high applicability and reliability and is low in cost; and mass data transmission proves that the method has extremely low packet loss rate and packet error rate and can be widely applied to the field of data transmission in a monitor.

Description

A kind of method of using synchronous transmission technology to transmit data in real time in enormous quantities
Technical field
The present invention relates to a kind of method of using synchronous transmission technology to transmit data in real time in enormous quantities.
Background technology
In medical dok guardian product, normally gathering the faint physiology electricity of human body changes, zoom into the accessible signal of telecommunication again, change into digital quantity at last and give the microprocessor analysis processing, the every physiologic parameter value that draws the patient by certain algorithm and clinical experience provides the foundation of measurement, diagnosis patient health state for medical personnel.
Traditional dok guardian product, configuration is simple, usually only needs lower sample rate, just can analyze patient's basic physiological parameter.And traditional dok guardian product, function mainly concentrates in " monitoring ", and promptly the reflection patient's of objective reality physiological status does not have follow-up analyzing and diagnosing, so data processing concentrates on the microprocessor of bottom substantially.The bottom microprocessor analysis mainboard that reports the rear end again that finishes is done reprocessing work such as demonstration, record, transmission.Such framework is lower to the bandwidth requirement of data passage, and serial ports commonly used just can carry data from the transmission of bottom module to mainboard.
Along with development of science and technology, patient monitor develops to intelligent, information-based direction gradually, a patient monitor not only wants to reflect accurately and reliably patient's physiological status, more want can an integrated constant volume the clinical knowledge storehouse, can provide basic illness identification to report to the police, alleviate medical personnel's workload, also to possess powerful information interaction managerial ability simultaneously, the application of information technology on patient monitor is not the emphasis that this paper narrates, and this paper mainly analyzes " diagnosis " function and deepen the influence that realizes data transfer bandwidth in monitoring.
As previously mentioned, tradition monitoring sample rate is low, substantially there is not bandwidth problem, present patient monitor is owing to tend to integrated " diagnosis " function, need more data to analyze and calculate, before now volume of transmitted data has reached substantially 3 to 5 times, and along with the development of medical science, more physiological parameter has progressively been brought the category of patient monitor monitoring into, and this has also caused the urgency of transmitted data amount to increase.
Therefore use the transmission technology that a kind of bandwidth is much higher than serial ports and become particularly urgent to the monitoring field, the requirement of transfer of data is as follows substantially in the patient monitor: 1, high reliability, and ccontaining doubtful as the curable product transmission reliability; 2, good real-time performance, though physiological parameter is a tempolabile signal, in rescue, critical illness monitoring were used, tens seconds delay may be exactly to give birth to and dead difference; 3, enough bandwidth, patient monitor only needs enough bandwidth, and that too high transmission rate is brought is stronger EMC, all unfavorable to self and third party device in the medical environment.
The SPI synchronous transmission is exactly a kind of transmission technology in being fit to be applied to guard, and this transmission technology is a synchronous transmission, and synchronous transmission says to have higher reliability undoubtedly with respect to asynchronous transmission such as serial ports from technological layer.The SPI transmission rate is higher, and between tens megabits, bandwidth can reach tens times of the fastest serial ports to scope in several megabits.On real-time, SPI is transmitted as the transmission near physical layer, does not have nested layer by layer protocols limit such as usb, ethernet transmission, so secure on the real-time.And the SPI synchronous transmission generally is applied in the occasion of tending to one-way transmission, display screen as the SPI interface, the transducer of SPI interface etc., the transmission direction of data is unidirectional substantially, when needs transmitted in both directions real time data in enormous quantities, substantially all be to realize with asynchronous transmission technology such as usb, ethernet.Therefore lack a kind of method that satisfies the requirement of bandwidth, reliability and real-time and realize two-way transfer of data in enormous quantities in the monitoring field at present.
Summary of the invention
Technical problem to be solved by this invention is to overcome the deficiencies in the prior art, provides a kind of and satisfies the requirement of bandwidth, reliability and real-time simultaneously and realize the method for two-way transfer of data in enormous quantities based on synchronous transmission technology.
The technical solution used in the present invention is: the method that the present invention adopts may further comprise the steps:
A: transfer of data both sides' main frame, slave initialization are finished;
B: detect instruction in T0 moment main frame transmit status and give slave, enter the wait transmission state at T0 described slave of the moment simultaneously; Slave instructs then continuation to wait for if receive this state-detection, puts into wait main frame in district's to be sent reception if receive the state information that this state-detection instruction then will be uploaded;
C: enter the state that initiatively receives slave status information at T1 moment main frame, send this state information to main frame at T1 described slave of the moment simultaneously; If do not receive and then return step B, correctly then enter next step transfer of data if receive state information;
D: both sides finish mutually one take turns transfer of data after, return step B main frame and resend state-detection instruction and carry out the next round transfer of data.
Further, the transfer of data among the described step C specifically comprises the steps:
A: the state information that receives slave as main frame waits at interval then that correctly entering wait constantly at T2 receives data mode, and slave sends data constantly at T2 simultaneously;
B: wait at interval at T3 moment slave entering the state that receives data, main frame sends data to slave constantly at T3 simultaneously.
Further, the state-detection instruction that main frame sends among the described step B comprises that for the fixed byte content main frame will send the length and the check code of data; The state information that slave sends among the described step C is the fixed byte content, comprises length and check code from confidential transmission data.
Further, the length of described main frame or slave transmission data is decided according to data length in above-mentioned state-detection instruction or the state information.
Further, be provided with timer at described slave, suppose that each step pitch is 1ms in the transmission, the single-wheel transmission cycle then mostly is most 4ms, if transmission does not finish then to reset back T0 constantly in the single-wheel transmission cycle.
Beneficial effect of the present invention is: because this method is an embedded agreement in the synchronous transmission process, principal and subordinate both sides adjust the transmission content in real time according to agreement, all transmission are all initiated by host side, so whole transmission course is designed to control transmission, principal and subordinate both sides check transmission by minimum timeslice; And slave also can respond main frame fast, because synchronous transmission slave end is to the not intellectual of host side, slave does not know when main frame will be initiated transmission, therefore slave can be in accepting state prior to main frame, here main frame is always at T0, T1, T2, T3 produces action constantly, and slave is prepared just can guarantee transmission success as long as finished transmission before these reach constantly so.In product, realized the real-time Data Transmission of each 100k byte/s up and down according to this method, practice shows that this method applicability is strong, the reliability height, cost is low, this method not only is suitable for the SPI synchronous transmission, also is applicable to other synchronous transmission technology, by this method, in transmission, take into account the requirement of bandwidth, reliability and real-time, be particularly suitable for medical applications.
Description of drawings
Fig. 1 is the method applied in the present invention flow chart.
Embodiment
Flow chart as shown in Figure 1, during beginning, main frame and slave are not all known the other side's state, after slave is finished initialization, enter the state of waiting for the main frame transmission, after finishing, the main frame initialization issues the content of regular length byte constantly at T0, comprised data length and verification that main frame will send in the content, slave does not probably receive the order that main frame issues in beginning several times, therefore slave need be got back to the wait transmission state fast, to receive the repeating transmission order of main frame.In case slave has received order, just the data length tape verifying that oneself will upload is put into district to be sent, the wait main frame is put this order away.Main frame always attempts collecting the echo command of slave constantly at T1 after T0 sends order constantly, if it is correct to receive orders, illustrate that slave received the order of main frame, and the while main frame has also been understood the data length that slave need transmit.Here T0, two processes of T1 are just as telephone message, and to the slave message, whether T1 constantly answers message referring to slave to main frame side T0 constantly, if do not answer or answer incorrect, then main frame needs once more to the slave message, up to receiving correct slave message.Whether slave side always goes to check and leaves a message, if found correct main frame message, then leaves a message to main frame in the next moment.Have only main frame and slave all to confirm the other side's message, just can enter following flow process.
As mentioned above, T2 and T3 corresponding flow process constantly are to be based upon on T0 and the T1 successful butt joint basis constantly, and the data length that while T2 and T3 transmit constantly is also based on above information, can be understood as T0, the T1 flow process is principal and subordinate both sides' a phone confirmation process, T2, and the T3 flow process is real exchanges data.T2 main frame constantly receives these data of slave by the data length that slave reports; T3 main frame constantly sends these data to slave by the data length of before offering slave.T2 and T3 flow process are all optional in addition, if slave does not have data to send, both sides skip the T2 flow process automatically; In like manner, if main frame does not have data to send.Both sides skip the T3 flow process automatically.
The main points that above-mentioned this flow process realizes are:
1, slave must respond main frame fast, because synchronous transmission slave end is to the not intellectual of host side, slave does not know when main frame will be initiated transmission, therefore slave must be in accepting state prior to main frame, here main frame is always at T0, T1, T2, T3 produces action constantly, and slave is prepared just can guarantee transmission success as long as finished transmission before these reach constantly so.
2, main frame and slave are in T0 butt joint problem repeatedly constantly, because principal and subordinate's machine electric sequence successively differs, possible main frame has sent half regular length status data, slave just begins to receive, therefore need principal and subordinate both sides to dock repeatedly in two moment of T0, T1, host side is always sent own state at fixed time T0, and the slave end will be checked after the T0 receipts count up at once, if correct state in T1 loopback oneself constantly, if incorrect, the small wait of delaying time returns the T0 state constantly; Host side reads slave status constantly at T1, if incorrect, change the T0 state over to and restart butt joint, otherwise enter the data transmission procedure of back.
3, whole flow process slave end will have house dog, supposes that each step pitch is 1ms, and whole process finishes maximum 4ms of time spent, if flow process does not finish in the 4ms, loading error occurring is described, slave is in wait state always, at this moment, from confidential triggering house dog, state put get back to T0.Can guarantee that like this single error of transmission can not cause batch data to lose.
4, under the step pitch 1ms situation, all have under the transfer of data situation the principal and subordinate, process cycle 4ms, when unilaterally transfer of data being arranged, process cycle 3ms, when both sides do not have transfer of data, process cycle 2ms.Therefore can think that bi-directional data scope time of delay is 2 ~ 4 milliseconds.
Use this method in product, realized the real-time Data Transmission of each 100k byte/s up and down, practice shows that this method applicability is strong, the reliability height, cost is low, by transfer of data checking in enormous quantities, the packet loss of this method, Packet Error Rate are very low, have reached the application requirements in monitoring field.

Claims (6)

1. a method of using synchronous transmission technology to transmit data in real time in enormous quantities is characterized in that, may further comprise the steps:
A: transfer of data both sides' main frame, slave initialization are finished;
B: detect instruction in T0 moment main frame transmit status and give slave, enter the wait transmission state at T0 described slave of the moment simultaneously; Slave instructs then continuation to wait for if receive this state-detection, puts into wait main frame in district's to be sent reception if receive the state information that this state-detection instruction then will be uploaded;
C: enter the state that initiatively receives slave status information at T1 moment main frame, send this state information to main frame at T1 described slave of the moment simultaneously; If do not receive and then return step B, correctly then enter next step transfer of data if receive state information;
D: both sides finish mutually one take turns transfer of data after, return step B main frame and resend state-detection instruction and carry out the next round transfer of data.
2. a kind of method of using synchronous transmission technology to transmit data in real time in enormous quantities according to claim 1 is characterized in that the transfer of data among the described step C specifically comprises the steps:
A: the state information that receives slave as main frame waits at interval then that correctly entering wait constantly at T2 receives data mode, and slave sends data constantly at T2 simultaneously;
B: wait at interval at T3 moment slave entering the state that receives data, main frame sends data to slave constantly at T3 simultaneously.
3. a kind of method of using synchronous transmission technology to transmit data in real time in enormous quantities according to claim 1 and 2, it is characterized in that, the state-detection instruction that main frame sends among the described step B comprises that for the fixed byte content main frame will send the length and the check code of data.
4. a kind of method of using synchronous transmission technology to transmit data in real time in enormous quantities according to claim 1 and 2, it is characterized in that, the state information that slave sends among the described step C is the fixed byte content, comprises length and check code from confidential transmission data.
5. a kind of method of using synchronous transmission technology to transmit data in real time in enormous quantities according to claim 2 is characterized in that, described main frame or slave send the length of data to be decided according to data length in above-mentioned state-detection instruction or the state information.
6. a kind of method of using synchronous transmission technology to transmit data in real time in enormous quantities according to claim 1 is characterized in that, is provided with timer at described slave, if transmission does not finish then to reset back T0 constantly in the single-wheel transmission cycle.
CN2010106113683A 2010-12-29 2010-12-29 Method for transmitting mass data in real time by synchronous transmission technology Pending CN102075316A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010106113683A CN102075316A (en) 2010-12-29 2010-12-29 Method for transmitting mass data in real time by synchronous transmission technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010106113683A CN102075316A (en) 2010-12-29 2010-12-29 Method for transmitting mass data in real time by synchronous transmission technology

Publications (1)

Publication Number Publication Date
CN102075316A true CN102075316A (en) 2011-05-25

Family

ID=44033671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010106113683A Pending CN102075316A (en) 2010-12-29 2010-12-29 Method for transmitting mass data in real time by synchronous transmission technology

Country Status (1)

Country Link
CN (1) CN102075316A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021463A (en) * 2014-06-23 2014-09-03 中国科学院深圳先进技术研究院 Multifunctional warehouse management system and management method thereof
CN111431605A (en) * 2020-03-30 2020-07-17 阳光电源股份有限公司 Data receiving and transmitting control method and application system thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5925135A (en) * 1996-09-26 1999-07-20 Intel Corporation Clock rate compensation for a low frequency slave device
CN101488076A (en) * 2008-12-30 2009-07-22 华为技术有限公司 Solution method and primary device for command collision in serial hard disk interface protocol
CN101605081A (en) * 2008-06-13 2009-12-16 威盛电子(中国)有限公司 The method of data transmission device, data sink and control data transmission
CN101888407A (en) * 2010-06-11 2010-11-17 广东宝莱特医用科技股份有限公司 Method for configuration interactive synchronization between independently used module and module integrating device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5925135A (en) * 1996-09-26 1999-07-20 Intel Corporation Clock rate compensation for a low frequency slave device
CN101605081A (en) * 2008-06-13 2009-12-16 威盛电子(中国)有限公司 The method of data transmission device, data sink and control data transmission
CN101488076A (en) * 2008-12-30 2009-07-22 华为技术有限公司 Solution method and primary device for command collision in serial hard disk interface protocol
CN101888407A (en) * 2010-06-11 2010-11-17 广东宝莱特医用科技股份有限公司 Method for configuration interactive synchronization between independently used module and module integrating device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021463A (en) * 2014-06-23 2014-09-03 中国科学院深圳先进技术研究院 Multifunctional warehouse management system and management method thereof
CN111431605A (en) * 2020-03-30 2020-07-17 阳光电源股份有限公司 Data receiving and transmitting control method and application system thereof
CN111431605B (en) * 2020-03-30 2021-12-10 阳光电源股份有限公司 Data receiving and transmitting control method and application system thereof

Similar Documents

Publication Publication Date Title
CN104461903B (en) The method and apparatus of test client based on browser
EP2999276A1 (en) Method and terminal for reporting sensor data
CN105610915A (en) Data reporting method and system
CN105263155B (en) The method and system of remote real time monitoring intelligent mobile terminal baseband processor operating status
CN110430017A (en) A kind of data transmission method for uplink, device and optical module
CN105917314A (en) Application error detection method for cloud streaming service, and apparatus and system therefor
CN108694995B (en) Medical diagnosis system and method
CN104424148B (en) Send the method and its electronic equipment of content
CN102223452B (en) The TTY method of testing of mobile terminal and system
CN110430016A (en) A kind of data receiver method, device and optical module
CN110134447A (en) The system and method for BMC immediate updating hard disk information based on operating system
CN106649342A (en) Data processing method and apparatus in data acquisition platform
CN104622448A (en) Electronic sphygmomanometer data acquisition and management system and method
TW201029410A (en) Data communication device, communication control method, and program
CN102075316A (en) Method for transmitting mass data in real time by synchronous transmission technology
KR20130063866A (en) Diagonosis system for m2m device and the method thereof
CN103647793B (en) Bus type sensing separation method capable of supporting hot plugging for sensor nodes
CN107203694A (en) The self-service channels and collaterals detection platform of intelligency activity formula
KR20090089535A (en) Communication method for ubiquitous home healthcare service
CN103281154A (en) Data acquisition card system for processing data acquisition and data transmission in parallel
CN108289165B (en) Method and device for realizing camera control based on mobile phone and terminal equipment
CN109938716A (en) A kind of blood glucose blood pressure all-in-one machine and its operating method
CN109271454A (en) A kind of method and the network equipment that data are synchronous
CN113223287B (en) SPI-based communication method and system for intelligent electric energy meter and load identification module
CN109756642A (en) The control method and ballot paper image capturing system of ballot paper image capturing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110525