Skip to main content
. 2026 Oct 2;26(19):6257. doi: 10.3390/s26196257
Algorithm 2. Gateway inference and reporting-period command generation
Scope and output: Full-input controller for one target node. Each valid opportunity produces a sequenced period command Tcmd, the proposed Tsync.
Inputs and state: Delivered SoC telemetry and sampling times; completed uplink deliveries; current trace context; the defined memberships and 27-rule table. Cache K=SK,τK stores usable-energy SoC (%) and its sampling time; s is the sequence.
Profile: t∈Tg={300m−1 s:m=1,2,…}; Tage=7200 s;
W=3600 s, rref=1/60 Hz; Tmin=60 s, Tcap=3600 s, q=0.001 s;
Ω=[60,3600] s; S∈[0,100], normalized traffic N∈[0,1], context C∈[0,1].
Delivered telemetry
1 Initialize K←missing and s←0
2 On the first successful physical delivery of a target report:
3  K←(reported SoC, telemetry sampling time)
4  Record this report’s first successful delivery time
Scheduled inference
5 At each opportunity t∈Tg:
6  Commit completed physical uplink observations through t
7  If the gateway is available and K is present with t−τK≤Tage:
8   S←SK; C←CurrentContextt
9   N←min 1,DeliveredCount(t−W,t]/Wrref
10   Compute membership degrees for S, N, and C
11   For each rule r in the 27-rule table:
12   αr← minimum of its three antecedent membership degrees
13   gru←min αr,μDru, for consequent Dr
14   End for
15   gu←min 1,∑r=127gru
16   Traw←∫Ωu gu du∫Ωgu du (analytic continuous centroid)
Period construction and dissemination
17   T0←clipTraw,Tmin,Tcap
18   Tenv←T0+μLowSTcap−T0
19   Tcmd←clip q⌊Tenv/q⌋,Tmin,Tcap
20   s←s+1; create command (identifier, s, generation time t, Tcmd)
21   Offer two 0.04 s blind copies of this command at t and t+0.05 s
22  Else: generate no command at this opportunity
23  End if
24 End
Data contract: Telemetry is sampled at actual target TX start. DeliveredCount includes successful background deliveries and the first successful delivery of each target report. CurrentContext returns the current prescribed trace value.
Evaluation contract: Inputs are finite and in the stated domains; the centroid has positive finite area and finite first moment. An invalid evaluation raises FLCError. The Low-SoC envelope follows the centroid and clipping; quantization floors to 1 ms.
Node interface: After the matching RX service completes, channel-successful copies reach Algorithm 1 for validation and subsequent application at an operational nominal boundary.