Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ v1] client: Add scripts to start cs Initiator/reflector
@ 2026-07-16  6:48 Naga Bhavani Akella
  2026-07-16  8:49 ` [BlueZ,v1] " bluez.test.bot
  2026-07-16 16:40 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Naga Bhavani Akella @ 2026-07-16  6:48 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: luiz.dentz, quic_mohamull, quic_hbandi, quic_anubhavg,
	Naga Bhavani Akella

This adds sample bluetoothctl scripts for cs initiator/
reflector.

cs-initiator.bt sets up and runs a CS measurement as an Initiator
cs-reflector.bt sets up the device to respond as a Reflector
---
 client/scripts/cs-initiator.bt | 23 +++++++++++++++++++++++
 client/scripts/cs-reflector.bt | 22 ++++++++++++++++++++++
 2 files changed, 45 insertions(+)
 create mode 100644 client/scripts/cs-initiator.bt
 create mode 100644 client/scripts/cs-reflector.bt

diff --git a/client/scripts/cs-initiator.bt b/client/scripts/cs-initiator.bt
new file mode 100644
index 000000000..7ba1a5644
--- /dev/null
+++ b/client/scripts/cs-initiator.bt
@@ -0,0 +1,23 @@
+power on
+#
+# Start scanning to discover the reflector
+#
+scan le
+#
+# Search for reflector device, stop scanning
+# and connect to the address.
+#
+# scan off
+# connect AA:BB:CC:DD:EE:FF
+#
+# Set CS config paramteres for Initiator (optional)
+#
+# cs.role 0x01
+# cs.main_mode_type 2
+# cs.phy 0x02
+# cs.sync_phy 0x02
+#
+# Start CS Procedure with the mandatory paramteres
+# remote device's address and timeout value in seconds
+#
+# cs.start AA:BB:CC:DD:EE:FF 30
diff --git a/client/scripts/cs-reflector.bt b/client/scripts/cs-reflector.bt
new file mode 100644
index 000000000..e43357cc7
--- /dev/null
+++ b/client/scripts/cs-reflector.bt
@@ -0,0 +1,22 @@
+power on
+#
+# Start advertising to be discovered by initiator
+#
+advertise on
+#
+# After the Initiator creates connection and
+# device is connected, stop advertising
+#
+# advertise off
+#
+# Set the CS Default settings Parameters for reflector
+#
+# cs.role 0x02
+# cs.sync_ant_sel 0xFF
+# cs.max_tx_power 20
+#
+# Start CS Procedure, note that in reflector role
+# we don't start the procedure, only the set default values
+# will be updated
+#
+# cs.start
-- 


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-16 16:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-16  6:48 [PATCH BlueZ v1] client: Add scripts to start cs Initiator/reflector Naga Bhavani Akella
2026-07-16  8:49 ` [BlueZ,v1] " bluez.test.bot
2026-07-16 16:40 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox