Giter Club home page Giter Club logo

i2-tester's Introduction

i2-tester - Controller spoofing firmware for input integrity measurements

This is a firmware to upload to a Raspberry Pi Pico in order to create a device to test input integrity.

You should connect a GCC plug to it (check pico-rectangle for longer explanation, I assume here you're familiar with this stuff, and basics of coding) and then you'll be able to configure the code in main.cpp to make the Gamecube controller enter certain states at precise intervals. This is more of a 'notepad' kind of project at the moment. Alternative useful code is commented or deactivated via macros.

By default, I have it enter Y then A 34 frame lengths apart (the DK test). You should then output the audio of your Switch to your PC, ideally via a HDMI capture card ($15), though a direct line in works too (but has slight noise).

You'll then need to analyze the output (python file attached).

You'll see in addition to the GCC state changes, there are GPIO changes. This is here to test pro controllers. Testing pro controllers is significantly more difficult. You'll need to take them apart, wire the data lines to 2 buttons, and connect the ground. You must also not charge the pro con while you're testing or inputs go to shit (somehow). Not in a timing way, in a voltage way (don't worry about normal usage with it charging).

The EMULATE_PLAYER_BEHAVIOUR controls the 'randomness' of the timing. When it's off the code does the perfect input. But when it's on it allows you to test a more realistic scenario: what's the success rate if the player accuracy is a normal law centered on the perfect timing so that they succeed X% of the time ?

Note this is done by sweeping over [0 -> 1] (starting at 0.5) as an argument to the inverse normal law cumulative distribution function. So you must only take into account a block of measures that's a multiple of the number of measures in one sweep to have meaningful results. (By default this is 200)

i2-tester's People

Contributors

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