-
-
Notifications
You must be signed in to change notification settings - Fork 204
Serial
Bruce also accept command inputs via serial port after https://github.com/pr3y/Bruce/pull/84.
List of supported commands:
ir, subghz, music_player, say, led, power, clock, tone, gpio, i2c, storage, settings, factory_reset
Most of these commands are compatible with the Flipper Zero CLI.
- via the Arduino IDE Serial Monitor, Putty, or any other serial terminal app
- via the terminal/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 "SerialCmd" button
- after starting the WebUI, with
curl -XPOST "http://bruce.local/cm" -d "cmnd=say My name is Bruce"
text-to-speech (req. a speaker):
say My name is Bruce
play doom music (req. a speaker):
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#
sleep
power sleep
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 a remote-controlled power socket from a decoded Sub file (already stored on the FS):
subghz tx_from_file plug1_on.sub
send a custom rf command (format {3-byte hex_key} {frequency} {te} {count}
):
subghz tx 445533 433920000 174 10
execute a badusb script (already stored on the FS):
badusb tx_from_file HelloWorld.txt
set a pin in (digital) output mode (only on unused GPIO pins, using Arduino pinMode()
):
gpio mode 2 0
sets the a pin's value (only on unused GPIO pins, using Arduino digitalWrite()
):
gpio set 2 0
read a pin's value (only on unused GPIO pins, using Arduino digitalRead()
):
gpio read 2
read a file content, and output on the console:
storage read BruceRF/bruce_0.sub
list files on the root (SD card if present, LittleFS otherwise):
storage list /
delete a file:
storage remove BruceRF/bruce_0.sub
scan connected I2C devieces:
i2c
View currently-active settings:
settings
Change the radio module setting:
settings RfModule 1
Reset settings to the default:
factory_reset
hi im from undersea
- Home
- Building From Source
- Develop with Bruce
- Installing
- Interface
- bruce.conf
- Serial
- BLE
- IR
- RF
- RFID
- WiFi
- FM
- Others
- FAQ
- (This is not a bug, is a permission feature for repo because the community was helping the wiki but thanks "bug hunter" ;))