The clustering routing method for heterogeneous
cognitive wireless sensor networks relates to the technical field of
wireless sensor networks, and solves the problems of
high energy consumption, short network life cycle, shortage of spectrum resources and hardware constraints in
wireless sensor networks, including random deployment of cognitive nodes and ordinary nodes; judge whether the remaining energy of cognitive nodes is greater than E max , if it is greater than E min , if it is less than , exit, otherwise, randomly select a number between [0, 1], compare the number with the probability of being elected as a cluster head, if it is less than, exit, otherwise, it becomes a cluster head; non-cluster head nodes according to the free transmission mode and the energy
amplification factor in the
multipath transmission mode, its distance to the
base station and its distance to the cluster head to select the cluster head to join the cluster, and the probability of the cluster head being selected is determined according to the number of vacant channels and the edge degree. The invention reduces the
energy consumption of the network, prolongs the life cycle of the network, relieves the spectrum shortage and avoids the problem of high hardware demand.