Go to advanced search

by joshmosh
Sun Nov 24, 2013 9:22 pm
Forum: Python
Topic: smbus too high level
Replies: 2
Views: 1554

Re: smbus too high level

Hi Jimer, thanks a bunch for this ! I have wasted lots of hours to get a communication between my Raspi and a ATMega microcontroller over the I2C bus to work with smbus - a nightmare ... By pure chance (or better: luck :) ) I stumbled over your post here. Installed notsmb on my Raspi, fired it up an...
by joshmosh
Fri Sep 20, 2013 4:13 pm
Forum: Other projects
Topic: Airplay Mirroring finally works on Raspberry Pi
Replies: 857
Views: 359104

Re: Airplay Mirroring finally works on Raspberry Pi

Hi, a question: I have an iPhone5, iPad3, ATV3 and two Raspis. One of my Raspis has access to my NAS (WD Life Book), which is amongst other things storage for my videos (most of them mp4 format). To watch the videos, I would like to stream them from my Raspi to the ATV. Would that be possible as wel...
by joshmosh
Wed May 01, 2013 4:08 pm
Forum: Graphics, sound and multimedia
Topic: mpd web radio + chipamp build
Replies: 11
Views: 3432

Re: mpd web radio + chipamp build

Thank you so much !
I will check and very likely order some !

Thank you and have a nice day
Josh
by joshmosh
Wed May 01, 2013 5:20 am
Forum: Graphics, sound and multimedia
Topic: mpd web radio + chipamp build
Replies: 11
Views: 3432

Re: mpd web radio + chipamp build

@digital_archivist: Thank you, that is very kind. However, at this stage of my "research" I think I will start things based on a breadboard design and see, where it leads to. But anyway: thank you for this generous offer. When I have my hands on the chip and had the chance to play with it, I will pe...
by joshmosh
Tue Apr 30, 2013 5:43 pm
Forum: Graphics, sound and multimedia
Topic: mpd web radio + chipamp build
Replies: 11
Views: 3432

Re: mpd web radio + chipamp build

@digital_archivist:
had a look at your link - very interesting. The TDA7313 seems to be an ideal companion for the Raspi. Do you have a source where to buy this chip at a reasonable price (China) ? Where did you buy yours ?

Thanks a lot in advance
Joshi
by joshmosh
Mon Apr 08, 2013 6:55 pm
Forum: Python
Topic: Message passing between Python scripts
Replies: 33
Views: 20872

Re: Message passing between Python scripts

The IP address is just a random one chosen from the range of multicast IP's you can modify it. The question is: do I need to modify it or is any multicast IP ok ? I just looked back at the code I posted and it slightly different than the one I was using last night when I got it working from Raspber...
by joshmosh
Mon Apr 08, 2013 2:14 pm
Forum: Python
Topic: Message passing between Python scripts
Replies: 33
Views: 20872

Re: Message passing between Python scripts

@mefarmer: Your fix did not work for me :-( Nothing on the receiving side, although I responded with an empty message. What bothers me are the IP numbers. Local host is fine, but what about the mcast address ? I have used your udp.py unchanged and also made my calls to producer and consumer without ...
by joshmosh
Mon Apr 08, 2013 5:30 am
Forum: Python
Topic: Message passing between Python scripts
Replies: 33
Views: 20872

Re: Message passing between Python scripts

@mefarmer:
Thank you for all the effort you are putting in :-)

I will give it a try later the day and report back.

Thank you and all the best
Josh
by joshmosh
Sun Apr 07, 2013 3:04 pm
Forum: Python
Topic: Message passing between Python scripts
Replies: 33
Views: 20872

Re: Message passing between Python scripts

@tim: thank you for suggesting solutions for me. But again: rabbitmq needs a broker, an exchange, ... I guess this is quite an overkill for my tiny problem: passing a couple of bytes every other minute from one Raspi to the other. I guess I will stick with my simple and naive solution: one Raspi wri...
by joshmosh
Sat Apr 06, 2013 5:37 pm
Forum: Python
Topic: Message passing between Python scripts
Replies: 33
Views: 20872

Re: Message passing between Python scripts

@timhoffmann: Thank for trying to help, but - in order to use zeromq or pyro, I have to go through a complicated (for my taste) set up or build process. The tool mefarmer provided needs just am import - thats it - the tutorials provided are beyond me - much too complicated stuff. What mefarmer offer...
by joshmosh
Fri Apr 05, 2013 7:38 pm
Forum: Python
Topic: Message passing between Python scripts
Replies: 33
Views: 20872

Re: Message passing between Python scripts

Hi, I have already incorporeted it into my code, but sofar I was not able to get something from one Raspi to the other. The problem might be that I have not modified the IP addresses in your code, only the return thing I mentioned in my previous post. My local IP addresses all have the form 192.168....
by joshmosh
Fri Apr 05, 2013 4:50 pm
Forum: Python
Topic: Message passing between Python scripts
Replies: 33
Views: 20872

Re: Message passing between Python scripts

@mefarmer: May I ask two questions: - since I don't know exactly how to deal with "return (addr, data)" and I don't need addr, can I just modify to "return data" ? - What will happen if the producer is faster than the consumer ? I guess the queue will grow and grow until some limit is reached and th...
by joshmosh
Fri Apr 05, 2013 3:03 pm
Forum: Python
Topic: Message passing between Python scripts
Replies: 33
Views: 20872

Re: Message passing between Python scripts

@mefarmer: thank you for your detailed explanation ! Looks like your code is exactly made for me :-) I will give it a try and report back. @ -rst- : thank you for your help. Since I am aware of the"nature" of UDP, I knew that any asynchronous communication using UDP would need buffering - otherwise ...
by joshmosh
Fri Apr 05, 2013 12:07 pm
Forum: Python
Topic: Message passing between Python scripts
Replies: 33
Views: 20872

Re: Message passing between Python scripts

Sorry if I'm sort of hijacking this thread, but the udp stuff by mefarmer above is very interesting. I have a similar problem, although on a smaller scale. I am collecting data with sensors connected to two Raspis. One of the Raspis is collecting the data and preparing them for web views. Currently,...
by joshmosh
Wed Apr 03, 2013 5:07 am
Forum: Automation, sensing and robotics
Topic: My home / Raspberry Pi / 1wire
Replies: 3
Views: 1844

Re: My home / Raspberry Pi / 1wire

Very nice - I like your neat wiring :-) I have set up something similar, but not so well wired :-( Out of curiosity: what kind of hardware do you use for your 1wire hub ? A particular chip ? For temperature measurement, I guess you are using DS18B20, right ? For humidity you are using what ? I would...
by joshmosh
Tue Mar 19, 2013 2:16 pm
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18950

Re: RPIO: An extension of RPi.GPIO with interrupts, PWM and

The suggestion: currently I need to run my Python code with root privileges. I know that this cannot be avoided, because of the access to the GPIO pins. But perhaps the part which requires root privileges can be sort of isolated ? In the MagPpi magazine issue 7 there is an article dealing with GPIO...
by joshmosh
Tue Mar 19, 2013 9:30 am
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18950

Re: RPIO: An extension of RPi.GPIO with interrupts, PWM and

Hi Chris, it has been quiet on this topic for a while, so I will take the chance to chip in ;) With version 0.10 I am back in the game, because with the new features you have included, it fits very well to my requirements. The core of my project is now working, based on your RPIO - thanks a lot. I h...
by joshmosh
Sat Mar 09, 2013 5:47 am
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18950

Re: RPIO: An extension of RPi.GPIO with interrupt management

Chris, I haven given up the the idea of using your code, sorry. After some reading I learned (at least ist is now my understanding, maybe I am wrong), that I cannot access variables, which are defined in my main program, inside the callback function - but this is what I need. Passing of data between...
by joshmosh
Fri Mar 08, 2013 4:32 pm
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18950

Re: RPIO: An extension of RPi.GPIO with interrupt management

Here is an example code how to do something all 20 seconds: import time from threading import Thread import RPIO ... timeout_in_seconds = 20 def my_background_task(): while True: time.sleep(timeout_in_seconds) # your stuff goes here Thread(target=my_background_task).start() RPIO.wait_for_interrupts...
by joshmosh
Fri Mar 08, 2013 4:11 pm
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18950

Re: RPIO: An extension of RPi.GPIO with interrupt management

There is a different way of doing interrupts without needing to know about threads yourself using RPi.GPIO. Details are here: http://code.google.com/p/raspberry-gpio-python/wiki/Inputs Thank you for trying to help, but what I like in Chris' solution is that I can wait for GPIO interrupts as well as...
by joshmosh
Fri Mar 08, 2013 3:43 pm
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18950

Re: RPIO: An extension of RPi.GPIO with interrupt management

If you want to do something at the same time as waiting for interrupts, you'll need to use a thread. You can also call RPIO.stop_waiting_for_interrupts() from a callback. You should probably only use `stop_waiting_for_interrupts()` when shutting down your program. All this is pretty new to me. Alth...
by joshmosh
Fri Mar 08, 2013 1:56 pm
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18950

Re: RPIO: An extension of RPi.GPIO with interrupt management

Okay now I understand. The solution is this: wait_for_interrupts() does not quit after the timeout, but runs indefinitely (until stop_waiting_for_interrupts()) is called. The timeout is just there to allow your app to quit the wait_for_interrupts() loop with the stop_waiting_for_interrupts() method...
by joshmosh
Fri Mar 08, 2013 1:31 pm
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18950

Re: RPIO: An extension of RPi.GPIO with interrupt management

Thank you for your help and guidance. Since most of my interrupts occur very rarely - at least I hope so: smoke detectors, intruder alarms - I need to do the following: first a call to stop_waiting_for_interrupts(), then wait_for_interrupts(epoll_timeout=60). Is that correct ? Because other way rou...
by joshmosh
Fri Mar 08, 2013 1:09 pm
Forum: Networking and servers
Topic: Calibre
Replies: 10
Views: 5280

Re: Calibre

Huge post bump. I've stopped using Calibre on my Pi. Instead I'm using Owncloud (to synchronize my Calibre Library) and COPS (http://blog.slucas.fr/en/oss/calibre-opds-php-server). It's easier to setup and faster also. I have just had a look at the demo provided - wow ! Up to now, I used calibre on...
by joshmosh
Fri Mar 08, 2013 12:40 pm
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18950

Re: RPIO: An extension of RPi.GPIO with interrupt management

Sorry Chris, another probably silly question: I have setup waitforinterrupt with an epoll_timeout=60, since I want to regain control at least every minute in case nothing else happens. My problem is that the program is stuck in the waitforinterrupt routine. I have included a print statement right a...

Go to advanced search