Electronic device and data reading and writing method based on the electronic device

The present invention is applicable to the field of computer technologies, and provides an electronic device and a data reading and writing method based on the electronic device. The electronic device comprises: a host and a data memory. The host comprises a first data storage module, used for storing a program and user data related to running of the host; and a first wireless communication module, used for communicating with the data memory by means of wireless communication, to perform data access on the data memory. The data memory comprises: a memory housing; a power supply, used for providing power for the data memory; a second wireless communication module arranged inside the storage housing, used for communicating with the host by means of wireless communication; a second data storage module arranged inside the storage housing, used for storing user data; and a fixing part arranged on the storage housing, used for physically fixing the data memory to an object or a body part. According to the electronic device and the data reading and writing method based on the electronic device provided by embodiments of the present invention, security of data is physically improved by using separation design.