Login |  Register



Welcome
Welcome to engineeringdiy

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Rotary Encoder Carpc Controller
PostPosted: Sun Mar 26, 2017 6:09 am 
Joined: Wed Jul 06, 2016 4:47 pm
Posts: 6
Hi I was told to use the carpc controller to see if i could get my Rotary Encoder working. https://github.com/bboyandru/carpc-controller but not sure where to start. According to the instructions, i am suppose to :

Copy xbmcclient.h inside inc folder before building
./carpc-controller io_config
Check io_config file.

But i am not quite sure how to do this. I am a rookie with the rasberry pi.. Am i suppose to rebuild the carpc software?

any information would be helpful.Thanks in advance,


Report this post
Profile  Offline
 
 Post subject: Re: Rotary Encoder Carpc Controller
PostPosted: Thu May 18, 2017 2:08 pm 
Joined: Thu May 18, 2017 1:24 pm
Posts: 2
Hi, I'm also trying to get controller working, but after few days of struggling and reading all these topics, I'm still without success.

Basically I'm trying to do this in two ways:

1) Add Controller to my own image with installed 15.2 Kodi set to autorun after boot.
I've downloaded carpc-controller from https://github.com/aistodorescu/carpc-controller, added xbmcclient.h to INC folder and compiled them with success by make file.
Controller runs properly:

Code:
sudo ./carpc-controller io_coig
[1] 1290
Starting Events Module
init ok 4
events ok
client ok
Starting Commands Module
init ok 7
commands ok


But still no reaction in Kodi or terminal. There is also no any msg that GPIO Controller was detected in Kodi.
Hardware is working because in CarPC image controller is detected and works in default configuration. Anyway, I wish to run it on my own img because of many problems with CarPC, so my question, what else is required?

I tried to disable I2C, install BCM2835, still nothing.

2) I run Controller with success under CarPC img, but cannot get it working properly with my own settings in io_config.
Default config works good with volume_minus/plus and xbmcbuiltin_PlayerControl(previous/next). But because of missing touch I need "move" buttons.

I left GPIO pins to be sure that this is not a problem, but setting them as KB_left/right/up/down doesn't work for me. I also tried xbmcbuiltin_left/right/enter/back with no reaction.

Any ideas what may be wrong? Or which commands should be used?

io_config is read correctly, because I changed default "working" sets (volume_minus/plus) to both rotaries, and behavior was then as in changed configuration. But cannot set is with others command :(

There is some info, that by default "Radio mode" is enabled and "XBMC mode" must be enabled, but this concerns some RPI_gpio.h configuration which I'm not able to find in newest version, so I assume is obsolete.

PLEASE HELP :)
The best solution for me is to run controller on my own image, but if this is not to achieve, I will use CarPC img, but anyway I need to change rotary command.

Regards
Damian.


Report this post
Profile  Offline
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest

Panel

Top You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Search for:
Jump to:  


suspicion-preferred