You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
扫描剩余批次自动续扫:单批上限(deviceScan.maxTargets,默认 1024)仍作内部安全阀,但扫描页在任务正常结束(done 且 truncated=true)时自动调用 POST /deviceScan/continue,直到 remainingTargets=0,无需逐批点按钮;取消、失败或自动续扫失败时停止续扫,工具条上的「继续扫描」供手动重试。前端轮询上限改为按本批估算耗时每批重新计时,跨批总时长不再受 30 分钟限制。
Added
Custom device codes when creating devices from scan results: scan results now carry a suggested suggestedCode (derived from the address and unique within the batch), and the "Add as devices" dialog gains a prefilled, editable code column. items[].code is optional on the create API: when omitted the code is still generated from the name; when provided it is validated per row for format and uniqueness against both the database and the batch, and invalid or duplicate rows fail individually (no silent -2 renaming — codes are immutable after creation, so quietly changing one is worse than an error).
Two-stage device scan: TCP reachability prefilter: DiscoverySpec gains an optional Transport (tcp / udp / unset). For protocols declaring tcp, the gateway first dials the scan port at high concurrency with a short timeout (default 256 / 500ms); unreachable addresses are marked done (counted in scanned, no error entry) and only hosts with an open port reach the plugin's probe. Broadcast targets always bypass it, and udp/unset protocols behave as before. A typical /24 drops from 254 protocol probes to a dozen, and a /16 from hours to minutes. New settings deviceScan.prefilterEnabled / prefilterConcurrency / prefilterTimeoutMs (all require a restart). Requires SDK v0.4.0 and drivers v0.4.0.
Changed
Device-scan concurrency default raised from 8 to 32, cap from 32 to 128: scan time ≈ ceil(targets / concurrency) × per-target time. Most addresses in a subnet are unreachable and each waits out the plugin's dial timeout, so concurrency is the most direct speed lever. At the new default a /24 (254 targets) drops from about 48s to about 12s with a 1.5s dial timeout. If an existing deployment keeps its old default.yaml, raise deviceScan.maxConcurrentProbes to 32 or more manually; this setting requires a restart.
Automatic continuation of remaining scan batches: the per-batch cap (deviceScan.maxTargets, default 1024) stays as an internal safety valve, but the scan page now calls POST /deviceScan/continue automatically after a batch completes normally (done with truncated=true) until remainingTargets=0, so users no longer click through batches. Cancelling, a failure, or a failed auto-continue stops the chain and leaves the toolbar's Continue scan button for manual retry. The frontend poll timeout is now re-armed per batch from that batch's estimate, so the total time across batches is no longer capped at 30 minutes.