Switching sources in a Just Add Power Multicast Switching system involves changing the multicast IP of the Receiver - called a Channel - to match the multicast IP of the Transmitter it wants to watch.
Changing the Channel in a Just Add Power Multicast Switching system can be done in various ways depending on the needs of the control system or end user.
Please see the article on Multicast Switching for Single VLAN Implementations for information on how to setup the network.
An audio/video signal in a Multicast Switching system is distributed according to the multicast IP assigned to the signal. The full multicast IP is distilled down to a single Channel number for simplicity of programming. Audio and video have separate multicast IPs, making audio and video separately routable.
Each Transmitter has a unique multicast IP that distinguishes it from all other Transmitters on the network.
The multicast IP of a Receiver is altered to match the multicast IP of the Transmitter it wants to watch.
Basic Mode - audio and video switch together (default)
239.92.0.0
239.92.0.0
Advanced Mode - audio and video switch together or separately
239.92.0.0
239.93.0.0
The first 2 octets of the multicast IP must be the same for all devices. The first octet can be changed, but must be the same value on all devices. The second octet is used to distinguish between different services - audio or video - on the same unit.
The second 2 octets are unique to each Transmitter and identify it on the network. They directly relate to the Channel number of the Transmitter.
All commands are case-sensitive.
Set once. All devices must have the same Mode. Audio and video always switch together.
channel mode basic
Set once. All devices must have the same Mode. Allows audio and video to switch separately
channel mode advanced
Set once on a Transmitter. Send to a Receiver to switch audio and video. Variable X is an integer from 0-9999.
channel X
Set once on a Transmitter. Send to a Receiver to switch audio. Variable X is an integer from 0-9999.
channel -a X
Set once on a Transmitter. Send to a Receiver to switch video. Variable X is an integer from 0-9999.
channel -v X
Set IP address, subnet mask, and default gateway for network access. Example uses IP 192.168.254.101, mask 255.255.255.0, gateway 192.168.254.1
astparam s ip_mode static;astparam s ipaddr 192.168.254.101;astparam s netmask 255.255.255.0;astparam s gatewayip 192.168.254.1;astparam save
The full HTTP API for justOS is available at https://justaddpower.docs.stoplight.io/
The web interface only allows Basic Mode options
Set once on a Transmitter. Send to a Receiver to switch audio and video. Variable X is an integer from 0-9999.
On the System tab, Assign Channel and select Apply. Channel is updated immediately for a Receiver, and requires reboot to apply to a Transmitter.
Set IP address, subnet mask, and default gateway for network access. Example uses IP 192.168.254.101, mask 255.255.255.0, gateway 192.168.254.1