Skip to content

Implement ocre-timers and ocre-messaging on Linux platform#90

Merged
kr-t merged 26 commits intomainfrom
features/ocre-messaging
Oct 28, 2025
Merged

Implement ocre-timers and ocre-messaging on Linux platform#90
kr-t merged 26 commits intomainfrom
features/ocre-messaging

Conversation

@kr-t
Copy link
Collaborator

@kr-t kr-t commented Oct 27, 2025

Description

  • Implement ocre-timers and ocre-messaging on Linux platform
  • Port ocre-common to Linux
  • Add necessary wrappers for new platform-specific units
  • Port ocre-timers to Linux
  • Port ocre-messaging to Linux

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Ocre-Runtime on Linux and Zephyr with blinky and messaging samples from ocre-sdk.
Linux X86_64 logs for messaging app, which uses both messaging and timers:
./build.sh -t l -r -f /home/krisztian/demos/ocre-sdk/generic/messaging/subscriber/build/subscriber.wasm /home/krisztian/demos/ocre-sdk/generic/messaging/publisher/build/publisher.wasm

[DEBUG] Published message: ID=0, topic=test/topic, content_type=text/plain, payload_len=15
Published: Test message 0 to topic test/topic
[DEBUG] Retrieved Messaging event: message_id=0, topic=test/topic, topic_offset=131080, content_type=text/plain, content_type_offset=131096, payload_len=15, owner=0x56311b0c9a28
Received message: topic=test/topic, content_type=text/plain, payload=Test message 0, len=15
[DEBUG] Timer callback for timer 1
[DEBUG] Creating timer event: type=0, id=1, for owner 0x56311b0e2a90
[DEBUG] Queued timer event for timer 1
[DEBUG] Retrieved Timer event timer_id=1, owner=0x56311b0e2a90
[DEBUG] Creating messaging event: ID=1, topic=test/topic, content_type=text/plain, payload_len=15 for module 0x56311b0c9a28
[DEBUG] Queued messaging event for message ID 1
[DEBUG] Published message: ID=1, topic=test/topic, content_type=text/plain, payload_len=15
Published: Test message 1 to topic test/topic
[DEBUG] Retrieved Messaging event: message_id=1, topic=test/topic, topic_offset=131080, content_type=text/plain, content_type_offset=131096, payload_len=15, owner=0x56311b0c9a28
Received message: topic=test/topic, content_type=text/plain, payload=Test message 1, len=15

Blinky test is delivered to CI

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

kr-t added 23 commits October 24, 2025 08:39
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
@kr-t kr-t marked this pull request as ready for review October 27, 2025 08:39
@kr-t kr-t requested a review from srberard as a code owner October 27, 2025 08:39
@kr-t kr-t requested review from ArturSir and SorinOlari October 27, 2025 08:39
kr-t added 2 commits October 27, 2025 09:42
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
Copy link
Collaborator

@SorinOlari SorinOlari left a comment

Choose a reason for hiding this comment

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

I haven't found anything that breaks the application and everything seems to work fine.
Just a small change:)

} ocre_timer;
} ocre_timer_internal;

#ifndef CONFIG_MAX_TIMER
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think here should be CONFIG_MAX_TIMERS, 'S' is missing at the end

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed - please review.

Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
@kr-t kr-t merged commit 7345545 into main Oct 28, 2025
13 checks passed
@kr-t kr-t deleted the features/ocre-messaging branch October 28, 2025 07:50
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.

2 participants