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. For example, there seems to be something like this.Īlthough it is a Japanese article, there is such a trial article.Īlso, if you want to communicate between serial ports even if WSL2 cannot recognize USB serial, this method is also available.Ĭonnecting to serial port (com port) over networkĪnd as you can see from the above explanation, if you want to communicate between the processes of each OS, you can simply use a TCP/IP socket instead of the above mechanism.A tool to connect Bluetooth 4.0+ Low Energy to UART modules and normal PCs/laptops/RaspberryPi.Learn more in the FAQs or in WSL GitHub repo issue on serial support. WSL 2 does not include support for accessing serial ports.Enable USB kernel configuration options for interacting with an Arduino over USBĮxceptions for using WSL 1 rather than WSL 2.Enable CH341 and CP210X USB Serial drivers.According to other answers, it seems that the addition of product functions has made it possible to use USB devices with WSL2.Įspecially in v5.10.93.2, it seems that drivers for two types of USB serial interface chips are built in.