Summary of Contents for Diamond Systems DS-MPE-CAN2L
Page 1
PCIe MiniCard Dual CAN 2.0 Port Module Rev A.0 April 2014 Revision Date Comment 4/25/2014 Initial release Copyright 2014 FOR TECHNICAL SUPPORT Diamond Systems Corporation PLEASE CONTACT: 555 Ellis Street Mountain View, CA 94043 USA support@diamondsystems.com Tel 1-650-810-2500 Fax 1-650-810-2525 www.diamondsystems.com...
Writing a Message ............................12 Viewing Messages ............................13 How to configure and manage the ports using software ................15 API to Configure and Manage CAN ports....................15 10. Specifications ..............................19 www.diamondsystems.com DS-MPE-CAN2L User Manual Rev A. Page 2...
The list here describes common causes of failure found on boards returned to Diamond Systems for repair. This information is provided as a source of advice to help you prevent damaging your Diamond (or any vendor’s) embedded computer boards.
2. INTRODUCTION 2.1 Description DS-MPE-CAN2L implements a CAN protocol bus controller that performs serial communications according to the CAN 2.0A and CAN 2.0B specifications. The protocol uses a multi-master bus configuration for the transfer of frames between nodes of the network and manages error handling with no burden on the host processor.
4.2 Mechanical Board Drawing The DS-MPE-CAN2L conforms to the PCIe MiniCard electromechanical specification revision 1.2, full size format. Overall dimensions are 50.95mm L x 30.00mm W. The two mounting holes are isolated from the CPU ground and not connected to any ground lines.
To install the DS-MPE-CAN2L, fully insert the board into a PCIe MiniCard connector and secure in place by inserting one screw from the hardware kit into each of the mounting holes, see the diagram below.
6. CONNECTOR PINOUT AND PIN DESCRIPTION 6.1 PCIe MiniCard Edge Connector (J1) The DS-MPE-CAN2L module is compatible with the standard Mini PCIe socket pinout as shown below. WAKE# +3.3VAUX_3 COEX1 GND9 COEX2 +1.5V_1 CLKREQ# UIM_PWR GND1 UIM_DATA REFCLK- UIM_CLK REFCLK+...
7. JUMPER CONFIGURATION The DS-MPE-CAN2L module has two line termination jumper blocks, one for each port. Jumper block J3 is for port J4, and jumper block J6 is for port J7. Jumper blocks J3 and J6 are identical. The default is no jumpers installed.
Baud Rate drop-down menu. After selecting the desired baud rate, press “Connect” to connect with specified baud rate as shown in below figure. To change the baud rate, click on “Disconnect” and select a new baud rate. www.diamondsystems.com DS-MPE-CAN2L User Manual Rev A. Page 10...
8.3 Setting the CAN ID and Message Length Set the CAN ID and CAN message length for each CAN port by entering the desired numbers into the ID and Len fields respectively for that port. www.diamondsystems.com DS-MPE-CAN2L User Manual Rev A. Page 11...
Data (Hex) fields, and click on “Write Message”. To transmit a different CAN message to the same CAN ID, change the CAN message to the desired data, and click on “Write Message”. www.diamondsystems.com DS-MPE-CAN2L User Manual Rev A. Page 12...
8.5 Viewing Messages Transmitted messages are listed in the CAN message box for the sending CAN port as shown in below figure. www.diamondsystems.com DS-MPE-CAN2L User Manual Rev A. Page 13...
Page 14
Received CAN messages are listed in the CAN message box for the CAN port receiving the message as shown in below figure. www.diamondsystems.com DS-MPE-CAN2L User Manual Rev A. Page 14...
CAN#1\n") ; exit(0) ; Baud rate configuration. set_baudrate() : This function will configure the baud rate for the specified CAN port. By default it will not configure any baud rate. www.diamondsystems.com DS-MPE-CAN2L User Manual Rev A. Page 15...
Page 16
// if the msgType is MSG_EXTENDED then it should be 29-Bit CAN Message ID len = 4 ; // CAN Transmit Data Length data : CAN message data. data[0] = 0x1A ; data[1] = 0xAB ; www.diamondsystems.com DS-MPE-CAN2L User Manual Rev A. Page 16...
Page 17
(i=0; i< dlc; i++ ) printf("%x ", data[i] ) ; printf("\n") ; The sample example programs for both transmit and receive can be found in the CANLib directory for the reference. www.diamondsystems.com DS-MPE-CAN2L User Manual Rev A. Page 17...
Page 18
Compiling CAN Application using CANLib Library Export the Library path using below command. export LD_LIBRARY_PATH=$ LD_LIBRARY_PATH:/path-to-CANLib To compile the application, use the below command. g++ can_app.c -lCAN –L/path-to-CANLib -o can_app www.diamondsystems.com DS-MPE-CAN2L User Manual Rev A. Page 18...
Software drivers Windows XP Linux 2.6.16, 2.6.27, 2.6.31, and 2.6.32 Operating temperature -40°C to +85°C MTBF 1,583,210 hours at 20°C 50.95mm x 30mm (2” x 1.18”) Dimensions Weight 8.5g (0.3oz) RoHS Compliant www.diamondsystems.com DS-MPE-CAN2L User Manual Rev A. Page 19...
Need help?
Do you have a question about the DS-MPE-CAN2L and is the answer not in the manual?
Questions and answers