How to patch Ethernet Command

View previous topic View next topic Go down

How to patch Ethernet Command

Post  icke_siegen on Fri Aug 08, 2014 4:49 pm

I want to use the module network/Ethernet command, to send some control data to an external SDI switcher. However, it seems that no data is coming out of that module, whereas I can easily use telnet or even a standard browser on the same machine, to connect. Firewall is deactivated. So the question is: how to wire the Ethernet Command module (in particular I am concerned about the yellow port 'Render Chain').

Next question is: how can I send ASCII control chars, like newline, tab, CR. In a form like \n, \r, \t, or in some byte code?

Thanks in advance,

Sebastian

icke_siegen

Posts : 32
Join date : 2013-02-24

View user profile

Back to top Go down

Re: How to patch Ethernet Command

Post  icke_siegen on Fri Aug 08, 2014 6:05 pm

Here is how it looks like:
- very finally I want to send something like
Code:
VIDEO OUTPUT ROUTING \n
7 2 \n
\n

(\n is for the required newline character)
- currently AI is running on 192.168.1.171, the target test machine is at 192.168.1.43, the target port is 9090
- I can e.g. telnet 192.168.1.43 9090, or point a browser to 192.168.1.43:9090. But if I use the module in AI, nothing happens.
- I tried several approaches, including inserting it into the render chain, and using the other ports to trigger the send process etc. No avail.


icke_siegen

Posts : 32
Join date : 2013-02-24

View user profile

Back to top Go down

Re: How to patch Ethernet Command

Post  icke_siegen on Fri Aug 08, 2014 7:11 pm

Now I installed the little TCP server on the AI test machine (loopback adaptor was already installed). Even in this scenario I cannot get any command out of AI. AI version is 7.1.0.483

Any idea?

icke_siegen

Posts : 32
Join date : 2013-02-24

View user profile

Back to top Go down

Re: How to patch Ethernet Command

Post  icke_siegen on Mon Aug 11, 2014 12:59 am

I am a bit further now: the module 'Ethernet Command' (a) seems to work nicely without being linked into the render chain, and (b) outputs UDP - whereas I was listening for TCP. Now, let's see how BlackMagic's switcher reacts to that. Or has anyone already gathered some eyperience with that machine? Please find the Manual here- it expects TCP data on port 9090.

Or are there any other ideas or products?

icke_siegen

Posts : 32
Join date : 2013-02-24

View user profile

Back to top Go down

Re: How to patch Ethernet Command

Post  icke_siegen on Tue Aug 12, 2014 3:45 am

Found a solution (socat) - will share it as soon as it's tested - and I have the next question (different thread)

icke_siegen

Posts : 32
Join date : 2013-02-24

View user profile

Back to top Go down

Re: How to patch Ethernet Command

Post  icke_siegen on Sat Aug 16, 2014 5:39 am

Here comes the solution.

But at first the problem: we have a video switcher (Blackmagic Smart Videohub) which can be controlled via TCP:

The Blackmagic Videohub Ethernet Protocol is a text based protocol that is accessed by connecting to
TCP port 9990 on a Videohub Server. Integrated Videohub Servers and Videohub Server computers are supported by the protocol.

Then, when you can issue network commands, you can easily change the routing with a command like this:

VIDEO OUTPUT ROUTING:
7 2


Now, there is the AI module 'ethernet command'. Sounds great, but unfortunately it is not exactly fit for the job, since it outputs commands only via UDP, whereas our nice little switcher requires TCP. Luckily I found a little software named socat, which can translate alost every protocol (look for the Windows/Cygwin binaries). Download and unzip it, open a DOS prompt in the right folder, and issue a command like this:

Code:
socat -s udp4-listen:9091,reuseaddr TCP:192.168.0.100:9090

This way, socat listens on port 9091/UDP, and forwards everything it receives to 192.168.0.100 port 9090/TCP. You'll get a nice little window like this:



We can now easily use AI's ethernet command module. Instead of sending the data to our target device, we must now send it to the local network, because this is where socat sits and listens - on port 9091, that is. I found that I needed to send it to broadcast (I didn't bother to install a loopback adaptor):



(I used other ports in my example - but you have to tweak the IP addresses anyway  Smile )

And now we could control our fancy video switcher from within AI.

Have fun, Sebastian

icke_siegen

Posts : 32
Join date : 2013-02-24

View user profile

Back to top Go down

Re: How to patch Ethernet Command

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum