Internet Expansion Module  

Home

 MP3 Audio Machine:

 

 
Multiple Commands
These two buttons do a seach and play or loop all in one.  WEBster's manual goes over them in detail, and here is a copy of the source code that makes each of the buttons work.  Note that each button is surrounded in a form.  All the buttons on this page are based on the sendstring command.  In the source code you can see the required inputs, like form, string, and synfile, and optional inputs like dispresult, responsestring in red.  Their corresponding values, which we have configured for communication with an MP3AM are in green

<form ACTION="/form" METHOD=POST>
<INPUT TYPE="submit" VALUE="Play File 1" tabindex="1"> 
<INPUT TYPE="hidden" NAME="form" VALUE="sendstring">
<INPUT TYPE="hidden" NAME="string" VALUE="1SE<*0d*>PL<*0d*>">
<INPUT TYPE="hidden" NAME="dispresult" VALUE="Sound 1 Played">
<INPUT TYPE="hidden" NAME="responsestring" VALUE="R<*0d*>R<*0d*>">
<INPUT TYPE="hidden" NAME="synfile" VALUE="mp3index.syn">
</form>

 
 
 Single Commands
For more granular control, use these buttons, which break up the commands into pieces.   You can right-click on this page and select View Source to see the specific code for each button, but here is the code for the Loop button below 

<form ACTION="/form" METHOD=POST>
<INPUT TYPE="submit" VALUE="Loop" tabindex="2"> 
<INPUT TYPE="hidden" NAME="form" VALUE="sendstring">
<INPUT TYPE="hidden" NAME="string" VALUE="LP<*0d*>">
<INPUT TYPE="hidden" NAME="dispresult" VALUE="Looping">
<INPUT TYPE="hidden" NAME="responsestring" VALUE="R<*0d*>">
<INPUT TYPE="hidden" NAME="synfile" VALUE="mp3index.syn">
</form>
 
Notice how the string and responsestring values have changed between the buttons that handle search and play in one and these buttons that do single commands.   

 
 
Feedback
The feedback from the unit is displayed below. To do this you insert a tilde (~) character sequence in an HTML comment.<-- ~!--> where ever you want the response to go.  So below, we have included it in the cell just after "Response".  Note that you don't have to have any response from a product you are trying to control.  Simply remove the tilde in this page, and it no longer gives a status.  When you do this you can also remove the optional dispresult and responsestring values from your buttons above.  The resulting code would look like this:

<form ACTION="/form" METHOD=POST>
<INPUT TYPE="submit" VALUE="Loop" tabindex="2"> 
<INPUT TYPE="hidden" NAME="form" VALUE="sendstring">
<INPUT TYPE="hidden" NAME="string" VALUE="LP<*0d*>">
<INPUT TYPE="hidden" NAME="synfile" VALUE="mp3index.syn">
</form>

 Response: