RSS  e-mail  sitemap

Internet Remote Laboratory

logo gymkt

Physical Internet-controlled experiments

Grammar-school of J. Vrchlicky, Klatovy

˙vod experimenty o laborato°i kontakt odkazy

K8055-M.A.R.I.E.

(Management Application for Remote Internet Experiments)

Demo setting

K8055-MARIE

While the web server is already working and thus set K8055MARIE-demo.htm is accessible via the Internet by typing http://YOUR_IP/K8055MARIE-demo.htm (where YOUR_IP is the IP address of your computer), access to the USB card using K8055-MARIE be activated.

  1. In K8055-MARIE tab Remote Server (see Fig. 1), set the communication port (choice Host PORT), after which the website K8055MARIE-demo.htm to communicate with the K8055 USB board. Port value is set by default to 8080, but can be changed. Selected port obviously not be occupied by another Web application (eg camera server, etc.). Beware the security settings of the firewall operating system. It is possible that you will permit the specified port firewall asked.
K8055-MARIE Remote Server
Figure 1 - Remote Access Setup tab Remote Server
  1. The second parameter that allows you to accept commands only from the selected control website is callsign Allow-Origin. It is the URL of the page that is allowed to send control commands. Default value is *, which means that orders can be received from any website that sends the request.
  2. K8055-MARIE application to connect to the Internet using the START Server (beware of possible query firewall - access is necessary to enable).
  3. By checking the option Next start is automatic with this paramaters (to ver. 1.11A) or Automatic start (with this parameters) (since ver. 1.15A) is stored parameters specified in the INI file. It automatic start USB connection and control server with last parameters after next K8055-MARIE start.

Website K8055MARIE-demo.htm (Valid for the K8055-MARIE version 2.56 and higher)

Now we need to set parameters for access from the website to the application K8055-MARIE. We will work with the HTML file K8055MARIE-demo.htm from the directory C:\xampp\htdocs\.

  1. Open the file K8055MARIE-demo.htm in any text editor (eg Notepad). We have to change some lines in the section head:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=Windows-1250">
    <title>K8055-MARIE : Demo</title>
    <!-- BEGIN - JavaScripts for Remote Control -->
    <script src="jvs/jquery-1.12.4.min.js" type="text/javascript"></script>
    <script language="Javascript" type="text/javascript" src="http://YOUR_IP:PORT/K8055.js"></script>

    <!-- END - JavaScripts for Remote Control -->
    :
    :
  2. In line:

    <!script language="Javascript" type="text/javascript" src="http://YOUR_IP:PORT/K8055.js"><!/script>

    we change YOUR_IP to the IP address (or URL) of the computer where is application K8055-MARIE installed. Parameter PORT is the port number on which the application is listening K8055-MARIE - see Application Settings.

If you have everything set up correctly it should be possible to remotely control the website K8055 USB card.

CAUTION:
Be careful when operating on a corporate or school network. Collaborate with your network administrator in this case!

YAWCAM

Since the Web site you want to monitor response K8055 USB board using a webcam, we have to set the application YAWCAM - server webcam.

  1. Run the application YAWCAM in choosing Settings choose camera option DeviceChange to (or Detect webcam).
  2. In choosing SettingsEdot SettingsOutputStream(see Fig. 2) you must specify the communications port, after which the application will be broadcast YAWCAM image webcam. The default value is 8081 (if not in conflict with another application we have it).
nastaven9 YAWCAM
Figure 2 - Setting Output Server Web cameras
  1. Select the type of image transmission in choosing Stream type. Selecting JavaScript has the advantage that no additional installation on the client side. (select it).
  2. For other treatment settings YAWCAM recommend to visit the author's website and study the documentation (definitely it will be worth).
  3. It remains display settings webcams in your website K8055MARIE-demo.htm. Open it in any text editor. We find the line:

    <iframe src="http://YOUR_IP:8081/" width="320" height="240" frameborder="0" scrolling="no"></iframe>

    where YOUR_IP enters the public IP address of your computer. Entered after the colon is the port number on which the server sends a webcam. After you save the file change of address.


Installation is complete. It is now possible from any computer in the world connected to the Internet control panel K8055 USB connected to a host computer and watch everything connected webcam. Just load the page K8055MARIE-demo.htm typing http://YOUR_IP/K8055MARIE-demo.htm (where YOUR_IP is the public IP address of your computer).



Appendix:

YAWCAM and two cameras on one PC*

YAWCAM is a great application for controlling webcams. Since version 0.5.0 it no longer has a problem with saving settings, if it starts multiple times. We may start YAWCAM twice, both instances store their settings in the same place. The first application reads settings normally the second instance reads/creates a subdirectory named 2. But if we run YAWCAM only once and we want to load the settings from a subdirectory 2, we fail - it reads settings from the main directory. We will show you the following trick to set this application so that it can be used independently two webcams and the setting was always there when we need it.


Setting procedure: (YAWCAM version 0.6.0)

  1. Install YAWCAM for example to a folder: C:\Program Files\yawcam1. The application YAWCAM do not start yet!
  2. Create a copy of the folder yawcam1 in the same place (C:\Program Files\) and call it yawcam2. Now we have two independent copies of the YAWCAM.
  3. Open file service_profile.cfg in the folder yawcam1 by a text editor (eg Notepad) and change the path to eg C:\Temp\Yawcam1.
  4. Then do the same with file service_profile.cfg in the folder C:\Program Files\yawcam2 (Set the path: C:\Temp\Yawcam2).
  5. It is still necessary to edit the file start.bat in the folder C:\Program Files\yawcam1 (and yawcam2 too). Add the word service to the end:

    …bla bla… -splash:img/splash.gif yawcam.Main service

  6. Gradually run both applications YAWCAM. Set the necessary values for each application. After finishing in both folders (set in the file service_profile.cfg) are created subfolders .yawcam. There are stored main application settings. Two different installation folder => two different settings files! ;-)

* You do not need it for running the demo, but everyone who will also design your own projects, it will use.
Instalace Dema Back  |  Next Instalace Dema

Google TranslateThis Page is translated by  Google Translate. nahoru
Free counters!
© 2011-17 by N.P.C.