Giter Club home page Giter Club logo

oase-wireshark's Introduction

oase-wireshark

Wireshark LUA script for analysing Oase UDP traffic

For my home automation project I wanted to be able to send commands directly to Oase FM Master. To make this happen I wrote LUA script for Wireshark to analyze the communication.

The controller operates on UDP port 5959 and it came out to be quite simple...

Basicly all what I need is to turn on/off the outlets which could be done with following command

5c 23 4f 41 0d 00 00 00 02 0b 00 c4 00 00 00 00 04 00 00 00 00 00 00 00 00 64 02 01 ff
xx xx xx xx .............................................................................. magic string
            ll hh ........................................................................ data length
                        ?? ............................................................... 
                           xx ............................................................ sequence number
                              xx ......................................................... direction (0x00 - to controller; 0xff - from controller)
                                 xx ...................................................... command code
                                    ?? ?? ?? ?? ..........................................
                                                xx xx xx xx xx xx xx xx xx xx xx xx xx ... command data (of hh*256+ll length)
                                                
                                                                                 xx ...... for 0xc4 command here is the outlet index (0 .. 4, where 4 is dimmer)
                                                                                    xx ... for 0xc4 command here is the instensity (for dimer) or on (0xff) / off (0x00) value to be set

Enjoy ;)

oase-wireshark's People

Contributors

wwwenca 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.