0.15.2 • Published 1 month ago

@36node/protocol-32960 v0.15.2

Weekly downloads
11
License
MIT
Repository
github
Last release
1 month ago

@36node/protocol-32960

version downloads

电动汽车 32960 协议解析库

Install

yarn add @36node/protocol-32960

Usage

import Protocol from "@36node/protocol-32960";

// buffer: origin data
const protocol = new Protocol({
  encrypt: { key: "xx", iv: "xxx", method: "AES128" },
});
const data = protocol.parse(buffer);
const buf = protocol.build(data);

cli

使用方法,可以全局安装或者用 npx 免安装执行

npx @36node/protocol-32960 parse -h

# Usage: parse [options]
# Parse binary message data

# Options:
#  -d, --data <data>        Binary hex data of message
#  -i, --input <input>      File contains binary hex data of message
#  -d, --data <data>        Binary hex data of message
#  -o, --output <output>    Save parsed result to file

# example:

npx @36node/protocol-32960 parse -d  232303fe4c53464430333230324a4330303136323701006b13020200210c81010002ff0300000423f5010002ff0300000423f3010002ff0300000423f3010002ff0300000423f3010002ff0300000423f3010002ff0300000423f6010002ff0300000423f5010002ff0300000423f5010002ff0300000423f3010002ff0300000423f30e

# 如果需要将结果拷贝到内存,可以通过管道
npx @36node/protocol-32960 parse -d xxxxxxxxxxxxxxx | pbcopy

# 通过文件输入输出
npx @36node/protocol-32960 parse -i ./some_in.file -o ./some_out.file

Protocol

协议和实现

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

module © 36node, Released under the MIT License.

Authored and maintained by 36node with help from contributors (list).

github.com/zzswang · GitHub @36node

0.15.2

1 month ago

0.15.0

1 month ago

0.15.1

1 month ago

0.13.3-fix

3 years ago

0.13.3

3 years ago

0.13.2

4 years ago

0.13.1

4 years ago

0.13.0

4 years ago

0.12.7

4 years ago

0.12.6

4 years ago

0.12.5

4 years ago

0.12.4

5 years ago

0.12.2

5 years ago

0.12.1

5 years ago

0.12.0

5 years ago

0.11.0

5 years ago

0.10.0

5 years ago

0.9.5

5 years ago

0.9.4

5 years ago

0.9.3

5 years ago

0.9.2

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.8.3

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.6

5 years ago

0.7.5

5 years ago

0.7.4

5 years ago

0.7.3

5 years ago

0.7.2

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.10

5 years ago

0.6.8

5 years ago

0.6.6

5 years ago

0.6.5

5 years ago

0.6.4

5 years ago

0.6.3

5 years ago

0.6.2

5 years ago

0.6.0

5 years ago

0.6.1

5 years ago

0.5.10

5 years ago

0.5.9

5 years ago

0.5.8

5 years ago

0.5.7

5 years ago

0.5.6

5 years ago

0.5.5

5 years ago

0.5.4

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.8

6 years ago

0.3.7

6 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.2.0

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago