Home
User`s Manual - Express Systems & Peripherals
Contents
1. Moxa modprobe can Moxa modprobe can raw Moxa modprobe can bcm You may set modules to load automatically at boot by listing them in the etc modules file TC CPO2 DB T Configuring the Socket CAN Interface After the modules have been loaded the next step is to configure the CAN interface and start it as a standard net interface Here s an example with bitrate 12500 ip link set can0 up type can bitrate 12500 ip link set canl up type can bitrate 12500 The SocketCAN information is stored under proc net can you can determine what version is being used by using the cat command Moxa cat proc net can version and return usage operating statistics thus Moxa cat proc net can stats TC CPO2 DB T Sample Script for the SocketCAN API The following code is a working example of the SocketCAN API in use this code sends a CAN packet using the raw interface It is based on the notes documented in the Linux Kernel https www kernel org doc Documentation networking can txt include lt stdio h gt include lt stdlib h gt include lt unistd h gt include lt string h gt include lt net if h gt include lt sys types h gt include lt sys socket h gt include lt sys ioctl h gt include lt linux can h gt include lt linux can raw h gt int main void Lit S 4 7 TC 6000 Series Expansion Modules Software Installation and Programming Guide int nbytes struct sockad
2. 3 and 4 on the TC DK10 T USB 2 0 e Sockets 2 3 and 4 on the TC DK20 T USB 2 0 PCIe V1 0 SIM Card Socket 4 sockets reserved for cellular applications Wireless Antenna Hole 5 reserved for QMA antenna connectors Physical Characteristics Dimensions 186 x 118 x 20 mm 7 32 x 4 65 x 0 79 in Weight 220 g Environmental Limits Operating Temperature 40 to 70 C 40 to 158 F EN 50155 Class TX Storage Temperature 40 to 85 C 40 to 185 F Ambient Relative Humidity 5 to 95 non condensing TC SP04 DB44 T Specifications Serial Port Interface Serial Standards RS 232 422 485 software selectable Connector Type 1 DB44 connector serving all 4 interfaces special cable CBL M44M25x4 50 BK required contact Moxa for details Serial Communication Parameters Data Bits 5 6 7 8 Stop Bits 1 1 5 2 Parity None Even Odd Space Mark Flow Control RTS CTS XON XOFF ADDC automatic data direction control for RS 485 Baudrate 50 bps to 921 6 Kbps non standard baudrates supported see Chapter 4 for details Physical Characteristics Dimensions 186 x 118 x 20 mm 7 32 x 4 65 x 0 79 in Weight 234 g Environmental Limits Operating Temperature 40 to 70 C 40 to 158 F EN 50155 Class TX Storage Temperature 40 to 85 C 40 to 185 F Ambient Relative Humidity 5 to 95 non condensing TC CPO2 DB T Specifications CAN Interface Interface 2 optically isolated CAN 2 0 A B ports Signal CAN H C
3. Isolation Sticker Pin 2 E15 3 s DN uo u ra ra ha hs TC CPO2 DB T CAN Bus Module The TC CPO2 DB T offers two CAN bus ports with DB9 male connectors Use a cable to plug your CAN device into the module s serial port The pin assignments are shown in the following table DB9 Male CAN bus Pinouts m Isolation Sticker qm 1234 5 Do not remove the isolation sticker on the back of the module 3 4 TC 6000 Series Expansion Modules Hardware Connection Description TC SW04 M12 4P T TC SW04 M12 8P T Switch Module The TC SW04 M12 4P T switch module comes with 4 auto sensing 10 100 Mbps switched ports and the TC SW04 M12 8P T switch module comes with 8 Connect one end of the Ethernet cable to the module and the other end to the network or device you wish to add to the network Pin assignments are shown below TC SWO4 M12 4P T TC SWO4 M12 8P T PIN Con 24S TROBE o o EB TRDE 1 4 TRD 1 2 E3 TRDA r Housing shield B rRD2 6 4 TR 8 TRDI3 E TRD2 Installing Cellular Modules on the TC DK10 T and TC DK20 T The TC DK10 T and TC DK20 T have four mini PCIe sockets that allow you to install four cellular modules However they come with different interfaces Check the following table for details TC DK10 T TC DK20 T Mode PCIe V1 0 uss20 n jo lo Before installing a cellular module verify the locations of the mini PCIe sockets on the front side and match
4. Moxa echo deb http debian moxa com debian wheezy main gt gt etc apt source list 3 Update the package list for retrieving the latest package list Moxa apt get update Get 1 http debian moxa com wheezy Release gpg 490 B Hit http debian moxa com wheezy Release Hit http debian moxa com wheezy main i386 Packages Ign http debian moxa com wheezy main Translation en US Ign http debian moxa com wheezy main Translation en Hit http ftp us debian org wheezy Release gpg Hit http security debian org wheezy updates Release gpg Hit http ftp us debian org wheezy updates Release gpg Hit http ftp us debian org wheezy Release Hit http security debian org wheezy updates Release Hit http ftp us debian org wheezy updates Release Hit http security debian org wheezy updates main Sources Hit http ftp us debian org wheezy main Sources Hit http security debian org wheezy updates main i386 Packages Hit http ftp us debian org wheezy main i386 Packages Hit http ftp us debian org wheezy main Translation en Hit http security debian org wheezy updates main Translation en Hit http ftp us debian org wheezy updates main Sources Hit http ftp us debian org wheezy updates main i386 Packages DiffIndex Hit http ftp us debian org wheezy updates main Translation en DiffIndex Fetched 490 B in 2s 195 B s Reading package lists Done 4 Next use apt get search tc6000 to check if your package list has been
5. Serial Port TC CP02 DB T CAN Bus Interface TC DK10 T TC DK20 T mini PCIe Interface O Windows System Y Y V WV TC SP04 DB44 T Driver Installation TC SP04 DB44 T Configuring Serial Port Mode TC CPO2 DP T Driver Installation TC CP02 DB T CAN Module Programming Guide TC DK10 T TC DK20 T Enabling Disabling USB Socket Power TC 6000 Series Expansion Modules Software Installation and Programming Guide Linux System Peripherals Programming Guide Prerequisite for Installing Peripheral Modules Two methods can be used for installing required drivers and utilities One method uses APT for an automated online installation while the other involves downloading the driver from the Moxa website and installing it by hand Installation of Linux Modules Using APT To guarantee you are getting safe software from the correct source Moxa s repository packages are encrypted with a Gnu Privacy Guard GPG key Before installing the modules you should add the Moxa GPG key You can find the GPG key on the product CD or at the Moxa website Upload the key to the TC 6000 and add it with the following command Moxa apt key add MOXA SYS DEBIAN KEY To use APT to download and install software you must first add the Moxa repository to the sources file found at etc apt source list 1 First back up your sources list file Moxa cp etc apt sources list etc apt sources listBAK 2 Add the Moxa repository by using the echo command
6. them to the SIM sockets on the rear If you install a cellular module in socket 1 you will need to install a SIM card in SIM socket 1 Front View Rear View Socket 4 Socket 3 SIM Card gt Socket 4 re SIM Card Socket 3 l SIM Card Socket 2 ty z SIM Card Socket 1 Socket 1 Note that you must specify a different SMBus address for each TC DK01 T TC DK20 T module This is done by adjusting the DIP switch The diagram below shows the location of the DIP switch and provides a table that maps the DIP switch value to the SMBus address it is associated with o o ba o o t ol fol DIP Switch 3 5 TC 6000 Series Expansion Modules Hardware Connection Description ATTENTION You must be sure to set each module s SMBus address to a distinct value Slot Value Address Do not set any cards with duplicate values or you will create unpredictable 1 Ja O26 behavior bugs in your system Installing a Cellular Module A single cellular accessory package includes a cellular module a cellular antenna cable that ends in an F type barrel connector on one and a crimped slider on the other two black screws a locking washer and a nut Follow the steps below to install a cellular module 1 Insert the cellular module into the socket Secure the module with 2 black screws ha B note em g R L vi PCI E Mini card 2 oe oy pea si N7 wew I c z Ae n S 5 E e s001100 210v 1
7. LED indicators To hot swap storage drives you will need to first install the Moxa hot swap software package as described in the TC 6110 software manual Once installed to hot swap a drive you must use a sharp object to push the hot swap button labeled X1 on the front panel map and wait until the L1 LED indicator goes dark indicating the drive has unmounted and is ready for extraction The L3 and L4 LEDs are programmable to be defined by users Refer to the software manual for more details about the Moxa hot swap software package and programming the LEDs The following table describes the functions associated with each LED and button TC 6000 Series Expansion Modules Hardware Connection Description LED Indicator Button Function T On HDD is accessing data Off No activity Heater is on in specific environments Refer to Blink the following conditions inkin e Below 55 C when power is available e Below 15 C when system is on Heater is off Hot swap button for unmounting drives 3 9 4 Software Installation and Programming Guide In this chapter we discuss software installation and programming for the TC 6000 series expansion modules TC SP04 DB44 T TC CP02 DB T and TC DK10 T TC DK20 T The following topics are covered in this chapter O Linux System Peripherals Programming Guide gt gt gt gt Prerequisite for Installing Peripheral Modules TC SP04 DB44 T
8. can ifindex ifr ifr ifindex printf s at index d n ifname ifr ifr ifindex if bind s struct sockaddr amp addr sizeof addr lt O perror Error in socket bind return 2 nbytes read s amp frame sizeof struct can frame if nbytes lt 0 perror Error in can raw socket read return 1 if nbytes sizeof struct can frame fprintf stderr read incomplete CAN frame n return 1 SEINE GSS 03x sd ifname frame can id frame can dlc tor 1 0 1 frame can dlo iT printf 02x frame data i printer yn return 0 4 9 TC 6000 Series Expansion Modules Software Installation and Programming Guide TC DK10 T TC DK20 T mini PCIe Interface NOTE Moxa s TC DK10 T and TC DK20 T support 4 PCIe mini card sockets However they come with different interfaces Check the following table for details Model TC DK10 T TC DK20 T Socket 1 Socket 2 Socket 3 Socket 4 Socket 1 Socket 2 Socket 3 Socket 4 PCIe V1 0 P J i p One Lane You can use at most two TC DK10 T TC DK20 T modules on a TC 6000 train computer and the maximum number of mini PCIe sockets that can be used is eight TC DK10 T TC DK20 T Configuring Power Controls The TC DK10 T TC DK20 T module comes with the capability of automating a device s power state Note however that this function is provided primarily for powering on and off a PCIe module that uses a USB interface It is NOT advi
9. it in amet 3 2 TC 6000 Series Expansion Modules Hardware Connection Description NOTE Note that the TC SATA T storage module can be inserted in slots 1 2 or 3 However slot 3 does not feature the Intelligent Heating Solution IHS In addition except for the TC SATA T storage module other modules do not support hot swap plug function Power off the TC 6000 computer before removing or inserting the modules Connecting Data Transmission Cables In this section we explain how to connect the TC 6000 series expansion modules to devices TC SP04 DB44 T Serial Port Module Use a serial cable to plug your serial device into the module s serial port with DB44 connectors that can serve 4 serial interfaces and can be configured for RS 232 RS 422 or RS 485 communication by software The pin assignments are shown in the following figure and tables mos hs koon s oio 7 fee mexe a mo e e E qe 0m 1 js je Hm mex s ej p oo n 96 woz js lo f TO LEE a E s b jo b B j a Joo 9 eoin 22 eeo 33 on 10 on 22 a u 3 3 TC 6000 Series Expansion Modules Hardware Connection Description 2 wire RS 485 Data3 B Data2 B Data3 A Pin H6 7 18 E C A 21 Data2 A mr jm a3 24 m 27 28 patai 6 NN zs pew Data0 8 I 29 A EE Do not remove the isolation sticker on the back of the module
10. updated Moxa apt cache search tc6000 tc6000 mpcie power utility for control the mini PCIe power status tcoe000 mxser module of MOXA s serial devices tcoe000 qmi modules modules for QMI devices tc6000 setinterface a utility for get or set the mode for serial interfaces 4 2 TC 6000 Series Expansion Modules Software Installation and Programming Guide tc6000 socketcan modules for CAN device using socketCAN The following table shows the packages required for each expansion modules Expansion Module Driver Package Name Utility Packages Name TC SP04 DB44 T tc6000 mxser tc6000 setinterface TC CPO2 DB T tc6000 socketcan MEME TC DK10 T TC DK20 T tc6000 qmi modules libqmi glib1 libqmi utils tc6000 mpcie power After setting up the repository use apt get or Aptitude to install the package Moxa apt get install package name To uninstall the package use the following command Moxa apt get remove package name Installing Linux Modules from the Moxa Website The following table shows the various drivers and utilities required for each expansion module You may acquire these kernel modules from the Moxa website on the TC 6000 Expansion Modules product page which should be at http www moxa com support sarch_result aspx prod_ id 1990 Click into the Drivers link and download the correct kernel module according to the chart below Expansion Module Kernel Module Package Utility Package TC SP04 DB44
11. 9 Ports COM amp LPT Disable H is n Communications Port CON Uninstall Y9 MOXA Communication Port J MOXA Communication Port Scan for hardware changes J MOXA Communication Port 1 MOXA Communication Port POR i d u blox 6 GPS Receiver COM3 Dn Processors amp Ramdisk X Sound video and game controllers 2 System devices Opens property sheet for the current selection m Properties 3 Click the Port Configuration tab select the port and then click Port Setting MOXA CP 104JU Series PCI Bus Properties COM 7 Help Port Info v Set the change to all ports Tx FIFO Level High v Set the change to all ports 4 15 TC 6000 Series Expansion Modules Software Installation and Programming Guide 5 Select the new port name and then click OK MOXA CP 104JU Series PCI Bus Properties Xj v Set the change to all ports ox c File Action View Help eg I B me PRS 4 MOXA DBH5HB81UK 4M Computer p Disk drives ty Display adapters p 5 Human Interface Devices p 4g IDE ATA ATAPI controllers pcm Keyboards p n Mice and other pointing devices D Monitors 4 EP MOXA Embedded Drivers P MxGenerallo PortlO Driver KMDF gt i MOXA Embedded Drivers 4 F Multi port serial adapters MOXA CP 104JU Series PCI Bus 4 EP Network adapters AP Realtek PCIe GBE Family Controller j amp Real
12. AA O6089W wOWlddly SSOJOIIAA BLICIS Vana sdy eu ui apeW DE sININOO TV Q0 28005 gt 60818 9L192 91 ret A O608ISNLN 01 224 ELPLPSOO0L80EL0 131 2 Connect the antenna cable to the module Make sure that the cable has been securely fastened Pi NE ILILDLIEE I A c c cn _ c c c c ey e E n e L US 2 Q e c e a o c z 2 a ELLE ek dm he a SLpLPSO00L80E 0 13M 3 Slide the F type connector of the antenna cable into the antenna hole on the face of the module Slide the locking washer over the barrel connector and then secure the connector to the face of the module using the nut 4 After you have installed the antenna s barrel connector to the face of the module connect the cellular antenna TC 6000 Series Expansion Modules Hardware Connection Description 5 Next insert the SIM card for the cellular module Pull up the SIM card slot and insert the SIM card When finished replace the holder and slide the slot towards the catch to fasten the holder 6 You can use the same procedure to install another cellular module on another socket Installing the SSD HDD into the TC SATA Module Follow these steps to install the SSD HDD into the TC STAT storage module The TC STAT storage module has a double PCB design with an upper PCB and a lower PCB The upper PCB is the module s main board 1 Remove the storage tray from the computer 2 Rem
13. ADISA ERI EIE pRRRpRRA ERE PEDE LER IM D D DEED RE EXER LL ROLURI DERE EUN 2 1 ADDedEIdiJGQ vimini enen e a EEEREN N un v ur Vw Vw VV WE V ANNAN V V V wv E o eNEN 2 2 TES POS DBIA S cea eoo toto a at aea earn ee a omen eee eae cens focu ace d edid fae acm ove LA DAL AH ACIE h EAS 2 2 TOCSCPUSSDBET aoa t tiii E N E MA M AMAA AAA MEA EAM AAT ATE 2 2 TE DRIO REGIB 620 1 m 2 2 TC SWOZJd M12 4P H TIC SWOA M12 GD T cece ccs ees exse rti ende en Euer ca eux ex va Cr xta ede acces eei o nce e eias 2 3 gel spp UEMT 2 3 IBITagr aille RICE Mm 2 4 3 Hardware Connection Description 5 o eua xau nvn n EE Rxx dn YR nnn n REu ERE EEEENKMEE E EER E E EERRREKPEERUREPEREREDMR ECKE nnn 3 1 Installing the TC 6000 Series Expansion Modules c ssseeeeeieeiemeee nh nnnm nnnmmhn hannes anne ann nn 3 2 Connecting Data Transmission Cables 0E eadaoa a em E ee EET ERE EFCIHEER TR E IM A I UH HAS M EUH Rd Edd 3 3 TC SP04 DB44 T Serial Port Module csseeeeesesieeeeeieesnme nean nnne nhanh nnm aaa nnmus uasa sena 3 3 TOSCPOZsDB T CAN BUS MOQUE victori ideae itn ppbUEETRERRAEREERERUEEREEEREE ERI SEEE E idc uidit eu didit 3 4 TC SW04 M12 4P T TC SW04 M12 8P T Switch Module ccccccce cece eee eee mmn mmn nnn nnn 3 5 Installing Cellular Modules on the TC DK10 T and TC DK20O T isssssseeeeeee n nemen hmm 3 5 installing a cellular dodge tth
14. AN L Isolation 2 kV Speed 1 Mbps Connector Type DB9 male Physical Characteristics Dimensions 186 x 118 x 20 mm 7 32 x 4 65 x 0 79 in Weight 227 g 1 3 TC 6000 Series Expansion Modules Introduction Environmental Limits Operating Temperature 40 to 70 C 40 to 158 F EN 50155 Class TX Storage Temperature 40 to 85 C 40 to 185 F Ambient Relative Humidity 5 to 95 non condensing TC SW04 M12 4P T TC SW04 M12 8P T Specifications Ethernet Interface Standard 4 Ethernet M12 switch ports auto sensing 10 100 Mbps TC SW04 M12 4P T or 10 100 1000 Mbps TC SW04 M12 8P T Protection 1 5 kV magnetic isolation protection Connector Type 4 pin M12 D coded 8 pin M12 A coded Physical Characteristics Dimensions 186 x 118 x 20 mm 7 32 x 4 65 x 0 79 in Weight 278 g Environmental Limits Operating Temperature 40 to 70 C 40 to 158 F EN 50155 Class TX Storage Temperature 40 to 85 C 40 to 185 F Ambient Relative Humidity 5 to 95 non condensing TC SATA T Specifications Available on Request SATA Interface Description Hot swappable with 1 storage slot for 2 5 inch HDD or SSD built in vibration protection onboard accelerometer temperature sensor and Intelligent Heating Solution LEDs 4 total 1 for drive activity 1 for heater activity and 2 user configurable Physical Characteristics Weight 393 g Dimensions 186 x 118 x 20 mm 7 32 x 4 65 x 0 79 in Environmental Limits Oper
15. E Please notify your sales representative if the module is damaged en route Available Modules e TC DK10O T 4 PCIe mini card slots with PCIe and USB interfaces on slot 1 and USB interfaces on slots 2 3 and 4 4 SIM card sockets 40 to 70 C operating temperature EN 50155 Class TX e TC DK20 T 4 PCIe mini card slots with PCIe and USB interfaces 4 SIM card sockets 40 to 70 C operating temperature EN 50155 Class TX e TC SPOA DB44 T 4 RS 232 422 485 serial interfaces over a single DB44 connector cable sold separately 40 to 70 C operating temperature EN 50155 Class TX e TC CPO2 DB T 2 optically isolated CAN interfaces with DB9 connectors 40 to 70 C operating temperature EN 50155 Class TX e TC SWO4 M12 4P T 4 port Megabit Ethernet switch with M12 D coded connectors 40 to 70 C operating temperature EN 50155 Class TX e TC SW04 M12 8P T 4 port Gigabit Ethernet switch with M12 A coded connectors 40 to 70 C operating temperature EN 50155 Class TX e TC SATA T Available on request 1 slot carrier module for 2 5 inch SATA mass storage drives with heater vibration protections accelerometer and temperature sensor 40 to 70 C operating temperature EN 50155 Class TX 1 2 TC 6000 Series Expansion Modules Introduction TC 6000 Series Module Specifications TC DK10 T TC DK20 T Specifications Mini PCIe Card Interface 4 sockets total e Socket 1 on both TC DK10 T and TC DK20 T USB 2 0 PCIe V1 0 e Sockets 2
16. E Family Controller 3 a Y Ports COM amp LPT Pod ME Communications Port COMI Pod n MOXA Communication Port 1 COM7 3 MOXA Communicati Update Driver Software i i Xy MOXA Commumnicati md MOXA Communicati 9 u blox 6 GPS Receive 5 3l Processors Disable Uninstall Scan for hardware changes Opens property sheet for the current Properties 3 Click the Port Settings tab and then select the interface you would like to use MOXA Communication Port 1 COM7 Properties COM 7 4 14 TC 6000 Series Expansion Modules Software Installation and Programming Guide In some situations you may want to change the port name to match the name used by your program Take the following steps to change port names 1 Go to Control Panel gt System and Security gt Device Manager gt Multi port serial adapters and select the adapter 2 Right click the adapter and select Properties Device Manage mri S em File en Action es View Help gzitiH a ej uw 4 MOXA DBHSHB81UK 1 Computer gt xc Disk drives VK Display adapters 5 Human Interface Devices cag IDE ATA ATAPI controllers i Z2 Keyboards A Mice and other pointing devices b M Monitors 4 amp MOXA Embedded Drivers MxGenerallo PortlO Driver KMDF AY MOXA Embedded Drivers a Multi port serial adapters Pod Ib d MOXA CP 104JU Series PCI n amp Network adapters Update Driver Software
17. T tc6000 mxser 1 15 21 i386 deb tc6000 setinterface 1 0 i386 deb TC CPO2 DB T ic6000 socketcan 1 0 1386 deb SS TC DK10 T TC DK20 T tc6000 qmi modules_1 0_i386 deb libqmi glib1_1 8 0 1_i386 deb libqmi utils_1 8 0 1_i386 deb tc6000 mpcie power 1 0 i386 deb libffib 3 0 10 3 i386 deb libglib2 0 0 2 33 12 really2 32 4 5 i386 deb To install a package you have downloaded from the website navigate to the directory it is stored in and type Moxa dpkg i package file To uninstall the package use Moxa dpkg r package file TC SP04 DB44 T Serial Port The TC SP04 DB44 T may be accessed over the Linux console as a terminal tty device node The Moxa driver creates a special device node that is identified as a ttyM device The TC SP04 DB44 T device nodes are listed from dev ttyMO to dev ttyM15 depending on how many expansion modules inserted The UART API allows you to configure these device nodes for RS 232 RS 422 4 wire RS 485 or 2 wire RS 485 The serial port kernel module for the TC SPO4 DB44 T is mxser ko and has been pre installed at lib modules 3 2 0 4 686 pae updates drivers tty mxser ko Whenver the module is loaded the serial ports will be automatically enabled whenever the system boots up ATTENTION The maximum baudrate for the serial ports is 115 200 the stock serial ports on the TC 6000 series do not support baudrates beyond this maximum However the serial port expansion module does suppo
18. TC 6000 Series Expansion Modules User s Manual First Edition July 2014 www moxa com product MOXA 2014 Moxa Inc All rights reserved TC 6000 Series Expansion Modules User s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the terms of that agreement Copyright Notice 2014 Moxa Inc All rights reserved Trademarks The MOXA logo is a registered trademark of Moxa Inc All other trademarks or registered marks in this manual belong to their respective manufacturers Disclaimer Information in this document is subject to change without notice and does not represent a commitment on the part of Moxa Moxa provides this document as is without warranty of any kind either expressed or implied including but not limited to its particular purpose Moxa reserves the right to make improvements and or changes to this manual or to the products and or the programs described in this manual at any time Information provided in this manual is intended to be accurate and reliable However Moxa assumes no responsibility for its use or for any infringements on the rights of third parties that may result from its use This product might include unintentional technical or typographical errors Changes are periodically made to the information herein to correct such errors and these changes are incorporated into new editions of the publication Tec
19. a standard baud rate else ioctl fd MOXA GET SPECIAL BAUD RATE amp speed Non Standard Baudrates and Baudrate Inaccuracy Moxa s drivers allow engineers to configure our serial devices for non standard baudrates Theoretically these devices may be set for any baudrate however in practice the only non standard rates that will communicate at the chosen baudrate are whole number factors of the base rate 921 600 bps For any non standard rates that are not a whole number factor of 921 600 there will be some inaccuracy in transmission speed relative to the configured rate Standard baudrates are 50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 19200 38400 57600 115200 230400 460800 and 921600 Moxa s drivers allow for any whole number factor of 921 600 to be used without any performance loss i e inaccuracy or deviation from the TBR in the configured modulation rate To calculate the relative inaccuracy for non standard baudrates that are not a whole number factor of 921 600 use the formula below 4 4 TC 6000 Series Expansion Modules Software Installation and Programming Guide TBR 921600 Factor ENUM 8 TBR 100 Root formula Inaccuracy The variables in this equation are described below TBR The Target Baud Rate i e any non standard baudrate Factor 921 600 TBR rounded down to the integer ENUM 8 921600 Target baudrate Factor Round up or down As an example below we show yo
20. ace The TC CPO2 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 CP0O2 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 4 6 TC 6000 Series Expansion Modules Software Installation and Programming Guide extends the Berkeley sockets API in Linux by introducing a new protocol family PF_CAN that coexists with other protocol families like PF_INET for the Internet Protocol You can use the file control interface to read write or control the CAN interface as a file for easy CAN programming TC CPO2 DB T Driver Installation The drivers for Moxa TC SP04 DB44 T module include can ko can raw ko can bcm ko can dev ko sja1000 ko and plx pci ko These have all been pre installed under lib modules 3 2 0 4 686 pae updates drivers net can Some drivers will be loaded by the boot process when modules are inserted others must be loaded manually using modprobe
21. adapters Ports COM amp LPT Ln Processors a Ramdisk Sound video and game controllers jM System devices 4 Universal Serial Bus controllers Generic USB Hub Generic USB Hub Intel R ICH8 Family USB Universal Host Controller 2830 Intel R ICH8 Family USB Universal Host Controller 2831 Intel R ICH8 Family USB Universal Host Controller 2832 Intel R ICH8 Family USB Universal Host Controller 2834 Intel R ICH8 Family USB Universal Host Controller 2835 Intel R ICH8 Family USB2 Enhanced Host Controller 2836 Intel R ICH8 Family USB2 Enhanced Host Controller 283A USB Composite Device USB Composite Device USB Root Hub USB Root Hub USB Root Hub USB Root Hub USB Root Hub USB Root Hub USB Root Hub ATTENTION Using the TC DK10 T TC DK20 T s onboard power controls mx tcdk pwr control exe for control of PCIe or USB DOM devices is discouraged Using the onboard power controls for control of PCIe and USB DOM devices may damage the devices PCIe or corrupt data USB DOM Any use of the TC DK10 T TC DK20 T s automated onboard power controls with PCIe and USB DOM devices is undertaken at the user s own risk 4 23
22. ating Temperature Wide Temp Models 40 to 70 C 40 to 158 F EN 50155 Class TX Storage Temperature 40 to 85 C 40 to 185 F Ambient Relative Humidity 5 to 95 non condensing 1 4 2 Hardware Introduction The TC 6000 series expansion modules are designed to work with Moxa s TC 6000 train computers By providing different modules with different connectors the TC 6000 series offers convenient flexibility for users who would like to easily build precise industrial solutions requiring a variety of communication interfaces The following topics are covered in this chapter O Appearance gt TC SP04 DB44 T TC CP02 DB T TC DK10 T TC DK20 T TC SW04 M12 4P T TC SW04 M12 8P T gt TC SATA T V V WV O Dimensions TC 6000 Series Expansion Modules Hardware Introduction Appearance TC SP04 DB44 T 1 DB44 F Serial Interface TC SP04 DB44 T Module Board TC CPO2 DB T 2 CAN Ports TC CP02 DB T Module Board TC DK10 T TC DK20 T Front 5 Holes for QMA Antenna Connectors 4 Mini PCle Card Sockets TC 6000 Series Expansion Modules Hardware Introduction Rear SIM Card Socket x 4 TC SW04 M12 4P T TC SW04 M12 8P T 4 Megabit Gigabit Ethernet M12 Ports TC SW04 4P M12 T 4 pin 8 pin TC SWO04 8P M12 T Connector Connector Module Board TC SATA T 4 Storage LED Indicators TC SATA T Storage Tray TC 6000 Series Expansion Modules Hardware Introduction Dimensions All modules share the same di
23. dr can addr struct can frame frame struct ifreq ifr char ifname canO0 if s socket PF CAN SOCK RAW CAN RAW lt 0 perror Error while opening socket return 1 strcpy ifr ifr name ifname ioctl s SIOCGIFINDEX amp ifr addr can family AF CAN addr can rfindex Iir itr rfoindex printf s at index d n ifname ifr ifr ifindex if bind s struct sockaddr amp addr sizeof addr lt 0 perror Error in socket bind return 2 frame can id 0x123 frame can dle 2 frame data 0 0x11 frame data 1 0x22 nbytes write s amp frame sizeof struct can frame printf Wrote d bytes n nbytes return O0 The following is sample code for reading data include lt stdio h gt include lt stdlib h gt include lt unistd h gt include lt string h gt include lt net if h gt include lt sys types h gt include lt sys socket h gt include lt sys ioctl h gt include lt linux can h gt include lt linux can raw h gt int main void int i int s int nbytes struct sockaddr can addr struct can frame frame TC 6000 Series Expansion Modules Software Installation and Programming Guide struct ifreq air char ifname canO0 if s socket PF CAN SOCK RAW CAN RAW lt 0 perror Error while opening socket return 1 strcpy ifr ifr name ifname ioctl s SIOCGIFINDEX amp ifr addr can family AF CAN addr
24. erial 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 devicej 0x1042 RUN bin setinterface dev ttyM n O0 O6 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 e For RS 232 use RUN bin setinterface dev ttyM n 0 e For RS 485 2 wire use RUN bin setinterface dev ttyM n 1 e For RS 422 use RUN 2 bin setinterface dev ttyM n 2 e 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 4 Once the computer restarts confirm that the interfaces have been reset to your preferred interface settings Moxa setinterface dev ttyMO Now setting is RS485 2WIRES interface TC CPO2 DB T CAN Bus Interf
25. herwise the number of bytes read 4 20 TC 6000 Series Expansion Modules Software Installation and Programming Guide int mxcan_set_bus_timing int fd unsigned int speed int mxcan_set_parameters int fd CANPRM param Sets the parameters of an open port Input lt fd gt the open port lt param gt pointer to the CANPRM structure Output lt speed gt bus timing in Hz Return Value O on success otherwise returns a negative number int mxcan_write int fd char buffer int size Writes data to the open port lt fd gt the open port lt buffer gt pointer to the data lt size gt size of the data should be a multiple of the CANMSG size Return Value 0 on failure otherwise the number of bytes written TC DK10 T TC DK20 T Enabling Disabling USB Socket Power Take the following steps to get the current USB power status 1 Execute mx tcdk pwr control exe under TC DKOO Windows SampleCode Release in the product DVD 2 Enter the slave address according to the switch jumper on the TC DK10 T TC DK20 T modules Em Ad ministrator C Windows system Co programs TG DE mx tcdk pwr control exe Input the slave addresst x286 Ox27 gt Axe 7 a 3 Select 1 Get USB Slot Power to get current USB power status Em Administrator C Windows system32 cmd exe mx tedk pwr contro programs TGC DE mx tcdk pur contral exe Input the slave address 8x20 x27 gt x27 SlaveAddress x2 USB Power Cont
26. hnical Support Contact Information Moxa Americas Toll free 1 888 669 2872 Tel 1 714 528 6777 Fax 1 714 528 6778 Moxa Europe Tel 49 89 3 70 03 99 0 Fax 49 89 3 70 03 99 99 www moxa com su ort Moxa China Shanghai office Toll free 800 820 5036 Tel 86 21 5258 9955 Fax 86 21 5258 5505 Moxa Asia Pacific Tel 886 2 8919 1230 Fax 886 2 8919 1231 Table of Contents Te EMUROGUCU ON e do Dd GO DO ORCR EORIGE ROGER AGGRCR ROGER CN OR ROO ORC DN MER RC RR RR CRT RR ERR DP RR RR n a E 1 1 II OG me v T e 1 2 PACKE C Ne dde UT E E E E E PTT EE EO EE 1 2 AVallaDle Module Sarrerea NANNAN ANGNIN tr Cat ead errr trees 1 2 TC 6000 Serles Module Speciti Cato s ese mei exi ecce er cc nace cc ce st o iib c Ro iion i He HARD HL Rn TE 1 3 TCSDKIO ST IG DI20 T SDecIfiCatlODIS cuique odo eee reer dtd pcccdtedudid cedo tebiqoor 1 3 TOGSSPOSSDBTA T SDecCIfIGallOfiS coire rarae ceca ct E Gc RE ea ceed chem DEUM EPA DURUM e CEN Den DN KDE DUE PLI DIIPDE 1 3 VE sGPO24DB AT SBeclticdtIOriS3 5 dtasaduu dat deidtes dada das m Paciente rada duet Var du Mou MIU Mo RA MU MdL 1 3 TC SW04 M12 4P T TC SW04 M12 8P T Specifications eeeesesseeeeeeeeeen nnn nmm nnn nme nn nn 1 4 TC SATA T Specifications Available on Request eeeeeseeseeeeeeee enne nnn nnnm enean nnnm nan nn 1 4 2 HardWare IBDntrodHUctiODusscsessuiqI FEE IE sudiss MA E E E SEE RRR
27. ifferent folder enter it below or click Browse Folder C Program Files Moxa mxcan Browse Disk Cost Install mxcan for yourself or for anyone who uses this computer Everyone D Just me 4 Click Next to continue Welcome to the Device Driver Installation Wizard This wizard helps you install the software drivers that some computers devices need in order to work 4 17 TC 6000 Series Expansion Modules Software Installation and Programming Guide 5 Select Install this driver software anyway twice to continue Windows can t verify the publisher of this driver software Don t install this driver software You should check your manufacturer s website for updated driver software for your device gt Install this driver software anyway Only install driver software obtained from your manufacturer s website or disc Unsigned software from other sources may harm your computer or steal information v See details 6 Click Finish Completing the Device Driver Installation Wizard The drivers were successfully installed on this computer You can now connect your device to this computer If your device came with instructions please read them first Driver Name Status v Moxa Inc mxcan CAN Ready to use MOXA Inc mxcport CA Ready to use Jj mxcan Installation Complete mxcan has been successfully installed Click Close to exi
28. interfaces to TC 6000 series railway computers The following topics are covered in this chapter o 0 0 0 Overview Package Checklist Available Modules TC 6000 Series Module Specifications TC DK10 T TC DK20 T Specifications TC SP04 DB44 T Specifications TC CP02 DB T Specifications TC SW04 M12 4P T TC SW04 M12 8P T Specifications TC SATA T Specifications Available on Request VV V WV TC 6000 Series Expansion Modules Introduction Overview TC 6000 series expansion modules may provide a 2 5 inch mass storage module with customizable anti vibration and temperature management features four port without PoE Gigabit or megabit Ethernet switch modules both with M12 connectors a mini PCIe carrier module with four sockets a serial module supporting four software selectable RS 232 422 485 interfaces over a single DB 44F connector cable adapter or an optically isolated CAN module with two ports These modules let system integrators and administrators easily add additional storage capacity Ethernet ports and or bandwidth as well as serial PCIe and CAN interfaces to the TC 6000 series of train computers All of the TC 6000 modules are compliant with the essential sections of the EN 50155 Class TX standard guaranteeing the TC 6000 is a highly dependable computing platform specialized for a wide variety of on board railway applications Package Checklist Each package ships with a single TC 6000 series expansion module NOT
29. lay adapters A Human Interface Devices cg IDE ATA ATAPI controllers lt Keyboards n Mice and other pointing devices amp Monitors MOXA Embedded Drivers T Multi port serial adapters PE MOXA CP 102E Series PCI Express Bus amp Network adapters YF Ports COM amp LPT nm MOXA Communication Port 1 COMI i MOXA Communication Port 2 COM2 Dn Processors X Ramdisk Sound video and game controllers Jm System devices Universal Serial Bus controllers TC SP04 DB44 T Configuring Serial Port Mode Take the following steps to configure the properties of each COM port 1 Goto Control Panel gt System and Security gt Device Manager gt Ports COM amp LPT and select the COM port such as Moxa Communication Port 1 COM7 4 13 TC 6000 Series Expansion Modules Software Installation and Programming Guide 2 Right click the COM port and then click Properties File Action View Help smit ss sig RE 4 cli MOXA DBHSHB81UK gt 4M Computer gt Disk drives b xy Display adapters Dg Human Interface Devices gt lt q IDE ATA ATAPI controllers p lt 2 Keyboards p A Mice and other pointing devices p Monitors 4 P MOXA Embedded Drivers PO A MxGenerallo PortlO Driver KMDF gt MOXA Embedded Drivers 4 XP Multi port serial adapters MOXA CP 104JU Series PCI Bus 4 Network adapters iL Realtek PCIe GBE Family Controller EF Realtek PCIe GBE Family Controller 2 ow Realtek PCIe GB
30. mensions 20 02 0 79 189 5 7 46 9 82 0 39 25 95 1 02 127 4 5 02 75 5 2 97 118 4 65 170 9 6 73 aming 64 92 2 56 aming 2 32 0 09 2 4 3 Hardware Connection Description In this chapter we show how to connect the embedded computers to the network and to various devices The following topics are covered in this chapter 0 0 Installing the TC 6000 Series Expansion Modules Connecting Data Transmission Cables gt TC SP04 DB44 T Serial Port Module gt TC CP02 DB T CAN Bus Module gt TC SW04 M12 4P T TC SW04 M12 8P T Switch Module Installing Cellular Modules on the TC DK10 T and TC DK20 T gt Installing a Cellular Module Installing the SSD HDD into the TC SATA Module TC 6000 Series Expansion Modules Hardware Connection Description Installing the TC 6000 Series Expansion Modules The TC 6000 train computers come with four expansion module slots on the front panel Refer to the following figure for the location of these slots Power Input 24 110 VDC Power Input 1 Power Input 2 Expansion M Slot 1 Slot 2 To insert the TC 6000 series expansion modules into the TC 6000 train computer follow the steps below 1 Loosen the thumbscrews and remove the coverplate 2 Insert the module into the slot being careful not to damage the card as you slide it into to the motherboard connector Once you have secured it into the slot fasten the screws to lock
31. one to view now setting 0 set to RS232 interface 1 set to RS485 2WIRES interface 2 set to RS422 interface 3 set to RS485 4WIRES interface Checking Current Serial Settings To check the current interface setting type the following The system should display a response as below Moxa f setinterface dev ttyMO Now setting is RS485 2WIRES interface In the example above port 1 on card 1 is configured as a 2 wire RS 485 interface After entering the lines of code below port 1 gets reset as an RS 422 interface Moxa setinterface dev ttyMO 2 Moxa f setinterface dev ttyMO 4 5 TC 6000 Series Expansion Modules Software Installation and Programming Guide 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 if 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 ttyMO and dev ttyM3 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 SPO4 DB44 T interfaces is RS 232 By editing the device manager s rule scripts it is possible to set all s
32. ot number indicating the number of the card slot located on the TC DK10 T TC DK20 T board itself If the on off flag is not specified the command will return the current power status mpcie power address slot number on off flag The off flag is O and the on flag is 1 Fox example if you want to power off USB connectivity on slot 1 with some card issue the following command mpcie power 0x27 1000000 Note that you can specify a different chip address for each TC DK10 T TC DK20 T module by adjusting the DIP switch The location of the DIP switch is shown in the following figure Refer to the mapping table to determine which Chip Address corresponds to which DIP Switch Value 4 10 TC 6000 Series Expansion Modules Software Installation and Programming Guide DIP Switch aioe a os Boe h does s om l amp on ATTENTION The mpcie power command should not be used with the power on off feature with a USB DOM module This is because when a USB DOM module is powered on the Linux system will automatically mount its partitions but when it is powered off the system cannot automatically unmount its partitions Any use of the TC DK10 T TC DK20 T s automated onboard power controls with PCIe interfaces and USB DOM devices is undertaken at the user s own risk 4 11 TC 6000 Series Expansion Modules Software Installation and Programming Guide Windows System The following table shows the packages requi
33. ove the six screws that fasten the upper PCB to the storage tray These are circled in red on the figure below Note that it is not necessary to remove the remaining three screws 3 Detach the SATA power and data interfaces from the main board by carefully sliding the tray away from the main PCB g ton THD E ree ee et Tu L LEL A URE ELETE CTET 4 Remove the four screws securing the lower PCB to the module tray and remove the lower PCB 3 7 TC 6000 Series Expansion Modules 5 Slide the SSD HDD into the lower PCB in such a way that the module s data and power interface securely connect with the PCB s power and data interface 6 Carefully turn the tray over and fasten the drive to the PCB using the holes indicated in the photo 7 Fasten the lower PCB to the module s tray drive side up as shown using the four screw holes shown at right 8 First connect the upper PCB main board s power and data cables to the lower PCB interface Then complete the installation by fastening the drive tray to the main PCB using the six screws Hardware Connection Description Woo EXOUJ MMM OEOOZSELOLGYL Nid OSS P9 WLS VXOW ON Iepoww JU a29i Wt 16 OA Y3LV3H 0T19 91 89d phum pe iac JS E is S aR ui e d 9 You may now insert the storage tray back into the TC 6110 and tighten the external thumbscrews Note that each removable drive module has a hot swap button and four
34. ram 1 gt Get USB Slot Power t2 Set USB Slot Power Input the operation selection tH 25 G programs TG DE mx tcdk pur contral exe Input the slave address x20 Rx27 dx 27 SlaveAddress LE a USB Power Control Program tA Exit Program 1 gt Get USE Slot Power 2 Set USB Slot Power Input the operation selection H 29 input the slot number 4 amp 1 43 4 22 TC 6000 Series Expansion Modules Software Installation and Programming Guide 5 Enter the option to disable enable the USB power For example entering O disables USB power C programs TIG DE mx tcdk pwr control exe Input the slave addreszWHx2H Hx27 Ax27 SlaveAddress x27 USE Power Control Program CH Exit Program 1 gt Get USE Slot Power 2 Set USE Slot Power Input the operation selection tH 23 gt Input the slot number 1 4 1 Input the option P 6 Check if the USB power has been set successfully Em Administrator C Windows Xprograms sTGC DE 2mx tcdk pwr control exe Input the slave addrezsstHx2ZH Bx27 x2 SlaveAddress LE USB Power Control Program Exit Program 1 gt Get USE Slot Power t2 Set USE Slot Power Input the operation selection tH 23 Input the slot number ti 7 45 1 Input the option H Set USB power of sloti Success 7 Check the Windows Device Manager to see if the device is disabled r File Action View Help gal 3 HB sn S PRs amp Network
35. red for each expansion modules Driver Package Utility Package TC SP04 DB44 T TC SPO4 DB44 mxser 1 18 2 Win7 x86zip 0 TC CP02 DB T TC CPO2 mxcan 1 0 Win7 x86 zip TC CPO2 sample 1 0 Win7 x86 zip TC DK10 T TC DKOO sample 1 0 Win7 x86 zip TC DK20 T The drivers used in this section can be obtained from the official website http www moxa com product TC 6000 Series Expansion Modules htm TC SP04 DB44 T Driver Installation Before using the TC SP04 DB44 T expansion module you need to update the driver Install the driver before mounting the expansion module in the slot 1 Right click the PCI Serial Port device and select Update Driver Software File Action View Help est BH SIP RS 4 y WINDOWS CLVQ7FU amp Computer ccs Disk drives KS Display adapters oa Human Interface Devices cg IDE ATA ATAPI controllers Keyboards n Mice and other pointing devices E Monitors aY MOXA Embedded Drivers Network adapters gt Other devices i PCI Serial Port Processors Update Driver Software Ec Disable Sound vidi Ji System dev Uninstall V Universal S Scan for hardware changes Properties Launches the Update Driver Software Wizard for the selected device 2 Click Browse my computer for driver software to install using default settings T NEGE Ww i Update Driver Software PCI Serial Port How do you want to search for driver software gt Search automaticall
36. rol Program CH Exit Program 1 gt Get USE Slot Power 2 gt Set USE Slot Power Input the operation selection tA 25 4 21 TC 6000 Series Expansion Modules Software Installation and Programming Guide 4 Select the slot number For example 1 for socket 1 Em Administrator C Windows sy C progyrams sTC DE mx tcdk pur control exe Input the slave address 8x280 x27 Ax27 SlaveAddress 8x27 USB Power Control Program 2 Exit Program 1 gt Get USB Slot Power 22 Set USB Slot Power Input the operation selection H 29 Input the slot number lt i 4 1 Co programs IC DK gt mx tcdk pwr_control exe Input the slave addreszciHx2H Hx27 8x2 USE Power Control Program cH Exit Program 1 gt Get USE Slot Power 23 Set USE Slot Power Input the operation selection tA 235 Input the slot number 41 43 1 USB power of sloti ENABLED Take the following steps to disable enable the USB power Execute mx tcdk pwr control exe 2 Enter the slave address according to the switch jumper on TC DK10 T TC DK20 T modules G pragyrams sTG DE mx tcdk puwr control exe Input the slave address x20 x27 gt AxA Y m 3 Select 2 Set USB Slot Power to get the current USB power status ch Administrator C Windows system32 GC programs TGC DE mx tcdk pur control exe Input the slave address 8x20 Qx27 gt Ax27 SlaveAddress x27 USE Power Control Program CH Exit Prog
37. rt baudrates up to 921 600 Standard baudrates are 50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 19200 38400 57600 115200 230400 460800 and 921600 To configure the above code for a standard baudrate connection simply insert the number at the indicated line Non standard baudrates are more fully explained below 4 3 TC 6000 Series Expansion Modules Software Installation and Programming Guide WARNING If you use the stty command to get interface stats from a connection configured for a non standard baudrate the system will return a rate of O TC SP04 DB44 T Configuring the Baudrate Example Script 1 Setting the Baudrate define MOXA 0x400 define MOXA SET SPECIAL BAUD RATE MOXA 100 define MOXA GET SPECIAL BAUD RATE MOXA 101 include lt termios h gt struct termios term int fd speed fd open dev ttyM8 O RDWR tcgetattr fd amp term term c cflag amp CBAUD CBAUDEX term c cflag B4000000 tcsetattr fd TCSANOW amp term speed 115200 ioctl fd MOXA SET SPECIAL BAUD RATE amp speed Example Script 2 Return the Baudrate define MOXA 0x400 define MOXA SET SPECIAL BAUD RATE MOXA 100 define MOXA GET SPECIAL BAUD RATE MOXA 101 include lt termios h gt struct termios term int fd speed fd open dev ttyM8 O RDWR tcgetattr fd amp term if term c cflag amp CBAUD CBAUDEX B4000000 On this line you may insert
38. sable to use this function with PCIe devices since the devices could be damaged It is also not advisable to use the power control feature with USB DOM devices because these devices involve the mounting and unmounting of file systems and while the Linux system will be able to automatically mount the USB DOM file systems as they come online without careful scripting it will not be able to automatically unmount the file systems once the device goes offline WARNING Using the TC DK10 T TC DK20 T s onboard power controls for controlling PCIe or USB DOM devices is discouraged Using the onboard power controls for controlling PCIe and USB DOM devices may damage the devices PCIe or corrupt data USB DOM Any use of the TC DK10 T TC DK20 T s automated onboard power controls with PCIe and USB DOM devices is undertaken at the user s own risk Note that there is a further limitation If you install a mini PCIe module that uses non standard pin definitions such as Sierra Wireless module MC8090 MC9090 MC7304 MC7354 do not use the power control function on the TC DK10 T TC DK 20 T module If you enable the power control function for such a module all access for SMBus will be locked until the system is rebooted Read the specifications of the mini PCIe modules you use carefully The command for manipulating the PCIe card s power feature is mpcie power The precise syntax is as follows with chip address indicating the card to be configured and sl
39. sample code for the TC CP02 DB T CAN module mxcan read Reads data into a buffer from an open port the size Petite mation OSEE mxcan_write Writes data into a buffer from an open port the size eee ii ren camnsesaey Moxa CAN Bus Library int mxcan_close int fd Close an open port lt fd gt the open port Return Value 4 19 TC 6000 Series Expansion Modules Software Installation and Programming Guide unsigned int mxcan_get_bus_timing int fd Gets the bus timing of an open port lt fd gt the open port Return Value 0 on failure otherwise the bus speed in KHz int mxcan_get_registers int fd unsigned char buffer int num Gets the register values of an open port lt fd gt the open port Output lt buffer gt pointer to a buffer for these values num number of register values for a module with sja1000 chipset the value must be 32 Return Value 0 on success other numbers indicate failure int mxcan get stat int fd CANBST stat int mxcan inqueue int fd Gets the number of received bytes that are queued in the driver of an open port fd the open port Return Value 0 on failure otherwise the number of bytes 0 on success otherwise failure int mxcan read int fd char buffer int size Reads data into a buffer from an open port the size should be a multiple of the CANMSG size fd the open port Output buffer pointer to the buffer Return Value 0 on failure data not available ot
40. sguau nua ed uiuo ira RR Rok a tr SES Rut SR DD Tcr dr nb 3 6 Installing the sSb HDD into the FESSATA Module 43 vehe dde dier Coa xo va C em Cup E ee p 3 7 4 Software Installation and Programming Guide eeeeiieseereeuuunnnee uu aaun unn uuu uana uua uuu 4 1 Linux System Peripherals Programming Guide dure radaceican nie aca aaa eer Ra a QR d edd 4 2 Prerequisite for Installing Peripheral Modules ceseeesseeeeen nnn nnn hh hh anna annee nnn 4 2 TOSSPOdSDBATT T Serial POLEE used dimecic ia in n iuc ee rw eh a cbe us cos eu aiios occus inerte tes rus un oot uc de 4 3 TG GCPRO7 DB CAN BUS IMENICE corii beriEeritertiferiberiber Devibkytkirbreu AG bus d er be sre E ie 4 6 TC DK10 T TC DK20 T mini PCIe Interface eeeeeeseeseeieeeeesemee nan h hme n nanus mesas armes naa aae nn 4 10 Miser col SUCIN cmm p m 4 12 TCSSPOASDBA4AsT Driver INStallatiOn ussansus sini ii a dor e rne e Jd c i tran dac Dn eri Sat e GRE OE 4 12 TC SP04 DB44 T Configuring Serial Port Mode ccecce tmr hun n nnm Rua nn nnm nu ara anam ada amus 4 13 TG CPO2 DBF Driver Instal aO eierens united O a a Pre C Pv Leere C o o t uo 4 17 TC CPO2 DB T4GAN Module Programming GUJE omasa orte coe aa eod a a ove Pre Oc od cu ied Sd wr odes 4 19 TC DK10 T TC DK20 T Enabling Disabling USB Socket Power seeeeessee nmm 4 21 1 Introduction TC 6000 expansion modules provide peripheral
41. t Cancel b 8 Click Yes to shut down the computer and install the TC CPO2 driver and then boot up again M rau must restart your system Far the configuration changes made to mecan to take effect Click es to restart now or Ma if vou plan ta manually restart later 4 18 TC 6000 Series Expansion Modules Software Installation and Programming Guide 9 Next open the Windows Device Manager right click on the computer located at the top of the tree and select Scan for hardware change to finish the installation Ele Action View Help e E H Dg NE 4M Computer gt xc Disk drives gt Ae Display adapters fs Human Interface Devices gi IDE ATA ATAPI controllers cm Keyboards y JA Mice and other pointing devices Ai Monitors a Y MOXA CAN Controllers S MOXA CAN Controller 0 aA MOXA CAN Interface Board Lia MOXA CANBUS Series i MOXA Embedded Drivers gt MOXA Embedded Drivers gt Y Multi port serial adapters gt EF Network adapters 13 Ports COM amp LPT gt n Processors gt AK Ramdisk gt amp Sound video and game controllers JE System devices Universal Serial Bus controllers TC CPO2 DB T CAN Module Programming Guide Note that the driver and example code can be obtained from the official website http www moxa com product TC 6000 Series Expansion Modules htm Refer to the following table for an introduction to the
42. tek PCIe GBE Family Controller 2 A Realtek PCIe GBE Family Controller 3 41 Ports COM amp LPT LO Communications Port COMI Y MOXA Communication Port 1 COM11 9T MOXA Communication Port 2 COM12 i d MOXA Communication Port 3 COM13 J MOXA Communication Port 4 COM14 f u blox 6 GPS Receiver COM3 F3 Processors 4 16 TC 6000 Series Expansion Modules Software Installation and Programming Guide TC CPO2 DB T Driver Installation Before using the TC CPO2 DB T expansion module you need to update the driver Install the driver before inserting the expansion module in the slot Take the following steps to install the CAN BUS driver 1 Double click mxcan setup msi to open the setup wizard that will install the module Click Next 2 Click Next to accept the installer defaults and then click through the next dialog to install the driver Welcome to the mxcan Setup Wizard The installer will quide you through the steps required to install mxcan on your computer WARNING This computer program is protected by copyright law and international treaties Unauthorized duplication or distribution of this program or any portion of it may result in severe civil or criminal penalties and will be prosecuted to the maximum extent possible under the law Select Installation Folder The installer will install m can to the following folder To install in this folder click Next To install to a d
43. u how to calculate the transmission inaccuracy at a target baudrate TBR of 500 000 bps Target non standard Baud Rate 500 000 921 600 Factor EU a 1 8 then round down to the nearest integer to get 1 921 600 ENUM 8 i 1 6 7 round to the nearest integer to get 7 500 000 921600 1 7 8 _ zs 0 Inaccuracy 590 000 100 1 696 1 7 This result indicates that for a device configured at the non standard rate of 500 000 bps the actual modulation rate will deviate around 2 from the configured baudrate TC SP04 DB44 T Configuring Serial Port Modes Use the setinterface command to retrieve the parameters of the serial port configuration The usage is setinterface device node interface option The device node is the tty device to be configured For the serial ports Moxa uses a proprietary driver whose device nodes are identified with the marker M Serial ports 1 to 4 on card 1 are referred to as ttyMO to ttyM3 and ttyM4 to ttyM7 refer to ports 1 to 4 on the second card and so on The interface option is a number between 0 and 3 that will determine what serial interface should be configured for the port in question For example setinterface dev ttyMO 0 sets the first serial port on the first card for RS 232 communications Refer to the examples below for details Moxa setinterface Usage setinterface device node interface no device node dev ttyMO dev ttyM15 interface no following n
44. y for updated driver software Windows will search your computer and the Internet for the latest driver software l for your device unless you ve disabled this feature in your device installation settings gt Browse my computer for driver software Locate and install driver software manually 4 12 TC 6000 Series Expansion Modules Software Installation and Programming Guide 3 Click Next to start the installation O ij Update Driver Software PCI Serial Port Browse for driver software on your computer Search for driver software in this location C Users moxa Desktop Win7_x86_release disk x86 V Include subfolders gt Let Me pick OM a list OI Gevice arivers on My computer This list will show installed driver software compatible with the device and all driver software in the same category as the device 4 Click Close to complete the installation I E EENN Ww Update Driver Software MOXA CP 102E Series PCI Express Bus Windows has successfully updated your driver software Windows has finished installing the driver software for this device MOXA CP 102E Series PCI Express Bus 5 The driver will be installed automatically The module should be listed in the Device Manager window At this point you can start using the module 5 Device Manage File Action View Help 9 FIBA el eRe 4 WINDOWS CLVQ7FU JE Computer cs Disk drives amp Disp
Download Pdf Manuals
Related Search
Related Contents
AM ステレオトランスミッタ 取扱説明書 Checkolite 104990-15 Installation Guide Technicolor - Thomson DCD-SA1 User's Manual Convecteur Bi-Jonction Copyright © All rights reserved.
Failed to retrieve file