Patent ID: 9043335
Filing Date: 2015-05-26
Classification: G06F,H04M

Abstract:
1. A computer-implemented method for naming an electronic device, the electronic device comprising a gravity sensor, the method comprising: setting a hash table that comprises indices, each of the indices corresponding to a character string; controlling the electronic device to enter into a searchable state, and inserting a default name of the electronic device in a searchable device list; determining whether the default name of the electronic device needs to be changed when the electronic device is detected to be shaking using the gravity sensor; calculating a shaking angle of the electronic device according to detected coordinate values acquired from the gravity sensor, when the default name of the electronic device needs to be changed; acquiring a UNIX timestamp from the electronic device; calculating a hash value using the shaking angle, the UNIX timestamp, a number of the indices in the hash table, and a predetermined formula; determining an index that is the same as the calculated hash value, and determining a character string corresponding to the determined index; and renaming the electronic device using the determined character string.