Note: on Windows 10+ you still have to disable secure boot for it to work. This is required because unsigned drivers can not be installed anymore. I decided to use the open source com0com Null-modem emulator, downloaded from here as signed version. Windows does not have a builtin feature to create virtual serial ports (like Linux does), so it is required to install a additional driver. Or installed with pip from the current directory: $ pip install. The package can be either started directly with -m: $ python -m ble_serial ARGUMENTS # Main tool = ble-serial $ python -m ble_serial.scan # BLE scan = ble-scan $ python -m ble_tup_com0com # Windows only setup = ble-com-setup Make sure the dependencies are installed, I recommend to use a virtualenv like this: $ python -m venv ble-venv You can clone the repository with: $ git clone On Linux/Mac you are ready now and can directly jump to the usage section!įor Windows follow the additional steps below. Now you should have 2 new scripts: ble-scan and the main ble-serial. The software is written completely in Python and packaged as module, so it can be easily installed with pip: $ pip install ble-serial ![]() ![]() Installation Standard (via Python Package Index) On Windows it provides a COM port, similar to the Microsoft "Standard Serial over Bluetooth" (a driver which exists since Windows XP and unsurprisingly also does not support BLE standards). It fulfills the same purpose as rfcomm bind for the old Bluetooth 2.0, creating a virtual serial port in /dev/pts/x, which makes it usable with any terminal or application. A tool to connect Bluetooth 4.0+ Low Energy to UART modules and normal PCs/laptops/RaspberryPi.
0 Comments
Leave a Reply. |