Author Topic: Clarification request for Difi, Ethernet compatiable, webserver example  (Read 4965 times)

Techno

  • Newbie
  • *
  • Posts: 26
I was successful in running the ServerExample.  Next up; attemping to run the Webserver example.  So far tonight I have not been able to connect to the Webserver at 192.168.2.4:8080 (which is also the Wifi module, STA mode ip address.)  I have no external connections to the Digix, I have done a factory reset of the Wifi module,  tried all three working modes of the Wifi module; still no connection when attempting to connect to 192.168.2.4:8080.  Serial Monitor shows request from Host 192.168.2.4:8080.  Enabled Arduino.exe in firewall.  added 192.168.2.4 to Hosts file.  Forwarded the port on the router.  No joy. 

Operating System is Windows 8.1 64 bit pro.  Arduino version is 1.5.5.  with DigiXAddons-v07.zip.

What options do I need to set for the Wifi moule interface?  What have I missed?

Both Internet Explorer and FireFox 26 produce same result; no connection to Webserver.

SukkoPera

  • Newbie
  • *
  • Posts: 12
Re: Clarification request for Difi, Ethernet compatiable, webserver example
« Reply #1 on: January 17, 2014, 07:24:01 am »
You might be encountering the same problem I talked about in http://digistump.com/board/index.php?topic=1270.0.

Basically the server is not closing the connection to the client, so the client has no means to understand that the server has sent the whole data and keeps waiting for more. It seems a current limitation in the DigiFi libs.

Techno

  • Newbie
  • *
  • Posts: 26
Re: Clarification request for Difi, Ethernet compatiable, webserver example
« Reply #2 on: January 17, 2014, 12:49:37 pm »
Are you saying the Difi, Ethernet compatible, Webserver example does not work?  Why include it in the examples if it does not work?

I certainly did not have this trouble with Adafruit's, Texas Instruments CC3000 wireless breakout board.  Worked right out the box, user friendly, and documentation, tutorials, and applications readily available!

http://processors.wiki.ti.com/index.php/CC3000

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Clarification request for Difi, Ethernet compatiable, webserver example
« Reply #3 on: January 17, 2014, 10:07:38 pm »
@Techno - we include it because it almost works and because we didn't know it was a bug when we released it (prepare 20+ examples in a night and things get past you) - everything around here is a work in progress and we don't have nearly the staff (50+ vs 2) or resources Adafruit does - we also don't have nearly their markup. It took many people a lot of work to get the CC3000 to work right - I followed it closely - the DigiFi library has come far fast, but it isn't perfect yet, never will be, but will keep getting better.

I will look into this issue, if someone else doesn't solve it first - but I can't say if that will be tonight or next week.

tos

  • Newbie
  • *
  • Posts: 5
Re: Clarification request for Difi, Ethernet compatiable, webserver example
« Reply #4 on: January 18, 2014, 02:02:44 am »
If you see the request in the serial monitor then it might be similar to the problem mentioned by SukkoPera. So you may try the WebServer sketch with a replaced loop like in  http://digistump.com/board/index.php/topic,1270.msg5720.html#msg5720. I added a content-length field to the response header. That's what the DigiFi library is doing in the DigiFi.response method!

Techno

  • Newbie
  • *
  • Posts: 26
Re: Clarification request for Difi, Ethernet compatiable, webserver example
« Reply #5 on: January 18, 2014, 12:33:13 pm »
I apologize for the tone and content of my post; it was out of frustration and being fatigued from getting no where.  I can only image what it is like for the developers of this project.  I am sorry for my behavior.

Thank you for the replies...  :)

William

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Clarification request for Difi, Ethernet compatiable, webserver example
« Reply #6 on: January 19, 2014, 01:16:58 am »
William,

No problem - thanks for the apology - I can understand the frustration, I feel it often in development, and if I hadn't just come aware of the issue the last few days it would have been fixed already - more than anything though I just like to make it clear what people can expect from us - because Adafruit/Sparkfun/etc will have more resources then us to make things just right, but we won't mark things up as much and you won't get some generic support - in fact you will almost always get the creator of the device personally trying to help, that must count for something! The side effect of that is that things can be a bit slow, under-documented, etc - I currently have 3 jobs (Digistump, CTO, contract circuit designer), a 6 month old, and a farm - so it takes me awhile sometimes.

I will take a look at this tonight or tomorrow - and if I am able to solve it in a real permanent way then I'll come back and post here.

Thanks for your support! And I apologize if I was short in my response.