In the "can_485_module_v1.x" Hardware data compression package, provide a schematic diagram of the Cadence format and
Schematic diagram of PCB, AD format and PDF format.
The Linux driver for the 485 module is the "drivers/char/max485_ctl.c" file in the kernel directory, the default kernel
The driver is already included in the image.
The test routine provides a "Schindler itop-imx6-minilinux-rs485_v1.x" compression package.
1 Hardware Connection
The hardware tested in this document is two pieces of itop-imx6 Universal board. When users test their 485 devices, they can
One of the boards is replaced by its own 485 device.
As shown in. Development Board 1 and Development Board 2 is connected A to A, B, after the connection is completed as
Shown
Since the GPS and 485 modules re-use a set of serial ports, if the user buys the Development Board plan, both the GPS module
block, and 485 modules, you need to verify that the R38 and R40 resistors are welded on the baseplate when testing
The R141 and R143 resistors are removed, and the four resistors are 0 ohms.
After the hardware connection is complete, the software can be tested.
2 Software Testing
When the board is running a minimal system, copy the executable to the Development Board via TFTP, NFS, or USB stick mount
Directory.
After modifying the permissions, execute the "./test_485/dev/ttymxc2 0" command to receive the information. As shown in.
Execute the "./test_485/dev/ttymxc2 1" command on another board to send the message. As shown in.
At this point, the receiving end can receive the message. The details are as shown.
After exchanging the sender and receiver, the communication is still normal, as shown in.
The test is complete.
ITOP-IMX6 Development Board-minilinux-rs485 testing using documentation