packet mode incorrect should produce a better error message
if you don't change packet_mode to False in bglib_test_scanner.py (and others) then it will send a packet that causes the BLED112B USB dongle to reset itself (which you can see happening in /var/log/syslog - it reattaches itself to USB) and you get the following error message
$python bglib_test_scanner.py
Traceback (most recent call last):
File "bglib_test_scanner.py", line 117, in
it would be good if this could be trapped in bglib and raise a more informative error message pointing to the packet mode flag as a possible cause.