hayodea
45ad5c83ee
livoxProto1: Open pcloudDataSocket in UdpCmdDemux
...
The pcloudData socket is now opened by UdpCommandDemuxer, when
libLivoxProto1 is initialized. We can now just pick up the socket
and be certain it'll be there if the lib is being executed.
2025-11-01 22:41:58 -04:00
hayodea
10e615e75e
StimBuff: make start/stop virtual;
...
We can now have the derived StimBuff class implement its own
start()/stop() preamble and epilogue.
2025-11-01 22:05:52 -04:00
hayodea
05515743c5
Put continuation near frontend func
2025-11-01 21:33:35 -04:00
hayodea
b2c73f6bed
IoUringAssmEngine: Add skeleton setup/finalize
...
Also add dependency on liburing.
This patch adds basic io_uring_queue_init and io_uring_exit
support and calls.
2025-11-01 21:30:47 -04:00
hayodea
797a95e6a1
IoUringAssmEngine: formatting/indentation
2025-11-01 20:21:49 -04:00
hayodea
972979cc10
IoUringAssmEngine: Remove dead wood
2025-11-01 20:18:05 -04:00
hayodea
ba955ef633
PcloudStimBuff: Add skeleton assembleAndProduceStimulusFrameReq impl
2025-11-01 04:14:07 -04:00
hayodea
a32b4f05d1
livoxGen1: call PcloudStimulusBuffer::start/stop
...
We now call start()/stop() in attach/detachDeviceReq.
2025-11-01 03:32:05 -04:00
hayodea
c8474edad7
livox: rename handshakeTimeoutMs=>commandTimeoutMs
2025-11-01 02:45:24 -04:00
hayodea
58e9b09995
livoxGen1: Use RAII to close dlopen handle
2025-11-01 01:54:49 -04:00
hayodea
c2c6d409dd
DAPSpec: QualeIfaceApiParams: Add histbuffMs
2025-11-01 01:35:29 -04:00
hayodea
8dba0fdfc4
Todo: update
2025-11-01 01:26:51 -04:00
hayodea
67af9f02da
DAPSpecs: Update parseRequiredParamAsInt to support all param lists
2025-11-01 01:11:34 -04:00
hayodea
e824685c19
DAPSpec: Add params to quale-iface-api
...
We add params to the quale iface (soon to be renamed to cologex-api).
This allows us to eventually set the history length for stimbuffs.
2025-11-01 00:57:04 -04:00
hayodea
9cf1398f5c
PcloudStimBuff: specify that openCl constraints are for input
2025-11-01 00:19:06 -04:00
hayodea
f76f718e80
PcloudStimBuff: make OpenCL constraints explicit
2025-11-01 00:17:10 -04:00
hayodea
cdade17905
Add SpMcRingBuffer to base class StimulusBuffer
...
This will hopefully genericise the interface for Stimbuffs.
2025-11-01 00:09:53 -04:00
hayodea
5af7e531b6
Style: use modern C++ style
2025-11-01 00:05:43 -04:00
hayodea
018c1f1e1d
SpMcRingBuffer: Added this new class
...
This will be the foundation for all StimulusBuffers. We can most
likely add this generically to the StimulusBuffer base class rather
than adding it only to StimulusBuffer's derived classes.
2025-10-31 22:58:18 -04:00
hayodea
5e522178d8
SequenceLock: Newly added
...
What can I say? It's a very portable primitive that allows us to
create many RCU-type data structures with many readers and one
writer, locklessly.
2025-10-31 22:12:23 -04:00
hayodea
7574f3f59a
StimBuff: customize stop() delay; add stimFrameProductionTimesliceInd
2025-10-31 13:54:50 -04:00
hayodea
0de031c74b
Formatting: move big inlines out of class def
2025-10-31 13:47:00 -04:00
hayodea
ebbb2b1345
StimBuff: Add skeleton common impl with rate limiting
2025-10-31 13:43:23 -04:00
hayodea
3bf8146ca3
CMake: STIMBUFF_FRAME_RETRY_PERIOD_MS 3=>1
2025-10-31 12:34:34 -04:00
hayodea
f32a472c5d
PcloudStimBuff: Add skeleton daemon; frame rate limiting
...
Basic implementation of the stimbuff mechanism's frame rate
limiting behaviour.
2025-10-31 12:22:07 -04:00
hayodea
7994c2f6e2
CMake,config.h: Add -DSTIMBUFF_FRAME_RETRY_DELAY_MS
...
This determines how long a stimbuff should wait before retrying
to produce a stimframe, if the previous stimframe is still being
produced.
2025-10-31 12:08:40 -04:00
hayodea
9ab155560a
livoxGen1:ioUringAssmEngine: Fix build
2025-10-31 11:49:56 -04:00
hayodea
720babd39d
CMake,config.h: Add -DSTIMBUFF_FRAME_PERIOD_MS
...
This determines the maximum rate at which stimbuffs will be refreshed
with data from their device.
A device may refresh less frequently than this, but not more
frequently. The goal here is to give us control over the max
rate at which a device produces data.
2025-10-31 11:31:04 -04:00
hayodea
5c3bc6c324
livoxGen1: Reduce nDgramsPerFrame 500=>30 ~86400 points/sec
2025-10-31 11:27:43 -04:00
hayodea
b53ef42124
livoxGen1: documentation and formatting
2025-10-31 08:57:37 -04:00
hayodea
babfda4d0f
livoxGen1: Reduce handshakeTimeoutMs default to 5ms
...
We have no real reason to set it as high as 300.
2025-10-31 08:57:37 -04:00
hayodea
88dd872c95
Todo: Add async bridging idea as sync wait mechanism
2025-10-31 08:57:37 -04:00
hayodea
b8255234de
Todo: add idea for dealing with late timeouts
2025-10-31 08:57:37 -04:00
hayodea
1a4f7f97bd
BUG: Late-timeout during finalize
...
This adds a script which reproduces this bug after a lot of
iterations in gdb and lets us get a backtrace
2025-10-31 08:57:37 -04:00
hayodea
13a948a2d3
Formatting: use early continue pattern
2025-10-31 08:57:37 -04:00
hayodea
07c48d78d1
Todo: update comments
2025-10-31 08:57:37 -04:00
hayodea
7b6bfbad68
Fix linker error
2025-10-31 08:57:37 -04:00
hayodea
393326052c
Todo: update and add comments to finalizeInd
2025-10-31 08:57:37 -04:00
hayodea
b3d0565e11
livoxGen1: Committing intermediate state before daemon design
2025-10-31 08:57:37 -04:00
hayodea
287dd6be56
livoxGen1: Fix include name
2025-10-31 08:57:37 -04:00
hayodea
0b2fde3484
livoxGen1:StaginBuffer: simplify buff size/stride calcs
2025-10-31 08:57:37 -04:00
hayodea
c1286627ab
LivoxGen1: attachDevReq sets nDgramsPerFrame
2025-10-31 08:57:37 -04:00
hayodea
2234df1de2
livoxGen1:attach: alloc PcloudStimBuff after getting return mode
2025-10-31 08:57:37 -04:00
hayodea
4db3581be9
VSCode config: idk
2025-10-31 08:57:37 -04:00
hayodea
7efe622dd2
livoxGen1:attach: call getReturnModeReq before enPcloudDataReq
2025-10-31 08:57:37 -04:00
hayodea
f658e97ed0
livoxProto1: export getReturnModeReq; cache result in Device
2025-10-31 08:57:37 -04:00
hayodea
f8c5fad841
AssemblyBuffer changes
2025-10-31 08:57:37 -04:00
hayodea
626a84cc78
Formatting
2025-10-31 08:57:37 -04:00
hayodea
a68143810e
DeviceReattacher: use provided ioThread; not mrntt directly
2025-10-31 08:57:22 -04:00
hayodea
109cd9eb03
DevReattacher: Add 20ms sync delay during stop()
...
This fixes the bug where in-flight async ops that were triggered
by DevReattacher (such as livoxGen1_attachDeviceReq) that have
unconditional delays in them would fire late, after the state
var they rely upon had already been de-initialized.
We use an async bridge to ensure that those ops get executed in
the background and then resume execution after the delay.
2025-10-31 08:20:33 -04:00