Page 1 of 2

connection issue with wifi

Posted: Thu Nov 30, 2017 8:32 am
by Mayur
Hi
i am not able to connect to wifi using pc/android/iphone it was working fine till yestarday

android error= Error 13: host unreachable :192.168.100:2000
iphone error =Unable to process controller data
Google Chrome =This site can’t be reached 192.168.1.100 took too long to respond.ERR_CONNECTION_TIMED_OUT

on wifi attachment green light is blinking

Re: connection issue with wifi

Posted: Thu Nov 30, 2017 10:12 am
by rimai
Looks like your router assigned another ip address to your wifi attachment.

Re: connection issue with wifi

Posted: Thu Nov 30, 2017 10:33 am
by Mayur
ip is same

Re: connection issue with wifi

Posted: Thu Nov 30, 2017 10:48 am
by rimai
Humm.
Could it be water damage?
Or the cable somehow?

Re: connection issue with wifi

Posted: Thu Nov 30, 2017 11:20 am
by Mayur
water damage controller unit or wifi attachment ?
controller is located far from sump no signs of water

how can i check which one is damage ?

Re: connection issue with wifi

Posted: Thu Nov 30, 2017 11:25 am
by Mayur
ReefAngel client is working fine with usb

Re: connection issue with wifi

Posted: Thu Nov 30, 2017 11:35 am
by rimai
So, we know RA is working fine.
Can you setup the wifi attachment?

Re: connection issue with wifi

Posted: Thu Nov 30, 2017 11:37 am
by Mayur
yes with the usb cable i was able to setup the wifi unit

Re: connection issue with wifi

Posted: Thu Nov 30, 2017 11:39 am
by rimai
So, maybe the cable between RA and wifi attachment went bad.

Re: connection issue with wifi

Posted: Thu Nov 30, 2017 11:42 am
by Mayur
just now tryed to connect with the breadboard jumber cable the green light is blinking on wifi attachment but unable to open the 192.168.1.100:2000/wifi

Re: connection issue with wifi

Posted: Thu Nov 30, 2017 11:47 am
by rimai
Doesn't make sense.
If everything is working....
Can you post the log for the wifi setup?

Re: connection issue with wifi

Posted: Thu Nov 30, 2017 11:50 am
by Mayur
Opening Serial Port...
Connected to serial port COM3
> $$$
< CMD
> ls
< ls
<
< FL# SIZ FLAGS
< 2 79680 3 WiFly_GSX-2.36
< 22 1052 10 config
< 23 1052 10 user
< 24 88548 3 NO NAME
< 25 88548 3 wifly-GSX-441-r1057
< 34 83648 3 WiFly_GSX-2.45
< 79 46632 3 wps_app-GSX-131
< 80 66240 3 eap_app-GSX-101
> load user
< 81 74920 3 web_app-GSX-106
< 82 37282 0 web_config.html
< 83 512 0 link.html
< 84 7268 0 logo.png
<
< 107 Free, Boot=25, Backup=24
< <4.41>
< load user
< AOK
< <4.41>
> save
< save
< Storing in config
< <4.41>
> save
< save
< Storing in config
< <4.41>
> set o d ReefAngelWifi
< set o d ReefAngelWifi
< AOK
< <4.41>
< set w l 5
> set w l 5
< AOK
< <4.41>
> set w s iBall-Baton$1
< set w s iBall-Baton$1
< AOK
< <4.41>
> set w p @9224284117@9004077372@
< set w p @9224284117@9004077372@
< AOK
< <4.41>
> set w k 00000000000000000000000000
< set w k 00000000000000000000000000
< AOK
< <4.41>
> set ftp address 198.175.253.161
< set ftp address 198.175.253.161
< AOK
< <4.41>
> save
< save
< Storing in config
< <4.41>
> reboot
< reboot
> $$$
< CMD
< DHCP in 5378ms, lease=604800s
< IF=UP
< DHCP=ON
< IP=192.168.1.100:2000
< NM=255.255.255.0
< GW=192.168.1.1
< Listen on 2000
> show n
< show n
< SSid=iBall-Baton 1
< Chan=9
< Assoc=OK
< Rate=12, 24Mb
< Auth=OK
< Mode=MIXED
< DHCP=OK,renew=453600
< Boot=5439
< Time=FAIL
< Links=1
< <4.41>
> get i
< get i
< IF=UP
< DHCP=ON
< IP=192.168.1.100:2000
< NM=255.255.255.0
< GW=192.168.1.1
< HOST=198.171.134.6:80
< PROTO=TCP,
< MTU=1524
< FLAGS=0x6
< TCPMODE=0x0
< BACKUP=0.0.0.0
< <4.41>
> 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 iB-WRB300N

Port 2000 is now being forwarded to 192.168.1.100

Re: connection issue with wifi

Posted: Thu Nov 30, 2017 11:55 am
by rimai
Yeap. If RA is working and wifi attachment is working, it can only be the cable.

Re: connection issue with wifi

Posted: Fri Dec 01, 2017 9:05 pm
by Mayur
check the attach pic for wiring diagram
still not working
getting error 13: No route to host

Re: connection issue with wifi

Posted: Sat Dec 02, 2017 11:10 am
by rimai
Are you sure you didn't change the code?

Re: connection issue with wifi

Posted: Sat Dec 02, 2017 9:29 pm
by Mayur
code was change 1 week before but it was working fine
how to check if controller is sending data to wifi attachment in serial monitor

Re: connection issue with wifi

Posted: Sat Dec 02, 2017 9:31 pm
by rimai
Open serial monitor at 57600 baud.
Then, manke sure you have Both CR and LF.
Type "GET / HTTP " and click send.

Re: connection issue with wifi

Posted: Sat Dec 02, 2017 9:37 pm
by Mayur
unabe to upload code now

The following features were automatically added:
Watchdog Timer
Version Menu

The following features were detected:
Simple Menu
Binary sketch size: 28,296 bytes (of a 258,048 byte maximum)
C:\Program Files (x86)\Reef Angel Controller\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P\\.\COM3 -b115200 -D -V -Uflash:w:C:\Users\MAYUR\AppData\Local\Temp\build1336863122691777432.tmp\InitialInternalMemory.cpp.hex:i

avrdude: Version 6.0, compiled on Apr 6 2012 at 19:29:19
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf"

Using Port : \\.\COM3
Using Programmer : stk500v2
Overriding Baud Rate : 115200
Rebooting Reef Angel Controller
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done. Thank you.

Re: connection issue with wifi

Posted: Sun Dec 03, 2017 10:40 am
by Mayur
got this in serial monitor

HTTP/1.1 200 OK
Server: ReefAngel
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET
Connection: close
Content-Type: text/html
Content-Length: 41

<h1>Reef Angel Controller Web Server</h1>

Re: connection issue with wifi

Posted: Sun Dec 03, 2017 10:53 am
by rimai
That means the controller is sending data to WiFi attachment.
I'm at a loss why it is not working.
All pieces are working correctly.

Re: connection issue with wifi

Posted: Sun Dec 03, 2017 11:40 am
by Mayur
finally found the issue it was wifi router got it replace with new one later found out the AP Isolation was enable 2 days before it might be the problem

how to check if its sending data to portal ?

Re: connection issue with wifi

Posted: Sun Dec 03, 2017 12:17 pm
by Mayur
Reef Angel wifi address: 192.168.1.100:2000
My reefangelid:
Mayur
Connection Status:
Unreachable Address

Last Update:
6/22/2015, 5:24:13 PM
Displaying data from:
Webbanner database

Re: connection issue with wifi

Posted: Sun Dec 03, 2017 1:00 pm
by Mayur
reefangel client log

*****12/4/2017 1:26:48 AM*****
Message:
The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it has been Aborted.
StackTrace:

Server stack trace:
at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen()
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at ReefAngelWCFListener.IReefAngelCallback.HandleParams(ReefAngelParams paras)
at ReefAngelWCFListener.ReefAngelListener.<>c__DisplayClass10.<SendParams>b__f(Object )

*****12/4/2017 1:27:28 AM*****
Message:
Inside WifiSend:
The underlying connection was closed: An unexpected error occurred on a receive.
StackTrace:
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at System.Net.WebClient.DownloadString(String address)
at ReefAngelWCFListener.ReefAngelListener.WifiSend()

Re: connection issue with wifi

Posted: Thu Dec 07, 2017 11:41 am
by Mayur
Still the same issue portal not getting update

Re: connection issue with wifi

Posted: Thu Dec 07, 2017 11:43 am
by rimai
Is it just portal updates?
Are you able to connect to the ip address?

Re: connection issue with wifi

Posted: Thu Dec 07, 2017 11:49 am
by Mayur
Yes I can connect to ip address
192.168.1.100:2000/wifi

Re: connection issue with wifi

Posted: Thu Dec 07, 2017 12:01 pm
by rimai
Ok.
So, you need to update the wifi attachment.
http://forum.reefangel.com/viewtopic.php?f=3&t=4601

Re: connection issue with wifi

Posted: Thu Dec 07, 2017 12:24 pm
by Mayur
blue light keep flashing after update

Re: connection issue with wifi

Posted: Thu Dec 07, 2017 12:28 pm
by rimai
Did you edit the file with your own ssid and passphrase?

Re: connection issue with wifi

Posted: Thu Dec 07, 2017 12:30 pm
by Mayur
yes

the program keep running in loop