How do I use TX2 to control servo motor driver

Now I have a servo motor driver, which supports RS485 and CAN bus communication mode. I want to use my TX2 to control this drive. What should I do?Is there a case that tells me how to connect, what to install on TX2, how to write commands and so on?