![background image](http://html1.mh-extra.com/html/ibase-technology/ibr117/ibr117_user-manual_3250139045.webp)
Appendix
IBR117
User’s Manual
37
G.
RS-485 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)))
H.
Audio Test
// play mp3 by audio (ALC5640)
gplay-1.0 /home/root/ testscript/audio/a.mp3 -D plughw:1,0
// record mp3 by audio (ALC5640)
arecord -f cd $basepath/b.mp3 -D plughw:1,0
Summary of Contents for IBR117
Page 1: ...IBR117 3 5 ARM based SBC With NXP Cortex A9 Dual Core i MX6 User s Manual Version 1 0 May 2018...
Page 8: ...viii IBR117 User s Manual This page is intentionally left blank...
Page 15: ...General Information IBR117 User s Manual 7 1 1 7 Dimensions Unit mm...
Page 16: ...8 IBR117 User s Manual IBR117 Reference Heat Sink...
Page 20: ...12 IBR117 User s Manual 2 3 Jumper Connector Locations on IBR117 Board diagram of IBR117...
Page 39: ...31 Appendix This section provides the information of reference code...