Page 1 of 1

Re: Cloud Wifi Hub compile error

Posted: Sun Feb 11, 2018 7:01 pm
by Loose
Box 1 is connected directly to the RA* head unit and ports do toggle with both Uapp and the Android App. Box 2 is connected to the Cloud Wifi hub and show the change on the screens, but the outlets don't come on.

Re: Cloud Wifi Hub compile error

Posted: Sun Feb 11, 2018 7:26 pm
by Loose
To verify the cables and box worked, I connected Box 2 to the RA* (through an expansion hub) and the ports toggle off and on via the Uapp and Android App when connected that way.

Re: Cloud Wifi Hub compile error

Posted: Sun Feb 11, 2018 7:36 pm
by rimai
Sorry, I missed the whole point.
It is connected to cloud wifi expansion.
Let me check some stuff and I'll get back to you.

Re: Cloud Wifi Hub compile error

Posted: Sun Feb 11, 2018 7:38 pm
by Loose
:)

Re: Cloud Wifi Hub compile error

Posted: Mon Feb 12, 2018 5:33 pm
by rimai
Do you have Arduino IDE installed in your computer?
If not, download the Reef Angel Installer from the download section of the website and install it.
Connect the cloud wifi expansion to a USB in the computer.
Open Arduino and go to menu Tools->Serial port and select the serial port for the cloud wifi expansion.
The go to Tools->Serial Monitor and make sure that 57600 baud is selected.
Send the log you see on the monitor.

Re: Cloud Wifi Hub compile error

Posted: Mon Feb 12, 2018 7:17 pm
by Loose
I do have Arduino IDE installed.
With the Cloud expansion connected, I am unable to select the serial port where it is attached.
When I go to tools in Arduino IDE, "Serial Port" is a grayed out option.
I have tried on the laptop that I use to upload code to the RA* and tried on another desktop with a fresh install of Arduino IDE with the same results; not found.

When I use Device manager (Windows 10) it shows connected there as a "CP2104 USB to UART Bridge Controller." The icon has a superimposed caution icon with the following Device status properties:
-------
The drivers for this device are not installed. (Code 28)

There are no compatible drivers for this device.

To find a driver for this device, click Update Driver.
-------

Re: Cloud Wifi Hub compile error

Posted: Mon Feb 12, 2018 7:48 pm
by rimai
Download the driver from the manufacturer:
https://www.silabs.com/products/develop ... cp-drivers

Re: Cloud Wifi Hub compile error

Posted: Mon Feb 12, 2018 9:01 pm
by Loose
Driver installed
Solid blue light
Output:

Failed, rc=-2 try again in 30 seconds
Connecting to cloud server...
Failed, rc=-2 try again in 30 seconds
Connecting to cloud server...
Failed, rc=5 try again in 30 seconds
Connecting to cloud server...
Failed, rc=-2 try again in 30 seconds
Connecting to cloud server...
Failed, rc=-2 try again in 30 seconds

Re: Cloud Wifi Hub compile error

Posted: Mon Feb 12, 2018 9:33 pm
by rimai
That means it is not connected.

Re: Cloud Wifi Hub compile error

Posted: Mon Feb 12, 2018 9:44 pm
by Loose
Yep, got that part.

Re: Cloud Wifi Hub compile error

Posted: Mon Feb 12, 2018 9:58 pm
by rimai
Try running the setup again while connected to the serial monitor and send the log again.

Re: Cloud Wifi Hub compile error

Posted: Mon Feb 12, 2018 10:23 pm
by Loose
Looks like it's connected now. Thank you.

Code: Select all

mounted file system
*WM: Adding parameter
*WM: Cloud Username
*WM: Adding parameter
*WM: Cloud Password
*WM: 
*WM: AutoConnect
*WM: Connecting as wifi client...
*WM: Using last saved values, should be faster
*WM: Connection result: 
*WM: 0
*WM: SET AP STA
Entered config mode
*WM: 
*WM: Configuring access point... 
*WM: ReefAngelCloudHub
*WM: AP IP address: 
*WM: 192.168.4.1
*WM: HTTP server started
*WM: Request redirected to captive portal
*WM: Request redirected to captive portal
*WM: Request redirected to captive portal
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Handle root
*WM: Handle root
*WM: Handle root
*WM: Scan done
*WM: K2GVR
*WM: -67
*WM: NETGEARcannon
*WM: -83
*WM: carlsenfamily
*WM: -87
*WM: HP-Print-BA-LaserJet 1102
*WM: -89
*WM: Sent config page
*WM: Request redirected to captive portal
*WM: Request redirected to captive portal
*WM: WiFi save
*WM: Parameter
*WM: Cloud Username
*WM: Loose
*WM: Parameter
*WM: Cloud Password
*WM: +++++++++
*WM: Sent wifi save page
*WM: Connecting to new AP
Checking Wifi Credentials
*WM: Connecting as wifi client...
*WM: Connection result: 
*WM: 3
Should save config
username: Loose
Start
saving config
{"mqtt_username":"Loose","mqtt_password":"+++++++"}
IP address: 192.168.1.30
Connecting to cloud server...
Connected
Subscribing to Loose/out/#
Loose/in: all:0
Loose/in: io:255
cloud:ATOLOW:0
cloud:ATOHIGH:0
cloud:EM:137
cloud:EM1:4
cloud:REM:3
cloud:BID:4
cloud:AF:0
cloud:SF:0
cloud:PWMD:0
cloud:PWMA:0
cloud:PWMDO:255
cloud:PWMAO:255
cloud:R1:247
R1:247
cloud:ROFF1:255
ROFF1:255
cloud:RON1:0
RON1:0
cloud:R2:2
R2:2
cloud:ROFF2:255
ROFF2:255
cloud:RON2:0
RON2:0
cloud:R3:0
R3:0
cloud:ROFF3:255
ROFF3:255
cloud:RON3:0
RON3:0
cloud:R4:0
R4:0
cloud:ROFF4:255
ROFF4:255
cloud:RON4:0
RON4:0
cloud:R5:0
R5:0
cloud:ROFF5:255
ROFF5:255
cloud:RON5:0
RON5:0
cloud:R6:0
R6:0
cloud:ROFF6:255
ROFF6:255
cloud:RON6:0
RON6:0
cloud:R7:0
R7:0
cloud:ROFF7:255
ROFF7:255
cloud:RON7:0
RON7:0
cloud:R8:0
R8:0
cloud:ROFF8:255
ROFF8:255
cloud:RON8:0
RON8:0
cloud:ALARM:0
cloud:PWMD2:0
cloud:PWMA2:0
cloud:PWMD2O:255
cloud:PWMA2O:255
cloud:WL:0
cloud:WL2:72
cloud:WL3:97
cloud:WL4:3
cloud:HUM:0
cloud:DCM:0
cloud:DCS:0
cloud:DCD:0
cloud:DCT:0
cloud:PWME0:0
PWME0:0
cloud:PWME1:0
PWME1:0
cloud:PWME2:0
PWME2:0
cloud:PWME3:0
PWME3:0
cloud:PWME4:0
PWME4:0
cloud:PWME5:0
PWME5:0
cloud:PWME0O:255
PWME0O:255
cloud:PWME1O:255
PWME1O:255
cloud:PWME2O:255
PWME2O:255
cloud:PWME3O:255
PWME3O:255
cloud:PWME4O:255
PWME4O:255
cloud:PWME5O:255
PWME5O:255
cloud:AIW:0
cloud:AIB:0
cloud:AIRB:0
cloud:RFM:0
cloud:RFS:0
cloud:RFD:0
cloud:RFW:0
cloud:RFRB:0
cloud:RFR:0
cloud:RFG:0
cloud:RFB:0
cloud:RFI:0
cloud:RFWO:0
cloud:RFRBO:0
cloud:RFRO:0
cloud:RFGO:0
cloud:RFBO:0
cloud:RFIO:0
cloud:IO:0
cloud:LEAK:0
cloud:C0:0
cloud:C1:0
cloud:C2:0
cloud:C3:0
cloud:C4:0
cloud:C5:0
cloud:C6:0
cloud:C7:0
cloud:R:0
cloud:ROFF:255
cloud:RON:0
cloud:T1:737
cloud:T2:766
cloud:T3:770
cloud:PH:796
cloud:T4:786
cloud:T5:0
cloud:T6:0
cloud:ORP:0
cloud:PHE:0
cloud:PAR:0
cloud:CEXP0:0
cloud:CEXP1:0
cloud:CEXP2:0
cloud:CEXP3:0
cloud:CEXP4:0
cloud:CEXP5:0
cloud:CEXP6:0
cloud:CEXP7:0
cloud:WL1:101
cloud:SAL:339
cloud:WL1:102
cloud:WL1:101
cloud:WL1:102
cloud:WL1:103
cloud:WL1:100
cloud:WL2:73
cloud:SAL:340
cloud:WL1:101
cloud:WL2:72
cloud:SAL:339
cloud:WL1:104
cloud:WL2:71
cloud:WL1:101
cloud:WL2:72
cloud:WL2:71
cloud:WL1:100
cloud:WL2:72
cloud:SAL:340
cloud:WL1:103
cloud:SAL:339
cloud:WL1:101

....
As a side note, did you happen to get the new boxes for it? I have to take the board out to do a factory reset since the hole doesn't line up with the switch... I can just drill a new hole as well.

Re: Cloud Wifi Hub compile error

Posted: Mon Feb 12, 2018 10:31 pm
by Loose
Tried it with the Relay expansion box and can toggle the ports from Uapp and Android app (after I put it back together :-) ).

Thank again!