I recently found this great app, StageCaller, to make your iPhone or Android ring when triggered by MIDI or OSC commands. It also has a heartbeat function for monitoring.
I made a monitor to listen for the heartbeat using Max 6.1.9. I added a simple cue start/stop firing option and an arm/disarm option. I also added to ability to receive via the heartbeat OSC string the time interval for the heartbeat, a name for the device (so you know you’re listening to the correct phone) and the last octet of the phone’s IP address. The first 3 of the IP are derived from the computer on which the monitor’s running (assuming you are on a 24-bit subnet – probably safe in many cases…). It can be run on Max Runtime
There’s also an option to hide the cue firing functions so it’s just a monitor.
This patch requires the external object, OSC-route from Berkeley University, which I’ve included, but please see the link for the most recent version, documentation and lots of other great objects.
Configuring heartbeat string in StageCaller:
OSC:/heartbeat is the default, which will work, but the monitor needs to know the time interval to expect.
OSC:/heartbeat/INTERVAL/PHONE_NAME/LAST_IP_OCTET can be used to pass the time interval, arbitrary device name, and last octet of phone’s IP address (assumes the first 3 are the same as the monitoring computer, i.e. a subnet mask of 255.255.255.0).
Example: OSC Message: /heartbeat/10/Andrew/102
If you have multiple devices with the augmented heartbeat string configured, you can simply change the heartbeat monitoring port number (in the purple box) and the monitor will be configured to listen and send basic messages after receiving a heartbeat.
Use the “fire cue number” selector to set a cue number. Click the green or red buttons beneath to start or stop a cue of the chosen number (stop cues have to be explicitly activated in the StageCaller Action setup). This can be used to test the connection, or to fire the cues in the event you have don’t have QLab or don’t have version 3 yet.
“Arm/Disarm” uses the StageCaller default OSC message number 99 start and stop to arm and disarm StageCaller.
The bottom, lefthand, yellow box displays the computer’s IP address (allows you to choose the correct network interface if needed) and based on that constructs the first 3 octets of the StageCaller device’s IP address. If the checkbox is ticked, the 4th will be updated automatically by a heartbeat string that includes the device’s 4th IP octet.
An error counter is provided to help troubleshoot connection problems.
Download Monitor patch here:
I’m going to request that StageCaller add an option to optionally automatically include these things in the heartbeat string to reduce configuration mistakes. I’d also like to see the Arm/Disarm status to be sent via OSC in the event of a change or with the heartbeat. I would think it would be relatively easy since the heartbeat function is already there.
I am sharing this patch in accordance with the GNU General Public License