Internet Of Things Communications
  • Cover
  • Summary
  • About This Training
    • Objectives
    • Skills
    • Prerequisites
    • Requirements
  • Once Upon A Time ...
  • Introduction
    • Network Topologies
    • Software Defined Radio
    • Wireshark
    • Sub-1GHz Wireless
  • Connectivity
    • Serial
      • Laboratory
        • Linux and Arduino
    • Telephony
    • WiFi
      • WiFi HaLow
      • WiGig
    • Bluetooth
      • Architecture
        • Bluetooth Specifications
        • Bluetooth Low Energy
        • Bluetooth Smart Mesh
      • Protocol Stack
        • Linux
          • HCITool
          • BlueZ
          • L2Ping
          • SDPTool
          • GATTTool
          • BTMon
          • BTProxy
      • Development Boards
        • Intel Edison
        • Arduino
      • Laboratory
        • Serial Port Protocol
        • Linux and Arduino
        • Nordic
        • Virtual Keyboard
        • Reverse Engineering
        • Bluetooth Low Energy
    • Low-Power Wide-Area Networks
      • LoRa
      • SigFox
    • RFID
    • ZigBee
    • Z-Wave
    • Thread
    • HomeKit
    • Satellite
    • Near Field Communication
    • Neul
    • RF
  • Protocols
    • Web
    • Industrial Protocols
    • MQ Telemetry Transport
      • Mosca
      • Brokers
        • Mosquitto
        • VerneMQ
        • HiveMQ
      • Security
      • Applications
      • Laboratory
    • Advanced Message Queuing Protocol
    • Weave
    • Constrained Application Protocol
    • AllJoyn
    • XMPP
    • 6LoWPAN
    • ModBus
    • Others
    • Lightweight M2M
    • Cap'n Proto
    • IPv6
    • RPL
    • Very Simple Control Protocol
    • NATS
  • Libraries
    • ZeroMQ
  • Wrap-Up
    • Online Training
    • Challenge
  • SandBox
Powered by GitBook
On this page
  • Serial Port Protocol
  • Intel Edison
  1. Connectivity
  2. Bluetooth
  3. Laboratory

Serial Port Protocol

PreviousLaboratoryNextLinux and Arduino

Last updated 7 years ago

Serial Port Protocol

Intel Edison

Install Android BlueTerm Application

root@edison:~# rfkill unblock bluetooth
root@edison:~#  bluetoothctl
[NEW] Controller 98:4F:EE:04:21:2A edison [default]
[NEW] Device F8:CF:C5:D4:CB:BC Nexus 6
[bluetooth]# agent KeyboardDisplay
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# scan on
[bluetooth]# scan off
[bluetooth]# pair F8:CF:C5:D4:CB:BC
[bluetooth]# disconnect F8:CF:C5:D4:CB:BC
Attempting to disconnect from F8:CF:C5:D4:CB:BC
Successful disconnected
[bluetooth]# exit
Agent unregistered
[DEL] Controller 98:4F:EE:04:21:2A edison [default]
root@edison:~# rfcomm listen 0 1 &
[1] 400
root@edison:~# Waiting for connection on channel 1

root@edison:~# Connection from F8:CF:C5:D4:CB:BC to /dev/rfcomm0
Press CTRL-C for hangup

Connect from Android device from BlueTerm application

root@edison:~# cat /dev/rfcomm0

Write data from Android device to BlueTerm application

#! /usr/bin/python

import serial
from time import sleep

bluetoothSerial = serial.Serial("/dev/rfcomm0", baudrate=9600)

while True:

    bluetoothSerial.write(str("Hola!"))
    sleep(2)
Turn on/off Intel® Edison Arduino* on board LED via Bluetooth SPP by using the Intel® IoT Developer Kit
Intel® Edison SPP