Advertisement
metalx1000

SDR RTL 433mhz decoding

Sep 17th, 2019 (edited)
865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. #install rtl-433
  2. sudo apt install rtl-433
  3.  
  4. #start rtl_433
  5. #rtl_433 -Ga
  6. rtl_433 -a 4
  7.  
  8. #press button on transmitter
  9. #Binary output example: 00000001 01010101 11001100
  10. #convert to decimal with bc
  11. echo 'ibase=2;obase=A;000000010101010111000011'|bc
  12.  
  13. #in BASH with echo (does not work in zsh)
  14. echo "$((2#000000010101010111000011))"
  15.  
  16. #output from example is 87491
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement