How to access data from a running program?

2 views (last 30 days)
Tural Tocce
Tural Tocce on 16 Nov 2015
Commented: Walter Roberson on 27 Feb 2018
Hello,
Guys, I've been using Matlab for years now but I think this might be a kinda telecommunication problem. I have a camera system running off grid. I call it a "black box" cos I can't modify the system (all rights reserved). "Black box" uses an external antenna (tx/rx) to send video and a receiver to receive it which is connected to router and via router to my computer. It has some other functions too but I dont think they matter. The video is displayed by a program called "fantasy" (made by the company manufacturing this system and I dont have its source codes or whatsoever). Using this program, I can see the camera output and send some commands to camera (turn right/left/up/down).
Problem: This "black box" is consuming too much power because it streams video even when user is not using it.
Solution: I want to cut down its power using traditional relay when user does not use it. And when the user wants to see the video stream he will have to click one of the buttons that moves the camera. As far as I understood, the program sends data when I want to move the camera and receives data when video streaming (or both). The data send via ethernet cable is of my interest. I hope to use it to trigger switch relay and turn ON the power and after a while turn it OFF so that it doesn't consume energy for nothing. Here comes the Q:
Question: Is there any command or way to do it using Matlab's extensive libraries?
  5 Comments
saleh saleh
saleh saleh on 27 Feb 2018
I want to know How to access the router and the take information from it (Know the information from the router before the router send to the user)
Walter Roberson
Walter Roberson on 27 Feb 2018
Access to a router is a completely unrelated question that should be asked separately. The details will also depend on which router model and software release.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 16 Nov 2015
There are a number of different manufacturers of remote power switches.
One example is the Belkin P-F7C027 WeMo switch
When I used to network admin, I investigated these switches in order to avoid having to trek into wiring closets to reboot equipment. I found a lot of differences in the price of the devices, and in the number of ports, and in the security features. In those days, the ones that used Power Over Ethernet (PoE) cost a lot more. In those days, the devices that offered encrypted connections at all (as opposed to just password) were usually only SSHv1 compatible; fortunately I was able to find one (back then) that was not too expensive and which supported SSHv2 . I also came up with a list of a good 20 interface bugs with that device. (I think I heard the company went under.)
You need an ethernet port. You probably need a power supply. (If you use WiFi to avoid the ethernet port then you almost certainly need a power supply to keep the WiFi running.) You need a security mechanism to allow you in but keep everyone else out. You need to be able to command "Off" and "On", and you probably want a "turn power off for N seconds then turn it on again" in order to do reboots. You probably need to be able to configure the security, and the IP configuration. If the interface is a web interface instead of a command line interface, you would prefer if the interface allows distinct URLs to control the power so that you do not have to have your code go through the logic of working through menus to control the power; likewise you would prefer to be able to present any login credentials easily rather than through a javascript menu each time.

Categories

Find more on Simulation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!