— This paper studies a closed loop linear control system. The sensor computes a state estimate and sends it to the controller/actuator in the receiver block over a randomly fading packet dropping link. The receiver sends an ACK/NACK packet to the transmitter over a link. It is assumed that the transmission energy per packet at the sensor depletes a battery of limited capacity, replenished by an energy harvester. The objective is to design an optimal energy allocation policy and an optimal control policy so that a finite horizon LQG control cost is minimized. It is shown that in case the receiver to sensor feedback channel is free of errors, a separation principle holds. Hence, the optimal LQG controller is linear, the Kalman filter is optimal and the optimal energy allocation policy is obtained via solving a backward dynamic programming equation. In case the feedback channel is erroneous, the separation principle does not hold. In this case, we propose a suboptimal policy where the...