We apply the Web of Things (WoT) communication pattern, i.e., the semantic description of metadata and interaction affordances, to Internet of Things (IoT) devices that rely on non-IP-based protocols, using Bluetooth Low Energy (LE) as an example. The reference implementation of the WoT Scripting API, node-wot, currently supports only IP-based application layer protocols such as HTTP and MQTT. However, a significant number of IoT devices do not communicate over IP, but via other network layer protocols, e.g. L2CAP used by Bluetooth LE. To leverage the WoT abstraction in Bluetooth Low Energy communication, we specified two ontologies to describe the capabilities of Bluetooth LE devices and transmitted binary data, considered the different interaction possibilities with the Linux Bluetooth stack BlueZ, and due to better documentation, used the D-Bus API to implement Bluetooth LE bindings in JavaScript. Finally, we evaluated the latencies of the bindings in comparison to the BlueZ tool bluetoothctl, showing that the Bluetooth LE bindings are on average about 16 percent slower than the comparison program during connection establishment and about 6 percent slower when disconnecting, but have almost the same performance during reading (about 3 percent slower).
翻译:我们以蓝牙低能(LE)为例,对依赖非IP基础协议、使用蓝牙低能(LE)的Times(IoT)装置的互联网(IoT)装置应用“Things(WoT)网络(WoT)”通信模式。WoT Scriping API(节点-wot)的参考实施目前只支持基于IP的应用层协议,如HTTP和MQTT。然而,大量IoT设备不通过IP,而是通过其他网络层协议,例如蓝牙LLE使用的L2CAP。为了在蓝牙低能通信中利用WoT的抽象元素,我们指定了两个主题来描述Bluotooth LE设备和传输的二进制数据的能力,考虑了与Linux Blude-toth Stall BluetZ的不同互动可能性,并且由于文件的改进,使用D-Bus APIPO(BLO) 来实施 LEOTAScrimittest 。最后,我们评估了与BlueWe-BLOol 3的延迟,在BlueTotool 建立过程中显示BlueBlueBrucrolation 3 中,我们比较了16次的比较过程显示了16的进度,在Bruceutctroltroc) 的进度比较过程比较过程比较过程比慢。