Skip to content

Preparing for CrestronMobile

jweather edited this page Jun 13, 2013 · 10 revisions

This page will guide you through setting up your GUI to use CrestronMobile.

Configuring your Crestron processors

Add a Crestron Mobile device to the Ethernet slot on your processor. Set port to 50100 and password to 1234 unless you've configured a separate password for CrestronMobile. The project name must be set but is not used. Note that each individual device will need a different port number to connect to.

Configuring iViewer

Create external systems in your GUI

For each Crestron processor you want to connect to, create one TCP external system named "CrestronMobile" in guiDesigner.

guiDesigner's System Manager with one remote Crestron processor configured

Here is a guiDesigner screenshot with the settings you should use. The Connected Join can be left to 0 if you don't need it. Make sure that the EOM and JavaScript Send Handler fields are set to the values shown in the screenshot.

External system configuration in guiDesginer

You also need to create one Feedback Item named "Feedback" for this external system to make sure that the CrestronMobile module receives data from the processor:

Feedback Item for CrestronMobile

Add Javascripts to your GUI

Select the Edit > Project Properties menu item then click the Script Manager button in the dialog box. Click the Add Script button, browse to add the CrestronMobileV3.js file to your project.

If you are using the Configured mode of CrestronMobile (see the Configuration wiki page), make sure you add a separate JavaScript file containing your configuration. It is good practice not to modify the original CrestronMobile JavaScript file, for painless updates.

Ready to roll!

The first time you run your GUI with CrestronMobile and use iViewer's Remote Debugger, you'll see a lot of debugging output appearing in the log. This is normal, CrestronMobile ships with debug messages enabled by default to assist in initial setup and troubleshooting.

Once you're satisfied with the way it works and your GUI is properly configured, turn off the debug flag by editing the CrestronMobileV3.js script and setting debug: false at beginning of the file (look around line 20, or search for the string debug: true).