Bluetooth: Classic: SPP Shell

This document describes how to run the Bluetooth Classic SPP functionality. The spp command exposes the Bluetooth Classic SPP Shell commands.

Commands

The spp commands:

uart:~$ spp
spp - Bluetooth SPP sh commands
Subcommands:
  register_with_channel  : <channel>
  register_with_uuid     : <bt-uuid16|bt-uuid32|bt-uuid128>
  connect_by_channel     : <channel>
  connect_by_uuid        : <bt-uuid16|bt-uuid32|bt-uuid128>
  send                   : [length of packet(s)]
  disconnect             : [none]

Server Register

uart:~$ spp register_with_channel 9
SPP: server registered (channel=9)

Connect

The ACL connection should be established before creating the SPP connection.

uart:~$ spp register_with_channel 9
SPP: server registered (channel=9)
SPP: accepted incoming connection (conn=0x20004dc8)
SPP: connected (ep=0x20000d20, channel=9)

Send Data

uart:~$ spp send 5
SPP: tx data (len=5)

Disconnect

uart:~$ spp disconnect
SPP: disconnecting...
SPP: disconnected (ep=0x20000d20)