Forum Software Ferduino code Error WebControl connection

Error WebControl connection  [SOLVED]


Post Number:#1 Post Sat Feb 13, 2016 8:14 am
Posts: 48
Topics: 8
Images: 10
Solve rating: 0
Joined: Tue Dec 09, 2014 8:03 am
Topics: 8
Age: 46
Gender: Male
National Flag:
Brazil
Good morning, I am not able to set up access to WebControl, when I select "validate settings" in the settings displays the error:

Error #204
- Syntax error, malformed JSON
Your controller sent an answer with wrong format but the changes can have been saved.
Please refresh this page and check the changes.


The problem is in the configuration or on my web server?

In the browser using the local IP information appears.

Thank you.

Post Number:#2 Post Sat Feb 13, 2016 11:59 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

This error can be related with noise in your power supply.

In the tab "Webserver" find this part and uncomment:

      /*#ifdef DEBUG
            Serial.print(F("Socket:"));
            Serial.println(i);
        #endif*/


After upload look for serial monitor to check if you can see something like this:

Socket: 0
Socket: 1
Socket: 2
Socket: 3


I had this problem and was solved adding a capacitor between GND and VIN.

Show me a print screen of your browser using local IP to see if something is wrong.

Are you using latest version available on Github?

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Sat Feb 13, 2016 1:16 pm
Posts: 48
Topics: 8
Images: 10
Solve rating: 0
Joined: Tue Dec 09, 2014 8:03 am
Topics: 8
Age: 46
Gender: Male
National Flag:
Brazil
Presents no socket:

I'm already using the latest version available on Github.

Thank you

Image
Last edited by Fernando Garcia on Sat Feb 13, 2016 1:51 pm, edited 1 time in total.
Reason: Please use tags [img=left][/img] for all images.

Post Number:#4 Post Sat Feb 13, 2016 1:56 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

The Json format is right.

There other server replying the requests, I can see this answer:

string(45) "
It works!
"


Try the port 5000 because the 80 is blocked by many providers.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#5 Post Sat Feb 13, 2016 2:09 pm
Posts: 48
Topics: 8
Images: 10
Solve rating: 0
Joined: Tue Dec 09, 2014 8:03 am
Topics: 8
Age: 46
Gender: Male
National Flag:
Brazil
The problem is that when I check other ports in http://ping.eu/port-chk/, only port 80 is open, the others are all closed.

Post Number:#6 Post Sat Feb 13, 2016 2:11 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

You did port forwarding in your router?
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#7 Post Sat Feb 13, 2016 7:37 pm
Posts: 48
Topics: 8
Images: 10
Solve rating: 0
Joined: Tue Dec 09, 2014 8:03 am
Topics: 8
Age: 46
Gender: Male
National Flag:
Brazil
Friend, I changed the port to 5000, works with the local IP but the door is not open, now in WebControl displays the error:

Failed to connect to 177.84...... port 5000: Connection refused.
Your controller is not responding.
Please check if your ethernet cable is connected.



Thank you

Post Number:#8 Post Sat Feb 13, 2016 9:02 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

The problem is on port forwarding in your router.

Can you show a print screen of the settings in your router?
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#9 Post Sun Feb 14, 2016 2:38 pm
Posts: 48
Topics: 8
Images: 10
Solve rating: 0
Joined: Tue Dec 09, 2014 8:03 am
Topics: 8
Age: 46
Gender: Male
National Flag:
Brazil
Hi Fernando, my router is an apple airport extreme, that is the port setting configuration. If this router does not work, which the router to recommend?

Image
Last edited by Fernando Garcia on Sun Feb 14, 2016 2:46 pm, edited 1 time in total.
Reason: Please use tags [img=left][/img] for all images.

Post Number:#10 Post Sun Feb 14, 2016 3:07 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Firstly you should check with your provider to know if the ports are not blocked.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#11 Post Wed Feb 17, 2016 11:11 am
Posts: 48
Topics: 8
Images: 10
Solve rating: 0
Joined: Tue Dec 09, 2014 8:03 am
Topics: 8
Age: 46
Gender: Male
National Flag:
Brazil
Ready friend, problem solved, lacked release the door in internet server. Now it is working 100%.

Thank you.

Post Number:#12 Post Wed Feb 17, 2016 11:46 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Glad to hear!

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest

cron