A portable electronic device adapted to execute a command from an external device, the electronic device comprising: a communication section adapted to transmit and receive data with the external device in a noncontact manner; and a control section adapted to perform to transmit data to the external device based on a command received through the communication section; characterized in that the control section is adapted to perform to transmit a message having the data, said message created in a format of an I-block; divide the data transmitted to the external device into divided data portions when a command being a sixth bit in a PCB byte of an R-block which requests that the data transmitted is divided and retransmitted is received from the external device through the communication section, give an error detection code to each of the divided data portions, transmit the divided data portions to which the error detection code is given to the external device by the communication section intermittently so as to make a predetermined non-transmission period of the divided data portions, said non-transmission period being a predetermined time after which a next data portion of the divided data portions is transmitted, retransmit the divided data portion to which the error detection code is given and which is transmitted last when it is detected that a carrier wave transmitted from the external device is modulated in the non-transmission period, the modulation being an error notice, and the control section is adapted not to retransmit said divided data portion which is transmitted last when it is detected that a carrier wave transmitted from the external device is not modulated in the non-transmission period. a communication section adapted to transmit and receive data with the external device in a noncontact manner; and a control section adapted to perform to transmit data to the external device based on a command received through the communication section; characterized in that the control section is adapted to perform to transmit a message having the data, said message created in a format of an I-block; divide the data transmitted to the external device into divided data portions when a command being a sixth bit in a PCB byte of an R-block which requests that the data transmitted is divided and retransmitted is received from the external device through the communication section, give an error detection code to each of the divided data portions, transmit the divided data portions to which the error detection code is given to the external device by the communication section intermittently so as to make a predetermined non-transmission period of the divided data portions, said non-transmission period being a predetermined time after which a next data portion of the divided data portions is transmitted, retransmit the divided data portion to which the error detection code is given and which is transmitted last when it is detected that a carrier wave transmitted from the external device is modulated in the non-transmission period, the modulation being an error notice, and the control section is adapted not to retransmit said divided data portion which is transmitted last when it is detected that a carrier wave transmitted from the external device is not modulated in the non-transmission period.