Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] XBMC blocks GPIO usage
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: XBMC blocks GPIO usage
12th Sep, 2013, 10:58 PM
Post: #1
hpeter Offline
Registered
Posts: 4
Joined: Sep 2013
Reputation: 0
XBMC blocks GPIO usage
Hi guys,

I'm using XBian 1.0 Beta 1.1 on a Raspberry Pi (Model B Rev. 2) and searched the FAQ, tried iRC and asked for help on G+ without any outcome. With a 433MHz transmitter connected to the GPIOs on the board I like to control my power sockets. This works flawless if XBMC isn't running. But somehow XBMC seems to use the GPIOs too. While it's running I cannot emit my signals like XBMC is blocking my request for some reason. Is there any implementation or applied patch which I have to disable within the media center software to control the GPIOs?

My last thought was, that there may be a timing problem since XBMC uses the CPU excessively.

Thanks in advance,
Peter

PS: the attachment contains the code for controlling the transmitter

edit: adding the attachment failed. Location is now https://www.dropbox.com/s/5ciim5sryrnmap6/elro.py
Find all posts by this user
Quote this message in a reply
13th Sep, 2013, 12:16 AM
Post: #2
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: XBMC blocks GPIO usage
you forgot the attachment.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
13th Sep, 2013, 12:33 AM
Post: #3
hpeter Offline
Registered
Posts: 4
Joined: Sep 2013
Reputation: 0
RE: XBMC blocks GPIO usage
(13th Sep, 2013 12:16 AM)mk01 Wrote:  you forgot the attachment.

Right Undecided You can find the python script at https://www.dropbox.com/s/5ciim5sryrnmap6/elro.py
Find all posts by this user
Quote this message in a reply
13th Sep, 2013, 01:59 AM
Post: #4
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: XBMC blocks GPIO usage
Just use http://www.pilight.org. Works perfectly on XBian and with Elro.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
13th Sep, 2013, 02:38 AM
Post: #5
hpeter Offline
Registered
Posts: 4
Joined: Sep 2013
Reputation: 0
RE: XBMC blocks GPIO usage
(13th Sep, 2013 01:59 AM)CurlyMo Wrote:  Just use http://www.pilight.org. Works perfectly on XBian and with Elro.

Seems like a very flexible but big solution. I found another approach that works!! Problems with timing after all.

Code:
# ...
repeat = 24 # Number of transmissions
pulselength = 60 # microseconds
# ...

credits: with ice cream at http://www.raspberrypi.org/phpBB3/viewtopic.php?f=32&t=32177
Find all posts by this user
Quote this message in a reply
13th Sep, 2013, 03:41 AM
Post: #6
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: XBMC blocks GPIO usage
Don't know why pilight should be big? Uses as good as no CPU resources when idle. Has a footprint of only 1.5mb and does everything you want but better. Even works perfectly in receiving codes.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
13th Sep, 2013, 05:02 AM
Post: #7
hpeter Offline
Registered
Posts: 4
Joined: Sep 2013
Reputation: 0
RE: XBMC blocks GPIO usage
(13th Sep, 2013 03:41 AM)CurlyMo Wrote:  Don't know why pilight should be big? Uses as good as no CPU resources when idle. Has a footprint of only 1.5mb and does everything you want but better. Even works perfectly in receiving codes.

Of course, it has a small footprint, but I like keeping it low-level. After a while with pilight, I have to admit that this is a great way of doing things. But I also haven't had much luck so far. No signals at all.

Despite new challenges, thanks for your replies, they helped me a lot.
Find all posts by this user
Quote this message in a reply
14th Sep, 2013, 04:33 AM
Post: #8
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: XBMC blocks GPIO usage
@hpeter - as the "Problem" has been fixed can you change the status to Solved - Tnx

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th May, 2025, 03:55 AM Powered By MyBB, © 2002-2025 MyBB Group.