Home

PAC-4000 user guide

image

Contents

1. SSH Console PAC 4000 supports SSH If you use Linux computer you can use SSH command to login Matrix 518 The configuration of SSH and key are located at etc ssh The key generation program is available at usr bin login az http uum aritla com root rooth192 1668 2 127 s pa roothMatrixS504 8 proothMatrixS504 8 Putty Console Software For Windows user you can download the putty software at http www chiark greenend org uk sgtatham putty download html to use SSH to login PAC 4000 k word ipkg package software management ipkg is a light software package utility It can be used to install upgrade and remove the software package for PAC 4000 Currently user can use ipkg to install the software package from Artila FTP You can find the configuration at ipkg conf When PAC 4000 is connected to network and issue command ipkg update To update the package list and use ipkg install to install software package and ipkg remove to remove software ipkg list to list available software ipkg list_installed to list software installed Please refer to Appendix for more about ipkg Install GNU Tool Chain Find a PC with Linux OS installed as followed Fedore 7 ubuntu 7 04 OpenSUSE 10 2 Mandriva 2008 Debian 5 0 Centos RedHat 5 and above Login as aroot user then copy the arm linux 4 3 2 tar gz to root directory of PC Under root directory type following command to install
2. the PAC 4000 Tool Chain tar xvfj arm linux 4 3 3 tar bz2 The tool chain file name are arm linux gnueabi gcc arm linux gnueabi g arm linux gnueabi strip Version gcc 4 3 3 glibc 2 9 binutils 2 18 For Windows user please download the toolchain from CodeSourcery at http www codesourcery com sgpp lite arm portal package4547 public arm none linux gnueabi arm 2009q 1 203 arm none linux gnueabi exe The tool chain file name are arm none linux gnueabi gcc arm none linux gnueabi g arm none linux gnueabi strip Version gcc 4 3 3 glibc 2 8 binutils 2 19 Getting started with the Hello program There are many example programs in Artila CD To compile the sample you can use the Make file and type make To compile and link the library Once done use ftp command ftp 192 168 2 127 Then login with password Use bin command to set transfer mode to binary ftp gt bin to transfer the execution file to PAC 4000 user disk home guest and use chmod x file o To change it to execution mode and Sfile o to run the program Auto start program on boot To start a program on boot you can use etc rc local For example to use vi to edit rc local hello amp exit O Hello will be executed after system boot up rc local has the similar function as etc rc in PAC 4000 Artila Utility Software The introduction of Artila utility software as follow 1 update update loader environment file and kernel image Type update h
3. 1 PuTTY O x Refresh Returni Update Image system Update Image Completes o go up and down Press enter to select a choice Note 0 ge COM1 PuTTY 0 x 1 Update Image this option can recover the loader kernel and file system by using an USB disk The USB disk contains the images files with the path as follow 1 Use Arrow keys up and down to selection the functions 2 Use Arrow keys left and right to go to higher or lower levels of menu screen Force DataFlash boot 1 To force system go into DataFlash booting repeatedly keying Shift 1 right after PAC 4000 power on Loader pac4000 pac4000 alf Kernel pac4000 pac4000K type R to Reboot File system pac4000 pac4000R Updating Loader 128 Kibyte 20000 The update will b The files are available in Artila CD Please prepare an USB gp disk and copy the image files to it before choosing this Updating Filesystem 128 Kiby option The update will be e Make user s filesystem 2 Make Filesystem this option is used to create customized file system Before using this function you need to copy the folder of mkimage504 in the Artila CD to an USB disk This function will create a new file system image for users and they can use it to duplicate the customized file system to other PAC 4000 Recover Environment File 3 Recovery Env The option will recover the environment files as default setting Use this function only when the NAND file system c
4. C Output 4 GND GND Signal ground Use any terminal software such as hyper terminal and configure the setting as follow Baud Rate 115200 Data bits 8 Parity N Stop bit 1 Terminal type VT100 Note We provide a utility software setconsole to redirect the console port to any one of the serial port Therefore user do not need to open the case to access the physical console port Please refer to setconsole command in the Artila utility section inished to configure packages INIT Entering runlevel 5 Starting system message bus dbus Starting ssh server done Starting amgrd done starting syslogd klogd done Telnet Server done FIP Server vsftpd Lighttpd Web Server Ready LED done done lighttpd login guest http www artila com gues tEPAC 4000 Factory Default Settings D l started ae l l LAN 1 IP Address 192 168 2 127 efault started service Use vi editing tool to edit the etc network interfaces for network 1 amgrd Artila broadcast search daemon setting The default setting is static IP 192 168 2 127 PAC 4000 PN eee eae T e 0O oe 2 ssh secured shell with sftp also cance Wireless oa Use Login root or guest telnet guest only 3 syslog klogd system and kernel log wireless essid XXX Password root or guest telnet guest only 4 telnet server disable root with etc securetty wireless_key YYY A en ee 5 ftp server vsftp To add SSID and WEP key if necessary XXX is SSID and YYY Baud
5. PAC 4000 User Guide Version 1 0 Introduction PAC 4000 Layout PAC 4000 is an ARM9 based Linux ready industrial controller The key features are as follow LED 1 ARM926EJ S ARM Thumb Processor 400MHz w MMU Indicator 2 32 KByte Data Cache and 32 KByte Instruction Cache 3 64MB SDRAM 128MB NAND Flash on board LAN 1 2 x LANs 4 Two 10 100 Mbps Ethernet 5 Two USB 2 0 full speed 12 Mbps Host Ports one USB device port 2 x USB Hosts 6 Multimedia Card Interface for Micro SD memory card 7 Four serial ports RS 232 x2 and RS 232 x2 or Isolated RS 485 x2 COM 1 2 x RS_229 Ports 8 9to40VDC power input 9 Pre installed Standard Linux 2 6 OS 10 GNU tool chain available in Artila CD COM 3 iene ead 11 DIN RAIL mounting 1x USB Client COM 1 2 2 x RS 485 Ports Packing List Top of PAC 4000 1 PAC 4000 Programmable Automation Controller P mR OEA E 2 DIN Rail bracket 1025mm 3 Artila CD 1 wt Optional Accessory o40VDC Power Input 1 CB RJ45F9 150 RJ45 to DBO Female Cable P 2 CB BHDB9 020 M 502 console cable E E V rh Shielding DIN Rail e S l Ground Bracket gt gt Bottom of PAC 4000 7 7 SD Socket Reset Button Power Input Connector PAC 4000 uses 9VDC to 40VDC power and input from three ports plug in screw terminal connector Auto polarity and surge protection are included in power input circuitry of PAC 4000 to provide power protection Shielding ground provides better EMI protection Pl
6. a Changing password for mike DTR Enter the new password minimum of 5 maximum af 8 characters ETE Elease use a combination o upper and lower case letters and numbers Enter new password Re enter new password Password changed 2 Forgot the IP address If you forgot the PAC 4000 IP address you can use the Java Manager available in Artila CD to search the IP address of PAC 4000 Or use serial console port to find out the IP address by ifconfig E Search amp Configurate Utility v2 06 E Configuration Monitor Broadcast Search Device Name MAC Address IP Address Netmask Gateway Password Model Name p earch by IP Matrix500 00 13 48 00 02 48 192 168 2127 255 255 255 0 192 168 2 254 None IMATRI lt 500 3 System fail to boot If you mess up the root file system and make the system fail to boot PAC 4000 will automatically switch to boot from Dataflash file system and a console menu will show up at console port to help user perform system recovery System Recovery Section will tell you how to recover the system System Recovery Update Image Starts Make Files System Starts If NAND Flash file system does fail DataFlash file system a SS ila ioj x coms putty ele will automatically boot up and a Console Menu at console port will appear as follow H mkimage504 mkimage gp COM
7. ease wire the shielding ground to an appropriate grounded metal surface Reset Button Press the Reset button to activate the hardware reset You should only use this function if the software does not function properly Power LED The Power LED will show solid green if power is properly applied Ready LED The Ready LED will show solid green if Matrix 518 complete system boot up If Ready LED is off during system boot up please check if power input is correct Turn off the power and restart Matrix 518 again If Ready LED 1s still off please contact the manufacture for technical support Link and Act LED When Ethernet port are connected to the network Link LED will show solid green If there is traffic is the Ethernet line the yellow Act LED will flash Serial Port LED When RXD line is high then Yellow light is ON and when TXD line is high Green light is ON Ethernet Port Pin Signal __ 6 ER Pin Assignment and Definition Serial Ports Port 1 2 Software selectable RS 232 or isolated RS 485 If RS 485 is chosen please use terminal block connector for RS 485 Port 3 4 RS 232 port with hardware flow control Note Only Port 2 support RS 232 full modem control DSR DCD and DTR Serial Console Port Serial console port is located inside the box at JP4 of M 502 You need a special console cable CB BHDB9 020 to access it 1 TxD TxD RS 232 transmit 2 RxD RxD RS 232 receive 3 VCC3 VCC3 3 3 VC
8. elect the run level of system boot up User need to use serial console to enter loader menu Please configure the serial port of terminal as follow Baud Rate 115200 Data bits 8 Parity N Stop bit 1 Flow Control None Terminal type VT100 Once power up PAC 4000 please repeatedly keying and you will see the loader menu appear as follow Starting Ho 2 JE JE JEEE E E E E E HEH E E E HEHEHE HEHEHE HEE HEHEHE HEHEHE EHH HHH HE Artila Loader Yersion 2 0 9 DRAH 64H NAND 128H JE JE JEE EEE E E E E E E HEH HEHEHE EE HEHEHE EEE HEHEHE HEE EHH HHH HE G Loader TFTP L Loader Serial K Kernel TFTP S Kernel Serial F Filesys TFIP T Filesys Serial E Eny Upgrade H Ethernet Setting A Dataflash Booting U Runlevel C Switch Console R Reset JE JE JEEE EEE E E E E E E E E E E E E E E E E E pE E E E E JE E EE E E EE E E EE HH He If you miss the timing please power on again the PAC 4000 and do it again Select U will prompt the run level selection message Run level 0 is halt run level 1 is single user disable login and service Run level 2 5 are multiple users and run level 6 is reboot To view the run level configuration please check etc inittab Frequently Asked Question 1 Forgot password If you forgot the password for login please use serial console and use run level to boot system Use passwd to change the password setting En COH8 115200 Hone 8 1 ANSI geen E passwd mike su
9. elp to find the command usage BEE al rooteMatrix504 H update he lp Usage update OPTION Image Writes image to MTD device update environment file Display this help and exit Output version information and exit e env filename help version update Verison 2 00 root MatrixS5 4 Update can only operated under supervisor mode password root Please use command su and login as root 2 setuart configure serial port setting An example show as followed to configure port 1 as RS 485 interface with baud rate 921600 Telnet 192 168 2 127 z setuart OPTION ojx display this help and exit version output version information and exit port 1i 2 UART port number t ype 232 422 4851 UART interface type mode 6 11 Dis Enable bit data mode for RS485 baud 9216661 Set baudrate up to 21666bps qguest MatrixS526 hin gt setuart pi t485 m b 921666 Port 1 gt type 485 mode 6 quest Matrix526 bin gt 3 setconsole PAC 4000 is designed to use M 502 SoM as its CPU module The console port is located at JP4 of M 502 module User can use setconsole command to redirect the serial console port to any one of the four serial port of PAC 4000 Therefore user can avoid opening the metal case to access the serial console setconsole rely Usage setconsole OPTION Switch console debug Set console to debug port 1
10. lan inet dhcp fo ff ff fe od sind ides aia managed Vome The file system and disk space are shown as follow o ee a ra fF wireless_essid any Ht wire less_key any x root Matrix504 H rooteMatrix504 media mount rootfs on type rootfs Crw ubi rootfs on type ubifs Crw proc on proc type proc Crw gt questPMatrix54 Insert kernel module sysfs on sys type sysfs Crw ramfs on dev type ramfs Crw http www apit la com devpts on dev pts type deuvpts Crw gid 5 mode 626 gt To insert kernel module while system boot up please use vi to usbfs on proc bus ush type usbfs rw edit etc modules to add module to load e g a 0 Filesystem 1K blocks Used Available Usex Mounted on 114716 8256 166466 2A 7 oe rt73usb ubi rootfs l Inittab contains information of system initialization The papis naa is omen AU evardvosatsse ne ae y l To load the USB WLAN adaptor root Matrix504 mediat system initialization script etc rcS d runs first then the run level 5 etc rc5 d PAC 4000 uses run level for system setup ed and the default run level is number 5 Please refer to s s s a rooteMatrix504 H cat etc modules introduction to linux http tille garrels be training tldp for FASE RP TEPEE E TE E ENT E E PEL information about run level Following is the run levels l as l tting Please do not edit this file directly If you want to change or add se anything please take a look at the files i
11. n etc modutils and read the manpage for update modules Run level O halt Run level 1 is single user login and service are disabled rt73usb Run level 2 5 are multiple users eee Run level 6 is reboot Please refer to loader menu section for selection of run level Inittab and Run levels Devices list The supported devices are shown at dev directory Following list are most popular ones ttySO serial console port ttyS1 to ttyS4 serial port 1 to port 4 sda to sdb USB flash disk ttyUSBO to ttyUSB1 USB RS 232 adaptor fdti_sio ko rtc Real Time Clock gpio General Purpose digital I O ttyACMO and ttyACM1 USB Modem CDC compliant a el mmc SD driver Utility Software PAC 4000 includes busybox utility collection and Artila utility software and there are placed at sbin bin usr bin use sbin Please refer to Appendix for the utility collection list root Matrix5 4 sbhink ls init insmod iwgetid iwlist ivpriv ivspy klogd logread losetup lsmod rooteMatrix504 7 sbin cd bin root MatrixS564 bink ls dmesg echo egrep false fgrep grep gunzip gzip hostname ip kill ln login ls mkdir mknod root Matrix5 4 bink mkdosfs mkfs minix mkfs vfat mkswap modprobe pivot_root poweroff reboot reboot sysvinit rmnod route mktemp nore mount my netstat pidof pidof sysvinit ping run parts sed Mounting External Storage Memory To find out the device name
12. of the external memory device which plug into PAC 4000 you can use the command dmesg grep sd dmesg grep mmc To find out the device type sda sdb or mmc And use mount dev sdal mount dev mmc to mount the USB disk or SD card and folder is local at media sdal or mnt sdal root Matrix5 4 H cat etc fstab stock fstab you probably want to override this with a machine specific one 4 auto defaults proc proc defaults dev pts devpts node 4626 gid 5 proc bus usb ushbfs defaults var volatile tmpfs defaults size 6M defaults defaults defaults defaults noauto noauto noauto noauto media sdal media sdal media sdbi media sdbi oix ical setconsole shutdown Welcome Message To modify the welcome message user can use text edit to modify the etc motd start stop daemon sulogin swapoff swapon switch_root sysctl Web Page Director The web pages are placed at usr www and the etcNighttpd conf contains the lightttpd web server settings The home page name should be index html syslogd telinit udhc pe sh aie Adjust the system time su To adjust the RTC time you can follow the command rs date MMDDhhmmYYYY nay where umount MM Month O1 12 uname DD Date O1 31 eee hh Hour mm minutes YYYY Year hwclock w To write the date information to RTC User can also use NTP client utility in Artila CD to adjust the RTC time ntpclient time server ip
13. rash 4 Show Info Show the version information of PAC 4000 5 Reboot Reboot the NAND flash file system Appendix Utility Collection ipkg software package management The webmin for PAC 4000 provides following modules 1 busybox v1 14 2 tiny utility collection PAC 4000 uses ipkg to manage the software installation upgrade and 1 Webmin webmin configuration 2 sysvinit v2 86 standard Linux initialization removal Artila will continuously add the kernel module and utility at 2 System system boot process and log management 3 util linux mount umount v2 12r support long file name our ftp server user can install these software from Artila s ftp server In 3 Server Apache and SSH server configuration 4 ssh v4 6p1 support sftp server addition user can also setup your ftp server to update the software you 4 Network network configuration 5 usbutils v0 7 USB id program want To install the utility from Artila ftp please use vi to edit the etc 5 Hardware RTC setting 6 lighttpd v 1 7 web server ipkg conf 6 Others File manager upload and download 7 weet v1 9 1 used in ipkg software src gz arm ftp ftp ftp ftp artila com AT9G20 Artila CD Linux Utility 8 iptables v1 3 8 IP routing src gz kernel ftp ftp ftp ftp artila com AT9G20 Artila CD Linux 9 ipkg v 0 99 163 software package management modules Remember to use command 10 procps v3 2 7 support webmin process management 11 vsftpd v2 0 5 ftp ser
14. rate 115 200 l 6 web server apache2 is WEP Key LA O S NET 2 See 7 Ready LED debug LED for internal use PAC 4000 supports USB WLAN adaptor Ralink RT2571 You O OO Oe can enable the driver module rt73usb by adding rt73usb in Terminal type VT100 Network Settings etc modules Power on and System boot up olx File System Once PAC 4000 is correctly power on it will start boot Linux root Matrix5 4 cat etc network interfaces kernel and mount file system You can use Ethernet and telnet Jijpaeaee iface lo inet loopback and login PAC 4000 Once kernel loaded it will find sbin init and execute it The initialization configuration 1s at etc rooteMatrixS5h4 7 ls etc lib proc Sys home media shin tmp rootPMatrixSh4 7H cd home roote MatrixSh4 homell ls auto eth Example of static inittab Once boot up you can use telnet to login PAC 4000 iface eth inet static address 192 168 2 127 netmask 255 255 255 0 a of x network 192 168 2 0 gateway 192 168 2 1 Example of dhcp iface eth inet dhcp quest Foot rooteMatrixS5H4 home cd media rootPeMatrixSh4 medial ls disk mmc sdai sdbi rootP MNatrixSh4 mediat MatrixSh4 login quest ssword Wireless interfaces t alo Example of an unencrypted lt no WEP or WPAD wireless connection F T ae Se ee e The 128MB NAND Flash memory of PAC 4000 contains Boot ppp PF I F auto vlan loader uBoot Linux Kernel Root File System and user disk E iface w
15. tty l1 Set console to ttyS1 port 2 tty8 2 Set console to ttyS2 port 3 tty 3 Set console to ttyS3 port 4 amp ttyS Set console to ttyS4 port Close console port Display this help and exit 1 00 c close h help y version setconsole Yerison Output version information and exit 3 version find out the version of OS Telnet 192 168 2 127 0 x atrix5 4 login guest assword A FLO FOF APOE ri PE E ee haan ah f E a a 7 i ff oN Password soot Matrix564 H version atrix5 4 Firmware Verison CLinux 2 6 29 4 2 6 6 64M build 141 PREEMPT Wed Mar 16 15 44 31 CST 2616 ilesystem build 9 PREEMPT Fri Mar 12 14 24 62 CST 2616 soot Matrix5H4 Ht 4 gpioctl The gpio can be configured by gpioctl and the usage 1s as shown followed BEE Foot Matrix5h4 gpioctl help Usage gpioct OPTION display this help and exit output version information and exit GPIO number GPIO state 1 HIGH 6 LOW m mode 11 GPIO mode 1 INPUT B 0UTPUT a all Show all GPIO state and mode Foot Matrix5h4 gpioctl all GPIO count 5 DIP_SW count GPIOW gt State High GPIO gt State High GPIO2 gt State High GPIO3 gt State High GPIO4 gt State High rootPMatrix5h4 H h he lp y version i i018 1 2 1 s statel 11 Input Input Input Input Input Loader Menu Loader menu helps user to s
16. ver You can also copy the Utility and module folder from Artila CD to a depmod a Nib modules 2 6 29 4 modules dep 12 bash v3 2 GNU shell USB disk then use USB disk to install the software by changing the 13 wireless_tools v29 wireless LAN utility ipkg conf To update the dependency list if new kernel module 14 ppp v2 4 3 ppp dial up utility src gz usb_arm ftp root root 127 0 0 I media sdal Utility were added 15 psmics v22 2 procps supplement src gz usb_kernel ftp root root 127 0 0 1 media sdal modules 16 artila utility v 1 1 handy utility added by Artila Make sure the USB disk is correctly mounted now use command You can find more utility at Artila Matrix 504 CD and use ipkg update ipkg to install the utility to update the package list and use ipkg install webmin To install webmin Webmin is a web based interface to system administration To start webmin go to etc webmin and type start webmin Then you can use browser to visit PAC 4000 port 10000 Go e e 4 ba Ay x eg pi GAP CHp way AMAA TAD NAH Co gle 4us CoO 2 m D r FTR iN gt A eR TRDNE o Pameget p BNR e BRM iusi o BPRS MCHA E Wina 28 cn Natt Cerere Lirex 2E ny gt e SAP stg IND Q g Home Paze wepmin Vernon 1 480 on Matnx504 Generw Linux 2 6 Webmin System Servers Networking Hanieare Others K 2 t 4 Weber w Switch user

Download Pdf Manuals

image

Related Search

Related Contents

W10224602B Spanish.fm  Philips Brilliance 190S1CB  TRP-C08H User's Manual  FB-2300 AII-In-One 386SX CPU CARD Module User's Manual  version pdf - Cliniques universitaires Saint-Luc  Apply The Label From Warranty Here  programa sintético semestre  dreamGEAR DGWII-1232 game console accessory  Q-S1 – French – Start Guide    

Copyright © All rights reserved.
Failed to retrieve file