This application discloses a method and related apparatus for data interaction between IoT devices. The method includes a platform layer receiving protocol message data sent by a first IoT device; determining a first
atomic component sequence identifier corresponding to the device identifier of the first IoT device based on a first
metadata rule base; loading atomic components sequentially from a preset
atomic component registration center according to the first
atomic component sequence identifier to obtain a first
parsing pipeline; using the first
parsing pipeline to perform format
parsing and conversion on the protocol message data; and sending the first conversion result to an
adaptation layer. By setting up atomic component reuse, IoT devices with different protocol formats can share the same type of atomic components, reducing the
access time of new IoT devices in the platform layer. By sending the first conversion result in the platform layer to the
adaptation layer, multiple IoT devices can directly interact with each other in the
adaptation layer, reducing cross-device linkage latency issues.