Giter VIP home page Giter VIP logo

opendr-remote's Introduction

OpenDR-Remote

This project was started in response to the lack of Linux support for the DR-22WL audio record, and lack of a public API. The project aims to reverse engineer the network protocol that is used to control the recorder and demostrate how the protocol can be used.

The reverse engineering is being done at the network layer, using wireshark on a rooted Android device.

The Hardware

The audio recorder is a high quality wav/mp3 recorder, with WiFi capabilities provided by a GainSpan micro. The device acts as a WiFi AP and issues the connecting PC with 192.168.1.22 (using 192.168.1.1 for itself).

All control is done through a TCP/IP connection to port 8010.

I own a DR-22WL, there is also a DR-44WL (4 channel) recorder which is known to use the same/similar protocol. If anyone wants to provide logs from one of those we could analyse the differences.

Packets

Construction:

  • All packets start with 0x44, 0x52 ("DR") and are nominally 14 bytes long.
  • Packets are padded with 0x00 upto complete size.
  • The 3rd byte can signal it is an extended packet and the additional number of bytes is in the 13th+14th byte. (...:05:68 = 0x0568 = 1384, add 14 to give 1398 byte packet). Long packets seen with 0xF0, 0x40.
  • Some TCP/IP packets contain multiple Tascam packets, this may just be an articfact of wireshark. None the less they seem to be treated same as seperate packets.

Packets are either 'status' which are automatically issued (for display updates/streaming audio/etc), or 'command/response' pairs. There are some pcap files in the 'pcap' directory and annotated text files explaining them.

$ tshark -r shark_dump_1430448755.pcap -Tfields -e frame.number -e ip.src
-e ip.dst -e tcp.len -e data.data > shark_dump_1430448755.pcap.txt

Start of Play - Demo App

The project includes a sample add ('openDR-remote.py') which can do basic communication with the recorded. The app can decode some of the updates from the device and issue some commands (play, record and stop).

This is a good enough start, but I'd like to take if further.

opendr-remote's People

Contributors

mungewell avatar

Watchers

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