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 🙏

© 2026 – Pkg Stats / Ryan Hefner

astra-protocol-y-parser

v1.0.7

Published

Astra Telematics Protocol Y parser

Downloads

294

Readme

astra-protocol-y-parser

A lightweight NodeJS package for parsing data from Astra Telematics IoT devices.

This package has been written in TypeScript, offering rich code-hinting and type safety.

This parser has been updated for Protocol Y v1.3.

Protocol Y v1.3 notes

Protocol Y v1.3 changes the report header layout and several data modules.

Report header changes

  • Report module mask: 10 bytes
  • Report reason flags: 8 bytes
  • Report status flags: 4 bytes
  • Reason flag bit 32: Trailer Data Event

Notable module changes

  • Module 1 – Device Power

    • External input voltage is now 2 bytes
    • Resolution: 0.1 V/bit
  • Module 2 – GNSS Data

    • Added:
      • GNSS valid fix availability %
      • GNSS SVs in view
      • GNSS estimated position error
  • Module 6 – Signal Quality

    • Removed in Protocol Y v1.3
    • GNSS/network quality information is now represented in GNSS Data and Mobile Network Info
  • Module 7 – Mobile Network Info

    • Added:
      • RSSI
      • RAT
  • Module 13 – FMS In-Journey Data

    • Total fuel used resolution is now 0.001 L/bit
  • Module 44

    • Replaced with HGV Trailer Data

Supports data modules

  • [x] Device Power
  • [x] GNSS Data
  • [x] Digital I/O
  • [x] Analogue Inputs
  • [x] Driver Behaviour
  • [ ] Signal Quality REMOVED in Protocol Y v1.3
  • [x] GSM / Mobile Network Info incl. MCC, MNC, RSSI and RAT
  • [x] Geofences
  • [x] Driver ID
  • [ ] Trailer ID DEPRECATED
  • [x] Driver Alcohol Test Data
  • [x] FMS Journey Start Data
  • [x] FMS In-Journey Data
  • [x] OBD In-Journey Data
  • [x] OBD Diagnostic Trouble Codes
  • [x] FMS Journey Stop Data
  • [x] OBD Journey Stop Data
  • [x] Carrier Temperature Data
  • [x] 1-Wire Temperature Probe Data
  • [x] Carrier 2-Way Alarms
  • [x] Rayvolt E-Bicycle
  • [x] ECON 3-Byte
  • [x] Gritter Data (BS EN 15430)
  • [x] Beacons
  • [x] Redforge Weight
  • [x] ECON "1-Gram" Gritter Data
  • [x] NMEA 2000 Data
  • [x] SIM Card Subscriber ID
  • [x] SIM Card Serial Number
  • [x] FMS Driver ID
  • [x] FMS In-Journey High-res
  • [x] FMS Driver Working States
  • [x] Segway Ninebot ES4 Sharing
  • [x] Temperature + Humidity Sensors
  • [x] Going Green "The Core" Bike Data
  • [x] Ecooter E1/E2 Scooter Data
  • [x] Torrot Muvi Scooter Data
  • [x] Ecooter E1/E2 Serial Numbers
  • [x] Askoll eS2 Scooter Data
  • [x] Cash-in-transit Status
  • [x] Torrot Muvi Battery Data
  • [x] STARS ACIM Motor Controller Data
  • [x] "CAR2" Data
  • [ ] GNSS Extended Data REMOVED / replaced by HGV Trailer Data in Module 44
  • [x] HGV Trailer Data
  • [ ] CM2010 Mobility Scooter Controller Data DEPRECATED
  • [x] Astra Generic CAN Data
  • [x] Astra Generic Debug Data
  • [x] Heinzmann E-Scooter CAN Data

Installation

Run the following command in the root of your project:

npm i astra-protocol-y-parser