Page 1 of 1

Re: Reef Angel Wifi Adress

Posted: Thu Jun 20, 2019 3:55 am
by Christo
rimai wrote:Do you happen to have a space?
If so, you need to use $ instead of space.
I have an underscore "_" in my SSID

Re: Reef Angel Wifi Adress

Posted: Thu Jun 20, 2019 3:58 am
by Christo
rimai wrote:Do you happen to have a space?
If so, you need to use $ instead of space.
This is what I get.
P.S. Passphrase edited



x=0
while x<>121

messagebox 'Start WiFly module configuration' 'Webscan Config Program'

;this macro all sent with 5 msec character delay
timeout=10
send '$$$'
wait 'CMD'
sendln 'factory RESET'
wait 'Set Factory Defaults'

sendln 'reboot'
wait '*READY*'

;----------------------------------------
; Begin user settings


send '$$$'
wait 'CMD'
sendln 'set ftp address 198.175.253.161'
wait'AOK'
sendln 'save'
wait 'config'
sendln 'set wlan ssid GlidePath_Wifi'
wait 'AOK'
sendln 'set wlan pass **********'
wait 'AOK'
sendln 'set option deviceid ReefAngelWifi'
wait 'AOK'
sendln 'set w j 1'
wait 'AOK'
sendln 'set c c 0'
wait 'AOK'
sendln 'set c r 0'
wait 'AOK'
sendln 'set c o 0'
wait 'AOK'
sendln 'set i d 1'
wait 'AOK'
sendln 'set c i 3'
wait 'AOK'
sendln 'set dns name www.reefangel.com'
wait 'AOK'
sendln 'set i h 104.36.18.155'
wait 'AOK'
sendln 'set i r 80'
wait 'AOK'
sendln 'set i f 0x06'
wait 'AOK'
sendln 'set s t 0x10'
wait 'AOK'
sendln 'set u m 2'
wait 'AOK'
sendln 'set i p 2'
wait 'AOK'
sendln 'set u b 57600'
wait 'AOK'
sendln 'set s p 0'
wait 'AOK'
sendln 'set c s 1420'
wait 'AOK'

sendln 'save'
wait 'config'

sendln 'save user'
wait 'user'

sendln'reboot'


;inputbox 'Configure another module (y/n)' 'WiFly Config Program'

; convert inputstr to ASCII int value
; str2code x inputstr

endwhile

Re: Reef Angel Wifi Adress

Posted: Thu Jun 20, 2019 9:40 am
by rimai
This is the macro file. Are you sure you ran it?
Did you get the messageboxes at the start and end?

Re: Reef Angel Wifi Adress

Posted: Thu Jun 20, 2019 7:57 pm
by Christo
rimai wrote:This is the macro file. Are you sure you ran it?
Did you get the messageboxes at the start and end?
Yes. Got the message boxes at the beginning and then again
at the end.

If I run the macro, The Wifi attachment then has a green and blue light blinking.
If I run the Wifi utility, I have a Slow blinking Green light with message “ Trying to
connect to your router.

Re: Reef Angel Wifi Adress

Posted: Thu Jun 20, 2019 10:07 pm
by rimai
Trying to connect to router is normal.
It just means that it wasn't able to setup upnp on your router.
Not sure why you get blue when running the macro.
If you enter the correct ssid and passphrase, it should connect.
Can you pull the "get e" log after you run the wifi utility?

Re: Reef Angel Wifi Adress

Posted: Wed Jul 24, 2019 1:42 am
by Christo
Okay... So after a bit of a cool down period I tried again.

Using Wifi utility: After selecting serial port and clicking Connect I get this message:

**ERROR- Please disconnect and reconnect the Reef Angel Wifi Attachment from the USB-TTL cable and try again.

Then Using the macro:

At first I ran 9600 baud rate and got a hole lot of "hieroglyphics" on the screen.
Then I tried 57600 and got this message:

HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Wed, 24 Jul 2019 07:59:19 GMT
Connection: close
Content-Length: 326

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid Verb</h2>
<hr><p>HTTP Error 400. The request verb is invalid.</p>
</BODY></HTML>

Now Currently Nothing is connecting to the Wifi Attachment.

Re: Reef Angel Wifi Adress

Posted: Wed Jul 24, 2019 9:17 am
by rimai
You didn't run the macro correctly.
It must be at 57600 before you run it.