-
大小: 32.74MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-07-28
- 语言: 其他
- 标签: LIS BS300-BS2000 EXC810
资源简介
本文档提供了迈瑞各个仪器型号的通讯协议,血常规,血凝,生化,糖化,发光,文档很齐全,有样例数据可以参考。
代码片段和文件信息
// --------------------------------------------------------- //
// Copyright (c) 2007 Mindray Medical International Limited
// All rights reserved.
//
// The sourcecodes here are distributed in the hope that they will be useful
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// We first define some macros instead of everywhere nonsense numbers
// which will make the whole design a cool looking
#define MS 0x05 // a new start message transaction
#define ME 0x0a // end of the whole message transaction
#define MD_SD 0x03 // end of the message description
#define SD_FD 0x0C // end of the segment description
#define FD_V 0x16 // end of the field description
#define SE 0x04 // end of the whole segment
#define FE 0x08 // end of the whole field
void CTcpClient::RecvData(UINT nPortCString strIPAddr)
{
BYTE *pbuf = new BYTE[262144*2];
memset(pbuf‘\0‘262144*2);
CString strTemp=““;
char cData=0x00;
BOOL blinkState=TRUE;
int iDataLen=0;
char strDES[30]={0};
char strValue[30]={0};
BOOL b_FDStart = FALSEb_ValueStart = FALSE;
int j=0;
BOOL bFindDataLen = FALSEbFindmetaDataLen = FALSE;
int nDataLen = 0;
int iLen =0 ;
CString StrTemp=““;
BOOL bInOnce=FALSE;
int iAutoAddNum=1;
int i=0;
CServerAddrPort *pSAP=NULL;
SOCKET Socket = NULL;
Socket= socket(AF_INETSOCK_STREAM0);
ASSERT(Socket!=NULL);
struct sockaddr_in sockaddr1;
sockaddr1.sin_family = AF_INET;
sockaddr1.sin_addr.S_un.S_addr = inet_addr(strIPAddr.GetBuffer(0));
sockaddr1.sin_port = htons(nPort);
int ret = 0;
// Issue a TCP connect to the server identified by nPort and strIPAddr
ret = connect(Socket(LPSOCKADDR)&sockaddr1sizeof(struct sockaddr_in));
if (ret == SOCKET_ERROR)
{
closesocket(Socket);
delete []pbuf;
return;
}
Sleep(100);
fd_set fds;
FD_ZERO(&fds);
FD_SET(Socket&fds);
timeval time;
time.tv_sec = 5; // 5S for timeout
time.tv_usec = 0;
// we are holding the connection now
while (1)
{
if (m_bProgrameExit)
{
delete []pbuf;
return;
}
// Poll for network stream coming
int nret = select(NULL&fdsNULLNULL&time);
// error or timeout
if ((nret == SOCKET_ERROR) || (nret == 0) )
{
closesocket(Socket); // close the socket
delete []pbuf;
return;
}
// Big fish! We really got some network stream
if (FD_ISSET(Socket&fds))
{
iLen = recv(Socket&cData10) ;
}
Label1: if (iLen == 0) // Oha we got zero stream length? Is it possible?
{
// No we must in some trouble
closesocket(Socket);
delete []pbuf;
return;
}
// Yes we read one char each time in ASCII parsing mode
if (1 == iLen)
{
if (blinkState)
{
// When idle we are in linkstate mode and we nee
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-12-14 10:24 迈瑞\
文件 680656 2014-06-05 00:12 迈瑞\LIS协议接口手册(中文).pdf
目录 0 2018-12-24 15:10 迈瑞\bc3000原始数据\
目录 0 2017-09-30 14:53 迈瑞\bc3000原始数据\data\
目录 0 2017-09-30 14:53 迈瑞\bc3000原始数据\data\少一项接到的数据\
文件 14796 2011-08-19 09:46 迈瑞\bc3000原始数据\data\少一项接到的数据\2011-08-19@001.TXT
文件 19686 2009-12-05 10:32 迈瑞\bc3000原始数据\data\新建 文本文档.txt
目录 0 2017-09-30 14:53 迈瑞\bc3000原始数据\data\样本1\
文件 2691 2011-08-19 09:58 迈瑞\bc3000原始数据\data\样本1\16进制.txt
文件 2466 2011-08-19 09:52 迈瑞\bc3000原始数据\data\样本1\8进制.txt
目录 0 2017-09-30 14:53 迈瑞\bc3000原始数据\data\样本2\
文件 3426 2011-08-19 09:56 迈瑞\bc3000原始数据\data\样本2\16进制.txt
文件 2466 2011-08-19 09:57 迈瑞\bc3000原始数据\data\样本2\8进制.txt
目录 0 2017-09-30 14:53 迈瑞\bc3000原始数据\data\样本3\
文件 0 2011-08-19 09:57 迈瑞\bc3000原始数据\data\样本3\16进制.txt
文件 2466 2011-08-19 09:58 迈瑞\bc3000原始数据\data\样本3\8进制.txt
文件 27136 2011-11-02 10:33 迈瑞\bc3000原始数据\新建 Microsoft Word 文档.doc
文件 24 2011-08-18 14:01 迈瑞\bc3000原始数据\迈瑞bc3000plus超级密码.txt
文件 21 2011-02-22 16:17 迈瑞\bc3000原始数据\迈瑞免费客服.txt
目录 0 2018-12-21 09:56 迈瑞\发光\
文件 1829647 2017-08-12 09:19 迈瑞\发光\CL-2000i_LIS协议接口手册_V2.0_CH.pdf
文件 322167 2018-12-19 16:16 迈瑞\发光\IMS1200 LIS接口(HL7).doc
文件 1829647 2016-09-13 11:09 迈瑞\发光\SAL-8000&CL-2000i_LIS协议接口手册_V2.0_CH.pdf
目录 0 2019-01-17 09:19 迈瑞\生化\
文件 1276450 2017-08-04 10:17 迈瑞\生化\-BS-300&380&400&480&800&2000_LIS协议接口手册_V4.0_CH.pdf
文件 807464 2015-03-20 13:01 迈瑞\生化\BS-400LIS协议接口手册(01.03.14适用).pdf
目录 0 2017-09-30 14:53 迈瑞\生化\BS2000M\
文件 8443 2017-08-04 09:12 迈瑞\生化\BS2000M\bs2000M.txt
文件 406045 2011-06-21 12:32 迈瑞\生化\BS300-HL7接口手册[中文].pdf
文件 3062272 2010-07-23 17:07 迈瑞\生化\BS800 LIS协议接口手册.doc
目录 0 2018-12-04 17:16 迈瑞\糖化\
............此处省略49个文件信息
相关资源
- Listen1-Windowns客户端修改版
- Bioinformatics with R Cookbook-Packt Publishin
- ListView实现列表数据与聊天对话框
- VisualLisp程序设计AutoCAD2010与课件PPT一
- MGH.English.Skills.with.Readings.9th.Edition.p
- ProtocolsforAuthenticationandKeyEstablishment.
- Machine Learning - A Probabilistic Perspective
- SonicVisualiser(音频数据分析软件)v
- ComputerVision(AlgorithmsandApplications)R
- NotificationListener.zip
- Bayesian Methods for Hackers Probabilistic Pro
- .High.Performance.Parallelism.Pearls.012802118
- 强力的RAR/WinRAR 密码破解字典Argon Wo
- The Mythical Man Month(English).pdf
- realistic image synthesis using photon mapping
- Probabilistic Graphical Models Principles and
- 景点介绍ListView控件应用
- AIAG-VDA FMEA HANDBOOK (English 1st 2019).
- A Dictionary of Modern English Usage2nd Editio
- AUTOCAD完全应用指南高清版+随书CD
- Common LISP书籍中文版pdf格式带书签.r
- NXT2 07 part list
- Listen1_1.8.0_win64.exe
- 英文字母识别数据集EnglishHand
- tp5 利用QueryList + PhantomJS实现抓取淘宝
- Machine learning A Probabilistic Perspective.p
- Machine Learning - A Probabilistic Perspective
- Machine Learning A Probabilistic Perspective K
- listview实现点赞功能
- an introduction to probabilistic graphical mod
评论
共有 条评论