Demo-9    <<-BACK            HOME            UP --^           NEXT-->>  Demo-11
side4linux, a simple integrated development environment!

PCBS Demo-10  Talk to the MC-1 CPU via the B2term program to check out the Serial Link.


Purpose: 
Test the Machine Controller MC-1, Central Processing Unit's ability to communicate with the controlling computer using a graphical interface.

Requirements:
Make sure that the latest help packages are installed.

Further Requirements:
Pre-Requisites: Presumes you have a basic understanding of serial communications and do Demo-/3/4/5/6/7/8/9 first. It will pay to read the MANUAL and this paper on SERIAL communications as well.
Preamble:
This is the graphical communication testing practical for the MC-1 CPU Board, it tests the Serial port of your computer and the MC-1 CPU using the graphical B2term communication program provided.

Step-1: Open the Hello Project.

As a first step, connect up all the cables as used in Practical-9 and switch the computer on and then switch the power supply on. Your computer should be still operating normally!

Set your preferences to the Serial port you have used, either '0' for the first serial port or '1' for the second with 'Preferences>IDE>Basic>ComPort'

Bring up the side4linux IDE on your computer and open the test project's 'hello.prf' file,  /SIDE/PRODUCTS/MC1/AVRA/Hello/hello.prf using 'Project>Open Project'  from the Main Menu as follows,

Open Project Hello
Fig-1 Open Hello Project Dialog


OK, now that you have programmed your MC-1 CPU with the 'Hello' program ( Demo-9 ) you can now open the 'b2term' program to communicate with your AVR chip!

Launch the serial graphical communication program as 'Tools>AVRA>AVR MONITOR', you should be greeted by 'sudo's' password dialog similar to the graphic below,

 Sudo Dialog Box
Fig-2 Sudo Dialog Box.

After using your normal password that you signed on with and on clicking the Continue' button you should now have the 'b2term' screen up on your display. If you cannot sign on then perhaps you need to re-read this section on setting Linux user permissions.

Now to set up access to your serial port, click on the 'SetSerial' button and you should be greeted with the message
as follows,

b2term Sign On Screen
Fig-3 b2term sign on screen.

Notice that there are three windows,
  1. Input messages from the MC-1 CPU.
  2. Output messages from the 'b2term' program.
  3. User command entry box for special commands to send to the MC-1 CPU

Notice also that there are three buttons at the bottom,
  1. Send command currently in the entry box ( Window-3 ).
  2. Clear the entry box.
  3. Send the 'reset' command to the MC-1 CPU.

Step-2: Reset 'b2term' to look for the 'sign-on message'.

Click on the 'Reset' button with the left button of your mouse. You should see a 'MC-1 Ver 7.0 -  Hello World!' message from the MC-1 CPU each time you do this as you are toggling the 'Reset' line via the MC-1 Programmer pcb.

Do not try sending the commands listed via the entry box because you will not get an answer! This will need to wait until we put a 'real' program on-board the MC-1 CPU to reply!

Congratulations if you have got this far as this is the end of Demo-10!


In Demo-11 We will complete an interface board to drive some bipolar stepper motors.


We will provide other demos as 'side4linux' develops to cover integration into a real world machine controller.