Giter VIP home page Giter VIP logo

tuya-serial's Introduction

Pioneer WYT UART reverse engineering mess

This is a bunch of random stuff -- serial captures, notes, utility programs -- that I've been using to reverse engineer the serial protocol between the Pioneer WYT-series mini-split air conditioners and the Tuya-based WiFi module that they use.

The goal is to be able to control the air conditioner remotely without needing any Tuya cloud services.

Files/directories

  • msgs binary captures of commands (or responses for files ending in _response) sent to the air conditioner
  • logic - captures in Salae Logic 2 format of serial communication
  • boot-log - console log from the ESP8266-based Tuya module booting
  • cmds - hex dumps of various commands sent to the air conditioner (C) and responses (A)
  • header - a map of all bytes in a response message from the air conditioner, and their meanings. This will be the most up to date source of information. Many things may be wrong or missing.
  • monitor.py - a script used to log the serial communications to a file before I started using a dedicated esp-link board to capture serial data continuously
  • power-on-sequence - some observations on what the system does as it powers on. This has been somewhat helpful for decoding some of the less-commonly changed fields.
  • tuya.ksy - a Kaitai Struct file that describes the structure of the command messages sent to the air conditioner. I haven't been putting as much effort into commands as responses, so it may be a little out of date. Works with files in msgs.
  • tuya-response.ksy - a Kaitai Struct file that describes the structure of the response messages from the air conditioner. The header file is probably more up to date, but this is probably more readable, and it's nice to use for visualization. Works with response files in msgs.

Stuff I'm pretty sure about

  • Serial protocol is 9600-8-E-1
  • Each command sends the entire state of the air conditioner, not just the fields that have changed

See also

tuya-serial's People

Contributors

squidpickles avatar

Stargazers

Adam Powers avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.