console sample : Serial
RS-422/485 communication sample program
- The following files are created by executing make.
$ cd ./(sample directory)
$ make
→ ./serial, ./serial.o
- Example) Perform full duplex communication self-loop of RS-422/485.
$ ./serial
* Please refer to each product manual and refer to the wiring diagram below to create a self-loop cable.
Note)
This is a sample program that performs RS-422/485 full duplex communication self loop.
Target the port recognized as /dev/ttyS0 on Linux (/dev/ttyS4 for VPC-1700 or VPC-3100).
If the port settings recognized by the device are different, change the sample source code according to the recognition status before building.
Change the setting to "RS-422 Full Duplex" on the BIOS in advance.