Skip to content

Conversation

@Otpvondoiats
Copy link
Contributor

@Otpvondoiats Otpvondoiats commented Jan 11, 2026

Summary

  • bugfix
  1. add sensor_device_info when sensor_regsiter by usensor
  2. uorb:Fixed O_DIRECT flag triggering rpmsg cross-core
  3. sensor:Added virtual sensor flag to prioritize reading of driver information.

Impact

Cross-core direct connection and cross-core information retrieval

Testing

We have conducted tests on the following platforms:
​​
Simulator​​ - single core:pass
​​BES Platform​​ - multi-core:pass;

@github-actions github-actions bot added Area: Sensors Sensors issues Size: S The size of the change in this PR is small labels Jan 11, 2026
@github-actions github-actions bot added Area: OS Components OS Components issues Size: M The size of the change in this PR is medium labels Jan 12, 2026
Donny9 and others added 3 commits January 12, 2026 14:34
The logic for obtaining the info and configuring the user buffer have been optimized.

Signed-off-by: dongjiuzhu1 <[email protected]>
Fixes the issue of cross-core IPC being triggered when using O_DIRECT in non-cross-core scenarios.

Signed-off-by: likun17 <[email protected]>
…rmation.

When the local core is a virtual sensor, attempt to retrieve information from a remote core.

Signed-off-by: likun17 <[email protected]>
@jerpelea jerpelea changed the title sensor bug fix - part 1 drivers/sensors: sensor bug fix - part 1 Jan 12, 2026
Copy link
Contributor

@jerpelea jerpelea left a comment

Choose a reason for hiding this comment

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

please add "drivers/sensors:" in front of commit title

}

if (lower->ops->open)
if ((filep->f_oflags & O_DIRECT) == 0 && lower->ops->open)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please include comment explaining the idea. Why do you need to check if O_DIRECT flag is set?

}

if ((filep->f_oflags & O_DIRECT) == 0)
if (filep->f_oflags & O_RDOK)
Copy link
Contributor

Choose a reason for hiding this comment

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

Also it is good to have a comment before this block

@Otpvondoiats
Copy link
Contributor Author

wait for #17837 and apache/nuttx-apps#3312

Copy link
Contributor

@linguini1 linguini1 left a comment

Choose a reason for hiding this comment

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

Ideally this could be three separate PRs since the commits seem unrelated.

We have conducted tests on the following platforms

Can you please provide more information about your testing? What did you test on the platforms, how do you know the behaviour is correct, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: OS Components OS Components issues Area: Sensors Sensors issues Size: M The size of the change in this PR is medium Size: S The size of the change in this PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants