some testcode for bluetooth stuff, thanks to marcan.