Access Senquip Application Notes — detailed documents explaining configuration, integration, and data setup for each supported system.
Parsing a CAN Bus Message with a Script
APN0012 | Revision 1.1 | October 15, 2025
This application note explains how to capture, interpret, and process CAN bus traffic using the Senquip scripting language (mJS). It begins by outlining how to configure the CAN interface for the correct bit rate, termination, and filtering. The script examples show how to register a data_handler, parse incoming message objects, and identify specific Parameter Group Numbers (PGNs) or Source Addresses (SAs) in J1939-based systems. Each example demonstrates the use of the SQ.parse() function to extract multi-byte fields, apply scaling and offsets, and dispatch decoded signals such as engine speed, temperature, or fuel level to the Senquip Portal. The document also includes troubleshooting techniques for bus errors, bit-stuffing faults, and overlapping messages. By implementing the methods shown, users can efficiently decode CAN or J1939 data streams, reduce processor load through message filtering, and build custom telemetry mappings for any compliant machine controller.
Access Application Note
Fill out the form below to access the full application note.
