background image

36 

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))) 

Содержание YMBAO100

Страница 1: ...YMBAO100 Integrated 3 5 ARM based SBC with Cortex A9 i MX6 Dual 1Ghz On board 4G eMMC Android 6 0 1 User s Manual Version 1 1 June 2018 i Tech Company LLC www itechlcd com...

Страница 2: ...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 electrical and...

Страница 3: ...on 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 precautions Wear an anti stat...

Страница 4: ...LL BE BILLED FOR REPAIR AND SHIPPING CHARGES Technical Support Services 1 Visit the i Tech website at www itechlcd com to find the latest information about the product 2 If you need any further assist...

Страница 5: ...rs 11 2 3 Jumper Connector Locations on IBR117 12 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 L...

Страница 6: ...reparation 29 4 2 Installing Toolchain 29 4 3 Building U Boot 29 4 4 Building Kernel 29 4 5 Building RAMdisk Image Optional 30 4 6 Install Linux to SD Card 30 4 7 Booting with Your SD Card 30 Appendix...

Страница 7: ...viii This page is intentionally left blank...

Страница 8: ...1 Chapter 1 General Information The information provided in this chapter includes Features Packing List Specifications Block Diagram Board Overview Board Dimensions...

Страница 9: ...connectivity it supports M 2 Key E type 2230 for the M 2 module and mini PCIe module expansion that are well suited for industrial applications Photo of YMBAO100 1 2 Features NXP ARM Cortex A9 i MX6 D...

Страница 10: ...es as follows Please contact us or your dealer if you need any RF WiFi BT Combo M 2 card 3G LTE Module Mini PCIe card Display 7 TFT LCD LVDS 15 1024 x 768 TFT LCD LVDS 21 TFT LCD LVDS Cable Debug Cabl...

Страница 11: ...4 ASP H 264 HP MPEG 2 MP MJPEG BP Touch USB headers for CPT RTC AnalogTEK AT8565S Wireless WiFi BT 3G LTE module Optional Power Supply 12V DC In Watchdog Timer Yes 256 segments 0 1 2 128 secs Dimensio...

Страница 12: ...t Digital IO 8 In Out Expansion Slots 1 x M 2 E2230 with USB SDIO and UART 1 x Mini PCIe with USB only interrelated with the SIM socket 2 x CAN bus 6 pin header Environment Operating Temperature 0 60...

Страница 13: ...ference only Some minor components may differ I O View No Name No Name 1 USB OTG Port 5 USB 2 0 Ports 2 COM RS 232 422 485 Port 6 DC Jack 3 HDMI Port 7 Reset Button 4 GbE LAN Port 8 LED Indicators fro...

Страница 14: ...General Information 7 1 1 7 Dimensions Unit mm...

Страница 15: ...8 YMBAO100 Reference Heat Sink...

Страница 16: ...section provides information on jumper settings and connectors on the YMBAO100 in order to set up a workable system The topics covered are M 2 card Installation Jumper and connector locations Jumper...

Страница 17: ...ds 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 mini PCIe c...

Страница 18: ...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 PIN2 to PIN3...

Страница 19: ...12 2 3 Jumper Connector Locations on YMBAO100 Board diagram of YMBAO100...

Страница 20: ...ation 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 3 3V defaul...

Страница 21: ...14 2 4 2 LVDS Backlight Power Setting P15 Function Pin closed Illustration 3 3V default 1 2 1 2 5 6 5V 3 4 1 2 5 6 12V 5 6 1 2 5 6...

Страница 22: ...klight Control Connector P9 19 Audio Line In Line Out Connector P14 20 USB Hub Connector P13 20 Digital I O GPIO Connector P18 21 SATA Power Connector P21 21 CAN Bus Connector P25 22 I2 C Connector P2...

Страница 23: ...lection SW3 Panel Type A B C D RS 422 Full Duplex NC ON ON ON Pure RS232 3T 5R NC OFF ON ON RS 485 Half Duplex TX Low Active NC ON OFF ON RS 485 Half Duplex TX High Active NC OFF OFF ON RS 422 Full Du...

Страница 24: ...in 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 Assignment RS 2...

Страница 25: ...Pin Assigment 1 LCD1_TX0_P 2 LCD1_TX0_N 3 Ground 4 Ground 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...

Страница 26: ...UART Connector P17 Pin Assigment Pin Assigment 1 UART2_TXD 4 UART3_TXD 2 UART2_RXD 5 UART3_RXD 3 Ground 6 Ground 2 5 6 LVDS Backlight Control Connector P9 Pin Assigment Pin Assigment 1 BKLT_VCC 3 LCD...

Страница 27: ...Assigment 1 NC 2 Ground 3 LINE_IN_R 4 Ground 5 LINE_IN_L 6 Ground 7 Ground 8 LINE_OUT_L 9 Ground 10 LINE_OUT_R 2 5 8 USB Hub Connector P13 Pin Assigment Pin Assigment 1 Ground 2 NC 3 USB1_DP 4 USB2_P...

Страница 28: ...2 5 9 Digital I O GPIO Connector P18 Pin Assigment Pin Assigment 1 3 3V 2 DIO5 3 DIO1 4 DIO6 5 DIO2 6 DIO7 7 DIO3 8 DIO8 9 DIO4 10 Ground 2 5 10 SATA Power Connector P21 Pin Assigment Pin Assigment 1...

Страница 29: ...s Connector P25 Pin Assigment Pin Assigment 1 CAN1_TXD 4 CAN2_TXD 2 CAN1_RXD 5 CAN2_RXD 3 Ground 6 Ground 2 5 12 I2 C Connector P26 Pin Assigment Pin Assigment 1 VCC 4 I2C3_SCL 2 TP_INT_B 5 I2C3_SDA 3...

Страница 30: ...23 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...

Страница 31: ...es 7 15 21 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 int...

Страница 32: ...Driver Installation 25 3 3 Copy the image to the directory mfgtools 2 3 Profiles Linux OS Firmware files YMBAO100 4 Select the script of mfgtools sdcard recovery...

Страница 33: ...re through the Recovery SD Card 1 Copy the image files what you want to upgrade to U disk YMBAO100 recovery 2 Insert the recovery SD card and U disk to the board for upgrade 3 Power up the board and t...

Страница 34: ...e root display_config config_displag_mode sh 1 2 If you use LVDS 7 to display run the command below home root display_config config_displag_mode sh 2 3 If you use LVDS 15 to display run the command be...

Страница 35: ...or advanced software engineers only to build BSP source The topics covered in this chapter are as follows Preparation Installing Toolchain Building U Boot Building Kernel Building RAMdisk Image Option...

Страница 36: ...BAO100 source file YMBAO100 tar xz into home folder 4 2 Installing Toolchain Decompress Toolchain poky tar into directory opt 4 3 Building U Boot cd home YMBAO100 cd YMBAO100 x11 tmp work imx6dlsabres...

Страница 37: ...0814 111827 3 The appearance of the sentence SD card for booting create done indicates the installation is successfully done 4 Pull out the SD card 4 7 Booting with Your SD Card Insert SD card to your...

Страница 38: ...31 Appendix This section provides the information of reference code...

Страница 39: ...cho 32 sys class gpio export echo in sys class gpio gpio40 direction cat sys class gpio gpio40 value B How to Use Watchdog in Linux create fd int fd open watchdog device fd open dev watchdog O_WRONLY...

Страница 40: ...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 eMMC spee...

Страница 41: ...ead 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 1024k count 100 read...

Страница 42: ...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 1024...

Страница 43: ...ttr 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...

Страница 44: ...IZE 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 writ...

Страница 45: ...tp server 192 168 1 123 lftp 192 168 1 123 EOF upload data to server 192 168 1 123 put data1 download data from server 192 168 1 123 get data1 exit lftp bye Ethernet Ping test ping server 192 168 1 12...

Страница 46: ...ze 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 where...

Страница 47: ...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 draw point by fb...

Страница 48: ...ing writing test HD_DIR run media mmcblk1p1 create data file dd if dev urandom of var data1 bs 1024k count 100 write data to hard disk dd if var data1 of HD_DIR data2 bs 1024k count 100 read data2 and...

Страница 49: ...echo 1 sys class gpio gpio106 value set gpio to 1 echo 0 sys class gpio gpio106 value config gpio to in mode echo in sys class gpio gpio106 direction get gpio value ret0_0 cat sys class gpio gpio106 v...

Страница 50: ...C20 module state and sim state cat dev ttyUSB2 Testing 3G the command will connect 3g to network make sure that the simcard is inserted right and ANT connected pppd call wcdma echo ping www baidu com...

Страница 51: ...9 TechBest 1024041008 Molex 51021 0400 Audio Line In Line Out Connector P14 E Call 0110 01 53101100 JCTC 11002H00 1P Well Lin 1010H USB Hub Connector P13 Hirose DF13E 10DP 1 25V Hirose DF13E 10DP 1 25...

Отзывы: