BMP5_Campbellsci论坛问答

hi all.
i am just playing around a bit with the BMP5-Direct-SDK and a CR1000+NL115 for fun. Its really nice, how easy it is to "talk" with the logger taking this approach. But i am just wondering about the following behaviour.
To make transparent what i am doing take this code-snippet (C++/Qt4):

qDebug()<<"Open";
OpenIPPort("192.168.100.32",6785);
result=GetClock(1,3,&data,&nbytes) ;
qDebug()<<"clock : "<<result<<" > "<<nbytes<<" "<<data;
for(int i=0;i<10;++i){
result = GetValue(1,3,1,"Public","T_Pt100",&data, &nbytes);
qDebug()<<"data : "<<result<<" > "<<nbytes<<" "<<data;
}
ClosePort();
qDebug()<<"Close";

BMP5_Campbellsci论坛问答

The getClock _always_ succeeds, but the _first_ call to GetValue nearly always fails with a -1. The error says simply "getvalue failed", but i also have seen a "failed to get tabledefinitions". On the other hand, the following calls to GetValue are succeeding.
So why is it the first call to GetValue that fails?
As the connection is tunneled over a vpn i expect and get timeouts when polling this style, but again : 99% of the calls succeed.
I am always interested for indepth information regarding timing on the CR1000. Especially serial-communication. So are there any white-papers?

* Last updated by: artmann on 11/13/2009 @ 2:26 PM *

分享到:

原文链接:,转发请注明来源!
「BMP5_Campbellsci论坛问答」评论列表

发表评论