|
|
This topic comprises 3 pages: 1 2 3
|
|
Author
|
Topic: Additional uses for the JNIOR
|
|
|
|
|
|
|
|
|
|
|
Marcel Birgelen
Film God
Posts: 3357
From: Maastricht, Limburg, Netherlands
Registered: Feb 2012
|
posted 01-26-2019 07:16 PM
I'm still looking for that magical device that lets me get remote GPIOs over Ethernet like they're locally connected to the device and not using some archaic bus like Modbus. Yes, I can do Modbus over TCP/IP, but even that feels archaic and clumsy. I'm looking for a modern, more "plug and play" approach.
Also, I've done a lot of PLC programming, using FBD, ladder diagrams or Structured Text and to be honest, it is all totally archaic and inefficient. PLCs might still have their place for stuff where proven technology is key, where lives depend on predictable outcomes, but for general, everyday automation tasks, they should be considered a thing of the past... So I'd love to get rid of them.
I've never really written a program for a JNIOR, so I don't know how that feels, but what I really want is a simple, yet powerful scripting language.
Personally, I'm a sucker for Alcorn McBride's WinScript. It's a no-brainer scripting language that doesn't get into your way and mostly does exactly what you expect it will do. They also allow you to easily design simple UI controls for the systems you automate with them. Something that even looks good, and is very responsive, unlike the bloated crap you pull out of CODESYS. I've been looking for a poor-mans implementation of a comparable system for a while now.
| IP: Logged
|
|
|
|
|
|
Bruce Cloutier
Expert Film Handler

Posts: 161
From: Gibsonia, PA, USA
Registered: Aug 2016
|
posted 01-27-2019 10:18 AM
quote: Marcel I've never really written a program for a JNIOR, so I don't know how that feels, but what I really want is a simple, yet powerful scripting language.
Out of the box you can remotely toggle/pulse relays, check input status, and control analog modules via the built-in web interface. There is no programming required. The pages also render on your smart phone.
We supply a CINEMA.JAR application that would allow you to create and execute macros. There is also a Task manager available as well as other freebie programs.
If none of that floats your boat you can create simple Java programs in any available IDE. Build your project against the JanosClasses.jar runtime and it will run on the JNIOR. You can run several applications simultaneously.
I would avoid MODBUS if for no other reason than the lack of security. The JNIOR provides for a means to implement a login on a Modbus connection but that requires customization on the client side where most use off-the-shelf software that cannot support the login.
On a Series 4 the Modbus interface is simply just another application program. We don't build it in because it ain't worthy.
Also, if you go to monitor an input with Modbus you have to poll for the current state. You then waste a ton of resources repeatedly checking the input state. You never feel that you are checking often enough and generally are never going to be happy with the response to an input change.
The JNIOR Protocol (binary) or the built-in Websockets interface (JSON) both provide a means to subscribe to an input. The JNIOR then sends a message when and if the input state changes. This eliminates polling and you are alerted to an input change very promptly. Of course, one needs to program the client side for those protocols. We would support you in that endeavor.
We can easily accommodate new protocols in the JNIOR. An example is the latest MQTT work that Kevin has been doing. Since the JNIOR can make the necessary secure outgoing connections we have been successful in working with Amazon AWS. You can ask Alexa to command your JNIORs. We can demo that at CinemaCon if anyone is interested. I am personally not a fan of the voice interface. It lacks privacy and, really, most of what we all have to do is best handled quietly by pressing a button.
quote: Tony I'd still like to hear from Bruce on my thoughts about adding IR capability....I guess he didn't see my post on 1/4/19. [Confused]
I did see the post. You mentioned the "universal remote" issue which really opens Pandora's Box. I can see a JANOS based (JNIOR's core) product offering something along these lines. Our user programming capabilities would allow an integrator to accommodate almost any unique theater control requirement in whatever setting. We need to discuss this off-line so we could come to some agreement on the scope of such a thing. Perhaps there is another product out there that comes close but could use our touch that can serve as a reference point. I know that I personally could use it in my home. I can see 6 controllers from where I am sitting right now.
| IP: Logged
|
|
|
|
|
|
|
|
Marcel Birgelen
Film God
Posts: 3357
From: Maastricht, Limburg, Netherlands
Registered: Feb 2012
|
posted 01-29-2019 04:46 PM
I've been using MODBUS driven Digital Outputs that allow you to enable a diode via DIP switch per output, to avoid arcing. With the right power supply, their output is also sufficient to drive almost all DC power relays I've encountered. Maybe dip-switchable diodes is a possible solution for the JNIOR too.
quote: Bruce Cloutier If none of that floats your boat you can create simple Java programs in any available IDE. Build your project against the JanosClasses.jar runtime and it will run on the JNIOR. You can run several applications simultaneously.
Maybe you should try to target the JNIOR more at the homebrew domotics and automation market? The same market that currently is stuck with Arduinos and RasPIs? Only now, you get a platform that can run actual Java code and useful interfaces with the rest of the world.
For me, personally, the primary problem is time. Often being occupied with lots of concurrent stuff, I don't have the time to start another development project.
What I try to get across, why I like the Alcorn McBride WinScript stuff is, because they provide me with a set of tools that get me up-and-running in no-time. There really is no need for me to learn yet another API, to get an IDE running, to compile stuff, etc. If someone could replicate a similar experience on a budget, I'm pretty sure the market would be up for grabs.
The amount of automation around us is only increasing every day, but the amount of competent developers isn't steadily increasing. Therefore we need the tools to let half-competent script-warriors to do the job too.
quote: Bruce Cloutier I would avoid MODBUS if for no other reason than the lack of security. The JNIOR provides for a means to implement a login on a Modbus connection but that requires customization on the client side where most use off-the-shelf software that cannot support the login.
Well, yes, I would love to avoid MODBUS, even though my own house is still strung together with MODBUS.
But, let me try to get my message across, for what it's worth. I'm really looking forward to a system that lets me (securely) string together a whole "universe" of input and output modules, all simply connected by Ethernet or even better, simply by IP, where I can thread my input and outputs in my "program" or "script" like they were locally connected.
If such thing could even work "event driven", so I don't need to constantly poll for a certain value, that would be even greater.
But I really don't want to write code that deals with sockets, queues and all the nitty-gritty low level communication protocols out there, it should just work seamlessly: I connect my slave modules over IP to the master and once they're registered on the "master", the inputs and outputs are available, like they're local GPIO. The communication between the "master" and the "slaves" should be transparent for me.
| IP: Logged
|
|
Tony Bandiera Jr
Film God

Posts: 3067
From: Moreland Idaho
Registered: Apr 2004
|
posted 01-30-2019 11:24 AM
quote: Marcel Birgelen But, let me try to get my message across, for what it's worth. I'm really looking forward to a system that lets me (securely) string together a whole "universe" of input and output modules, all simply connected by Ethernet or even better, simply by IP, where I can thread my input and outputs in my "program" or "script" like they were locally connected.
If such thing could even work "event driven", so I don't need to constantly poll for a certain value, that would be even greater.
But I really don't want to write code that deals with sockets, queues and all the nitty-gritty low level communication protocols out there, it should just work seamlessly: I connect my slave modules over IP to the master and once they're registered on the "master", the inputs and outputs are available, like they're local GPIO. The communication between the "master" and the "slaves" should be transparent for me.
AMX and Crestron already do that.
The issue with those two companies (and it's not necessarily a bad thing) is that the hardware is proprietary to them and not universal like some ethernet based hardware.
Legacy AMX hardware used Axlink (2 data, 2 power in a "special" cable.) Crestron uses Cresnet (same type of cable, different comm protocol). AMX has moved on to Netlinx which uses CAT 5e for power and comm. (Fun note, Crestron has a special CresNet block to terminate multiple cables with a very naughty part name. Let's just say that the abbreviation for CresNet is CNT ..you figure out the rest.)
Both systems have the ability to "talk" to the outside world via relays, IR emitters, serial data and ethernet. They have a host of other modules to also do 0-10v control (you can set up a fader for a CP-55/65/200 with it), 4-20ma process control and more. AMX's Axcess Card cage masters also had input cards for temperature, and DMX output cards to control theatrical lighting.
The programming platforms are different between the two as well.
AMX Legacy was a strictly "line-based" code (vaguely similar to C++) that is extremely versatile. I literally can create my own programs easily and never had to take AMX's courses. (I started by editing existing programs and moved on from there.) Both University screening rooms I did used legacy systems and code I wrote from scratch.
AMX Netlinx is similar, but offers a few pre-programmed "modules" of code to make programming faster. To build a program it is a hybrid of line-oriented and object based coding. I haven't had the time to do any Netlinx programming yet..I do have a controller that will be replacing my Axcess controller here in my house, when I get around to writing the code.
Crestron uses a very object oriented programming protocol, which I never really got good at. It is done on blocks of code, and you link the blocks together to get your finished program. I worked with a programmer who was a true wizard with it, he could write and debug at an impressive speed.
Both systems have compilers that take care of getting the code formatted to work with the master. Both work very well, but are not foolproof. You CAN successfully compile codes with errors that have adverse effects on the desired outputs.
The worst experience I encountered with that little "gotca" was a screening room setup with two screening rooms and four projectors running on one master. An error in my code caused the "Changeover OPEN Rm1 P1" caused the other three changeovers to get open AND close commands at the same time. Oops. Luckily I was able to clear the error before frying the changeovers. And each relay set did have the mutually exclusive code to keep that from happening. (still trying to figure out how my mistake made the system ignore that exclusive part of the code.)
One trick that is cool is you can talk from Amx to Crestron and vice-versa via RS 232 if both systems have the appropriate code. I did that at the Academy (Oscars) theatre to control the four way masking. (I have not used any of the latest from both manufacturers, but it should also be possible to do this via ethernet.)
Both systems can be event driven (AMX refers to it as a "System Call") to simplify the code and make the operation more robust.
As for physical security, both systems have that pretty well locked down. You not only need bus/network compatible devices physically connected (though both offer wireless connectivity) but you would need to have the master code programmed to communicate with the rogue device..otherwise it is simply ignored. To get into the master code, you would need the system's complier/editor software, AND (in the case of AMX) the "source code" to be present in the master. (AMX legacy has the option to "load with Source Code") and if you don't do that, the only way you can edit anything is if you have the source code saved on your computer. Otherwise you're screwed. A certain programmer had the habit of uploading without including source code and it bit him and me more than once.
| IP: Logged
|
|
|
|
|
|
All times are Central (GMT -6:00)
|
This topic comprises 3 pages: 1 2 3
|
Powered by Infopop Corporation
UBB.classicTM
6.3.1.2
The Film-Tech Forums are designed for various members related to the cinema industry to express their opinions, viewpoints and testimonials on various products, services and events based upon speculation, personal knowledge and factual information through use, therefore all views represented here allow no liability upon the publishers of this web site and the owners of said views assume no liability for any ill will resulting from these postings. The posts made here are for educational as well as entertainment purposes and as such anyone viewing this portion of the website must accept these views as statements of the author of that opinion
and agrees to release the authors from any and all liability.
|