Recent Posts

Pages: 1 ... 3 4 [5] 6 7 ... 10
41
Bug Reports / Execution of bridge commands stuck under some conditions
« Last post by m1k6 on June 04, 2024, 04:26:45 pm »
Hello,
I've noticed the following.
The setup:
There is a bridge with a virtual port, linked to an encoder.

It looks like the execution of the commands sent via the virtual port are stuck, if Magic RDS is not able to respond to at least one connected client (e.g. if the client just connects, sends it's message and immediately disconnects).

For example, this PHP script communicates with the virtual port. For example, to simply send "TA=0" and "TA=1".
Code: [Select]

$rdsmessage = "TA=1";
$fp = fsockopen('127.0.0.1', 10001, $errno, $errstr, 5);
if (!$fp) {
    echo "$errstr ($errno)<br />\n";
} else {
    fwrite($fp, $rdsmessage . "\r\n");
    //usleep(100000); //100ms
    fclose($fp);
}
Without the "usleep"-line, Magic RDS does not react to the message sent. If the line is uncommented, thus the PHP-script waits some time before closing the connection, Magic RDS reacts.
Magic RDS will also react if a new connection is opened or there is still at least one other active connection.

I noticed the same behaviour with a popular playout-software which offers TCP-logging of song information. There, the software also doesn't care about the response, just sends the message and disconnects immediately.

Best regards
42
Release News / Re: Release News
« Last post by Jan on June 02, 2024, 10:14:38 pm »
Version 4.1.11

http://pira.cz/rds/magicrds/MagicRDS_Setup.exe

  • Px64, Px32: Long PS support added to RDS Content - Program.
    FW version required: 2.2f
43
Silence Detector / Re: On screen alert warning
« Last post by Jan on May 27, 2024, 06:05:18 pm »
Nice idea, added to TODO list.
44
Silence Detector / On screen alert warning
« Last post by Bob Hawkins on May 24, 2024, 03:47:02 pm »
Great piece of software but is there a way something big can pop up on a PC screen screaming out ALARM or SILENCE ? Or even the app itself was flashing something more noticeable than a small word that tells if audio is present ?
45
Thank you so much for all your help!
47
If you need to save the text as XML, use this code:

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
   <xsl:output method="xml" indent="yes" />
   <xsl:template match="LogEventCollection">
      <xsl:for-each select="LogEvent">
       <xsl:choose>
       <xsl:when test="@Status='CURRENT'">
         <current>
         <xsl:choose>
            <xsl:when test="@Type='SONG'">
               <title>
               <xsl:value-of select="Asset/@Title" />
               </title>
               <artist>
               <xsl:value-of select="Asset/@Artist1" />
               </artist>
            </xsl:when>
            <xsl:otherwise>
               <xsl:text>FAITH RADIO</xsl:text>
            </xsl:otherwise>
         </xsl:choose>
         </current>
       </xsl:when>
       </xsl:choose>
      </xsl:for-each>
   </xsl:template>
</xsl:stylesheet>

Result:
<?xml version="1.0" encoding="UTF-8"?>
<current>
   <title>New Song 1</title>
   <artist>Artist Name 1 Song 1</artist>
</current>

Can be read by the Magic RDS 4 External text tool.

The code is provided as an example. Further modifications are possible.
48
If you're using the PIRA P132 family RDS encoder (P132, P232, P232U, P332, P164), take advantage of its tagging support. Send RT+ directly. It's fully compatible with RT:

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
   <xsl:output method="text" />
   <xsl:strip-space elements="*" />
   <xsl:variable name="newline">
      <xsl:text>&#13;</xsl:text>
   </xsl:variable>
   <xsl:template match="/">
      <xsl:apply-templates />
   </xsl:template>
   <xsl:template match="LogEventCollection">
      <xsl:for-each select="LogEvent">
       <xsl:choose>
       <xsl:when test="@Status='CURRENT'">
         <xsl:text>XCMD=&lt;rds&gt;&lt;item&gt;&lt;dest&gt;3&lt;/dest&gt;&lt;text&gt;</xsl:text>
         <xsl:choose>
            <xsl:when test="@Type='SONG'">
               <xsl:text>&lt;title&gt;</xsl:text>
               <xsl:value-of select="Asset/@Title" />
               <xsl:text>&lt;/title&gt; - &lt;artist&gt;</xsl:text>
               <xsl:value-of select="Asset/@Artist1" />
               <xsl:text>&lt;/artist&gt;</xsl:text>
            </xsl:when>
            <xsl:otherwise>
               <xsl:text>FAITH RADIO</xsl:text>
            </xsl:otherwise>
         </xsl:choose>
         <xsl:text>&lt;/text&gt;&lt;/item&gt;&lt;/rds&gt;</xsl:text>
         <xsl:value-of select="$newline" />
       </xsl:when>
       </xsl:choose>
      </xsl:for-each>
      <xsl:apply-templates />
   </xsl:template>
</xsl:stylesheet>

Result:
XCMD=<rds><item><dest>3</dest><text><title>New Song 1</title> - <artist>Artist Name 1 Song 1</artist></text></item></rds>
49
Tested it out yesterday - worked very, very well!
You had mentioned other commands - what would those do for us? 
50
RDS Spy / Re: Files plugin doesnt start in Windows 7
« Last post by Jan on May 20, 2024, 03:06:43 pm »
Trying on the same Windows 7 edition, the plugin normally works. I'll try also on another PC later this week. Or has anybody else such experience?

The people involved in the RDS standards creation decided to remove the RPP format and use the more general RFT file transfer format. The RPP was experimental only and its performance was very poor if there were bad blocks in the reception. Pity it took about 10 years to release the final standard, by end of 2023.
Pages: 1 ... 3 4 [5] 6 7 ... 10