# Patent

## Title
Access to information on a mobile terminal from a remote terminal

## Abstract

Method and system for managing information stored and/or services configured in a mobile terminal from a remote terminal connected to a data network, wherein the mobile terminal comprises a web server having an API defined for each piece of information and for each service it provides, characterized by: requesting from a web server, from a remote terminal comprising a web browser, the creation of at least one web page configured to manage a piece of information stored or a service configured in a mobile terminal; making an HTTP request from the web server to the mobile terminal in accordance with said at least one API, wherein said HTTP request comprises an identifier of the information or service to be managed; sending an HTTP response from the mobile terminal to the web server in accordance with said at least one API; downloading in the remote terminal from the web server the at least one web page designed to manage said information or service of the mobile terminal.

## Background
FIELD OF THE INVENTION
The present invention is applied to the field of mobile telecommunications networks, more specifically, to the remote access to the information stored in a mobile telephone.
BACKGROUND OF THE INVENTION
The memory of the mobile telephone and its SIM card currently store personal data of the user and mobile terminal state information. Personal data of the user stored in the memory of the mobile telephone and the SIM card is understood to be contacts, notes, calendar, images, sounds, videos, short messages (SMSs), multimedia messages (MMSs) and electronic mail (emails). The mobile terminal state information comprises, among others, the incoming and outgoing calls log, the battery level of the mobile telephone, the coverage level of the mobile terminal and the mobile telephone state (normal, high, silent, vibration only). The mobile telephone offers a variety of services, such as making calls, sending SMSs, MMSs and emails, incoming call diversion and photographing and recording videos with the camera of the mobile telephone. All this information and services are accessed from the mobile telephone itself.
In addition, a mobile terminal is always connected to the circuit domain by means of GSM, UMTS networks or the like. This circuit domain allows it to make and receive calls, send and receive SMSs and USSD (Unstructured Supplementary Service Data) messages. The data or packet domain, also called the internet, is not always accessible in the mobile terminal. The technology for connecting to the packet domain can be of very different types such as GPRS, EDGE, UMTS, WiFi, WiMAX, among others. The connection to the data or packet domain is carried out by the initiative of the user or mobile terminal due to an external event or when the mobile telephone has WiFi or WiMAX coverage. This implies that direct requests cannot be sent to the mobile terminal from the data or packet domain, but rather it is the mobile terminal which makes the requests to the packet domain. Furthermore, once the mobile terminal is connected to the packet domain, the location of the mobile terminal cannot be known for certain by means of its IP or URL address, due to the fact that there is no standardized or commonly accepted system for identifying and consequently locating a mobile telephone in the packet domain.
In addition, web servers are known, which are programs responsible for accepting HTTP (Hypertext Transfer Protocol) requests from clients, normally web browsers, and providing them with the HTTP responses together with the data contents, which are usually web pages. Web servers are normally large computers capable of providing multiple HTTP responses.
Security and authentication SSL (Secure Socket Layer) applications such as those described in RFC 2617, entitled HTTP Authentication: Basic and Digest Access Authentication, are also known.
In recent years, Representational State Transfer or REST has also been developed, which is a software architecture technique for distributed hypermedia systems such as the World Wide Web. The term REST is generally used to describe any simple web interface transmitting specific data on HTTP without an additional messaging layer or session tracking.
The personal data of the user stored in the memory of the mobile telephone and its SIM card and the mobile terminal state information can currently only be accessed, added, deleted and shown directly from the mobile telephone using the screen of the mobile telephone, the keys, the scroll wheel, pencils or pointers or even voice commands. The same occurs with services offered by a mobile telephone, which can only be executed from the mobile telephone itself.
As regards web servers, although several mobile telephones have a web server, it is rather unusual that a web server of a mobile telephone is capable of providing HTTP responses, mainly due to the lack of permanent connection to the data or packet domain and due to the difficulty of identifying and locating the mobile terminal in the packet domain. For example, U.S. patent application US2001/0046851 describes a mobile terminal including a web server through which the mobile terminal connects to a remote management terminal. The purpose of the web server in the mobile terminal is to allow the latter to control a device connected thereto.
Several methods and systems for attempting to remotely manage a mobile telephone have been proposed to date. For example, European patent application EP1542432 describes a system in which a web server housed in a data network receives HTTP requests from a mobile telephone in order to update data relating to the mobile telephone which are stored in the web server of the data network.
However, this process for requesting information from the web server requires the presence and intervention of the user of the mobile telephone and the direct handling thereof.
SUMMARY OF THE INVENTION
The object of the present invention is to remotely manage the different functionalities, services and stored information of a mobile telephone without needing to physically handle the same.
To that end the present invention provides an architecture which allows obtaining, adding and deleting personal data stored in the mobile terminal and its SIM card and mobile terminal state information; and executing the mobile terminal services from any device connected to a data or packet network, also called Internet. Thus, a web server serves a web page to a web browser of the remote terminal connected to Internet so that the user manages his or her mobile telephone through said web page. This web server receives through the web page the user's commands and obtains, adds and erases the information and orders executing the services by directly accessing a web server housed in the mobile terminal. A user of a mobile telephone or terminal can thus interact with his or her mobile terminal from any place and any other device with more features (for example, a larger screen) instead of having to do it directly on the small screen and minute keys of the mobile telephones.
Thus, one of the aspects of the present invention relates to a method for managing information stored and/or services configured in a mobile terminal from a remote terminal, in which the mobile terminal is configured to connect to a mobile communications network and comprises a web server having an API defined for each piece of information and service provided by the mobile terminal, and in which said remote terminal has access to a data network. The method comprises: requesting from a web server, from a remote terminal comprising a web browser, the creation of at least one web page configured to manage at least one piece of information stored or one service configured in a mobile terminal; making an HTTP request from the web server to the mobile terminal in accordance with said at least one API defined in the web server of the mobile terminal, wherein said HTTP request comprises an identifier of said information or service to be managed; sending an HTTP response from the mobile terminal to the web server in accordance with said at least one API defined in the web server of the mobile terminal; downloading in the remote terminal from the web server the at least one web page configured to manage said information stored or service configured in the mobile terminal.
The HTTP request from the web server to the mobile terminal preferably comprises the steps of: making an HTTP request through the data network from the web server to a gateway capable of locating the mobile terminal which is connected to a mobile communications network; and sending the HTTP request to an IP connections manager of the mobile terminal.
The HTTP response from the mobile terminal to the web server preferably comprises the steps of: sending an HTTP response in accordance with said at least one API defined in the web server of the mobile terminal from an IP connections manager of the mobile terminal to a gateway through the mobile communications network; and sending that HTTP response in accordance with said at least one API defined in the web server of the mobile terminal from said gateway to the web server through the data network.
The HTTP request in accordance with the at least one API defined in the web server of the mobile terminal sent to the IP connections manager of the mobile terminal is sent to the web server by means of said HTTP request.
The HTTP request in accordance with said at least one API defined in the web server sent to the web server of the mobile terminal is in turn sent to a manager module which is chosen from: a module for managing personal data of the user, a module for managing the mobile terminal state information and a module for managing the mobile terminal services.
The method optionally further comprises a notification step for notifying the user whereby the user is offered one of the following options: permanently allowing the execution of the API, temporarily allowing said execution, permanently denying the execution of the API or temporarily denying said execution.
The information to be managed preferably relates to a resource which is chosen from one of the following groups of resources: personal data of the user, mobile terminal state information and mobile terminal services. With said resource an action is carried out which is chosen from one of the following groups of actions: actions relating to managing personal data of the user, actions relating to managing the mobile terminal state information and actions relating to managing mobile terminal services.
The identifier of the information or service to be managed comprised in the HTTP request comprises the URL of the information or service to be managed. Said URL preferably comprises the MSISDN of the mobile terminal.
Said information stored in the mobile terminal relates to a piece of information which is preferably chosen from one of the following groups: personal data of the user and mobile terminal state information. With said information an action is carried out which is chosen from one of the following groups of actions: actions relating to managing personal data of the user and actions relating to managing the mobile terminal state information.
The information stored in a mobile terminal is stored in the memory of the mobile terminal or in the SIM card thereof.
Said service configured in the mobile terminal relates to a service from the group of mobile terminal services. With said service an action is carried out which is chosen from the group of actions relating to managing mobile terminal services.
The HTTP request is made on a data channel which is set up in a signaling channel previously set up between the gateway and the IP connections manager of the mobile terminal.
The HTTP response is carried out on a data channel which is set up in a signaling channel previously set up between the gateway and the IP connections manager of the mobile terminal.
The signaling channel between both elements is preferably a TCP socket. The data channel between both elements is also preferably a TCP socket.
Another aspect of the present invention relates to a system comprising: at least one mobile terminal configured to be connected to a mobile communications network, in which said mobile terminal comprises a web server; at least one terminal configured to be connected to a data network, in which said terminal comprises a web browser; at least one web server connected to said data network. The terminal is capable of remotely managing at least one piece of information stored and/or one service configured in the mobile terminal by means of accessing at least one web page created in the terminal after downloading said information stored or service configured in the mobile terminal.
The system preferably further comprises a gateway capable of setting up a connection between the data network and the mobile communications network.



BRIEF DESCRIPTION OF THE DRAWINGS
For the purpose of aiding to better understand the features of the invention according to a preferred practical embodiment thereof and to complement this description, a set of drawings with an illustrative and non-limiting character is attached as an integral part thereof. In these drawings:
FIG. 1 shows the general architecture of the system according to an embodiment of the present invention.
FIG. 2 shows the architecture of the mobile terminal according to an embodiment of the present invention.
FIG. 3 shows the personal data of the user which can be stored in a mobile telephone or in its SIM card.
FIG. 4 shows the mobile telephone state information.
FIG. 5 shows the services which the mobile telephone can offer according to an embodiment of the present invention.
FIG. 6 shows the architecture of the permanent data connections manager according to an embodiment of the present invention.
FIG. 7 shows the structure of a remote terminal connected to a data network, through which it can connect to a permanent data connections manager according to the present invention.
FIG. 8 shows the structure of the access lists included in the mobile terminal according to the present invention.
FIG. 9 shows the signal flow for the remote execution of a REST API according to an embodiment of the present invention.
FIG. 10 shows the set-up of a permanent connection between a mobile terminal and the permanent data connections manager according to an embodiment of the present invention.



DETAILED DESCRIPTION OF THE INVENTION
In the context of the present invention, the following definitions must be taken into account:
An Application Programming Interface or API is a source code interface which a computer system or a program library provides and sets forth so that another computer program can execute service requests. It is the set of calls to a computer system or a program library offering access to its services from the processes and represents a method for achieving abstraction in the programming, generally, although not necessarily, between the lower and upper levels or layers of the software.
REST (Representational State Transfer) API is understood to be an API which is defined based on URLs (Uniform Resource Locators) and is invoked by means of HTTP without any messaging layer such as SOAP or session tracking with HTTP cookies. The Representational State Transfer (REST) is a style of software architecture for distributed hypermedia systems such as the World Wide Web.
Throughout this specification the term “comprises” and its derivatives must not be interpreted in an excluding or limiting sense, i.e., it must not be interpreted in the sense of excluding the possibility that the element or concept which it refers to includes additional steps or elements.
FIG. 1 shows the general architecture of the system according to an embodiment of the present invention.
The system of the present invention comprises a series of elements which are described below:
As shown in FIG. 1, the system comprises a mobile terminal 1. The mobile terminal 1, which can be a mobile telephone, a PDA or the like, is any mobile terminal 1 capable of connecting to a wireless or mobile data network 3. Non-limiting examples of wireless or mobile networks are GPRS, EDGE, UMTS, HSDPA, HSUPA, WiFi, WiMAX and Bluetooth.
The mobile terminal 1 comprises personal data of the user, state information of the mobile terminal itself and services provided by the mobile terminal 1. The personal data of the user and the state information of the mobile terminal itself can be stored both in the memory of the mobile terminal itself and in the SIM card thereof. FIG. 2 shows the architecture of the mobile terminal 1 in greater detail. As can be seen, the mobile terminal 1 also comprises a program or module for managing the personal data of the user 101, which management consists of obtaining, adding and deleting this data. It also comprises a program or module for managing the mobile terminal state information 102, which management consists of obtaining this information and deleting some of it, such as the incoming calls log and outgoing calls log. It also comprises a program or module for managing the mobile terminal services 103, which is in charge of executing such services. The functionality of these three programs or modules 101, 102, 103 is exposed, i.e., it can be accessed for its remote execution, through a web server 104 comprised in the mobile terminal 1. These functionalities are carried out by means of REST APIs. This means that by means of HTTP (HyperText Transfer Protocol) requests to the web server 104 of the mobile terminal 1, the personal data 105 of the user can be obtained, added and deleted, the telephone state information 106 can be obtained and some of it deleted, such as the incoming calls log 106-1 and outgoing calls log 106-2, and the services of the mobile telephone 107 can also be executed. This is explained in detail below.
The web server 104 can further optionally provide authentication, confidentiality and integrity in the communications for executing the REST APIs. To that end a conventional authentication and security application such as SSL is enabled.
The web server 104 can further optionally have a notification system 108 for notifying the user 9 of the mobile terminal of the execution of the API. This system notifies the user 9 of the mobile terminal 1 who (which user 10 is controlling the remote terminal 7) is to execute which API. The notification 108 is based on displaying a window on the screen of the mobile terminal 1 to the user 9 so that he or she chooses among the following options: always allowing a remote user 10 who is accessing the web server 104 of the mobile terminal 1 from a remote terminal 7 to execute a certain REST API, allowing the accessing remote user 10 to execute said API only once, allowing the accessing remote user 10 to execute said API for a certain amount of time or number of times, denying the execution of an API for the accessing remote user 10 only once or always denying said execution for the accessing remote user 10.
The system preferably uses the identification of the basic HTTP authentication for identifying the remote user 10 who is accessing the REST API in this notification system 108. The information on the remote users who have permissions to access said API always or only once, either for accessing during a certain amount of time, or a certain number of times or indefinitely, or invariably have permission denied, or have it denied only once, is stored in the database 109 of the access lists in the mobile terminal 1.
The mobile terminal 1 also further comprises a list manager 110 which allows adding, deleting or changing the permissions of the database 109 of the access lists.
Finally, the mobile terminal 1 comprises an IP connections manager 111, capable of maintaining a data connection 200 open with an external server 4 in the wireless or mobile network 3, called a permanent data connections manager 4. This permanent connections manager 4 is a gateway allowing the connection between the wireless or mobile data network 3 and the data network 5 and having the capacity to manage permanent data connections. The gateway 4 is detailed below. The open data connection 200 with the gateway 4 allows the mobile terminal 1 to be available and locatable in the mobile network 3, and therefore the REST APIs indicated with reference to the web server 104 of the mobile terminal 1 can be remotely used.
The diagram of FIG. 3 shows the personal data 105 of the user 9 which is stored in the mobile terminal 1 and/or in its SIM card. Examples of personal data 15 are, by way of an illustrative and non-limiting example, contacts 105-1, notes 105-2, calendar 105-3, images 105-4, sounds 105-5, videos 105-6, short messages (SMSs) 105-7, multimedia messages (MMSs) 105-8 and emails 105-9.
The diagram of FIG. 4 shows the mobile terminal state information 106, comprising, among others, the incoming calls log 106-1, the outgoing calls log 106-2, the mobile terminal battery level indicator 106-3, the mobile terminal coverage level indicator 106-4 and the mobile terminal state 106-5. This information is also stored in the mobile terminal 1 and/or in its SIM card. Examples of the mobile terminal state 106-5 are: normal, high, silent, vibration only, etc.
FIG. 5 shows the set of the configured mobile terminal services 107. This set of services is formed by services initiated by the mobile terminal 1. Other services which are initiated by external elements or elements that do not belong to the mobile terminal 1 and which imply executing events, such as incoming calls and receiving SMSs, MMSs or emails, are not inside this set of services. The services which a mobile terminal 1 can offer include, among others: making calls 107-1, sending SMSs 107-2, sending MMSs 107-3, sending emails 107-4, incoming call diversion 107-5, taking photographs 107-6 and recording videos 107-7 with the camera of the mobile terminal 1.
As shown in FIG. 1, the system also comprises a gateway 4. As has been stated previously, this gateway 4 acts as a permanent data connections manager 4. The permanent data connections manager 4 maintains a data connection 200 (as shown in FIG. 2) with one or a plurality of mobile terminals 1 through the mobile network 3 and receives incoming HTTP requests through a data network or internet 5 and resends them to the appropriate mobile terminal 1.
As can be seen in FIG. 6, this permanent data connections manager or gateway 4 comprises an incoming HTTP connections manager 400 for receiving the connections of other elements of the data network 5, a connection maintenance manager 401 with the mobile terminals 1 for maintaining the data connections with the mobile terminals 1 and sending them the incoming HTTP requests received by the incoming HTTP connections manager 400. Both managers 400, 401 are also in charge of resending the HTTP responses from the web server 104 of the mobile terminals 1 to the initial element which made the HTTP request. The permanent data connections manager 4 further comprises two databases: a first database 403, called “mobile terminal sessions”, for saving the information of the mobile terminals having active data connections with the connections manager 4 and a second database 402, called “incoming connections sessions”, storing the information of the active sessions which are pending a response.
FIG. 1 also shows a web server 6 of the data network 5. This web server 6 makes HTTP requests to the appropriate mobile terminals 1 to create web pages that are served to a certain terminal 7. The format of the created web pages is any of the conventional formats, such as html, xhtml, although it can be any other formate.
Through the web server 6, the user 10 requests from the mobile terminal 1 the creation of several web pages forming a web portal. This means that as a response to the HTTP request, a main web page is created which provides access to each of the personal information or resources of the user (105-1, 105-2, 105-3, 105-4, 105-5, 105-6, 105-7, 105-8, 105-9). A web page is thus created for each piece of information stored in the memory of the mobile terminal or in its SIM card (105-1, 105-2, 105-3, 105-4, 105-5, 105-6, 105-7, 105-8, 105-9). The main web page also provides access to each one of the pieces of terminal state information (106-1, 106-2, 106-3, 106-4, 106-5). Finally, the main web page also provides access to the mobile terminal services (107-1, 107-2, 107-3, 107-4, 107-5, 107-6, 107-7). These web pages are dynamic web pages that are served by a web server 6 with processing capability. In other words, they are web pages that are pre-configured or formatted beforehand which, as the appropriate HTTP requests are being made to the web server 104 of the mobile terminal 1, and therefore as the web server 6 of the data network 5 receives the responses to the download HTTP requests, they (the web pages) are filled out with the data of the remote terminal 1 in execution time. The web server 6 can be any conventional web server that has the capability to execute instructions, such as a J2EE, ASP.NET and PHP server.
These web pages are a new user interface that allows a user to remotely manage his or her terminal 1 from any terminal, device or computer 7 with access to the Internet or data network 5. This remote management comprises obtaining, adding or deleting the personal data of the user stored in the memory of the mobile terminal 1 and its SIM card, obtaining the state information of the terminal 1 and deleting some of it, such as the incoming calls logs 106-1 and the outgoing calls log 106-2, and also remotely executing the services configured in said terminal.
Finally, FIG. 1 also shows a remote terminal 7. This remote terminal 7, which is also shown in FIG. 7, comprises a conventional web browser 700. The web browser 700 allows access to the web pages that the web server 6 of the data network 5 is able to serve.
The method provided by the present invention for managing information stored and/or services configured in the mobile terminal 1 from a remote terminal 7 is carried out on the architecture shown in FIG. 1 and is schematized in FIG. 9.
As shown in FIG. 9, a request 900 to download the main web page between the remote terminal 7 and the web server 6 through the data network 5 is first set up for the purpose of creating web pages for the management of the mobile terminal 1 in a web server 6 and downloading them in a web browser 700 of a remote terminal. This request 900 consists of accessing a web page—the main web page—of the mobile terminal 1. This main web page comprises a browser menu to access the remote management of the personal data and terminal state information and the remote execution of the terminal services. This access to the remote management and execution is in the form of specific web pages of each resource and service (105-1, 105-2, etc, and 107-1, 107-2, etc).
In other words the process is the following:
The user connects through the browser 700 to the web server 6.
The user of the remote terminal 7 downloads, through the web server 6, the main web page of the mobile terminal 1, i.e., it downloads the menu of the mobile terminal 1. It is not necessary to make any call to the REST APIs of the mobile terminal 1.
The user is then identified preferably by means of a user name and a password, according to the basic authentication of the web server 104.
The user 10 then chooses the specific information (105-1, 105-2, . . . , 106-1, 106-2 . . . ) to be remotely managed or the service (107-1, 107-2, . . . ) to be remotely executed by clicking on the main web page.
The web server 6 thus makes HTTP requests in accordance with the specific REST API of the resource (105-1, 105-2, . . . , 106-1, 106-2 . . . ) or service (107-1, 107-2, . . . ) for remotely generating the specific web page of such information or service.
Once the web page is downloaded in the remote terminal 7, the user can manage the specific personal data (105-1, 105-2, . . . ) of the user, the specific terminal state information (106-1, 106-2, . . . ) or remotely execute the specific service (107-1, 107-2, . . . ).
Therefore if the user 10 clicks on the action “DELETE” in the specific web page of the resource “AGENDA” for example, the HTTP request for deleting a certain element from the agenda of the terminal 1 in accordance with the REST API defined by the web server 104 is sent to the web server 6. To that end the server 6 generates an information web page concerning the state of said action.
Finally, this last web page generated by the web server 6 is downloaded in the terminal 7.
Returning to FIG. 9, once the web server 6 receives this request 900, the web server 6 makes an HTTP request to the mobile terminal 1. As shown in FIG. 9, the web server 6 sends an HTTP request 901 in accordance with the REST APIs to the gateway or permanent data connections manager 4. This connections manager 4, which has previously set up a permanent connection 200 with the mobile terminal 1 (see FIG. 2), resends 902 the HTTP request to the mobile terminal 1 through the IP connections manager 111 thereof. After a message exchange, which is described in detail in relation to FIG. 10, the IP connections manager 111 of the mobile terminal 1 sends an HTTP response 905 to the permanent data connections manager 4 comprising the required information. If everything has gone correctly, this HTTP response 905 comprises an “OK” with certain information, depending on each specific method (for example, an XML list of the contacts of the mobile terminal 1 and SIM card, an image, etc.) If there has been an error, an error response is returned. The connections manager or gateway 4 in turn sends the HTTP response 906 to the web server 6, which downloads 907 the web page with the information relating to the REST APIs in the remote terminal 7.
FIG. 10 shows the set-up and maintenance of the permanent data connection 200 between the connections manager or gateway 4 and the mobile terminal 1:
Prior to sending the HTTP requests of FIG. 9, the IP connections manager 111 initiates a data connection with the permanent data connections manager 4. This data connection comprises setting up a signaling TCP socket between the mobile terminal 1 and the permanent data connections manager or gateway 4 and a TCP data socket 1004 between the mobile terminal 1 and the permanent data connections manager or gateway 4.
Firstly, the IP connections manager 111 of the mobile terminal 1 sets up a signaling TCP socket between the mobile telephone 1 and the permanent data connections manager or gateway 4 and sends a “CONNECT” message 1000 through such signaling TCP socket. This message 1000 comprises the mobile terminal number or MSISDN and a timeout. The permanent data connections manager 4 responds with a “CONNREGISTERED ok” message 1001 via the signaling TCP socket and stores this connection information in its mobile terminal sessions database 403. The IP connections manager 111 of the mobile terminal 1 then sends a “WAITING” message 1002 to the permanent data connections manager 4 via the signaling TCP socket.
If the permanent data connections manager or gateway 4 receives an HTTP request 901 (from the web server 6) for the mobile terminal 1, the permanent data connections manager or gateway 4 sends it a “REQUESTPENDING” message 1003 via the signaling TCP socket with a Request Id, which is the information necessary in order to set up a data TCP socket for sending this HTTP request. Block 1050 of FIG. 10 shows said HTTP request. Upon receiving this message 1003, the IP connections manager 111 of the mobile terminal and the permanent data connections manager or gateway 4 set up a data TCP socket 1004 and the HTTP request 902 is sent. The HTTP response 905 of the mobile terminal 1 is also sent on this data TCP socket 1004. The IP connections manager 111 of the mobile terminal 1 resends 903 the HTTP request 902 to the web server 104 of the mobile terminal 1 so that the latter processes it and returns an HTTP response 904. The IP connections manager 111 of the mobile terminal 1 resends 905 the HTTP response 904 to the permanent data connections manager or gateway 4 so that the latter resends 906 the HTTP response 905 to the web server 6. When finished sending the HTTP response 906, the data TCP socket 1004 which had been previously created is destroyed.
If in contrast the permanent data connections manager or gateway 4 does not receive an HTTP request 901 intended for the mobile terminal 1, the latter sends a “KEEPALIVE” message 1006 via the signaling TCP socket to the IP connections manager 111 of the mobile terminal 1 when the timeout time interval which had been defined in the initial message 1000 has ended. Blocks 1060 of FIG. 10 show the end of said timeout time intervals. The IP connections manager 111 of the mobile terminal 1 sends another “WAITING” message 1002 via the signaling TCP socket upon receiving this “KEEPALIVE” message 1006 in order to reinitiate the timer to the set time or timeout.
As shown in FIG. 6, the permanent data connections manager or gateway 4 receives the incoming HTTP requests 901 by the incoming HTTP connections manager module or program 400, saves the information relating to the session of that HTTP request 400 in the incoming connections session database 402 and resends the HTTP request to the connection maintenance manager module or program with the mobile terminals 401, which first identifies the destination mobile terminal of the HTTP request. To that end, the destination URL of the HTTP request 901, contains the mobile terminal number or MSISDN of the destination mobile terminal 1 in order to be able to identify it. Examples of a destination URL can be, by way of an illustrative and by no means limiting example, http://34610515151.vodafone.com or http://www.vodafone.com/34610515151. Once the mobile terminal 1 is identified, its location is searched for in the mobile terminal session database 403 and the HTTP request 902 is resent to the appropriate mobile terminal 1 by means of previously explained message exchange.
The method for internally processing the HTTP requests 903 to the REST APIs in the mobile terminal 1 is described below:
The REST APIs are based on unequivocally identifying the actions (obtaining, adding, deleting and executing) together with the resources, information, data or services (personal data 105 of the user, terminal state information 106 and mobile terminal services 107) with URLs which can be called by means of HTTP requests 903 in the web server 104 of the mobile terminal 1. For example, an image 105-7 (piece of data) stored in the mobile terminal 1 can thus be obtained (action) by making an HTTP request 902 903 to a URL which unequivocally identifies that image (piece of data).
The web server 104 of the mobile terminal 1 receives HTTP requests 903. At the time in which the web server 104 receives the HTTP request 903, the corresponding REST API is executed, i.e. what information is to be accessed and what action is to be made or what is to be carried out is identified. A result in the form of an HTTP response is then returned. In other words, if the HTTP request 903, including the destination URL, corresponds to the execution of the REST API, the HTTP request 903 passes to the appropriate manager module or program 101, 102, 103, depending on the destination URL of the HTTP request 903. These manager modules or programs are for managing the personal data of the user 101, for managing terminal state information 102 and for managing the mobile terminal services 103.
The mobile terminal 1 optionally comprises a notifier 108. In this case, the HTTP request 903 is transferred to the notification system 108 of the mobile terminal 1. Thus, if the web server 104 has the authentication, confidentiality and integrity options enabled in the communications for executing the REST API, by means of a conventional authentication and security application, such as an SSL application, the notification system 108 identifies which resource will be executed and who (i.e. which user 10 controls the remote terminal 7) makes this request. The identity of who is making the HTTP request 903 gives the identity defined in the basic authentication system of the web server 104, preferably the authentication system defined in RFC 2617. Once identified, an access list database 109 is consulted in order to check if said user has permissions for executing the resource identified by the URL and HTTP request 903. If the user is still not registered in the database 109 or does not have permanent permissions or always denied permissions, the user is notified of who is to execute which in the mobile terminal 1. This notification is preferably carried out by means of a window which is displayed on the screen of the mobile terminal 1. The user 10 who is accessing from a remote terminal 7 is not necessarily the same user who is handling the mobile terminal 1. If the remote user 10 has permanent permissions, the corresponding execution is not prevented even though there is no one at the end of the mobile terminal 1, since the notification window does not appear and the system operates without problems. If no one is handling the mobile terminal 1 and the notification window appears (which means that the person who is accessing does not have permanent permissions and therefore needs permission), the HTTP request is not provided and therefore the REST APIs are not executed.
Thus, given a remote user 10 who is making a request relating to a certain piece of information or service R (the information or service of the REST API which is to be executed), the notification system 108 provides several options: 1) always allowing the user 10 to execute that information or service; 2) allowing the user 10 to execute the information or service R only once; 3) allowing the user 10 to execute the information or service R during a certain time period; 4) not allowing the user 10 to execute the information or service R this specific time; and 5) never allowing the user 10 to execute the information or service R. If the user 9 of the mobile terminal 1 gives permission to the user 10, the HTTP request 903 is transferred to the specific manager module or program 101, 102, 103 of the information or service to be executed. If in contrast the notification system 108 sees that the user does not have permission for executing that information or service, the notifier 108 returns the HTTP request 903 to the web server 104, indicating it to respond to the user with an HTTP error response 904 or denied access response 403.
As previously stated, the information relating to which users have permission to different information or services is stored in the access list database 109 of the mobile terminal 1. FIG. 8 shows the structure of the access lists 109 included in the mobile terminal 1: column 109-1 includes users; column 109-2 includes information or types of personal data of the user stored in the mobile terminal or its SIM, mobile terminal state information or mobile terminal services; column 109-3 includes the type of access, i.e., unlimited access, temporary access, one-time access, once-denied or permanently denied access, which each user has to each piece of information or service; and column 109-4 includes the time or number of times allowed for each user and information and service.
As previously mentioned, the notification system 108 is optional and executing it requires the basic authentication to be enabled in the web server 104.
The manager modules or programs for managing personal data of the user 101, for managing the terminal state information 102 and for managing the mobile terminal services 103 receive the request from the web server 104 or optionally if the notifier 108 is enabled, from the notifier 108. These programs or modules 101, 102, 103 identify the specific resource and the action which is to be carried out with it. It thus relates to the program or module for managing personal data of the user 101, the information is that shown in FIG. 3 and the action is one of the following: obtaining a data list, obtaining a piece of data, adding a piece of data or deleting a piece of data. If it relates to the program or module for managing the terminal state information 102, the information is that shown in FIG. 4 and the action is one of the following: obtaining a piece of data (for all data of FIG. 4) and, for the incoming calls log 106-1 and the outgoing calls log 106-2, also deleting a piece of data. If it relates to the program or module for managing the mobile terminal services 103, the services are those shown in FIG. 5 and the action is executing the service in the mobile terminal 1. These programs or modules 101, 102, 103 access their respective personal data resources of the user 105 in the case of the program or module for managing personal data of the user 101, the terminal state information 106 in the case of the program or module for managing the terminal state information 102 and mobile terminal services 107 in the case of the program or module for managing the mobile terminal services 103. There are many REST APIs defined as information and services defined in the personal data resources of the user 105, the terminal state information 106 and the mobile terminal services 107. In other words there is a REST API for the contacts 105-1, another one for the calendar 105-2, another one for sounds 105-3, etc., another one for the incoming calls log 106-1, another one for the outgoing calls log 106-2, etc., another one for making calls 107-1, another one for sending SMSs 107-2, etc, until completing all services and resources. Finally, these programs or modules 101, 102, 103 are in charge of creating the response to the initial request of the REST APIs and of providing it with the suitable HTTP response form for passing it to the web server 104, so that the latter returns to it the HTTP response 904 to the initial request which it received from the IP connections manager 111.
After the message exchange carried out on the connections set up and shown with reference to FIGS. 9 and 10, an information or services management interface of the mobile terminal 1 is displayed in the remote terminal 7.
The web pages show and allow adding and deleting information relating to the personal data of the user, i.e., the contacts, notes, calendar, images, sounds, videos, SMSs, MMSs and emails stored in the mobile terminal 1 and its SIM card and contain information relating to the telephone state, i.e., the incoming call log, outgoing call log, battery indicator, mobile telephone state and coverage indicator. Information relating to the incoming and outgoing call log can additionally be deleted from the web pages. Finally, the web pages show and allow executing mobile terminal services from it, such as making calls, incoming call diversion, sending an SMS, sending an MMS, sending emails, taking photographs and recording videos. In summary, from the terminal 7, a user 10 can remotely manage the mobile terminal 1 from these web pages.
In view of this description and set of drawings, a person skilled in the art could understand that the invention has been described according to several preferred embodiments thereof, but multiple variations can be introduced in said preferred embodiments, without departing from the object of the invention as it has been claimed.

## Claims

1. A method for managing information stored and/or services configured in a mobile terminal from a remote terminal, the mobile terminal and the remote terminal being associated respectively with a mobile terminal user and a remote terminal user, wherein the mobile terminal is configured to connect to a mobile communications network and comprises a first web server having a plurality of Application Program Interfaces (APIs) with an API of the plurality of APIs defined for each piece of information and for each service provided by the mobile terminal, and wherein the remote terminal has access to a data network, the method comprising:
receiving from a remote terminal comprising a web browser a request for the creation of at least one web page configured to manage at least one piece of information stored or one service configured in a mobile terminal, the request being received at a second web server in the data network;
making a HyperText Transfer Protocol (HTTP) request from the second web server of the data network to the first web server of the mobile terminal in accordance with the at least one API of the plurality of APIs defined in the first web server of the mobile terminal, wherein the HTTP request comprises an identifier of the information or service to be managed;
determining, by a notification system of the first web server, the information or service of the mobile terminal to be managed and the identity of the remote terminal user making the request;
determining, by the first web server consulting a database, access rights of the remote terminal user to the information or service to be managed;
when the remote terminal user does not have permanent access rights to the information or service to be managed, receiving input from the mobile terminal user with respect to providing selective access rights to the remote terminal user;
selectively allowing the remote terminal user to access the information or service to be managed, dependent on the input from the mobile terminal user, comprising one of the following options: permanently allowing the execution of the API, temporarily allowing the execution, permanently denying the execution of the API or temporarily denying the execution; and
when the remote terminal user is allowed to access the information or service to be managed:
sending an HTTP response from the first web server of the mobile terminal to the second web server of the data network in accordance with the at least one API of the plurality of APIs defined in the first web server of the mobile terminal; and
downloading to the web browser of the remote terminal from the second web server of the data network the at least one web page configured to manage the information stored or service configured in the mobile terminal.

2. The method according to claim 1, wherein making the HTTP request from the second web server of the data network to the first web server of the mobile terminal comprises:
making an HTTP request through the data network from the second web server of the data network to a gateway capable of locating the mobile terminal which is connected to the mobile communications network; and
sending the HTTP request from the gateway to an IP connections manager of the mobile terminal.

3. The method according to claim 2, wherein the HTTP request is resent from the IP connections manager to the first web server of the mobile terminal by means of a further HTTP request.

4. The method according to claim 3, wherein the HTTP request in accordance with the at least one API defined in the first web server of the mobile terminal sent to the first web server of the mobile terminal is in turn sent to a manager module which is chosen from: a module for managing personal data of the remote terminal user, a module for managing state information of the mobile terminal and a module for managing services of the mobile terminal.

5. The method according to claim 2, wherein the HTTP request is made on a data channel which is set up in a signaling channel previously set up between the gateway and the IP connections manager of the mobile terminal.

6. The method according to claim 5, wherein the signaling channel between the gateway and the IP connections manager is a TCP socket.

7. The method according to claim 1, wherein sending the HTTP response from the first web server of the mobile terminal to the second web server of the data network comprises:
sending an HTTP response in accordance with the at least one API defined in the first web server of the mobile terminal from an IP connections manager of the mobile terminal to a gateway through the mobile communications network; and
sending said HTTP response in accordance with the at least one API defined in the first web server of the mobile terminal from the gateway to the second web server of the data network through the data network.

8. The method according to claim 7, wherein the HTTP response is carried out on a data channel which is set up in a signaling channel previously set up between the gateway and the IP connections manager of the mobile terminal.

9. The method according to claim 5, wherein the data channel between the gateway and the IP connections is a TCP socket.

10. The method according to claim 1, wherein the identifier of the information or service to be managed comprises a URL of the information or service to be managed.

11. The method according to claim 10, wherein the URL comprises an MSISDN of the mobile terminal.

12. The method according to claim 1, wherein the information stored in the mobile terminal relates to a piece of information which is chosen from one of the following groups: personal data of the remote terminal user and mobile terminal state information.

13. The method according to claim 12, wherein with the information an action is carried out which is chosen from one of the following groups of actions: actions relating to managing personal data of the remote terminal user and actions relating to managing the mobile terminal state information.

14. The method according to claim 1, wherein the information stored in the mobile terminal is stored in memory of the mobile terminal or in a SIM card.

15. The method according to claim 1, wherein the service configured in the mobile terminal relates to a service from a group of mobile terminal services.

16. The method according to claim 15, wherein with the service an action is carried out which is chosen from the group of actions relating to managing the group of mobile terminal services.

17. A system configured to be used with a mobile communications network and a data network, the system comprising:
a mobile terminal configured to be connected to the mobile communications network, the mobile terminal being associated with a mobile terminal user and comprising:
a first web server having a plurality of Application Programming Interfaces (APIs) with an API of the plurality of APIs defined for each piece of information and for each service provided by the mobile terminal; and
a notification system for managing remote access to the information and services of the mobile terminal;

a second web server configured to be connected to the data network; and
a remote terminal configured to be connected to the data network, the remote terminal being associated with a remote terminal user and comprising a web browser, the remote terminal being configured to make, from the web browser, a HyperText Transfer Protocol (HTTP) request, via the second web server using the data network, for managing at least one piece of information stored or one service configured in the mobile terminal, wherein the HTTP request is in accordance with the at least one API of the plurality of APIs defined in the first web service of the mobile terminal, and wherein the HTTP request comprises an identifier of the information or service to be managed;
wherein upon receipt of the HTTP request, the mobile terminal is configured to:
determine, by the notification system, the information or service of the mobile terminal to be managed and the identity of the remote terminal user making the request;
determine, by the first web server consulting a database, access rights of the remote terminal user to the information or service to be managed;
when the remote terminal user does not have permanent access rights to the information or service to be managed, receive input from the mobile terminal user with respect to providing selective access rights to the remote terminal user; and
selectively allow the remote terminal user to access the information or service to be managed, dependent on the input from the mobile terminal user, comprising one of the following options: permanently allowing the execution of the API, temporarily allowing the execution, permanently denying the execution of the API or temporarily denying the execution; and

wherein, when the remote terminal user is allowed to access the information or service to be managed, the remote terminal is configured to:
receive, from the second web server using the data network at least one web page, the at least one web page being generated by the second web server in response to the second web server receiving from the mobile terminal, an HTTP response in accordance with the at least one API of the plurality of APIs defined in the first web server of the mobile terminal, and
show, in the web browser, at least one web page for managing the information stored or service configured in the mobile terminal.

18. The system according to claim 17, further comprising a gateway configured to set up a connection between the data network and the mobile communications network.

19. The system according to claim 18, further comprising:
a mobile communications network to which the mobile terminal is connected; and
a data network to which the second web server and the remote terminal are connected.