
rbonari

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 !
Hello,
Any thoughts or comments on the previous post regarding HTTP Server and Customer Server Controls would be much appreciated. Thanks Again, Rick
Hey, I had a problem with access from my mobile device using the HTTP Server and got it solved with port forwarding...it is kind of tricky though, Alan helped me a lot on this!
@TheTechGuru: You'll need your public IP address, and have your router port forward from your public to private address to the port running your EZ-B web server (80 by default) and of course you'll need the web service active in your project.
You will find the whole walkthru for dummies in this threat! Thanks a lot for helping me on this one Alen!
https://synthiam.com/Community/Questions/8965&page=6
@Rick,
I presume this:
is the example you mentioned. Why does not work with your adventure robot ?
I'm exploring the concept ... so far it seems simple to customize, i'll add a pan & tilt to control the camera, what you have in your mind ?
Hello ptp,
Yes this is the example. The hello world button works fine. When pressing the button it speaks the appropriate phrase. I have a hunch the reason the motors don't work, is this example was not created around the adventure bot robot and the servos I use are probably on different ports. I haven't tried getting the foscam working with it as I wanted to get the ez-robot camera to work first. Using the camera selection called out in the app I was able to get the camera view in the window, but only a static image and no streaming.
My idea was to use the custom server page to do what we can't do in the mobile app in that the mobile app only supports the ez-Robot camera. I want to be able to control the foscam camera that you and Alan helped me to get working and also have the Movement Panel for the adventure bot robot and soon the I-Robot Create2 Robot Platform (not both at same time). Also need a pan/tilt control for foscam camera and one or two buttons to turn on IR LED-s on camera. I already have been able to control the IR led-s again thanks to you and Alan. Also on the wish list would be maybe 4 buttons that I could use for other control purposes.
The one issue I am concerned about is if ARC will be a limitation to the streaming speed. Alan mentioned something about putting the streaming image in an IFrame. Not sure if Alan might be talking about a completely custom web page away from ARC. I had mentioned if the cost isn't prohibitive and the streaming speed was maximized to run on android phone I would be willing to pay someone to create the page for me.
I am hoping that the ARC custom server control could do all this with decent performance as I am sure there are more people out there that are interested in security/telepresense robot applications in our community.
For me to learn it helps to have code examples and that is why I was hoping to get the code for the web server page for the example. I did find some files but no code (HTML or otherwise).
Thanks much ptp again for your continued help !
Rick
Rick,
Let's first clear the "FUD".
The example page works with all movement panels. Basically when you press the html arrows the actions are translated to Forward, Reverse, Left, Right.
I believe the Adventure Robot uses the Continuous servo Movement Panel: https://synthiam.com/Tutorials/Help.aspx?id=12
Configure the Continuous servo Movement Panel: servo Ports, Correct the middle/stop position (Calibration 90 Position).
Test the Movement Panel, Press Forward, Back, Left, Right, Stop.
Test the HTTP Custom Server html page
Can you confirm, if all are working ?
Hello ptp,
The Movement Panel works fine in ARC and also with mobile app. Does not work with HTTP Server. I noticed with the server, when I activate buttons on server port I can see the buttons turn red on ARC running on laptop but no movement of Adventure Robot.
When you say configure the Movement Panel do you mean in the code for the server page or in ARC itself? It has been configured in ARC itself and controls the robot fine but doesn't work with custom server?
How do you view the code for custom server page?
Your continued help is appreciated ! Rick
Rick,
I haven't tried it from my Android phone, but the HTTP Server (custom) does work with Adventurebot, and any other bot with a movement panel.
Were you trying from your phone or PC. If your PC, what browser were you using?
I am getting home sometime tomorrow, so this weekend I'll try it from my phone and make sure there is not an issue using it in that environment.
Alan
Alan,
I was using google chrome on Android phone. The custom web page does show up but the only thing that really works is the hello world button that says a message when depressed. I'll have to check again but I believe the message was played over the pc speaker and not the android speaker. As I mentioned above, the Movement Panel buttons on android phone would cause buttons in Movement Panel in ARC to turn red (activate) but no movement of the Adventure Bot Robot. Also ez-robot cam displays image in custom server image frame, but no streaming video.
Also would like to look at code for custom web server page? Thanks for your help Alan and have a safe trip home ! Rick
:)