Advertisement
Guest User

Lista_komend_SISK

a guest
Jan 23rd, 2019
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. --------- Bluetooth config & pairing -------------
  2. rfkill list
  3. rfkill unlock bluetooth
  4. hciconfig
  5. hciconfig hci0 up
  6. Bluetoothctls
  7. power on
  8. Pairable on
  9. discoverable on
  10. agent on
  11. default-agent
  12. scan on
  13. pair <address>
  14. trust <address>
  15.  
  16. -------------- WiFi config -----------------
  17.  
  18. nano /etc/network/interfaces
  19. ifdown wlan0
  20. ifup wlan0
  21. Ping XXXXXX
  22.  
  23. ------------------------------- Instalacja pakietów -------------------------------------
  24. apt-get install python-setuptools python-dev libbluetooth-dev python-pip -y --fix-missing
  25. apt-get install blueman bluez-utils bluez bluetooth -y --fix-missing
  26.  
  27. -------------- Pobranie pybluez -----------------
  28. ping github.com
  29. git clone https://github.com/karulis/pybluez.git
  30. cd pybluez/
  31. python setup.py install
  32.  
  33. --------------Serial-Over-Bluetooth-----------------
  34. cd ..
  35. nano bluetooth_adv
  36. hciconfig hci0 piscan
  37. Adptool add SP
  38. chmod +x bluetooth_adv
  39. ./bluetooth_adv
  40. python pybluez/examples/simple/rfcomm-server.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement