In the localization system of wireless sensor networks,due to differences in quality control and external environment,empirical value of attenuation model cannot meet the current environment,the result may lead to low positioning accuracy and non-repeatable experiment. In this paper,the parameters of the model are fitted by the least square method,according to the reference nodes which send messages mutually close to the nodes to be located. All the reference nodes are sorted by their RSSI values,and the three nodes with the smallest RSSI values are selected to calculate the coordinates of the...