RS232

From A-SMIL.org
Jump to: navigation, search

For advanced RS232 supported SMIL media appliance, such as IAdea XMP-6400, supports the following SMIL extension to send serial command through RS232 interface.

Configuration in <HEAD> section

Sample SMIL syntax

    <head>
        <metadata>
            <x-rs232>
                <baudrate>9600</baudrate>
                <repeatCount>1</repeatCount>
                <repeatInterval>0</repeatInterval>

                <control id="display.power.on">
                    <command>899s!001</command>
                    <repeatCount>2</repeatCount>
                    <repeatInterval>200</repeatInterval>
                </control>
				
                <control id="display.power.off">
                    <command>899s!000</command>
                    <repeatCount>1</repeatCount>
                    <repeatInterval>500</repeatInterval>
                </control>

                <control id="foo">
                </control>

            </x-rs232>
        </metadata>
    </head>

Send serial control command in playlist

 <seq repeatCount="indefinite">
           <img src="foo" dur="5s" />
		<ref src="adapi:x-rs232">
			<param name="control" value="display.power.off" />
		</ref>
		<ref src="adapi:x-rs232">
			<param name="control" value="display.power.on" />
		</ref>
           <img src="bar" dur="5s" />
        </seq>

Related