Uni-Wireless-Sync: wireless control toolkit for TL fan receivers
Project description
Uni Wireless Sync CLI
Warning: This is an unofficial implementation; use at your own risk.
Overview
Uni Wireless Sync (UWS) CLI provides command-line utilities for managing Uni Fan Wireless controllers, L-Wireless receivers, and LCD panels. Each command re-opens the required USB or RF device so no background daemon is left running, and lower-level HID/USB errors are surfaced directly to simplify scripting.
Supported Hardware
- UNI FAN TL wireless LCD panels
- UNI FAN TL wireless fans (non-LCD)
Other Uni Fan series are currently not supported.
Features
- Discover TL LCD USB devices and 2.4 GHz wireless fan controllers.
- Query LCD firmware and handshake data.
- Send JPEG frames or apply control settings (mode, brightness, rotation) to the LCD.
- Keep the wireless TL LCD awake by emitting periodic handshakes.
- List wireless fan receivers with metadata (MAC, master MAC, channel, device type, fan speeds, PWM targets).
- List detected master controller MAC addresses to simplify binding workflows.
- Send one-shot PWM commands to TL wireless fans over the 2.4 GHz dongle.
- Bind or unbind wireless receivers against the active master controller.
- Toggle motherboard PWM sync mode for one receiver or every bound receiver.
- Broadcast static RGB payloads to wireless receivers (experimental).
Fan wiring modes
- USB + PWM header (controller mode): leave the receiver's PWM lead unplugged; control every fan via
uws fan set-fan(any PWM value 0-255). The reportedfan_pwmreflects your last command. - USB-only (receiver mode, PWM lead connected to motherboard): the CLI writes a PWM of 6 (e.g.
uws fan pwm-sync --mode receiver --all) so the receiver keeps syncing to the motherboard header. Sending anotherset-fanvalue at any time overrides the sync immediately; writing 6 (or re-running the sync helper) hands control back to the motherboard.
FAQ
- How do I mount the L-Wireless Controller (v1)? The thicker dongle supports two options: (1) plug into a USB Type-A port—this wiring is equivalent to
pwm-syncreceiver mode; (2) plug the header into a 9-pin USB port on the motherboard—this matchespwm-synccontroller mode, but 2.4 GHz signal strength drops because the dongle lives inside the chassis. - How do I mount the L-Wireless Controller (v2)? The slimmer dongle only supports option (1): plug into a USB Type-A port (
pwm-syncreceiver mode). - What is the difference between L-Wireless Receiver (v1) and (v2)? Receiver v1 exposes both USB and a 2-pin PWM lead only on the LCD bundle (USB powers the LCD, the 2-pin lead powers fans); non-LCD receiver v1 units ship with just the 2-pin power lead. Receiver v2 adds a dedicated 4-pin PWM header; plug it into the motherboard when you want it to mirror the motherboard duty cycle via
pwm-sync --mode receiver, or leave it disconnected and the controller will keep driving fan PWM directly.
Installation
pip install uwscli
# optional image helpers
pip install uwscli[images]
python -m venv .venv
source .venv/bin/activate
pip install -e .
# or include dev extras
pip install -e .[dev]
Usage Examples
# Enumerate connected devices
uws lcd list
uws fan list
# Display operations
uws lcd info --serial <usb-serial>
uws lcd send-jpg --serial <usb-serial> --file assets/sample_lcd.jpg
uws lcd keep-alive --serial <usb-serial> --interval 5
# Fan receiver operations
uws fan set-fan --mac aa:bb:cc:dd:ee:ff --pwm 120 # direct PWM control
uws fan pwm-sync --mode receiver --all # receiver mode receivers (sets PWM=6)
uws fan bind --mac aa:bb:cc:dd:ee:ff
uws fan unbind --mac aa:bb:cc:dd:ee:ff
uws fan pwm-sync --all
uws fan pwm-sync --mac aa:bb:cc:dd:ee:ff --once
uws lcd list prints JSON rows that include a serial field—copy that value when invoking other LCD subcommands.
Command Reference
uws lcd list– enumerate TL LCD devices and show their USB serial numbers.uws lcd info --serial <usb-serial>– read firmware and handshake data.uws lcd send-jpg --serial <usb-serial> --file <image.jpg>– stream a JPEG asset.uws lcd keep-alive --serial <usb-serial> [--interval seconds]– emit periodic handshakes to prevent the wireless panel from dimming.uws lcd control --serial <usb-serial> [--mode show-jpg|show-app-sync|lcd-test] [--jpg-index N] [--brightness 0-100] [--fps N] [--rotation 0|90|180|270] [--test-color R,G,B]– send anLCDControlSettingpayload.uws fan list– fetch a snapshot of bound wireless receivers via the RF receiver.uws fan list-masters– enumerate master controllers and associated wireless receivers.uws fan set-fan --mac <aa:bb:..> --pwm <0-255> [--sequence-index N]– send a single shot PWM update to one receiver;--allbroadcasts to every bound receiver.uws fan pwm-sync --mac|--all [--mode controller|receiver] [--interval seconds] [--once] [--sequence-index N]– synchronize receiver speeds.controllerpolls motherboard PWM and replays the value via RF (--interval/--onceapply here);receiversets PWM=6 so the receiver tracks the motherboard header directly (--sequence-indexapplies here).uws fan set-led --mac <aa:bb:..> --mode static|rainbow|frames|effect|random-effect– apply wireless LED effects (experimental).
uws fan set-led modes
-
static: requires--color R,G,Bor--color-list R,G,B;...to paint the LED strip once. -
rainbow: procedural rainbow; optional--frames N(default 24) and--interval-ms(default 50). -
frames: feed a JSON animation via--frames-file. Each frame is an array of[R, G, B]triples; seeexamples/tl_frames_sample.jsonfor a minimal illustration (the CLI will pad or truncate per device LED count). -
effect: drives any of the 29 TL presets. Choose an effect with--effect <name>(e.g.twinkle,meteor_shower), adjust brightness 0‑255 via--effect-brightness, pick direction with--effect-direction 0|1, and select which segment to update using--effect-scope front|behind|both(defaultboth). -
random-effect: picks a random preset each time; accepts the same brightness/direction/scope flags aseffect.Available effect names (case-insensitive):
rainbow,rainbow_morph,static_color,breathing,runway,meteor,color_cycle,staggered,tide,mixing,voice,door,render,ripple,reflect,tail_chasing,paint,ping_pong,stack,cover_cycle,wave,racing,lottery,intertwine,meteor_shower,collide,electric_current,kaleidoscope,twinkle.Example:
uws fan set-led --mac aa:bb:cc:dd:ee:ff --mode effect --effect twinkle --effect-brightness 180 --effect-direction 0 --effect-scope bothRandom example:
uws fan set-led --mac aa:bb:cc:dd:ee:ff --mode random-effect --effect-brightness 200 --effect-direction 1 -
uws fan pwm-sync --all|--mac [--mode controller|receiver] [--interval seconds] [--once] [--sequence-index N]– defaultreceivermode writes PWM=6 so fans follow the motherboard;controllermode polls and replays PWM from the motherboard (supports--interval/--oncefor polling loops;--sequence-indexapplies to receiver broadcasts).
Dependencies
hidapi(viahid) for TL LCD HID access.pyusbfor the RF sender/receiver WinUSB endpoints.pycryptodomexfor the DES-CBC transport used by the wireless LCD receiver.Pillowis optional for JPEG frame validation.
Each command expects the TL LCD USB display (vendor 0x04FC or 0x1CBE) and the wireless transmitter/receiver pair (vendor 0x0416) to be attached when the command executes.
Linux udev Permissions
Grant non-root access to the TL wireless dongles by adding /etc/udev/rules.d/99-tl-wireless.rules with:
# Winbond SLV3RX_V1.6 (receiver)
SUBSYSTEM=="usb", ATTR{idVendor}=="0416", ATTR{idProduct}=="8041", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb_device", ATTR{idVendor}=="0416", ATTR{idProduct}=="8041", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb_interface", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="8041", MODE="0666", GROUP="plugdev"
# Winbond SLV3TX_V1.6 (transmitter)
SUBSYSTEM=="usb", ATTR{idVendor}=="0416", ATTR{idProduct}=="8040", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb_device", ATTR{idVendor}=="0416", ATTR{idProduct}=="8040", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb_interface", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="8040", MODE="0666", GROUP="plugdev"
# Luminary Micro TL-LCD Wireless-1.3
SUBSYSTEM=="usb", ATTR{idVendor}=="1cbe", ATTR{idProduct}=="0006", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb_device", ATTR{idVendor}=="1cbe", ATTR{idProduct}=="0006", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb_interface", ATTRS{idVendor}=="1cbe", ATTRS{idProduct}=="0006", MODE="0666", GROUP="plugdev"
Reload the rules and replug the dongles:
sudo udevadm control --reload
sudo udevadm trigger
License
Released under the MIT License. See LICENSE for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uwscli-0.4.0.tar.gz.
File metadata
- Download URL: uwscli-0.4.0.tar.gz
- Upload date:
- Size: 60.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae0fd9cb2050b56546c74908265591d10b8c779c96d0b84bf4618e6eddf58217
|
|
| MD5 |
62f482a2d85f5beb1f83e56aeca6b033
|
|
| BLAKE2b-256 |
70ab63d074854f8215d68738034840ce9af62f2696c0e067f270c10cfdd956bd
|
File details
Details for the file uwscli-0.4.0-py3-none-any.whl.
File metadata
- Download URL: uwscli-0.4.0-py3-none-any.whl
- Upload date:
- Size: 50.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b979afcd196a858abeddfc1d1764eaae6da134854aad0c4f73f7868637f900cc
|
|
| MD5 |
5cffb23ca73e95b604d5db720adb8592
|
|
| BLAKE2b-256 |
79de66d5a6b2f4ec9df3fc3dd606780b6097327a7895b32f9ee47bc90cebcadf
|