数据采集器新功能:以太网-USB (虚拟以太网连接)

通过 Dana Worley | 更新: 08/30/2017 | 评论: 3

博客主题


搜索博客


订阅博客

出现新文章时获得邮件。选择您感兴趣的主题。


输入您的邮箱地址:



推荐文章

您是否想了解一个主题更多?请让我们知道。

Leave this field empty

CR1000X logo

If you have read recent revision history for the Device Configuration Utility (also known as DevConfig), you may have run across the following note: “New USB drivers (RNDIS) were added for [supported] datalogger.” What's that all about? you may have wondered.

Sounds boring, eh?

We think it is anything but boring. In fact, at Campbell Scientific, we think it's downright eXciting!

Introduced with the CR1000X, our newest dataloggers now offer what is referred to as Ethernet over USB (or virtual Ethernet link). This functionality was implemented using a standard Microsoft driver named RNDIS. It provides the option to connect to your datalogger using a USB cable in a way that accesses the datalogger's web server capabilities.

Still not eXcited? Read on!

Web-based Data Display, Data Collection, and Configuration

If you connect to a CR1000X over USB and type into a browser the datalogger's IP address for the USB port (192.168.66.1 by default), you have access to the datalogger's built-in web page. The first page displayed is Status information for the datalogger. At a glance, you can check datalogger health and program statistics such as panel temperature, battery voltage, and program run-time errors:

Status page

Click the image for a larger version.

Other pages include Data, Files, and Utilities, which respectively give you access to your data tables in a table-based or graphical view, the ability to manage files, and datalogger utilities such as setting the clock and accessing terminal mode. Here's a look at the graphical display for a one-minute data table:

Data page

Click the image for a larger version.

If you select Save in the upper right of the data display, you can also save data to a file in one of our standard file formats:

OneMin Table

When a .csipasswd file has been saved to the datalogger, you can set public variables or change values in the datalogger's Status table. (See the "Creating a .csipasswd File" help file for more information.) Public variables or editable values in the Status table are indicated by a blue dashed underline. When selected, an underlined value is presented for editing:

Data page with editable variable

Click the image for a larger version.

Supported Dataloggers

By now, I hope I have piqued your interest in Ethernet over USB. If so, you might be wondering if this functionality is available for your datalogger. Here are the details:

  • All CR1000X dataloggers have this functionality integrated when shipped from the factory. Just use our Device Configuration Utility to install the drivers on your computer before connecting to the datalogger using a USB cable.
  • All CR310 dataloggers, and CR300 dataloggers with serial number greater than 2813, have this functionality integrated when shipped from the factory. The dataloggers must have operating system version 6 or later installed. As with the CR1000X, you must install the driver before connecting to the datalogger using a USB cable.
    Note: CR300 and CR310 dataloggers must also be configured. (See below.)
  • This capability is coming soon for CR6 dataloggers.

What about My USB COM Port?

You still have the ability to connect to the datalogger over a USB-based virtual COM port. The CR1000X and CR6 offer dual-mode capability. This means the datalogger can simultaneously communicate using its virtual COM port and its virtual Ethernet link. Note, however, that the CR300 and CR310 dataloggers do not offer simultaneous communication. The USB port must be configured for either a virtual COM port or a virtual Ethernet link using the Settings Editor, Advanced Tab of the Device Configuration Utility. The default configuration for these two datalogger models is a virtual COM port, so to use the virtual Ethernet link, a setting must be changed.

Our Most eXciting Datalogger Ever

I hope this article has introduced you to one of the features that we think makes the CR1000X our most eXciting datalogger so far. Do you have questions about Ethernet over USB? Leave a comment below to request additional information.


分享该文章



关于作者

dana worley As the Software Product Manager at Campbell Scientific, Inc., Dana Worley spends her days managing software issues, providing second-tier customer support, and documenting the instruction set for CRBasic dataloggers. Occasionally, she can be found commenting on Campbell Scientific’s user forum. Away from the office, Dana enjoys hiking, mountain biking, and playing Fused Glass Artist in her home studio (which requires many bandages!).

查看该作者的所有文章


建议

chris_measci | 08/31/2017 at 11:02 PM

By default it shows the datalogger's built-in web page. If the CRBasic is written with custom web pages, will those be displayed instead?

chris_measci | 09/01/2017 at 04:33 AM

Tested it, yes, a default.html defined in a WebPageBegin will load instead

Dana | 09/01/2017 at 09:32 AM

Hello Chris,

Great question! The drive precedence in our dataloggers is: CPU, USR, CRD, USB (SC115), and the memory where the datalogger's built in web page is stored. So, as your testing shows, if an RTMC project or a web page created using WebPageBegin/WebPageEnd is stored on the CPU drive, then it takes precedence. This also holds true if a custom web page is stored to the USR drive or a card (CRD). If one drive takes precedence over others, you can still get to a page on that lower level drive by specifying the full path (e.g., 192.168.1.1\crd\index.html). 

Thank you for asking and for your follow-up testing!

Best, Dana

Please log in or register to comment.