Framework changelog¶
Adapter-facing changes in Pq.Adapters.Framework between server releases.
Versions match the server tags. Newest on top.
Only what affects building an adapter is listed here: the framework's public API, the source generator, the YAML schemas, and the diagnostics. Server internals are out of scope.
Changes that need an edit to an existing adapter have a numbered record with exact steps under Framework breaking changes.
Unreleased¶
⚠ Breaking changes¶
- The playback alias is
pb-{deviceId:N}-{transactionId:N}, built withPlaybackStreamAlias.For(channel.DeviceId, cmd.TransactionId)(Pq.Domain.Streaming). The server opens apb-stream only with Read on the device in the alias and refuses the oldpb-{transactionId:N}. Breaks: an adapter that buildspb-{transactionId:N}registers a stream the client cannot open. Migration: build every playback alias withPlaybackStreamAlias.For, with the device the playback command targets. PlaybackRelayRegistryis keyed by playback alias.Add(ownerId, relay)keys byrelay.Alias;TryGet(alias, out relay)andRemove(alias)take the alias. Keyed by transaction id, a command on camera A with camera B's transaction id reached B's relay. Breaks:Add(deviceId, transactionId, relay),TryGet(transactionId, …)andRemove(transactionId)(CS1501/CS1503). Migration: pass the playback alias (PlaybackStreamAlias.For(channel.DeviceId, cmd.TransactionId));Clear(ownerId)stays.- A clock change has three events.
pq.event.system.time.changed.syncis the framework time sync correction, withclockFastorclockSlow(timespan, whole seconds: how far the device clock was ahead of or behind PQ time).pq.event.system.time.changed.manualis a clock a person set on the device, withpersonId(methodTimeChangedManually).pq.event.system.time.changedis a clock change the device reports without a source; it has nopersonId. Breaks:TimeChanged(timestamp, personId)(CS1739/CS1501). Migration: declarepq.event.system.time.changed.manualand callTimeChangedManually(timestamp, person). After a sync that returned an offset, the framework drops a baretime.changedwhose device time falls within that sync of the same Thing (within 5 min of it), because the device reports the framework's own write; an adapter filter for that report can go. - A function in
functions.yaml(or a custom function) can listevents:it publishes itself, outside any action. The events belong to every Thing with the function, and no Thing method is generated for them.TimeSynchronizationlistspq.event.system.time.changed.sync. ITimeSynchronized.SynchronizeTimereturnsTask<TimeSpan?>: how far the sync moved the device clock (the offset before the write, device minus PQ), ornullwhen it skipped the write or cannot read the device clock. The framework publishespq.event.system.time.changed.syncwhen the offset is aboveTimeSyncScheduler.ClockChangeThresholdSeconds(5 s), so a resync of a correct clock leaves no audit record. A sync outside the scheduler callsTimeSyncScheduler.Synchronize. Breaks: everySynchronizeTimeimplementation (CS0738). Migration: return the offset when the adapter reads and writes the device clock, elsenull; deleteTimeChangedcalls made for the adapter's own write (RULE-063). See TimeSynchronization — Clock change audit.- A channel with
QuietTimeBeforeSend = TimeSpan.ZerothrowsArgumentOutOfRangeExceptionwhen it is created.AdaptiveQuietTimeis on by default and needs a positive floor. Migration: remove the zero value to get the 5 ms default, or also setAdaptiveQuietTime = nullwhen the vendor mandates a fixed cadence. -
Access synchronization names panel memory "device memory".
GetReservedDeviceMemory,ClearDeviceMemory(IReadOnlyList<OccupiedDeviceMemory>, bool),DeviceMemoryRangeandAccessDifferConfig.{Type}MemoryRange; the old names are[Obsolete]warnings and keep working. Breaks: an override ofAccessDifferConfig.{Type}AddressRange. Migration: rename the overrides and range uses. See 0003 — Device memory names. -
ProtocolChannelOptions.QueueFullModedoes not exist. A full normal queue always makes the caller wait; a drop mode lost the request while its caller waited for a result that never came. Breaks: an adapter that setsQueueFullMode(CS0117). Migration: delete the setting; the behaviour is that of the defaultWait. IFrameParser.Parse(ReadOnlySpan<byte> data, out TFrame? frame)returns aParseResult. The parser gets every unconsumed byte in one span and answersParseResult.NeedMore,ParseResult.Skip(n)(garbage, a bad checksum) orParseResult.Frame(n); the framework consumes the bytes, calls again after a skip or a frame, so a frame right behind garbage is read at once, and copies only bytes that cross a buffer segment.TryParseis[Obsolete(error: true)]and never called. Parser tests read with the extensionparser.TryRead(ref buffer, out frame), exactly like the connection. Breaks: every TCP adapter's parser (CS0535, plus PQ0006 on the oldTryParsewith the migration link) and tests that callTryParse(CS0619). Migration: see 0004 — Frame parser:Parseover a span.-
IBiometricDatahas the memberReleaseBlobs(). The access synchronization calls it after each chunk to drop the chunk's biometric data. Generated templates and entities implement it. Breaks: a hand-writtenIBiometricDataimplementation. Migration: implementReleaseBlobs()so it returns the object to its state beforeHydrateBlobs. -
PQA034 (error): a person profile field name has one definition per adapter. Breaks: an
access-model.yamlwhoseperson_profilesslot types declare one field name with a different type, values, category, description, default, validation or sensitivity fails the build. Migration: give each slot its own field name, or make the declarations identical. See PQA034.
Added¶
LocalAddressesgives the host address a device connects back to. An adapter in a container sees only its Docker address. The framework serviceLocalAddressesholds the IPv4 addresses of the host fromHost__Addresses, which the installer sets for every compose adapter and the lab for its runs.Toward(remoteAddress)returns the host address in the network of the device, the narrowest of several, ornull.Alllists everyLocalAddress(IPAddress Address, IPNetwork Network). Use it for a push target or a client-mode controller instead ofDns.GetHostName()or the container's own interfaces. See Inbound Connections.- Reference identity:
identity:may name a required single deviceRef. A device with no vendor id of its own is identified by the Thing it belongs to, e.g.identity: [master_lcp]on a perimeter line. Re-discovery and a file re-import pair such a node by the persisted id of its target, so it keeps its id while its target does. The target needs an identity of scalar properties (oridentity: type), and the identity must be declaredunique. The discovery node holds the target as arequirednode property. New errors PQA035, PQA036, PQA037. See RULE-048. - Device health event leaves.
pq.event.technical.temperature.high/.low/.normal(the temperature of the device itself; optionaltemperature,thresholdin °C),pq.event.technical.network.failed/.restored(the device's own network interface),pq.event.system.time.not_set/.not_set.cleared(the device clock holds no valid time; not a clock change, seetime.changed.*),pq.event.technical.peripheral.io_bus.failed/.restored(optional codebus:rs485orlan, rendered as translated text),pq.event.technical.peripheral.camera_link.failed/.restored,pq.event.technical.peripheral.http_client.failed/.restored, andpq.event.system.device.module.failed/.restored(the Thing is the module, or the device for a module that is not a Thing; optional codefunction:inputoroutput). A code parameter renders through{param:choose(a|b):text a|text b|}, so the template shows translated text. For status bits that would otherwise surface as a free-texttechnical.fault.hardware. ProtocolChannelOptions.ReceiveSilenceTimeoutdetects a silent link. When the channel receives no frame for this time, it counts the connection as lost:pq.event.connection.lost, reconnect with backoff, and resume of an interrupted access synchronization. Every parsed frame resets the clock. It detects a TCP socket that stays open while the device behind it no longer answers (an RS485/TCP gateway with a dead bus, a hung converter), which OS TCP keepalive and aTimeoutIsExpectedsend do not. Null (default) disables it. Use it on a channel that receives frames regularly; an adapter whose protocol is silent between events sends its own keepalive request. See TCP Transport — Keepalive and Link Liveness.IAtMostOnceframes are never retransmitted. A frame type that implements the marker interfaceIAtMostOnce(namespacePq.Adapters.Framework.Communication.Tcp) is written once: the channel does not retransmit it after a response timeout, whateverTimeoutRetriessays. The timeout still drops the connection unless the send setsTimeoutIsExpected. Use it for a frame the device acts on at every delivery, e.g. a toggle. See TCP Transport.- Transport type
http. The framework owns the HTTP client: oneHttpChannelper device connection, operations asHttpOperation<T>records named by the vendor documentation, results asHttpResult<T>without exceptions, signing throughIHttpSigner, exchange lines in the TCP format, offline afterHttpChannelOptions.FailuresToOfflinefailed exchanges in a row. The framework sets theAuthenticatedProtocolslot from every exchange.frame_typeis rejected forhttp. See Transport types. transport.tls: trueand theCertificateTrustfunction. Trust on first use of a self-signed device certificate, a changed one refused until the operator commandpq.command.connection.certificate.trusttrusts the refused one, eventspq.event.connection.certificate.trustedandpq.event.connection.certificate.rejected, and the client certificate propertiestls_client_certificateandtls_client_certificate_password. TLS works onhttp(https://address) and ontcp(TcpConnectionOptions.UseTls).TcpConnectionOptionsis a record. See CertificateTrust.- Four event leaves.
pq.event.intrusion.standby(a partition in a vendor standby state, optionalpersonId),pq.event.security.keypad.mode.changed(requiredmode, optionalpersonId),pq.event.security.code.invalid.repeated.cleared(the restore ofsecurity.code.invalid.repeated) andpq.event.access.credential.presented(a credential presented with no grant or denial, optionalpersonId,credentialId). For panel messages that would otherwise surface asdevice.unknown. Partitionfire and evacuation.FireAlarmTriggered/FireAlarmClearedpublishpq.event.fire.alarm.section/.clearedwith the statefire.alarm.section;EvacuationTriggered/EvacuationClearedpublishpq.event.safety.emergency.evacuation/.clearedwith the stateemergency.evacuation. For a panel whose partition holds typed fire or evacuation inputs. See Partition.- Positions the device holds:
PanelCommandResult.HeldByDevice(position). A write command returns it when the panel proves the record at that position is not PQ's (an installer-locked record, a technician or master card). The framework reserves the position for good (IAddressMappingStore.GetHeldPositions/AddHeldPosition, kept by a reset) and moves the record to a free position in the same synchronization, together with every record that references it. The new reasonSyncReasonCode.PositionHeldByDevicenames a held position that is still refused after the last pass. A hand-writtenIAddressMappingStoreimplements the two new members. See Positions the device holds. - Access synchronization exposes the device the run synchronizes as
SynchronizedDeviceon the generatedAccessSynchronizationBase, typed as the device type withAccessSynchronization.Transform, the holiday, memory and before/after hooks and the entity commands read it; an adapter no longer copies the device or its address into a field inSynchronize/Reset. Adapters write no code. See Access synchronization — The synchronized device. - Device-assigned record ids (
ExternalId). A create command returns the id the device assigned:ProtocolCommand<TCtx>.ReportingExternalId(async (ctx, ct) => ExternalId.From(await ...)). The framework stores it inAddressMapping.ExternalId; an in-place update keeps it unless it reports a new one. Read it withAccessSynchronizationFunction.ExternalIdOf(entityType, address), or from a cleanup position withExternalId.Of(mapping). See Device-Assigned Identifiers. IdentityResolution.ByExternalIdresolves event persons by the stored device id. Register it inAdapterRegistrations.ConfigureServices;ResolvePersonthen matches stored ids only and never the address. The default stays address matching.- Typed identity lookup:
WithPerson<TEntity>(selector)andWithCredential<TEntity>(selector). The lookup stays within one access-model entity type, so two entity types that share a number never swap persons. This is the primary pattern; keep the untyped form only for a route whose entity type changes per event.IIdentityResolvergainsResolvePerson(entityType, id)andResolveCredential(entityType, id); their default implementations answer the untyped lookup. See Identity Resolution. - Installer reservations of panel memory positions. A device type with access synchronization and a ranged access-model entity type gets the generated property
reserved_device_memory; the Synchronization tab edits it, and the synchronization never assigns or clears a reserved position. Adapters write no code, butClearDeviceMemorymust delete only the positions inoccupied(RULE-061). See Installer Reservations. GetDeviceMemoryRange(typeId)reports the device memory a connected panel really has. The default is therange:fromaccess-model.yaml. The allocator, the initial cleanup and the occupancy report use the returned range;nullrefuses synchronization and Reset until the device reports it; a range outside the declared one throwsInvalidOperationException. See Device Memory Range.ProtocolChannelOptions.AdaptiveQuietTimewidens the quiet time while the device struggles.new AdaptiveQuietTime(Max, RecoveryTransactions)doublesQuietTimeBeforeSendafter every response timeout that leads to a retransmit and every busy reply, up toMax, and halves it afterRecoveryTransactionsclean first-attempt answers, down to the floor. The floor must be positive; a zeroQuietTimeBeforeSendwithAdaptiveQuietTimethrowsArgumentOutOfRangeExceptionwhen the channel is created. Default:AdaptiveQuietTime.Default(max 1 s, 50 clean answers);nullkeeps the quiet time fixed. See Adaptive quiet time.
Changed¶
- A second command with the same target on the same function fails at once while the first is in flight.
ExecuteCommand(event-confirmed, immediate and state-confirmed, the overloads with a target state) claims the target before it sends; a second command with that target getsDeviceCommandResult.CommandInProgresswith the state resource key, sends nothing and publishes nopq.event.technical.command.failed. The device confirms one change with one message, so one of two waiting commands failed after the 30 s confirmation window, and sometimes both (Millenium night run 2026-11-17, finding C). A command with another target is not refused. Adapters need no change. - A status poll never overwrites a newer status. The scheduler numbers each poll when it begins, before it reads the device; every status write outside a poll (an event, a confirmed command, a
StatusBatchfrom a command) numbers the function it writes. A poll result for a function written after the poll began is dropped for that function only, and the next poll brings it. Before, a poll that read the device just before a command was confirmed wrote the old state over the confirmed one, and the next command on the element answeredAlreadyInTargetState(lab 2026-11-17, Millenium). Adapters write no code. - A confirmed eviction forgets the record's mapping. When the upload on the free slot then fails, the next full synchronization uploads the record again and repoints the records that reference it. Before, the mapping kept the emptied slot and the next synchronization planned nothing, so a card could point at an empty list (lab 2026-11-17, Millenium). Adapters write no code.
- A command whose target already is in the requested state publishes no
pq.event.technical.command.failed. The operator still gets the command result with reasonAlreadyInTargetState, now also the constantDeviceCommandResult.AlreadyInTargetState. Adapters that return this reason themselves need no change. IPersistentSettings<T>andIEventCursor<TKey>taken in a Thing constructor are keyed by that Thing's ownDeviceId. The generated tree builder readsdevice_idbefore it creates the Thing (TreeServiceProvider.ForDevice), so sibling Things get their own object and record, and a Thing and its router asking for the same type share one instance. Records stored under the parent key are not read. A Thing that wants one document shared by its children takes it itself and hands it down throughIExtendedTypeResolver(Axxon OneAxxonDomain).- A published event counts as published once JetStream stored it.
Thing.PublishEvent(and every generated event method) completes after the JetStream acknowledgment, so a history cursor (SkipReplayed) advances only past stored events. A retryable publish error is retried until the event is stored; nothing is dropped after a fixed number of attempts. While NATS is unavailable, event publishing waits: NATS is a required component, and the device keeps its history until the adapter can store it. At stop, events not yet stored end the publish withOperationCanceledException, so the cursor stays before them and the device replays them after the restart. A stopped publisher also ends the publish withOperationCanceledException, never withfalse, so the router cannot take a refused event for a declined one. Only an event that can never be stored (serialization error, payload over the server limit) is dropped: the publish returnsfalse, the error is logged and the cursor passes it, so the history never sticks on it. A token passed toPublishEventwithdraws the event only while it is queued; once the publisher took it, the call waits for the outcome. Each event carries oneNats-Msg-Idfor every attempt, so a retry after a lost acknowledgment is stored once. Adapters change nothing. - A TCP connection whose frame parser holds more than 64 KiB without a complete frame is dropped and reconnected. A missing terminator, a damaged length field or another service on the port no longer makes the adapter buffer without limit; the warning names the byte count and the limit. Every frame of the adapters in this repository is below 1.1 KiB. An adapter with larger frames sets
TcpConnectionOptions.MaxUnparsedBytes. See TcpConnectionOptions. - A reset keeps the stored mappings until the initial cleanup succeeds.
ClearDeviceMemoryreceives a range position PQ wrote as its storedAddressMapping(withExternalId); other positions stay empty mappings with onlyDeviceAddress. The diff of that run ignores the stored mappings, and they are cleared after the cleanup succeeds. A cleanup that fails or loses the connection keeps them for the next run. Adapters that read onlyDeviceAddressare not affected. - The initial cleanup (first full synchronization, Reset) receives an installer-reserved position on which PQ stored a record, with that record: PQ wrote it, so it is PQ's and is cleared. An installer-reserved position without a record, and every position
GetReservedDeviceMemoryreturns (even with a stale record), stay out. Adapters write no code;ClearDeviceMemorystill deletes exactly the passed positions (RULE-061). - A
GetReservedDeviceMemorythat throws ends the synchronization as Failed withDeviceNotReadybefore any write, with no unfinished mark. Adapters write no code. - A changed reserved set no longer triggers an automatic Reset. The next full synchronization moves a PQ record off a newly reserved slot, or off a slot above a shrunk
GetDeviceMemoryRange, and uploads it on a free slot; records that reference it are uploaded again. A selective synchronization does not move records.IAddressMappingStore.GetReservedHashandSetReservedHashare removed. ProtocolChannelOptions.QuietTimeBeforeSenddefaults to 5 ms (was zero). It is the floor of the default adaptive quiet time. A chained request/reply cycle grows by up to 5 ms: about 10 % on a panel that replies in 50 ms. An adapter that sets the value explicitly is not affected.TimeSynchronizationdefaultsync_interval_minutesis 60 again. The 5 minutes from v1.21.0 apply no longer. An adapter that sets the value explicitly is not affected; GxySmart, Vista and Amico return to 60.
v1.21.0 — 2026-10-23¶
Added¶
ScenarioInfo.Tags. The scenario list fromIScenarioCatalogcarries the tags operators put on a scenario in PQ (lowercase, sorted, empty when none). Filter withs.Tags.Contains("..."). A tag change reloads the list and raisesChanged.==onScenarioInfocomparesDeviceIdsandTagsby reference. See IScenarioCatalog.
Changed¶
TimeSynchronizationdefaultsync_interval_minutesis 5 (was 60). An adapter that sets the value explicitly is not affected.
v1.20.5 — 2026-10-22¶
⚠ Breaking changes¶
ProtocolChannelOptions.FollowUpQuietTimeisQuietTimeAfterNoReplyFrame. The old property no longer exists, so an adapter that sets it fails to build. Migration: rename the property. The gap now also follows every other no-reply frame (sequence acknowledge, no-reply send), not only follow-up frames.ExclusiveSessiongives its operation a session handle. The operation is(session, ct) => ...and sends throughsession.Send(...); the handle sends one frame at a time and stops working when the session ends. Breaks: the overloads without a handle are[Obsolete]build errors, and a plainSendorSendBulkinside an active session throwsInvalidOperationException. Migration: change the operation signature, send throughsession.Send, pass the session to inner read methods. See 0002 — Exclusive session: explicit session handle.
Added¶
- Declarative
minimum_firmwareon a device type. List the lowest supported firmware per version series, for exampleminimum_firmware: ["6.04", "7.04"]. The generator declares the eventpq.event.technical.firmware.unsupported(Warn) and emitsReportFirmwareVersion(string version)on the Thing. Call it after reading the firmware version in the connect path. A non-numeric version fails the build with PQA002. See Minimum Firmware. QuietTimeBeforeSendonProtocolChannelOptionsandFrameBase. The channel waits this quiet time on the line before every frame it writes. A frame overrides the channel value by returning aTimeSpanfromFrameBase.QuietTimeBeforeSend;nullkeeps the channel value. Default: no gap. See TCP Transport.
Changed¶
- A response timeout retransmits the frame before the connection is lost. After a timeout the channel writes the same frame again, twice by default (
ProtocolChannelOptions.TimeoutRetries = 2), each attempt with a fresh timeout and the normal quiet time. The connection counts as lost only after the last attempt times out, so a lost-connection verdict takes up to three timeouts. Requests withTimeoutIsExpectedare written once. Adapter check: setTimeoutRetries = 0to keep disconnect on the first timeout, for example when a command must never reach the device twice. - A failed initial cleanup aborts the access sync. When a
ClearDeviceMemorycommand fails on the first full sync or a reset, the sync ends as Failed with reasonInitialCleanupFailed. The device is not marked initialized and nothing is uploaded onto the uncleared panel. Only an operator re-run retries; a connection loss still resumes after reconnect. Adapter check: a clear command throws only when the device was not cleared, and treats a record that does not exist as success.
v1.20.4 — 2026-10-20¶
Fixed¶
- Access and antipassback sync resumes after a lost connection. A sync cut off by a connection loss or an adapter stop restarts on its own after reconnect (up to 3 attempts per device). No adapter change needed.
- A multi-command entity is marked synced only after its last command succeeds. After an interruption, the next sync rewrites the whole entity instead of skipping a half-written one.
v1.20.3 — 2026-10-19¶
No changes to the adapter surface.
v1.20.2 — 2026-10-18¶
Added¶
- Build error PQ0003 catches an ambiguous constructor at build time. A device, function, command handler or
DeviceAdapterclass with more than one public constructor now fails the build instead of failing at device start. Keep a single public constructor, or mark the one the framework uses with[ActivatorUtilitiesConstructor]. See PQ0003. sourceIdon fire intervention events.pq.event.fire.intervention.started(T1) andpq.event.fire.intervention.extended(T2) accept the optional parametersourceId. Set it to the zone or detector whose alarm opened the window, so a countdown bound to it can run.
v1.20.1 — 2026-10-07¶
No changes to the adapter surface.
v1.20.0 — 2026-10-07¶
No changes to the adapter surface.
v1.19.1 — 2026-10-06¶
Added¶
BeforeTransformandAfterTransformhooks in the generatedAccessSynchronizationBase. OverrideBeforeTransformto read device state (for example a PIN-length mode) beforeTransformruns; returnfalseand the sync fails as "device not ready" before anything is written to the device. See Device state around Transform.- Command
pq.command.scenario.notify. The server tells the adapter that a PQ scenario fired (scenario name and id, plus the persons and devices named by the triggering events). Declare a handler to forward it to the external system. See Scenario notify command. EntityRefandEntityRef[]command parameter types in adapter YAML; the generated command record and dispatcher accept them. See Parameterized commands.- Optional device-type key
passage_point. Marks a type that can get an Entry/Exit role in a space (antipassback, occupancy counting). See Passage points.
Changed¶
- Reader device types are passage points by default. A type with the
Readerfunction getspassage_point: trueunless the YAML says otherwise; setpassage_point: falseon a reader that must not get an Entry/Exit role. See Passage points.
v1.19.0 — 2026-10-02¶
Added¶
- Capability
scenarios: true. Declared undercapabilities:inadapter-registration.yaml, it makesIScenarioCataloginjectable: read the PQ correlation scenarios withGetScenarios()(disabled ones included) and react to itsChangedevent. See IScenarioCatalog.
Changed¶
- PQC203 (warning) also reports events built with the generated
PqEvent.*builders, not onlyEventBuilder.Event(...). Declare the event underevents:on the device type and call the generated method on the Thing. A build that treats warnings as errors fails on hand-builtPqEventcalls. See PQC203. description,manufacturerandversionfromadapter-registration.yamlare reported to the platform when the adapter connects. Set them to the device vendor and your adapter version; a missing value shows as "Protequ s.r.o" / "1.0.0". See Top-level structure.
v1.18.0 — 2026-09-28¶
No changes to the adapter surface.
v1.17.5 — 2026-09-25¶
No changes to the adapter surface.
v1.17.4 — 2026-09-23¶
Added¶
FireControlOutputtest (revision) state. The function gains the statefire.testand the actionsFireControlTestStarted(→fire.test, emitspq.event.fire.test.started) andFireControlTestEnded(→control.off, emitspq.event.fire.test.completed), so an adapter can report an output under test.
v1.17.3 — 2026-09-22¶
No changes to the adapter surface.
v1.17.2 — 2026-09-21¶
No changes to the adapter surface.
v1.17.1 — 2026-09-21¶
No changes to the adapter surface.
v1.17.0 — 2026-09-21¶
⚠ Breaking changes¶
lpr_cameracategory renamed tovca_camerain theadapter-registrationschema. Breaks: anadapter.yamlthat declarescategory: lpr_camerano longer validates. Migration: change the category tovca_camera.- Unknown keys in adapter YAML are rejected. Breaks: a misspelled or obsolete property in
adapter-registration.yaml, the functions, access-model or commands YAML fails the build with PQA002 (error) instead of being silently ignored. Migration: remove or correct the key the diagnostic names. - TCP transport no longer takes a device address. Breaks:
ConnectChannel(address, host, port, …),Disconnect(address),GetChannel(address)and the parameterlessDisconnect()/GetChannel()onSingleTcpTransportBaseare gone, and a TCP transport withaddress_typealways generatesSingleTcpTransportBase. Migration: callConnectChannel(host, port, router, ct), keep the returned channel, and disconnect withawait channel.Disconnect(). FrameBase.IsUnsolicitedremoved. Breaks: an adapter frame that overrides it no longer compiles. Migration: returnMatchResult.OutOfBandfromMatchResponsefor frames the device pushes on its own.ProtocolChannel.TcpConnectionremoved. Breaks: code that wrote raw bytes throughchannel.TcpConnection.Write(…). Migration: usechannel.SendOutOfBand(frame, ct)(orSendOutOfBandinTcpProtocolBase).- A
customtransport is single-device; several devices per transport needmultiplex. Breaks: a custom transport that binds routers by address (Bind/Resolveper device) generates a single-device base, so every device shares one router and events land on the wrong device with no error. Migration: settransport: type: multiplexinadapter-registration.yaml; single-device custom transports need no change. See 0001. PlaybackRelayRegistry.AddandCleartake the owning device. Breaks:Add(transactionId, relay)andClear()no longer compile. Migration: callAdd(device.DeviceId, transactionId, relay)andClear(deviceId).
Added¶
multiplextransport type (schema enumtcp/custom/multiplex) with base classesMultiplexTransportBase<TAddress, TEvent>(routes several devices by address) andSingleDeviceTransportBase<TAddress, TEvent>(one device, no address bookkeeping).MatchResult.OutOfBand— return it for a frame the device may send at any time (poll, heartbeat, push). The channel hands it to the unmatched-frame handlers without a warning and keeps waiting for the reply.SendOutOfBand(frame, ct)onProtocolChannelandTcpProtocolBase— writes straight to the wire, bypassing the request queue; use it for teardown frames and replies to device-initiated frames.ProtocolChannel.Disconnect(), and an optionalparserargument onConnectChannelso an adapter can keep per-connection parser state (for example a session cipher).- Inline string length in YAML property types:
pin: string[4](exact) orpin: string[4, 6](range), in the access model and in function properties. The framework drops out-of-range values before upload and reports them asValueOutOfRange. - PQA033 (warning): an access-model
pin: stringproperty without a length warns. The warning does not fail a build with warnings-as-errors. - Diagnostic help pages on docs.protequ.com for PQA001–PQA010, PQA014, PQ0001, PQ0002 and TD001–TD003; every PQA, PQC, PQ and TD diagnostic links to its page.
QrCodecredentials reach access synchronization as the bare decoded text, likePinandLicensePlate; no image is uploaded.
Changed¶
MatchResult.Continueno longer drops the connection; the channel delivers the frame to the unmatched-frame handlers and keeps waiting.- Logs written inside a device tree carry
PanelIdandPanel(name plus short id), so one filter on the panel catches the whole tree.
Fixed¶
- One device disconnecting no longer tears down the playback relays of the adapter's other devices.
- Recorded-video playback no longer stays blank after the stream reconnects: a reopened session resumes from the last requested position, and a closing session no longer blocks its reconnecting viewer.
v1.16.0 — 2026-09-17¶
Added¶
FrameBase.IsUnsolicited— override it totrueon frames the device pushes on its own. The channel then does not match them to a pendingSend; it delivers them on the unmatched path so the adapter can decode them. Defaults tofalse, existing frames unchanged.lpr_cameracategory in theadapter-registrationschema — for a channel whose product is licence-plate recognition. An ordinary video channel stayscamera.
v1.15.6 — 2026-09-13¶
No changes to the adapter surface.
v1.15.5 — 2026-09-11¶
Fixed¶
- Events recovered from a device's history (offline backfill, history poll) now carry the time the event actually happened in the audit, instead of the moment they were read back. Live events were already correct.
v1.15.4 — 2026-09-10¶
Added¶
- New remote-operator event variants:
pq.event.intrusion.bypassed.remote,pq.event.intrusion.bypassed.cleared.remote,pq.event.intrusion.alarm.acknowledged.remote,pq.event.safety.emergency.evacuation.remote,…evacuation.cleared.remote,…lockdown.remote,…lockdown.cleared.remote. - New function actions for remote operator control across the intrusion and safety functions:
EvacuationRemote,EvacuationClearedRemote,LockdownRemote,LockdownClearedRemote,BypassedRemote,BypassCancelledRemote,AlarmAcknowledged,AlarmAcknowledgedRemote. - New public members on
RtspPlaybackSession:ServedVideoTrack(the track the session settled on) andIsOpen.
Changed¶
- Video preset events
pq.event.video.preset.activatedand…preset.storednow accept an optionalpersonId, so an operator-issued preset command can be attributed. Adapters that do not pass it are unaffected.
v1.15.3 — 2026-09-04¶
Added¶
- New
fire.disabledstate for fire panels — status only. The disabled address publishes its ownpq.event.fire.address.disabled, so the panel-level state does not duplicate it.
v1.15.2 — 2026-09-03¶
No changes to the adapter surface.
v1.15.1 — 2026-09-02¶
Added¶
- New
AuthenticatedProtocolfunction for devices with an authenticated application session, exposing statesprotocol.authenticated,protocol.authentication.failed,protocol.handshake.failed(plus matchingpq.state.protocol.*statuses). - New
access_sync_enabledproperty (bool, defaulttrue) on theAccessSynchronizationfunction. Turn it off and the adapter stops writing cardholders, credentials, holidays and antipassback to the panel; switch it back on and run Reset to discard what the panel gained meanwhile. - Property types may now be declared as whole-type arrays (e.g.
guid[],card_format[]) and resolve to a typed array. An array whose element type is unknown is now rejected at build time.
Fixed¶
- The
pq.event.device.unresolved(unknown/unconfigured device) event now accepts the optional attribution paramsunresolvedAddress,personId,credentialId,credentialInfo,rawData— so an unknown-card event can carry the person, credential and raw card data.
v1.15.0 — 2026-08-31¶
No changes to the adapter surface.