Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FS]: Add ISOBUS/J1939 Time/Date interface #472

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

ad3154
Copy link
Member

@ad3154 ad3154 commented Jun 1, 2024

Describe your changes

  • Added an interface for interacting with the time and date PGN. This is related to the ISOBUS file server client, where time and date may need to be known for some operations.
  • Updated a few more GitHub actions versions to fix deprecation warnings.

How has this been tested?

Since I don't have easy access to a machine with this message present on it, I wrote the interface against the definition on isobus.net, and used unit tests to validate message parsing and construction, as well as our responsiveness to PGN requests for the time/date PGN.

@ad3154 ad3154 added enhancement New feature or request iso: application messages Related to the ISO-11783:7 standard labels Jun 1, 2024
@ad3154 ad3154 self-assigned this Jun 1, 2024
@ad3154 ad3154 force-pushed the adrian/time-date branch 2 times, most recently from c8577a6 to e68484c Compare June 1, 2024 23:43
@ad3154 ad3154 requested a review from GwnDaan June 1, 2024 23:50
@ad3154 ad3154 force-pushed the adrian/time-date branch 2 times, most recently from dfb452f to cc826e7 Compare June 2, 2024 15:36
Copy link
Member

@GwnDaan GwnDaan left a comment

Choose a reason for hiding this comment

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

Lovely! With a few lines we can successfully get the time and date from a CCI1200 terminal:

	isobus::TimeDateInterface timeDateInterface(nullptr, nullptr);
	timeDateInterface.initialize();

	while (running)
	{
		std::this_thread::sleep_for(std::chrono::milliseconds(5000));
		timeDateInterface.request_time_and_date(TestInternalECU);
	}

image

isobus/src/isobus_time_date_interface.cpp Outdated Show resolved Hide resolved
test/time_date_tests.cpp Outdated Show resolved Hide resolved
isobus/src/isobus_time_date_interface.cpp Outdated Show resolved Hide resolved
Added an interface for interacting with the time and date PGN.
This is related to the ISOUS file server client, where time and date
may need to be known for some operations.
Also, updated a few more github action versions.
Copy link

sonarcloud bot commented Jun 5, 2024

@ad3154 ad3154 merged commit e069b7c into main Jun 5, 2024
10 checks passed
@ad3154 ad3154 deleted the adrian/time-date branch June 5, 2024 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request iso: application messages Related to the ISO-11783:7 standard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants