A system for clock synchronization in human-machine-environment data acquisition, comprising a plurality of electronic devices, wherein the plurality of electronic devices comprises a first electronic device and a second electronic device connected to each other, and the plurality of electronic devices are located in a same local area network;
- and
- wherein the first electronic device is configured to:
- acquire a first human-machine-environment data acquisition task, wherein the first human-machine-environment data acquisition task is initiated by the second electronic device within the local area network;
- perform message interaction with the second electronic device to obtain timestamps during a message interaction process, wherein the timestamps comprise clock information of the second electronic device, and the clock information of the second electronic device is a calibration clock for a current acquisition task;
- determine a time offset of the first electronic device relative to the second electronic device based on the timestamps during the message interaction process;
- calibrate an acquisition moment of first human-machine-environment data acquired by the first electronic device according to the time offset, wherein the first human-machine-environment data is collected by the first electronic device and/or at least one data collector connected to the first electronic device, and the at least one data collector is configured to collect human-related data, machine-related data, human-machine interaction-related data, and/or environment-related data;
- and
- send the first human-machine-environment data bound with the calibrated acquisition moment to the second electronic device, so that the second electronic device aligns the first human-machine-environment data with second human-machine-environment data acquired by the second electronic device based on the calibrated acquisition moment;
- and
- the second electronic device is configured to:
- initiate the first human-machine-environment data acquisition task within the local area network, so that the first electronic device acquires the first human-machine-environment data acquisition task;
- perform message interaction with the first electronic device, so that the first electronic device obtains the timestamps during the message interaction process, and determines the time offset of the first electronic device relative to the second electronic device based on the timestamps;
- receive first human-machine-environment data and the calibration moment bound with the first human-machine-environment data sent by the first electronic device, wherein the calibration moment bound with the first human-machine-environment data is a moment obtained by the first electronic device calibrating an acquisition moment of the first human-machine-environment data acquired by the first electronic device based on the time offset;
- and
- align the first human-machine-environment data with the second human-machine-environment data acquired by the second electronic device based on the calibration moment bound with the first human-machine-environment data, wherein the second human-machine-environment data is collected by the second electronic device and/or at least one data collector connected to the second electronic device.