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

Add oem command to read multiple sensors #334

Conversation

Quanta-YangChen
Copy link
Collaborator

Summary:

  • Add command in oem_1s_handler.c to read multiple sensor
  • NetFn: 0x38/Cmd: 0x88
  • Request:
    Data 0 ~ Data N (N less than or equal to 32) multiple sensor number
    Response:
    [sensor num][decimal byte 0][decimal byte 1][fraction byte 0][fraction byte 1][status] * N
    Note: If the sensor number is not supported will respond 6 bytes 0xff

Dependency: #333

Test plan:

  • Build code: Pass

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 14, 2022
@facebook-github-bot
Copy link
Contributor

@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Summary:
- Support TMP75 sensor reading
- Support VR sensor reading
- Support ADC sensor reading
- Support HSC sensor reading
- Support PEX sensor reading
- Support NVME sensor reading
- Because PEX can only access when DC ON, so add one ISR if DC on then do pex89000_init later.
- Add mutex to protect some bus which has i2c mux.

Test Plan:
- Build code: Pass
Summary:
- Add command in oem_1s_handler.c to read multiple sensor
- NetFn: 0x38/Cmd: 0x88
- Request:
	Data 0 ~ Data N (N less than or equal to 32) multiple sensor number
  Response:
  	[sensor num][decimal byte 0][decimal byte 1][fraction byte 0][fraction byte 1][status] * N
	Note: If the sensor number is not support will response 6 bytes 0xff

Test plan:
- Build code: Pass
@facebook-github-bot
Copy link
Contributor

@Quanta-YangChen has updated the pull request. You must reimport the pull request before landing.

@Quanta-YangChen Quanta-YangChen deleted the PR/add_multi_sensor_read_cmd branch August 16, 2022 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants