Page 1 of 1

wifi issues

Posted: Wed May 28, 2014 8:46 pm
by martinresi
Hi, Brand new to Reef Angel, just got my RA Plus Unit and Wifi attachment yesterday. All hardware is working correctly and I'm able to load code. I ran wifi setup successfully, uploaded wifi test code, but not able to connect with browser. The setup gave me 1.2.3.4:2000 which doesn't look right. When I connect the wifi to the head unit I see green blinking light, but when I type that address in firefox it just says connecting... then times out. I reran the wifi setup several times, each time I get the same results: 1.2.3.4:2000. When I bring up DHCP Client Table in the router settings, I don't see any reef angel connection. I do notice, however, that when I connect the wifi to the head unit, I can no longer connect to the internet with my macbook pro. I also can't login with ps3 which normally uses wifi as well. Looks like some kind of conflict. After I unplug reef angel wifi and restart the router I'm back up on the internet with Macbook pro and ps3. When I check DHCP client in the router settings, I see macbook pro on 192.168.1.121, but no reef angel, though I also don't see ps3 connection even though I'm logged in--which leads me to believe that reef angel could be up and running but how would I know what internal ip to check? But either way, it's still bringing down my wifi.

I'm using Cisco E3200 router with Windows 7 Desktop and Macbook Pro laptop connected through wifi (when Reef Angel's wifi is not plugged in).

Here's the code I saw when setting up the wifi:

Opening Serial Port...
Verifying speed at 9600 baud
Connected to serial port COM3
> $$$
> set u b 57600
> set s p 0
> save
> reboot
Verifying speed at 57600 baud
Removing connection to COM3
Connected to serial port COM3
> $$$
< CMD
Wifi is communicating at 57600 baud rate

> reboot
< reboot
Removing connection to COM3
---------------------------------------------------------------------
Wifi Attachment Connected to COM3
---------------------------------------------------------------------

Opening Serial Port...
Connected to serial port COM3
> $$$
< CMD
> ls
< ls
<
< FL# SIZ FLAGS
< 2 86328 3 wifly-GSX-400
< 4 74920 3 web_app-GSX-106
< 7 46632 3 wps_app-GSX-131
< 9 66240 3 eap_app-GSX-101
< 11 37282 0 web_config.html
< 21 512 0 link.html
< 22 7268 0 logo.png
< 24 -1 10 config
<
< 169 Free, Boot=2, Backup=2
< <4.00>
> set c c 0
< set c c 0
< AOK
< <4.00>
> set c r 0
< set c r 0
< AOK
< <4.00>
> set c o 0
< set c o 0
< AOK
< <4.00>
> set c i 3
< set c i 3
< AOK
< <4.00>
> set c s 1420
< set c s 1420
< AOK
< <4.00>
> set d n ww.reefangel
< set d n ww.reefangel
< AOK
< <4.00>
> set i h 198.171.134.6
< set i h 198.171.134.6
< AOK
< <4.00>
> set i r 80
< set i r 80
< AOK
< <4.00>
> set i f 0x6
< set i f 0x6
< AOK
< <4.00>
> set w j 1
< set w j 1
< AOK
< <4.00>
> set u m 2
< set u m 2
< AOK
< <4.00>
> set i p 2
< set i p 2
< AOK
< <4.00>
> set o d ReefAngelWifi
< set o d ReefAngelWifi
< AOK
< <4.00>
> set w l 5
< set w l 5
< AOK
< <4.00>
> set w s Todd
< set w s Todd
< AOK
< <4.00>
> set w p b******1
< set w p b******1
< AOK
< <4.00>
> set w k 00000000000000000000000000
< set w k 00000000000000000000000000
< AOK
< <4.00>
> set ftp address 198.175.253.161
< set ftp address 198.175.253.161
< AOK
< <4.00>
> save
< save
< Storing in config
< <4.00>
> reboot
< reboot
> $$$
< CMD
> show n
< show n
< SSid=Todd
< Chan=11
< Assoc=OK
< Rate=12, 24Mb
< Auth=OK
< Mode=MIXED
< DHCP=OK,renew=-6
< Boot=204
< Time=FAIL
< Links=1
< <4.00>
> get i
< get i
< IF=UP
< DHCP=SERVER
< IP=1.2.3.4:2000
< NM=255.255.255.0
< GW=1.2.3.4
< HOST=198.171.134.6:80
< PROTO=TCP,
< MTU=1524
< FLAGS=0x6
< TCPMODE=0x0
< BACKUP=0.0.0.0
< <4.00>
> reboot
< reboot
Removing connection to COM3
---------------------------------------------------------------------
Your Reef Angel Wifi Attachment is now configured with the settings provided.
---------------------------------------------------------------------

If the blue LED is still blinking, it means that the Reef Angel Wifi Attachment could not connect to your wifi network.

Found router Linksys Series Router E3200

Unable to setup port forwarding. This step will have to be done manually. For more information for your specific type of router, please visit ww.portforward

Re: wifi issues

Posted: Thu May 29, 2014 8:14 am
by rimai
Just in case, can you try doing this:
http://forum.reefangel.com/viewtopic.php?f=3&t=4601

Re: wifi issues

Posted: Thu May 29, 2014 10:28 pm
by martinresi
Thanks Roberto, I'll give this a try later on

Re: wifi issues

Posted: Fri May 30, 2014 3:14 am
by martinresi
Here's what tera term put out to the screen, though I don't see any new IP address to try. What next?

CMD
save
Storing in config
<4.00> set wlan ssid Todd
AOK
<4.00> set wlan pass b******1
AOK
<4.00> set option deviceid ReefAngelWifi
AOK
<4.00> set w j 1
AOK
<4.00> set c c 0
AOK
<4.00> set c r 0
AOK
<4.00> set c o 0
AOK
<4.00> set i d 1
AOK
<4.00> set c i 3
AOK
<4.00> set dns name http://reefangel
AOK
<4.00> set i h 198.171.134.6
AOK
<4.00> set i r 80
AOK
<4.00> set i f 0x06
AOK
<4.00> set s t 0x10
AOK
<4.00> set u m 2
AOK
<4.00> set i p 2
AOK
<4.00> set u b 57600
AOK
<4.00> set s p 0
AOK
<4.00> set c s 1420
AOK
<4.00> save
Storing in config
<4.00> save user
Storing in user
<4.00> reboot
*Reboot*CMD
factory RESET
Set Factory Defaults
<4.00> reboot
*Reboot*CMD
set ftp address 198.175.253.161
AOK
<4.00> save
Storing in config
<4.00> set wlan ssid Todd
AOK
<4.00> set wlan pass b******1
AOK
<4.00> set option deviceid ReefAngset w j 1
AOK
<4.00> set c c 0
AOK
<4.00> set c r 0
AOK
<4.00> set c o 0
AOK
<4.00> set i d 1
AOK
<4.00> set c i 3
AOK
<4.00> set dns name http://reefangel
AOK
<4.00> set i h 198.171.134.6
AOK
<4.00> set i r 80
AOK
<4.00> set i f 0x06
AOK
<4.00> set s t 0x10
AOK
<4.00> set u m 2
AOK
<4.00> set i p 2
AOK
<4.00> set u b 57600
AOK
<4.00> set s p 0
AOK
<4.00> set c s 1420
AOK
<4.00> save
Storing in config
<4.00> save user
Storing in user
<4.00> reboot
*Reboot*HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Fri, 30 May 2014 10:08:59 GMT
Connection: close
Content-Length: 35

Re: wifi issues

Posted: Fri May 30, 2014 7:43 am
by rimai
I don't think it worked either.
It seems the router doesn't want to give an address or vice-versa.
Using tera term, if you type $$$ you will go into command mode.
The module will respond with CMD
Then, use this command:
get e
Post the response.
Was this module purchase new?

Re: wifi issues

Posted: Fri May 30, 2014 12:34 pm
by martinresi
Ok thanks. will try that tonight. Also, I'm not sure if I did the above steps correctly toward the end. Wasn't sure whether to have the wifi utility running also? I'm not that great with networking.

Re: wifi issues

Posted: Sat May 31, 2014 1:26 pm
by martinresi
It worked! I'm not sure exactly what I did, but I ran the tera term, then configuration again but this time it assigned an internal IP (Security is set back to WPA2/WPA Mixed mode)

Now I'm getting problems accessing from outside the network. Here's what I've done:

1. turn off Windows Firewall
2. setup port forwarding
app: reef angel
Ext port: 2000
Int port: 2000
Protocol: both (TCP UDP)
IP address: 192.168.1.100 (the ip that works internally)
Enabled: yes

This url brings up the interface: http://192.168.1.100:2000/wifi
When I put http://x.x.x.x:2000/wifi connection times out
where x.x.x.x is the ip my provider assigns to my computer (in router status)

Thanks for all your help!
Todd

Re: wifi issues

Posted: Sat May 31, 2014 2:55 pm
by martinresi
Restarted router and now port forwarding is working (I can see if from outside the network), though there's a new problem. It assigned a different local IP address, and I couldn't see it in the router settings until I unplugged and replugged in the wifi attachment. Is there a way to force it to a specific internal ip? e.g. 192.168.1.121?

Re: wifi issues

Posted: Sat May 31, 2014 3:57 pm
by rimai
Your router should have something for that.
It's called ip reservation. It's based on MAC address.