Communication method, system, cloud platform and storage medium of electronic device
By using a cloud platform and device set identifiers to enable communication between electronic devices, the high cost and low efficiency problems caused by the deployment of hardware devices in existing technologies are solved, thereby achieving cost reduction and efficiency improvement.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2024-11-22
- Publication Date
- 2026-05-22
Smart Images

Figure CN122073583A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet of Things (IoT) technology, and in particular to a communication method, system, cloud platform, and storage medium for an electronic device. Background Technology
[0002] With the development of industrial technology, in order to meet production needs, a large number of different types and functions of electronic devices are used in industrial manufacturing processes, and these electronic devices are required to work together. In order for the various electronic devices to work together, communication is required between batches.
[0003] Currently, to enable communication between various electronic devices, a hardware device containing multiple buses can be used to connect these devices. The hardware device's web management interface can then load a protocol packet onto each bus to which the electronic device is connected. The hardware device can use the protocol packets to obtain the device status of each electronic device on the corresponding bus or send control commands to the electronic devices on the corresponding bus, thereby completing the interconnection and communication between the various electronic devices.
[0004] However, the need to lay additional buses and hardware devices to enable interconnection and communication between multiple electronic devices increases communication costs. Summary of the Invention
[0005] This application provides a communication method, system, cloud platform, and storage medium for electronic devices, which can be used to reduce communication costs. The technical solution is as follows:
[0006] Firstly, a communication method for an electronic device, applied in a cloud platform, is provided, the method comprising:
[0007] Receive first contact information sent by the first electronic device, the first contact information including a first set identifier and first data of the first electronic device, the first set identifier being the identifier of the first device set in which the first electronic device is located after accessing the cloud platform;
[0008] Based on the first set identifier, send the first data to the second electronic device in the first set of devices;
[0009] Receive second contact information sent by a second electronic device, the second contact information including a first set identifier and second data of the second electronic device, the second contact information being sent by the second electronic device after receiving the first data;
[0010] Based on the first set identifier, the second data is sent to the first electronic device to realize communication between the first electronic device and the second electronic device.
[0011] Since the first and second electronic devices can communicate through the cloud platform, and no additional hardware devices are required, such as buses, control centers, multi-protocol gateway adapters, etc., communication costs are reduced, communication operations are simplified, and communication efficiency is improved.
[0012] As an example of this application, the cloud platform includes at least one set of devices, each set of devices includes at least one electronic device, and there are partially overlapping electronic devices between the sets of devices, and / or there are no overlapping electronic devices between the sets of devices.
[0013] At least one electronic device in the same set of devices communicates using the same communication protocol, while different sets of devices use different communication protocols.
[0014] Since different sets of devices use different communication protocols, the cloud platform can quickly determine the communication protocol used by the electronic device that needs to communicate based on the set identifier. This enables communication between different devices, speeds up the query of communication protocols, and improves the communication efficiency between electronic devices.
[0015] As an example of this application, the operation of the cloud platform sending first data to a second electronic device in the first device set based on a first set identifier includes:
[0016] Based on the first set identifier, obtain the device identifier of each electronic device in the first device set to obtain at least one device identifier, which includes the device identifier corresponding to the second electronic device;
[0017] First data is broadcast to each electronic device based on at least one device identifier.
[0018] Thus, since the first set of devices includes the second electronic device, broadcasting the first data to each electronic device based on at least one device identifier ensures that the second electronic device also receives the first data.
[0019] As an example of this application, the first contact information carries the device identifier of the second electronic device;
[0020] Based on this, the cloud platform obtains the device identifier of each electronic device in the first device set according to the first set identifier. After obtaining at least one device identifier, it can also send the first data to the second electronic device if the device identifier of the second electronic device exists in the at least one device identifier.
[0021] In this way, by sending the first data in a targeted manner, the waste of communication resources can be avoided, and the messages sent by the cloud platform can be made more targeted.
[0022] As an example of this application, before the cloud platform receives the first contact information sent by the first electronic device, it can also receive the first access information sent by the first electronic device. The first access information includes a first set identifier and at least one device identifier, and the at least one device identifier includes the device identifier of the first electronic device. The first access information is sent when the first electronic device receives an access operation.
[0023] Based on the first set identifier, add the electronic device corresponding to each device identifier in at least one device identifier to the first device set.
[0024] As an example, at least one device identifier corresponds to an electronic device that has established a connection path with the cloud platform before being added to the first device set.
[0025] Thus, by adding the first electronic device to the corresponding first device set, it is convenient for the first electronic device to communicate with other electronic devices in the same device set without the need for additional hardware devices, thereby reducing the cost of communication between electronic devices.
[0026] As an example of this application, the first access information also includes a line identifier, which is used to indicate the identifier of the production line in which the first electronic device is located;
[0027] The cloud platform's operation of adding the electronic device corresponding to each device identifier in at least one device identifier to the first device set based on the first set identifier includes:
[0028] In the presence of a line communication space indicated by a line identifier, the electronic device corresponding to each device identifier in at least one device identifier is added to the first device set according to the first set identifier; or,
[0029] In the absence of a line communication space indicated by a line identifier, a line communication space is created based on the line identifier, and based on a first set identifier, electronic devices corresponding to each device identifier in at least one device identifier are added to the first device set within the line communication space.
[0030] Thus, by determining the first set of devices after determining the line communication space, the accuracy of determining the first set of devices is ensured.
[0031] As an example of this application, the operation of the cloud platform adding the electronic device corresponding to each device identifier in at least one device identifier to the first device set according to the first set identifier includes:
[0032] If a first set of devices is indicated by a first set identifier, each device identifier from at least one device identifier is added to the first device set; or,
[0033] If a first device set does not exist, a first device set is created based on a first set identifier, and at least one device identifier is added to the first device set.
[0034] Thus, by creating a first set of devices using the first set identifier, the uniqueness of the first set of devices is guaranteed.
[0035] As an example of this application, after the cloud platform sends the second data to the first electronic device according to the first set identifier, it can also receive the first disconnection information sent by the first electronic device. The first disconnection information includes the first set identifier and the device identifier of the first electronic device. The first disconnection information is sent when the first electronic device receives a disconnection operation.
[0036] The first electronic device is removed from the first device set based on the first set identifier.
[0037] In this way, upon receiving a disconnection notification, the cloud platform avoids wasting communication resources by removing the disconnected electronic device from the corresponding device set.
[0038] As an example of this application, after the cloud platform deletes the first electronic device from the first device set based on the first set identifier, it can also delete the first device set if there is still one device identifier remaining in the first device set.
[0039] In some embodiments, after a first electronic device is removed from a first device set based on a first set identifier, if there are still multiple other electronic devices in the first device set, the cloud platform may broadcast the deletion information to each of the other multiple electronic devices.
[0040] As an example of this application, if the cloud platform deletes the first device set after it has only one device identifier remaining in the first device set, it can also delete the line communication space if there are no other device sets in the line communication space where the first device set is located.
[0041] In this way, by deleting the line communication space where there is no device set, the cloud platform reduces the number of queries to line communication spaces when searching for other line communication spaces. This not only avoids wasting resources but also avoids interfering with other line communication spaces.
[0042] In a second aspect, a communication system is provided, which includes a first electronic device, a second electronic device, and a cloud platform. Both the first electronic device and the second electronic device are communicatively connected to the cloud platform, and the first electronic device and the second electronic device are located in the same set of devices in the cloud platform.
[0043] In response to the first operation, the first electronic device sends first contact information to the cloud platform. The first contact information includes a first set identifier and first data of the first electronic device. The first set identifier is the identifier of the first device set in which the first electronic device is located after accessing the cloud platform.
[0044] Upon receiving the first contact information, the cloud platform sends the first data to the second electronic device based on the first set identifier;
[0045] Upon receiving the first data, the second electronic device sends a second contact information to the cloud platform. The second contact information includes the first set identifier and the second data of the second electronic device.
[0046] Upon receiving the second contact information, the cloud platform sends the second data to the first electronic device based on the first set identifier.
[0047] Thirdly, a cloud platform is provided, the cloud platform including a processor and a memory. The memory stores programs that support the cloud platform in executing the communication methods of the electronic device provided in the first aspect, and stores data related to implementing the communication methods of the electronic device described in the first aspect. The processor is configured to execute the programs stored in the memory. The cloud platform may further include a communication bus for establishing a connection between the processor and the memory.
[0048] Fourthly, a computer-readable storage medium is provided, wherein instructions are stored therein, which, when executed on a cloud platform, cause the cloud platform to perform the communication method of the electronic device described in the first aspect.
[0049] Fifthly, a computer program product containing instructions is provided, which, when run on a cloud platform, causes the cloud platform machine to execute the communication method of the electronic device described in the first aspect.
[0050] The technical effects achieved by the second, third, fourth, and fifth aspects mentioned above are similar to those achieved by the corresponding technical means in the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0051] Figure 1 This is a schematic diagram of an electronic device interconnection method provided in an embodiment of this application;
[0052] Figure 2 This is a schematic diagram of a system architecture provided in an embodiment of this application;
[0053] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0054] Figure 4 This is a block diagram of a software system for an electronic device provided in an embodiment of this application;
[0055] Figure 5 This is a schematic diagram of an application scenario provided by an embodiment of this application;
[0056] Figure 6 This is a schematic diagram illustrating a process for communication between a device and a cloud platform based on a protocol, provided in an embodiment of this application.
[0057] Figure 7 This is a schematic diagram of a device assembly provided in an embodiment of this application;
[0058] Figure 8 This is a schematic flowchart of a communication method for an electronic device provided in an embodiment of this application;
[0059] Figure 9 This is a schematic diagram of a data frame style for a message provided in an embodiment of this application;
[0060] Figure 10 This is a schematic diagram of another device assembly provided in an embodiment of this application;
[0061] Figure 11 This is a schematic diagram of another message data frame style provided in an embodiment of this application;
[0062] Figure 12 This is a schematic diagram of a communication method for another electronic device provided in an embodiment of this application. Detailed Implementation
[0063] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0064] It should be understood that "multiple" as mentioned in this application refers to two or more. In the description of this application, unless otherwise stated, " / " indicates "or," for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist, for example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, to facilitate a clear description of the technical solutions of this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first," "second," etc., do not limit the quantity or execution order, and that "first," "second," etc., do not necessarily imply differences.
[0065] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0066] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0067] Currently, electronic devices on production lines operate independently, with inconsistent interfaces and a lack of interconnectivity. For example, at the pre-processing station, if a robotic arm malfunctions and stops, the dispensing station may continue dispensing glue, leading to wasted glue. Similarly, at the touchscreen pre-processing station, if a gap detection device detects a misalignment during touchscreen assembly, the user must promptly notice and manually adjust the robotic arm's offset to ensure correct touchscreen positioning, resulting in cumbersome operation. Therefore, to improve the automation and intelligence of production lines, communication between various electronic devices is typically required.
[0068] See Figure 1Currently, to enable communication between electronic devices, a hardware device containing multiple buses can be used to connect these devices. A protocol packet is loaded onto each bus connected to the hardware device via its web management interface. The hardware device can then use these protocol packets to obtain the device status of each electronic device on its respective bus or send control commands to the devices on that bus, thus completing the interconnection and communication between the electronic devices. Alternatively, communication between electronic devices can also be achieved through a multi-protocol smart gateway adapter. For example, a first electronic device can send data packets to the multi-protocol smart gateway adapter. The adapter can identify the communication protocol of a second electronic device from the data packets, convert the data packets into data packets that the second electronic device can receive based on the identified protocol, and then send them to the second electronic device.
[0069] However, regardless of the method used to achieve interconnection and communication between multiple electronic devices, additional hardware is required, which increases communication costs. Sometimes, hardware deployment is difficult, resulting in low efficiency of interconnection and communication between various electronic devices.
[0070] To reduce communication costs and improve communication efficiency between electronic devices, this application provides a communication method for electronic devices. This method is applied in a cloud platform. The cloud platform can receive first contact information sent by a first electronic device, which includes a first set identifier and first data from the first electronic device. Based on the first set identifier, the cloud platform sends the first data to a second electronic device in a first set of devices. After receiving the first data, the second electronic device can send second contact information to the cloud platform, which includes the first set identifier and second data from the second electronic device. After receiving the second contact information, the cloud platform can send the second data back to the first electronic device based on the first set identifier, thereby achieving communication between the first and second electronic devices. Since the first and second electronic devices can communicate through the cloud platform without the need for additional hardware (e.g., no bus, control center, multi-protocol gateway adapter), communication costs are reduced, communication operations are simplified, and communication efficiency is improved.
[0071] Before providing a detailed explanation of the communication method of the electronic device provided in the embodiments of this application, the cloud platform and electronic device involved in the embodiments of this application will be described first.
[0072] As an example, this method can be applied to a cloud platform, which can also be called a cloud system, cloud computing operating system, etc. The method involves at least one electronic device that can access the cloud platform, meaning that the at least one electronic device can communicate with the cloud platform.
[0073] The electronic devices involved will be described next.
[0074] The electronic device involved in the embodiments of this application can be a general-purpose computer device or a special-purpose computer device. In specific implementations, the electronic device can be a desktop computer, a portable computer, a network server, a handheld computer, a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device, etc. As an example of this application, the electronic device can also be equipment on an industrial production line, which can also be called industrial equipment, line equipment, manufacturer equipment, computer equipment, etc. As an example and not a limitation, the electronic device can be, but is not limited to, a robotic arm, dispensing equipment, gap detection equipment, monitoring equipment, computer, etc., and the embodiments of this application do not limit this. The embodiments of this application do not limit the type of electronic device.
[0075] As an example, any electronic device can communicate with a cloud platform via the TCP / IP protocol to establish a connection path with the cloud platform. See, for example, [link to example]. Figure 2 Electronic devices A, B, C, D, and E can all communicate with the cloud platform via the TCP / IP protocol.
[0076] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. See also... Figure 3The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0077] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0078] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0079] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
[0080] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from this memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0081] In some embodiments, the processor 110 may include one or more interfaces, such as an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0082] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0083] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0084] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0085] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0086] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0087] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0088] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0089] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. Wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. GNSS can include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0090] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0091] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is an integer greater than 1.
[0092] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0093] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions, such as saving music, video, and other files on the external memory card.
[0094] Internal memory 121 can be used to store computer-executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created by electronic device 100 during use (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0095] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch operation intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than the pressure threshold is applied to the SMS application icon, a command to view an SMS message is executed. When a touch operation with an intensity greater than or equal to the pressure threshold is applied to the SMS application icon, a command to create a new SMS message is executed.
[0096] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shake of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios.
[0097] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.
[0098] The accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in various directions (generally three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. The accelerometer 180E can also be used to identify the attitude of electronic device 100, and can be applied to applications such as screen orientation switching and pedometers.
[0099] A distance sensor 180F is used to measure distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, during a shooting scenario, electronic device 100 can utilize the distance sensor 180F for distance measurement to achieve fast focusing.
[0100] The proximity sensor 180G may include a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 100 emits infrared light outward through the LED. The electronic device 100 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, the electronic device 100 can determine that an object is nearby. When insufficient reflected light is detected, it can determine that no object is nearby. The electronic device 100 can use the proximity sensor 180G to detect when a user holds the electronic device 100 close to their ear for a phone call, so as to automatically turn off the screen to save power. The proximity sensor 180G can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.
[0101] The ambient light sensor 180L is used to sense the brightness of ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 based on the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also work with the proximity sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0102] Temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 uses the temperature detected by temperature sensor 180J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 reduces the performance of a processor located near temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is below another threshold, electronic device 100 heats battery 142 to prevent abnormal shutdown of electronic device 100 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, electronic device 100 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature.
[0103] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch display." Touch sensor 180K detects touch operations applied to or near it. Touch sensor 180K can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0104] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.
[0105] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, alarms, etc.
[0106] The software system of electronic device 100 will be described next.
[0107] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses a layered Android system as an example to illustrate the software system of electronic device 100.
[0108] Figure 4 This is a block diagram of a software system for an electronic device 100 provided in an embodiment of this application. See also... Figure 4 A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime, the system layer, and the kernel layer.
[0109] The application layer can include a series of application packages. For example... Figure 4 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.
[0110] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example... Figure 4As shown, the application framework layer can include a window manager, content providers, a view system, a phone manager, a resource manager, and a notification manager. The window manager manages window programs. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture the screen. The content provider stores and retrieves data, making this data accessible to the application. This data can include videos, images, audio, made and received phone calls, browsing history and bookmarks, and phone books. The view system includes visual controls, such as controls for displaying text and controls for displaying images. The view system can be used to build the application's display interface, which can consist of one or more views, such as a view displaying SMS notification icons, a view displaying text, and a view displaying images. The phone manager provides communication functions for the electronic device 100, such as managing call status (including connection and disconnection). The resource manager provides the application with various resources, such as localized strings, icons, images, layout files, and video files. The notification manager allows the application to display notification information in the status bar, which can be used to convey informational messages and can disappear automatically after a short pause without user interaction. For example, the notification manager is used to notify users of download completions and message alerts. The notification manager can also display notifications as icons or scrolling text in the system's top status bar, such as notifications from background applications. Furthermore, the notification manager can appear as dialog boxes on the screen, such as displaying text messages in the status bar, emitting sounds, causing electronic devices to vibrate, or flashing indicator lights.
[0111] The Android Runtime consists of the core libraries and the virtual machine. The Android runtime is responsible for scheduling and managing the Android system. The core libraries consist of two parts: one part contains the functionalities that Java needs to call, and the other part is the core Android library itself. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0112] The system library can include multiple functional modules, such as a surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), and 2D graphics engines (e.g., SGL). The surface manager manages the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The media libraries support playback and recording of various common audio and video formats, as well as still image files. The media libraries support various audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG. The 3D graphics processing libraries are used for 3D graphics drawing, image rendering, compositing, and layer processing. The 2D graphics engine is the drawing engine for 2D graphics.
[0113] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0114] To facilitate understanding of the embodiments of this application, an application scenario provided by the embodiments of this application will be introduced below.
[0115] This application uses the interconnection of a robotic arm and a gap detection device as an example to illustrate the application scenario. In one application scenario, after the robotic arm and the gap detection device are started, under the user's operation, the robotic arm and the gap detection device can respectively send access requests (or access information) to the cloud platform, and the access request can carry their respective device identifiers, line identifiers, set identifiers, etc. After receiving the access requests sent by the robotic arm and the gap detection device, if the line identifier and set identifier sent by the robotic arm and the gap detection device are the same, and a line communication space corresponding to the line identifier already exists, and a device set corresponding to the set identifier exists within the line communication space, then the cloud platform can directly add the device identifiers of the gap detection device and the robotic arm to the device set. Afterwards, the cloud platform can broadcast the device identifiers of the robotic arm and the gap detection device to other electronic devices in the device set. If a line communication space corresponding to the line identifier does not exist, the cloud platform can establish a line communication space corresponding to the line identifier, and establish a device set corresponding to the set identifier within the line communication space, and add the device identifiers of the robotic arm and the gap detection device to the device set.
[0116] After the robotic arm and gap detection equipment are connected to the cloud platform, see [link to cloud platform]. Figure 5In Figure (a), during the process of applying the film to the display screen, to ensure correct film application to the touchscreen, the touchscreen can be placed within the detection frame of the gap detection device. The gap detection device can detect the gap between the touchscreen and the detection frame (the gap in the attached figure is only an example), obtain the gap size at multiple locations, and send contact information to the cloud platform. This contact information includes data information (i.e., the gap sizes at multiple locations), the device identifier of the robot arm, the device identifier of the gap detection device, the line identifier, and the assembly identifier. Upon receiving the contact information from the gap detection device, the cloud platform parses the contact information and, based on the parsed line identifier, assembly identifier, and robot arm device identifier, sends data information to the robot arm. The sending path is line space - device assembly - robot arm. After receiving the data information sent by the cloud platform, the robot arm adjusts the position of the touchscreen within the detection frame according to the data information. For example, after adjusting the positions of the touchscreen and the detection frame, the relative positions are as follows: Figure 5 As shown in Figure (b), the gap detection device continuously detects the gap between the touchscreen and the detection frame. The robotic arm, based on the data, continuously adjusts the position between the touchscreen and the detection frame until a disconnection occurs between the robotic arm and / or the gap detection device and the cloud platform.
[0117] In some application scenarios, if the line identifier carried in the access information sent by the robotic arm to the cloud platform is the same as the line identifier carried in the access information sent by the gap detection device to the cloud platform, it indicates that the robotic arm and the gap detection device are electronic devices on the same production line. If the set identifier carried in the access information sent by the robotic arm and the gap detection device to the cloud platform is the same, it indicates that the robotic arm and the gap detection device use the same communication protocol. For example, both the robotic arm and the gap detection device can communicate with the cloud platform based on the WebSocket protocol. The communication process between the robotic arm, the cloud platform, and the gap detection device based on the WebSocket protocol can be as follows: Figure 6 As shown.
[0118] In some embodiments, step A01: The robotic arm can initiate a WebSocket request to the cloud platform, and the gap detection device can also initiate a WebSocket request to the cloud platform. Step A02: The cloud platform returns a Switching Protocol to both the robotic arm and the gap detection device, indicating successful connection to each. Step A03: The robotic arm and the gap detection device can send corresponding device information and set identifiers to the cloud platform, where the device information includes at least a device identifier and a line identifier. Step A04: The cloud platform determines the device set to which the robotic arm and the gap detection device belong based on the device information and set identifiers sent by the robotic arm and the gap detection device. Step A05: The cloud platform sends a successful addition message to both the robotic arm and the gap detection device. Step A06: The gap detection device sends contact information to the cloud platform, which includes data information (gap data between the detection frame and the touchscreen), the robotic arm's device identifier, the gap detection device's device identifier, the line identifier, and the set identifier. Step A07: Upon receiving the contact information from the gap detection device, the cloud platform parses the information and sends data to the robot arm based on the parsed line identifier, assembly identifier, and robot arm device identifier. Step A08: After receiving the data from the cloud platform, the robot arm adjusts the position between the touchscreen and the detection frame according to the data. Repeat steps A06-A08 until any device loses connection with the cloud platform.
[0119] In some application scenarios, see Figure 7 Within the same linear communication space, there may be multiple sets of devices, for example, see [link to example]. Figure 7 In addition to robotic arms and gap detection equipment, a dispensing device can also be included on the same production line. The robotic arm, gap detection equipment, and dispensing device can all communicate with the cloud platform separately. The robotic arm and gap detection equipment are in the same device set and use the same communication protocol to communicate through the cloud platform. The dispensing device and robotic arm are not in the same device set, nor are the dispensing device and gap detection equipment in the same device set.
[0120] It should be noted that the embodiments in this application are only based on the above. Figures 5-7 The application scenarios shown are illustrated as examples and do not constitute a limitation on the embodiments of this application.
[0121] Based on the execution entity provided in the above embodiments, the communication method of the electronic device provided in this application will be described next. Please refer to... Figure 8 , Figure 8This is a schematic flowchart illustrating a communication method for an electronic device according to an exemplary embodiment. It is provided as an example and not as a limitation. The method is illustrated using the interaction between a first electronic device, a second electronic device, and a cloud platform as an example. The method may include some or all of the following:
[0122] Step 801: The first electronic device receives the access operation triggered by the user.
[0123] As an example, the first electronic device can be any device on a production line. When the first electronic device needs to communicate with other electronic devices on the same production line, the user can trigger an access operation.
[0124] For example, the first electronic device is provided with a button, which a user can operate to trigger an access operation. And / or, the first electronic device is provided with a display screen, which may be a touch screen, which a user can operate to trigger an access operation.
[0125] It should be noted that before executing step 801, the first electronic device may first establish a connection path with the cloud platform. Of course, in some embodiments, the first electronic device may also establish a connection path with the cloud platform during the process of sending the first contact information as described below. This application embodiment does not impose specific restrictions on this.
[0126] As described above, any electronic device can communicate with the cloud platform via the TCP / IP protocol to establish a connection path with the cloud platform. Therefore, the first electronic device establishes a communication path with the cloud platform via the TCP / IP protocol.
[0127] Step 802: In response to the access operation, the first electronic device sends the first access information to the cloud platform.
[0128] It should be noted that the first access information is used to indicate that at least one electronic device, including the first electronic device, should be added to the corresponding device set. This first access information includes a first set identifier and at least one device identifier, the at least one device identifier including the device identifier of the first electronic device. The first set identifier is the identifier of the first device set to which the first electronic device is to be added.
[0129] As an example, a cloud platform may include at least one set of devices, each set of devices having a unique set identifier. Therefore, in order to determine the set of devices to which the first electronic device should join, the first access information may carry the first set identifier.
[0130] To improve the efficiency of adding multiple electronic devices to the first device set, the first access information may include at least one device identifier, that is, it may request to add the first electronic device to the first device set, or it may request to add multiple electronic devices, including the first electronic device, to the first device set.
[0131] It should be noted that the electronic devices corresponding to the at least one device identifier belong to the same production line. When there are multiple devices, the other device identifiers among the multiple device identifiers, except for the device identifier of the first electronic device, can be considered as the device identifiers of the device to be sent. That is, the device identifier of the device to be sent is the device identifier of the electronic device to communicate with the first electronic device.
[0132] As an example, the first access information may include not only a first set identifier and at least one device identifier, but also a line identifier, which is used to indicate the identifier of the production line where the first electronic device is located. In other words, the line identifier is the identifier of the line communication space corresponding to the production line where the first electronic device is located in the cloud platform.
[0133] It should be noted that the first access information can be sent to the cloud platform in the form of a message. For example, the data frame format of the message sent by the electronic device to the cloud platform can be as follows: Figure 9As shown, this data frame may include a first information category (info_type), a device self-information identifier (asset_num), a line information identifier (line_node), a group information identifier (group_name), a first device to be sent identifier (send_asset_num), and data. The first information category indicates the category of information sent by the first electronic device to the cloud platform, and different information categories can be represented by different numbers. For example, when the first information category is the number 0, it indicates that the information belongs to the category of device information; when the first information category is the number 1, it indicates that the information belongs to the category of control information. The device self-information identifier indicates the electronic device sending the information. For example, when the first electronic device sends first contact information to the cloud platform, the device self-information identifier can be the device identifier of the first electronic device, and the device identifier of the first electronic device can be the MAC address or device asset SN of the first electronic device. The line information identifier indicates the corresponding line communication space; when the line information identifier is a line identifier, the line identifier can be a string, such as xxx. The group information identifier indicates the corresponding device group. For example, the group information identifier is a first group identifier, and the first group identifier can be a string, such as xxx. The first device identifier is used to indicate the device to be transmitted (the device to be transmitted is another electronic device communicating with the first electronic device). The first device identifier may include at least one device identifier, each of which may be a string, such as xxx. The data is used to indicate that the image of the electronic device and other electronic devices is the data being transmitted. For example, if the image of the first electronic device and other electronic devices is me, the data indicates the first data of the first electronic device.
[0134] For ease of understanding, this application provides an example of a first electronic device sending a message to a cloud platform.
[0135]
[0136]
[0137] Step 803: The cloud platform receives the first access information.
[0138] In some embodiments, when the cloud platform receives the first access information, it can parse the first access information to obtain all the information included in the first access information, such as at least one device identifier, a first set identifier, etc.
[0139] Step 804: The cloud platform adds the electronic device corresponding to each device identifier in at least one device identifier to the first device set based on the first set identifier.
[0140] Since a first device set may have already been created in the cloud platform before the first electronic device sends the first access information, the cloud platform can add the electronic device corresponding to each of the at least one device identifiers to the first device set based on the first set identifier. Alternatively, the first device set may not have been created in the cloud platform before the first electronic device sends the first access information. In this case, the cloud platform can create the first device set based on the first set identifier and then add the electronic device corresponding to each of the at least one device identifiers to the first device set.
[0141] As an example, an electronic device can have multiple lists of identifiers, each corresponding to a set identifier. That is, the device set can exist as a list in the cloud platform. Thus, the cloud platform can check if a corresponding identifier list exists based on the first set identifier. If an identifier list corresponding to the first set identifier exists, it is determined that the first device set has been created. If no identifier list corresponding to the first set identifier exists, it is determined that the first device set has not been created.
[0142] As an example, if a first set of devices already exists, the cloud platform can add each device identifier from at least one device identifier to the corresponding identifier list. If a first set of devices does not exist, the cloud platform can create an identifier list corresponding to the identifiers of the first set (i.e., create a first set of devices) and add each device identifier from at least one device identifier to the created identifier list.
[0143] It should be noted that the first set of devices may exist in the form of a list or in other forms. In this embodiment of the application, only the first set of devices in the form of a list is used as an example for illustration, and it does not limit other forms of existence of the first set of devices.
[0144] As described above, the first access information may also include a line identifier. In this case, upon receiving the first access information, the cloud platform can determine whether a corresponding line communication space exists based on the line identifier. If a line communication space corresponding to the line identifier exists, it will then determine whether a corresponding first device set exists based on the first set identifier. If no line communication space corresponding to the line identifier exists, the cloud platform can create a corresponding line communication space based on the line identifier. After creating the line communication space, it will create a first device set based on the first set identifier.
[0145] Since the first device set will not exist if there is no corresponding line communication space for the line identifier, the cloud platform can directly create the first device set based on the first set identifier after creating the line communication space.
[0146] It should be noted that all electronic devices in the communication space of this production line belong to the same production line, and at least one device set can be set in this communication space, with each device set including at least one electronic device. If there are multiple such device sets, there may be some overlap in electronic devices between each device set, and / or there may be no overlap in electronic devices between the different device sets.
[0147] For example, see Figure 10 The first line of communication space contains multiple sets of devices, namely device set A1, device set A2, device set A3, device set A4, and device set A5. Among them, device set A1 includes a dispensing device and a robotic arm; device set A2 includes a robotic arm and a gap detection device; device set A3 includes devices B1 and B2; device set A4 includes devices B3 and B4; and device set A5 includes devices B5 and B6.
[0148] It should be noted that electronic devices within the same device set use the same communication protocol, while different device sets may use different communication protocols. Typically, different device sets use different communication protocols and can achieve interconnection of different functions.
[0149] For example, see the above. Figure 10 The device consists of multiple sets of devices. The electronic devices in set A1 communicate with each other using communication protocol 1, that is, the robot and the dispensing device communicate using communication protocol 1. The electronic devices in set A2 communicate with each other using communication protocol 2, that is, the robot and the gap detection device communicate using communication protocol 2.
[0150] It is worth noting that since each device set corresponds to a communication protocol, the cloud platform can quickly determine the communication protocol used by the electronic device that needs to communicate based on the set identifier. This enables communication between different devices, speeds up the query of communication protocols, and improves the communication efficiency between electronic devices.
[0151] Since multiple electronic devices in the same device set need to use the same communication protocol, the operation of the cloud platform to add the electronic device corresponding to each device identifier in at least one device identifier to the first device set according to the first set identifier may further include: if the first device set already exists, determining the communication protocol used by the electronic devices in the first device set according to the first set identifier to obtain the first communication protocol; if at least one electronic device indicated by at least one device identifier supports the first communication protocol, adding the electronic device corresponding to each device identifier in at least one device identifier to the first device set; if there is an electronic device among the at least one electronic device indicated by at least one device identifier that does not support the first communication protocol, returning a first prompt message to the first electronic device, the first prompt message carrying the device identifier of a third electronic device, the third electronic device being an electronic device among at least one electronic device that does not support the first communication protocol, and the first prompt message being used to indicate that the third electronic device cannot be added to the first device set.
[0152] In some embodiments, if a first device set does not exist, a first device identifier is created based on a first set identifier, and the communication protocols supported by each of the at least one electronic device indicated by the at least one device identifier are obtained. A first communication protocol is selected as the communication protocol corresponding to the first device set, and the first communication protocol is the communication protocol supported by each of the at least one electronic device. The electronic device corresponding to each of the at least one device identifiers is added to the first device set. If a commonly supported first communication protocol cannot be obtained from the at least one electronic device, a second prompt message is returned to the first electronic device. The second prompt message indicates that the at least one electronic device cannot form a device set, and the second prompt message may carry the communication protocol supported by each electronic device.
[0153] Step 805: The cloud platform broadcasts the information of the newly added electronic device to each electronic device in the first device set.
[0154] It should be noted that electronic device information includes the device identifier or other information of the electronic device.
[0155] For example, to facilitate communication between other electronic devices in the first device set and newly added electronic devices, the cloud platform can broadcast the device identifier of the newly added device to each electronic device in the first device set. Alternatively, for ease of management, the cloud platform can assign a tag to the newly added electronic device and broadcast the tag to each electronic device in the first device set.
[0156] As an example, the label can be set according to requirements. For example, the label can be at least one of the order of joining the first set of devices, time, etc. This application does not impose specific restrictions on this.
[0157] For example, the first device set originally includes device A1, device A2 and device A3. After the first electronic device is added to the first device set, the cloud platform can set the tag of the first electronic device to 04 and broadcast the tag 04 to device A1, device A2 and device A3.
[0158] It should be noted that the cloud platform may also omit the operation of step 805, and this embodiment of the application does not impose specific restrictions on this.
[0159] Step 806: The first electronic device sends the first contact information to the cloud platform.
[0160] It should be noted that the first contact information includes the first set identifier and the first data of the first electronic device.
[0161] In some embodiments, after the first electronic device is added to the first device set, the first electronic device may actively send the first contact information to the cloud platform or passively send the first contact information to the cloud platform.
[0162] As an example, the first contact information may carry not only the first set identifier and the first data, but also other information. For example, the first contact information may also carry the device identifier of the first electronic device, the device identifier of the second electronic device, the line identifier, etc. This application embodiment does not impose specific limitations on this.
[0163] Step 807: The cloud platform receives the first contact information.
[0164] Step 808: The cloud platform parses the first contact information.
[0165] As an example, by parsing the first contact information, the cloud platform can obtain all the information written in the first contact information, such as the first set identifier and the first data carried in the first contact information. Of course, if the first contact information also carries other information, the cloud platform can also obtain that other information. For example, the cloud platform can obtain the device identifier of the second electronic device, the line identifier, and the device identifier of the first electronic device, etc.
[0166] Step 809: The cloud platform sends the first data to the second electronic device in the first device set according to the first set identifier.
[0167] As can be seen from the above, the first contact information may carry different information. Depending on the different information carried in the first contact information, the cloud platform will send the first data to the second electronic device in the first device set according to the first set identifier.
[0168] In one possible implementation, the first contact information includes a first set identifier and first data. In this case, the operation of the cloud platform to send the first data to the second electronic device in the first set of devices according to the first set identifier includes: obtaining the device identifier of each electronic device in the first set of devices according to the first set identifier, obtaining at least one device identifier, the at least one device identifier including the device identifier corresponding to the second electronic device; and broadcasting the first data to each electronic device according to the at least one device identifier.
[0169] Since the first set of devices includes the second electronic device, broadcasting the first data to each electronic device based on at least one device identifier ensures that the second electronic device also receives the first data.
[0170] Sometimes, a cloud platform may connect to a production line but not to other connected production lines. In such cases, a single production line communication space exists within the cloud platform. The cloud platform does not need to determine the production line communication space where the first set of devices resides. Furthermore, since there are no device sets with the same set identifier across different production line communication spaces, the first set of devices can be identified using its first set identifier, eliminating the need to determine the production line communication space.
[0171] In another possible implementation, in addition to the first set identifier and the first data, the first contact information may also include the device identifier of the second electronic device. In this case, the cloud platform obtains the device identifier of each electronic device in the first device set based on the first set identifier. After obtaining at least one device identifier, it can also search for the existence of the device identifier of the second electronic device from the at least one device identifier. If the device identifier of the second electronic device exists in the at least one device identifier, the first data is sent to the second electronic device.
[0172] In another possible implementation, the first contact information may include a line identifier in addition to the first set identifier, the first data, and the device identifier of the second electronic device. In this case, the cloud platform determines the corresponding line communication space based on the line identifier, and within the determined line space, obtains the first device set based on the first set identifier. It then obtains the device identifier of each electronic device from the first device set, resulting in at least one device identifier; searches for the existence of a device identifier for the second electronic device among the at least one device identifier; and if the device identifier of the second electronic device exists among the at least one device identifier, sends the first data to the second electronic device.
[0173] Since there may be sets of devices with the same set identifier between different line communication spaces, in order to accurately identify the second electronic device, the cloud platform can determine the corresponding line communication space based on the line identifier, and then determine the first set of devices from the determined line communication space.
[0174] As an example, the cloud platform can also send relevant information (e.g., first data) to the second electronic device in the form of a message, or send relevant information (e.g., a prompt message or subsequent second data) to the first electronic device in the form of a message. For example, the data frame style of the message sent by the cloud platform to the electronic device can be as follows: Figure 11 As shown, this data frame may include a second information type (info_type), a line information identifier (line_node), a group information identifier (group_name), a second receiving device identifier (received_asset_num), and data. The second information type indicates the category of information sent by the cloud platform to the electronic device. Different information categories can be represented by different numbers; for example, 0 indicates that the information belongs to the category of device information, 1 indicates that the information belongs to the category of control information, and -1 indicates an information parsing error. For example, if the cloud platform parses the first contact information incorrectly, it will send the message to the first electronic device. The second receiving device identifier indicates the electronic device receiving the information. For example, a second receiving device identifier of 0 indicates that the cloud platform is broadcasting to each electronic device in the current device set; or, a second receiving device identifier of 1-n (a label set for each electronic device in the current device set) indicates that the cloud platform is sending information to the electronic device corresponding to the receiving identifier; or, the second receiving device identifier is the device identifier of the electronic device receiving the information.
[0175] For ease of understanding, this application provides an example of a cloud platform sending messages to a second electronic device.
[0176]
[0177]
[0178] Step 810: The second electronic device receives the first data.
[0179] Step 811: The second electronic device performs control operations based on the first data.
[0180] In some embodiments, after receiving the first data, the second electronic device does not need to provide feedback to the first electronic device. The first electronic device can proactively ascertain whether the status of the second electronic device meets the requirements. Alternatively, the first electronic device can repeatedly execute the operation of sending the first contact information to the cloud platform. In this case, the operations of steps 806-811 above can be repeated until the operation of step 812 below is executed.
[0181] It should be noted that the control operations performed by the second electronic device may vary depending on the first electronic device, the second electronic device, and the first data. This application does not impose specific limitations on this aspect.
[0182] For example, the first electronic device can be the gap detection device mentioned above, the first data can be the gap size information between the detection frame and the touch screen, and the second electronic device can be the robotic arm mentioned above. Thus, the control operation performed by the second electronic device based on the gap size information between the detection frame and the touch screen can be: adjusting the position of the detection frame and / or the touch screen.
[0183] In some embodiments, the second electronic device can also provide message feedback to the first electronic device. For example, the second electronic device sends second contact information to the cloud platform, the second contact information including a first set identifier and second data of the second electronic device. The cloud platform receives the second contact information sent by the second electronic device and parses the second contact message. The cloud platform can send the second data to the first electronic device according to the first set identifier to realize communication between the first electronic device and the second electronic device.
[0184] It should be noted that the operation of the cloud platform sending the second data to the first electronic device according to the first set identifier can refer to the operation of sending the first data to the second electronic device according to the first set identifier, and this application embodiment will not elaborate on this point.
[0185] As an example, depending on the first electronic device, the second electronic device, and the first data, the second data sent by the second electronic device will also be different, and this application embodiment does not impose specific limitations on this.
[0186] For example, when the first data is a request to view device data, the second data sent by the second electronic device can be the collected device data.
[0187] Step 812: The first electronic device receives the disconnection operation.
[0188] Because the first electronic device may malfunction, be removed from the production line, or be temporarily out of service, it can passively trigger a disconnection operation in these situations. Alternatively, when communication between the first electronic device and other electronic devices in the first device set is not required, the user can disconnect the first electronic device, and the first electronic device will then receive the disconnection operation.
[0189] Step 813: In response to the disconnection operation, the first electronic device sends the first disconnection information to the cloud platform.
[0190] It should be noted that the first disconnection information may include the device identifier, the first set identifier, and the line identifier of the first electronic device, or the first disconnection information may include the device identifier and the first set identifier of the first electronic device. This application embodiment will not elaborate on these points one by one.
[0191] As an example, the initial disconnection information can also be sent to the cloud platform in the form of a message, and the data frame format of this message can be referenced as described above. Figure 9 The data frame styles shown are not described in detail in this embodiment.
[0192] Step 814: The cloud platform receives the first disconnection information sent by the first electronic device.
[0193] In some embodiments, after receiving the first disconnection information sent by the first electronic device, the cloud platform can also parse the first disconnection information to obtain the device identifier and the first set identifier of the first electronic device included in the first disconnection information. Alternatively, it can obtain the device identifier, line identifier, and the first set identifier of the first electronic device included in the first disconnection information.
[0194] Step 815: The cloud platform removes the first electronic device from the first device set based on the first set identifier.
[0195] In some embodiments, where the first disconnection information includes a first set identifier and a device identifier of a first electronic device, the cloud platform can obtain the first device set based on the first set identifier and delete the device identifier of the first electronic device from the first device set to remove the first electronic device from the first device set.
[0196] In some embodiments, where the first disconnection information includes a line identifier, a first set identifier, and a device identifier of the first electronic device, the cloud platform can determine the corresponding line communication space based on the line identifier, and obtain the corresponding first device set from the line communication space based on the first set identifier. Then, the device identifier of the first electronic device is deleted from the first device set to remove the first electronic device from the first device set.
[0197] Step 816: After the cloud platform removes the first electronic device from the first device set, if there are still multiple other electronic devices in the first device set, the cloud platform can broadcast the deletion information to each of the other multiple electronic devices.
[0198] It should be noted that this deletion message is used to indicate that the first electronic device has been removed from the first device set and communication with the first electronic device can no longer continue.
[0199] Step 817: If the device identifier of one electronic device remains in the first device set, the cloud platform will delete the first device set.
[0200] In some embodiments, the cloud platform may delete the first device set if only one electronic device remains in the first device set. Alternatively, the cloud platform may delete the first device set if only one electronic device identifier remains in the first device set, but delete the first identification set if no electronic device identifier exists in the first device set. This application does not impose specific limitations on this approach.
[0201] Step 818: After the first device set is deleted, if there are no other device sets in the line communication space where the first device set is located, the cloud platform deletes the line communication space.
[0202] It should be noted that the cloud platform can delete line communication spaces that do not contain device sets. In this way, when the cloud platform searches for other line communication spaces in the future, it reduces the amount of data to be queried for line communication spaces, which not only avoids waste of resources, but also avoids interference with other line communication spaces.
[0203] In some embodiments, during the communication between the first electronic device and the second electronic device, either the first electronic device or the second electronic device may receive a disconnection operation. If the second electronic device receives a disconnection operation, then the operations described in steps 806-811 above will not be performed again, and after the second electronic device receives a disconnection operation, the subsequent related operations are the same as those of the first electronic device receiving a disconnection operation. This embodiment of the application will not elaborate on these details.
[0204] In this embodiment, since the first electronic device and the second electronic device can communicate through the cloud platform, and no additional hardware devices are required when communication is achieved, such as buses, control centers, multi-protocol gateway adapters, etc., the communication cost is reduced, the communication operation is simplified, and the communication efficiency is improved.
[0205] It should be noted that the above description uses the communication method of multiple devices interacting to achieve communication between electronic devices as an example. Next, to further understand the embodiments of this application, the method will be described using a cloud platform as the execution subject as an example. Please refer to [link / reference]. Figure 12 , Figure 12 This is a schematic flowchart illustrating a communication method for an electronic device according to another exemplary embodiment. As an example and not a limitation, the method may include some or all of the following:
[0206] Step 1201: Receive the first contact information sent by the first electronic device.
[0207] It should be noted that the first contact information includes a first set identifier and the first data of the first electronic device. The first set identifier is the identifier of the first device set in which the first electronic device is located after accessing the cloud platform.
[0208] As an example, a cloud platform may include at least one set of devices, each of which includes at least one electronic device, and there may be some overlap of electronic devices between the various sets of devices, and / or there may be no overlap of electronic devices between the various sets of devices.
[0209] For example, see Figure 10 In the first linear communication space, there are overlapping electronic devices in device sets A1 and A2. These overlapping electronic devices are "robotic arms," meaning the "robotic arm" is present in both device set A1 and device set A2. In the first linear communication space, there are no overlapping electronic devices between device sets A3, A4, A5, and A1, nor between device sets A3, A4, A5, and A2.
[0210] As an example, at least one electronic device in the same set of devices communicates using the same communication protocol, while different sets of devices use different communication protocols.
[0211] It is worth noting that since different sets of devices use different communication protocols, the cloud platform can quickly determine the communication protocol used by the electronic device that needs to communicate based on the set identifier. This enables communication between different devices, speeds up the query of communication protocols, and improves the communication efficiency between electronic devices.
[0212] As an example, when the first electronic device is in an operational state, it can proactively send first contact information to the cloud platform. For instance, the first electronic device may send first contact information to the cloud platform at specified time intervals, or after performing a specified control operation. Alternatively, the first electronic device may send first contact information to the cloud platform upon receiving a user operation.
[0213] It should be noted that this specified time interval can be preset according to requirements, for example, it can be 10 seconds, 30 seconds, etc.
[0214] In some embodiments, the cloud platform may also set the set of devices to which the first electronic device is located before receiving the first contact information sent by the first electronic device.
[0215] For example, the cloud platform can receive first access information sent by a first electronic device, the first access information including a first set identifier and at least one device identifier, the at least one device identifier including the device identifier of the first electronic device, the first access information being sent when the first electronic device receives an access operation; according to the first set identifier, the electronic device corresponding to each device identifier in the at least one device identifier is added to the first device set.
[0216] As an example, at least one device identifier corresponds to an electronic device that has established a connection path with the cloud platform before being added to the first device set.
[0217] It should be noted that at least one device identifier corresponds to an electronic device that can communicate with the cloud platform via the TCP / IP protocol to establish a connection path with the cloud platform.
[0218] In some embodiments, the first electronic device may trigger an access operation when it needs to communicate with other electronic devices. This access operation may be initiated by the first electronic device itself, or it may be triggered after a user performs a relevant operation on the first electronic device.
[0219] It is worth noting that by adding the first electronic device to the corresponding first device set, it is convenient for the first electronic device to communicate with other electronic devices in the same device set without the need to deploy additional hardware devices, thus reducing the cost of communication between electronic devices.
[0220] In some embodiments, the operation of the cloud platform to add the electronic device corresponding to each of the at least one device identifiers to the first device set according to the first set identifier includes: adding each of the at least one device identifiers to the first device set if the first device set indicated by the first set identifier exists; or, if the first device set does not exist, creating the first device set according to the first set identifier and adding the at least one device identifier to the first device set.
[0221] Since a first device set may have already been created in the cloud platform before the first electronic device sends the first access information, the cloud platform can add the electronic device corresponding to each of the at least one device identifiers to the first device set based on the first set identifier. Alternatively, the first device set may not have been created in the cloud platform before the first electronic device sends the first access information. In this case, the cloud platform can create the first device set based on the first set identifier and then add the electronic device corresponding to each of the at least one device identifiers to the first device set.
[0222] It is worth noting that the first set of devices is created by using the first set identifier, thereby ensuring the uniqueness of the first set of devices.
[0223] In some embodiments, the first access information may include not only a first set identifier and at least one device identifier, but also a line identifier, which indicates the production line where the first electronic device is located. Depending on the information included in the first access information, the operation of adding the electronic device corresponding to each of the at least one device identifiers to the first device set based on the first set identifier includes: if a line communication space indicated by the line identifier exists, adding the electronic device corresponding to each of the at least one device identifiers to the first device set based on the first set identifier; or, if a line communication space indicated by the line identifier does not exist, creating a line communication space based on the line identifier, and adding the electronic device corresponding to each of the at least one device identifiers to the first device set within the line communication space based on the first set identifier.
[0224] It should be noted that the specific operation of the cloud platform adding the electronic device corresponding to each device identifier in at least one device identifier to the first device set according to the first set identifier can refer to the operation in step 804 above, and this application embodiment will not elaborate on it one by one.
[0225] It is worth noting that by determining the first set of devices after determining the line communication space, the accuracy of determining the first set of devices is ensured.
[0226] In some embodiments, after the cloud platform adds the electronic device corresponding to each of the at least one device identifiers to the first device set according to the first set identifier, it may also broadcast the information of the newly added electronic device to each electronic device in the first device set.
[0227] It should be noted that electronic device information includes the device identifier or other information of the electronic device.
[0228] For example, to facilitate communication between other electronic devices in the first device set and newly added electronic devices, the cloud platform can broadcast the device identifier of the newly added device to each electronic device in the first device set. Alternatively, for ease of management, the cloud platform can assign a tag to the newly added electronic device and broadcast the tag to each electronic device in the first device set.
[0229] As an example, the label can be set according to requirements. For example, the label can be at least one of the order of joining the first set of devices, time, etc. This application does not impose specific restrictions on this.
[0230] Step 1202: Send first data to the second electronic device in the first device set according to the first set identifier.
[0231] As described above, information between electronic devices and the cloud platform can exist in the form of messages, and the cloud platform can send messages to each electronic device in a broadcast manner, or send messages to a specific electronic device. Therefore, the way the cloud platform sends the first data to the second electronic device in the first device set according to the first set identifier can include different operations.
[0232] In some embodiments, the operation of the cloud platform sending first data to a second electronic device in a first device set according to a first set identifier includes: obtaining a device identifier for each electronic device in the first device set according to the first set identifier, obtaining at least one device identifier, wherein the at least one device identifier includes a device identifier corresponding to the second electronic device; and broadcasting the first data to each electronic device according to the at least one device identifier.
[0233] It is worth noting that since the first set of devices includes the second electronic device, broadcasting the first data to each electronic device based on at least one device identifier can ensure that the second electronic device also receives the first data.
[0234] In some embodiments, the first contact information carries the device identifier of the second electronic device. In this case, the electronic device obtains the device identifier of each electronic device in the first device set according to the first set identifier. After obtaining at least one device identifier, it can also send the first data to the second electronic device if the device identifier of the second electronic device is present in at least one device identifier.
[0235] It is worth noting that by sending the first data in a targeted manner, communication resources can be avoided and the messages sent by the cloud platform can be made more targeted.
[0236] In some embodiments, after the cloud platform sends first data to the second electronic device, the second electronic device can perform certain operations based on the first data. These operations may or may not be related to the first electronic device. For example, after the cloud platform sends the first data to the second electronic device, the first electronic device may continue to repeatedly execute the operation of sending first contact information to the cloud platform until the first electronic device and / or the second electronic device loses connection with the cloud platform. Alternatively, the second electronic device can provide message feedback to the first electronic device based on the first data, such as sending second contact information to the cloud platform. In this way, the cloud platform can perform the operation in step 1203 below.
[0237] Step 1203: Receive the second contact information sent by the second electronic device.
[0238] It should be noted that the second contact information includes the first set identifier and the second data of the second electronic device. This second contact information is sent by the second electronic device after receiving the first data.
[0239] In some embodiments, after receiving the second contact information, the cloud platform can parse the second contact information to obtain the first set identifier and the second data of the second electronic device in the second contact information.
[0240] In some embodiments, the second contact information may also include the device identifier and line identifier of the first electronic device, but this application embodiment does not impose specific limitations on this.
[0241] Step 1204: Based on the first set identifier, send the second data to the first electronic device to realize bidirectional communication between the first electronic device and the second electronic device.
[0242] It should be noted that the operation of the cloud platform sending the second data to the first electronic device based on the first set identifier can refer to the operation of the cloud platform sending the first data to the second electronic device based on the first set identifier described above. This application embodiment will not elaborate on this point again.
[0243] As can be seen from the above, after the cloud platform sends the first data to the second electronic device, the first electronic device and / or the second electronic device may lose connection with the cloud platform, or after the cloud platform sends the second data to the first electronic device, the first electronic device and / or the second electronic device may lose connection with the cloud platform. In this case, the cloud platform can receive the disconnection information. Next, we will take the example of the first electronic device sending the disconnection information to the cloud platform to illustrate the situation.
[0244] In some embodiments, the cloud platform receives first disconnection information sent by a first electronic device, the first disconnection information including a first set identifier and a device identifier of the first electronic device, the first disconnection information being sent when the first electronic device receives a disconnection operation; based on the first set identifier, the first electronic device is removed from the first device set.
[0245] Because the first electronic device may malfunction, be removed from the production line, or be temporarily out of use, it can passively trigger a disconnection operation in these situations. Alternatively, when communication between the first electronic device and other electronic devices in the first device set is not required, the user can disconnect the first electronic device. In response to this disconnection operation, the first electronic device can send a first disconnection message to the cloud platform.
[0246] It is worth noting that upon receiving a disconnection notification, the cloud platform avoids wasting communication resources by removing the disconnected electronic device from the corresponding device set.
[0247] In some embodiments, after the cloud platform removes the first electronic device from the first device set based on the first set identifier, if there is one device identifier remaining in the first device set, the first device set is deleted.
[0248] Since there is no electronic device in the first device set that can communicate with the electronic device corresponding to the device identifier when there is only one device identifier left, the cloud platform can delete the first device set in order to save resources.
[0249] In some embodiments, after a first electronic device is removed from a first device set based on a first set identifier, if there are still multiple other electronic devices in the first device set, the cloud platform may broadcast the deletion information to each of the other multiple electronic devices.
[0250] It should be noted that this deletion message is used to indicate that the first electronic device has been removed from the first device set and communication with the first electronic device can no longer continue.
[0251] In some embodiments, if only one device identifier remains in the first device set, the cloud platform deletes the first device set, and if there are no other device sets in the line communication space where the first device set is located, the line communication space is deleted.
[0252] It is worth noting that by deleting the line communication space where there is no device set, the cloud platform reduces the number of queries to line communication spaces when searching for other line communication spaces. This not only avoids wasting resources but also avoids interfering with other line communication spaces.
[0253] In this embodiment, since the first electronic device and the second electronic device can communicate through the cloud platform, and no additional hardware devices are required when communication is achieved, such as buses, control centers, multi-protocol gateway adapters, etc., the communication cost is reduced, the communication operation is simplified, and the communication efficiency is improved.
[0254] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer, or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., Digital Versatile Discs (DVDs)), or semiconductor media (e.g., Solid State Disks (SSDs)).
[0255] The above-described embodiments are optional embodiments provided by this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the technical scope disclosed in this application should be included within the protection scope of this application.
Claims
1. A communication method for an electronic device, characterized in that, When applied to a cloud platform, the method includes: Receive first contact information sent by a first electronic device, the first contact information including a first set identifier and first data of the first electronic device, the first set identifier being the identifier of the first device set in which the first electronic device is located after accessing the cloud platform; Based on the first set identifier, the first data is sent to the second electronic device in the first device set; The device receives a second contact message sent by the second electronic device. The second contact message includes the first set identifier and the second data of the second electronic device. The second contact message is sent by the second electronic device after receiving the first data. Based on the first set identifier, the second data is sent to the first electronic device to realize communication between the first electronic device and the second electronic device.
2. The method as described in claim 1, characterized in that, The cloud platform includes at least one set of devices, each set of devices includes at least one electronic device, and there are some overlapping electronic devices between the sets of devices, and / or there are no overlapping electronic devices between the sets of devices. At least one electronic device in the same set of devices communicates using the same communication protocol, while different sets of devices use different communication protocols.
3. The method as described in claim 1 or 2, characterized in that, Sending the first data to the second electronic device in the first device set according to the first set identifier includes: Based on the first set identifier, obtain the device identifier of each electronic device in the first device set to obtain at least one device identifier, wherein the at least one device identifier includes the device identifier corresponding to the second electronic device; The first data is broadcast to each of the at least one device identifier.
4. The method as described in claim 3, characterized in that, The first contact information carries the device identifier of the second electronic device; After obtaining the device identifier of each electronic device in the first device set based on the first set identifier, and obtaining at least one device identifier, the method further includes: If the device identifier of the second electronic device is present in the at least one device identifier, the first data is sent to the second electronic device.
5. The method according to any one of claims 1-4, characterized in that, Before receiving the first contact information sent by the first electronic device, the method further includes: The device receives first access information sent by the first electronic device. The first access information includes the first set identifier and at least one device identifier. The at least one device identifier includes the device identifier of the first electronic device. The first access information is sent when the first electronic device receives an access operation. Based on the first set identifier, the electronic device corresponding to each device identifier in the at least one device identifier is added to the first device set.
6. The method as described in claim 5, characterized in that, The first access information also includes a line identifier, which is used to indicate the identifier of the production line in which the first electronic device is located; The step of adding the electronic device corresponding to each device identifier in the at least one device identifier to the first device set according to the first set identifier includes: If a line communication space indicated by the line identifier exists, the electronic device corresponding to each of the at least one device identifiers is added to the first device set according to the first set identifier; or... In the absence of a line communication space indicated by the line identifier, the line communication space is created according to the line identifier, and the electronic device corresponding to each of the at least one device identifiers is added to the first device set within the line communication space according to the first set identifier.
7. The method as described in claim 5 or 6, characterized in that, The step of adding the electronic device corresponding to each device identifier in the at least one device identifier to the first device set according to the first set identifier includes: If the first set of devices indicated by the first set identifier exists, each device identifier from the at least one device identifier is added to the first device set; or, If the first device set does not exist, the first device set is created based on the first set identifier, and the at least one device identifier is added to the first device set.
8. The method according to any one of claims 1-7, characterized in that, After sending the second data to the first electronic device according to the first set identifier, the method further includes: Receive first disconnection information sent by the first electronic device, the first disconnection information including the first set identifier and the device identifier of the first electronic device, the first disconnection information is sent when the first electronic device receives a disconnection operation; Based on the first set identifier, the first electronic device is removed from the first device set.
9. The method as described in claim 8, characterized in that, After removing the first electronic device from the first device set according to the first set identifier, the method further includes: If only one device identifier remains in the first device set, delete the first device set.
10. The method as described in claim 9, characterized in that, If only one device identifier remains in the first device set, after deleting the first device set, the method further includes: If there are no other device sets within the line communication space where the first device set is located, the line communication space is deleted.
11. A communication system, characterized in that, The communication system includes a first electronic device, a second electronic device, and a cloud platform. The first electronic device and the second electronic device are both communicatively connected to the cloud platform, and the first electronic device and the second electronic device are located in the same set of devices in the cloud platform. In response to the first operation, the first electronic device sends first contact information to the cloud platform. The first contact information includes a first set identifier and first data of the first electronic device. The first set identifier is the identifier of the first device set in which the first electronic device is located after accessing the cloud platform. Upon receiving the first contact information, the cloud platform sends the first data to the second electronic device based on the first set identifier; Upon receiving the first data, the second electronic device sends a second contact information to the cloud platform, the second contact information including the first set identifier and the second data of the second electronic device; Upon receiving the second contact information, the cloud platform sends the second data to the first electronic device based on the first set identifier.
12. A cloud platform, characterized in that, The cloud platform includes a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, it causes the cloud platform to implement the method as described in any one of claims 1-10.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when run on a cloud platform, cause the cloud platform to perform the method as described in any one of claims 1-10.
14. A computer program product, characterized in that, Includes a computer program, which, when run, causes the method as described in any one of claims 1-10 to be performed.