摘要
This paper proposes a new smartphone-based emulator for a Bluetooth Low Energy (BLE)-based wireless motion-sensor node. It uses an ISS for simulating the execution of application and runtime-system code. To emulate the BLE protocol stack and motion sensor, we propose a novel approach of linking the stack and peripherals with an emulation library that redirects their access to the native features on the host in terms of the actual BLE protocol or sensors on the mobile device, while actuators can be rendered by animation on the mobile device screen. Experimental results show our methodology to be effective at emulating the execution of a wide range of applications on the user's existing mobile device. © 2019 IEEE.