
Page 5
Copyright © 2017 Matrix Technology Solutions Limited
www.matrixtsl.com
Language independent, agnostic, language neutral,
platform independent - what do these terms mean?
Basically it means you are not forced to use a certain
programming language or platform to control the MIAC.
This is because the MIAC AllCode offers an Application
Program Interface (API) that enables you to interact with the
MIAC using a set of simple routines or protocols.
If you have not heard of APIs then this section will help
you understand how to make use of it with the MIAC.
One way to explain this is to think about how a TV remote controller works. Although
modern televisions have touch buttons or soft-touch areas along the edges of the screen,
most people find it more convenient to use a remote controller to turn the TV On/Off,
change a channel, adjust the volume or brightness settings, etc.
A TV remote is a very simple device consisting of a keypad
and an infrared light beam. When a button is pressed its
value is encoded and used to send a binary pattern, via the
infrared beam, to the TV. The TV decodes the received
pattern and carries out the required function.
If for some reason the TV remote failed it would be an easy
task to replace it with a new one, or even purchase a
universal remote (if you had a number of devices to control).
There are Apps that can be used to turn smart phones into a TV remote controller and other hardware is
available that can send out TV remote codes. The only critical part is to
send the correct pattern (i.e. command) when it is required.
So you could say the TV has an API that allows a remote controller (whatever form it might
take) to control the intelligence or electronic control systems within the television.
The API, as used on the MIAC AllCode, offers the same platform and language independence as the TV
example described above. The difference is the transmission medium for the MIAC is Bluetooth or Wifi
rather than an infrared beam. This means providing you have a Bluetooth or Wifi facility on your system,
you have the freedom to use your favourite platform and programming language to interact with the
MIAC.
As an example, you might choose to use a Bluetooth enabled mobile phone to control the
MIAC. Alternatively, a Wifi enabled PC/Mac/Raspberry Pi® or a Matrix E-block upstream board would do
the same to create a simple controller.
Language Neutral
Application Program Interface
MIAC AllCode
Instructional Guide
Содержание MI3932 MIAC AllCode
Страница 1: ......