Skip to content

feat(jieli): integrate cross-platform flash routing and mode dispatch into tos.py - #769

Merged
maidang-xing merged 2 commits into
tuya:xb/tuyaopen-jlfrom
maidang-xing:md/jieli-flasher-tos-integration
Oct 23, 2026
Merged

maidang-xing merged 2 commits into
tuya:xb/tuyaopen-jlfrom
maidang-xing:md/jieli-flasher-tos-integration

Conversation

@maidang-xing

@maidang-xing maidang-xing commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Integrates JieLi (杰理) cross-platform flashing support into the TuyaOpen SDK tos.py command line interface.

Key Changes

  1. tos.py flash Option Support:
    • Added -m, --mode [auto|usb|serial] option to allow users to select USB or UART flashing mode explicitly (defaults to auto).
  2. Auto-routing & Bridge Execution:
    • Enhanced _try_platform_flash to auto-download and resolve the JIELI platform flash bridge if not already present locally.
    • Forwards mode into environment JIELI_FLASH_MODE so platform bridges (like TuyaOpen-JieLi/platform_flash_bridge.py) can configure the target transport accordingly.
  3. Tests:
    • Updated tests/platform/test_jieli_flash_bridge.py to test both Windows uploader compatibility and Linux/macOS Python flasher invocation.
    • All 17 test_cli_flash.py and 5 test_jieli_flash_bridge.py unit tests passing.

Related PRs (3-Repository Delivery)

… into tos.py

- Add -m/--mode [auto|usb|serial] option to tos.py flash command
- Enhance _try_platform_flash to auto-download JIELI platform bridge if not yet present
- Forward flash mode to environment (JIELI_FLASH_MODE) for bridge dispatch
- Update tests/platform/test_jieli_flash_bridge.py to test Linux Python flasher invocation
- Works in tandem with TuyaOpen-JieLi#24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant