Page 1 of 8

How to setup your wifi attachment

Posted: Sat Oct 08, 2011 6:29 pm
by rimai
You can configure the wifi attachment using the Wifi Utility application that was installed with your Reef Angel Installer, you will be able to easily configure your Reef Angel Wifi Attachment.
  • Connect the USB-TTL cable in any available USB port in your computer
  • Connect the other end on the Reef Angel Wifi Attachment.
    Connection.png
    Connection.png (27.33 KiB) Viewed 67963 times
  • Start the Wifi Utility application.
    Wifi-Utility-Window.png
    Wifi-Utility-Window.png (31.97 KiB) Viewed 67963 times
  • Select a Serial Port.
    Serial-Port.png
    Serial-Port.png (5 KiB) Viewed 67963 times
  • Click the "Connect" Button.
  • Once connected, you will see the application log as shown:
    Connected.png
    Connected.png (9.36 KiB) Viewed 67963 times
  • Type the SSID of your wireless network.
  • Type the PassPhrase of your wireless network. The preferred and recommended security mode is WPA2-PSK with AES encryption.
    Wifi-Settings.png
    Wifi-Settings.png (6.24 KiB) Viewed 67963 times
  • Click the button "Setup Wifi Attachment"
  • Once the application finishes setting up your wifi attachment, you will see the application log as shown:
    Setup.png
    Setup.png (9.05 KiB) Viewed 67963 times
  • Please make note of the ip address. You will need it later. In this example, the IP address is 10.1.10.50 and the port is 2000.
  • You are now ready to upload the Wifi Test Code to ensure everything is working properly. The Wifi Test Code can be found on the Arduino IDE by using menu File->Sketchbook->Example Codes->WifiTestCode
  • Once the code has been uploaded to your Reef Angel Controller, disconnect the USB-TTL cable from it.
  • Connect you wifi attachment to the controller.
    Controller.png
    Controller.png (51.71 KiB) Viewed 67963 times
  • Open your prefered browser and go to http://xxx.xxx.xxx.xxx:xxxx, where xxx.xxx.xxx.xxx:xxxx is the IP address you took note above. In the example above the address would be http://10.1.10.50:2000
  • You will get a web page like this:
    Webserver.png
    Webserver.png (31.57 KiB) Viewed 67963 times
  • Congratulations. Your Reef Angel Attachment is configured.

    Original post was ammended on 04/19/2012
  • To be able to connect remotely to your controller from outside your wifi network, you will need to setup port forwarding on your router. The TCP port you need to forward to your wifi attachment is port 2000.
    Most recent routers have UPnP capability. This utility will try to setup port forwarding automatically on any UPnP capable router that is compatible with the UPnPLib Java.
  • If the utility is successful on setting up port forwarding on your router, you will get a message below:
    UPnP.png
    UPnP.png (13.85 KiB) Viewed 67769 times

Re: How to setup your wifi attachment

Posted: Wed Mar 28, 2012 8:47 pm
by xblueonex77
everything works fine to the point when i put ip adress in browser after putting ip i dont have no respond from browser how to fix that

Re: How to setup your wifi attachment

Posted: Wed Mar 28, 2012 9:04 pm
by rimai
Did you upload the WifiTestCode to RA?
Have you plugged the wifi attachment to RA after uploading the code?
Make sure you have the port after the ip address. By default the port is 2000. So you need :2000 after the ip address.
If you are using IE, you also need to make sure that you have http:// in front of the ip address or IE just won't understand and will think you are trying to search something.

Re: How to setup your wifi attachment

Posted: Thu Mar 29, 2012 6:25 am
by xblueonex77
Yes I did all those things even used google chrome, ie and mozzila will try one more time today

Re: How to setup your wifi attachment

Posted: Thu Mar 29, 2012 4:34 pm
by xblueonex77
did couple times today no results light in wifi adapter is green i have my ip adress from arduino but no web page display after putting my ip adress

Re: How to setup your wifi attachment

Posted: Thu Mar 29, 2012 6:01 pm
by Cruzer
Hello,
Should the interface with the installer look like the tutorial? Mine looks the same as the old one with the same functions. I have recently removed all my earlier reefangel programs and updated to the latest stuff including the new libraries.

Thanks,
Rob

Re: How to setup your wifi attachment

Posted: Fri Mar 30, 2012 8:31 am
by rimai
Yes, the new application looks like the photos above

Re: How to setup your wifi attachment

Posted: Wed Apr 04, 2012 12:25 pm
by danielsn
Hi, also having some problems here..
I could not get "true" values at Associated, auenticated and DHCP, so after many tries pushed teh option "restore factory settings" . Same problem , but also the IP shown now is 0.0.0.0:2000

Any advice much appreciated!

Thanks!!

Re: How to setup your wifi attachment

Posted: Wed Apr 04, 2012 9:21 pm
by rimai
Is your wifi network on WPA2-PSK with AES encryption?
I'd highly suggest using this security scheme.

Re: How to setup your wifi attachment

Posted: Thu Apr 05, 2012 9:01 am
by danielsn
Hi Roberto this is what I have , like is readed from the Belkin Router I´m using:

In the Channel and SSID tab:

SSID > XXXXXXX (7 letters)
SSID Broadcast> Enable (other options : Disabled)
Wireless Mode> Mixed (11b+11g) (other options 11g only, 11b only, off)
Extend range> Disable (other option: enabled)
Protected mode> OFF (other option ON)
WMM Mode> ON (other option OFF)
Turbo mode> Disable (other option Enable)

In the Security tab:

Security Mode: WPA2 only > (other options: WPA/WPA2, WPA only, WEP, disabled)
Authentication: Password(PSK)
Password(PSK) type: Passphrase (8 ^63 characters) > (other options Hex (64 digits)
Password(PSK): xxxxxxxxxxx (11 letters and numbers)
Guest Password(PSK). yyyyyyyyyy (10 letters and numbers)

In the Wifi protected setup (WPS) tab:

Wifi Protected setup (WPS) : enabled

option 3) Manual configurtion method
Network name (SSID): XXXXXXX (7 letters the same as above)
Wireless security: Configured
Network authentication: WPA2+PSK
Data encryption: AES
Network Key (PSK): xxxxxxxxxxx (11 letters and numbers, same as above)

In the Use as access point tab:
Disable


I tried to configure through Wifi_Utility with :

SSID: XXXXXXX
PHASPHRASE/PASSKEY: xxxxxxxxxxx

and get:

Your Reef Angel Wifi Attachment is now configured
*Wifi* Status
Associated: true
Authenticated: false
DHCP: false
Mode: WPA2
IP adress and port: 0.0.0.0:2000 (remember that I used the "Restore Factory Settings" before, and since then the IP changed to this)

and the blue and green leds blinks


Any advice on how to solve this really apreciated

Thanks!

Re: How to setup your wifi attachment

Posted: Thu Apr 05, 2012 9:07 am
by danielsn
I get the same result if use:

SSID: XXXXXXX
PHASPHRASE/PASSKEY: yyyyyyyyyy (the other pass refered as Guest Password(PSK) above 10 letters and numbers)

Re: How to setup your wifi attachment

Posted: Thu Apr 05, 2012 9:18 am
by rimai
I wonder if it has to do with my utility. Sebyte mentioned he was unable to get it going with this app either.
Can you try Dave's app?
https://github.com/davemolton/Graphical ... ves/master

Re: How to setup your wifi attachment

Posted: Thu Apr 05, 2012 10:23 am
by danielsn
Hi Roberto, I tried that again (was the first soft I used before the newer one).
I still cant avoid teh green/blue blinking and the 0.0.0.:2000

There is another number instead of 2000 (I saw someone else used one different )?

I also tried at another pc , downloaded daves app, same result

Thanks!

Re: How to setup your wifi attachment

Posted: Thu Apr 05, 2012 10:42 am
by dmolton
Just a shot in the dark - do you have a MAC address filter on your router?

Re: How to setup your wifi attachment

Posted: Thu Apr 05, 2012 10:55 am
by danielsn
Hi Dave, there is a tab in the router with this info:

MAC adress control

Enable MAC filtering: disable
Access Rule for registered MAC adress: allow
MAC filtering table (up to 32 stations) (a table with ID, MAC address with six positions each row, all in 00)

In the LAN settings of the Router it says:
LAN/WLAN MAC: 00-1C-DF-BF-68-2D
IP address: 192.168.2.1
Subnet mask: 255.255.255.0
DHCP server: enabled

Thanks!

Re: How to setup your wifi attachment

Posted: Thu Apr 05, 2012 12:34 pm
by danielsn
Hi, I have uninstalled all the software and starting to reinstall all again, lets see what happens ...

Re: How to setup your wifi attachment

Posted: Thu Apr 05, 2012 1:28 pm
by danielsn
Hi, reinstalled all but I get the same (now the COM6 port was assigned)


*Wifi* Status
Associated: true
Authenticated: false
DHCP: false
Mode: WPA2
IP adress and port: 0.0.0.0:2000 (remember that I used the "Restore Factory Settings" before, and since then the IP changed to this)

and the blue and green leds blinks


Any idea?

Re: How to setup your wifi attachment

Posted: Fri Apr 06, 2012 8:45 am
by danielsn
Hi Roberto/Dave

I disabled the router Security Mode, and then I was able to set the IP to the wifi attachment and get it working (Client 2.2, and Reef Angel Controller Web Server).
I will try to reset the Security mode again and reset the wifi

Thanks

Re: How to setup your wifi attachment

Posted: Thu Apr 19, 2012 9:49 pm
by rimai
I'm very happy to announce that I was able to implement UPnP on the wifi setup utility.
So, this utility is now capable of setting up port forwarding on any UPnP capable router that is compatible with the UPnPLib Java library.
I've updated the original thread with the addition.

Re: How to setup your wifi attachment

Posted: Sat Apr 21, 2012 5:02 am
by binder
rimai wrote:I'm very happy to announce that I was able to implement UPnP on the wifi setup utility.
So, this utility is now capable of setting up port forwarding on any UPnP capable router that is compatible with the UPnPLib Java library.
I've updated the original thread with the addition.
That's pretty cool. That can help out a lot. :)

Re: How to setup your wifi attachment

Posted: Mon Apr 23, 2012 2:12 pm
by Dboyfx
I am unable to to get an IP address on the Wi-Fi attatchment. It looks like the same issue as above where I get an IP address of 0.0.0.0:2000, Associated: True, Athenticated: true, DHCP: false, Mode: WPA2.

I made sure that the encryption is set to WPA2 PSK AES on my router. I tried to use the Tera Term too but the terminal does will not display any information from the Wifi Attatchment. Can you please assist me? Thanks

Re: How to setup your wifi attachment

Posted: Mon Apr 23, 2012 2:16 pm
by rimai
When using tera term, you need to type $$$ within 1s to enter into config mode, did you do that?
Just to make sure, you do have DHCP enabled in your router, correct?

Re: How to setup your wifi attachment

Posted: Thu May 31, 2012 8:52 pm
by anathema
Looks like I need to find a copy of the wifi test script, it's not in my install where the walkthrough says it is. Is there a copy I could download?

Re: How to setup your wifi attachment

Posted: Thu May 31, 2012 9:40 pm
by rimai
Try downloading the new installer and install the software again.

Re: How to setup your wifi attachment

Posted: Fri Jun 01, 2012 2:09 pm
by anathema
Compile error:

Class twowire does not contain somethign "read" etc. Dunno laptop is downstairs. Any ideas?

Re: How to setup your wifi attachment

Posted: Fri Jun 01, 2012 2:30 pm
by rimai
That's mismatched libraries with the new Arduino IDE.
To clean up your system and have everything fresh, make sure to uninstall any previous version of the RA installer. Then delete the Arduino folder inside Documents folder.
Install the new one.

Re: How to setup your wifi attachment

Posted: Fri Jun 01, 2012 4:08 pm
by anathema
Ok, it finally uploaded, and now my RA screen reads:

No internal memory found.

Re: How to setup your wifi attachment

Posted: Fri Jun 01, 2012 4:19 pm
by rimai
Good!!!
You are in the right path :)
Now, all you need to do is load an internal memory file and you should be good to go :)
Go to menu “File->Sketchbook->Example Codes” and select “InitialInternalMemory”
http://www.reefangel.com/Support.Loadin ... tings.ashx

Re: How to setup your wifi attachment

Posted: Fri Jun 01, 2012 4:52 pm
by anathema
Hmm so that means I shouldn't have pulled it all apart and unscrewed it from the wall... :(

Re: How to setup your wifi attachment

Posted: Fri Jun 01, 2012 5:00 pm
by anathema
In any case, it's starting to appear as if everything got deleted. I did that step, and now it told me I could upload an INO file. So I went to the backup I made (instead of deleting) the old one I was running before, and it won't compile, I assume because the new libraries don't match since I reinstalled everything.

Hmm...