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

ARC Pro is your passport to a world of endless possibilities in robot programming, waiting for you to explore.

#49  

Hello Alan,

That is Great,

I will give it a shot ! Haven't looked at it yet but as soon as I get back home I will check out. Just wondering if you had a chance to add buttons for IR ON and IR OFF? I have the command numbers if you need them. Thanks again...Rick :):)

#50  

Yes, it has up, down, left, right, stop, top right, top left, bottom left, bottom right, reset (goes back to center), lights on, lights off, and init (sets the variables used by all the other scripts).

Only thing I didn't add is cruise because I haven't programmed a cruise pattern yet.

Alan

#51  

Alan,

That is awesome ! I haven' programmed cruise yet either. Thanks again as always ! Rick :):):):)

#52  

Alan,

Awesome job ! I have the page working and it works perfectly. The video stream on my Android Phone is much faster ! I am sure you have seen this also. Your instructions were superb and if anyone deserves a bonus from ez-robot you would be the man !

I put the foscam-control.EZB file in the ARC My Projects Folder and it works great. I noticed that it has a long number displayed after the project title. Doesn't hurt anything but just wondering what this number is and if there is a way or a need to remove the long number? I noticed none of my other projects have this long number after their names. Just curious. Cant't thank you enough and being able to look at and see what you have done with the html page code is a great learning experience for myself and others ! Very awesome ! Rick

:):):):):):):):):):):):):)

#53  

You can remove the long number. It was added by the ezr web page when uploaded.

Alan

#54  

Alan,

Thanks much ! You did an awesome job ! Rick :):):):):)

#55  

Thanks Rick,

Once I figured out how it was working (and stopped trying to fix my crashing computer) it was fairly easy to set up.

Alan

#56  

Alan,

Can we make the window for the video larger or wider? I'm thinking maybe you set up the size to get maximum speed out of the stream. Would this be correct? If the size of the window could be made larger without sacrificing the speed of the stream, we could probably reduce the size of the robot Movement Panel to fit everything on the mobile screen ok.

My I-Robot Create 2 should be delivered today so was wondering if any thing needs to be changed for the custom page movement panel? Also I noticed there is quite a bit of space leftover on the right side of the phone display so would it be possible to add more buttons specifically to control I Create 2 functions?

Thanks again Alan ! This makes possible a pretty decent telepresence robot using the ezb-v4 and I Create 2 along with the Foscam Camera. What are your thoughts regarding this?

Take care and again thank you ! I can see this being an evolving project for us and others ! Rick :):):):)