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

Take control of your robot's destiny by subscribing to Synthiam ARC Pro, and watch it evolve into a versatile and responsive machine.

#17  

Hello Alan,

Thanks much and will await your testing results. What great response time !

Has DJ been able to get jpeg stream working with ARC?

Will it be difficult to add control for pan/tilt functions and buttons to control turning IR LEDS on and off? We already have httpget commands working to do this.

Thanks Again ! Rick :)

#18  

It will be easy to add the pan and tilt buttons.

I don't know what the status of the jpeg stream is. I imagine we'll know when the next ARC version is posted.

Alan

#19  

Alan,

Would I be correct in assuming the buttons to control IR LEDS will be easy along with other control buttons? Thanks again.....Rick :)

#20  

Hello Alan, PTP,

Thanks to you all I have been able to get the Foscam F19831P Camera to display in ARC camera control. Once it is working can I view it using the custom web server as is or are there changes that need to be made to the custom http server code?

I had another question regarding the custom http server. Can existing scripts that have been created in ARC be executed or run by depressing a button in the custom web server and how would this be accomplished?

Thanks Again for all your help and vwry quick responses. Very awesome support !:)

#21  

Hello Alan,

I was able to view foscam video in custom http webserver with no changes to code. Response time of stream could be better.

Still wondering if we can execute an existing script (say for instance using basic HTTPGet commands to control ptz function of camera and to turn IR LED'S on and off) by depressing buttons in http custom webserver and how this would be done. Thanks to you and ptp these commands for the foscam camera already work in ARC. I have simple scripts in ARC working to control these functions. Just need to make work in custom web server. Thanks again for your continued help !

:):)

#22  

Existing scripts will be easy to execute. The web page can directly execute script commands, but one of the script commands is "controlcommand", so it can execute any existing script using that. In fact, that would be the better way to do it because then anyone can use the same web page without editing it with each person's foscam credentials (except for the camera stream if I wind up doing the work before DJ gets mjpeg stream from Foscam working).

I'll put some work in, probably tomorrow night, and post an example project. (wanted to work on it yesterday, but wound up having a production system problem at work that had me up all night).

Alan

#23  

Hello Alan,

Thanks much and I will await your update. In the meantime I will work on port forwarding the page. Do I port forward the http custom server ip address and port number or the ARC laptop ip address/port number? I will work on it and let you know if I am successful. Thanks again Alan ! This is awesome ! Rick :):)

#24  

When you open the settings of the http custom server, it will display 2 IP addresses, one internal (your ARC computer) and one external. You forward the custom HTTPS Server port (default is 80, but I would change it) to the internal IP address in your router, then to connect from outside, you will go to


http://external_ip_address:port

from your Android phone.

You will want to set the IP address of your PC to a reserved IP in the router, or a static IP on the PC so that it is always the same or you will constantly be re-setting up the forwarding.

Your external IP address may change often, or may be the same for a long time. I have Verizon FiOS. My IP used to change any time I rebooted the router, but they made a change and I have had the same IP address for over a year. You can sign up for any one of many dynamic DNS servers so that you have a domain name that follows your IP address if it changes. Used to be free options, but now they all charge something.

Alan