Skip to content

feat: Add ISOBUS bus control function enumeration and TC conflict det…#59

Merged
gunicsba merged 4 commits into
developfrom
feat/enhanced_logging
Jun 1, 2026
Merged

feat: Add ISOBUS bus control function enumeration and TC conflict det…#59
gunicsba merged 4 commits into
developfrom
feat/enhanced_logging

Conversation

@gunicsba
Copy link
Copy Markdown
Contributor

…ection

  • Add enumerate_bus_control_functions() to list all CFs on the bus with NAME details (address, manufacturer code, function code, industry group, identity number)
  • Log bus CFs before and after creating internal TC/TECU control functions
  • Add check_tc_address_conflict() to detect and warn when another TC claims preferred address
  • Periodic WARN message every 30 seconds when TC address conflict is present
  • Use numeric codes only for cleaner, more maintainable output format
  • Tag internal control functions with [INTERNAL] marker in enumeration output

This improves debugging visibility into ISOBUS network state and helps diagnose address claim conflicts when multiple Task Controllers are present on the bus.

…ection

- Add enumerate_bus_control_functions() to list all CFs on the bus with NAME details
  (address, manufacturer code, function code, industry group, identity number)
- Log bus CFs before and after creating internal TC/TECU control functions
- Add check_tc_address_conflict() to detect and warn when another TC claims preferred address
- Periodic WARN message every 30 seconds when TC address conflict is present
- Use numeric codes only for cleaner, more maintainable output format
- Tag internal control functions with [INTERNAL] marker in enumeration output

This improves debugging visibility into ISOBUS network state and helps diagnose
address claim conflicts when multiple Task Controllers are present on the bus.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds runtime diagnostics to improve visibility into ISOBUS control functions (CFs) present on the bus and to detect/report Task Controller (TC) preferred-address conflicts, helping troubleshoot multi-TC setups and address-claim issues.

Changes:

  • Added enumerate_bus_control_functions() to print bus CFs (with NAME fields and [INTERNAL] tagging) before/after internal CF creation.
  • Added check_tc_address_conflict() and wired it into the main update loop to periodically warn when another TC holds the preferred TC address.
  • Added additional numeric-only logging details for easier debugging output parsing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app.cpp
Comment thread src/app.cpp
Comment thread src/app.cpp
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 6 comments.

Comment thread src/app.cpp Outdated
Comment thread src/app.cpp Outdated
Comment thread src/app.cpp Outdated
Comment thread src/app.cpp Outdated
Comment thread src/app.cpp Outdated
Comment thread src/app.cpp Outdated
@gunicsba
Copy link
Copy Markdown
Contributor Author

gunicsba commented Jun 1, 2026

Build result:
Windows Installer_20260601_PR59.zip

@gunicsba gunicsba merged commit 4d8e20a into develop Jun 1, 2026
5 checks passed
@gunicsba gunicsba deleted the feat/enhanced_logging branch June 1, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants