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

feat(diagnostics): better detect BT devices and LTE devices #280

Merged
merged 5 commits into from
Nov 27, 2021

Conversation

posterzh
Copy link
Contributor

@posterzh posterzh commented Nov 26, 2021

Why
Detect the BLE and LET devices in better way.

How
To get the BLE devices and LTE devices programatically using dbus, enable the dbus feature in diagnostics container.

References
NebraLtd/hm-diag#96
NebraLtd/hm-diag#88
NebraLtd/hm-config#46

NebraLtd/hm-config#152
NebraLtd/hm-config#142
NebraLtd/hm-config#141

@posterzh posterzh requested review from a team as code owners November 26, 2021 20:24
@posterzh posterzh changed the title feat: better detect BT devices and LTE devices feat(diagnostics): better detect BT devices and LTE devices Nov 26, 2021
Copy link
Contributor

@marvinmarnold marvinmarnold left a comment

Choose a reason for hiding this comment

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

Can you also remove 'Closes" from this PR. We do not close tickets until the PR production<-master.

image: nebraltd/hm-diag:3e478a9
image: nebraltd/hm-diag:625ea72
depends_on:
- dbus-session
environment:
- FIRMWARE_VERSION=2021.11.26.1
- DIAGNOSTICS_VERSION=3e478a9
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be updated to match the diag image.

image: nebraltd/hm-diag:3e478a9
image: nebraltd/hm-diag:625ea72
depends_on:
- dbus-session
environment:
- FIRMWARE_VERSION=2021.11.26.1
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be 2021.11.22.0-2 or 2021.11.22.0-3. Same for the other FIRMWARE_VERSION.

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess 2021.11.26.1-1 could also work.

volumes:
- pktfwdr:/var/pktfwd
- miner-storage:/var/data
- dbus:/session/dbus
Copy link
Member

Choose a reason for hiding this comment

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

Don't think we need to expose the session bus, just the system bus for what this is used for

Copy link
Member

Choose a reason for hiding this comment

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

The only thing using the session bus is the miner FYI

@shawaj
Copy link
Member

shawaj commented Nov 26, 2021

There's also at the bottom another version number (for dbus container)

@shawaj shawaj merged commit 32d044a into master Nov 27, 2021
@shawaj shawaj deleted the posterzh/better-detect-bt-lte branch November 27, 2021 01:24
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.

3 participants