Skip to content
eadmaster edited this page Aug 6, 2024 · 31 revisions

Bruce also accept command inputs via serial after https://github.com/pr3y/Bruce/pull/84, here are some Serial input commands that Bruce can interact with:

ir, rf, music_player, say, led, power, clock, tone

Most of these commands are compatible with the Flipper Zero CLI.

Sending serial commands

  • via the Arduino IDE Serial Monitor, Putty, or any other serial terminal app
  • via a bash script: echo "say My name is Bruce" | busybox microcom -s 115200 /dev/ttyACM0 -t 1000
  • via a python script
  • from a smartphone using SerialManager
  • via the WebUi "Send Serial" button
  • after starting the webUI, with curl -XPOST "http://bruce.local/cm" -d "cmnd=ir tx nec 04000000 08000000"

Examples

talk to Bruce with

say My name is Bruce

sleep

power sleep

play doom!

music_player doom:d=4,o=5,b=112:16e4,16e4,16e,16e4,16e4,16d,16e4,16e4,16c,16e4,16e4,16a#4,16e4,16e4,16b4,16c,16e4,16e4,16e,16e4,16e4,16d,16e4,16e4,16c,16e4,16e4,a#4,16p,16e4,16e4,16e,16e4,16e4,16d,16e4,16e4,16c,16e4,16e4,16a#4,16e4,16e4,16b4,16c,16e4,16e4,16e,16e4,16e4,16d,16e4,16e4,16c,16e4,16e4,a#4,16p,16a4,16a4,16a,16a4,16a4,16g,16a4,16a4,16f,16a4,16a4,16d#,16a4,16a4,16e,16f,16a4,16a4,16a,16a4,16a4,16g,16a4,16a4,16f,16a4,16a4,d#

turn off my LG TV via a decoded NEC code:

ir tx NEC 04000000 08000000

turn off my LG AC via a RAW IR file (already stored on the FS):

ir tx_from_file AC_LG_SX122CL_off.ir

turn on an smart power socket from a decoded Sub file (already stored on the FS):

subghz tx_from_file plug1_on.sub

execute a badusb script (already stored on the FS):

badusb tx_from_file HelloWorld.txt