Falcon SDK 5.7.261 ,Replacement device communication fails
Hi Expert, I am using the Falcon SDK to develop a communication application. When clicking "Start" in the app, the communication begins. I observed the following behavior:
- After connecting a KNX device(15.15.255), clicking "Start" triggers
new Bus(selectedConnector),sut.OpenDevice(address), andWritePropertyExt— these succeed. - When I replace the KNX device with a new one (address
15.15.255) and click "Start" again (still executingnew Bus,sut.OpenDevice, andWritePropertyExt), it fails. However, if I click "Start" a second time, it succeeds.
Why does this happen? What adjustments are needed in the program?
if (!KNX_GetUsbInterfaceState())
{
if (!KNX_ConnectUsbInterface())
{
_strReturn = "KNX USB acquisition failed!";
return _strReturn;
}
}
//try - catch - finally ,using是必须的
try
{
using (Bus sut = new Bus(selectedConnector))
{
using (Device device = sut.OpenDevice(address))
{
device.WritePropertyExt(objectType, instance, propertyId, propertyDataType, index, numberOfElements, data,true,HandleProgressUpdate);
}
}
}
catch (Exception e)
{
_strReturn = e.Message;
}
finally
{
}
error:
No T_Ack received for telegram: PropertyExtValueWriteTelegram APciPropertyExtValueWriteCon_req -> 15.15.255 - (S=1) ObjectType=65431 Instance=1 PropertyId=200 NumberOfElements=1 StartIndex=1 Data=$55, $aa, $00, $64, $00, $00
Opmerkingen
0 opmerkingen
U moet u aanmelden om een opmerking te plaatsen.