petrockblog / controlblockservice Goto Github PK
View Code? Open in Web Editor NEWThis is the driver for the ControlBlock, a power switch and input/output/gameapd gadget for the Raspberry Pi
This is the driver for the ControlBlock, a power switch and input/output/gameapd gadget for the Raspberry Pi
When finishing the build script the pi shuts down and now every time it boots it shuts down....
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!
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...
I keep getting an error that I'm missing "CMakelists.txt" file when i try to run the following command:
mkdir build && cd build && cmake ..
My ControlBlock version is 1.6 and I am trying to install it on a Raspberry Pi 3 with RetroPie 4.4.
See user feedback:
ok, found it. It is a pi2 problem. I had to enable tree support.
sudo raspi-config
under Advanced Options - enable Device Tree
Reboot.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.