Mates Studio Commander Editor
Introduction
Mates Studio's Commander is the simplest among all the environments. Providing a simple user interface for simply adding predesigned pages to the project, it allows project development to finish within seconds. It also provides a quick discussion of each page added and all the widgets it contains making it a perfect choice for those who are just starting with BBM products.
Commander environment offers two main parts, a project editor and a host simulator. This manual will focus on the project editor including how to add built-in and custom pages and checking a short documentation for the page.
Main Interface
The main editor interface can be divided into the menu bar and two separate columns.
-
This provides a simple way to add or remove pages to the project
-
This area displays a short summary discussion for all the widgets present in the selected page
Menu Bar
Commander project windows provides a menu bar for basic functionalities including save, compile, upload and more.
From left to right, the menu items included are listed below:
- Project Tab
-
Switches to the project editor. This allows developers to add or remove pages to their project.
- Control Tab
-
Switches to controller interface. This allows developers to simulate how a host controller can communicate with a BBM module programmed with the Commander project.
- Upload
-
Uploads the project to the module connected to the target port
- Create New Project
-
Opens a new Mates Studio setup window
- Open Project
-
Displays an Open File Window to browse the computer for project files
- Save Options
-
Provides a dropdown menu which provides multiple save functionalities
-
Item Description Save Project Save the project Save Project As Save the project with a new filename Export as Architect Project Export the project as Architect with a new filename
- Tools and Configuration
-
Provides a dropdown menu which provides tools and project configuration
-
Item Description Load PmmC Opens the Load PmmC window for updating firmware Reverse Orientation Provides option to reverse module orientation Page Transition Provides option to select transitioning effect (default: None) Baud Rate Provides option to set baud rate for communicating (default: 9600) Runtime Mode Provides option to make widget parameters editable or fixed during runtime (default: Fixed) -
Note
When using any of these tools and project configurations, it is important to reupload the project.
- Software Information
-
Opens the About window showing the version information of Mates Studio
- Port Status
-
Shows whether the display module is connected successfully for the controller interface
- Port Selection
-
Provides a dropdown selection of all available ports. Selected port is used when programming and when using the controller interface
- Port Connect Button
-
Connects to the module for use with the controller interface
- Port Reset Button
-
Reset connection when using the controller interface
Project Editor
The project editor provides a simple interface allowing developers to select and utilize different page designs/layouts from a built-in collection provided by the Breadboard Mates team and its community. This allows users to quickly produce nice looking GUI applications in seconds.
Adding Pages
By clicking the Add Page button, a collection of pre-made page designs can be browsed.
The Page Selection Window will appear as shown:
Page designs can be filtered by choosing the category tabs on the left-hand side. A special category, labeled User, contains custom designs made using Architect, Genius and Builder and is saved to:
C:\Users\%USERNAME%\Documents\Mates Studio Pages
By selecting a page design from the list shown in the middle column of the window, a preview of the page will be shown on the right-hand side.
Multiple page layouts can be selected at the same time by holding CTRL key before clicking the page item.
Confirm selections by clicking on the CONFIRM button.
Alternatively, a Browse Computer option is provided to allow loading of page templates located in other PC directories.
Navigate to the location of the page (matesPage) file.
Confirm selections by clicking on the Open button.
Newly added pages will be added and shown in the project editor.
Removing Pages
Pages not required in the project can easily be deleted by using the delete button included in the page preview shown in the left-hand side of the window.
Page Discussion
A short documentation is also automatically generated for every page that is added. It is displayed in the Page Discussion area.
By clicking on the page items on the project editor, the documentation will update to match the last clicked page item. The discussion generated contains code snippets that can be used together with Mates Serial Command libraries.
Save Options
Save Project
Save projects by clicking the Save icon button and selecting Save Project.
For a new project, a Save Project window will open to request for the location and filename to use when saving.
Save Project As
A previously saved project can also be saved to a different location by selecting the Save Project As option instead.
Export as Architect Project
Commander projects can be exported as an Architect project. This allows users to edit individual widgets from pre-made page designs.
An Export Project window will open to request for the location and filename to use when exporting the project.
Tools and Configuration
This section discusses tools and project configurations which can be used and modified.
Note
When using any of these tools and project configurations, it is important to reupload the project.
Loading (PmmC) Firmware
All BBM products are factory-programmed with the latest stable firmware from 4D Labs. Firmware updates contain improvements and bug fixes. Therefore, it is ideal to load the latest version available during development.
The Commander environment provides a simple way to load any firmware provided with Mates Studio for the target product.
If there’s currently no COM port selected, an error window will be shown prompting to set a COM port before loading the firmware.
Otherwise, the Load PmmC window will open.
As shown, a recommended latest version will be labeled. Click on the target item to select the firmware version.
To proceed with the loading the selected item, click the Upload button.
Wait until the upload finishes.
The window will automatically close a few seconds after the upload completes.
Reversing Orientation
The commander environment only allows inverting a project's orientation.
Since this environment does not provide editing capabilities for widgets, rotating the orientation restricted to 180 degrees.
Page Transitions
Commander environments provides different transition effects. By default, None or no transition effect is applied in a project.
Project Baud Rate
By default, Commander projects use 9600 baud for Mates Serial Command Protocol.
This can be changed by clicking some alternative options as shown.
Runtime Mode
As previously discussed, the Commander environment doesn’t feature design time changes to widgets. Instead, it offers the option to change certain widget parameters during runtime using Mates Serial Commands.
By default, the Commander uses Fixed runtime mode. In this mode, widget colors cannot be modified during runtime. This mode consumes less code space and memory and is more stable than the alternative option.
Running the Project
Identifying the Correct Port
To successfully upload a project, update the firmware and control a programmed display, the correct target port needs to be selected. The easiest way to confirm if you are using the correct port is by opening Window's Device Manager.
Before connecting the module to the computer, open Device Manager. Next, connect the module and the window will refresh.
As shown under Ports (COM & LPT), a device is now connected to COM6. If multiple devices are shown, the device recently added is the correct port.
Selecting the Target Port
After identifying the correct port, the target port for the project can be selected.
As shown above, there is no port detected. By clicking on the dropdown menu, the application will search for connected ports that the target product might be using.
Uploading the Project
After finalizing the project, it can be uploaded to the target device specified by the selected port.
Before uploading, the following needs to be confirmed:
- The port selected is correct and the target product is connected.
- The port selected is not being used by other applications or other Mates Studio windows.
Note
Refer to Establishing Connection section of the Controller Interface for a tip on how to easily confirm that the port is not busy_)
After checking the items above, upload the project by clicking the Upload button.
Uploading unsaved projects will automatically open a Save Project window before the application proceeds with uploading the project to the target device.
The project will be compiled for graphical resources.
Afterwards, an information window containing the compilation results will be shown.
Click Proceed to continue with the upload.
The graphical resources will be uploaded, and the display will be programmed with the Commander project.
Simply wait for the process to finish successfully. Once it completes, the module will show the first Page of the Commander project.
Note
For instructions on how to test the project, please refer to the Controller Interface documentation.
Additional Options
Creating a New Project
The setup window can be opened from a Commander window by clicking the New Project button as shown:
This will open the Setup Window as shown when opening Mates Studio. Please refer to the Mates Studio User Guide for more information.
Opening a Project
An Open Project window can be opened directly from a Commander project by clicking the Open Project button as shown:
This option will open a file selection window for you to find and select a project file to open.
Software Information
The application version can be checked by clicking the button as shown:
This will open a small window containing version and contact information.