Internet of Things
Next Build ..
Read the rest of entry »
The SurfPad project as on GitHub and hackster.io is a UWP app that runs on a touchscreen Windows device. It runs as the configurable UI for an app running on an embedded device such as an Arduiino device or a Raspberry Pi (running IoT Core).. The frontend sends single characters as commands (representing button presses) whereas the backend returns responses as text strings, representing sensor data that the remote device has determined. So the communication data is textual. The communication between the two devices can be a network sockets client-server conduit, USB Serial or Bluetooth Serial. Whilst Bluetooth Serial works OK between a Windows 10 desktop (or IoT Core) as the frontend and an Arduino device as the remote backend, using an IoT Core device as the backend has been shown to be problematic. This article presents an alternative based upon Bluetooth RFComm Chat client –server architecture, which does work.
How about reimagining an old Surface etc, to be used as the UI for a remote app running on an Arduino or RPi. UI runs as a touch based UWP app and communicates …
If you are used to right clicking on a Device in My Devices to get a menu of options for connecting to your device, then this functionality has been moved to the Actions column in the current version of IoTCoreDashboard.
This is for Microsoft Store
Some musings about connecting the remote device to the UI-UWP app.
As part of a series of articles on a set of projects targeted at using a Windows Surface device as the presentation layer for a RPI or Arduino device, this article views the apps as state machines and documents the app states coupling through message passing between them.
This article reworks the previous few articles that use BT Serial and the connectivity so that USB virtual serial is used for communication. It covers in detail USB Serial connectivity between a UWP app and an Arduino devices as well as with a Windows 10 IoT-Core device (eg RPI).
The second article in this series covered development of a BT enabled Arduino Sketch that send its required UI to the UWP app as two json text strings. Also when the app is configured, the UWP app can send the UI key presses as encoded characters. This article covers how to implement same as a Windows 10 IoT-Core app that can run on a RPI.
The previous article in this series covered implementing an Arduino device as the remote app that send the UI configuration at start up to the UWP app so that the UWP app can configure the UI for it as an array of buttons. The Arduino device executes a state machine. The article covers the BT connectivity from within the UWP app and the implementation of the UWP apps mirror of the state machine.