Innodisk EGPC-B4S1 User manual

EGPC-B4S1
M.2 2280 to four isolated CANbus 2.0B
User Manual
Rev 1.0

i
2005-2020 © Innodisk Corporation. All Rights Reserved
Copyright Information
2005-2020 ©Innodisk Corporation. All Rights Reserved
Innodisk™ is trademark or registered trademark of Innodisk Corporation.
This document is subject to change and revision without notice. No part of this
document may be reproduced in any form by any photographic, electronic,
mechanical or other means, or used in any information storage and retrieval system,
without prior written permission from Innodisk Corporation.
All other product and brand names in this document are trademarks or registered
trademarks of their respective owners.
版權說明
2005-2020 ©宜鼎國際股份有限公司
Innodisk™ 是宜鼎國際股份有限公司之註冊商標。
本文件得不經通知即更改或修訂。本文件中出現任何文字敘述、文件格式、圖形、
照片、方法及過程等內容,除另特別註明,版權均屬宜鼎國際股份有限公司所有,
受到相關之智慧財產權保護法之保障。任何個人、法人或機構未經宜鼎國際股份
有限公司的書面(包括電子文件)授權,不得以任何形式複製或引用本文件之全
部或片段。
其他出現在本文件的品牌或產品乃歸屬原公司所有之商標或註冊。

ii
2005-2020 © Innodisk Corporation. All Rights Reserved
Revision History
Revision
Date
Description
1.0
2020/06/18
Initial Release

iii
2005-2020 © Innodisk Corporation. All Rights Reserved
Table of Contents
Revision History..................................................................................................................ii
Table of Contents ...............................................................................................................iii
Hardware Installation.....................................................................................................1
Windows OS...................................................................................................................2
2.1. Driver Installation......................................................................................................2
2.2. Loop Back Test Program...........................................................................................3
Linux OS.........................................................................................................................6
3.1. SocketCAN Driver Installation...................................................................................6
3.2. CAN-utils..................................................................................................................9
3.3. Loop Back Test Program.........................................................................................10
Contact us .........................................................................................................................12

1
2005-2020 © Innodisk Corporation. All Rights Reserved
Hardware Installation
Install the module to M.2 B-M key slot which has PCIe interface.
The following picture shows the port order in majority platform.
NOTE: Some platforms may show opposite port order in Windows.

2
2005-2020 © Innodisk Corporation. All Rights Reserved
Windows OS
2.1. Driver Installation
Install EGPC-B4S1 into M.2 B or M key slot of PCIe interface. The two devices named
“CANbus Controller” or “Unknown device” can be found in “Device Manager”.
Run the driver package as administrator.
After installing, please reboot.
After reboot, four CANbus ports can be found in the device manager.
NOTE: Drivers for Windows 64bit need to be signed with digital certificate. The driver is signed with
SHA-2 certificate
Windows 7 must be installed the hotfix KB3033929 to support SHA-2 code signing.
https://technet.microsoft.com/en-ie/library/security/3033929

3
2005-2020 © Innodisk Corporation. All Rights Reserved
2.2. Loop Back Test Program
We provide a loop back test program with source code in Windows to verify the module.
The test program can be configured by edit “setup.ini”. In majority cases, just keep the
default setting.
Please connect any two ports with each other by using an adapter (MINI GENDER
CHANGER) and connect the other two as well. Then run the “EGPC_B4S1_Sample.exe”
directly.
The test program will detect which ports are connected with each other then run the
test automatically.

4
2005-2020 © Innodisk Corporation. All Rights Reserved
When the program is running, for example, CAN1 sends a frame to CAN2, after CAN2
receives the frame CAN2 will check if the frame is correct or not. Then turn to CAN2
sends and CAN1 receives.
If the received CAN port doesn’t receive the frame or the received frame is incorrect, the
program will terminate and show the result is failed.

5
2005-2020 © Innodisk Corporation. All Rights Reserved
Test results will be saved to the following logs.

6
2005-2020 © Innodisk Corporation. All Rights Reserved
Linux OS
3.1. SocketCAN Driver Installation
EGPC-B4S1 uses SocketCAN driver on Linux kernel 2.6.38 and above.
Please follow the steps to install SocketCAN driver.
Use “lspci” command to make sure the device is recognized by OS.
Follow the step below to install the SocketCAN driver.
- Change to root privilege.
- $ sudo su
- Prepare the kernel tree & compiler tools for your distribution.
- $ apt-get update
- $ apt-get install build-essential gcc
- Change directory to the SocketCAN folder, then build SocketCAN driver
- $ make clean; make; make install

7
2005-2020 © Innodisk Corporation. All Rights Reserved
- Module probe
- $ modprobe f81601
- Use the following command to check driver version
- $ dmesg | grep ‘Fintek’
- Use the following command to check CANBUS device is available (can0/… etc.)
- $ ls /sys/class/net/ -al
- Use the following command to start SocketCAN port
(reference script: Linux/SocketCAN/release/start_socketcan.sh)
Ip link set (port name) type can bitrate (baud rate value) sample-point (value)
- $ ip link set can0 type can bitrate 1000000 sample-point 0.75
- $ ip link set can0 up qlen 1000
- $ ifconfig

8
2005-2020 © Innodisk Corporation. All Rights Reserved
The following is the sample point of supported baud rate. Please modify the
sample-point by different baud rate setting.
Baud Rate
Sample-point
1000000
0.75
800000
0.80
500000
0.875
250000
0.875
125000
0.875
100000
0.875
50000
0.875
20000
0.875
10000
0.875
- Repeat the “ip link” command to active all CAN bus ports.
- End can0 (reference script: Linux/SocketCAN/release/end_socketcan.sh)
- $ ip link set can0 down

9
2005-2020 © Innodisk Corporation. All Rights Reserved
- Run the following command in the “release” folder to add/remove boot up script.
- $ chmod +x add_2_boot.sh
- $ ./add_2_boot.sh
- $ chmod +x remove_boot.sh
- $ ./ remove_boot.sh
NOTE: You also can use “start_socketcan.sh” and “end_socketcan.sh” to initial or remove EGPC
SocketCAN driver, please provide the “execute” permission by using “chmod +x” then run the scripts.
3.2. CAN-utils
After SocketCAN setup is finished, you can use open source project “can-utils” to test
by “cansend” and “candump”.
(https://github.com/linux-can/can-utils).
- Install CAN-utils
- $ apt-get install can-utils
- use can0 to send and can1 to receive.

10
2005-2020 © Innodisk Corporation. All Rights Reserved
3.3. Loop Back Test Program
We provide a SocketCAN loop back test program with source code in Linux to verify the
module. Please connect CAN ports the same as the description in “2.2. Loop Back Test
Program”.
The test program can be configured by edit “setup.ini”. In majority cases, just keep the
default setting.
- Change to root privilege.
- $ sudo su
-Change the directory to the “tool” folder and run “Make”.

11
2005-2020 © Innodisk Corporation. All Rights Reserved
-Run the test
- $ ./loopback

12
2005-2020 © Innodisk Corporation. All Rights Reserved
Contact us
Headquarters (Taiwan)
5F., No. 237, Sec. 1, Datong Rd., Xizhi Dist., New Taipei City 221, Taiwan
Tel: +886-2-77033000
Email: [email protected]
Branch Offices:
USA
usasales@innodisk.com
+1-510-770-9421
Europe
eusales@innodisk.com
+31-40-3045-400
Japan
jpsales@innodisk.com
+81-3-6667-0161
China
sales_cn@innodisk.com
+86-755-21673689
www.innodisk.com
© 2020 Innodisk Corporation.
All right reserved. Specifications are subject to change without prior notice.
June 19, 2020
Table of contents
Other Innodisk Control Unit manuals
Popular Control Unit manuals by other brands

Trane
Trane XL824 user guide

Acksys
Acksys WLg-LINK-OEM manual

AXIOMTEK
AXIOMTEK CEM510 user manual

Mitsubishi
Mitsubishi MELSEC Q Series user manual

SABAF
SABAF 46 TECHNICAL CHARACTERISTICS INSTRUCTIONS FOR USE, ASSEMBLY INSTRUCTIONS, MAINTENANCE INSTRUCTIONS

Flowserve
Flowserve Valtek Three-way Installation, operation & maintenance instructions