1. Introduction
The Serial Port Service (SPS) emulates serial cable communication. SPS provides a simple substitute for RS-232 connections, which includes the familiar software flow control logic via Bluetooth® Low Energy (LE).
The software has been developed for the DA14585 Development Kit (DK) – PRO, DA14531 Development Kit (DK) – Basic or DA14531 TINY™ Module. Software is also developed for Android and iOS tablets and mobile phones called SmartConsole, to allow a serial port to be emulated when two DA14585/DA14531 DKs are used, or a DA14585/DA14531 DK and an Android or iOS device. The DA14585 DK can either function in the GAP central role, or in the peripheral role. The Android or iOS device only functions in the GAP central role. The apps can be downloaded from their respective app stores for Android and iOS.
There are two projects provided, a host and a device project that operate in a BLE central and a peripheral role respectively. Both projects use DMA driven UART operation for baud rates up to 921600 that use a hardware flow control only, which is optimized for BLE operation and high speeds.
For detailed information on DSPS refer to DA14585-531 Serial Port Service Reference Application.
1.1. Before you start
Install the Dialog Smartbond™ Flash Programmer and Dialog SmartSnippets™ Toolbox.
Install serial communication tools like TeraTerm.
Install Dialog SmartConsole™ app on your smartphone. The app is available both for Android and iOS devices.
Download the latest DSPS version for DA14585/DA14586 and DA14531.
Additionally, for this tutorial, either a DA14531 Pro or USB or TINY™ Module Development kit or a DA14585 Pro Development kit is required.