Professional Documents
Culture Documents
EB647-80-1
E-Blocks Mobile
Comms Bundle
Cover Page
EB647-80-1
Flowcode E-Blocks Mobile
Comms Bundle
Installing Flowcode
Instruction for installing Flowcode can be found inside the installation booklet located inside the
Flowcode DVD case.
Before starting with the course it is recommended to update your version of Flowcode to the lat-
est released version. This allows for the latest bug fixes and components to run on your ma-
chine. The latest version of Flowcode can be found by visiting the Matrix Multimedia website
and clicking on the Flowcode page.
http://www.matrixmultimedia.com/Flowcode3a-X.php
The online course is available from the learning centre on our website or by visiting the following
address:
http://www.matrixmultimedia.com/lc_microcontroller.php
Flowcode Examples
A number of pre-made example files are available for download from the main Flowcode page
on the Matrix Multimedia website. These files are also located on the Flowcode CD. Before the
example files can be used you must first copy them into a folder on your hard drive.
The example programs referenced in this bundle can be found at the following web address:
http://www.matrixmultimedia.com/lc_bundle_manuals.php
Or by clicking the bundle manuals link from the Learning Centre area of our website.
Flowcode Help
There is a help file available that covers all the main features of Flowcode. This help file can be
accessed by clicking the question mark icon in the main Flowcode toolbar or alternatively click-
ing the help menu and selecting contents.
There are also help files available for each and every component in Flowcode which explain the
functionality of the component and the component macros. The component help files can be
found by selecting the component on the panel and the clicking the Help button in the properties
toolbar.
General Support
Support for frequently encountered problems can be found online on our FAQ’s site.
Our online forums can also be used as a general discussion area or for help or advice.
EB647-80-1
Wiring & Testing E-Blocks Mobile
Comms Bundle
To setup your E-Blocks for use with the
example programs you must perform
the following actions:
Before you can begin you must install the driver for the EB006 using the ELSAM CD or by
visiting the Matrix Multimedia website: http://www.matrixmultimedia.com
EB647-80-1
RS232 Component E-Blocks Mobile
Comms Bundle
The Flowcode RS232 component can be added to your program by finding the component in
the Comms section of the Flowcode component toolbar.
Once the component has been added to your program you will find that the RS232 component
icon has been added to your panel.
• Send Char— Transmits a single 8-bit byte over the serial connection.
• Receive Char— Checks to see if a single incoming byte is available. Returns the data if it
is available or 255 if no data was available.
• Receive String—Checks to see if a number of incoming bytes are available. Returns the
data if it is available or a blank string if no data was available.
EB647-80-1
Example 1 E-Blocks Mobile
Comms Bundle
The component macro functions that go with the Flowcode RFID component may not all be suit-
able for your RFID device. Please refer to this list to see if a particular function is available for
the device you are using.
EB647-80-1
Example 1 E-Blocks Mobile
Comms Bundle
Example 1 starts up the GSM modem by sending some basic AT commands and collecting the
response. The INIT_GSM macro is responsible for issuing the following start up commands.
The first command is a simple AT which is used to ensure that the modem is present and com-
municating correctly.
Next we send the command AT+CSMP which is responsible for defining the text mode parame-
ter.
Each command is terminated by issuing a number 13 to represent a carriage return and each
command should be acknowledged by a message “OK”.
Once we have set the modem up ready to send a text message we are ready to start the proc-
ess of sending out the message details to the modem. The SEND_SMS macro is responsible
for passing information to the GSM modem such as the phone number to send the message to
as well as the message itself.
EB647-80-1
Example 2 E-Blocks Mobile
Comms Bundle
Exercise 2 is more advanced text message sending program which allows you to specify both
the mobile phone number and the text data using the keypad E-Block.
If the key is not being held down and there is a valid press
then we check for the “*” or “#” keys being pressed. These
keys have the functionality of finishing or resetting the nu-
meric data entry process. Finally if none of the above are
true then we know that we have a single data byte which
can be added to the array.
EB647-80-1
Example 2 E-Blocks Mobile
Comms Bundle
Once the phone number data buffer and the text message data buffer have been populated we
use the same method as shown in example 1 to forward the data to the GSM modem and in
turn send the message.
Before the message is sent you will be asked to confirm the mobile number and the data that
will be sent. This allows you to ensure that everything is correct before proceeding as we all
know that SMS messages are not free.
Pressing the ‘#’ key allows the program to move onto the next stage.
This program also shows the AT commands on the LCD E-Block as they are being fired out to
the GSM modem. This helps you to see how the data you have entered plug into the commands
that are then passed to the modem.
EB647-80-1
Example 3 E-Blocks Mobile
Comms Bundle
Exercise 3 allows the GSM modem to be used as a phone for voice messages. The phone
number to ring is hard coded into the Flowcode program to allow the device to be setup as say
an auto dial for emergency reasons. A good example of this functionality would be for use with a
fire or burglar alarm system that rings you when an alarm is triggered.
Again we are hard coding the phone number into a byte array.
You could replace this with the function shown in example 2
that allows you to manually enter a phone number using the
keypad.
EB647-80-1
Example 3 E-Blocks Mobile
Comms Bundle
Please note that there are connectors included with the GSM modem that allow you to connect
a stereo headset with a microphone for use with voice communications. If you want to use audio
then you can use the headset included in the kit by plugging this directly into the GSM unit.
EB647-80-1
Troubleshooting E-Blocks Mobile
Comms Bundle
If you are having any problems getting up and running with any of the examples or any of
the Flowcode components then the first port of call is to ensure you have your boards
plugged together and wired correctly. As a rule of thumb any board with a screw terminal
and a +V marking should be connected via a single core wire to the +V screw terminal on
the corresponding Multiprogrammer.
If you do run into any problems then there is help and advice available from our online
user forums located here:
http://www.matrixmultimedia.com/mmforums/
The Articles section contains quite a few examples, as well as hints and tips to aid in your
applications
There is also an online video demonstrating Flowcode, available from the videos
section of our website: http://www.matrixmultimedia.com/lc_videos.php
EB647-80-1
Other Products E-Blocks Mobile
Comms Bundle
Matrix Multimedia is a leading global technology company. Over the years we
have developed a portfolio of award-winning products which have applications
in Education, Industry and in the home.
Learning is at the heart of much of what our company does, and the philosophy
of all Matrix learning products is based on ‘learning by doing’. Each year Matrix
spends around 25% of turnover on research and development to ensure that
our learning and development resources are world class.
MIAC PLC
MIAC (Matrix Industrial Automotive Controller) is an industrial grade control
unit which can be used to control a wide range of different electronic systems
including sensing, monitoring and automotive. It has a number of applications
in industry and learning.
Formula Flowcode
Formula Flowcode is a robot vehicle which is used to teach robotics, and to
provide a platform for competing in robotics events.
ECIO
ECIO devices are powerful USB programmable microcontrollers with either 28 or 40 pin
standard DIL (0.6”) footprints. They are perfect for student use at home, project work
and building fully integrated embedded systems.
FlowKit
The FlowKit allows for in circuit debugging directly from within Flowcode. This
is the same ICD debugging feature that is included with our version 7 EB006
Multiprogrammer boards.