There is provided a User Equipment (UE) comprising a transmitting and receiving unit configured to: send, to a device having a ProSe function, a discovery request containing: a ProSe application ID, a command set to announcement, and the UE's IMSI, and receive, from the device having the ProSe function, a discovery response as a response to the discovery request, the discovery response containing: a first ProSe application code corresponding to the ProSe application ID, and a first timer value associated with the first ProSe application code; and a control unit configured to start a timer with the first timer value, based on the reception of the first ProSe Application code associated with the first timer value in the discovery response, wherein the transmitting and receiving unit is further configured to be able to send the first ProSe application code until the timer with the first timer value expires, in a procedure to update the first ProSe Application Code, the transmitting and receiving unit is further configured to receive, from the device having the ProSe function, an update request message containing: the UE's IMSI, a second ProSe application code for the ProSe application ID, and a second timer value for the second ProSe application code, the control unit is further configured to replace the first ProSe application code with the second ProSe application code, in a case of receiving the update request message, and the procedure is the procedure initiated by the device having the ProSe function, and started by sending the update request message.
展开▼