Add ISOBUS (ISO 11783 / SAE J1939) protocol support#27
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Co-authored-by: polybassa <1676055+polybassa@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add ISOBUS protocol implementation
Add ISOBUS (ISO 11783 / SAE J1939) protocol support
Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new contrib module implementing the ISOBUS protocol (ISO 11783), the CAN-based communication standard for agricultural and forestry machinery built on SAE J1939.
New module:
scapy/contrib/automotive/isobus.pyCore layer:
ISOBUS— ExtendsCAN, replacing the 29-bit identifier with individual J1939 fields (priority,reserved,data_page,pdu_format,pdu_specific,source_address). Computedpgnproperty handles both PDU1 (peer-to-peer,pdu_format < 0xF0) and PDU2 (broadcast,pdu_format >= 0xF0) addressing correctly.PGN packet classes with
bind_layersdispatch:ISOBUSAddressClaimed0x00EE00ISOBUSRequestForPGN0x00EA00ISOBUSAcknowledgment0x00E800ISOBUSTransportProtocolCM0x00EC00ISOBUSTransportProtocolDT0x00EB00ISOBUSWorkingSetMaster0x00E600ISOBUSWorkingSetMember0x00E700ISOBUSCommandedAddress0x00FED8ISOBUSTransportProtocolCMusesConditionalFieldto handle all five TP.CM variants (BAM, RTS, CTS, EOM ACK, Abort) in a single class.ISOBUSAddressClaimedstores the 8-byte little-endian J1939 NAME as aLELongFieldwith read properties for all sub-fields (identity_number,manufacturer_code,industry_group,device_class, etc.).Helper:
build_isobus_name()constructs the 64-bit NAME integer from named component fields.Tests:
test/contrib/automotive/isobus.uts33 regression tests covering build/dissect round-trips, PGN computation, NAME subfield access, all TP.CM variants, and automatic layer dispatch.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.