Add ping operation into device emulator