Difference between revisions of "UIO-4032"
From ESS-WIKI
Line 113: | Line 113: | ||
# echo "Serial Port Test" > /dev/ttymxc0</pre> | # echo "Serial Port Test" > /dev/ttymxc0</pre> | ||
− | [[File:UIO-4032 rearIO 232 com3.png]] | + | [[File:UIO-4032 rearIO 232 com3.png|RTENOTITLE]] |
RS-232(4032_COM4) | RS-232(4032_COM4) | ||
Line 121: | Line 121: | ||
</pre> | </pre> | ||
− | [[File:UIO-4032 rearIO 232 com4.png]] | + | [[File:UIO-4032 rearIO 232 com4.png|RTENOTITLE]] |
USB x2<br/> USB3.0 HUB+USB Keyeboard&Mouse<br/> USB3.0 driver data copy compare | USB x2<br/> USB3.0 HUB+USB Keyeboard&Mouse<br/> USB3.0 driver data copy compare | ||
Line 127: | Line 127: | ||
Ethernet x1 | Ethernet x1 | ||
− | [[File:UIO-4032 rearIO ethernet.png]] | + | [[File:UIO-4032 rearIO ethernet.png|RTENOTITLE]] |
+ | |||
+ | | ||
+ | |||
+ | = RSB-3710 = | ||
+ | |||
+ | ''' Note: RS-232: /dev/ttyS0 <br/> GPIO : need to connect loopback.<br/> RS-485: pin1 data- & pin2 data+ (ttyUSB0)''' | ||
+ | |||
+ | '''RS-232''' | ||
+ | <pre>$ stty -F /dev/ttyS0 -echo -onlcr 115200 crtscts | ||
+ | $ cat /dev/ttyS0 & | ||
+ | $ echo "Serial Port Test" > /dev/ttyS0</pre> | ||
+ | |||
+ | '''RS485 <br/> <br/> Test RS-485 with Adam-4520.''' | ||
+ | <pre>$ stty -F /dev/ttyUSB0 115200 | ||
+ | $ echo "Serial Test" > /dev/ttyUSB0</pre> | ||
+ | |||
+ | '''GPIO ''' | ||
+ | |||
+ | '''[[File:RSB-3710 GPIO define 2022-01-20 142613.jpg|RTENOTITLE]]''' | ||
+ | |||
+ | [[File:RSB-3710 gpio1 2022-01-20 142757.jpg|RTENOTITLE]] | ||
+ | |||
+ | [[File:RSB-3710 gpio2 2022-01-20 142824.jpg|RTENOTITLE]] | ||
+ | |||
+ | == <headertabs></headertabs> == | ||
+ | <div id="gtx-trans" style="position: absolute; left: 40px; top: 6183.14px;"><div class="gtx-trans-icon"> </div> </div> |
Revision as of 03:02, 25 March 2024
[edit]
Rear IO – RS-232 x2 (ttymxc1 & ttymxc3)RS-232 x2 :
Note:ttymxc2 –COM_3 ttymxc3-COM_4
'''$ stty -F /dev/ttymxc2 -echo -onlcr 115200 crtscts $ cat /dev/ttymxc2 & $ echo "Serial Port Test" > /dev/ttymxc2
USB
Insert a USB disk usb 1-1.2: new high-speed USB device number 4 using ci_hdrc usb-storage 1-1.2:1.0: USB Mass Storage device detected scsi2 : usb-storage 1-1.2:1.0 scsi 2:0:0:0: Direct-Access Generic- SD/MMC 1.00 PQ: 0 ANSI: 0 CCS sd 2:0:0:0: [sda] 3862528 512-byte logical blocks: (1.97 GB/1.84 GiB) sd 2:0:0:0: [sda] Write Protect is off sd 2:0:0:0: [sda] No Caching mode page found sd 2:0:0:0: [sda] Assuming drive cache: write through sd 2:0:0:0: [sda] No Caching mode page found sd 2:0:0:0: [sda] Assuming drive cache: write through sda: sda1 sd 2:0:0:0: [sda] No Caching mode page found sd 2:0:0:0: [sda] Assuming drive cache: write through sd 2:0:0:0: [sda] Attached SCSI removable disk
LAN
ifconfig eth1 8.8.8.8
COM Port
Rear IO – RS-232 x 2
USB x 2
Ethernet x 1
Note:
ttymxc1 – COM3
ttymxc3 – COM4
RS-232(COM3):
# stty -F /dev/ttymxc1 -echo -onlcr 115200 # cat /dev/ttymxc1 & # echo "Serial Port Test" > /dev/ttymxc1
RS-232(COM3):
# stty -F /dev/ttymxc3 -echo -onlcr 115200 # cat /dev/ttymxc3 & # echo "Serial Port Test" > /dev/ttymxc3
USB
USB3.0 HUB+USB Keyeboard&Mouse USB3.0 driver data copy compare
Ethernet
RS-232(4032_COM3):
# stty -F /dev/ttymxc0 -echo -onlcr 115200 # cat /dev/ttymxc1 & # echo "Serial Port Test" > /dev/ttymxc0
RS-232(4032_COM4)
# stty -F /dev/ttymxc3 -echo -onlcr 115200 # cat /dev/ttymxc3 & # echo "Serial Port Test" > /dev/ttymxc3
USB x2
USB3.0 HUB+USB Keyeboard&Mouse
USB3.0 driver data copy compare
Ethernet x1
RSB-3710
Note: RS-232: /dev/ttyS0
GPIO : need to connect loopback.
RS-485: pin1 data- & pin2 data+ (ttyUSB0)
RS-232
$ stty -F /dev/ttyS0 -echo -onlcr 115200 crtscts $ cat /dev/ttyS0 & $ echo "Serial Port Test" > /dev/ttyS0
RS485
Test RS-485 with Adam-4520.
$ stty -F /dev/ttyUSB0 115200 $ echo "Serial Test" > /dev/ttyUSB0
GPIO