Linux python serial port example3/7/2024 ![]() ![]() 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.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |