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

node-addon-aclas

v0.1.0

Published

顶尖 Aclas 电子称 node.js C/C++ Addons

Downloads

240

Readme

开发部分

联系作者

usage 20-06-14

  • 已提供编译好的 build/Release/aclas_sdk.node 文件
  • 你可能不用再编译了,直接引用 aclas_sdk.node 文件即可
const sdk = require('./build/Release/aclas_sdk.node')

usage

踩坑记

  • binding.gyp

    • target_name 不能用“-”,请用“_”
    • .gyp 文件中不能出现中午注释
    {
      "targets": [
        {
    -      "target_name": "aclas-sdk",
    +      "target_name": "aclas_sdk",
    -      "sources": [ "src/aclas-sdk.c" ], # 我是注释
    +      "sources": [ "src/aclas-sdk.c" ], # comment
        }
      ]
    }
  • napi 多线程使用

    • 执行 .js 文件会出现下面报错,可能是在 napi_queue_async_work 之后使用了 printf
    $ node index.js
    Segmentation fault
    + printf("---- Callback thread StartJsThread. ----\n");
      napi_queue_async_work(env, addon_data->work);
    - printf("---- Callback thread StartJsThread. ----\n");

---- code 对照码 ----

|十进制|八进制|说明| |----|----|----| |0 | 0 | 正常 | |1 | 0x0001 | 进度事件 | |2 | 0x0002 | 手动停止 | |256 | 0x0100 | 已初始化 | |257 | 0x0101 | 未初始化 | |258 | 0x0102 | 设备不存在 | |259 | 0x0103 | 不支持的协议类型 | |260 | 0x0104 | 该数据类型不支持此操作 | |261 | 0x0105 | 该数据类型不支持 | |264 | 0x0108 | 无法打开输入文件 | |265 | 0x0109 | 字段数与内容数不匹配 | |266 | 0x010A | 通讯数据异常 | |267 | 0x010B | 解析数据异常 | |268 | 0x010C | CodePage错误 | |269 | 0x010D | 无法创建输出文件 |

---- 自定义错误 ----

|十进制|说明| |-|-| |403 | [链接超时][默认40秒] | |404 | [LoadLibrary][未加载到AclasSDK.dll] |

详细开发文档请看 doc 文件夹

  • Aclas Sync SDK_V2.0_CH.pdf 开发文档
  • demo.zip C++、C#、Delphi、PowerShell实现
  • LINK66 v3.122.exe 标签称上位机软件
  • LS2X 条码标签秤.pdf 标签称使用说明

电子称部分

单品资料

  • 主标签号为 0 才是自动打印