to add getdevicedata for didata.cpp