background image

Appendix

 

 

 

IBR210 User’s Manual 

37 

 

 

F. 

RS-232 Test 

//open ttymxc1  
fd  = open(/dev/ttymxc1,O_RDWR ); 
 
//set speed 
tcgetattr(fd, &opt); 
cfsetispeed(&opt, speed); 
cfsetospeed(&opt, speed); 
tcsetattr(fd, TCSANOW, &opt) 
 
//get_speed 
tcgetattr(fd, &opt); 
speed = cfgetispeed(&opt); 
 
//set_parity 
// options.c_cflag 
options.c_cflag &= ~CSIZE; 
options.c_cflag &= ~CSIZE;   
options.c_lflag  &= ~(ICANON | ECHO | ECHOE | ISIG);  /*Input*/ 
options.c_oflag  &= ~OPOST;   /*Output*/ 
//options.c_cc 
options.c_cc[VTIME] = 150; 
options.c_cc[VMIN] = 0; 
#set parity 
tcsetattr(fd, TCSANOW, &options) 
 
//write ttymxc1  
write(fd, write_buf, sizeof(write_buf)); 
 
//read ttymxc1 
read(fd, read_buf, sizeof(read_buf))) 
 

 
 

Summary of Contents for iBASE IBR210

Page 1: ......

Page 2: ...ial resulting from the use of the information provided herein Our products are not intended for use in systems in which failures of product could result in personal injury All trademarks mentioned her...

Page 3: ...IBR210 3 5 ARM based SBC With NXP Cortex A53 Quad Dual i MX8M User s Manual Version 0 2 Sep 2019...

Page 4: ...to the products described in this document without prior notice Every effort has been made to ensure the information in the document is correct however IBASE does not guarantee this document is error...

Page 5: ...rer s instructions may cause harmful interference to radio communications WEEE This product must not be disposed of as normal household waste in accordance with the EU directive of for waste electrica...

Page 6: ...being clogged WARNING Attention during use Do not use this product near water Do not spill water or any other liquids on this product Do not place heavy objects on the top of this product Anti static...

Page 7: ...ERS SHALL BE BILLED FOR REPAIR AND SHIPPING CHARGES Technical Support Services 1 Visit the IBASE website at www ibase com tw to find the latest information about the product 2 If you need any further...

Page 8: ...2 4 Jumpers Quick Reference 13 2 4 1 LVDS Power Setting P16 13 2 4 2 LVDS Backlight Power Setting P15 14 2 5 Connectors Quick Reference 15 2 5 1 RTC Lithium Cell Connector P2 16 2 5 2 COM RS 232 422...

Page 9: ...30 4 1 Preparation 31 4 2 Building BSP release 31 Appendix 32 A How to Use GPIO in Linux 33 B How to Use Watchdog in Linux 33 C eMMC Test 34 D USB flash disk Test 35 E SD Card Test 36 F RS 232 Test 3...

Page 10: ...viii IBR210 User s Manual This page is intentionally left blank...

Page 11: ...1 Chapter 1 General Information The information provided in this chapter includes Features Packing List Specifications Block Diagram Board Overview Board Dimensions...

Page 12: ...hannel LVDS for the wireless connectivity Other features are an M 2 Key E type 2230 and mini PCIe expansion that are well suited for industrial applications Photo of IBR210 1 2 Features With NXP Corte...

Page 13: ...Manual 3 1 1 3 Packing List Your IBR210 package should include the items listed below If any of the items below is missing contact the distributor or dealer from whom you purchased the product IBR210...

Page 14: ...der 1080p60 MPEG 2 MPEG 4p2 VC 1 VP8 RV9 AVS MJPEG H 263 decoder Touch USB headers RTC IDT 1337AGDVGI8 Wireless Wi Fi BT 3G LTE module Optional Power Supply 12 24VDC In Jack and Internal header Watchd...

Page 15: ...dio l 1 x Audio header Line in and Line out Digital IO l 8x GPIO 2 5 pin header 1 0mm Expansion Slots 1x M 2 Key E 2230 w USB SDIO UART PCI E 1x Mini PCI E w SIM socket Environment Operating Temperatu...

Page 16: ...6 IBR210 User s Manual 1 5 Overview Top View The photos above are for reference only Some minor components may differ I O View...

Page 17: ...General Information IBR210 User s Manual 7 1 1 6 Dimensions Unit mm...

Page 18: ...8 IBR210 User s Manual IBR210 Reference Heat Sink...

Page 19: ...s section provides information on jumper settings and connectors on the IBR210 in order to set up a workable system The topics covered are M 2 card Installation Jumper and connector locations Jumper s...

Page 20: ...nd M 2 cards perform the following steps 1 Locate the mini PCIe slot align the key of the mini PCIe card to the interface and insert the card slantwise Insert the M 2 card in the same way 2 Push the m...

Page 21: ...l pins with a non conductive base mounted on the circuit board Jumper caps are used to have the functions and features enabled or disabled If a jumper has 3 pins you can connect either PIN1 to PIN2 or...

Page 22: ...12 IBR210 User s Manual 2 3 Jumper Connector Locations on IBR210 Board diagram of IBR210...

Page 23: ...10 User s Manual 13 2 2 4 Jumpers Quick Reference Function Jumper Name Page LVDS Power Setting P16 13 LVDS Backlight Power Setting P15 14 2 4 1 LVDS Power Setting P16 Function Pin closed Illustration...

Page 24: ...14 IBR210 User s Manual 2 4 2 LVDS Backlight Power Setting P15 Function Pin closed Illustration 3 3V default 1 2 5V 3 4 12V 5 6 1 2 5 6 1 2 5 6 1 2 5 6...

Page 25: ...nnector P19 19 LVDS Backlight Control Connector P18 20 Audio Line In Line Out Connector P9 20 USB Hub Connector P7 21 Digital I O GPIO Connector P24 22 MIPI CSI Connector P10 P26 23 MIPI DSI Connector...

Page 26: ...RS 232 422 485 Selection SW3 Panel Type 1 8 2 7 3 6 4 5 RS 422 Full Duplex Off On On On Pure RS232 3T 5R Default Off Off On On RS 485 Half Duplex TX Low Active Off On Off On RS 485 Half Duplex TX Hig...

Page 27: ...ssigment Pin Assigment 1 DCD Data carrier detect 6 DSR Data set ready 2 RXD Receive data 7 RTS Request to send 3 TXD Transmit data 8 CTS Clear to send 4 DTR Data terminal ready 9 NC 5 Ground Pin Assig...

Page 28: ...Pin Assigment Pin Assigment 1 LCD0_TX0_P 2 LCD0_TX0_N 3 Ground 4 Ground 5 LCD0_TX1_P 6 LCD0_TX1_N 7 Ground 8 LCD_VDD 9 LCD0_TX3_P 10 LCD0_TX3_N 11 LCD0_TX2_P 12 LCD0_TX2_N 13 Ground 14 Ground 15 LCD0_...

Page 29: ...round 5 LCD1_TX1_P 6 LCD1_TX1_N 7 Ground 8 LCD_VDD 9 LCD1_TX3_P 10 LCD1_TX3_N 11 LCD1_TX2_P 12 LCD1_TX2_N 13 Ground 14 Ground 15 LCD1_CLK_P 16 LCD1_CLK_N 17 BTL_PWM 18 LCD_VDD 19 BKLT_VCC 20 BKLT_VCC...

Page 30: ...ector P18 Pin Assigment Pin Assigment 1 BKLT_VCC 3 LCD_BKLT_PWM 2 LCD_BKLT_EN 4 Ground 2 5 7 Audio Line In Line Out Connector P9 Pin Assigment Pin Assigment 1 NC 2 Ground 3 LINE_IN_R 4 Ground 5 LINE_I...

Page 31: ...P7 Pin Assigment Pin Assigment 1 USB4_TXDP 2 USB3_PWR_OUT 3 USB4_TXDM 4 USB3_PWR_OUT 5 USB4_RXDP 6 USB3_DM 7 USB4_RXDM 8 USB3_DP 9 Ground 10 Ground 11 Ground 12 Ground 13 USB4_DP 14 USB3_RXDM 15 USB4_...

Page 32: ...ser s Manual 2 5 9 Digital I O GPIO Connector P24 Pin Assigment Pin Assigment 1 3 3V 2 DIO5 gpio148 3 DIO1 gpio146 4 DIO6 gpio76 5 DIO2 gpio74 6 DIO7 gpio149 7 DIO3 gpio147 8 DIO8 gpio77 9 DIO4 gpio75...

Page 33: ...9 MIPI_CSI1_DP3 10 MIPI_CSI1_DN3 11 GND 12 GND 13 CSI1_SCL 14 CSI1_SDA 15 CSI1_RST_B 16 VDD_2V8 17 CSI1_PWEN_B 18 VDD_1V8 19 CSI1_MCLK 20 GND P26 Pin Assigment Pin Assigment 1 MIPI_CSI2_CKP 2 MIPI_CSI...

Page 34: ...ment Pin Assigment 1 MIPI_DSI_CKP 2 MIPI_DSI_CKN 3 GND 4 GND 5 MIPI_DSI_DP0 6 MIPI_DSI_DN0 7 GND 8 VCC_LCD 9 MIPI_DSI_DP1 10 MIPI_DSI_DN1 11 MIPI_DSI_DP2 12 MIPI_DSI_DN2 13 HDMI_INT 14 GND 15 MIPI_DSI...

Page 35: ...Hardware Configuration IBR210 User s Manual 25 2 2 5 12 I2 C Connector P17 Pin Assigment Pin Assigment 1 3V3 4 I2C2_SCL 2 TP_INT_B 5 I2C2_SDA 3 TP_RST_B 6 GND...

Page 36: ...26 IBR210 User s Manual This page was intentionally left blank...

Page 37: ...27 Chapter 3 Software Setup This chapter introduces installation of the following drivers Make a recovery SD card for advanced users only Display parameter setting in kernel...

Page 38: ...5 LVDS panel and HDMI display for you to prepare the software application pre development easily under Linux platform 3 1 1 Preparing the Recovery SD Card to Install Linux Android Image into eMMC Not...

Page 39: ...default 6 If you use HDMI to display run the command below home root display_config config_displag_mode sh 1 7 If you use LVDS 7 to display run the command below home root display_config config_displa...

Page 40: ...30 Chapter 4 BSP Source Guide This chapter is dedicated for advanced software engineers only to build BSP source The topics covered in this chapter are as follows Preparation Building BSP Release...

Page 41: ...building sudo apt get install gawk wget Git core diffstat unzip texinfo sudo apt get install gcc multilib build essential chrpath socat sudo add apt repository ppa git core ppa sudo apt get update sud...

Page 42: ...32 Appendix This section provides the information of reference code...

Page 43: ...io gpio146 value GPIO example 2 Input echo 32 sys class gpio export echo in sys class gpio gpio146 direction cat sys class gpio gpio146 value B How to Use Watchdog in Linux create fd int fd open watch...

Page 44: ...dd if dev urandom of tmp data1 bs 1024k count 10 write data to emmc dd if tmp data1 of MOUNT_POINT_STR data2 bs 1024k count 10 read data2 and compare with data1 cmp MOUNT_POINT_STR data2 tmp data1 eMM...

Page 45: ...ash being used Read write and check USB_DIR run media mmcblk1p1 create data file dd if dev urandom of var data1 bs 1024k count 100 write data to usb flash disk dd if var data1 of USB_DIR data2 bs 1024...

Page 46: ...the SD card Before starting the test make sure there is no critical data in the eMMC flash being used Read write and check SD_DIR run media mmcblk1 create data file dd if dev urandom of var data1 bs...

Page 47: ...et_speed tcgetattr fd opt speed cfgetispeed opt set_parity options c_cflag options c_cflag CSIZE options c_cflag CSIZE options c_lflag ICANON ECHO ECHOE ISIG Input options c_oflag OPOST Output options...

Page 48: ...options c_cflag CSIZE options c_lflag ICANON ECHO ECHOE ISIG Input options c_oflag OPOST Output options c_cc options c_cc VTIME 150 options c_cc VMIN 0 set parity tcsetattr fd TCSANOW options write t...

Page 49: ...r 192 168 1 123 ping c 20 192 168 1 123 tmp ethernet_ping txt Ethernet TCP test server 192 168 1 123 run command iperf3 s communicate with server 192 168 1 123 in tcp mode by iperf3 iperf3 c 192 168 1...

Page 50: ...the size of the screen in bytes screensize vinfo xres vinfo yres vinfo bits_per_pixel 8 Map the device to memory fbp char mmap 0 screensize PROT_READ PROT_WRITE MAP_SHARED framebuffer_fd 0 Figure out...

Page 51: ...res vinfo bits_per_pixel 8 Map the device to memory fbp char mmap 0 screensize PROT_READ PROT_WRITE MAP_SHARED framebuffer_fd 0 Figure out where in memory to put the pixel memset fbp 0x00 screensize d...

Page 52: ...k UC20 module state and sim state cat dev ttyUSB4 Testing 3G the command will connect 3g to network make sure that the simcard is inserted right and ANT connected pppd call quectel ppp echo ping www b...

Page 53: ...Line In Line Out Connector P9 E Call 0110 01 53101100 JCTC 11002H00 1P Well Lin 1010H USB Hub Connector P7 Hirose DF13E 10DP 1 25V Hirose DF13E 10DP 1 25C Digital I O GPIO Connector P24 E Call 0110 0...

Page 54: ...tec de Germany Distec GmbH Augsburger Str 2b 82110 Germering Phone 49 89 894363 0 E Mail info distec de Internet www distec de Switzerland ALTRAC AG Bahnhofstra e 3 5436 W renlos Phone 41 44 7446111 E...

Reviews: