Jakeler / ble-serial

"RFCOMM for BLE" a UART over Bluetooth low energy (4+) bridge for Linux, Mac and Windows
https://blog.ja-ke.tech/tags/#bluetooth
MIT License
264 stars 37 forks source link

Windows support #16

Closed Jakeler closed 3 years ago

Jakeler commented 3 years ago

Due to multiple requests: investigate if Windows support is possible.

One problem will be the serial interface. AFAIK the pty.openpty()/os.openpty() functions used so far work only on Linux. Maybe some 3rd party driver solution? com0com looks promising, can create COM pairs with custom names - WORKS ~Or ConPTY: https://bugs.python.org/issue41663?~

Also this depends on very much on #5, the current bluepy backend is Linux only, for example bleak is cross platform, but bluezero would be again just Linux. bleak - WORKS

For testing I would need to acquire some hardware with BLE interface (maybe an USB adapter) that runs Windows directly, as a VM won't do it for such hardware access/passthrough? VM with cheap USB adapter - WORKS