Getting Started with Commander Environment
Introduction
Commander is a versatile environment which enables developers to create a full projects on BBM display modules that can be controlled by simple serial commands. You can quickly create a project from a selection of predesigned pages or custom pages designed using the other three Mates Studio environments.
After adding pages to the project and uploading to the BBM module, each page can be tested fully by using a built-in host simulator. This simulator provides a simple user interface to navigate across pages and control the widgets to give a visualization of what the host controller can do with the project. All this can be achieved without entering a single piece of code for the BBM module and in many cases, with the vast library of predesigned pages, no need for any design work to quickly bring projects to life ready to accept simple serial commands from the chosen host microcontroller.
Project Development
Start a new Commander project for the target module. For this tutorial, TIMI-96 in it's default orientation will be used.
After selecting the product, you need to select the environment.
Click on the Commander Environment button to open with the Commander Environment blank project window.
Adding Pages
A project can consist of one or more pages and you can select each page individually. In this tutorial we will be creating a two-page project selecting ready-made pages from the many categories available.
As this is a new project, the panel on the left has a single rectangular button with a '+' symbol that matches the chosen orientation of the TIMI module.
Move your mouse pointer over the button and click on BROWSE LIBRARY to open the SELECT PAGE(S) FROM LIBRARY window.
Click on the Environmental tab and select from the list, the Temperature Humidity with Text areas page. Click on CONFIRM.
The selected page, page 0, has now been added to the project. The right-hand panel has now been populated with full details of the widgets used on the page along with suggested MCU library commands to control the pages via the MCU host. This information is extremely useful in the preparation of your own code if needed.
To add another page, click on the '+' (BROWSE LIBRARY) rectangular button.
Click on the Audio tab, then Media Spectrum L to R followed by CONFIRM.
The 2nd page, page 1, has now been added to the project. The full details of the widget used in page 1 are populating the right-hand panel. The project is now complete and ready for uploading to the display.
Deploying the Project
In order to control the individual widgets and change page using the Commander environment, the project needs to be uploaded to the BBM TIMI-96 Module.
Start the process by ensuring the correct com port is selected, then click on the Upload Project button.
You will be prompted to save the project. Enter a project name and then click on Save to continue the Upload.
Click on Proceed
When the Upload procedure has finished the display will be showing page 0 with all widgets at their default state.
Testing the Project
Now that the project is running on the display, you can change the Commander environments mode to Control mode by clicking on the Control tab.
The Commander screen will then change to the control layout.
The control layout shows the page selection panel on the left, the current page and respective widget value controls in the middle, and followed by the Serial communications panel on the right which will be empty as the display is not presently connected.
Click on Connect.
The Led to the left will illuminate and the Commander environment will start communicating with the display.
Immediately, you will notice that the display carried out a reset procedure and page 0 returns shortly after. The serial communications panel will start displaying serial communications. If device connected successfully, you will receive a Device is ready message followed by the value 06.
Note
The value of 06 is an important acknowledgement from the display which indicates that the display is ready to receive commands.
Now that the display is ready to accept your serial commands,you can enter the values directly into the widget value controls. The display will show all the changes you make.
Enter a value of 50 in MediaGauge0 and click on SET.
You will notice the gauge will change to a midway position based on the minimum and maximum values, as shown in the table below.
If you click the Play button on the widget value controls, it will cycle through all values from minimum to maximum showing the gauge sweeping through its range.
You can change the text in the text areas by typing in the new text and clicking SET.
You will notice that the communication panel has recorded all serial messages back and forth.
To change page from Page 0 to Page 1, click on the Page 1 button in the left-hand panel.
The page will display Page 1 with its widget input controls.
All spectrums, regardless of the amount of bars will only have a single widget input control but contain a 2nd value to set the required bar with a value.
In this page, bar 3 will be the 4th from the top. Setting the 1st value to 3 and the 2nd value 100 will set the bar to full sacale on the display.
Click on the Play button to create a random effect on the spectrum.