Difference between revisions of "UIO-4030"

From ESS-WIKI
Jump to: navigation, search
(Created page with "== '''接口布局和尺寸(Layout and Sizes)''' == '''File:UIO-4030 photo 2021-10-27 141551.jpg''' File:UIO-4030 photo1 2021-10-27 141634.jpg File:UIO-4030 photo...")
 
Line 19: Line 19:
 
== '''測試方法: ''' ==
 
== '''測試方法: ''' ==
  
'''&nbsp;Note: RS-232: /dev/ttymxc2&nbsp;<br/>&nbsp;GPIO : need to connect loopback.<br/>&nbsp;RS-485: pin1 data- & pin2 data+ (ttyUSB0)'''
+
'''&nbsp;Note: RS-232: /dev/ttymxc2&nbsp;<br/>&nbsp;GPIO&nbsp;: need to connect loopback.<br/>&nbsp;RS-485: pin1 data- & pin2 data+ (ttyUSB0)'''
  
 
'''RS-232'''
 
'''RS-232'''
<pre>'''$ stty -F /dev/ttymxc2 -echo -onlcr 115200 crtscts
+
<pre>$ stty -F /dev/ttymxc2 -echo -onlcr 115200 crtscts
 
$ cat /dev/ttymxc2 &
 
$ cat /dev/ttymxc2 &
$ echo "Serial Port Test" > /dev/ttymxc2'''</pre>
+
$ echo "Serial Port Test" > /dev/ttymxc2</pre>
  
'''RS485 :<br/>&nbsp;&nbsp; &nbsp;<br/>Test RS-485 with Adam-4520.'''
+
'''RS485&nbsp;:<br/>&nbsp;&nbsp; &nbsp;<br/>Test RS-485 with Adam-4520.'''
<pre>'''$ stty -F /dev/ttyUSB0 115200
+
<pre>$ stty -F /dev/ttyUSB0 115200
$ echo "Serial Test" > /dev/ttyUSB0'''</pre>
+
$ echo "Serial Test" > /dev/ttyUSB0</pre>
  
 
<br/>'''GPIO&nbsp;'''
 
<br/>'''GPIO&nbsp;'''
<pre>'''[EXTENSION I/O B]
+
<pre>[EXTENSION I/O B]
 
pin#5: gpio 121, pin#6: gpio 122
 
pin#5: gpio 121, pin#6: gpio 122
 
pin#7: gpio 123, pin#8: gpio 124
 
pin#7: gpio 123, pin#8: gpio 124
 
pin#9: gpio 125, pin#10: gpio 126
 
pin#9: gpio 125, pin#10: gpio 126
pin#11: gpio 127, pin#12: 133'''</pre>
+
pin#11: gpio 127, pin#12: 133</pre>
  
 
'''================================================================================================================================='''
 
'''================================================================================================================================='''
  
 
'''Watch Dog'''
 
'''Watch Dog'''
<pre>'''$ echo 1 > /dev/watchdog '''</pre>
+
<pre>$ echo 1 > /dev/watchdog</pre>

Revision as of 07:27, 27 October 2021

接口布局和尺寸(Layout and Sizes)

UIO-4030 photo 2021-10-27 141551.jpg

UIO-4030 photo1 2021-10-27 141634.jpg

UIO-4030 photo3 2021-10-27 141714.jpg


Specifications 

UIO-4030 info 2021-10-27 141434.jpg

UIO-4030 spec 2021-10-27 141802.jpg


測試方法: 

 Note: RS-232: /dev/ttymxc2 
 GPIO : need to connect loopback.
 RS-485: pin1 data- & pin2 data+ (ttyUSB0)

RS-232

$ stty -F /dev/ttymxc2 -echo -onlcr 115200 crtscts
$ cat /dev/ttymxc2 &
$ echo "Serial Port Test" > /dev/ttymxc2

RS485 :
    
Test RS-485 with Adam-4520.

$ stty -F /dev/ttyUSB0 115200
$ echo "Serial Test" > /dev/ttyUSB0


GPIO 

[EXTENSION I/O B]
pin#5: gpio 121, pin#6: gpio 122
pin#7: gpio 123, pin#8: gpio 124
pin#9: gpio 125, pin#10: gpio 126
pin#11: gpio 127, pin#12: 133

=================================================================================================================================

Watch Dog

$ echo 1 > /dev/watchdog