connection issue with wifi

New members questions
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

connection issue with wifi

Post 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
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: connection issue with wifi

Post by rimai »

Looks like your router assigned another ip address to your wifi attachment.
Roberto.
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post by Mayur »

ip is same
Attachments
Untitled.png
Untitled.png (23.38 KiB) Viewed 7482 times
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: connection issue with wifi

Post by rimai »

Humm.
Could it be water damage?
Or the cable somehow?
Roberto.
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post 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 ?
Image
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post by Mayur »

ReefAngel client is working fine with usb
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: connection issue with wifi

Post by rimai »

So, we know RA is working fine.
Can you setup the wifi attachment?
Roberto.
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post by Mayur »

yes with the usb cable i was able to setup the wifi unit
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: connection issue with wifi

Post by rimai »

So, maybe the cable between RA and wifi attachment went bad.
Roberto.
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post 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
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: connection issue with wifi

Post by rimai »

Doesn't make sense.
If everything is working....
Can you post the log for the wifi setup?
Roberto.
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post 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
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: connection issue with wifi

Post by rimai »

Yeap. If RA is working and wifi attachment is working, it can only be the cable.
Roberto.
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post by Mayur »

check the attach pic for wiring diagram
still not working
getting error 13: No route to host
Attachments
Screenshot_20171202-093053.png
Screenshot_20171202-093053.png (756.06 KiB) Viewed 6629 times
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: connection issue with wifi

Post by rimai »

Are you sure you didn't change the code?
Roberto.
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post 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
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: connection issue with wifi

Post by rimai »

Open serial monitor at 57600 baud.
Then, manke sure you have Both CR and LF.
Type "GET / HTTP " and click send.
Roberto.
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post 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.
Image
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post 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>
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: connection issue with wifi

Post 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.
Roberto.
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post 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 ?
Image
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post 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
Image
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post 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()
Image
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post by Mayur »

Still the same issue portal not getting update
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: connection issue with wifi

Post by rimai »

Is it just portal updates?
Are you able to connect to the ip address?
Roberto.
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post by Mayur »

Yes I can connect to ip address
192.168.1.100:2000/wifi
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: connection issue with wifi

Post by rimai »

Ok.
So, you need to update the wifi attachment.
http://forum.reefangel.com/viewtopic.php?f=3&t=4601
Roberto.
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post by Mayur »

blue light keep flashing after update
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: connection issue with wifi

Post by rimai »

Did you edit the file with your own ssid and passphrase?
Roberto.
Mayur
Posts: 30
Joined: Mon Mar 02, 2015 3:07 pm

Re: connection issue with wifi

Post by Mayur »

yes

the program keep running in loop
Image
Post Reply