background image

AM335X-PAC  Series  User  Manual                                              version  2.0.1                                                  Page:  86 

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

5.6. Network Support 

 

The LinPAC embedded controller already includes a variety of network functions. Following is an 

overview of the network functions supported in the LinPAC AM335x PAC. 

 

5.6.1. 2G/3G/4G 

 

LP-5231PM-3GWM support the 2G/3G system and 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  the 

command  ‘

service  pppon  stop

  to  stop  2G/3G/4G.  After  checking  for  an  IP  address  from  the 

network 

provider,  look  for  whether  the  ‘

ppp0

  network  interface  is  active.  The  following  is  an 

example of operation in the LP-5231PM-3GWM. (Refer to Figure 5.6.1-1) 

 

 

 

 

 

 

 

 

 

 

Figure 5.6.1-1. 

pppon service 

 

 

 

 

 

 

 

Using 2G/3G/4G network 

Stopping 2G/3G/4G network 

Summary of Contents for LP-22 Series

Page 1: ...LinPAC AM335x Series User Manual V2 0 1 Apr 2019 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: ...Adding an I O Device for LP 52xx 31 2 3 3 Adding an I O Device for LP 8x2x 34 2 3 4 Adding an I O Device for LP 9x2x 35 2 4 Console Port Connection 37 2 5 LAN1 LAN2 Network Configuration 38 2 6 LAN1...

Page 4: ...system date and time 55 3 1 16 hwclock queries and sets the hardware clock RTC 56 3 1 17 netstat displays the current state of the network 56 3 1 18 ifconfig displays the ip and network mask informat...

Page 5: ...6 1 2 Unmounting the microSD Card 96 6 1 3 Scanning and repairing a microSD Card 97 6 2 Using a USB Storage Device 98 6 2 1 Mounting a USB Storage Device 99 6 2 2 Unmounting the USB Storage Device 99...

Page 6: ...X PAC Series User Manual version 2 0 1 Page 6 Copyright 2019 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com B I 9K Modules and I 97K Modules 128 C XV Board Modules 129 D Revision History...

Page 7: ...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 8: ...application Powerful 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...

Page 9: ...p 52xx lp 5231 document data_sheet LinPAC 8x2x series http ftp icpdas com tw pub cd linpac napdos lp 8x2x document data_sheet LinPAC 9x2x series http ftp icpdas com tw pub cd linpac napdos lp 9x2x doc...

Page 10: ...ed tour of the LinPAC AM335x series PAC installation and configuration that describes the steps needed to download install configure and run the basic procedures for the user working with the in LinPA...

Page 11: ...version 2 0 1 Page 11 Copyright 2019 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...

Page 12: ...ved E mail service icpdas com Remove the LP 5231 from the DIN Rail 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 Ins...

Page 13: ...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 14: ...n 2 0 1 Page 14 Copyright 2019 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 15: ...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 16: ...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 17: ...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 18: ...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 19: ...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 20: ...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 21: ...019 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 22: ...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 23: ...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 24: ...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 25: ...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 26: ...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 27: ...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 28: ...XV board LP 22xx 3 1 LP 52xx 3 1 LP 8x2x 2 or 3 1 or 4 or 8 LP 9x2x 4 2 or 4 or 8 Note Support Not Support Before choosing the right I O modules you first need to know the I O expansion capacities in...

Page 29: ...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 30: ...er Manual version 2 0 1 Page 30 Copyright 2019 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 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 52xx please refer to http www icpdas com root product solutions hmi_t...

Page 32: ...er Manual version 2 0 1 Page 32 Copyright 2019 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: ...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 34: ...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 35: ...x2x LP 9000 has 2 4 8 I O expansion slots to support I 9K and I 97K series I O modules Before choosing the right I O modules you first need to know the I O expansion capacities in order to choose the...

Page 36: ...m Step 1 Insert the I O module Tips Warnings If you do not expand the I O module full please keep the top case of the unused slot to protect the backplane from dirt dust and damage from foreign object...

Page 37: ...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 38: ...static mode the following steps for reference 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 eac...

Page 39: ...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 40: ...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 41: ...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 42: ...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 43: ...ed as follows ttyO4 Internal communication with the 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...

Page 44: ...based on a serial interface which is provided for combining a variety of I O function within the LP 8x2x LP 9x2x and LP 22xx 52xx controllers The differences between the three series are listed as fol...

Page 45: ...lly call the ChangeToSlot slot function to specify which slot will be controlled the I 87KW 97K series could be necessary This is like the serial address meaning that control commands can be sent to a...

Page 46: ...E mail service icpdas com 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 as illustrated in Figures 2 7 5 2 1 2 7 5 2 2 and 2 7 5 2 3 below Figure 2...

Page 47: ...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 48: ...the 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 49: ...om 2 7 5 3 RS 485 port The following is 2 wire RS 485 serial port for the 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...

Page 50: ...al communication functionality DATA and DATA and is located on the bottom right corner on the LP 22xx LP 52xx LP 8x2x and LP 9x2x This port allows a connection to be made to modules that contain an RS...

Page 51: ...A Open Hyper Terminal on the Host PC to monitor the test process The default settings for the dev ttyS0 port are 9600 8 N 1 B Send data via dev ttyS0 port On the LP 8x21 Type command echo send 485 de...

Page 52: ...the COM port For example to modify the baud rate 9600 to 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 R...

Page 53: ...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 54: ...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 55: ...version 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...

Page 56: ...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 57: ...2019 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 58: ...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 59: ...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 60: ...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 61: ...P 22xx 52xx 8x2x 9x2x 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 Windo...

Page 62: ...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 63: ...mal 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 program being compiled is so large that it r...

Page 64: ...folder in root directory maybe you need to 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 Insert the installation CD into your CD R...

Page 65: ...Refer to Figure 4 2 1 4 tar jxvf linpac_am335x_sdk_for_linux tar bz2 Figure 4 2 1 4 Decompress tar bz2 file 4 Before compiling the program you need to set LinPAC_AM335x SDK path in environment variab...

Page 66: ...opyright 2019 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 5 Type make on the command line it will execute the compile command according to the Makefile Refer to Figure 4 2 1 6 Figure...

Page 67: ...nsert the installation CD into your CD ROM driver Open the napdos LP 9x21 SDK folder and double click the icon for the LinPAC_AM335x_SDK_for_Windows exe file when the Setup Wizard is displayed click t...

Page 68: ...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 69: ...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 70: ...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 71: ...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 72: ...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 73: ...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 74: ...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 75: ...exe 4 3 3 Execute Demo helloworld exe The user can refer to below steps to transfer and execute helloworld exe Use Dos Command Prompt and FTP tools to transfer program Two methods can be used to tran...

Page 76: ...that the file is transferred to the LP 8x21 in binary mode 3 Type the command put helloworld exe to transfer the helloworld exe file to the LP 8x21 4 Once the message Transfer complete is displayed th...

Page 77: ...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 78: ...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 79: ...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 80: ...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 81: ...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 82: ...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 83: ...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 84: ...program GUI Desktop XFCE is a lightweight desktop environment for UNIX like operating systems It aims to be fast and low on system resources while still being visually appealing and user friendly Now...

Page 85: ...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 86: ...AC 5 6 1 2G 3G 4G LP 5231PM 3GWM support the 2G 3G system and 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 the command serv...

Page 87: ...ations to be implemented on the LP 5231PM 3GWA and LP 5231PM 4GE LP 5231PM 4GC module each of which will be described in more detail below However it is recommended that only one SMS tool be installed...

Page 88: ...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 89: ...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 90: ...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 91: ...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 92: ...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 93: ...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 94: ...ng 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 card 3 The microSD card must be format...

Page 95: ...e 6 1 2 Figure 6 1 2 Create and mount a directory named had 6 1 1 Mounting a microSD Card To use a microSD card insert the microSD card into the socket on the LinPAC AM335x PAC and it will be automati...

Page 96: ...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 be...

Page 97: ...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 mmcblk...

Page 98: ...ted to the LinPAC AM335x PAC set it must be manually mounted before attempting to access the USB storage device Refer to Figure 6 2 1 Figure 6 2 1 Checking that the USB storage device is on disk Param...

Page 99: ...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 100: ...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 101: ...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 102: ...s class gpio export 2 The EEPROM is write protected by default the user needs to modify default value of EEPROM echo out sys class gpio gpio64 direction 3 Change to writable of EEPROM echo 0 sys class...

Page 103: ...P 22xx series The LP 22xx series modules 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 PWR Red Power is on RUN Gre...

Page 104: ...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 105: ...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 106: ...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 107: ...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 108: ...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 109: ...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 110: ...Figure 7 1 6 Figure 7 1 6 Lists the names of all modules inserted Selection guide for Hight profile I 8K modules Module Interface Ports Max Channels Max Speed Kbps Isolation V I 8112iW RS 232 2 16 11...

Page 111: ...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 112: ...rial port as illustrated in Figure 7 1 9 Figure 7 1 9 Lists the names of all modules inserted Selection guide for Hight profile I 9K modules Module Interface Ports Max Speed Kbps Isolation Vrms I 9114...

Page 113: ...dule 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 i...

Page 114: ...044 ID wBuf 3 0 Checksum disable wBuf 4 100 Timeout 100 milliseconds wBuf 6 0 Debug string 7044 DO 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...

Page 115: ...2019 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 7044 DI DigitalIn wBuf fBuf szSend szReceive printf The DI of 7044 u n wBuf 5 Close_Com COM9 return 0 Figure 7 1 1 2 below illustrates...

Page 116: ...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 117: ...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 118: ...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 119: ...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 120: ...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 121: ...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 122: ...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 123: ...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 124: ...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 125: ...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 126: ...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 127: ...modules can be either parallel high profile 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 Micr...

Page 128: ...terface the other is 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 follow...

Page 129: ...LP 22xx 52xx 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...

Page 130: ...history information to this document The table below shows the revision history Revision Date Description V1 0 0 July 2018 Initial issue V2 0 0 Jan 2019 1 Add the product introduction for LP 22xx 2 A...

Reviews: