![]() You should be able to see the text on the phone. Input some text back to the phone on Raspberry Pi. You should be able to see the text on Raspberry Pi’s serial terminal.Ħ-2. Start the Minicom minicom -D /dev/ttyAMA0 -D Specify the device, overriding the value given in the configuration file. Connecting Serial Terminal on Raspberry Piĥ-1. Open another terminal and launch the serial terminal. Minicom is a tool for serial debugging over Linux environment. If everything goes well and the connection is established, you should be able to see like this: $ sudo rfcomm watch hci0Ĭonnection from XX:XX:XX:XX:XX:XX to /dev/rfcomm0ĥ. In the app, go to “Device” menu and select Raspberry Pi. Install and launch “Serial Bluetooth Terminal” app on the phone.Ĥ-3. Listen for incoming connection on Raspberry Pi. You should be able to see something like below. On the phone, scan for Raspberry Pi and pair. Enter below in order to be discovered from the phone. To establish a connection, Raspberry Pi and the phone need to be paired.ģ-2. ExecStartPost=/usr/bin/sdptool add SPĢ-4. Add a line below immediately after “ExecStart” line, then save and close the file. ![]() ![]() Look for a line starts with “ExecStart” and add compatibility flag ‘-C’ at the end of the line. Open Bluetooth service configuration file. In order to use SPP, Bluetooth service needs to be restarted with ‘compatibility’ flag. Install a serial terminal application on Raspberry Pi. Raspberry Pi board ( Raspberry Pi3 running Raspbian Stretch)ġ-1.Prerequisites (parentheses indicate my environment) D-bus API (please see this post for this option).This post shows steps for the 1st option (sdptool). There are two options to enable it in BlueZ (which is the default Bluetooth stack in Linux). The goal is to establish SPP connection between Raspberry Pi 3 and Android phone, then send/receive text using serial terminal applications on both ends. This post shows steps to set up Bluetooth Serial Port Profile (or SPP) on Raspberry Pi.
0 Comments
Leave a Reply. |