A method and system for wireless communication are disclosed. The method comprises: the master device generates a sequence code through a specific encoder and transmits the sequence code to each slave device continuously within a preset period according to the communication demand, wherein the specific encoder is a feedback shift register constructed by a specific polynomial, of which the coefficients and the order are in correlation with the communication demand while all of the coefficients and initial values are not equal to 0 at the same time; the preset period is greater than or equal to the sum of a sleeping period and a detecting period of the slave device, which constitutes a sleeping-and-waking cycle; the slave device receives a continuous section of the sequence code in the detecting period, decodes the sequence code through a decoder corresponding to the encoder, and performs corresponding operation according to the decoding result.
Interactive talking toy