Diploma In Advanced Digital System Design Project Synopsis Format Project Title:
CAN NODE SIMULATOR
Project Guide:
Mr.Hemant Bhagwat
Project Coordinator: Mrs.Preeti Salunkhe Organization:
MagnaSteyr India Pvt. Ltd
Team Members:
1. Shweta Rajeshirke(06BE539) 2. Muneeswaraiah dama(06BE528)
Aim/Objectives of Project: •
Aim: Developing windows based GUI Exhibiting CAN bus behavior as specified by MSCAN.
•
Objective : -
Developing pseudo hardware layer for MSCAN.
-
C language interpreter.
-
Windows GUI.
Specifications: The simulator will have the windows based GUI. It will be able to display following data - MSCAN control registers. - MSCAN transmit buffer. - MSCAN receive buffer. The input to the simulator can be of 2 types, - The user written program - Directly editing registers through GUI. The
backend
interpreter
interprets
the
user
driver
program or register setting and in response modify the register values as per CAN bus behavior. Also the current working mode of MSCAN is displayed.
Block Diagram : NODE 1
NODE 2
Windows API
Windows API
Source code Interpreter
Source code Interpreter
CAN bus pseudo hardware Layer
CAN bus pseudo hardware Layer
TXCAN
RXCAN
TXCAN
RXCAN
CAN BUS
Description: (i)CAN bus pseudo hardware layer: The MSCAN occupies 64 bytes in the memory space. The pseudo hardware layer design consist of assigning memory for control registers as well as space for receive buffer , transmit buffer for a each node.
MSCAN register Organization
(ii) Source code interpreter: The source code interpreter takes input either from user driver program or GUI registers. It then parses each line, validate register name. If found invalid then log on to error file. If register name is valid then it will check register value for write access, for setting in valid mode. If register value is valid then it will update that register value. If also takes the further action like mode setting, initiating transmission, clearing flags etc.
Register name
User Driver Program
Register value validation Update register value.
Mode setting
source code interpreter (iii) Windows GUIThe windows GUI is developed using Visual Basic 6.0. A generic object register is created which is the backbone of entire system. The register object have following properties.
Name
Type
Description
Caption Value Bit(i)
String Byte Byte : sets or returns
Name of the register Value in the register Interface to access individual
Captions(i)
only values 0 or 1 String(8)
bit of register (i- 0…7) Interface to access name of individual bit of register (i- 0…
rdOnlyBits
Byte
7) 8 bit mask to identify read only
Log
String
bits Redirects current operation status to user defined output stream
Applications: 1.CAN General Test