Problème résolu cela venait de la sécurité, c'est en fait du WPA et pas du WPA2 Par contre il faudrait que je code une SocketApp et je ne m'y connais pas énormément si quelqu'un pourrait me filer un petit coup de main ...
Je ne parviens pas à faire fonctionner mon shield WiFi : Cupperhead. J'ai pourtant téléchargé la lib asynclab. J'ai pourtant suivi toutes les etapes suivantes :
Spoiler
Download the software and put it into the right directory as described in the Software section above.
Plug the WiShield into the Arduino board. Leave jumpers in default positions. The LED jumper (JP3) connected and the interrupt jumper (JP2) configured to use the INT0 pin.
Restart the Arduino IDE to build the library and open the WebServer sketch from File->Sketchbook->Examples->Library->WiShield.
The next step involves setting up the wireless configuration parameters like SSID and security for your wireless network. These parameters are defined at the top of the WebServer sketch.
Find out the SSID of your wireless AP/router. You can get it by looking at the configuration setting of the wireless connection on laptop or by logging into you AP/router's config page.
You need to figure out a good IP address to use for your WiShield. For this, you will have to find out the subnet mask and IP address range that your network uses. This can be found on a PC by right-clicking on the network connection icon at the bottom right corner of the taskbar and selecting 'Status'. Click on the Support tab. It might look something like,
IP address : 192.168.1.100
Subnet mask : 255.255.255.0
Default Gateway: 192.168.1.1
We are only interested in getting a good IP address. What the subnet mask specifies is the network address. In the above case, the network address is 192.168.1.xxx and therefore all devices on this network will have IP addresses starting with '192.168.1'. This might be different for your AP. Since the current WiShield does not have support for DHCP you will have to select an IP address starting with this subnet mask. Just make sure you select something that is not used by any other device on your network.
Change the local_ip variable in the sketch to your selected IP address. Change the ssid variable to your network SSID.
The next step is to setup the right security options. The WiShield supports open (no security), WEP, WPA/TKIP-PSK, WPA2/AES-PSK. You might have to look at you AP/router configuration page to get this information unless you already know it. Change the security_type variable to select the appropriate security type. Depending on your security_type selection, you will now have to modify the security_passphrase/wep_keys variable to match you network settings.
The sketch configures WiShield to connect to the AP (infrastructure mode) by default.
The webpage[] array holds the webpage that this WebServer will serve up when requested.
You are now all set to power up the WiShield. Compile the sketch and load it into the Arduino board.
The red LED indicates connection status. Wait for the LED to turn on. The amount of time required to connect to the network varies depending on the security_type setting. If you selected open/WEP it should take 3/4 seconds to connect. If you selected WPA/WPA2, it takes slightly more than 30 seconds as the WiFi device needs to calculate the PSK from the passphrase for use in the security handshake.
Once the red LED turns on, you are ready to talk to the device.
You can try pinging the device by starting a terminal and typing,
$ ping <IP address of WiShield>
For example, $ ping 192.168.1.2 and you should see the WiShield respond to these ping requests
If successful, fire up a browser and enter for example, http://192.168.1.2 and you should see the webpage displayed in your browser window.
Now you are all set to be creative and come up with some interesting applications with the WiShield.
Je suis bloqué à l'étape 13, c'est-à-dire quand la LED WiFi-ON est censée s'allumer...
De toute façon, la arduino en elle même ne nous sert qu'a commander notre pont en H pour la direction des roues, ensuite on a une carte de puissance qui nous permet de commander le moteur principal. Il nous manque que la liaison WiFi pour commander le tout à distance ... Je pourrez vous faire des photos Lundi pas avant
EDIT : C'est plus une simple voiture télécommander par WiFi avec une caméra embarquée qu'un drone