Go to advanced search

by trouch
Fri Jan 25, 2013 10:50 pm
Forum: C/C++
Topic: wiringPi and GPIO interrupt handling
Replies: 18
Views: 13873

Re: wiringPi and GPIO interrupt handling

I'm learning as well. You might find my kernel interrupt test code useful. You can find it here http://www.zen90294.zen.co.uk/kgpioitest.tar.gz For sure, thanks for sharing ! WebIOPi will definitely need interrupts when I'll replace HTTP repetitive polling with WebSockets and Long-Polling But I don...
by trouch
Fri Jan 25, 2013 10:43 pm
Forum: C/C++
Topic: Gpio in kernel module.
Replies: 1
Views: 1582

Re: Gpio in kernel module.

A good thing to do should be a joystick driver that will use your module !
I will take a deeper look on your code later.
by trouch
Fri Jan 25, 2013 10:37 pm
Forum: C/C++
Topic: wiringPi and GPIO interrupt handling
Replies: 18
Views: 13873

Re: wiringPi and GPIO interrupt handling

software interrupts in Pi linux use a workaround by polling the "edge detection" registers on the SoC. This is not how I understand it. On page 113 of the BCM2835-ARM-Peripherals.pdf You can see that an irq is allocated to each "bank" of gpio pins. ( irq numbers 49-52 inclusive ) Absolutely not. Ed...
by trouch
Fri Jan 25, 2013 1:18 pm
Forum: C/C++
Topic: wiringPi and GPIO interrupt handling
Replies: 18
Views: 13873

Re: wiringPi and GPIO interrupt handling

from my understanding of BCM 2835 Datasheet, there is NO hardware interrupt triggered by GPIOs.
the only hardware interrupts are a timer and a watch dog one.
software interrupts in Pi linux use a workaround by polling the "edge detection" registers on the SoC.
by trouch
Thu Jan 24, 2013 2:55 pm
Forum: Français
Topic: CAS en France et le manuel Raspberry Pi écrite par le CAS
Replies: 64
Views: 75922

Re: CAS en France et le manuel Raspberry Pi écrite par le CA

Briareos wrote:Eric, es-tu toujours d'accord pour la traduction proposée ? Si tu me fournis les textes au format brut, je pourrais me charger de les réincorporer dans In-Design si tu le souhaites.
Toujours d'accord ;)
J'attaque d'ici ce week end.
by trouch
Wed Jan 23, 2013 9:01 am
Forum: Français
Topic: Performances de transmission selon ext4 ou ntfs-3G
Replies: 25
Views: 8593

Re: Performances de transmission selon ext4 ou ntfs-3G

bonjour Le systeme de fichier NTFS est un format propriétaire à microsoft et fermé. l'implémentation qui est faite dans linux provient de retro ingénierie. ca marche, mais ce n'est pas la panacée. il y a encore quelques temps, il était simplement impossible d'ecrire sur un disque NTFS depuis linux !...
by trouch
Tue Jan 22, 2013 1:32 pm
Forum: Français
Topic: CAS en France et le manuel Raspberry Pi écrite par le CAS
Replies: 64
Views: 75922

Re: CAS en France et le manuel Raspberry Pi écrite par le CA

Pour l'instant, je penses qu'il faut se concentrer sur la traduction du contenu. Pour la mise en page, s'il faut respecter le format initial, peut être que l'éditeur de la version originale voudra bien s'en charger. Dans mes souvenirs d'utilisation d'indesign, il est possible de référencer des conte...
by trouch
Tue Jan 22, 2013 10:51 am
Forum: Français
Topic: CAS en France et le manuel Raspberry Pi écrite par le CAS
Replies: 64
Views: 75922

Re: CAS en France et le manuel Raspberry Pi écrite par le CA

NB : Pour les non anglophones, je vais m'efforcer d'apporter les réponses dans les deux langues sur ce topic, le sujet le justifiant. Bonjour Jean-Philippe, C'est surtout le sous-forum dans lequel nous somme qui justifie l'usage du Francais, puisqu'il s'agit de la communauté Francaise... Par ailleu...
by trouch
Mon Jan 21, 2013 2:55 pm
Forum: Français
Topic: Erreur Netatalk
Replies: 2
Views: 741

Re: Erreur Netatalk

disque plein ?

Code: Select all

df -h
by trouch
Fri Jan 18, 2013 4:16 pm
Forum: Français
Topic: Démarrage impossible
Replies: 2
Views: 647

Re: Démarrage impossible

tu aurais du faire un "raspi-config" avant comme indiqué sur la console...
ca permet en plus de configurer le démarrage automatique du desktop
by trouch
Fri Jan 18, 2013 3:36 pm
Forum: Java
Topic: Javascript/HTML Buttons... Help!
Replies: 4
Views: 3844

Re: Javascript/HTML Buttons... Help!

it work better without the src attribute, the Javascript console now throw error :
"Uncaught ReferenceError: button1 is not defined"

replace

Code: Select all

$("#cell1").append(button1);
with

Code: Select all

$("#cell1").append(button);
also add before </script> :

Code: Select all

};
by trouch
Fri Jan 18, 2013 2:42 pm
Forum: Java
Topic: Javascript/HTML Buttons... Help!
Replies: 4
Views: 3844

Re: Javascript/HTML Buttons... Help!

I'm sorry but... Wrong section, Java and Javascript are totally different things ! Your error, which is not present on your post, but we can see looking source code of given url : <script type="text/javascript" src="/webiopi.js"></script> <script type="text/javascript" src="/webiopi.js"> webiopi().r...
by trouch
Fri Jan 18, 2013 9:18 am
Forum: Français
Topic: [debutant]probleme gpio
Replies: 2
Views: 936

Re: [debutant]probleme gpio

ton RuntimeWarning n'est pas forcément grave. RPi.GPIO suppose que tes GPIO sont en INPUT au lancement du programme. Il suffit que ton programme laisse une GPIO en OUTPUT pour que tu ais le warning au lancement suivant. Pour éviter cela, il faut toujours réinitialiser l'état de tes GPIO à la fin du ...
by trouch
Wed Jan 16, 2013 1:35 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: WebIOPi : control your Pi’s GPIO with a browser
Replies: 318
Views: 182225

Re: WebIOPi : control your Pi’s GPIO with a browser

guys, can you please move to http://groups.google.com/group/webiopi
it will be clearer as this thread is growing and growing...
thanks
by trouch
Wed Jan 16, 2013 1:35 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: WebIOPi : control your Pi’s GPIO with a browser
Replies: 318
Views: 182225

Re: WebIOPi : control your Pi’s GPIO with a browser

I can't seem to change the username and password. Typing webiopi-passwd -h sudo webiopi-passwd gives me 'command not found'. please give me the result of this command : sudo ls -l /usr/bin/webiopi* Is it possible for the login to be in a browser window instead of a popup. I guess you installed webi...
by trouch
Tue Jan 15, 2013 7:49 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: WebIOPi : control your Pi’s GPIO with a browser
Replies: 318
Views: 182225

Re: WebIOPi : control your Pi’s GPIO with a browser

Yeah this is akward. :roll: When I made my firewall rule, I made it to LAN>Wan, istead of making it Wan>LAN. Fixing this, and now everything is working fine! Again, big thanks to you! EDIT; Well, not. I can now access to owncloud, but not to webiopi. I am not sure why is that? I have made port forv...
by trouch
Tue Jan 15, 2013 6:07 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: WebIOPi : control your Pi’s GPIO with a browser
Replies: 318
Views: 182225

Re: WebIOPi : control your Pi’s GPIO with a browser

to be clear and avoid misunderstood. port forwarding works in WAN->LAN direction. You router receive from Internet a packet for a given port. It look up in its table to see if it has to forward the packet to a lan ip:port. you can post a picture of your router config but this is not a webiopi issue,...
by trouch
Tue Jan 15, 2013 3:50 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: WebIOPi : control your Pi’s GPIO with a browser
Replies: 318
Views: 182225

Re: WebIOPi : control your Pi’s GPIO with a browser

If your Pi is on 8000 then you need to forward 8000 to your Pis IP, then use :8000 after your no-ip address. you don't necesserly need to use to use the same port. take in example I have two Pi Pi-1 : 192.168.1.11 Pi-2 : 192.168.1.12 Both of them run webiopi on port 8000, so from my home I use : Pi...
by trouch
Tue Jan 15, 2013 3:35 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: WebIOPi : control your Pi’s GPIO with a browser
Replies: 318
Views: 182225

Re: WebIOPi : control your Pi’s GPIO with a browser

when accessing from outside, you have to add the port in the url corresponding to the port you forwarded. for instance, if I forward port 1234 to raspberrypi port 8000 (webiopi), i will need to hit http://myuser.no-ip.com: 1234 /webiopi/ rather http://localraspbIP:8000/webiopi/ you will do at home. ...
by trouch
Tue Jan 15, 2013 2:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: WebIOPi : control your Pi’s GPIO with a browser
Replies: 318
Views: 182225

Re: WebIOPi : control your Pi’s GPIO with a browser

I want 9 buttons in a square but can't figure out how to format it. This is out of scope of WebIOPi, it's rather a HTML and CSS question. you can use tables for instance for the HTML body, example with 2x2 table <body> <table> <tr> <td id="cell1"></td> <td id="cell2"></td> </tr> <tr> <td id="cell3"...
by trouch
Tue Jan 15, 2013 10:08 am
Forum: Advanced users
Topic: Accessing Raspberry Pi's music over internet on an iPhone
Replies: 10
Views: 10635

Re: Accessing Raspberry Pi's music over internet on an iPhon

DLNA is built on top of UPnP. UPnP uses broadcasting for service discovery. Broadcast packets are not routed between your wan and lan interfaces on your router. I suggest installing some VPN server at home, then use the VPN client functionnalities of the iPhone. Doing that, you will be connected to ...
by trouch
Mon Jan 14, 2013 10:34 am
Forum: Java
Topic: a quick performance comparison of java on raspbian
Replies: 39
Views: 41032

Re: a quick performance comparison of java on raspbian

Given the maturity of our Java port to ARM and the Java toolchain, and the speed advantage over Python it would IMHO be good for everyone if Java had a more prominent place in the RPi community. I totally agree ! But even if I am a C/Java developer prior to Python, this one has some advantages for ...
by trouch
Sun Jan 13, 2013 9:02 pm
Forum: Networking and servers
Topic: Accessing my RPi web server when I change ISP
Replies: 8
Views: 2636

Re: Accessing my RPi web server when I change ISP

Do you actually get a host name like xyz123.virginmedia.com when you sign up? I can't work out whether it's just the IP address that can vary with dynamic addresses or if the concept of an actual hostname doesn't exist? you will have whatyouwant.no-ip.com you can also buy your own domain and set it...
by trouch
Sun Jan 13, 2013 8:49 pm
Forum: Networking and servers
Topic: Accessing my RPi web server when I change ISP
Replies: 8
Views: 2636

Re: Accessing my RPi web server when I change ISP

you can use a dynamic dns:
http://www.no-ip.com/
http://dyn.com/dns/

it requires a client running on your pi that will detect IP change then update DNS record on your dynamic dns provider.
there is also some routers which provide that feature to avoid installing the client.
by trouch
Sun Jan 13, 2013 8:24 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: WebIOPi : control your Pi’s GPIO with a browser
Replies: 318
Views: 182225

Re: WebIOPi : control your Pi’s GPIO with a browser

I should use port 80 which is the well known HTTP port, but it's used for other http server that can ben installed on the Pi so I needed another port. Using a port > 1024 avoid to be detected by many IP scanner (which often test ports < 1024) 8000 is just 80 with two more zeros It's totally up to yo...

Go to advanced search