Need some help here please.
We have 9 Hyperdecks which we record 8 camera ISOs and our Program Out of our Carbonite. I've had no problem controlling these with CCs with simple commands such as PLAY, RECORD and STOP.
However, to make life a little simpler, I am trying to program a script in Dashboard to handle the reformatting of the disk. The manual procedure is not a super quick way to do this when you have 9 decks to reformat. With one CC in Dashboard calling the script to reformat all 9, things would be so much nicer and quicker. (I know...I'm a little lazy!)
Ive been using the sendMessageWithResponse command because evidently according to BM documentation, after send the FORMAT: PREPARE: exFAT command, I have to send a followup up command of FORMAT: CONFIRM: (callback response)
I've tried a number of things and get no response. I found an example in another thread on the sendMessageWithResponse and copied it as template and changed where I needed to. Still nothing.
If I remove the termination string, I finally get a bunch of errors in the debug window, so I lean towards the idea I dont have the correct termination string for BM. I cant find it anywhere.
But I could very easily be missing something else. My programming skills in this area are weak, so i am likely doing something else wrong.
Im out of ideas, so turning to this forum for help.
Here is the latest code I've used, again, modeled after sendMessageWithResponse code in another thread.
__________________________________________________
<abs bottom="180" contexttype="opengear" id="_top" keepalive="false" left="880" right="420" top="560" virtualheight="100" virtualwidth="150">
<meta>
<api immediate="true">function callback(success, sentData, result, exception)
{
var resultString = result.map(String);
ogscript.debug('Got success: ' + success + ', sentData: ' + sentData + ', result: ' + resultString + ', exception: ' + exception);
}
function sendInt(value)
{
rosstalk.sendAsBytesWithResponse('10.201.120.18', 9993, value,'0A' , callback);
}</api>
</meta>
<button buttontype="push" height="80" id="132" left="20" name="Hyperdeck Formatting" top="20" width="60">
<task>rosstalk.sendMessageWithResponse('10.201.120.18', '9993', 'format:prepare:exFAT','0A', callback);</task>
</button>
</abs>
------------------------------
Marty Hill
OAK HILLS CHURCH
------------------------------