This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
how_tos:serial_port_programming [2017/03/18 20:43] jeff created |
how_tos:serial_port_programming [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
======Serial Port Programming====== | ======Serial Port Programming====== | ||
- | WattmonPRO | + | |
+ | [[hardware: | ||
=====Using the RS-232 Serial Port===== | =====Using the RS-232 Serial Port===== | ||
- | To open the serial port, use the [[.functions: | + | |
- | The serial port is treated like a file after opening and standard file functions such as [[.functions: | + | To open the serial port, use the [[uphp:functions: |
+ | The serial port is treated like a file after opening and standard file functions such as [[uphp:functions: | ||
An example of using the serial port is shown below: | An example of using the serial port is shown below: | ||
Line 24: | Line 26: | ||
====Jumper Settings Inside Wattmon==== | ====Jumper Settings Inside Wattmon==== | ||
- | {{: | + | |
+ | {{20170318_rs232_mode.png?250|Settings for RS-232 Mode}} < // | ||
====RS-232 Cable Connection==== | ====RS-232 Cable Connection==== | ||
+ | |||
In order to connect to a device you will need to procure a DB9 cable (male or female) and connect it up as shown in the following diagram: | In order to connect to a device you will need to procure a DB9 cable (male or female) and connect it up as shown in the following diagram: | ||
- | {{: | + | {{20170318_wattmonpro_rs232.png?300|RS-232 DB9 Connection to Wattmon}} |
=====Using the RS-485 Serial Port===== | =====Using the RS-485 Serial Port===== | ||
Line 34: | Line 38: | ||
In order to use the RS-485 port, you need to disable modbus polling. | In order to use the RS-485 port, you need to disable modbus polling. | ||
- | {{: | + | {{20170318_modbus_polling_setting.png?600|Disable Modbus Polling}} |
- | To open the RS-485 port, use the [[.functions: | + | To open the RS-485 port, use the [[uphp:functions: |
- | The RS-485 serial port is treated like a file after opening and standard file functions such as [[.functions: | + | The RS-485 serial port is treated like a file after opening and standard file functions such as [[uphp:functions: |
An example of using the RS-485 serial port is shown below: | An example of using the RS-485 serial port is shown below: | ||
Line 58: | Line 62: | ||
====RS-485 Cable Connection==== | ====RS-485 Cable Connection==== | ||
- | Use a standard RJ-45 cable and cut it to connect your RS-485 device to WattmonPRO. | + | Use a standard RJ-45 cable and cut it to connect your RS-485 device to [[hardware: |
^ PIN ^ Color ^ Description | ^ PIN ^ Color ^ Description | ||
| 1,2 | Orange | | 1,2 | Orange | ||
Line 64: | Line 68: | ||
| 5 | White-Blue | D- / B | | | 5 | White-Blue | D- / B | | ||
- | {{: | + | {{20170318_rj45_connector_pinout.png?450|RJ45 Connection Pinout}} |