Go to advanced search

by trouch
Thu Jan 10, 2013 9:55 am
Forum: Java
Topic: Java GPIO Frequency Benchmarks
Replies: 35
Views: 21135

Re: Java GPIO Frequency Benchmarks

I bet if you invoke a native loop from Java you will see the same frequency results as my pure native test while the loop is running. You just have the pay for the initial overhead of Java and JNI to invoke the loop. Probably negligible. If there any real need in your project for super hi-speed fre...
by trouch
Wed Jan 09, 2013 11:31 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

hjschlager wrote:Hello,

I installed 0.5.1 webiopi on the Raspberry Pi, what I need to do to convert to 0.5.3?

Thank you
simply follow install instructions
download, extract, run setup.sh
by trouch
Wed Jan 09, 2013 11:11 pm
Forum: Java
Topic: Java GPIO Frequency Benchmarks
Replies: 35
Views: 21135

Re: Java GPIO Frequency Benchmarks

One issue to point out (as you noted) is that the Pi4J library uses JNI to access the WiringPi native C library which incurs intrinsic JNI overhead when converting from Java Strings to Native C function calls as is done in JNI, that in turn slows down the Java GPIO benchmark measurement. thanks for...
by trouch
Wed Jan 09, 2013 8:27 pm
Forum: Java
Topic: Java GPIO Frequency Benchmarks
Replies: 35
Views: 21135

Re: Java GPIO Frequency Benchmarks

thanks for precisions. I also choose to include native code in webiopi to get a full GPIO access through registers I recently made some bench with java too, and I'm considering porting webiopi server to java. But there is a big difference between 150KHz and 7Mhz ! How is compiled the native part ? I...
by trouch
Wed Jan 09, 2013 7:26 pm
Forum: Java
Topic: Java GPIO Frequency Benchmarks
Replies: 35
Views: 21135

Re: Java GPIO Frequency Benchmarks

I see Pi4J relies on WiringPi for handling GPIO.
As WiringPi can use both SoC registers and GPIO driver, can you tell me which mode is used for your tests ?
by trouch
Wed Jan 09, 2013 7:17 pm
Forum: Français
Topic: Raspberry & Kinect
Replies: 3
Views: 3808

Re: Raspberry & Kinect

Bonjour Limmy, tu aurai pu te retenir de poster un second sujet après avoir répondu ici... Je ne suis pas sûr qu'il soit possible d'utiliser le kinect sur RPi Tout d'abord, le portage linux du kinect utilise GLX, et donc OpenGL full. A ma connaissance, le RPi ne supporte que OpenGL ES, il faut donc ...
by trouch
Wed Jan 09, 2013 9:19 am
Forum: Français
Topic: Entrée/Sortie I/0
Replies: 16
Views: 3919

Re: Entrée/Sortie I/0

hé oui, on ne fait pas les même choses avec un arduino et un raspberrypi. l'arduino a de très bonnes capacités d'interfacage bas niveau et permet de faire du temps réel, mais a une capacité de calcul limité le raspberry a une plus grande capacité de calcul, mais est plus limité sur l'interfacage bas...
by trouch
Wed Jan 09, 2013 8:24 am
Forum: Python
Topic: How to access data from two serial ports simulataneously
Replies: 4
Views: 2739

Re: How to access data from two serial ports simulataneously

with the code snippet I gave, you can quickly adapt your code to use 2 serial line... import... ser0 = serial.Serial('/dev/ttyACM0',9600) ser1 = serial.Serial('/dev/ttyACM1',9600) ... line=ser0.readline().rstrip() ... insert in mysql line=ser1.readline().rstrip() ... insert in mysql I suggest adding...
by trouch
Wed Jan 09, 2013 8:19 am
Forum: Français
Topic: Entrée/Sortie I/0
Replies: 16
Views: 3919

Re: Entrée/Sortie I/0

Il n'y a pas d'entrée analogique sur le Raspberry Pi.

Pour fournir des entrées analogique, on utilise un composant en plus.
Par exemple un MCP3008 avec un bus SPI.

Le capteur que tu propose dispose lui d'une interface 1-Wire.
il existe un driver 1-wire pour le raspberry pi
by trouch
Tue Jan 08, 2013 9:58 pm
Forum: Français
Topic: Entrée/Sortie I/0
Replies: 16
Views: 3919

Re: Entrée/Sortie I/0

Sinon sans faire de mofication, si je ne me trompe pas, on peut utiliser comme on le souhaite les GPIO de couleur vert et violet? Pouvez vous m'expliquer le projet WebIOPi? oui, vert et violet. pour WebIOPi, j'avais fait une présentation en français ici : http://www.raspberrypi.org/phpBB3/viewtopic...
by trouch
Tue Jan 08, 2013 9:05 pm
Forum: Français
Topic: Entrée/Sortie I/0
Replies: 16
Views: 3919

Re: Entrée/Sortie I/0

Je suppose que oui mais ce n’est pas fait pour, je ne m’y risquerais pas si j’étais toi. gros loool la datasheet du SoC specifie les registres à changer pour activer/désactiver les fonctions spéciales des GPIO (UART, I2C, SPI, PWM, 1-Wire) les GPIO SoC sont toutes prévues pour être utilisées comme ...
by trouch
Tue Jan 08, 2013 8:30 pm
Forum: Français
Topic: Entrée/Sortie I/0
Replies: 16
Views: 3919

Re: Entrée/Sortie I/0

tobie123 wrote:j'ai vu sur un site qu'il n'était pas très bon d'utiliser les autres sortie que celle prévue.
source ? pour les détails...

voir là pour le brochage du Pi : http://elinux.org/Rpi_Low-level_peripherals
by trouch
Tue Jan 08, 2013 8:28 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

Hi guys, 0.5.3 has been released on both google code and pistore ! changelog : Added board revision REST URI (submitted by Andreas Riegg) Added encrypted passwd file to store credentials used for HTTP authentication Added webiopi-passwd command-line program to generate passwd file Moved demo to exam...
by trouch
Tue Jan 08, 2013 6:39 pm
Forum: Français
Topic: Entrée/Sortie I/0
Replies: 16
Views: 3919

Re: Entrée/Sortie I/0

par défaut il n'y a que l'UART0 et l'I2C1 qui sont activés au niveau du SoC. I2C1 est activé même si le pilote n'est pas chargé. ca nous fait donc 15 GPIO disponibles sur une REV1, et 13+4 sur une REV2. ca laisse de quoi voir venir. si tu manipule les registres en C, tu pourras désactiver UART0 et I...
by trouch
Tue Jan 08, 2013 9:25 am
Forum: Python
Topic: How to access data from two serial ports simulataneously
Replies: 4
Views: 2739

Re: How to access data from two serial ports simulataneously

you basically have to instantiate two Serial object, each pointing to a different /dev/tty the code then depend what you intend to do... a serial-to-serial bridge or use two serial devices ? import serial s0 = serial.Serial('/dev/ttyACM0', 9600) s1 = serial.Serial('/dev/ttyACM1', 9600) while True: c...
by trouch
Sun Jan 06, 2013 7:19 pm
Forum: Python
Topic: "while loop problem" + GPIO
Replies: 10
Views: 4417

Re: "while loop problem" + GPIO

1) GPIO 23 is setup as OUTPUT. by default, an output is set to LOW/False. 2) the while True loop will always pass 3) giving 1, the if test will always pass 4) there is no end condition to bread the loop 5) there is nothing to change the GPIO state and change the if result so the program will go into...
by trouch
Sun Jan 06, 2013 7:10 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 i slide my pwm to 0. Is that the same as on/ off or not? Because i want to set my ledstring on/off, with a pwm slider to fade the leds. But i dont think i need the on/off switch because fade to 0 is off? And how comes that my ledstring is a littlebit flickering ? This is because it's a softwar...
by trouch
Sun Jan 06, 2013 6:19 pm
Forum: Français
Topic: rpi-update
Replies: 18
Views: 2762

Re: rpi-update

nazouille wrote:Par contre, je te conseille de supprimer le dossier /root/.rpi-firmware/ avant de lancer la mise à jour pour éviter un bug lors de l'update du repos git.
merci du tuyau !
by trouch
Sat Jan 05, 2013 2:51 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: WebIOPi : control your Pi’s GPIO with a browser
Replies: 318
Views: 182225

Re: WebIOPi and CGI?

Hi All I'd really like to be able to have the WebIOPi web server (which is inherited from BaseHTTPServer) run a python script for me. That is, I've got a CGI script which I'd like to be able to call from a web browser. The problem is that BaseHTTPServer doesn't do CGI. I've tried changing the Handl...
by trouch
Fri Jan 04, 2013 9:42 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

Piminiuser wrote:How can i get version 0.5.2? I downloaded 0.5.1 from the google code page. And i cant acces the pi market because i only have putty, and no vnc server installed.
sorry, please wait few days for the next release, which will be available on both google code and pistore.
stay tuned ;)
by trouch
Fri Jan 04, 2013 4:42 pm
Forum: Français
Topic: Processus de boot Raspberry Pi
Replies: 2
Views: 712

Re: Processus de boot Raspberry Pi

je penses que tu vas vite être bloqué... la fondation a dû signer un NDA sur certaines partie de la datasheet du SoC, et une bonne partie du firmware (ce qui inclue le bootloader), a ses sources fermées. tu devrais plutot prendre un AVR ou un PIC si tu veux faire ce genre de chose ou directement le ...
by trouch
Fri Jan 04, 2013 2:12 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

Yay! https://www.youtube.com/watch?v=-XASCYYhr-g Now i am looking to put the html page into a android app. Possible? You can use a WebView in your android app to embed the web page : http://developer.android.com/reference/android/webkit/WebView.html Or you can use WebIOPi REST interface to make you...
by trouch
Thu Jan 03, 2013 10:21 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 I am with Apple iPad or iPhone I have to use GPIO problems. Are of this help? Need to work more on this, some controls don't work great, but I have difficulties to reproduces browsers problems... Do you have a few suggestions to? On my side, the basic header app works fine on my iPhone 4 with ...
by trouch
Thu Jan 03, 2013 7:47 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

Hello, please excuse my bad english! I work with your WebIOPI Project. Have achieved very good results. When I work with a browser (Firefox, Midori and ....) with Mouse everything is in order. When I am with Apple iPad or iPhone I have to use GPIO problems. Are of this help? Need to work more on th...
by trouch
Thu Jan 03, 2013 7:46 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

nico_68 wrote: Is it possible de change the state of GPIO11 (to high level) before script demo.py initialization ?

Thank's for your answer
No, this is a hardware or a firmware issue.
But you can add an inverter (7404 for instance) between the GPIO output and your relay input to change the logic.

Go to advanced search