Asked — Edited
Resolved Resolved by thetechguru!

Regular And Custom Http Server Controls

Hello,

I have ventured into the HTTP Servers, both regular and custom and was really impressed. Pretty cool stuff !

First question I have is that I was able to successfully connect to the regular server page with my Android Phone and as my project is fairly large, I couldn't scroll through the whole screen of the project. Would I be correct in assuming that this is a limitation of the Samsung Galaxy S4 Screen Size?

I noticed in the web server control that there are two IP Addresses the show in the control. The first one is the regular IP Address and the other one is the remote port for accessing server outside of my network. Then I noticed when I was connected that I have clicked on the connection button that there was yet another IP Address. The IP Address in the control screen along with the remote address is an IP Address that is already used on my network. The IP Address I get when I connect on connection button shows an IP Address that is not used on my network and this makes sense. Not sure how these IP Addresses are all related. We have two different IP Addresses and a remote address.

Also, which IP Address is the one I should be forwarding? Is it the address in the drop down box when I click on connection or the one of two that shows up in the main control box? Also, would I be correct in assuming that I can change the port number to one that is currently not used on my router? Also, what are some common IP Addresses that I could use that aren't currently used and would be safe to use.

I can view the web server page on my Android phone on my local network but can't access yet outside of my network. Tried port forwarding both IP addresses, with a different port number than 80 and no luck. This is where I think I might be using port numbers that are already used?

With regards to the custom web server, I looked at the example in the scripts folder and got it to work somewhat. The reason not everything worked is because I am using the Adventure Bot for my project and I am sure the author of the example custom web server used a different robot, etc. I was wondering if anyone has the example HTML code for a basic HTTP Custom Server? Example code is always great for learning purposes. I did check out the question mark for the custom web server but there was no examples. Any help on creating a custom web server would be great to help me understand what is going on with it. TheTechGuru is gracious enough to volunteer to help me out when he gets back from vacation as he wants to do some similar things with his robots that I want to do. Thought I would learn as much as I can before he gets back so I know what he is talking about somewhat?

Thanks for all the help and what a great community ! :):)


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

PRO
USA
#9  

I did some tests, and i found different behaviors.

I created a new post (specific details) let's wait for DJ.

#10  

I may have changed my Adventurebot to use the continuous servo Movement Panel instead of the AutoPosition Movement Panel given the bug PTP found. I'll know when I get home and have a chance to get to my bots (probably tomorrow morning).

This is from memory, so may not be exact, but in the custom HTTP control, there is a button to press to see the path to the html file. Open the file in a text editor (i recommend notepad++) to see the code.

Alan

PRO
USA
#11  

Alan,Rick:

No bug (Dj's feedback)

Alan:

Can you test the project using the Auto Position movment + http server.

Rick:

Can you start a clean project (open the adventure bot) add the http custom server control and test.

#12  

Hello Alan,

Do you mean open the adventure bot Example Project that DJ has in the examples folder and add server or create brand new project and add Movement Panel and camera and server controls and test on Android phone. I have added server control to my adventure Bot project and tested on android phone and Movement Panel doesn't work nor does the ez-robot camera stream video. Just need clarification on exactly what you need me to do? Thanks again for all your great help ! Rick :)

#13  

@Rick,

@PTP was telling you to start with a new copy of the Adventurebot project demo, rather than one that you may have edited (just to eliminate any strange bugs). then add and start the HTTP Server (Custom) control.

Make sure ARC on the PC is connected to your Adventurebot and you can control it and see the video from the PC before trying from a web browser.

Alan

#14  

I just tested with my Adventurebot project, and with a fresh copy of the Adventurebot demo project, and the custom HTTP server works fine with both on my PC and from my Android phone.

so, back to my previous statement:

Make sure ARC on the PC is connected to your Adventurebot and you can control it and see the video from the PC before trying from a web browser.

@Rick, You asked where you can see the code. Click the gear icon in the HTTP Server (custom) control and it will show the path the the HTML file. Click the "Open" button and it will open Windows Explorer to that directory. The code is in the default.html file in the "\EZ-builder\Http Server Root" directory in your documents folder.

Alan

#15  

Hello Alan and PTP,

Sorry for the delay getting back to you all ! I did the testing that you suggested.

The Movement Panel works, the button works and the ez-robot camera streams. The camera stream seems quite slow and sometimes intermittent. This could be due to slow internet speed at times. Excited about getting foscam displayed in the custom server webpage and be able to control it. I assume this will be our next step.

I was also able to view webpage. Yeah !

I had one question regarding the movement panel. Why does the basic adventure bot example not use the continuous rotation Movement Panel ? Also I do need to calibrate my servos using DJ'S procedures. Should we be using the continuous rotation Movement Panel with the adventure bot robot or the one that is currently used or does it really matter?

I went back and tried my project and the server worked there also. Not sure what was up with that? May could have been intermittent internet connection or what was talked about in our thread previously.

Now just need to get foscam camera F19831P working in custom server. Also need a way to control pan/tilt and turn on/off IR LEDS and a few more control buttons for miscellaneous things.

One of you had mentioned if the stream from the foscam camera is too slow you could imbed it in an I-frame? Not sure if this was applicable to ez-robot custom server or to custom web page not related to ez-robot pages.

Your continued help is much appreciated ! Rick:)

#16  

Quick answers from my phone...

Autoposition Movement Panel is used to give better startup and stop control. Because the bot has two big wheels, sudden stops can make it tip over forward. The AutoPosition has an intermediate step before fully stopping to prevent tipping.

Calibration should be done if one or both servos are still moving when you hit stoo, or if it doesn't drive straight.

IFrame. Yes, I can add it to the custom web page replacing the camera control. I'll test to see if it gives better performance.

Alan