background image

AM335X-PAC  Series  User  Manual                                              version  2.0.4                                                  Page:  77 

Copyright ©  2021 ICP DAS Co., Ltd. All Rights Reserved.                                                        E-mail: [email protected] 

4.3.2. 

 

Compile Demo- helloworld.c

 

 

Type  the  command  ‘

arm-linux-gnueabihf-gcc  –o  helloworld.exe  helloworld.c

’  to  compile 

helloworld.c into helloworld.exe, then type ‘

dir/w

’ or ‘

ls

’ command to display the contents of the 

directory and confirm that the helloworld.exe file has been created. (Refer to Figure 4.3.2-1) 

 

 

 

 

 

 

 

 

 

Figure 4.3.2-1.

 Executable file - helloworld.exe 

 

 

Summary of Contents for LinPAC AM335 Series

Page 1: ...LinPAC AM335x Series User Manual V2 0 4 December 2021 LP 22xx LP 52xx Series LP 8x2x Series LP 9x2x Series...

Page 2: ...right to change this manual at any time without notice The information furnished by ICP DAS Inc is believed to be accurate and reliable However no responsibility is assumed by ICP DAS Co Ltd for its...

Page 3: ...dding an I O Device for LP 22xx 31 2 3 2 Adding an I O Device for LP 52xx 33 2 3 3 Adding an I O Device for LP 8x2x 36 2 3 4 Adding an I O Device for LP 9x2x 38 2 4 Console Port Connection 40 2 5 LAN1...

Page 4: ...LinPAC AM335x PAC at boot time 82 5 Application for LinPAC AM335x PAC 83 5 1 Package management with APT 83 5 2 SFTP secure file transfer program 84 5 3 LAMP Server 85 5 4 XFCE secure file transfer pr...

Page 5: ...11 6 5 4 LED Indicators for LP 9x2x series 112 7 Additional Support 113 7 1 Support for N Port Modules 113 7 1 1 Application for N Port Module 118 7 2 Configuration of multiple spanning tree protocol...

Page 6: ...ial I O modules Main advantage of the LinPAC AM335x PAC is its high quality control system including its stably properties open source and the standard LinPAC SDK for Windows and Linux using the GNU C...

Page 7: ...owerful CPU Module AM335x ARM Cortex A8 1 0 GHz Memory Size SDRAM 512 MB DDR3 Flash 512 MB MRAM 128 KB for LP 8x2x 9x2x EEPROM FRAM 16 KB for LP 8x2x 9x2x 64 KB for LP 22xx 52xx SD Card support up to...

Page 8: ...com en product LP 5231PM 4GE https www icpdas com en product LP 5231PM 4GC LinPAC 8x2x series https www icpdas com en product LP 8121 https www icpdas com en product LP 8421 https www icpdas com en pr...

Page 9: ...ervice icpdas com 2 LinPAC AM335x Getting Started This chapter provides a guided tour of the LinPAC AM335x series PAC installation and configuration that describes the steps needed to download install...

Page 10: ...AM335X PAC Series User Manual version 2 0 4 Page 10 Copyright 2021 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 2 1 Mounting the Hardware LP 22xx LP 8x2x LP 523x LP 9x2x...

Page 11: ...version 2 0 4 Page 11 Copyright 2021 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 2 1 1 Mounting the LP 22xx DIN Rail mounting The LP 2241 has simple rail clips for mounting reliably...

Page 12: ...e 12 Copyright 2021 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 2 1 2 Mounting the LP 52xx DIN Rail mounting The LP 5231 has simple rail clips for mounting reliably on a standard 35 m...

Page 13: ...td All Rights Reserved E mail service icpdas com Wall Panel mounting The LP 5231M LP 5231PM 3GWA LP 5231PM 4GE LP 5231PM 4GC can be mounted either directly to a wall panel Step 1 Install the four moun...

Page 14: ...x2x Wall Panel mounting The LP 8x2x can be mounted either directly to a wall panel or onto a standard 35mm DIN Rail Step 1 Install the four mounting screws into the 4 keyhole mounting holes Step 2 Fas...

Page 15: ...n 2 0 4 Page 15 Copyright 2021 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com DIN Rail mounting Step 1 Hook upper tab over upper flange of DIN Rail Step 2 Tilt the module toward DIN Rail...

Page 16: ...ntial for proper operation of the LP 8x2x One side of all control circuits power circuits and the ground lead must be properly connected to earth ground by either installing a ground rod in close prox...

Page 17: ...2x Wall Panel mounting The LP 9x2x can be mounted either directly to a wall panel or onto a stainless 35mm DIN Rail Step 1 Install the four mounting screws into the 4 keyhole mounting holes Step 2 Fas...

Page 18: ...l for proper operation of the LP 9x2x One side of all control circuits power circuits and the ground lead must be properly connected to earth ground by either installing a ground rod in close proximit...

Page 19: ...Reserved E mail service icpdas com Step 2 Clip the device onto a stainless DIN Rail Tips Warnings For DIN Rail mounting it is strongly recommended that only a stainless steel DIN Rail be used to supp...

Page 20: ...eference earth ground is essential for proper operation of the LP 9x2x One side of all control circuits power circuits and the ground lead must be properly connected to earth ground by either installi...

Page 21: ...onment The RJ 45 waterproof connector is optional for use with LAN1 port If you do not need the RJ 45 waterproof connector you can remove the cap and just plug in a regular Ethernet cable If you want...

Page 22: ...021 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Step 3 Wrap the E panel gasket base around the D cable gland base Step 4 Wrap the C clamping ring around the D cable gland base Step 5...

Page 23: ...mail service icpdas com Step 6 Push the A sealing nut forward and Hand tighten it to seal the assembly Step 7 Insert the RJ 45 cable into the RJ 45 connector Step 8 Push the RJ 45 waterproof connecto...

Page 24: ...lication Here is a simple application for using the LP 22xx 52xx 8x2x 9x2x Tips Warnings 1 The input range of power supply is 10 VDC to 30 VDC for LP 8x2x 9x2x and 12 VDC to 48 VDC for LP 22xx 52xx 2...

Page 25: ...e positive terminal of the power supply to the terminal PWR and the negative terminal of the power supply to the P GND Step 2 Connect the USB mouse or the USB keyboard to the USB port Step 3 Connect t...

Page 26: ...ing to a PC the USB device and the power supply Step 1 Connect the positive terminal of the power supply to the terminal PWR and the negative terminal of the power supply to the P GND Step 2 Connect t...

Page 27: ...ng to a PC the USB device and the power supply Step 1 Connect the positive terminal of the power supply to the terminal PWR1 2 and the negative terminal of the power supply to the P GND Step 2 Connect...

Page 28: ...2 4 Installation for LP 9x2x Connecting to a PC the USB device and the power supply Step 1 Connect the positive terminal of the power supply to the terminal PWR1 2 and the negative terminal of the pow...

Page 29: ...M335X PAC Series User Manual version 2 0 4 Page 29 Copyright 2021 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Step 4 Connect to PC or the laptop to the LAN port via an Ethernet switch...

Page 30: ...t need to know the I O expansion capacities in order to choose the best expansion module for achieving maximal efficiency For more information about the I O expansion modules that are compatible with...

Page 31: ...e expansion I O slots to expand the functions For more information about the I O expansion modules that are compatible with the LP 22xx please refer to http www icpdas com root product solutions hmi_t...

Page 32: ...er Manual version 2 0 4 Page 32 Copyright 2021 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Step 3 Close the cover and then fasten the screws Step 4 Insert the I O terminal and then st...

Page 33: ...e expansion I O slots to expand the functions For more information about the I O expansion modules that are compatible with the LP 52xx please refer to http www icpdas com root product solutions hmi_t...

Page 34: ...er Manual version 2 0 4 Page 34 Copyright 2021 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Step 3 Close the cover and then fasten the screws Step 4 Insert the I O terminal and then st...

Page 35: ...the tray completely and set it on a flat surface Step 3 Put the SIM card in the tray and then push the tray back into the socket Tips Warnings Make sure to turn the LP 5231PM 3GWA LP 5231PM 4GE LP 52...

Page 36: ...Assignments and Wiring connections for the I 87054W module are as follows http www icpdas com root product solutions remote_io rs 485 i 8k_i 87k i 87054w html Step 1 Align circuit card with slot and p...

Page 37: ...PAC Series User Manual version 2 0 4 Page 37 Copyright 2021 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Step 3 Attach field wiring using the terminal block and then insert the termina...

Page 38: ...s in order to choose the best expansion module for achieving maximal efficiency For more information about the I O expansion modules that are compatible with the LP 9000 please refer to https www icpd...

Page 39: ...ries User Manual version 2 0 4 Page 39 Copyright 2021 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com The metal part of the cord end terminal on the wire can be direct wired to the termin...

Page 40: ...follow below steps to connect to the LinPAC AM335x PAC Step 1 User can choose the software Putty or others through the Console to connect the LinPAC AM335x PAC Step 2 If user chose the Console user ca...

Page 41: ...rence Step 1 Using the Linux command vi to modify the file etc network interfaces Step 2 Using the to mark the default configuration Remove the comment from each line in the static IP block and commen...

Page 42: ...address of LAN1 LAN2 and the SSH client software Putty or others to connect the LinPAC AM335x PAC Step 1 Using ifconfig command to check the IP address of LAN1 2 Refer to the Figure 2 6 1 Figure 2 6...

Page 43: ...ces 2 7 1 Introduction to Serial port for LP 22xx The following illustrates the ports contained on the LP 22xx The information is organized as follows table Device name Definition in LP 22xx SDK Descr...

Page 44: ...x The information is organized as follows table Device name Definition in LP 52xx SDK Description Default Baud rate dev ttyO1 or COM1 Internal communication with the XV board modules 115200 Console po...

Page 45: ...l communication with the I 87KW modules in slots ttyO5 RS 232 RxD TxD and GND Non isolation Console ttyS0 RS 485 D2 D2 self tuner ASIC inside ttyS1 RS 232 RS 485 RXD TXD CTS RTS and GND for RS 232 Dat...

Page 46: ...AM335X PAC Series User Manual version 2 0 4 Page 46 Copyright 2021 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Figure 2 7 3 2 Serial port mapping on the LP 8121...

Page 47: ...e I 97KW modules in slots ttyO5 RS 232 RS 485 Non isolation Console ttyS0 RS 485 D2 D2 self tuner ASIC inside ttyS1 RS 232 RS 485 RXD TXD CTS RTS and GND for RS 232 Data and Data for RS 485 ttyS34 RS...

Page 48: ...p www icpdas com root product solutions remote_io i 9k_i 97k i 9k_i 97k_aio html XV board series can used with LP 22xx 52xx visit to this website http www icpdas com root product solutions hmi_touch_m...

Page 49: ...ort baudrate data parity stopbit ChangeSlotToI 87k slot send command Close_Com port Close_Slot slot 2 7 5 2 RS 232 port The following is RS 232 serial port for the LP 22xx LP 52xx LP 8x2x and LP 9x2x...

Page 50: ...ed and a maximum speed of 115200 bps The RS 232 port can also be used to connect to an I 7520 module in order to provide general RS 485 communication functionality and also can be used to connect to a...

Page 51: ...he command echo send 232 dev ttyS1 Check that the word send 232 is displayed on the Hyper Terminal screen on the PC C Receive data via the dev ttyS1 port On the LP 8x21 Type the command cat dev ttyS1...

Page 52: ...LP 22xx LP 52xx LP 8x2x and LP 9x2x as illustrated in Figures 2 7 5 3 1 2 7 5 3 2 and 2 7 5 3 4 below Figure 2 7 5 3 1 RS 485 connections of COM2 and COM5 for LP 22xx Figure 2 7 5 3 2 RS 485 connecti...

Page 53: ...t with any converter ICP DAS provides a very easy to use library of functions libi8k a that can use to easily communicate with I 7000 I 8000 I 9000 I 87k and I 97k series modules Below is an applicati...

Page 54: ...S0 port On the LP 8x21 Type the command cat dev ttyS0 On the PC Enter some words in the Hyper Terminal screen on the PC Check that the same text displayed on the LP 8x21 LP 8000 send information via C...

Page 55: ...115200 bps via dev ttyS1 port stty F dev ttyS1 ispeed 115200 ospeed 115200 Use the getsendreceive command to query or configure the COM port Refer to Figure 2 7 6 1 For example the I 7060 module is co...

Page 56: ...sic Linux Command The Linux basic command can be used to set Linux OS or get system information in the LinPAC AM335x PAC This section provides an introduction to some of the more commonly used Linux i...

Page 57: ...lete Parameter Description Example i Displays a warning message before deleting rm i test exe r Deletes the directory even if it isn t empty rm r test exe f No warning message displayed when deleting...

Page 58: ...ersion information 3 1 12 ps displays a list of the currently active procedures 3 1 13 ftp transfers a file using the file transfer protocol FTP Syntax ftp IPAdress Example ftp 192 168 0 200 connect t...

Page 59: ...nd network mask information Equivalent DOS Command ipconfig 3 1 19 ping used to test whether the host in a network is reachable Syntax ping IPAddress For example ping 192 168 0 1 3 1 20 clear clears t...

Page 60: ...2021 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 3 1 24 update rc d install and remove System V style init script links update rc d n name defaults Example update rc d hello defaults...

Page 61: ...gital Output value for I 8K modules getdi Reads the Digital Input value for I 8K 9K modules setport Sets the Port offset value for the module getport Reads the Port offset value for the module getsend...

Page 62: ...data setdo 3 3 Sets channels 1 and 2 on the I 8055W module to ON getdi getdi slot type getdi 3 8 Reads the 8 bit Digital Input value from the I 8055W module setport setport slot offset data setport 1...

Page 63: ...ard setxvao Set analog output value to XV Board getxvdi Get digital input value from XV Board getxvai Get analog input value from XV Board getxvdo Get digital output value from XV Board getxvao Get an...

Page 64: ...x embedded controller platform The toolkit consists of the following items LinPAC_AM335x SDK Linaro GCC toolchain Libraries header examples files etc Code Blocks project file Windows platform only Bas...

Page 65: ...the LinPAC_AM335x SDK embedded controller Note 1 The latest Linux AM335x SDK is integrate AM335x series SDK Select the appropriate software for your controller 2 The names of all the I O module s API...

Page 66: ...lation is sometimes more complicated than normal compilation and errors are easier to make Therefore this method is often only employed if the program cannot be compiled on the target system or if the...

Page 67: ...s folder in root directory change the root user by sudo or su command Refer to Figure 4 2 1 1 Figure 4 2 1 1 Create a directory named icpdas 2 Visit the ICP DAS website to download the latest version...

Page 68: ...nvironment variables using the provided environment variable script which is called linpac_am335x sh LP 8x2x and LP 9x2x for example Refer to Figure 4 2 1 5 Figure 4 2 1 5 Setting environment variable...

Page 69: ...ce file for Code Blocks project Open the SDK folder and double click the icon for the LinPAC_AM335x_SDK_for_Windows exe file when the Setup Wizard is displayed click the Next button to continue refer...

Page 70: ...ndicate the status refer to Figure 4 2 2 5 Once the software has been successfully installed click the Finish button to complete the development toolkit installation refer to Figure 4 2 2 6 Figure 4 2...

Page 71: ...s ICPDAS LinPAC_AM335x_SDK LinPAC_AM335x Build Environment A Command Prompt window will then be displayed that allows applications for the LinPAC_AM335x to be compiled Refer to Figures 4 2 2 9 and 4 2...

Page 72: ...AM335x SDK with Code Blocks IDE on Windows platform Step 1 Download Code Blocks IDE Go to this website http www codeblocks org downloads binaries Go to the Windows 2000 XP Vista 7 section and downloa...

Page 73: ...rved E mail service icpdas com Following window will come up Refer to Figure 4 2 3 2 Figure 4 2 3 2 Startup the LinPAC AM335x SDK Check compiler settings for Linaro GCC cross compiler Click Settings C...

Page 74: ...4 2 3 4 Figure 4 2 3 4 Compiling a C program Note If you observer some characters may not display properly in cmd exe change the code page for the console only do the following Double click the short...

Page 75: ...executable file and executes this on the LinPAC AM335x PAC In this example no ICP DAS modules are used To create a demo program with C language that includes the following main steps 1 Find demo hello...

Page 76: ...the code is case sensitive Refer to Figure 4 3 1 1 for more details Figure 4 3 1 1 Creating helloworld c 3 Find the demo in SDK The process can be divided into two steps which are described below Ope...

Page 77: ...pile Demo helloworld c Type the command arm linux gnueabihf gcc o helloworld exe helloworld c to compile helloworld c into helloworld exe then type dir w or ls command to display the contents of the d...

Page 78: ...he ftp IP Address of the LP 8x21 for example ftp 192 168 0 200 to establish a connection to the FTP Server on the LP 8x21 When prompted type the User_Name default value is root and Password default va...

Page 79: ...solution for both client and server https filezilla project org 2 Type the User_Name default value is root and Password default value is icpdas Then click the Quickconnect Connect button to establish...

Page 80: ...exe file in the LP 8x21 to select it and then right click the file icon and click the File Permissions option In the Properties dialog box type 777 into the Numeric textbox and then click the OK butt...

Page 81: ...it signifies that a connection to the telnet server on the LP 8x2x has been successfully established refer to Figure 4 3 3 6 Figure 4 3 3 6 Establish a connection to the telnet server 3 Type the chmo...

Page 82: ...script file in etc init d directory and add below script language to the file 3 Type chmod 755 etc init d hello command to change the access permissions for the file 4 Use update rc d command to add...

Page 83: ...l software packages from local package repositories or ones located on the Internet Package management via apt get runs hand in hand with the etc apt sources list file This page describes how to handl...

Page 84: ...er can transfer the file from Windows or Linux For examples using Windows Program WinSCP to access the device over network please follow below steps 1 Choosing the SFTP or SCP protocol and type IP add...

Page 85: ...omatically at boot time As a solution stack LAMP is suitable for building dynamic web sites and web applications The default path of web page in the var www directory If user want to change the web pa...

Page 86: ...low on system resources while still being visually appealing and user friendly Now the LinPAC AM335x series Linux provides the XFCE package after user type root and password icpdas to login the local...

Page 87: ...disable screensaver and make the monitor sleep using xset follow the command described below export DISPLAY 0 0 xset s noblank xset s 0 0 xset dpms 0 0 0 xset dpms turn off DPMS xset q query current s...

Page 88: ...cpdas com 5 5 SysVinit Support SysVinit is a system and service manager for Linux operating systems User can start stop enable disable software service by using Linux command service and update rc d R...

Page 89: ...4G LP 5231PM 3GWM support the 2G 3G system and LP 2241MX 4GE LP 2241MX 4GC LP 5231PM 4GE LP 5231PM 4GC support the 2G 3G 4G system User can use the command service pppon start to start 2G 3G 4G or th...

Page 90: ...ations to be implemented on the LP 5231PM 3GWA and LP 2241MX 4GE LP 2241MX 4GC LP 5231PM 4GE LP 5231PM 4GC module each of which will be described in more detail below However it is recommended that on...

Page 91: ...gsm utils command to install the gsm utils package Step 2 Use the following command to send an SMS message gsmsendsms d dev ttyUSB3 8869XXXXXXXX gsm test b Gnokii Gnokii is a suite of programs for com...

Page 92: ...nokii command to create a symbolic link in the root config gnokii folder as illustrated in Figure 5 6 2 1 2 Figure 5 6 2 1 2 Creating the directory and file links Step 5 Use the gnokii identify comman...

Page 93: ...config command to modify the configuration file The Gammu package includes an easy to use tool gammu config which allows the user to create and configure the most important options in the Gammu confi...

Page 94: ...Download the SMS Server Tools package The latest version of the SMS Server Tools package can be downloaded from http smstools3 kekekasvi com index php p packages Step 2 Compile and install the SMS Se...

Page 95: ...pdas com Step 4 Use the etc init d sms3 start command to start the SMSD service in the background as illustrated in Figure 5 6 2 1 9 Step 5 Use the following command to send an SMS message as illustra...

Page 96: ...tails of how to accomplish this Step 1 Use the following command to create a new system locale and write the LC_CTYPE zh_TW utf8 environment variables to the etc default locale file as illustrated in...

Page 97: ...e sure to pay attention to the following items 1 Unmount the microSD card before removing it 2 Do not power off or reboot the LinPAC AM335x PAC while data is being written to or read from the microSD...

Page 98: ...All Rights Reserved E mail service icpdas com 2 Type mkdir mnt hda to create a directory named hda Refer to Figure 6 1 2 3 Files contained on a mounted microSD card can be accessed from the mnt hda di...

Page 99: ...roSD Card To use a microSD card insert the microSD card into the socket on the LinPAC AM335x PAC and it will be automatically mounted when the LinPAC AM335x PAC is booted The files of SD card can then...

Page 100: ...service icpdas com 6 1 2 Unmounting the microSD Card Before removing the microSD card from the LinPAC AM335x PAC unmount the card by entering the command umount boot uboot The microSD card can then b...

Page 101: ...S file systems mkfs this command is used to build a Linux file system on a device usually a hard disk partition Parameter Description Example report print a report for device blockdev report dev mmcbl...

Page 102: ...kfs vfat this command is used to make an MS DOS filesystem Parameter Description Example create a Linux MINIX file system mkfs minix dev mmcblk0p1 c check the device for bad blocks before building the...

Page 103: ...ed E mail service icpdas com 6 2 Using a USB Storage Device USB storage devices are not automatically mounted to the LinPAC AM335x PAC set it must be manually mounted before attempting to access the U...

Page 104: ...Type mount dev sda1 mnt usb to mount the USB storage device to the usb directory and then type ls mnt usb to view the contents of the USB storage device Refer to Figure 6 2 1 1 Figure 6 2 1 1 Mountin...

Page 105: ...wdt command to enable and configure the WDT There are three steps to this process which are described below 1 Enable the WDT Enable the WDT The default response time is 10 seconds wdt e Enable the WD...

Page 106: ...process which are described below 1 Refresh WDT source echo timer sys class leds beaglebone wdt trigger Refresh WDT 2 Enable WDT echo 0 proc hmistat radiopower Enable WDT To Disable WDT working status...

Page 107: ...s class gpio export 2 The EEPROM FRAM is write protected by default the user needs to modify default value echo out sys class gpio gpio64 direction 3 Change to writable of EEPROM FRAM echo 0 sys class...

Page 108: ...les have 6 LED indicators as illustrated in Figure 6 5 1 1 Figure 6 5 1 1 LED indicators for LP 22xx series LED Indicator Color Meaning 4G Green The 4G LED indicates that the antenna is connected to 4...

Page 109: ...52xx series The LP 52xx series modules have 3 4 LED indicators as illustrated in Figure 6 5 2 1 Figure 6 5 2 1 LED indicators for LP 52xx series LED Indicator Color Meaning 3G 4G Green The 3G 4G LED i...

Page 110: ...demo program illustrates control method of the LP 52xx LED indicator user can be found demo code in the path C cygwin LinPAC_am335x_SDK examples common led 52xx c or root LinuxPC ICPDAS icpdas linpac_...

Page 111: ...LED indicators for LP 8x2x series LED Indicator Color Meaning PWR Green Power 1 is on RUN Red OS is running Red User programmable LED indicator The led_8x2x c demo program illustrates control method...

Page 112: ...cators for LP 9x2x series LED Indicator Color Meaning PWR Red Power is on RUN Green OS is running L1 Orange User programmable LED indicator L2 Red The led_9x2x c demo program illustrates control metho...

Page 113: ...lot of an LP 8x2x 9x2x embedded controller In this way additional serial ports can be used on the LP 8x2x 9x2x embedded controller meaning that the maximum number of serial ports available on the LP 8...

Page 114: ...erved E mail service icpdas com Figure 7 1 2 The number of each serial port on the I 8112iW modules are presented Figures 7 1 3 and 7 1 4 illustrated the serial port numbers that correspond to the dev...

Page 115: ...n Figure 7 1 6 Figure 7 1 6 Lists the names of all modules inserted Selection guide for High profile I 8K modules Module Interface Ports Max Channels Max Speed Kbps Isolation V I 8112iW RS 232 2 16 11...

Page 116: ...all the serial ports can be controlled simultaneously The number of each serial port on the I 9114 and I 9144 modules are presented in Figure 7 1 7 and is fixed based on their slot position Figure 7...

Page 117: ...erial port as illustrated in Figure 7 1 9 Figure 7 1 9 Lists the names of all modules inserted Selection guide for High profile I 9K modules Module Interface Ports Max Speed Kbps Isolation Vrms I 9114...

Page 118: ...that is inserted into the slot 2 on the LP 8x21 which in turn is connected to an RS 485 network The address of the I 7044 module is 02 and the baud rate is 115200 bps Figure 7 1 1 1 provides an illust...

Page 119: ...milliseconds wBuf 6 0 Debug string while j 113 printf Enter the DO value or press q to quit scanf s i if i 0 q wBuf 5 0 All DO Channels OFF wRetVal DigitalOut wBuf fBuf szSend szReceive 7044 DO break...

Page 120: ...eries User Manual version 2 0 4 Page 120 Copyright 2021 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Figure 7 1 1 2 below illustrates the result of the execution Figure 7 1 1 2 Results...

Page 121: ...es that run on bridges and switches An extension of STP is the MSTP Multiple Spanning Tree Protocol which can be used to prevent loops and broadcast storms on a network and also provide redundant link...

Page 122: ...ils command to install bridge utils package Step 2 Before proceeding back up the interfaces file found in the etc network directory Step 3 Locate the interfaces mstpd file in the etc network directory...

Page 123: ...current configuration information for the network interface as illustrated in Figure 7 2 3 Figure 7 2 3 Checking the IP address that has been assigned to the br0 interface Step 7 Use the mstpctl showb...

Page 124: ...erved E mail service icpdas com Step 8 Use the mstpctl showport br0 command to check the connection status of the two LANs and monitor any changes in the status when inserting or removing the Ethernet...

Page 125: ...ny receivers through a broker It is useful for mobile applications because of its small size low power usage and minimized data packets The LinPAC controller provides message transfer functionality fo...

Page 126: ...stalling the packages it is recommended that you use the command sudo apt get update to upgrade the package lists MQTT broker You can deploy the MQTT broker on either a UA 5200 or a LinPAC series modu...

Page 127: ...igital I O to a broker and subscribe to topics from a broker that are used to control the DO lines In a similar way other MQTT clients can obtain the status information from the Digital I O by subscri...

Page 128: ...cd mq 7200m document mq 7200m_user_manual_english_v100 pdf Figure 7 3 4 Connectivity information Step 2 Managing topics and subscriptions On the LP 9x2x module use the following command to subscribe t...

Page 129: ...ing published is MQ7255M SetValue DO1 We can use the command to turn the device OFF or ON by publishing the status value 0 or 1 for the DO1 channel to the topic MQ7255M SetValue DO1 In a similar way w...

Page 130: ...e found in the C cygwin LinPAC_am335x_SDK examples common or root LinuxPC ICPDAS icpdas linpac_am335x_sdk i8k examples common folder The following is the procedure for configuring the Power on Value S...

Page 131: ...ter to measure the channel output voltage on the I 87024W module and verify that the voltage is the same as before the LinPAC was restarted Notes 1 Use the DCON protocol to configure the I 87024W modu...

Page 132: ...le I 8K series or serial high profile I 87K series The differences between the I 8K and I 87K series modules are as follows Item I 8K Series I 87K Series Microprocessor No Yes 8051 Communication Inter...

Page 133: ...I 97K series modules with serial interface The differences between the two series are listed as follows The differences between the I 9K and I 97K series I O modules are as follows Item I 9K Series I...

Page 134: ...x and WP 2x41 52xx CE7 One PAC can only plug only one XV board The XV board series have following common specification DI channel is dry contact sink type DO channel is open collector sink type For mo...

Page 135: ...ssue V2 0 0 Jan 2019 1 Add the product introduction for LP 22xx 2 Add the product introduction for LP 5231PM 4GE 3 Add the product introduction for LP 5231PM 4GC 4 Add the Power on Value Settings V2 0...

Reviews: