1. A method for reception of a spread spectrum signal, the method comprising steps of: receiving a transmitted signal with an unknown phase; detecting an energy of the transmitted signal and producing observations of bits from the energy of the transmitted signal; determining a probability of signal detection in the step of detecting given a probability of false alarm and a signal to interference and noise ratio; and conducting post-detection integration over multiple observations of bits in the transmitted signal to adjust the probability of signal detection and to acquire a code of the transmitted signal, wherein said step of detecting comprises defining a variable D quad (t) that can be used as a test statistic for quadratic detection where D quad ⁡ ( t ) = ∑ i = 0 L - 1 ⁢ Z ⁡ ( iT ) L is a number of the observations of bits, Z is the energy of the transmitted signal, i is an integer value, T is a time period for a data symbol and is equal to m*T c where m is a spreading ratio and T c is a chip period, such that energy of multiple bits in a packet are used to provide the observations of bits.