An interaction method and an interaction system of an electronic device

CN122718352APending Publication Date: 2026-09-08SHANGHAI BAOSIGHT SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610905127.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-23
Publication Date
2026-09-08

AI Technical Summary

Technical Problem

[0004]本发明提供一种电子设备的交互方法和交互系统,以解决电子设备之间执行任务的快速响应的缺乏实时性的技术问题

Benefits of technology

[0015]The beneficial effects of this invention are as follows: By setting different first and second preset frequencies for the process of the first electronic device publishing task announcements, the first electronic device can be discovered and authenticated by the second electronic device earlier. This avoids the long waiting time required for the first electronic device to be discovered due to the fixed-period task announcement publishing. Furthermore, after the first preset duration, the first preset frequency is reduced to the second preset frequency, preventing the first electronic device from continuously publishing task announcements at a high frequency and consuming a large amount of bandwidth in the Industrial Internet of Things (IIoT). Setting a fast retransmission mechanism and a mechanism to avoid duplicate transmission for the second electronic device prevents the second electronic device from having to wait a long time to resend a lost response announcement. It also avoids repeatedly sending response announcements for task announcements from the same first electronic device, thus avoiding the consumption of a large amount of bandwidth in the IIoT and improving the efficiency of discovery and authentication between the first and second electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122718352A_ABST
    Figure CN122718352A_ABST
Patent Text Reader

Abstract

The application provides an interaction method of an electronic device, which is applied to a first electronic device and a second electronic device, and has the characteristics that the first electronic device successively publishes task announcements at a first preset frequency and a second preset frequency, the task announcement carries a first device identifier and first network address information of the first electronic device; the second electronic device receives at least one task announcement from the first electronic device, sends a reply announcement corresponding to the task announcement to the first electronic device, and records the first device identifier, the first network address information and a sending identifier of the reply announcement; and the second electronic device performs a matching authentication process. The method avoids repeatedly sending reply announcements for task announcements from the same first electronic device, avoids occupying a large amount of bandwidth in an industrial internet of things, and improves the discovery and authentication efficiency between the first electronic device and the second electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of the Industrial Internet of Things (IIoT), and more particularly to an interaction method and system for electronic devices. Background Technology

[0002] With the development of the Industrial Internet of Things (IIoT), there is an urgent need for high reliability of electronic devices connected to the IIoT. Data Distribution Service (DDS), as a core service in the IIoT field, enables mutual discovery and authentication among electronic devices connected to the IIoT, as well as task distribution and execution, through Participant Discovery Protocol (PDP), configurable Quality of Service (QoS), and other features. In the IIoT environment, DDS offers significant advantages for efficient interconnection and real-time task processing among a large number of electronic devices.

[0003] However, the discovery, authentication, and communication modes between the aforementioned electronic devices are insufficient to meet the real-time requirements for rapid response in large-scale industrial IoT scenarios. Therefore, an efficient discovery and announcement strategy method suitable for DDS is needed. Summary of the Invention

[0004] This invention provides an interaction method and system for electronic devices to solve the technical problem of lack of real-time performance in the rapid response of electronic devices in performing tasks.

[0005] The present invention provides an interaction method for electronic devices, applied to a first electronic device and a second electronic device, characterized in that it includes: the first electronic device sequentially publishing task announcements at a first preset frequency and a second preset frequency, the task announcements carrying a first device identifier and a first network address information of the first electronic device; the second electronic device receiving at least one task announcement from the first electronic device, recording the first device identifier and the first network address information along with the sending identifier of a reply announcement; and the second electronic device executing a target task and sending a reply announcement corresponding to the task announcement to the first electronic device.

[0006] In one embodiment of the present invention, the first electronic device publishes a task announcement at a first preset frequency and a second preset frequency, including: after a first preset duration, the first electronic device publishes a task announcement at a second preset frequency lower than the first preset frequency.

[0007] In one embodiment of the present invention, the method further includes: retransmitting the reply announcement to the first electronic device at a preset number of retransmissions within a second preset duration, wherein the preset number of retransmissions is at least two, and the retransmission interval is less than the second preset duration.

[0008] In one embodiment of the present invention, the method further includes: if the second electronic device determines that multiple task announcements carry device identifiers that are all the first device identifiers of the first electronic device, then the receiving time of a target task announcement among the multiple task announcements is obtained; if the time difference between the receiving time and the current time is less than a third preset duration, then the reply announcement corresponding to the target task announcement is ignored and sent to the first electronic device.

[0009] In one embodiment of the present invention, the method further includes: if the second electronic device determines that there are multiple task announcements carrying different device identifiers and that the network address information is the first network address information of the first electronic device, then it ignores sending the reply announcements corresponding to the multiple task announcements to the first electronic device.

[0010] In one embodiment of the present invention, the method further includes: if the second electronic device determines that a sending identifier of a sent reply announcement associated with the first device identifier and the first network address information already exists, then the sending of the reply announcement to the first electronic device is ignored.

[0011] In one embodiment of the present invention, the method further includes: determining that the first device identifier and the first network address information carried in the task announcement belong to the device identifier and network address information corresponding to the recording electronic device.

[0012] The second aspect of the present invention discloses an interaction method for an electronic device, comprising: receiving at least one task announcement and sending a reply announcement to the target electronic device corresponding to the task announcement; if it is determined that multiple task announcements carry device identifiers that are all device identifiers of the target electronic device, then obtaining the reception time of one of the target task announcements; if the time difference between the reception time and the current time is less than a preset duration, then ignoring sending the reply announcement corresponding to the target task announcement to the target electronic device.

[0013] In one embodiment of the present invention, the method further includes: if it is determined that there are multiple task announcements carrying different device identifiers and the network address information is the network address information of the target electronic device, then the method ignores sending the reply announcements corresponding to the multiple task announcements to the target electronic device.

[0014] The third aspect of the present invention discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the interactive method of the first aspect.

[0015] The beneficial effects of this invention are as follows: By setting different first and second preset frequencies for the process of the first electronic device publishing task announcements, the first electronic device can be discovered and authenticated by the second electronic device earlier. This avoids the long waiting time required for the first electronic device to be discovered due to the fixed-period task announcement publishing. Furthermore, after the first preset duration, the first preset frequency is reduced to the second preset frequency, preventing the first electronic device from continuously publishing task announcements at a high frequency and consuming a large amount of bandwidth in the Industrial Internet of Things (IIoT). Setting a fast retransmission mechanism and a mechanism to avoid duplicate transmission for the second electronic device prevents the second electronic device from having to wait a long time to resend a lost response announcement. It also avoids repeatedly sending response announcements for task announcements from the same first electronic device, thus avoiding the consumption of a large amount of bandwidth in the IIoT and improving the efficiency of discovery and authentication between the first and second electronic devices. Attached Figure Description

[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0017] In the attached diagram: Figure 1 This is an application scenario for task distribution between electronic devices provided in an embodiment of the present invention; Figure 2 This is a flowchart of an interaction method for an electronic device provided in one embodiment of the present invention; Figure 3 This is a flowchart of an interaction method for an electronic device provided in one embodiment of the present invention; Figure 4 This is an architecture diagram of an interactive system for performing an interactive method for an electronic device, provided in one embodiment of the present invention. Figure 5 This is a structural diagram of an electronic device providing an interactive system according to an embodiment of the present invention. Detailed Implementation

[0018] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0019] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. The drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.

[0020] In the following description, numerous details are explored to provide a more thorough explanation of embodiments of the invention. However, it will be apparent to those skilled in the art that embodiments of the invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the invention.

[0021] Please see Figure 1 , Figure 1 This is an application scenario for task distribution between electronic devices provided in an embodiment of the present invention, such as... Figure 1 The illustration shows an application scenario of a smart factory 10. In smart factory 10, assembly line 101 can contain multiple workstations, each consisting of a robot 1011 and a material buffer 1012. Additionally, assembly line 101 includes a transport vehicle 1013 responsible for transferring materials between different workstations. All these devices are connected to the Industrial Internet of Things (IIoT) as independent electronic devices. Each electronic device, including robot 1011, material buffer 1012, and transport vehicle 1013, can act as a DDS node, enabling task announcement publishing, task processing, and task collaborative control within the IIoT through DDS's publish / subscribe announcement feature. Here, "publish / subscribe announcement" refers to the electronic device declaring its need to publish or receive certain types of tasks by publishing / broadcasting announcements within the IIoT's configured announcement publishing channel.

[0022] Both robot 1011 and material buffer 1012 can publish material request task announcements, and transport vehicle 1013 can focus on receiving / subscribing to these announcements. For example, robot 1011 at a workstation completes product assembly, but there are no raw materials in material buffer 1012. In this case, robot 1011 must stop working. Robot 1011 or material buffer 1012 can publish a material request task announcement in the Industrial Internet of Things (IIoT). After discovering the material request task announcement, transport vehicle 1013 sends a response announcement to robot 1011 or material buffer 1012. After receiving the response announcement, robot 1011 or material buffer 1012 completes authentication with transport vehicle 1013. Then, transport vehicle 1013 will deliver materials to material buffer 1012. In this scenario, if robot 1011 or material buffer 1012 issues material request task announcements at a fixed, low frequency, such as once per second, transport vehicle 1013 may only receive the announcement 5 seconds after it is issued. In addition, the time required for authentication between transport vehicle 1013 and robot 1011 or material buffer 1012, as well as the time required for transporting materials to material buffer 1012, will cause robot 1011 to stop working for a longer period of time, affecting the efficiency of assembly line 101.

[0023] To address the aforementioned latency issue arising when electronic devices publish / subscribe to announcements to perform task processing, one embodiment of the present invention provides an interaction method for electronic devices, comprising: a first electronic device publishing a task announcement at a first preset frequency, wherein the task announcement carries a first device identifier (GUID, GloballyUnique Identifier) ​​and a first network address information of the first electronic device; if a reply announcement is received to a second electronic device, and the reply announcement is confirmed to be valid, a response request is sent to the second electronic device, and the publication of the task announcement can be stopped; after a first preset duration, a task announcement is published at a second preset frequency, wherein the second preset frequency is lower than the first preset frequency.

[0024] It can be seen that in the initial stage of the first electronic device issuing a task announcement, by setting a high frequency (e.g., once every 50 milliseconds) for issuing the task announcement, the first electronic device can be detected by the second electronic device in a short time. After the first preset duration, the task announcement is further issued at a low frequency (e.g., once every 500 milliseconds) to avoid the first electronic device continuously issuing task announcements at a high frequency, thus avoiding the occupation of a large amount of bandwidth in the industrial IoT. This continues until discovery and authentication are completed with the second electronic device. The interaction method of the above electronic devices also includes: the second electronic device obtains the task announcement of the first electronic device, verifies the first device identifier and first network address information carried in the task announcement, and after successful verification, sends a reply announcement to the first electronic device, and records the first device identifier and first network address information and the sending identifier of the sent reply announcement. The reply announcement carries the second device identifier and second network address information of the second electronic device. If the second preset duration has elapsed, the reply announcement is resent to the first electronic device (based on a preset number of resentments).

[0025] It can be seen that after the second electronic device discovers the task announcement issued by the first electronic device, the second electronic device completes the verification of the task announcement and immediately sends a reply announcement to the first electronic device. If the second electronic device confirms that the second preset time period has passed, it can resend the reply announcement to the first electronic device multiple times with a preset number of resends, so as to promote the first electronic device and the second electronic device to complete the discovery and authentication as soon as possible.

[0026] The interaction method of the aforementioned electronic devices further includes: if the second electronic device continuously receives multiple task announcements, and the device identifier carried by the multiple task announcements is the same as the first device identifier corresponding to the first electronic device, then the second electronic device determines the reception time corresponding to the multiple task announcements. If the difference between the reception time and the current time is less than a third preset duration, then the second electronic device does not send a reply announcement to the first electronic device for the task announcement corresponding to that reception time, that is, it ignores the subsequent processing of this task announcement and avoids duplicate responses. This prevents the electronic device from issuing task announcements due to network jitter or periodic retransmissions, reduces reply announcements for duplicate task announcements, and reduces the occupation of redundant messages in the Industrial Internet of Things (IIoT), thereby reducing the useless traffic generated in the IIoT.

[0027] Meanwhile, if the second electronic device determines that multiple task announcements carry different device identifiers, but the network address information is the same as the first network address information corresponding to the first electronic device, the second electronic device only sends a reply announcement to the first electronic device corresponding to the first network address information; and if the task announcement carries both the first device identifier and the first network address information, and it is determined that the first device identifier and the first network address information already exist and match the sending identifier of the previously sent reply announcement, then sending a reply announcement to the first electronic device is ignored. This avoids repeated discovery of the first electronic device that is already stably connected, reducing unnecessary processing overhead.

[0028] It can be seen that by setting different first and second preset frequencies for the process of the first electronic device issuing task announcements, the first electronic device can be discovered and authenticated by the second electronic device earlier. This avoids the long waiting time required for the first electronic device to be discovered when issuing task announcements at a fixed period. Furthermore, after the first preset duration, the first preset frequency is reduced to the second preset frequency, preventing the first electronic device from continuously issuing task announcements at a high frequency and consuming a large amount of bandwidth in the industrial IoT. Setting up a fast retransmission mechanism and a mechanism to avoid duplicate transmissions for the second electronic device prevents it from having to wait a long time to resend a lost response announcement. It also avoids repeatedly sending response announcements for task announcements from the same first electronic device, thus avoiding the consumption of a large amount of bandwidth in the industrial IoT and improving the efficiency of discovery and authentication between the first and second electronic devices.

[0029] Please see Figure 2 , Figure 2 This is a flowchart of an interaction method for an electronic device according to an embodiment of the present invention. The interaction method is applied to a first electronic device and a second electronic device, and includes: Step S201: The first electronic device publishes a task announcement at a first preset frequency. The task announcement carries the first device identifier and the first network address information of the first electronic device.

[0030] In some embodiments, a first device identifier is used to uniquely identify a first electronic device, and the first network address information may include the IP address and port of the first electronic device in the Industrial Internet of Things (IIoT). The first electronic device can be identified in the IIoT through either the first device identifier or the first network address information.

[0031] Continue to refer to Figure 1For example, the first electronic device could be robot 1011, responsible for engine assembly. The second electronic device could be transport vehicle 1013, responsible for transporting bolt assemblies. The industrial IoT of smart factory 10 can be based on a 5G DDS communication environment. Robot 1011 and transport vehicle 1013 can be managed through an interactive system. At this time, robot 1011 has completed bracket positioning and needs bolt assemblies for tightening, but the material buffer area 1012 corresponding to robot 1011 lacks bolt assemblies, which are stored in the storage area of ​​smart factory 10. Transport vehicle 1013 is waiting at the charging station, 20 meters away from robot 1011, and the total time from the task announcement of the material request issued by robot 101 to the delivery of bolt assemblies to material buffer area 1012, as specified by the interactive system, does not exceed 15 seconds. At this time, the first electronic device issues a task announcement at a first preset frequency. Robot 1011 enters a high-frequency request publishing mode, publishing task announcements on the Industrial Internet of Things (IIoT) at a preset frequency of 50 milliseconds (20 times per second). Task announcements can be published in message form, such as carrying at least the first network address information: "192.168.10.103:7400" and the first device identifier "ROBORT_1011". Task announcements can also carry other information, such as the task name: "Material / Request". Robot 101 can publish 20 task announcements per second.

[0032] Step S202: The first electronic device determines whether the first preset duration has elapsed.

[0033] In some embodiments, the first preset duration can be 5.0 seconds, and robot 101 can publish 100 task announcements within the first preset duration. If so, proceed to step S203, and robot 1011 enters a low-frequency request publishing mode. Otherwise, return to step S201.

[0034] Step S203: The first electronic device issues a task announcement by setting a second preset frequency at a low frequency.

[0035] In some embodiments, the second preset frequency is 500 milliseconds (i.e., twice per second). When publishing task announcements in the Industrial Internet of Things (IIoT), the task announcement can be the same as the one in step S201. It can be seen that by first setting a high-frequency first preset frequency for publishing task announcements (e.g., once per 50 milliseconds), and then, after a first preset duration, further setting a low-frequency second preset frequency for publishing task announcements (e.g., once per 500 milliseconds), the first electronic device is prevented from continuously publishing task announcements at a high frequency.

[0036] Step S204: The second electronic device obtains the task announcement, determines that the task announcement comes from the first electronic device, and further determines whether the task announcement is valid.

[0037] In some embodiments, the second electronic device may be a transport vehicle 1013, which may be configured with a second device identifier: AGV_Material_1013 and second network address information, such as 192.168.10.205:7400. The process by which the second electronic device determines whether the task announcement is valid may involve determining whether the first device identifier and first network address information carried in the task announcement belong to the database corresponding to the electronic device in the smart factory 10. If the second electronic device determines that the task announcement is valid, it executes step S205, returning a reply announcement corresponding to the task announcement to the first electronic device, further completing discovery and authentication with the first electronic device. If the task announcement is determined to be invalid, the second electronic device continues to wait to receive the next task announcement, that is, the second electronic device discards the message corresponding to the task announcement and records an error log.

[0038] For example, 2 seconds after robot 1011 publishes the task announcement, transport vehicle 1013 receives the task announcement for the first time. Transport vehicle 1013 then begins to parse the task announcement and obtain the information carried in the task announcement, such as: first network address information: "192.168.10.103:7400" and first device identifier "ROBORT_1011", etc.

[0039] Step S205: The second electronic device sends a reply announcement to the first electronic device, the reply announcement carrying the second device identifier and the second network address information of the second electronic device.

[0040] In some embodiments, the second electronic device sends a reply announcement to the first electronic device and records the first device identifier and the first network address information along with the sending identifier of the reply announcement. The sending identifier is used to determine that the second electronic device has received the correct task announcement and that the task announcement originated from the first electronic device.

[0041] For example, the reply announcement returned by the transport vehicle 1013 to the robot 1011 may include: a second device identifier: AGV_Material_1013 and second network address information, such as: 192.168.10.205:7400, etc.

[0042] Step S206: The second electronic device determines whether the second preset duration has elapsed.

[0043] In some embodiments, if after a second preset duration, it indicates that there may be a temporary network outage in the Industrial Internet of Things (IIoT), which may cause the response announcement of the second electronic device to be lost, or that the first electronic device has a brief malfunction and needs to be urged to respond as soon as possible, then step S207 is executed, and the second electronic device can resend the response announcement to the first electronic device (up to a preset number of resends). Otherwise, the second electronic device performs a matching authentication process.

[0044] For example, the second preset duration here can be 1 second. One second after the transport vehicle 1013 sends the reply announcement, the transport vehicle 1013 can determine that the robot 1011 has not received the reply announcement and needs to resend the reply announcement.

[0045] Step S207: The second electronic device resends the reply announcement to the first electronic device a preset number of retransmissions.

[0046] In some embodiments, the preset number of retransmissions can be 3, and the retransmission interval can be 50 milliseconds.

[0047] Step S208: The second electronic device performs the matching authentication process.

[0048] In some embodiments, after discovery and authentication are completed between the first electronic device and the second electronic device through task announcements and response announcements, the second electronic device can perform a matching authentication process, which may include data channel establishment, etc. After the matching authentication process is completed, the transport vehicle 1013 can transport the bolt assembly from the storage area of ​​the smart factory 10 to the material buffer area 1012 corresponding to the robot 1011.

[0049] Figure 2 The described interaction method for electronic devices can be applied to multiple first electronic devices and multiple second electronic devices. For a first electronic device, it will reply with a response request to the second electronic device corresponding to the first received response announcement. For a second electronic device, it will execute the task announcement from the first electronic device that first received the response request. Furthermore, after a first electronic device replies with a response request to a second electronic device, it may choose not to publish a task announcement.

[0050] It can be seen that by initially using high-frequency task announcements from the first electronic device, the time it takes for the second electronic device to detect the first electronic device can be shortened. After a first preset duration, high-frequency / low-frequency adaptive switching is achieved, optimizing network resource utilization. If the second electronic device detects that the first electronic device has not responded in time, multiple retransmissions are made to prompt the first electronic device to respond promptly. This contributes to improving the production efficiency and economic benefits of smart factories.

[0051] During the execution of steps S204 and S205, if the second electronic device continuously acquires multiple task announcements, the second electronic device needs to further judge the multiple task announcements, such as... Figure 3 As shown, it includes: Step S301: The second electronic device receives multiple task announcements in succession.

[0052] In some embodiments, the second electronic device continuously receives multiple task announcements, which may all originate from the first electronic device or multiple electronic devices including the first electronic device.

[0053] Step S302: Determine whether multiple task announcements have undergone a matching authentication process. In some embodiments, the second electronic device may store multiple device identifiers that have been matched with the second electronic device. For example, the second electronic device may have stored the first device identifier (GUID) corresponding to the first electronic device. If multiple task announcements carry at least one or all of the first device identifiers corresponding to the first electronic device, it indicates that the first electronic device and the second electronic device have undergone a matching authentication process. In this case, the second electronic device does not need to respond quickly to the announcements and can proceed to step S306 to maintain stable periodic announcements. Otherwise, the second electronic device needs to further proceed to step S303 to determine whether it needs to switch to quick response announcements.

[0054] Step S303: Determine whether the difference between the receiving time of each task announcement and the current time is less than the third preset duration.

[0055] In some embodiments, the third preset duration can be set to 200 milliseconds. If the difference between the reception time of each of the multiple task announcements and the current time is less than the third preset duration, then step S304 needs to be executed for further determination. If not, then step S307 is executed, indicating that the task announcement is not due to repeated publication by the first electronic device, and the quick announcement is executed directly.

[0056] Step S304: Determine whether the device identifiers carried by multiple task announcements are different.

[0057] In some embodiments, if yes, then step S305 is executed to further determine whether the network address information is the same as that of the first electronic device, i.e., the same first network address information. Otherwise, step S306 is executed to continue maintaining stable periodic announcements.

[0058] Step S305: Determine whether the network address information of multiple task announcements is the first network address information.

[0059] In some embodiments, if the second electronic device determines that the device identifiers carried by multiple task announcements are different, but the network address information is the first network address information corresponding to the first electronic device, then step S306 is executed: do not send a fast response announcement, maintain a stable periodic announcement; otherwise, step S307 is executed to send a fast response announcement.

[0060] Step S306: Ignore the reply announcement corresponding to the target task announcement sent to the first electronic device.

[0061] In some embodiments, if the reception time of the target task announcement is less than the third preset duration, and the device identifiers carried by multiple task announcements are different or the network address information is the first network address information, it indicates that the target task announcement is a task announcement that is repeatedly sent in a short period of time. The reply announcement can be ignored, that is, the fast response announcement is not sent, and the stable periodic announcement is maintained.

[0062] Step S307: Send a response announcement.

[0063] As can be seen, step S307 here can realize the technical solution of sending a fast response announcement. By setting a fast retransmission mechanism and a mechanism to avoid duplicate transmission for the second electronic device, it can avoid the second electronic device having to wait for a long time to retransmit the response announcement after losing it. At the same time, it avoids repeatedly sending response announcements for task announcements from the same first electronic device, thus avoiding the occupation of a large amount of bandwidth in the industrial Internet of Things and improving the efficiency of discovery and authentication between the first and second electronic devices.

[0064] It is understandable that the above Figure 2 and Figure 3 The numerical values ​​described are exemplary, and various numerical values ​​can be used in the various embodiments of the present invention, and there is no limitation thereto.

[0065] Figure 4 This is an architecture diagram of an interaction system 40 for performing an interaction method of an electronic device according to an embodiment of the present invention. The interaction system 40 includes: an announcement sending module 401, an announcement receiving module 402, and an adaptive adjustment announcement mechanism module 403.

[0066] The announcement sending module 401 is used to quickly complete the discovery of DDS nodes in the Industrial Internet of Things (IIoT), and the local participant (the aforementioned first electronic device, i.e., Figure 1Robot 1011 in the context of the Industrial Internet of Things (IIoT) immediately initiates the initial high-frequency task announcement transmission after being enabled during the announcement phase. During this initial rapid announcement phase, the task announcement transmission interval (e.g., 200 milliseconds), the total number of transmissions (2), and the initial announcement duration (5 seconds) are all adjustable and configurable parameters. The announcement content includes the GUID of the local participant and network information (unicast IP + port, multicast group address + port), etc. By rapidly and densely disseminating task announcements, the IIoT ensures that peer nodes (e.g., within the IIoT) can effectively communicate with each other. Figure 1 The transport vehicle 1013 quickly detects the presence of local participants, reducing the initial discovery delay from the traditional second level to the millisecond level. After the initial rapid announcement phase ends, i.e., when the current time exceeds the duration of the initial announcement, the announcement sending mode switches to the stable periodic announcement phase. In this phase, the announcement sending interval is different, and the announcement content is consistent with that in the initial rapid announcement phase, but the announcement sending interval is significantly reduced compared to the initial rapid announcement phase, maintaining the visibility of local participants while reducing network traffic consumption under normal conditions.

[0067] Announcement receiving module 402 When local participants (e.g.: Figure 1 After the transport vehicle (1013) receives the task announcement from the peer node, the processing of the announcement receiving module 402 is divided into the following stages: verifying the validity of the task announcement and triggering a rapid response announcement. First, the validity of the task announcement is verified by checking its completeness and legality, and then parsing fields such as the GUID and network information in the task announcement. If verification or parsing fails, the task announcement is discarded and an error log is recorded. The next stage is the rapid response announcement triggering stage. After successful verification, the announcement receiving module 402 immediately generates and sends a response announcement, containing only key information such as the GUID of the local participant. The specific rules are as follows: Initial response: After receiving and successfully parsing the peer announcement, a response announcement is immediately sent to ensure that the peer participant quickly perceives the existence of the local participant. If no response request is received from the peer node within the specified time, multiple response announcements are resent to improve reliability and cope with network jitter or packet loss.

[0068] The adaptive adjustment announcement mechanism module 403 is used by local participants (e.g., Figure 1When a transport vehicle (1013) receives a task announcement from the same peer node within a time window: it records the timestamp of the received task announcement. If the difference between the current time and the received timestamp is within a certain range, it does not trigger the sending of a reply announcement and ignores the subsequent processing of this task announcement to avoid duplicate responses. This prevents duplicate announcements from the same node due to network jitter or periodic retransmissions, reduces redundant packets on the network, and lowers useless traffic. When a local participant receives a task announcement with different GUIDs but the same network information within a time window, its corresponding processing logic is as follows: it maintains a "network information-GUID set" mapping table, recording all peer nodes with the same network information. If the network information of the current task announcement already exists in the mapping table, it does not trigger the sending of a reply announcement. The goal is to avoid repeatedly sending response packets to the same network information in common multicast communication scenarios in application environments. It queries the local participant's matched peer nodes. If the GUID corresponding to the peer node already exists and is consistent with the key information of the previous task announcement, the receiving and response process of this task announcement can be directly ignored, and the next peer node discovery process can be performed. Avoid repeatedly discovering peer nodes that are already stably connected, thus reducing unnecessary processing overhead.

[0069] like Figure 5 As described above, the present invention provides a method for operation Figure 2 The electronic device 50 of the interactive system shown may include a memory 501, a processor 502 and a bus, and may also include computer programs stored in the memory 501 and executable on the processor 502, such as the various functional modules of the interactive system.

[0070] The memory 501 includes at least one type of readable storage medium, such as flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 501 can be an internal storage unit of the electronic device 50, such as the portable hard drive of the electronic device 50. In other embodiments, the memory 501 can also be an external storage device of the electronic device 50, such as a plug-in portable hard drive, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, etc., equipped on the electronic device 50. Furthermore, the memory 501 can include both internal and external storage units of the electronic device 50. The memory 501 can be used not only to store application software and various types of data installed on the electronic device 50, such as task distribution code of an interactive system, but also to temporarily store data that has been output or will be output.

[0071] In some embodiments, the processor 502 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits packaged with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 502 is the control unit of the electronic device 50, connecting various components of the electronic device 50 via various interfaces and lines. It executes programs or modules (such as control programs for interactive systems) stored in the memory 501, and calls data stored in the memory 501 to perform various functions of the electronic device 50 and process data.

[0072] The processor 502 executes the operating system and various installed applications of the electronic device 50. The processor 502 executes the applications to implement the steps in the interaction method of the electronic device in the above-described interactive system.

[0073] For example, the computer program may be divided into one or more modules, which are stored in the memory 501 and executed by the processor 502 to complete this application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program in the electronic device 50.

[0074] The integrated units implemented as software functional modules described above can be stored in a computer-readable storage medium, which can be non-volatile or volatile. The software functional modules stored in the storage medium include several instructions to cause a computer device (which may be a personal computer, computer equipment, or network device, etc.) or processor to execute part of the interactive methods of the electronic devices in the interactive systems of the various embodiments of this application.

[0075] In one embodiment, a storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, it can also perform the steps described above when the processor executes the computer program.

[0076] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.

Claims

1. An interaction method for electronic devices, applied to a first electronic device and a second electronic device, characterized in that, include: The first electronic device publishes a task announcement at a first preset frequency and a second preset frequency, and the task announcement carries the first device identifier and the first network address information of the first electronic device. The second electronic device receives at least one task announcement from the first electronic device, records the first device identifier and the first network address information and the sending identifier of the reply announcement, and sends the reply announcement corresponding to the task announcement to the first electronic device; The second electronic device performs the matching authentication process.

2. The method according to claim 1, characterized in that, The first electronic device sequentially issues task announcements at a first preset frequency and a second preset frequency, including: After a first preset duration, the first electronic device publishes the task announcement at a second preset frequency lower than the first preset frequency.

3. The method according to claim 1, characterized in that, Also includes: Within a second preset duration, the second electronic device retransmits the response announcement to the first electronic device a preset number of retransmissions, wherein the preset number of retransmissions is at least two times and the retransmission interval is less than the second preset duration.

4. The method according to claim 1, characterized in that, Also includes: If the second electronic device determines that there are multiple task announcements in the at least one task announcement that carry the first device identifier of the first electronic device, then it obtains the reception time of a target task announcement among the multiple task announcements; If the time difference between the received time and the current time is less than the third preset duration, then the reply announcement corresponding to the target task announcement will not be sent to the first electronic device.

5. The method according to claim 4, characterized in that, Also includes: If the second electronic device determines that there are multiple task announcements with different device identifiers and the network address information of the first electronic device, then it will ignore sending the reply announcements corresponding to the multiple task announcements to the first electronic device.

6. The method according to claim 5, characterized in that, Also includes: If the second electronic device determines that a sending identifier for a sent reply announcement already exists and is associated with the first device identifier and the first network address information, then it ignores sending the reply announcement to the first electronic device.

7. The method according to claim 1, characterized in that, Also includes: It is determined that the first device identifier and the first network address information carried in the task announcement belong to the device identifier and network address information corresponding to the recording electronic device.

8. An interaction method for an electronic device, characterized in that, include: Upon receiving at least one task announcement, a response announcement is sent to the target electronic device corresponding to the task announcement; If it is determined that there are multiple task announcements in the at least one task announcement that carry device identifiers that are all device identifiers of the target electronic device, then the reception time of one target task announcement in the at least one task announcement is obtained; If the time difference between the received time and the current time is less than a preset duration, then the response announcement corresponding to the target task announcement will not be sent to the target electronic device.

9. The method according to claim 8, characterized in that, Also includes: If it is determined that there are multiple task announcements carrying different device identifiers, and the network address information is the network address information of the target electronic device, then the reply announcements corresponding to the multiple task announcements will not be sent to the target electronic device.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the interactive method as described in any one of claims 1 to 8.