Difference between revisions of "How To trigger Relays using metadata"

 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
==TRIGGER A RELAY ON STREAMING CLIENT USING METADATA==
===TRIGGER A RELAY ON STREAMING CLIENT USING METADATA===
Using Streaming Client firmware and Exstreamer devices that embeds relays (Exstreamer 110, 120, 500, 1000) it's possible to drive the relays using special METADATA strings.
The state of relays is mapped in binary form with ASCII 'A' values (65) as offset.


To send metadata to the Instreamer for inclusion with the stream, please use the E= command.
all relays OFF: 0000 --> ASCII 'A'


In order to trigger the Relays on the device running the Streaming Client FW you have to issue the following command on the source
relay 1 active: 0001 --> ASCII 'A' + 1 = 'B'


"E=StreamUrl='X'
relay 2 active: 0010 --> ASCII 'A' + 2 = 'C'
 
relay 3 active: 0100 --> ASCII 'A' + 4 = 'E'
 
relay 4 active: 1000 --> ASCII 'A' + 8 = 'I'
 
all relays ON: 1111  --> ASCII 'A' + 15 = 'P'
 
 
==Exstreamer Configuration==
 
- Streaming Client firmware.
 
- Streaming Settings → 1. URL: http://<ip-instreamer>:<port>/xstream (You can change “xstream”) or http://shoutcast-server/....
 
- I/O Settings → Control Output 1-4: Remote.
 
 
==From Instreamer==


where 'X' is the bit mask for the Relay with offset 'A'
- Instreamer firmware.
i.e. 'A' to turn off all Relays,  ‘B‘ to activate Relay 1 ...


- Streaming Settings → SHOUTCAST/ICECAST SETTINGS → Radio Path → “/xstream”. (You can change “xstream”).


  http://<ip-instreamer>/rc.cgi?E=StreamUrl='A';
- Streaming Settings → STREAMING DESTINATIONS use “Internet Radio”.
 
  http://<ip-instreamer>/rc.cgi?E=StreamUrl='B';


To send metadata to the Instreamer for inclusion with the stream use the E= command.
In order to trigger the Relays on the device running the Streaming Client FW you have to issue the following command on the source:


===Instreamer Configuration===
"E=StreamUrl='X'”


- INSTREAMER firmware.
where 'X' is the bit mask for the Relay with offset 'A'


- STREAMING SETTINGS → SHOUTCAST/ICECAST SETTINGS → Radio Path → “/xstream”. (You can change “xstream”).
  http://<ip-instreamer>/rc.cgi?E=StreamUrl='A';


- STREAMING SETTINGS → STREAMING DESTINATIONS use “Internet Radio”.


===Exstreamer 110 Configuration===
==From Icecast/Shoutcast server==
It's possible to trigger the relay directly from Icecast/Shoutcast server.
On Icecast you can use Update Metadata on Admin Panel, with the command
'''';StreamUrl='P'''


- STREAMING CLIENT firmware.
[[Image:icecast.png|500px]]


- STREAMING SETTINGS → 1. URL: http://<ip-instreamer>:<port>/xstream (You can change “xstream”).
With WINAMP as Shoutcast source it's possible to trigger the relays using the URL field (see below).


- I/O SETTINGS → Control Output 1: Remote.
[[Image:winamp.png|300px]]

Latest revision as of 10:41, 26 May 2015

TRIGGER A RELAY ON STREAMING CLIENT USING METADATA

Using Streaming Client firmware and Exstreamer devices that embeds relays (Exstreamer 110, 120, 500, 1000) it's possible to drive the relays using special METADATA strings. The state of relays is mapped in binary form with ASCII 'A' values (65) as offset.

all relays OFF: 0000 --> ASCII 'A'

relay 1 active: 0001 --> ASCII 'A' + 1 = 'B'

relay 2 active: 0010 --> ASCII 'A' + 2 = 'C'

relay 3 active: 0100 --> ASCII 'A' + 4 = 'E'

relay 4 active: 1000 --> ASCII 'A' + 8 = 'I'

all relays ON: 1111 --> ASCII 'A' + 15 = 'P'


Exstreamer Configuration

- Streaming Client firmware.

- Streaming Settings → 1. URL: http://<ip-instreamer>:<port>/xstream (You can change “xstream”) or http://shoutcast-server/....

- I/O Settings → Control Output 1-4: Remote.


From Instreamer

- Instreamer firmware.

- Streaming Settings → SHOUTCAST/ICECAST SETTINGS → Radio Path → “/xstream”. (You can change “xstream”).

- Streaming Settings → STREAMING DESTINATIONS use “Internet Radio”.

To send metadata to the Instreamer for inclusion with the stream use the E= command. In order to trigger the Relays on the device running the Streaming Client FW you have to issue the following command on the source:

"E=StreamUrl='X'”

where 'X' is the bit mask for the Relay with offset 'A'

  http://<ip-instreamer>/rc.cgi?E=StreamUrl='A';


From Icecast/Shoutcast server

It's possible to trigger the relay directly from Icecast/Shoutcast server. On Icecast you can use Update Metadata on Admin Panel, with the command ';StreamUrl='P

Error creating thumbnail: File missing

With WINAMP as Shoutcast source it's possible to trigger the relays using the URL field (see below).

Error creating thumbnail: File missing