Wifi Attachment Issue & Question

Expansion modules and attachments
Post Reply
matt_longview
Posts: 15
Joined: Mon Dec 26, 2011 4:01 pm

Wifi Attachment Issue & Question

Post by matt_longview »

Using the wifi graphical utility.

After inputting my settings I choose "Save Settings" and the module displays a slow green blinking light. However, after clicking "view wifi settings" the green light changes to a fast blinking light and it displays:

Code: Select all

CMD
get ip

IF=UP
DHCP=ON
IP=0.0.0.0:2000
NM=0.0.0.0
GW=0.0.0.0
HOST=198.171.134.6:80
PROTO=TCP,
MTU=1460
FLAGS=0x7
BACKUP=0.0.0.0
<2.19> get w

SSID=2WIRE994
Chan=0
ExtAnt=0
Join=1
Auth=OPEN
Mask=0x1fff
Rate=12, 24 Mb
Linkmon=0
Passphrase=k7emk7usakc7ile
<2.19> get u

Baudrate=57600
Flow=0x0
Mode=0x2

Another question. Following along with the wifi attachment manual under "Using the Default Web Server" it says "Let's load a simple code to accept web connections." I tried to verify just that piece of code and run into the error 'Class ReefAngelClass' has no member named 'StandardGUI'.

Here's the upper and lower sections:

Code: Select all

#include <Wire.h>
#include <EEPROM.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <NokiaLCD.h>
#include <ReefAngel.h>
void setup()
{
ReefAngel.Init();
}
void loop()
{
ReefAngel.StandardGUI();
}

Code: Select all

In file included from sketch_jan01a.cpp:7:
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:27:31: error: ReefAngel_Globals.h: No such file or directory
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:28:66: error: ReefAngel_EEPROM.h: No such file or directory
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:30:32: error: ReefAngel_NokiaLCD.h: No such file or directory
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:31:27: error: ReefAngel_ATO.h: No such file or directory
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:32:32: error: ReefAngel_Joystick.h: No such file or directory
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:33:27: error: ReefAngel_LED.h: No such file or directory
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:34:34: error: ReefAngel_TempSensor.h: No such file or directory
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:35:29: error: ReefAngel_Relay.h: No such file or directory
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:36:27: error: ReefAngel_PWM.h: No such file or directory
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:37:29: error: ReefAngel_Timer.h: No such file or directory
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:38:30: error: ReefAngel_Memory.h: No such file or directory
In file included from sketch_jan01a.cpp:7:
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:76: error: 'ReefAngel_NokiaLCD' does not name a type
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:77: error: 'ReefAngel_JoystickClass' does not name a type
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:78: error: 'ReefAngel_LEDClass' does not name a type
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:80: error: 'ReefAngel_ATOHighClass' does not name a type
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:81: error: 'ReefAngel_ATOLowClass' does not name a type
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:82: error: 'ReefAngel_TempSensorClass' does not name a type
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:83: error: 'ReefAngel_RelayClass' does not name a type
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:105: error: 'ReefAngel_TimerClass' does not name a type
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:236: error: 'Total_Menus' was not declared in this scope
C:\Users\McDaniels\Documents\Arduino\libraries\ReefAngel/ReefAngel.h:237: error: 'Total_Menus' was not declared in this scope
sketch_jan01a.cpp: In function 'void loop()':
sketch_jan01a:13: error: 'class ReefAngelClass' has no member named 'StandardGUI'
Thanks!
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Wifi Attachment Issue & Question

Post by rimai »

I don't think the wifi attachment was able to pick up an id address.
If it shows 0.0.0.0:2000, it means it never picked up a correct address.
I think it is because you used authentication open. Just my thought.
Use this code instead:

Code: Select all

#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>

void setup()
{
  ReefAngel.Init();  
}

void loop()
{
  ReefAngel.ShowInterface();
}
The manual uses the standard libraries.
Roberto.
matt_longview
Posts: 15
Joined: Mon Dec 26, 2011 4:01 pm

Re: Wifi Attachment Issue & Question

Post by matt_longview »

We can ignore the second queestion about the standardgui.... I'm not using standard libraries!

Once again you're amazingly fast. Faster than me!

My properties on my laptop that's currently connected says "Security: No authentication (Open)"
matt_longview
Posts: 15
Joined: Mon Dec 26, 2011 4:01 pm

Re: Wifi Attachment Issue & Question

Post by matt_longview »

Finally figured it out. My default local port is not 2000. Had to get into the router and poke around for a bit. Got it running now! :-)

Now to figure out port forwarding. Does the reef angel have to setup a dhcp like no-ip.com?
Post Reply