J1939 ↔ CAN Binding
Bridges the J1939 protocol layer with the CAN hardware layer:
Publishes to message bus:
Example: const binding = new J1939CANBinding(can, runtime.getMessageBus()); binding.start();
// Receive J1939 messages bus.subscribe("j1939.rx", (msg) => { console.log(msg.name, msg.raw); });
// Send J1939 messages bus.publish("j1939.tx", { pgn: 0xF004, sa: 0x01, da: 0xFF, priority: 3, data: [0x10, 0x20, 0x30, ...] });
J1939 ↔ CAN Binding
Bridges the J1939 protocol layer with the CAN hardware layer:
Publishes to message bus:
Example: const binding = new J1939CANBinding(can, runtime.getMessageBus()); binding.start();
// Receive J1939 messages bus.subscribe("j1939.rx", (msg) => { console.log(msg.name, msg.raw); });
// Send J1939 messages bus.publish("j1939.tx", { pgn: 0xF004, sa: 0x01, da: 0xFF, priority: 3, data: [0x10, 0x20, 0x30, ...] });