Moxa TC-SW04-M12-4P-T [26/43] Tc cp02 db t can bus interface
![Moxa TC-SW04-M12-8P [26/43] Tc cp02 db t can bus interface](/views2/1200485/page26/bg1a.png)
TC-6000 Series Expansion Modules Software Installation and Programming Guide
4-6
Now setting is RS422 interface.
ATTENTION
Serial interfaces
will shift device node identifiers depending upon the location and number of cards
mounted in the platform
. E.g. i
f there are originally two cards mounted in the machine, and card number 1 is
removed, then the second card’s
number will change from /dev/ttyM4 to /dev/ttyM7 to /dev/ttyM0
and
/dev/ttyM
3.
If a user wants to configure the machine for fixed serial interface device node identifiers, you can create a UDEV
rule in
/etc/udev/rules.d/. For help with this, you may consult the UDEV manual files, another Linux
manual, or Moxa technical support for more details.
The system default for TC-SP04-DB44-T interfaces is RS-232. By editing the device manager’s rule scripts, it is
possible to set all serial ports to one of the serial protocols (RS-485 or RS-422) instead. The following steps
describe how to do so.
1. Edit Moxa’s custom rules file for the device manager, which can be found at
/etc/udev/rules.d/96-moxa.rules. Add the following command to 96-moxa.rules:
RUN+="/bin/setinterface /dev/ttyM%n 0”
# Set the device, TC-SP04-DB44-T, 0x1393:0x1042 default as 232 mode interface
DRIVERS=="mxser", ATTRS{vendor}=="0x1393", ATTRS{device}=="0x1042",
RUN+="/bin/setinterface /dev/ttyM%n 0"
"96-moxa.rules"
ATTENTION
The
VendorID for the TC-SP04-DB44-T is 0x1393, and the DeviceID is 0x1042.
2. To change the default serial interface mode, edit the setinterface command you have just added to the
Moxa rules file (
/etc/udev/rules.d/96-moxa.rules). This will cause the Linux kernel to automatically
set the TC-6000 series module to your preferred interface at every reboot.
• For RS-232, use
RUN+="/bin/setinterface /dev/ttyM%n 0"
• For RS-485 2-wire, use
RUN+="/bin/setinterface /dev/ttyM%n 1"
• For RS-422, use
RUN+="/bin/setinterface /dev/ttyM%n 2"
• For RS-485 4-wire, use
RUN+="/bin/setinterface /dev/ttyM%n 3"
3. When finished, you must un-mount the writable file system and reboot your computer
Moxa:~# umount /
Moxa:~# reboot
4. Once the computer restarts, confirm that the interfaces have been reset to your preferred interface settings.
Moxa:~# setinterface /dev/ttyM0
Now setting is RS485-2WIRES interface.
TC-CP02-DB-T: CAN Bus Interface
The TC-CP02-DB-T module provides TC-6000 series computers with a CAN bus interface. CAN is a broadcast
serial bus standard for connecting electronic control units (ECUs). Each node is able to send and receive
messages, but not simultaneously: a message (consisting primarily of an ID—usually chosen to identify the
message-type/sender—and up to eight message bytes) is transmitted serially onto the bus, one bit after
another. This signal-pattern codes the message (in NRZ) and is sensed by all nodes.
The Moxa TC-CP02-DB-T module provides the CAN bus interface for industrial CAN communication. TC-6000
series computer provide the SocketCAN interface for industrial CAN communication. The SocketCAN concept
Содержание
- First edition july 2014 1
- Tc 6000 series expansion modules user s manual 1
- Www moxa com product 1
- Copyright notice 2
- Disclaimer 2
- Tc 6000 series expansion modules user s manual 2
- Technical support contact information 2
- Trademarks 2
- Www moxa com support 2
- Table of contents 3
- Introduction 4
- Available modules 5
- Overview 5
- Package checklist 5
- Tc 6000 series expansion modules introduction 5
- Can interface 6
- Environmental limits 6
- Mini pcie card 6
- Physical characteristics 6
- Serial communication parameters 6
- Serial port interface 6
- Tc 6000 series expansion modules introduction 6
- Tc 6000 series module specifications 6
- Tc cp02 db t specifications 6
- Tc dk10 t tc dk20 t specifications 6
- Tc sp04 db44 t specifications 6
- Environmental limits 7
- Ethernet interface 7
- Physical characteristics 7
- Sata interface 7
- Tc 6000 series expansion modules introduction 7
- Tc sata t specifications available on request 7
- Tc sw04 m12 4p t tc sw04 m12 8p t specifications 7
- Hardware introduction 8
- Appearance 9
- Tc 6000 series expansion modules hardware introduction 9
- Tc cp02 db t 9
- Tc dk10 t tc dk20 t 9
- Tc sp04 db44 t 9
- Tc 6000 series expansion modules hardware introduction 10
- Tc sata t 10
- Tc sw04 m12 4p t tc sw04 m12 8p t 10
- Dimensions 11
- Tc 6000 series expansion modules hardware introduction 11
- Hardware connection description 12
- Installing the tc 6000 series expansion modules 13
- Tc 6000 series expansion modules hardware connection description 13
- Connecting data transmission cables 14
- Rs 232 14
- Rs 422 4 wire rs 485 14
- Tc sp04 db44 t serial port module 14
- Tc 6000 series expansion modules hardware connection description 15
- Tc cp02 db t can bus module 15
- Wire rs 485 15
- Installing cellular modules on the tc dk10 t and tc dk20 t 16
- Tc 6000 series expansion modules hardware connection description 16
- Tc sw04 m12 4p t tc sw04 m12 8p t switch module 16
- Attention 17
- Installing a cellular module 17
- Tc 6000 series expansion modules hardware connection description 17
- Installing the ssd hdd into the tc sata module 18
- Tc 6000 series expansion modules hardware connection description 18
- Tc 6000 series expansion modules hardware connection description 19
- Tc 6000 series expansion modules hardware connection description 20
- Software installation and programming guide 21
- Installation of linux modules using apt 22
- Linux system peripherals programming guide 22
- Prerequisite for installing peripheral modules 22
- Attention 23
- Dev ttym 23
- Installing linux modules from the moxa website 23
- Lib modules 3 4 686 pae updates drivers tty mxser k 23
- Moxa apt get install package name 23
- Moxa apt get remove package name 23
- Moxa dpkg i package file 23
- Moxa dpkg r package file 23
- Mxser k 23
- Tc 6000 series expansion modules software installation and programming guide 23
- Tc sp04 db44 t serial port 23
- Ttym15 23
- Example script 1 setting the baudrate 24
- Example script 2 return the baudrate 24
- Non standard baudrates and baudrate inaccuracy 24
- Tc sp04 db44 t configuring the baudrate 24
- Warning 24
- 1 6 round to the nearest integer to get 7 25
- 1 96 1 25
- 1 then round down to the nearest integer to get 1 25
- Checking current serial settings 25
- Device node dev ttym0 dev ttym15 device node dev ttym0 dev ttym15 25
- Enum 8 25
- Factor 25
- Inaccuracy 25
- Interface no interface no following 25
- Moxa setinterface dev ttym0 2 moxa setinterface dev ttym0 25
- Moxa setinterface dev ttym0 now setting is rs485 2wires interface 25
- Moxa setinterface usage setinterface device node interface no 25
- None to view now setting none to view now setting 25
- Root formula inaccuracy 25
- Set to rs232 interface 0 set to rs232 interface 25
- Set to rs422 interface 2 set to rs422 interface 25
- Set to rs485 2wires interface 1 set to rs485 2wires interface 25
- Set to rs485 4wires interface 3 set to rs485 4wires interface 25
- Setinterfac 25
- Setinterface dev ttym0 0 25
- Setinterface device node interface option 25
- Target non standard baud rate 500 000 25
- Tc 6000 series expansion modules software installation and programming guide 25
- Tc sp04 db44 t configuring serial port modes 25
- Attention 26
- Etc udev rules d 96 moxa rule 26
- Moxa reboot 26
- Moxa rule 26
- Moxa setinterface dev ttym0 now setting is rs485 2wires interface 26
- Moxa umount 26
- Now setting is rs422 interface 26
- Run bin setinterface dev ttym n 26
- Run bin setinterface dev ttym n 0 26
- Run bin setinterface dev ttym n 2 26
- Run bin setinterface dev ttym n 3 26
- Set the device tc sp04 db44 t 0x1393 0x1042 default as 232 mode interface drivers mxser attrs vendor 0x1393 attrs device 0x1042 run bin setinterface dev ttym n 0 96 moxa rules 26
- Setinterfac 26
- Tc 6000 series expansion modules software installation and programming guide 26
- Tc cp02 db t can bus interface 26
- Etc module 27
- Int main void int s 27
- Ip link set can0 up type can bitrate 12500 ip link set can1 up type can bitrate 12500 27
- Lib modules 3 4 686 pae updates drivers net can 27
- Moxa modprobe can moxa modprobe can_raw moxa modprobe can_bcm 27
- Proc net ca 27
- Tc 6000 series expansion modules software installation and programming guide 27
- Tc cp02 db t configuring the socket can interface 27
- Tc cp02 db t driver installation 27
- Tc cp02 db t sample script for the socketcan api 27
- Mpcie power 0x27 1 0 30
- On off flag 30
- Tc 6000 series expansion modules software installation and programming guide 30
- Tc dk10 t tc dk20 t configuring power controls 30
- Tc dk10 t tc dk20 t mini pcie interface 30
- Warning 30
- Attention 31
- Tc 6000 series expansion modules software installation and programming guide 31
- Tc 6000 series expansion modules software installation and programming guide 32
- Tc sp04 db44 t driver installation 32
- Windows system 32
- Tc 6000 series expansion modules software installation and programming guide 33
- Tc sp04 db44 t configuring serial port mode 33
- Tc 6000 series expansion modules software installation and programming guide 34
- Tc 6000 series expansion modules software installation and programming guide 35
- Tc 6000 series expansion modules software installation and programming guide 36
- Tc 6000 series expansion modules software installation and programming guide 37
- Tc cp02 db t driver installation 37
- Tc 6000 series expansion modules software installation and programming guide 38
- Moxa can bus library 39
- Tc 6000 series expansion modules software installation and programming guide 39
- Tc cp02 db t can module programming guide 39
- Tc 6000 series expansion modules software installation and programming guide 40
- Tc 6000 series expansion modules software installation and programming guide 41
- Tc dk10 t tc dk20 t enabling disabling usb socket 41
- Tc 6000 series expansion modules software installation and programming guide 42
- Attention 43
- Tc 6000 series expansion modules software installation and programming guide 43
Похожие устройства
- Moxa TC-SW04-M12-4P-T Технические характеристики
- Moxa TC-SW04-M12-8P Инструкция по эксплуатации
- Moxa TC-SW04-M12-8P Технические характеристики
- Moxa TC-DK10-T Инструкция по эксплуатации
- Moxa TC-DK10-T Технические характеристики
- Moxa TC-DK20-T Инструкция по эксплуатации
- Moxa TC-DK20-T Технические характеристики
- Moxa EXPC-1519-C1-S1-T Инструкция по эксплуатации
- Moxa EXPC-1519-C1-S2-T Инструкция по эксплуатации
- Moxa EXPC-1519-C1-S3-T Инструкция по эксплуатации
- Moxa EXPC-1519-C7-S3-T Инструкция по эксплуатации
- Moxa EXPC-1519-C7-S2-T Инструкция по эксплуатации
- Moxa EXPC-1519-C7-S1-T Инструкция по эксплуатации
- Moxa EXPC-1319-STS-W7E Инструкция по эксплуатации
- Horizont 32LE3181 Руководство по эксплуатации
- Horizont 43LE5173D Руководство по эксплуатации
- Horizont 32LE5161D Руководство по эксплуатации
- Horizont 49LE5161D Руководство по эксплуатации
- Horizont 15LE3416 Руководство по эксплуатации
- Horizont 19LE5206D Руководство по эксплуатации