npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cs-acn

v1.0.7

Published

Control Solutions Adaptive Control Network

Downloads

1

Readme

cs-acn

Client module for Control Solutions Adaptive Control Network Module

Installation: Install nodejs for your platform (http://nodejs.org).

Install this package globally: npm install cs-acn -g

The scripts you will likely want to use are: acn (general purpose utility for interacting with the device from the command line) acn-ws (a basic graphical interface using an HTML page)

The scripts have help output: acn -h acn-ws -h

Examples:

Find out what serial ports are available on your machine node acn -l

Configuring the port to use for communication: There are three choices:

  • Edit the config.json file and enter the port name. This will be used as a default for all communication to the device.
  • Set an environment variable called MODBUS_PORT (depending on platform, the syntax could be set MODBUS_PORT=COM1 or export MODBUS_PORT=/dev/tty1). This will override the setting in config.json for a particular terminal window (this is useful if you have more than one wireless device connected; you can use separate terminal windows to manage them).
  • Specify the port on the command line (eg node acn slaveId --port=COM1). This overrides the config.json setting and the environment variable.

Verifying connection: The node acn slaveId command queries the device for basic information, such as serial number. This can be useful to confirm communication with the device.

Troubleshooting: Verbose mode (eg node acn slaveId -v) can be useful - it displays the actual bytes sent and received from the device.

Tweaking: config.json contains other settings used for communication; some of these are explained in the github cs-modbus package (https://github.com/csllc/cs-modbus). These should not normally need to be changed.

Configuring the device: Refer to Control Solutions document DOC0003826A for the device register map. The acn utility gives friendly access to read and write these registers. For example, to read the non-volatile configuration of the device: node acn read config

Change the number of milliseconds between the transmission of button status: node acn write msBetweenStatusTx 100

The register names available for reading and writing are available on the node acn -h help screen.