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

vdatasdk

v2.9.2

Published

This repository contains vsw decode libary for EXD vData SDK for Javascript package (exceeddata-sdk-vdata). vData is an edge database running on vehicles' domain controllers. It stores signal data in a high-compression file format with the extension of .v

Downloads

188

Readme

Introduction

This repository contains EXD vData SDK for Javascript package (exceeddata-sdk-vdata). vData is an edge database running on vehicles' domain controllers. It stores signal data in a high-compression file format with the extension of .vsw. EXD vData SDK offers vsw decoding capabilities in standard programming languages such as C++, Java, Python, Javascript, and etc.

API Documentation

Publicly available SDK classes and methods are at API Documentation. Backup Link

Import To use the SDK import "exceeddata.sdk.vdata" package and the following classes:

  • VDataReaderFactory: in most cases VDataReaderFactory is all you ever need
  • VDataByteReader: use VDataByteReader if you have a vsw byte arrays and need to wrap in a data reader to VDataReaderFactory
  • VDataMeta: the metadata information of the vsw file
  • VDataFrame: the data frame of the vsw data contents

Sample Usage

SDK is very easy to use, in most cases 7 lines of code is sufficient.


let uint8arry = new VDataByteReader(new Uint8Array(....));
let factory = new VDataReaderFactory();
factory.setDataReaders(uint8arry);
factory.setSignals(signals);
        
let reader = factory.open();
let frame = reader.df();
let vals = frame.objects();  // n x m array of rows and columns of data
let cols = frame.cols(true); // column names

Complete Examples

NodeJS Example

  • Nodejs Example: A simple demo application to decode the VSW file with a unit test case.
%cd nodejs
%npm install 
% yarn test 
yarn run v1.22.22
$ jest
  console.log
    file format verion: 26

      at VDataDecoder.initialize (node_modules/vdatashj/lib/index.js:20:72004)

  console.log
    file bucket count: 1

      at VDataDecoder.initialize (node_modules/vdatashj/lib/index.js:20:72054)

  console.log
    file query start time: 0

      at VDataDecoder.initialize (node_modules/vdatashj/lib/index.js:20:72123)

  console.log
    file query end time: 0

      at VDataDecoder.initialize (node_modules/vdatashj/lib/index.js:20:72190)

  console.log
    Add bucket [object {cycle=0, start=1010, end=1990, living=0, notime=0}]

      at Function.sortAllBucketForSingleQueueMode (node_modules/vdatashj/lib/index.js:20:80469)

  console.log
    Add decoder [object {start=1010, end=1990, buckets=1, keys=3}]

      at Function.sortAddDecoder (node_modules/vdatashj/lib/index.js:20:21272)

  console.log
    Add bucket [object {cycle=0, start=1010, end=1990, living=0, notime=0}]

      at Function.sortAllBucketForSingleQueueMode (node_modules/vdatashj/lib/index.js:20:80469)

  console.log
    [ 'time', 'Signal_10Hz', 'Signal_100Hz', 'Signal_20Hz' ]

      at Object.log [as vswdecode] (vdata.js:11:16)

 PASS  test/vdata.test.js
  ✓ simple decode test (21 ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        0.21 s
Ran all test suites.
✨  Done in 0.83s.

PureJS Example

  • vswdecode.html: a demo page to demonstrate how to decode vsw from an uploaded file. Preview Online
  • vsw2blf, vsw2asc is not opensource in javascript. It will be provided in EXCEEDDATA commercial solutions.

Getting Help

For usage questions, the best place to go to is Github issues. For customers of EXCEEDDATA commercial solutions, you can contact support for questions or support.

Contributing to EXD

All contributions, bug reports, bug fixes, documentation improvements, code enhancements, and new ideas are welcome.