The invention relates to a method for transmitting data from a device, such as is used in endoscopy or microsurgery, for example, to a receiving unit, wherein a magnetic dipole disposed in or on the device is rotationally driven, the data are generated by a change in the rotational frequency of the magnetic dipole, and the changing magnetic field of the magnetic dipole is received and analyzed by the receiving unit, wherein the rotational speed range in which the magnetic dipole can be driven is divided into partial ranges, each associated with a type of data.