NL 200
NL 200
NL 200
NL200/NL201
Network Link Interface
Revision: 11/17
C o p y r i g h t © 2 0 1 1 - 2 0 1 7
C a m p b e l l S c i e n t i f i c , I n c .
Limited Warranty
“Products manufactured by CSI are warranted by CSI to be free from defects in
materials and workmanship under normal use and service for twelve months
from the date of shipment unless otherwise specified in the corresponding
product manual. (Product manuals are available for review online at
www.campbellsci.com.) Products not manufactured by CSI, but that are resold
by CSI, are warranted only to the limits extended by the original manufacturer.
Batteries, fine-wire thermocouples, desiccant, and other consumables have no
warranty. CSI’s obligation under this warranty is limited to repairing or
replacing (at CSI’s option) defective Products, which shall be the sole and
exclusive remedy under this warranty. The Customer assumes all costs of
removing, reinstalling, and shipping defective Products to CSI. CSI will return
such Products by surface carrier prepaid within the continental United States of
America. To all other locations, CSI will return such Products best way CIP
(port of entry) per Incoterms ® 2010. This warranty shall not apply to any
Products which have been subjected to modification, misuse, neglect, improper
service, accidents of nature, or shipping damage. This warranty is in lieu of all
other warranties, expressed or implied. The warranty for installation services
performed by CSI such as programming to customer specifications, electrical
connections to Products manufactured by CSI, and Product specific training, is
part of CSI's product warranty. CSI EXPRESSLY DISCLAIMS AND
EXCLUDES ANY IMPLIED WARRANTIES OF MERCHANTABILITY
OR FITNESS FOR A PARTICULAR PURPOSE. CSI hereby disclaims,
to the fullest extent allowed by applicable law, any and all warranties and
conditions with respect to the Products, whether express, implied or
statutory, other than those expressly provided herein.”
Assistance
Products may not be returned without prior authorization. The following
contact information is for US and international customers residing in countries
served by Campbell Scientific, Inc. directly. Affiliate companies handle repairs
for customers within their territories. Please visit www.campbellsci.com to
determine which Campbell Scientific company serves your country.
For all returns, the customer must fill out a “Statement of Product Cleanliness
and Decontamination” form and comply with the requirements specified in it.
The form is available from our website at www.campbellsci.com/repair. A
completed form must be either emailed to [email protected] or faxed to
(435) 227-9106. Campbell Scientific is unable to process any returns until we
receive this form. If the form is not received within three days of product
receipt or is incomplete, the product will be returned to the customer at the
customer’s expense. Campbell Scientific reserves the right to refuse service on
products that were exposed to contaminants that may cause health or safety
concerns for our employees.
Safety
DANGER — MANY HAZARDS ARE ASSOCIATED WITH INSTALLING, USING, MAINTAINING, AND WORKING ON OR AROUND
TRIPODS, TOWERS, AND ANY ATTACHMENTS TO TRIPODS AND TOWERS SUCH AS SENSORS, CROSSARMS, ENCLOSURES,
ANTENNAS, ETC. FAILURE TO PROPERLY AND COMPLETELY ASSEMBLE, INSTALL, OPERATE, USE, AND MAINTAIN TRIPODS,
TOWERS, AND ATTACHMENTS, AND FAILURE TO HEED WARNINGS, INCREASES THE RISK OF DEATH, ACCIDENT, SERIOUS
INJURY, PROPERTY DAMAGE, AND PRODUCT FAILURE. TAKE ALL REASONABLE PRECAUTIONS TO AVOID THESE HAZARDS.
CHECK WITH YOUR ORGANIZATION'S SAFETY COORDINATOR (OR POLICY) FOR PROCEDURES AND REQUIRED PROTECTIVE
EQUIPMENT PRIOR TO PERFORMING ANY WORK.
Use tripods, towers, and attachments to tripods and towers only for purposes for which they are designed. Do not exceed design limits.
Be familiar and comply with all instructions provided in product manuals. Manuals are available at www.campbellsci.com or by
telephoning (435) 227-9000 (USA). You are responsible for conformance with governing codes and regulations, including safety
regulations, and the integrity and location of structures or land to which towers, tripods, and any attachments are attached. Installation
sites should be evaluated and approved by a qualified engineer. If questions or concerns arise regarding installation, use, or
maintenance of tripods, towers, attachments, or electrical connections, consult with a licensed and qualified engineer or electrician.
General
• Prior to performing site or installation work, obtain required approvals and permits. Comply
with all governing structure-height regulations, such as those of the FAA in the USA.
• Use only qualified personnel for installation, use, and maintenance of tripods and towers, and
any attachments to tripods and towers. The use of licensed and qualified contractors is highly
recommended.
• Read all applicable instructions carefully and understand procedures thoroughly before
beginning work.
• Wear a hardhat and eye protection, and take other appropriate safety precautions while
working on or around tripods and towers.
• Do not climb tripods or towers at any time, and prohibit climbing by other persons. Take
reasonable precautions to secure tripod and tower sites from trespassers.
• Use only manufacturer recommended parts, materials, and tools.
Utility and Electrical
• You can be killed or sustain serious bodily injury if the tripod, tower, or attachments you are
installing, constructing, using, or maintaining, or a tool, stake, or anchor, come in contact with
overhead or underground utility lines.
• Maintain a distance of at least one-and-one-half times structure height, 20 feet, or the distance
required by applicable law, whichever is greater, between overhead utility lines and the
structure (tripod, tower, attachments, or tools).
• Prior to performing site or installation work, inform all utility companies and have all
underground utilities marked.
• Comply with all electrical codes. Electrical equipment and related grounding devices should be
installed by a licensed and qualified electrician.
Elevated Work and Weather
• Exercise extreme caution when performing elevated work.
• Use appropriate equipment and safety practices.
• During installation and maintenance, keep tower and tripod sites clear of un-trained or non-
essential personnel. Take precautions to prevent elevated tools and objects from dropping.
• Do not perform any work in inclement weather, including wind, rain, snow, lightning, etc.
Maintenance
• Periodically (at least yearly) check for wear and damage, including corrosion, stress cracks,
frayed cables, loose cable clamps, cable tightness, etc. and take necessary corrective actions.
• Periodically (at least yearly) check electrical ground connections.
WHILE EVERY ATTEMPT IS MADE TO EMBODY THE HIGHEST DEGREE OF SAFETY IN ALL CAMPBELL SCIENTIFIC PRODUCTS,
THE CUSTOMER ASSUMES ALL RISK FROM ANY INJURY RESULTING FROM IMPROPER INSTALLATION, USE, OR
MAINTENANCE OF TRIPODS, TOWERS, OR ATTACHMENTS TO TRIPODS AND TOWERS SUCH AS SENSORS, CROSSARMS,
ENCLOSURES, ANTENNAS, ETC.
Table of Contents
PDF viewers: These page numbers refer to the printed version of this document. Use the
PDF reader bookmarks tab for links to specific sections.
1. Introduction ................................................................ 1
2. Precautions ................................................................ 1
3. QuickStart ................................................................... 2
3.1 Physical Setup ...................................................................................... 2
3.2 Configuring the NL200/201 ................................................................. 3
3.3 LoggerNet Setup .................................................................................. 4
3.4 Connect ................................................................................................ 5
4. Overview ..................................................................... 5
5. Specifications............................................................. 8
6. Configuring the NL200/201 ...................................... 10
6.1 Configuring the NL200/201 via USB ................................................ 10
6.2 Configuring the NL200/201 via Network Connection ....................... 10
6.3 Configuring the NL200/201 via Telnet .............................................. 11
6.4 Configuring the NL200/201 via RS-232 ............................................ 11
7. Operation .................................................................. 12
7.1 PakBus® Router ................................................................................ 12
7.1.1 Physical Setup ............................................................................. 13
7.1.2 Configuring the NL200/201 ........................................................ 13
7.1.3 LoggerNet Setup ......................................................................... 14
7.1.4 Connect ....................................................................................... 15
7.2 Bridge Mode ...................................................................................... 15
7.2.1 Physical Setup ............................................................................. 15
7.2.2 Configuring the NL200/201 ........................................................ 15
7.2.3 Configuring the Datalogger ........................................................ 15
7.2.4 LoggerNet Setup ......................................................................... 16
7.2.5 Connect ....................................................................................... 17
7.3 TCP Serial Server............................................................................... 17
7.3.1 Physical Setup ............................................................................. 17
7.3.2 Configuring the NL200/201 ........................................................ 17
7.3.3 LoggerNet Setup ......................................................................... 18
7.3.4 Connect ....................................................................................... 19
7.3.5 Serial Sensors .............................................................................. 19
7.4 TCP Serial Client ............................................................................... 19
7.5 Modbus TCP/IP to RTU Gateway ..................................................... 19
7.6 TLS .................................................................................................... 19
7.6.1 TLS Proxy Server ....................................................................... 21
7.6.2 DevConfig TCP Encrypted Communication to the
NL200/201............................................................................... 23
i
Table of Contents
8. Applications ............................................................. 23
8.1 Working Around Firewalls ................................................................ 23
8.1.1 Configuring the NL200/201 ....................................................... 24
8.1.2 Configuring the Datalogger ........................................................ 24
9. Troubleshooting ....................................................... 25
Appendices
A. Glossary.................................................................. A-1
Figures
3-1. NL200 with CR800 (external power) .................................................. 2
3-2. NL201 with CR800 (powered by datalogger) ..................................... 3
3-3. LoggerNet setup .................................................................................. 5
4-1. NL201 ................................................................................................. 6
4-2. Bridge Mode enabled .......................................................................... 6
4-3. Bridge Mode disabled ......................................................................... 7
5-1. NL200/201 dimensions in inches ........................................................ 8
7-1. PakBus® router LoggerNet setup...................................................... 14
7-2. Bridge mode LoggerNet setup........................................................... 16
7-3. Serial server LoggerNet setup ........................................................... 18
7-4. TLS proxy server configurations ....................................................... 21
8-1. Working around firewalls .................................................................. 24
ii
Table of Contents
Tables
B-1. NL200/201 CS I/O Connector Pinout .............................................. B-1
B-2. RS-232 Pinout .................................................................................. B-1
B-3. Ethernet Pinout................................................................................. B-2
B-4. USB Micro-B ................................................................................... B-2
B-5. Power In ........................................................................................... B-2
B-6. Power LED....................................................................................... B-3
B-7. Ethernet LED ................................................................................... B-3
iii
Table of Contents
iv
NL200/201 Network Link Interface
1. Introduction
The NL200/201 Network Link Interface allows Campbell Scientific
dataloggers and peripherals to communicate over a local area network or a
dedicated Internet connection. This serial to Ethernet interface can be
connected to a datalogger’s CS I/O port or other devices via RS-232.
2. Precautions
• The first time an NL200/201 is attached to a datalogger and Bridge Mode
is enabled, the datalogger’s memory has to be reorganized to allow room
in memory for the IP stack. To avoid the loss of data, collect your data
before enabling Bridge Mode. Note that once the NL200/201 is attached,
it can take up to 10 seconds for the datalogger to recognize it.
• The device driver for the NL200/201 must be installed on your computer
before you can connect to the NL200/201 via USB.
To install the device driver, verify you have the latest version of
DevConfig (see previous bullet). Under Device Type, select Network
Peripheral | NL200 Series. Click the Install the device driver for the
device link and follow the prompts.
1
NL200/201 Network Link Interface
3. QuickStart
Out of the box, the NL200/201 is configured for operation as a PakBus®
Router. In this mode, the NL200/201 can be used to communicate with
Campbell Scientific PakBus devices over an Ethernet / Internet network
connection.
2
NL200/201 Network Link Interface
• Connect the supplied USB cable between a USB port on your computer
and the USB port on the NL200/201.
• Open DevConfig.
• Click OK.
• Click Connect.
3
NL200/201 Network Link Interface
• To enter a static IP address, select disable in the Use DHCP field. Then
input the IP Address, Network Mask, and Default Gateway. These
values can be provided by your network administrator.
• In the LoggerNet Setup screen, press Add Root and choose IPPort. Input
the NL200/201’s IP address and port number. The IP address and port
number are input on the same line separated by a colon. IPv6 addresses
will need to be enclosed in square brackets when specifying a port number.
An IPv4 address may look like 192.168.1.100:6785. An IPv6 address may
look like [2001:db8::1234:5678]:6785. A fully qualified host name entry
may look like yourlogger.com:6785.
• Add the datalogger and input the PakBus® address of the datalogger.
• You can verify that your settings are correct by selecting the datalogger in
the Network Map, selecting the Clock tab, and pressing Check Clocks. If
your settings are correct, you should see the current clock of your server
and datalogger.
4
NL200/201 Network Link Interface
3.4 Connect
You are now ready to connect to your datalogger using the LoggerNet Connect
screen.
4. Overview
The NL200/201 Network Link Interface is a device used to communicate with
Campbell Scientific dataloggers and peripherals using an Ethernet 10/100
Mbps communications link. The NL200/201 includes a CS I/O port and an RS-
232 port for communication. A USB device port is used for configuring the
NL200/201 device.
5
NL200/201 Network Link Interface
With Bridge Mode disabled, the NL200/201 can provide multiple services
simultaneously including TCP Serial Server, TCP Serial Client, Modbus
TCP/IP Gateway, and PakBus® router. The NL200/201 can act as a serial
server and PakBus router simultaneously. However, each physical port (RS-
232 and CS I/O) is only associated with one service (PakBus router, serial
server, Modbus/TCP Gateway, etc.) at a time. For example, you can have an
RS-232 serial server and a CS I/O serial server, an RS-232 serial server and a
CS I/O PakBus router, an RS-232 PakBus router and a CS I/O serial server, or
an RS-232 PakBus router and a CS I/O PakBus router. In addition, the
NL200/201 can act as TLS proxy server. The TLS proxy server is independent
of other modes.
6
NL200/201 Network Link Interface
Some reasons you might want to use each of these modes are described below.
Refer to Section 6, Configuring the NL200/201 (p. 10), and Section 7, Operation
(p. 12), for information on setting up your NL200/201 for each mode.
Bridge Mode
7
NL200/201 Network Link Interface
Serial Server
• Allows access to a CR10X over Ethernet (RS-232 serial server) when used
in conjunction with an RS-232 to CS I/O (ME) adapter like the SC32B or
SC105.
PakBus® Router
• Allows a PakBus® device on the RS-232 port and a PakBus device on the
CS I/O port to communicate with each other without routing through the
Ethernet.
5. Specifications
General
177 g (6.3 oz)
16 x 6.73 x 2.54 cm (6.3 x 2.65 x 1 in)
2.65
1.0
8
NL200/201 Network Link Interface
Power Input
NL201: CS I/O or barrel connector jack; not powered over USB
NL200: Barrel connector jack; not powered over CS I/O or USB
Power Requirements
7 to 20 Vdc
600 mW active, 24 mW standby
NOTE Standby power is when the IPNetPower instruction has been used
to turn off power to the Ethernet. See the CRBasic help for an
example of using the IPNetPower instruction. Note that the
IPNetPower instruction is only applicable when the NL200/201 is
configured with Bridge Mode Enabled.
Operating Temperature
Standard: –25 to +50 °C
Extended: –55 to +85 °C
Configuration
DevConfig over USB or Ethernet
Telnet console over Ethernet
Terminal menu over RS-232
CS I/O Port
SDC 7, 8, 10, 11 (does not support ME)
9600 bps to 460.8 kbps
RS-232 Port
DTE
1200 bps to 115.2 kbps
Ethernet
10Base-T (full and half duplex), 100Base-TX (full and half duplex),
Auto-MDIX
Auto-IP (APIPA), IPv4, IPv6, ICMP/Ping, ICMPv6/Ping, TCP, DHCP
Client, SLAAC, DNS Client, HTTPS Proxy, Telnet Server, TLS,
PakBus®, Modbus TCP/IP
Miscellaneous
Supports 50 simultaneous TCP connections
Up to 10 of the 50 TCP connections can be used for TLS
PakBus® router supports 50 routes
Supports up to 15 concurrent Modbus server transactions
Compliance
View the EU Declaration of Conformity at: www.campbellsci.com/nl201
9
NL200/201 Network Link Interface
• Connect the supplied USB cable between a USB port on your computer
and the USB port on the NL200/201.
• Open DevConfig.
• Click OK.
• Click Connect.
• Launch DevConfig.
10
NL200/201 Network Link Interface
• Click OK.
• Click Connect.
• Type help to see a list of the functionality available when connected to the
NL200/201 through Telnet.
• Type edit and press Enter to edit the settings of the NL200/201.
• Using a null modem serial cable, connect your computer’s serial port to
the port labeled “RS-232” on the NL200/201.
11
NL200/201 Network Link Interface
• Power cycle the NL200/201 and repeatedly press Enter at the terminal.
• Type help to see a list of the functionality available when connected to the
NL200/201 through Telnet.
• Type edit and press Enter to edit the settings of the NL200/201.
7. Operation
This section describes how to configure your NL200/201 for different
operational modes. See Section 4, Overview (p. 5), for help in determining which
mode to use.
Verify Interval – This interval, in seconds, determines the rate at which the
NL200/201 will attempt to start a hello transaction with a neighbor if no other
communication has taken place within the interval. If Verify Interval is set to 0,
the verify interval becomes 2.5 times the Beacon Interval. If both the Beacon
Interval and Verify Interval are set to 0, the verify interval becomes 300
seconds.
12
NL200/201 Network Link Interface
PakBus® address is ≥4000. Hellos from devices with PakBus address ≥4000
are automatically accepted as neighbors.
13
NL200/201 Network Link Interface
• Add the datalogger and input the PakBus® address of the datalogger.
14
NL200/201 Network Link Interface
7.1.4 Connect
You are now ready to connect to your datalogger using the LoggerNet Connect
screen.
• If using a static IP address, select the CS I/O IP tab and input the IP
address, subnet mask, and IP gateway for the correct CS I/O Interface. The
default for the NL200/201 is CS I/O IP Interface #1 (SDC3). DNS server
settings are shared by all active IP interfaces and can be entered on the
TCP/IP tab. These values can be provided by your network administrator.
If using DHCP, leave the CS I/O IP address settings as 0.0.0.0. You will
find the information acquired by DHCP in the info box on the CS I/O IP
tab. The same info box can be seen on the Ethernet tab.
15
NL200/201 Network Link Interface
• In the LoggerNet Setup screen, press Add Root and choose IPPort. Input
the datalogger’s IP address and port number. The IP address and port
number are input on the same line separated by a colon. (The datalogger’s
default port number is 6785. It can be changed using DevConfig. Unless
firewall issues exist, the port number does not need to be changed from its
default value.)
• Add the datalogger (CR800, CR1000, or CR3000) and input the PakBus®
address of the datalogger.
• You can verify that your settings are correct by selecting the datalogger in
the Network Map, selecting the Clock tab, and pressing Check Clocks. If
your settings are correct, you should see the current clock of your server
and datalogger.
16
NL200/201 Network Link Interface
7.2.5 Connect
You are now ready to connect to your datalogger using the LoggerNet Connect
screen.
o Make note of the Serial Server Port. (The default RS-232 Serial
Server Port is 6784. Typically, it is not necessary to change this entry
from its default.)
17
NL200/201 Network Link Interface
o Make note of the Serial Server Port. (The default CS I/O Serial
Server Port is 6783. Typically, it is not necessary to change this entry
from its default.)
• In the LoggerNet Setup screen, press Add Root and choose IPPort. Input
the NL200/201’s IP address and port number. The IP address and port
number are input on the same line separated by a colon.
• Add the datalogger and input the PakBus® address of the datalogger.
• You can verify your settings are correct by selecting the datalogger in the
Network Map, selecting the Clock tab, and pressing Check Clocks. If
your settings are correct, you should see the current clock of your server
and datalogger.
18
NL200/201 Network Link Interface
7.3.4 Connect
You are now ready to connect to your datalogger using the LoggerNet Connect
screen.
The NL200/201 will attempt to open a connection with the remote server, and,
if the connection fails to open, the device will continue to retry at an interval of
60 seconds. If data arrives on the RS-232 port when no TCP connection exists,
the device will buffer the data (up to 1500 bytes) and immediately attempt to
open a connection to deliver the data. If the remote server closes the connection
due to error, the NL200/201 will make a best effort to save any data that was in
process and re-queue it to be sent on the next successfully-opened TCP
connection.
7.6 TLS
The NL200/201 supports transport layer security (TLS) for proxy functions
including HTTPS. TLS versions 1.0 and 1.1. are supported. The TLS
implementation supports symmetric algorithms AES-256, AES-128, and RC4
and RSA keys up to 4096 bits. For any TLS connection, the unit will
19
NL200/201 Network Link Interface
preferentially use AES-256, then AES-128, and finally RC4. X.509 certificates
are supported, with the exception of v3 extensions. Certificates should be PEM
format. Up to 10 certificates can be chained. 20 KB of space is provided for
certificate storage. The Private Key should also be in PEM format and, if
encrypted, use AES-256 or AES-128 (SHA).
Also, with the NL200/201 configured for TLS, it can establish a secure TLS
configuration session with DevConfig.
In order to use TLS, the user must configure the NL200/201 with a user-
supplied TLS Private Key and TLS Certificate. The key and certificate are
loaded using DevConfig.
Using DevConfig, navigate to the Settings Editor tab and then to the TLS tab.
• Load the user-supplied, PEM-formatted TLS Private key using the Set
TLS Key … button. A file dialog will open. Navigate to the key file
and click Open.
• Enter the TLS Private Key Password if the TLS Private Key is
encrypted. Otherwise, leave the setting blank.
• After loading the key and certificate, click the Apply button. The
NL200/201 will reboot. Connect with DevConfig again and navigate
to the Settings Editor tab and then to the TLS tab. The TLS Status
should say Initialized.
NOTE If the status of the TLS stack is Initialized, the NL200/201 will
automatically negotiate a secure TLS connection with DevConfig
as long as the Use IP Connection option is selected.
20
NL200/201 Network Link Interface
When the TLS Proxy Server function is enabled, the NL200/201’s TLS Proxy
Server maintains a secure TLS connection with a remote TLS client and
forwards data onto a datalogger using a standard TCP connection thus enabling
communication with TLS clients. The TLS client can be a web browser using
HTTPS or other user-supplied TLS client. Any other client program that
encrypts a standard TCP connection using TLS may be used to establish a
connection with the NL200/201 TLS Proxy Server and the NL200/201 will
forward unencrypted TCP data to a datalogger. In this way, a remote TLS
client can establish a TLS connection with a datalogger.
The settings found in the TLS Proxy Server and TLS tab in DevConfig are used
to configure the NL200/201 TLS Proxy Server.
Two physical configurations are possible and the required settings differ
depending on the configuration chosen. The possible configurations are shown
in the following figure.
Configuration A
21
NL200/201 Network Link Interface
Configuration B
• Set the TLS Proxy Server Port Number. This is the TCP port number on
which the proxy server will listen for incoming connections. The TLS
Client also needs to be set to communicate on this port number. When
TLS communications are received on this port number, the NL200/201
will decrypt the data and attempt to open a TCP connection to the
datalogger and forward the unencrypted data. In HTTPS communications,
web browsers use port 443. The NL200/201 will always listen on port 443
regardless of the value of this setting. Therefore, if HTTPS
communications are desired, it is unnecessary to configure this setting.
• Set the TLS Proxy Forward Physical Port to CS I/O Port for
Configuration A or to Ethernet Port for Configuration B.
• Set the TLS Proxy Forward Port Number. This is the TCP port number
that the proxy server will use when it opens a TCP connection to the
datalogger to forward unencrypted data. The datalogger’s TCP server port
must be set to communicate on this port number. The default value for the
datalogger’s PakBus/TCP server is 6785, so this setting can likely be left
at the default. The datalogger listens for HTTP traffic on port 80. The
NL200/201 will always forward TLS traffic received on port 443(HTTPS)
to port 80(HTTP) regardless of this setting. Therefore, if HTTPS
communications are desired, it is unnecessary to configure this setting.
22
NL200/201 Network Link Interface
For either configuration, the IP address must not be 0.0.0.0, and it must be
unique on the same subnet as the NL200/201 IP address. For example, if the
NL200/201 IP address is 192.168.5.1 and Subnet Mask is 255.255.255.0, the
datalogger address could be set as 192.168.5.2 provided there are no other
devices on the subnet with that address. Also set the datalogger’s Subnet Mask
to match that of the NL200/201.
The datalogger must be listening on the same TCP port that the NL200/201 is
configured to forward TCP traffic on (NL200/201 setting: TLS Proxy Forward
Port Number). The datalogger always listens on port 80 for HTTP, therefore,
no TCP port configuration is necessary for using HTTP.
NOTES If the status of the TLS stack is Initialized, the NL200/201 will
automatically negotiate a secure TLS connection with DevConfig
as long as the Use IP Connection option is selected.
8. Applications
8.1 Working Around Firewalls
The NL200/201 can be used to provide a connection between LoggerNet and a
datalogger when both are behind firewalls. The NL200/201 must be on a public
IP address and will act as a common meeting place for all PakBus®
communications.
23
NL200/201 Network Link Interface
Internet / WAN
Firewall
Cellular Network
Firewall
LoggerNet
Firewall
• Connect a serial cable from the PC COM port to the datalogger’s RS-232
port.
24
NL200/201 Network Link Interface
9. Troubleshooting
This section covers some common problems that might be encountered when
using the NL200/201. This is not comprehensive but should provide some
insight and ability to correct simple errors without a call to Campbell Scientific
technical support.
• Your NL200/201 and any hub and/or router being used must be
connected to power. Check power indicator lights to make sure your
devices are powered.
25
NL200/201 Network Link Interface
• Try to ping the NL200/201 from your PC. (From the Windows Start
Menu, choose Accessories | Command Prompt. Then type ping
xxx.xxx.xxx.xxx where xxx.xxx.xxx.xxx is the IP address of your
NL200/201.) If no packets are returned, this indicates that there is no
network connection to that IP address.
6. If you are unable to communicate with the NL200/201 via the USB cable,
verify that you have installed the latest drivers for the NL200/201. These
can be downloaded from our website at www.campbellsci.com.
10. Verify you are running the latest revision of firmware (operating system).
It is possible that an issue affecting your ability to communicate via the
NL2xx is resolved in the latest version. The latest firmware version and its
revision history can be found at www.campbellsci.com/downloads. There
is no charge for this download. See Appendix D, Sending a New OS to the
NL200/201 (p. D-1), for instructions on downloading the firmware revision
to the NL2XX.
26
NL200/201 Network Link Interface
11. If the above steps do not resolve the issue, please call Campbell Scientific,
for help. Before calling, it would be helpful to do the following:
• Save a copy of the NL2xx settings (in XML format) using DevConfig.
• Save a copy of the NL2XX event log. This is low-level code that can
be used by Campbell Scientific’s engineering staff to help
troubleshoot the NL2XX. To obtain the event log, the NL2XX must
not be in Bridge Mode. Telnet into the NL2XX using your favorite
telnet program. Once you have logged in, type “eventlog” at the
prompt. Record the date and time that you did this. Copy and paste the
output into a text file.
• If running NL2xx firmware revision v.4 or greater, you can also type
“eventloga” at the prompt to obtain an ASCII version of the low-level
log. Copy and paste the output into a text file.
• Once the eventlogs have been copied, you can type “eventlog erase”
at the prompt to clear the log. If you want to add a date to indicate
when the logs were last cleared, you can enter “eventlog erase date”
where date is a string of up to 8 characters.
After calling Campbell Scientific for help, email your network description, the
newly created text files, and the saved XML settings file to the person you are
working with.
10. Attributions
PakBus is a registered trademark of Campbell Scientific, Inc.
lwIP
27
NL200/201 Network Link Interface
28
Appendix A. Glossary
Auto-IP
Beacon Interval
Hello Exchange
A-1
Appendix A. Glossary
PakBus®
PakBus® Node
Port Number
Serial Server
Verify Interval
A-2
Appendix B. Cables, Pinouts, LED
Function, and Jumper
B.1 CS I/O
The CS I/O cable is a 9-pin, straight-through cable with all 9 pins connected.
The supplied SC12 cable (part number 16675) is recommended.
B.2 RS-232
A DB9 female to DB9 male cable (such as Campbell Scientific part number
10873) is used to connect the NL200/201’s RS-232 port to the datalogger’s
RS-232 port. The supplied SC12 cable can also be used. A DB9 female null
modem cable (such as Campbell Scientific part number 13657) is used to
connect the NL200/201’s RS-232 port to a PC’s RS-232 port. The RS-232
cable should be kept short when using high baud rates.
B-1
Appendix B. Cables, Pinouts, LED Function, and Jumper
B.3 Ethernet
The Ethernet 10Base-T/100Base-TX cable should be a Category 5 or better
twisted pair cable (such as Campbell Scientific part number 13658). The two
active pairs are pins 1 and 2 and pins 3 and 6. Use only dedicated wire pairs
(such as blue/white and white/blue, orange/white and white/orange) for the
active pairs.
Pin Function
1 TD +
2 TD -
3 RD +
4 Not Connected
5 Not Connected
6 RD -
7 Not Connected
8 Not Connected
B.4 USB
The USB cable is the supplied USB A to micro B style cable (Campbell
Scientific part number 27555). This is used only for device configuration.
Pin Function
1 VBUS (Not Used)
2 Data -
3 Data +
4 N/C
5 GND
B.5 Power
TABLE B-5. Power In
Pin Function
Center 7 – 20 VDC
Sleeve Power GND
B-2
Appendix B. Cables, Pinouts, LED Function, and Jumper
B.6 LEDs
TABLE B-6. Power LED
State Description
Off Device powered off
On Device powered on and ready
Blink OS Download in progress – DO NOT DISCONNECT POWER
State Description
Yellow On Valid Ethernet link
Yellow Off Ethernet link not valid
Yellow Blink Activity on Ethernet port
Green On 100Mbit/s link
Green Off 10Mbit/s link
B-3
Appendix B. Cables, Pinouts, LED Function, and Jumper
B-4
Appendix C. NL200/201 Settings
All of the NL200/201 settings available from the Settings Editor in DevConfig
are described below.
Model name.
Bridge Mode
With Bridge Mode enabled, the device will act as a bridge from Ethernet
to CS I/O. All IP packets that come in to the device via Ethernet will be
communicated to a datalogger over the CS I/O port. Some filtering is done
in order to minimize the amount of traffic on the CS I/O port but every
packet that is transmitted to the datalogger is sent intact as a complete
Ethernet/TCP packet. This enables the datalogger to use its TCP/IP stack
to interpret the packet, and therefore, all of the datalogger’s TCP services
are available. In bridge mode, none of the other device settings are valid
and all other functionality is disabled. All settings (i.e., IP, netmask,
gateway) are configured in the datalogger. However, in bridge mode, the
device will intercept any TCP traffic on the “TCP Configuration Port
Number.” This allows the device to still be configured remotely by IP
connection using DevConfig. The “TCP Configuration Port Number” is a
user setting with a default value of 6786.
C-1
Appendix C. NL200/201 Settings
When the device is configured to operate in Bridge Mode, the datalogger will
address the device using this identifier. The datalogger can address up to two
“CS I/O IP” devices. The corresponding CS I/O IP Address settings in the
datalogger will control the interface. CS I/O IP Interface 1 uses SDC channel 3.
CS I/O IP Interface 2 uses SDC channel 1.
When the device is configured for bridge mode, it forwards Ethernet packets to
the datalogger. Because the device is aware of the MAC address and IP address
being used by the datalogger, it is able to do some filtering on incoming
packets and only forward relevant packets. This decreases the amount of traffic
on the relatively bandwidth-limited CS I/O port and minimizes the amount of
Ethernet processing the datalogger needs to perform.
It may be desired to further reduce the amount of CS I/O traffic. This setting
allows the filtering by the device to be customized to some degree. The default
value of this setting is 65535 (0xFFFF hex) and will forward all packets that
have been determined to be relevant for proper datalogger IP communication.
If desired, other codes may be entered to filter out certain packet types.
65535 (0xFFFF): Leave all bits set to forward all relevant packets.
65531 (0xFFFB): Clear bit 2 to forward all relevant packets except UDP
Broadcast packets. Filtering UDP broadcasts will disable the dataloggers
ability to respond to DevConfig discovery packets but in many cases will
greatly reduce the total number of forwarded packets.
65279 (0xFEFF): Clear bit 8 to forward all relevant packets except IPv6
packets. Filtering these packets may be desired if the datalogger is on an IPv6-
enabled network but not required to respond to any IPv6-related traffic.
DHCP
C-2
Appendix C. NL200/201 Settings
IP Address
NOTE In bridge mode, this setting is obtained from the datalogger and
cannot be edited here. It must be edited in the datalogger settings.
The setting obtained from the datalogger will be displayed in the
Status window.
Subnet Mask
The Subnet Mask is used to select that portion of the IP address which
identifies the network. It is used to facilitate routing and should be obtained
from the network administrator along with the IP address. If DHCP is enabled,
the Subnet Mask obtained from the local DHCP server will be displayed in the
Status window.
NOTE In bridge mode, this setting is obtained from the datalogger and
cannot be edited here. It must be edited in the datalogger settings.
The setting obtained from the datalogger will be displayed in the
Status window.
Default Gateway
Datagrams being sent to an unknown network are routed via the Default
Gateway. This entry specifies the Internet address of the Default Gateway. If
no Default Gateway exists, set this entry to “0.0.0.0”. If DHCP is enabled, the
Default Gateway obtained from the local DHCP server will be displayed in the
Status window.
NOTE In bridge mode, this setting is obtained from the datalogger and
cannot be edited here. It must be edited in the datalogger settings.
The setting obtained from the datalogger will be displayed in the
Status window.
Name Servers
This setting specifies the addresses of up to three domain name servers that the
device can use to resolve domain names to IP addresses. Note that if DHCP is
used to resolve IP information, DNS addresses obtained via DHCP will
override this list.
IP Info
Reports the IP address, network mask, and default gateway of the network
interface. If DHCP is used, this setting will report the values configured by the
DHCP server.
C-3
Appendix C. NL200/201 Settings
Admin Password
The default TCP port number for configuration via TCP is 6786. This entry
makes it possible for the user to change the port number used in TCP
configuration if desired. Typically, it is not necessary to change this entry from
its default. (range 1..65535)
This setting controls which process will be associated with the RS-232 port.
The following values are defined:
C-4
Appendix C. NL200/201 Settings
connection with the remote server and if the connection fails to open, the
device will continue to retry at an interval of 60 seconds. If data arrives on
the RS-232 port when no TCP connection exists, the device will buffer up
the data (up to 1500 bytes) and immediately attempt to open a connection
to deliver the data. If the remote server closes the connection due to error,
the device will make a best effort to save any data that was in process and
re-queue it to be sent on the next successfully-opened TCP connection.
PakBus
This port uses the PakBus® protocol.
Modbus/TCP Gateway
The device will listen for incoming MODBUS/TCP connections from a
remote client. The port number of the listening connection is specified in
the “RS-232 Service Port Number” setting. The device will convert
incoming MODBUS/TCP frames to MODBUS/RTU and forward them to
the RS-232 port. The device will wait for a response from the
MODBUS/RTU device and forward the response back to the remote
MODBUS/TCP client over the established TCP connection.
Disabled
This port will not be used.
This setting is used when the RS-232 port is configured as a Serial Server or
MODBUS/TCP gateway. To communicate with a TCP/IP server, the client
application must open a socket to that server. The socket of a specific server is
uniquely identified by an IP address of the host where the server is running and
a port number associated with the server application on that host. This entry is
where the port number of the server is set. Ensure that the client application is
set to use the same port number as configured here. Most MODBUS/TCP
applications use port 502. (range 1..65535)
This setting specifies the baud rate of the RS-232 port. The connected device
must be set to communicate at the same baud rate.
RS-232 RTS
The NL200/201 asserts the RTS and DTR lines when doing RS-232
communications. This setting allows the user to disable the RTS line if needed so
that it will not be asserted. Some hardware will not function if the RTS line is
asserted, but typically, it is not necessary to change this setting from its default
(enabled).
This setting will determine how fast the device will timeout on the open TCP
connection. For Serial Server and MODBUS/gateway configurations the
device will close the TCP connection if no activity is detected for the timeout
period. For the TCP Client configuration the device will close the TCP client
connection if no activity is detected and then immediately open another
connection with the remote server. This behavior helps to ensure that the
C-5
Appendix C. NL200/201 Settings
connection is functional as the device does not know the frequency or nature of
the expected data. Set to 0 for no timeout (not recommended). (range 0..999)
(seconds)
This setting, in units of seconds, governs the rate at which the NL200/201 will
broadcast PakBus® messages on the associated port in order to discover any
new PakBus neighboring nodes. It will also govern the default verification
interval if the value of the Verify Interval setting for the associated port is zero.
This setting specifies the interval, in units of seconds, that will be reported as
the link verification interval in the PakBus® hello-transaction messages. It will
indirectly govern the rate at which the NL200/201 will attempt to start a hello
transaction with a neighbor if no other communication has taken place within
the interval.
In the example above, nodes 129 and 1084 are assigned as neighbors to the
NL200/201.
This setting specifies, for a given port, the explicit list of PakBus® node
addresses that the NL200/201 will accept as neighbors. If the list is empty (the
default value), any node will be accepted as a neighbor. This setting will not
affect the acceptance of a neighbor if that neighbor’s address is greater than
3999. The formal syntax for this setting follows:
This setting specifies the IP address of the outgoing TCP Serial client
connection that the device should maintain. If the connection fails, the device
will retry until the connection succeeds. No entry specifies that no client
connection will be made.
C-6
Appendix C. NL200/201 Settings
This setting specifies the TCP port of the outgoing TCP Serial Client
connection. (range 1..65535)
This setting controls which process will be associated with the CS I/O port.
The following values are defined:
PakBus
This port uses the PakBus® protocol.
Modbus/TCP Gateway
The device will listen for incoming MODBUS/TCP connections from a
remote client. The port number of the listening connection is specified in
the “CS I/O Service Port Number” setting. The device will convert
incoming MODBUS/TCP frames to MODBUS/RTU and forward them to
the CS I/O port. The device will wait for a response from the
MODBUS/RTU device and forward the response back to the remote
MODBUS/TCP client over the established TCP connection.
Disabled
This port will not be used.
SDC Address
Communication with the datalogger via the CS I/O port is done using SDC
(Synchronous Device Comms). The datalogger will address the devices with
which it wishes to communicate using an SDC address. The CS I/O port can be
configured to respond to SDC address 7, 8, 10, or 11.
This setting, in units of seconds, will determine how fast the device will time
out on the open TCP connection. For Serial Server and MODBUS/gateway
configurations, the device will close the TCP connection if no activity is
C-7
Appendix C. NL200/201 Settings
detected for the timeout period. Set to 0 for no time-out (not recommended).
(range 0..999)
This setting, in units of seconds, governs the rate at which the NL200/201 will
broadcast PakBus® messages on the associated port in order to discover any
new PakBus neighboring nodes. It will also govern the default verification
interval if the value of the Verify Interval setting for the associated port is zero.
This setting specifies the interval, in units of seconds, that will be reported as
the link verification interval in the PakBus® hello-transaction messages. It will
indirectly govern the rate at which the NL200/201 will attempt to start a hello
transaction with a neighbor if no other communication has taken place within
the interval.
The default TCP port number for the configuration monitor telnet session is 23.
This entry makes it possible for the user to change the telnet session port
number if desired. Typically, it is not necessary to change this entry from its
default. (range 1..65535)
Telnet Timeout
This setting, in units of seconds, will determine how fast the configuration
monitor telnet session will time out if no activity is detected. Set to 0 for no
time-out (not recommended). (range 0..999)
Ping (ICMP)
The NL200/201 will not respond to “Ping” requests if this setting is disabled.
PakBus Address
This setting specifies the PakBus® address for this device. The value for this
setting must be chosen such that the address of the device will be unique in the
scope of the datalogger network. Duplication of PakBus addresses in two or
more devices can lead to failures and unpredictable behavior in the PakBus
C-8
Appendix C. NL200/201 Settings
network. When a device has a neighbor list or neighbor filter setting filled in
for a port, any device that has an address greater than or equal to 4000 will be
allowed to connect to that device regardless of the neighbor filter.
This setting specifies the TCP service port for PakBus® communications with
the datalogger. Unless firewall issues exist, this setting probably does not need
to be changed from its default value.
PakBus/TCP Password
Specifies the password that will be used to authenticate any incoming (server)
or outgoing (client) PakBus®/TCP sessions. This password is used by the
server to generate a challenge to any client that connects to the PakBus/TCP
server port. If the client fails to respond appropriately, the connection will be
terminated. If this password is blank (the default value), no such authentication
will take place.
This setting specifies the TCP port of the outgoing PakBus®/TCP client
connection. Typically, it is not necessary to change this entry from its default.
(range 1..65535)
This setting lists the routes that are known to the NL200/201. Each route
known to the NL200/201 will be represented by the following four components
separated by commas and enclosed in parentheses. The description of each
component follows:
Port Number
Specifies a numeric code for the port that the router will use. It will
correspond with one of the following:
0 CS I/O
1 RS-232
C-9
Appendix C. NL200/201 Settings
PakBus Address
Response Time
Specifies the amount of time (in milliseconds) that will be allowed for the
route.
Central Routers
This setting specifies a list of up to eight PakBus® addresses for routers that
are able to work as Central Routers. By specifying a non-empty list for this
setting, the device will be configured as a Branch Router meaning that it will
not be required to keep track of neighbors of any routers except those in its
own branch. Configured in this fashion, the device will ignore any neighbor
lists received from addresses in the central routers setting and will forward any
messages that it receives to the nearest default router if it does not have the
destination address for those messages in its routing table.
Enable/Disable the TLS Proxy Server. When doing TLS proxy communications,
the device’s TLS server maintains a secure TLS connection with a remote TLS
client and forwards information onto a datalogger using a standard TCP
connection. TCP ports and physical connections are configured below.
When doing TLS Proxy communications, the NL200/201 TLS server maintains
a secure connection with a remote client. If the TLS Proxy Forward Physical
Port is specified to be the CS I/O port, the NL200/201 will then open a TCP
connection with the datalogger over the CS I/O port and do unencrypted data
transfer with the datalogger. If the TLS Proxy Forward Physical Port is
specified to be the Ethernet port, the NL200/201 will open the TCP connection
over Ethernet on the TLS Proxy Forward IP Address.
In order to communicate with the NL200/201 TLS server, the client application
must open a socket to that server. The socket of the NL200/201 TLS server is
uniquely identified by the IP address and a port number. This entry is where
the port number of the NL200/201 TLS server is set.
The TLS client needs to be set to communicate on this port number. If secure
communications come in on the Secure Proxy Server Port Number, the
NL200/201 will attempt to open a TCP connection to the datalogger on the
C-10
Appendix C. NL200/201 Settings
Secure Proxy Forward Port Number. Also, regardless of this setting, the
NL200/201 Secure Proxy Server will always listen on the secure HTTP
(HTTPS) port number 443. If a secure connection is established on this port,
the NL200/201 will attempt to communicate to the datalogger on the HTTP
port 80. (range 1..65535)
When doing TLS Proxy communications, the NL200/201 TLS server maintains
a secure connection with a remote client. If the TLS Proxy Forward Physical
Port is specified to be the CS I/O port, the NL200/201 will then open a TCP
connection with the datalogger over the CS I/O port and do unencrypted data
transfer with the datalogger. If the TLS Proxy Forward Physical Port is
specified to be the Ethernet port, the NL200/201 will open the TCP connection
over Ethernet on the TLS Proxy Forward IP Address.
When doing TLS Proxy communications, the NL200/201 TLS server maintains
a secure connection with a remote client. If the TLS Proxy Forward Physical
Port is specified to be the CS I/O port, the NL200/201 will then open a TCP
connection with the datalogger over the CS I/O port and do unencrypted data
transfer with the datalogger. If the TLS Proxy Forward Physical Port is
specified to be the Ethernet port, the NL200/201 will open the TCP connection
over Ethernet on the TLS Proxy Forward IP Address.
If secure communications come in on the TLS Proxy Server Port Number, the
NL200/201 will attempt to open a TCP connection to the datalogger on the
TLS Proxy Forward Port Number. Also, regardless of this setting, the
NL200/201 TLS Proxy Server will always listen on the secure HTTP (HTTPS)
port number 443. If a secure connection is established on this port, the
NL200/201 will attempt to communicate to the datalogger on the HTTP port
80.
C-11
Appendix C. NL200/201 Settings
This setting, in units of seconds, will determine how fast the proxy server/client
sessions will time out if no activity is detected. Set to 0 for no time-out (not
recommended). (range 0..999)
NOTE If the status of the TLS stack is “Initialized”, the device will
automatically negotiate a secure TLS connection with DevConfig
if the Use TCP option is selected. The TLS Private Key, Private
Key Password, and TLS Certificate can only be edited/transmitted
over a secure DevConfig link (USB or TLS). These settings cannot
be edited over a standard TCP DevConfig link.
Specifies the password that is used to decrypt the TLS Private Key.
Specifies the private key (in PEM format) for the encryption stack.
TLS Certificate
Specifies the public certificate (in PEM format) for the encryption stack.
C-12
Appendix D. Sending a New OS to the
NL200/201
Whenever a new operating system is released for the NL200/201, it will be
available from our website, www.campbellsci.com/downloads.
1. Using the supplied serial cable, connect the NL201’s CS I/O port to the
datalogger’s CS I/O port. Alternatively, power the NL200 or NL201
through the barrel-connector jack located on the edge of the device.
2. Connect a USB cable between one of your computer’s USB ports and the
USB port on the NL200.
3. Open DevConfig.
8. In the resulting dialog box, select the file that should be sent to the device
as an operating system (this file should have an .obj extension) and press
the OK button.
10. After the file has been sent, the power LED on the NL200/NL201 will
blink repeatedly while the NL200/NL201 copies the OS into its internal
flash. This process takes about 10 seconds. While the LED is blinking, the
NL200/NL201 is in a vulnerable state where removal of power will leave
the NL200/NL201 without a valid operating system to run. DO NOT
remove power until the LED stops blinking.
1. Using the supplied serial cable, connect the NL201’s CS I/O port to the
datalogger’s CS I/O port. Alternatively, power the NL200 or NL201
through the barrel-connector jack located on the edge of the device.
D-1
Appendix D. Sending a New OS to the NL200/201
3. Open DevConfig.
5. Ensure that the Use IP Connection box is checked on the left hand panel.
6. If the administrative password of the device has been set, you will need to
enter that password in the Administrative Password control on the left
panel in order for the connection to succeed.
10. In the resulting dialog box, select the file that should be sent to the device
as an operating system (this file should have an .obj extension) and press
the OK button.
12. After the file has been sent, the power LED on the NL200/NL201 will
blink repeatedly while the NL200/NL201 copies the OS into its internal
flash. This process takes about 10 seconds. While the LED is blinking, the
NL200/NL201 is in a vulnerable state where a removal of power will leave
the NL200/NL201 without a valid operating system to run. DO NOT
remove power until the LED stops blinking.
D-2
Campbell Scientific Companies
Campbell Scientific Africa Pty. Ltd. Campbell Scientific Centro Caribe S.A.
PO Box 2450 300 N Cementerio, Edificio Breller
Somerset West 7129 Santo Domingo, Heredia 40305
SOUTH AFRICA COSTA RICA
www.campbellsci.co.za • [email protected] www.campbellsci.cc • [email protected]
Please visit www.campbellsci.com to obtain contact information for your local US or international representative.