Disclosure of Invention
The invention mainly solves the technical problem that the name of the radio frequency equipment and the name of a subscriber or an SIM card used by the subscriber can not be kept consistent in real time, and provides a mobile terminal and a method for managing the name of the radio frequency equipment by the mobile terminal, which can update the name of the radio frequency equipment in real time.
In order to solve the technical problems, the invention adopts a technical scheme that: a mobile terminal is provided, which includes a SIM card for storing user information; the SIM card management module is electrically connected with the SIM card and is used for managing the user information of the SIM card; the radio frequency equipment comprises a radio frequency chip, and the radio frequency chip is responsible for the work of the radio frequency equipment; and the radio frequency setting module is electrically connected with the SIM card management module and the radio frequency equipment and used for setting or updating the name of the radio frequency equipment according to the command of the SIM card management module, and the radio frequency equipment is Bluetooth equipment.
As a further improvement of the above mobile terminal, the SIM card includes a "local number" item that stores the subscriber number and the user name.
As a further improvement of the above mobile terminal, the SIM card management module includes a software interface, and the SIM card management module reads or writes the subscriber number and the user name to the SIM card through the software interface.
As a further improvement of the above mobile terminal, the name of the radio frequency device is consistent with the user name of the SIM card.
As a further improvement of the mobile terminal, the mobile terminal further includes a radio frequency operating module electrically connected to the radio frequency device and configured to send a name of the radio frequency device to a peripheral device.
In order to solve the technical problem, the invention adopts another technical scheme that: there is provided a mobile terminal including: the user identification chip is used for storing user information; the management module is electrically connected with the user identification chip and used for managing the user information of the user identification chip; the radio frequency equipment is electrically connected with the management module and is used for carrying out wireless communication; the radio frequency equipment is Bluetooth equipment; the name of the radio frequency equipment is consistent with the user name of the SIM card; the management module sets the name of the radio frequency equipment according to the user information of the user identification chip.
In order to solve the technical problem, the invention adopts another technical scheme that: a method for managing radio frequency equipment names by a mobile terminal is provided, which comprises the following steps: reading a local number item of the SIM card; acquiring a user name; judging whether the user name is empty, if so, ending, and if not, continuing; sending the user name to a radio frequency setting module; and the radio frequency setting module sets the user name as the name of the radio frequency equipment.
As a further improvement of the method for managing the names of the radio frequency devices by the mobile terminal, the radio frequency devices are bluetooth devices.
As a further improvement of the method for managing the name of the radio frequency device by the mobile terminal, when the user name in the SIM card is changed, the radio frequency setting module updates the changed user name to the name of the radio frequency device.
As a further improvement of the method for managing the names of the radio frequency devices by the mobile terminal, the user name change includes the situation that the same SIM card is replaced by different mobile terminals or the same mobile terminal is replaced by different SIM cards.
As a further improvement of the above method for managing the name of the radio frequency device by the mobile terminal, when a peripheral device needs to establish a connection with the radio frequency device, the radio frequency device sends the name to the peripheral device.
In order to solve the above technical problems, another embodiment adopted by the present invention is: a method for managing radio frequency equipment names by a mobile terminal is provided, which comprises the following steps: reading user information; setting the name of the radio frequency equipment according to the user information; the radio frequency equipment is Bluetooth equipment;
the SIM card chip is used for storing the user information;
the user information is a user name;
the name of the radio frequency equipment is consistent with the user name of the SIM card.
As a further improvement of the method for managing names of radio frequency devices by the mobile terminal, the step of reading the user information further includes: and starting the mobile terminal, and automatically acquiring user information according to a user identification chip in the mobile terminal.
The invention has the beneficial effects that: different from the prior art, the mobile terminal and the method for managing the name of the radio frequency equipment thereof update the name of the radio frequency equipment in real time according to the change of the name of the SIM card used by the user or the user through the SIM card management module, the radio frequency setting module and the radio frequency working module, so that the name of the radio frequency equipment and the name of the SIM card used by the user or the user are kept consistent in real time.
Detailed Description
Fig. 1 is a schematic diagram illustrating a connection manner of functional modules of a mobile terminal according to a preferred embodiment of the invention.
In this embodiment, the mobile terminal includes:
an SIM card (not shown) for storing user information, wherein the SIM card is a chip for storing identification data of a mobile terminal user, and meanwhile, the SIM card can also be used for storing user data information, such as short messages and contacts;
the SIM card management module 10 is electrically connected with the SIM card and is used for managing the user information of the SIM card;
a radio frequency device (not shown) including a radio frequency chip (not shown) for operating the radio frequency device;
a radio frequency setting module 11, electrically connected to the SIM card management module 10 and the radio frequency device, for setting or updating the name of the radio frequency device according to the command of the SIM card management module 10, and in addition, the radio frequency setting module is also responsible for functions such as visibility setting of the radio frequency device, which will not be described in detail herein;
a radio frequency working module 12 electrically connected to the radio frequency device, configured to send the name of the radio frequency device to a peripheral device (not shown), where of course, the radio frequency working module 12 is also responsible for normal operation of the radio frequency chip, including searching, establishing connection, file transfer, and the like between the radio frequency devices;
in the preferred embodiment of the present invention, the SIM card management module 10, the rf setup module 11 and the rf working module 12 are electrically connected in sequence.
In a preferred embodiment of the invention, the radio frequency device is a bluetooth device. Of course, other wireless communication devices, as well as radio frequency devices for long-distance signal transmission and short-distance signal transmission, may also be included.
In this embodiment, the SIM card includes a "local number" entry that stores the subscriber number and the user name. The entry of the "local number" item is different for different mobile terminals, and the entry is included in a phone book (e.g. a phone book- > option- > "local number") or in a setting item (e.g. a call registration- > "local number"). But the realization mode is basically consistent, the 'local number' item is one item of information stored in the SIM card, and the information can be read into the UI through the read-write protocol of the SIM card and displayed to the user, or the content needing to be written in is stored to the corresponding position of the SIM card.
In this embodiment, the SIM card management module 10 includes a software interface, and the SIM card management module 10 reads or writes the user number and the user name to the SIM card through the software interface. When the SIM card management module 10 writes information, the following steps are included: calling the software interface; the structure body of the 'local number' item is returned after calling, and the structure body comprises a character string of a user name and a number character string of a user number; and calling a write operation software interface, taking the content to be updated as a parameter, and covering the structure of the original 'local number' item in the SIM card by the software interface with the new structure content so as to update the 'local number' item in the SIM card.
In addition, the SIM card management module 10 is also responsible for providing the user information of the SIM card, such as the user number and the user name, to the radio frequency setting module 11, and can notify the radio frequency setting module 11 of the action of updating the name of the radio frequency device in time after the user name is changed. So that the name of the radio frequency equipment is consistent with the user name of the SIM card. The specific process comprises the following steps: when a user edits a character string of a user name in a 'local number' item and calls a storage interface, after a new 'local number' item is stored in the SIM card, the SIM card management module 10 first judges whether the storage is successful, if the storage is successful, calls a notification interface (for example, void my _ number _ changed _ notify (change new _ name)) to notify the radio frequency setting module 11, and transfers a new user name character string (for example, change new _ name) in the notification interface to the radio frequency setting module 11, so as to update the name of the radio frequency device.
Please refer to fig. 2, which is a schematic diagram illustrating a connection manner of functional modules according to another embodiment of the mobile terminal of the present invention.
In this embodiment, the mobile terminal includes:
a user identification chip 20 for storing user information;
a management module 21 electrically connected to the user identification chip and configured to manage user information of the user identification chip;
the radio frequency equipment 22 is electrically connected with the management module and is used for carrying out wireless communication;
the management module 21 sets the name of the rf device 22 according to the user information of the user identification chip 20.
In this embodiment, the subscriber identity module 20 includes a SIM card, a T card (T-Flash card), and other chips that can be used for identification.
In this embodiment, the user information includes information such as a user name or a user number, which may be manually input in advance, or preset from other ways as needed, so as to be read and used by the management module 21.
In this embodiment, the management module 21 may be a management module of the user identification chip 20, or may also be a CPU or a baseband control chip of the mobile terminal, so as to manage information interaction between the user identification chip 20 and the radio frequency device 22. The management module 21 reads user information from the user identification chip 20 and sets the name of the rf device 22.
In this embodiment, the rf device 22 may be a bluetooth device, but is not limited thereto, and may also include other devices for performing wireless communication. The rf device 22 is mainly responsible for searching, matching, establishing connection in wireless communication, and performing functions such as information interaction or data sharing. The radio frequency device 22, when searched, is used to send a name to the peripheral device for the other party to select a match to connect to.
Please refer to fig. 3, which is a flowchart illustrating a preferred embodiment of a method for managing names of radio frequency devices by a mobile terminal according to the present invention.
The method for managing the radio frequency equipment name by the mobile terminal comprises the following steps:
reading a local number item of the SIM card;
acquiring a user name;
judging whether the user name is empty, if so, ending, and if not, continuing;
sending the user name to a radio frequency setting module;
and the radio frequency setting module sets the user name as the name of the radio frequency equipment.
By the method, the name of the radio frequency equipment is consistent with the user name in the local number item in the SIM card.
Referring to fig. 1, in this embodiment, a software interface of the SIM card management module 10 reads the "local number" item from the SIM card, and returns a structure (including a user name and a character string of a user number) of the "local number" item, then, the SIM card management module 10 detects whether the user name in the structure is empty, if the user name is empty (i.e., the user is not set), the processing is not performed, if the user name is not empty, a notification interface of the radio frequency setting module 11 is called to notify the radio frequency setting module 11 to update the name of the radio frequency device, meanwhile, the user name is sent to the radio frequency setting module 11 in a parameter manner, then, the radio frequency setting module 11 updates the user name to be a new name of the radio frequency device, and saves the new name of the radio frequency device in a file system of the mobile terminal.
In this embodiment, the radio frequency device is a bluetooth device. Other remote or short-range wireless communication devices may be included, as would be understood by those skilled in the art, and will not be described in detail.
Please refer to fig. 4, which is a flowchart illustrating a method for managing names of radio frequency devices by a mobile terminal according to another embodiment of the present invention.
In this embodiment, the method for managing names of radio frequency devices by a mobile terminal includes:
reading user information;
and setting the name of the radio frequency equipment according to the user information.
In this embodiment, the user information is generally stored in a chip, including a SIM card chip, or may be a plug-and-play chip. The user information includes a user name, a user number, and the like, which are used to identify the user.
In this embodiment, the CPU, the baseband control chip, or other management module processes information interaction between the user information and the name of the radio frequency device, and can immediately update and set the name of the radio frequency device according to the read user information, so that the user information and the name of the radio frequency device are kept consistent.
In this embodiment, the radio frequency device is a bluetooth device, and may also be other wireless communication devices.
In this embodiment, the step of reading the user information further includes: and starting the mobile terminal, and automatically acquiring user information according to a user identification chip in the mobile terminal.
Please refer to fig. 5, which is a schematic diagram of a workflow of changing a user name of a SIM card and updating a name of a radio frequency device of the mobile terminal according to the present invention.
Referring to fig. 1, in the present embodiment, the process of updating the user name of the SIM card and updating the name of the radio frequency device includes:
inputting a new user name through the UI;
writing a new user name and the user number of the SIM card into the "local number" item in the SIM card through the SIM card management module 10;
informing the radio frequency setting module 11 to update the name of the radio frequency device, and sending the new user name to the radio frequency setting module 11;
the radio frequency setup module 11 updates the name of the radio frequency device with the user name.
By the method, the name of the radio frequency equipment can be updated in real time according to the setting of the user.
In this embodiment, when the user name in the SIM card is changed, the radio frequency setting module 11 updates the changed user name to the name of the radio frequency device. The user name change comprises the condition that the same SIM card is replaced by different mobile terminals or the same mobile terminal is replaced by different SIM cards.
In this embodiment, when a peripheral device needs to establish a connection with the radio frequency device, the radio frequency device sends the name to the peripheral device.
Compared with the prior art which needs to manually set the name of the radio frequency equipment, the invention binds the name of the radio frequency equipment with the user name in the SIM card, when the user searches and matches the radio frequency equipment, the radio frequency working module 12 reads the name of the radio frequency equipment from the file system of the mobile terminal through the radio frequency setting module 11 and sends the name to the searcher, thus, the searcher can list the radio frequency equipment named by the user name in the equipment list and quickly judge the peripheral equipment which is expected to establish connection at present through the name of the radio frequency equipment, thereby improving the use efficiency of the radio frequency equipment; meanwhile, the invention can also automatically update the name of the radio frequency equipment after the SIM card is replaced (namely, the user is replaced) or the name of the user in the SIM card is changed. The invention facilitates the radio frequency equipment connection of the user and increases the user experience.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.