The Renesas Serial Port Service (SPS) reference application comes with an SPS demo application for Android and iOS systems. The SmartConsole application can discover, connect and exchange data with SPS-enabled devices within the Bluetooth RF range of the mobile device.
Features:
Device discovery
Connection to a discovered device
Receive data (ASCII or HEX) from a peer device with flow control
Transmit data to a peer device, either once or repeatedly
Transmit file(s) to a peer device with flow control
Receive files(s) from a peer device
Figure 14 SmartConsole Icon on Android and iOS Device
The application is available in the Google Play Store or Apple store and is easily installed from there just like any other application. To find the application, search for Renesas SmartConsole.
The user must tap the SmartConsole icon to start the application. The scan screen is shown (Figure 16) and the user has tocan tap the SCAN button. While scanning, all devices found are displayed (device name and Bluetooth address). The complete list of all discovered devices is listed on the screen when the search has finished. To refresh the list of devices found, the user can tap the SCAN button again or swipe down the list. The user must tap on the name of the desired device to connect to that device.
When connected to a device, a side menu environment is shown to the user when the List Menu button is tapped, which provides the functionality of the application. After connection, the user may navigate to three operating mode screens, an Information screen and a Disclaimer screen that will be explained in the following paragraphs.
The console mode is a serial port console emulation mode. Any character that is entered on the keyboard is immediately sent to the peer device and any character received is displayed in the reception display box.
The Read/Transfer Data mode allows the user to send data to and receive data from the peer device. Initially, the reception (RX) display box is shown, where received data can be displayed in ASCII or HEX format. Also, the user can clear the received data, enable or disable the incoming flow by tapping the START or STOP button respectively.Display of data can be enabled or disabled by the “Display” slider. Echo mode can also be enabled or disabled from the “Echo” slider. When echo mode is enabled, received data is retransmitted to the peer device. The user is also informed about the current RX flow control state from the green (flow on) or red (flow off) indicator.
For the Transfer (TX) part, a text box is shown where data can be entered via the keyboard or pasted by keeping the field pressed and select ‘paste’ when the context menu appears. Tap the SEND button to send the displayed data once or repeatedly (depending on the state of the ‘cyclic sending’ toggle switch) with the chosen interval.The user is also informed about the current TX flow control state from the green or red indicator.
The user also can to send a file instead of individual strings of characters. This function can be accessed in the ‘SEND tab of‘ Data File Streaming screen, where the user can browse the device’s file system to find the file to be transmitted.Chunk size in bytes and transfer interval of chunks can be configured by the corresponding fields to control the transfer throughput. The user can also enable the pattern mode using the corresponding slider to start sending the first bytes of the file in every chunk concatenated with a chunk counting number.
To receive a file, the ‘Receive’ tab of ‘Data File Streaming’ screen has to be selected. Information about the expected file header is shown when the help icon is pressed.
The ‘Information’ screen displays contact information and the version of the application. See Figure 20. The Disclaimer screen contains the disclaimer notes.