Giter Site home page Giter Site logo

petrockblog / controlblockservice Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 6.0 3.19 MB

This is the driver for the ControlBlock, a power switch and input/output/gameapd gadget for the Raspberry Pi

Home Page: http://blog.petrockblock.com/gadgets/controlblock-power-switch-game-controllers-and-io-for-the-raspberry-pi/

Makefile 6.23% Shell 31.30% C++ 36.49% CMake 1.37% Python 8.52% HTML 0.06% C 15.96% M4 0.07%

controlblockservice's People

Contributors

ftheile avatar petrockblog avatar t0mg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

controlblockservice's Issues

Install broken

When finishing the build script the pi shuts down and now every time it boots it shuts down....

"Something went wrong during writing"

I picked up an rPi3 and a controlblock, and I'm running the latest version of RetroPie (woo!)

However, I'm having issues with running the controlblock binary. :(

Here's my config file. I've got one SNES controller connected:

{
    "input" : {
            "gamepadtype" : "snes",
            "singlegamepad" : false
    },
    "powerswitch" : {
        "activated" : false
    }

}

Here's what I get when I run the binary in my tty:

[ControlBlock] Gamepadtype = SNES gamepads
[ControlBlock] Single gamepad mode ACTIVATED
[ControlBlock] Shutdown is DEACTIVATED
Something went wrong during writing. regAddress: a, data: 20
Something went wrong during writing. regAddress: a, data: 20
Something went wrong during writing. regAddress: 1, data: 0
Something went wrong during writing. regAddress: 1, data: 0
Something went wrong during writing. regAddress: 1, data: 0
Something went wrong during writing. regAddress: 1, data: 8
Something went wrong during writing. regAddress: d, data: 8
Something went wrong during writing. regAddress: 13, data: 80
Something went wrong during writing. regAddress: 13, data: 80
Something went wrong during writing. regAddress: 13, data: 80
Something went wrong during writing. regAddress: 1, data: 8
Something went wrong during writing. regAddress: 1, data: 8
Something went wrong during writing. regAddress: 1, data: 8
Something went wrong during writing. regAddress: 1, data: c
Something went wrong during writing. regAddress: d, data: c
Something went wrong during writing. regAddress: 13, data: c0
Something went wrong during writing. regAddress: 13, data: c0
Something went wrong during writing. regAddress: 13, data: c0
Something went wrong during writing. regAddress: 13, data: e0
Something went wrong during writing. regAddress: 13, data: c0
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13, data: 13
Something went wrong during writing. regAddress: 13, data: 3
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13, data: 13
Something went wrong during writing. regAddress: 13, data: 3
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13, data: 13
Something went wrong during writing. regAddress: 13, data: 3
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13, data: 13
Something went wrong during writing. regAddress: 13, data: 3
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13, data: 13
Something went wrong during writing. regAddress: 13, data: 3
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13, data: 13
Something went wrong during writing. regAddress: 13, data: 3
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13, data: 13
Something went wrong during writing. regAddress: 13, data: 3
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13, data: 13
Something went wrong during writing. regAddress: 13, data: 3
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13
Something went wrong during writing. regAddress: 13, data: 13
Something went wrong during writing. regAddress: 13, data: 3

The last 4 lines repeat endlessly. The controller is unresponsive.

Compilation/installation went without a hitch. Could this be that I wired it poorly? The wires on these cheap chinese extension cords were very tiny...

Let me know if there's any more info I can provide. I'm very excited to get this working.

Thanks!

player 2 not working

tried the jstest /dev/input/js1, but inputs dont work, i've check the connections with a multimeter and it all checks out, same as player 1, also the controlblock config is in arcade mode...

Install on fresh RetroPi fails to start service

I started with a fresh RetroPi v4.5 install on SD card. Using Raspberry Pi 3 B+ and ControlBlock v1.6 board. After booting the system for the first time, (and letting the file system expand, turning on SSH, changing the password, etc.) I ran
wget -O - https://raw.githubusercontent.com/petrockblog/ControlBlockService/master/install.sh | sudo bash
which looked fine until the second to last line of output:

Scanning dependencies of target installservice
[100%] Installing service.
Making sure that i2c-dev is contained in /etc/modules ...
Making sure that uinput is contained in /etc/modules ...
Making sure that the ARM I2C Interface is enabled via /boot/config.txt ...
[100%] Built target installservice
/home/pi/ControlBlockService
[SUCCESS] The ControlBlock driver binary is installed
[ERROR] The ControlBlock service is not running
You can find the configuration file at /etc/controlblockconfig.cfg.

I'm not sure what's wrong here, or how to proceed with debugging it.

If I reboot, the controlblockservice shows as not started (using the 'service' command), and I can't get it to start.

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.