Using Bluetooth Console

From MoDe

Using BT Console in Windows.


Using BT Console in Linux (http://crschmidt.net/blog/archives/11/bluetooth-console/).

  Note: Ignore what he says about using taylor-uucp for the linux instructions.
  Once you have a connection, just type "screen /dev/rfcomm0" in another shell.
  Make sure you do sdptool add SP after each boot.
  Note: Make sure you have created /dev/rfcomm0 with mknod -m 666 /dev/rfcomm0 c 216 0.
  And make sure it stays there. On my Debian machine it kept disappearing. 

Using BT Console in Mac OS X (http://www.babilim.co.uk/blog/2004/12/mobile-python-under-mac-os-x.html).

  • Setup pairing "Bluetooth Setup Assistant" in /Applications/Utilities/
  • Setup rs232 port "Bluetooth Serial Utility" in /Applications/Utilities/ (call it btport)
  • In terminal window type "screen /dev/tty.btport"
  • On phone, fire up the btconsol script and pair with the mac
    • "Control-d" will exit the BTConsole and shut down the process on the phone.
    • "Control-a control-backslash" will shut down the 'screen' process.



If you have installed the Pyrepl package, you can start using it by entering command pr().

Back to Python tips and tricks.