Implement client side uwb simulator event trigger #175
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type
Goals
Allow the
uwb
cli tool to trigger session events.Technical Details
IOCTL_UWB_DEVICE_SIM_TRIGGER_SESSION_EVENT
simulator DDI inUwbDeviceSimulatorConnector
.TriggerSessionEvent
fromUwbDeviceSimulator
.trigger
sub-command touwbsim.exe
cli tool.Test Results
nocli.exe uwb range --SessionId 1234 start --DeviceRole 1 --MultiNodeMode 0 --NumberOfControlees 1 --DeviceMacAddress 12:34 --DestinationMacAddress 67:89 --DeviceType 1
in one instance, anduwbsim.exe trigger --sessionId 1234 -e 1
in another instance and observed the driver toggle random measurement generation.Reviewer Focus
None
Future Work
The driver currently session-event information in file-specific state, which means it is lost when the associated file handle is closed. This state should instead be stored in the
UwbSimulatorSession
object.Checklist
all
compiles cleanly.