| 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 , the proposed . Inputs and state: Delivered SoC telemetry and sampling times; completed uplink deliveries; current trace context; the defined memberships and 27-rule table. Cache stores usable-energy SoC (%) and its sampling time; is the sequence. Profile: ; ; , ; , , ; ; , normalized traffic , context . Delivered telemetry 1 Initialize and 2 On the first successful physical delivery of a target report: 3 (reported SoC, telemetry sampling time) 4 Record this report’s first successful delivery time Scheduled inference 5 At each opportunity : 6 Commit completed physical uplink observations through 7 If the gateway is available and is present with : 8 ; 9 10 Compute membership degrees for , , and 11 For each rule in the 27-rule table: 12 minimum of its three antecedent membership degrees 13 , for consequent 14 End for 15 16 (analytic continuous centroid) Period construction and dissemination 17 18 19 20 ; create command (identifier, , generation time , ) 21 Offer two blind copies of this command at and 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. |