NOVELTY - A wastewater treatment system (100) comprises a bioreactor (112) having a first (110) and a second (120) compartment; aeration blower (150) for periodically aerating at least one of the first compartment and the second compartment; and a membrane bioreactor (130) fluidly connected to at least one outlet of the first and second compartment. The aeration blower comprises a jet assembly (114) positioned in the first and the second compartment. The system further comprises a controller in communication with the jet assembly in first and second compartment.    USE - For treating wastewater (claimed) from a residential or community source.    ADVANTAGE - The system and controller provides a versatile unit having multiple modes of operation, which can respond to multiple inputs to increase the efficiency of the wastewater treatment system. Cycling between anoxic and aerobic conditions within the same basin/compartment provides advantages over batch or sequential batch operations, which require transfer of basin contents from one basin to another. The method and system reduces the number of basins required by cycling air among basins in order to switch between anoxic and aerobic conditions. The continuous operation of a single blower to supply air to at least two basins reduces energy costs.    DETAILED DESCRIPTION - INDEPENDENT CLAIMS are included for the following:    (1) treating wastewater involving providing wastewater to compartments of bioreactor, and altering between anoxic and aerobic conditions within the same compartment; and    (2) a computer-readable medium having stored computer-readable signals that define instruction that, as a result of being executed by a computer, instruct the computer to control a wastewater treatment system.    DESCRIPTION OF DRAWING(S) - The figure shows a schematic diagram of the system.    treatment system (100)    first compartment (110)    biological basin/bioreactor (112)    jet assembly (114)    wastewater inlets (116)    second compartment (120)    membrane basin/membrane bioreactor (130)    aeration blower. (150)