SEARCH
TOOLBOX
LANGUAGES
modified on 11 April 2012 at 15:08 ••• 11,024 views

Lincoln UART RS485 Example

From Manuals

(Difference between revisions)
Jump to: navigation, search
(Created page with '==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60E]== The I/O Plus option for…')
(Compatibility Lincoln 60, Lincoln 60E)
 
(One intermediate revision not shown)
Line 1: Line 1:
==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60E]==
==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60E]==
-
The I/O Plus option for the Lincoln adds a RS485 tranceiver. In order to run this example you will need the following equipment:
+
The I/O Plus option for the Lincoln adds a RS485 tranceiver. In order to run the uart_rs485_master and uart_rs485_slave examples you will need the following equipment:
* 1. Two Lincolns with the I/O Plus Option populated
* 1. Two Lincolns with the I/O Plus Option populated
Line 10: Line 10:
* 1. Compile the uart_rs485_master example.
* 1. Compile the uart_rs485_master example.
-
* 2. Program one of the Lincolns with the binary and this will be the Lincoln used to transmit CAN messages
+
* 2. Program one of the Lincolns with the binary and this will be the Lincoln used as the RS485 master.
-
* 3. Compile the example with the "#define CAN_TRANSMIT" set to 0
+
* 3. Compile the example uart_rs485_slave example.
-
* 4. Program the other Lincoln with the binary and this will be the Lincoln used to receive CAN messages
+
* 4. Program the other Lincoln with the binary and this will be the Lincoln used as the RS485 slave.
* 5. Disconnect the power to both boards
* 5. Disconnect the power to both boards
-
* 6. Connect the two boards together with the 2x5 to 2x5 ribbon cable on J13
+
* 6. Connect the two boards together with the two wires on the J14 screw terminals. NOTE: Make sure to connect the same side of the screw terminal to the same side of the second board.
-
* 7. Open a terminal window for each board set to 115200, 8 data bits, no parity, 1 stop bit, and no hardware handshaking
+
* 7. Open a terminal window for each board set to 115200, 8 data bits, no parity, 1 stop bit, and no hardware handshaking.
-
* 8. Connect a COM port to COM1 of each Lincoln board
+
* 8. Connect a COM port to COM1 of each Lincoln board.
-
* 8. Apply power to the Lincoln that will receive the CAN messages
+
* 8. Apply power to the Lincoln that is the RS485 slave.
-
* 9. Apply power to the Lincoln that will transmit the CAN messages
+
* 9. Apply power to the Lincoln that is the RS485 master.
The following screen shot is of the RS485 examples in action.   
The following screen shot is of the RS485 examples in action.   
[[Image:Lincoln_rs485.png|center|]]
[[Image:Lincoln_rs485.png|center|]]

Current revision as of 15:08, 11 April 2012

Compatibility Lincoln 60, Lincoln 60E

The I/O Plus option for the Lincoln adds a RS485 tranceiver. In order to run the uart_rs485_master and uart_rs485_slave examples you will need the following equipment:

  • 1. Two Lincolns with the I/O Plus Option populated
  • 2. Two COM ports on a computer
  • 3. Two wires to connect the RS485 port

Please follow these steps to run the RS485 master and RS485 Slave example:

  • 1. Compile the uart_rs485_master example.
  • 2. Program one of the Lincolns with the binary and this will be the Lincoln used as the RS485 master.
  • 3. Compile the example uart_rs485_slave example.
  • 4. Program the other Lincoln with the binary and this will be the Lincoln used as the RS485 slave.
  • 5. Disconnect the power to both boards
  • 6. Connect the two boards together with the two wires on the J14 screw terminals. NOTE: Make sure to connect the same side of the screw terminal to the same side of the second board.
  • 7. Open a terminal window for each board set to 115200, 8 data bits, no parity, 1 stop bit, and no hardware handshaking.
  • 8. Connect a COM port to COM1 of each Lincoln board.
  • 8. Apply power to the Lincoln that is the RS485 slave.
  • 9. Apply power to the Lincoln that is the RS485 master.

The following screen shot is of the RS485 examples in action.