Industrial internet docking station link maintenance control method and system

By detecting candidate peripheral insertion events in the industrial internet docking station, performing pre-enumeration, and determining the access duration, the problem of new peripheral access interfering with existing communication links is solved, thus achieving communication continuity and reliability of industrial equipment.

CN123048459APending Publication Date: 2026-11-06SHENZHEN RONGTUO E-COMMERCE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611149680.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-31
Publication Date
2026-11-06

AI Technical Summary

Technical Problem

In industrial internet expansion docks, the access of new peripherals can easily interfere with existing industrial communication links, leading to response delays, message retries, or short-term interruptions, making it difficult to guarantee communication continuity.

Method used

By collecting communication transaction data, detecting candidate peripheral insertion events, keeping candidate peripherals disconnected from the hub, performing pre-enumeration, determining the expected access duration, and switching candidate peripherals to the hub only when the continuous available time is sufficient, the standard enumeration process avoids crossing the service period of the next industrial communication transaction.

Benefits of technology

It improves the communication continuity of industrial equipment and the controllability of hot-swapping multiple peripherals in the docking station, reduces the instantaneous occupancy of shared paths and link interruptions caused by the access of new peripherals, and enhances the reliability of mobile maintenance in industrial sites.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123048459A_ABST
    Figure CN123048459A_ABST
Patent Text Reader

Abstract

This invention relates to the field of peripheral access control technology, and discloses an industrial internet docking station link maintenance control method and system. The method includes: collecting communication transaction data from industrial equipment ports and detecting candidate peripheral insertion events. When a candidate peripheral port shares the uplink data path of the main hub with an industrial equipment port, the candidate peripheral completes pre-enumeration via the peripheral detection path. The industrial communication transaction boundary is identified, the end time of the current transaction and the latest service time of the next transaction are determined, and the estimated access occupancy time and continuous availability time are calculated. If the continuous availability time meets the requirements, the candidate peripheral is switched to the main hub to perform standard enumeration; otherwise, it remains disconnected. If the standard enumeration is not completed on time, the candidate peripheral is disconnected. This invention improves the continuity of periodic communication of industrial equipment, the controllability of hot-swapping of multiple peripherals in the docking station, and the reliability of mobile maintenance in industrial fields.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of peripheral access control technology, and more specifically, to an industrial internet docking station link maintenance control method and system. Background Technology

[0002] With the development of the Industrial Internet and mobile maintenance technologies, host devices such as laptops and industrial tablets are often connected simultaneously to programmable logic controllers (PLCs), serial port acquisition devices, industrial Ethernet devices, and mobile storage devices via docking stations. This enables equipment debugging, parameter reading, operational data acquisition, and maintenance file transfer. Multiple peripheral ports in the docking station typically share the host device's data path and processing resources via a hub. Different peripherals have varying resource requirements during connection, identification, and data transmission. When industrial equipment continuously performs periodic communication tasks, the docking station not only needs to meet the access requirements of multiple peripherals but also needs to prevent changes in peripheral status from affecting established industrial communication links. Therefore, the communication continuity of the docking station during the access of multiple peripherals is crucial for mobile maintenance in industrial settings.

[0003] In the prior art, for example, Chinese invention patent application CN108959141A discloses a USB interface system, a method, apparatus, device, and storage medium for allocating USB bandwidth. It sets up a USB switching switch between the USB interface and multiple USB hubs, switching the USB device to the target USB hub that meets the bandwidth requirements based on the type of the newly inserted USB device and the current available bandwidth of each USB hub, thereby reducing the load on the main control chip and improving operational stability. However, when the docking station is already handling periodic industrial communication tasks, the access and initialization of new peripherals may still cause instantaneous changes in shared path resources, leading to response delays, message retries, or short-term interruptions in existing industrial communications. Allocating transmission paths based on peripheral type and currently available bandwidth makes it difficult to guarantee the continuity of existing industrial communication links during the dynamic access process of peripherals.

[0004] Therefore, it is necessary to design an industrial internet docking station link maintenance control method and system to solve the problems existing in the current technology. Summary of the Invention

[0005] In view of this, the present invention proposes an industrial internet expansion dock link maintenance control method and system, which aims to solve the problem that the industrial internet expansion dock is prone to interfering with the existing industrial communication link when connecting new peripherals.

[0006] This invention proposes an industrial internet docking station link maintenance control method, comprising: Collect communication transaction data from industrial equipment ports and detect candidate peripheral insertion events on candidate peripheral ports; Determine that the candidate peripheral port and the industrial equipment port share the uplink data path of the main hub, keep the candidate peripheral disconnected from the main hub, perform pre-enumeration through the peripheral detection path, and obtain the pre-enumeration duration and pre-enumeration completion time; The communication transaction data is used to identify transaction boundaries to obtain the end time of the current industrial communication transaction and the latest service time of the next industrial communication transaction. The estimated access occupancy time is determined based on the pre-enumeration time, port switching time, and candidate peripheral reset time. The remaining time from the later of the end time and the pre-enumeration completion time to the latest service time is taken as the continuous available time. If there is no remaining time, the continuous available time is zero. When the continuous available time is not less than the expected access occupancy time, the candidate peripheral is switched to the hub, and the host device performs standard enumeration; otherwise, the candidate peripheral remains disconnected from the hub. If the standard enumeration is completed before the latest service time, the candidate peripheral remains connected to the hub; if it is not completed by the latest service time, the candidate peripheral is disconnected from the hub.

[0007] Furthermore, the transaction boundary identification includes: Industrial request messages and industrial response messages are paired according to device identifier and transaction identifier, and the end time is the time when the industrial response message is received. The average sending interval of multiple industrial request messages is used as the transaction interval benchmark, and the latest service time is the time obtained by extending the transaction interval benchmark and the allowed delay time by the current industrial request message sending time.

[0008] Furthermore, determining the shared relationship includes: reading the port topology table; when the host identifier and uplink data path identifier of the candidate peripheral port are consistent with those of the industrial equipment port, it is determined that the uplink data path is shared.

[0009] Furthermore, the in-transit transaction isolation includes: when the candidate peripheral is inserted after the industrial request message is sent and before the paired industrial response message is received, it remains disconnected from the hub and performs the pre-enumeration; when the industrial response message is received within the preset response timeout period, the end time is determined; if it is not received, it remains disconnected and the continuous availability period is re-determined for the next complete industrial communication transaction.

[0010] Furthermore, the pre-enumeration includes: connecting the candidate peripherals to the probe controller only through a port data selector, and having the probe controller perform reset, address allocation, and description information reading; and using the duration from the first reset to the completion of description information reading and the completion time as the pre-enumeration duration and the pre-enumeration completion time, respectively.

[0011] Furthermore, the determination of the expected access occupancy time includes: matching historical enumeration records according to the description information; if there are records, taking the larger value between the pre-enumeration time and the maximum standard enumeration time in the records; if there are no records, taking the sum of the pre-enumeration time and the enumeration protection time; adding the port switching time and the candidate peripheral reset time to the obtained time as the expected access occupancy time.

[0012] Furthermore, the access switching includes: when the continuous available time is not less than the expected access occupancy time, disconnecting the candidate peripheral from the peripheral detection path, resetting the candidate peripheral, connecting the candidate peripheral to the main hub, and reporting the access event to the host device; otherwise, keeping the candidate peripheral disconnected from the main hub.

[0013] Furthermore, the standard enumeration completion determination includes: monitoring the device configuration request sent by the host device and the configuration confirmation response returned by the candidate peripheral; maintaining the connection when the configuration confirmation response is received before the latest service time; and disconnecting the candidate peripheral from the hub, resetting the candidate peripheral, and connecting it to the peripheral detection path when the latest service time has not been reached.

[0014] Furthermore, the early rollback control includes: recording the duration of each pre-enumerated stage, using the sum of the stage duration corresponding to the current and subsequent stages in the standard enumeration and the historical maximum duration of the device configuration stage as the remaining estimated duration; using the historical maximum duration from the candidate peripheral disconnection to the industrial equipment port to resume industrial communication transactions as the link recovery duration; disconnecting the candidate peripheral from the hub when the duration from the current time to the latest service time is not greater than the sum of the remaining estimated duration and the link recovery duration, otherwise maintaining the connection.

[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: By linking the access process of candidate peripherals with the time boundary of existing industrial communication transactions, the expansion dock does not immediately open the candidate peripherals to the host device after detecting the insertion of a candidate peripheral. Instead, it keeps the candidate peripherals disconnected from the main hub and completes pre-enumeration through the peripheral detection path, thereby obtaining the actual enumeration time required by the candidate peripherals without disturbing the existing industrial communication links. Subsequently, by combining the end time of the current industrial communication transaction, the latest service time of the next industrial communication transaction, the port switching duration, and the candidate peripheral reset duration, it determines whether the candidate peripherals have a complete and continuous access time window. Only when the continuous available time is sufficient to cover the entire access process will the candidate peripherals be switched to the main hub, avoiding the standard enumeration process from crossing the service period of the next industrial communication transaction. If the standard enumeration fails to complete on time, the candidate peripherals are disconnected from the main hub in a timely manner to prevent the incomplete standard enumeration from continuing to occupy the shared uplink data path and intruding into the service period of the next industrial communication transaction. Therefore, this solution can control the access timing from the source where candidate peripherals are visible to the host device, reducing the instantaneous occupation of shared paths, response delays, message retry and short-term link interruptions caused by new peripheral access and enumeration, thereby improving the continuity of industrial equipment cycle communication, the controllability of hot-plugging multiple peripherals in the expansion dock, and the reliability of mobile maintenance in industrial fields.

[0016] On the other hand, this application also provides an industrial internet docking station link maintenance control system for applying the above-mentioned industrial internet docking station link maintenance control method, including: The data acquisition module is used to collect communication transaction data from the ports of industrial equipment and detect candidate peripheral insertion events; The pre-enumeration module includes a peripheral detection path and a port data selector, which are used to keep the candidate peripherals disconnected from the hub and perform pre-enumeration to obtain the pre-enumeration duration and the pre-enumeration completion time. The duration determination module is used to determine the end time, latest service time, estimated access duration, and continuous available duration of industrial communication transactions. The access control module is used to control the candidate peripheral to access the hub based on the comparison result of the continuous available time and the expected access occupancy time, and disconnect the candidate peripheral from the hub if the standard enumeration is not completed before the latest service time.

[0017] It is understandable that the aforementioned industrial internet docking station link maintenance control method and system have the same beneficial effects, and will not be elaborated further here. Attached Figure Description

[0018] The accompanying drawings are used to illustrate the technical solutions of the present invention and do not constitute a limitation on the scope of protection of the present invention. The process nodes, regional relationships, and functional block diagrams in the drawings are used to illustrate the implementation methods of the embodiments of the present invention. In the drawings: Figure 1 A flowchart of an industrial internet docking station link maintenance control method provided in an embodiment of the present invention; Figure 2 This is a flowchart of the candidate peripheral access window determination process provided in an embodiment of the present invention; Figure 3 This is a flowchart of the early rollback control provided in an embodiment of the present invention; Figure 4 A schematic diagram of an industrial internet docking station link maintenance control system provided in an embodiment of the present invention. Detailed Implementation

[0019] The specific embodiments of the present invention will now be described with reference to the accompanying drawings. These embodiments are used to illustrate the technical solutions of the present invention and do not limit the scope of protection of the present invention. Unless otherwise specified, the embodiments and features described in the present invention can be combined with each other.

[0020] In some embodiments of this application, see Figure 1-3 As shown, this application proposes an industrial internet docking station link maintenance control method, including: S100: Collects communication transaction data from industrial equipment ports and detects candidate peripheral insertion events on candidate peripheral ports.

[0021] S200: Determine the uplink data path of the hub shared by the candidate peripheral port and the industrial equipment port, keep the candidate peripheral disconnected from the hub, perform pre-enumeration through the peripheral detection path, and obtain the pre-enumeration duration and pre-enumeration completion time.

[0022] S300: Perform transaction boundary identification on communication transaction data to obtain the end time of the current industrial communication transaction and the latest service time of the next industrial communication transaction.

[0023] S400: The estimated access duration is determined based on the pre-enumeration duration, port switching duration, and candidate peripheral reset duration. The remaining time between the later of the end time and the pre-enumeration completion time and the latest service time is taken as the continuous available time. If there is no remaining time, the continuous available time is zero.

[0024] S500: When the continuous available time is not less than the expected access occupancy time, the candidate peripheral is switched to the hub, causing the host device to perform standard enumeration. Otherwise, the candidate peripheral remains disconnected from the hub.

[0025] S600: If the standard enumeration is completed before the latest service time, the candidate peripheral remains connected to the hub. If it is not completed by the latest service time, the candidate peripheral is disconnected from the hub.

[0026] Specifically, the control method provided in this embodiment is applicable to scenarios where a host device connects to industrial equipment via a docking station, and candidate peripherals such as mobile storage devices, network cards, or video capture devices are connected during the continuous periodic communication of the industrial equipment. The docking station is pre-configured with a hub, a probe controller, and a port data selector. The hub connects to the host device, the probe controller reads the information of the candidate peripherals when they are invisible to the host device, and the port data selector switches the candidate peripherals between the hub, the probe controller, and a disconnected state. The port data selector uses a mutually exclusive switching method; a candidate peripheral cannot be connected to both the hub and the probe controller simultaneously, preventing the probe controller and the host device from sending control requests to the candidate peripheral at the same time.

[0027] Communication transaction data is obtained through the transaction monitoring interface of the hub, or the transmit / receive queue of the serial port conversion controller or network interface controller connected to the industrial equipment port. It includes at least the port identifier, transmission direction, message content, and timestamp. When using the hub's transaction monitoring interface, the docking station assigns the transmission record to the corresponding industrial equipment port based on the port number and endpoint number. In cases where the same industrial equipment continuously sends multiple industrial request messages, the first industrial response message with the same device identifier and transaction identifier, received later than the industrial request message's transmission time, and within the preset response timeout period, is paired with the corresponding industrial request message. If no industrial response message is received after the preset response timeout period, the corresponding industrial communication transaction is marked as an abnormal transaction.

[0028] The docking station collects industrial request and response messages transmitted from industrial equipment ports and records the device identifier, transaction identifier, sending time, and receiving time of each message. The device identifier distinguishes different industrial devices, while the transaction identifier pairs industrial request and response messages within the same industrial communication transaction. For industrial communication protocols where the message does not directly carry a transaction identifier, it can be generated based on the device address, function type, message sequence number, and message content. The docking station uses the receiving time of the industrial response message as the end time of the current industrial communication transaction and calculates the sending interval of the most recent adjacent industrial request messages, using the average sending interval as the transaction interval benchmark. The number of industrial request messages used to determine the transaction interval benchmark is preset by the maintenance program to be between 10 and 50; this embodiment uses 20. When the communication cycle configuration of an industrial device changes, the previous sending interval record is cleared, and the transaction interval benchmark is updated after acquiring at least 10 new sending intervals.

[0029] The allowed delay duration is preferentially adopted based on the allowed transmission delay specified by the industrial communication protocol or maintenance procedure. When the communication protocol does not specify an allowed transmission delay, the maximum positive deviation of the actual transmission interval from the transaction interval reference is obtained from historical communication transactions without timeouts or retries, and the communication clock error is added as the allowed delay duration. The communication clock error is the sum of the message acquisition timestamp resolution and the hub's single scheduling cycle, or the maximum deviation between the pre-calibrated docking station acquisition clock and the host device's time reference. The docking station extends the transmission time of the current industrial request message by the transaction interval reference and the allowed delay duration to obtain the latest service time of the next industrial communication transaction. The latest service time represents the latest time when the next industrial request message should begin transmission or enter the host device's processing queue, not the expected end time of the next industrial communication transaction.

[0030] After a candidate peripheral is inserted into a candidate peripheral port, the docking station reads the port topology table. This table is pre-generated based on the docking station's internal physical connections, recording at least the host hub identifier and uplink data path identifier for each port. When both the host hub identifier and uplink data path identifier are identical between the candidate peripheral port and the industrial equipment port, it is determined that the two ports share the host hub's uplink data path. In this case, the port data selector keeps the candidate peripheral disconnected from the host hub and connects the candidate peripheral only to the detection controller, ensuring that the physical insertion of the candidate peripheral does not immediately generate an access event recognizable by the host device.

[0031] If either the hub identifier or the uplink data path identifier is inconsistent, it is determined that the candidate peripheral port does not share the same uplink data path as the industrial equipment port. The port data selector connects the candidate peripheral to the hub, and the host device performs standard enumeration. Subsequent access window determination is performed for the case of shared uplink data paths.

[0032] The probe controller performs pre-enumeration on candidate peripherals, including resetting the candidate peripherals, allocating temporary addresses, and reading device description information. The device description information includes at least the device category, device model, protocol version, and configuration quantity, used to identify candidate peripherals and match historical enumeration records. Pre-enumeration does not load the host device driver, nor does it put the candidate peripherals into the normal data transmission state facing the host device. The probe controller records the start time of the first reset and the completion time of the description information reading, using the duration between these two times as the pre-enumeration duration, and the completion time of the description information reading as the pre-enumeration completion time.

[0033] The port switching duration begins when the port data selector receives the switching command and ends when the target path connection status output by the port data selector stabilizes. The candidate peripheral reset duration begins when the reset command is issued and ends when the candidate peripheral enters the default state. Both the port switching duration and the candidate peripheral reset duration are tested at least five times before the docking station is put into operation, with the maximum value obtained from the tests used as the initial value. If a larger value is obtained during operation, the corresponding initial value is updated. The historical standard enumeration duration begins when the hub reports the candidate peripheral access event to the host device and ends when a configuration confirmation response from the candidate peripheral is received.

[0034] The docking station determines the estimated time required for candidate peripherals to complete formal access based on the pre-enumeration duration. If a historical enumeration record matching the device description information exists, the standard enumeration duration in the matching record is read, and the larger of the pre-enumeration duration and the maximum standard enumeration duration is selected. Matching records can be filtered based on device category, device model, and protocol version to avoid mixing candidate peripherals with different enumeration characteristics. If no matching record exists, an enumeration protection duration is added to the pre-enumeration duration. The enumeration protection duration is set based on the maximum difference between the standard enumeration duration and the pre-enumeration duration among historical candidate peripherals of the same data rate level. If the docking station has not yet generated historical records, the maximum difference obtained from pre-testing can be used. The obtained duration is then further increased by the port switching duration and the candidate peripheral reset duration to form the estimated access time.

[0035] The docking station compares the end time of the current industrial communication transaction with the completion time of the pre-enumeration, and determines the later of the two times as the starting point of the window for candidate peripherals to begin formal access. If the window starting point is earlier than the latest service time of the next industrial communication transaction, the duration from the window starting point to the latest service time is taken as the continuous available time. If the window starting point is equal to or later than the latest service time, the continuous available time is set to zero. Using the later time as the window starting point avoids mistakenly including the time before the industrial communication transaction ends or the pre-enumeration is completed in the available access time of candidate peripherals.

[0036] When the continuous availability time is not less than the expected access occupancy time, the port data selector first disconnects the candidate peripheral from the detection controller, then resets the candidate peripheral, and connects the candidate peripheral to the hub. The hub then reports the candidate peripheral access event to the host device, which performs standard enumeration. When the continuous availability time is less than the expected access occupancy time, the candidate peripheral remains disconnected from the hub, waiting for the subsequent complete industrial communication transaction to be completed before re-determining the continuous availability time.

[0037] Candidate peripheral insertion events may occur during transactions where an industrial request message has been sent but a paired industrial response message has not yet been received. In this case, the docking station keeps the candidate peripheral disconnected from the hub but allows the probe controller to perform pre-enumeration, allowing the pre-enumeration process to run concurrently with existing industrial communication transactions. The preset response timeout duration preferentially adopts the response timeout duration specified by the industrial communication protocol. If the communication protocol does not explicitly specify it, the maximum response duration of historical normal industrial communication transactions plus the communication clock error is used as the preset response timeout duration.

[0038] When a paired industrial response message is received within the preset response timeout period, the reception time of the industrial response message is determined as the end time of the current industrial communication transaction, and the continuous available duration is determined according to Example 1. If no paired industrial response message is received within the preset response timeout period, the current industrial communication transaction is marked as an abnormal transaction, and the access window for candidate peripherals is not determined using abnormal transactions. The candidate peripherals remain disconnected from the hub until a complete industrial communication transaction capable of pairing request and response messages is collected, at which point the end time, latest service time, and continuous available duration are re-determined. This avoids introducing further disturbances to candidate peripheral access when industrial equipment has already experienced response abnormalities.

[0039] The main hub is equipped with a control transmission monitoring interface or an enumeration status register. The docking station uses the control transmission monitoring interface to identify device configuration requests and corresponding status phase responses sent by the host device to candidate peripherals, or to read the configuration completion status output by the enumeration status register. A configuration confirmation response refers to a successful response returned by the candidate peripheral in response to the device configuration request during the control transmission status phase, or the configuration completion status output by the enumeration status register.

[0040] After a candidate peripheral switches to the hub, the docking station monitors the device configuration requests sent by the host device and the configuration confirmation responses returned by the candidate peripheral. If the candidate peripheral returns a configuration confirmation response before the latest service time, the decision criterion enumeration is complete, and the candidate peripheral remains connected to the hub. If no configuration confirmation response is received by the latest service time, the decision criterion enumeration has not been completed on time, the candidate peripheral is disconnected from the hub, and a reset is performed on the candidate peripheral. The candidate peripheral can reconnect to the peripheral detection path after the reset, or remain isolated until the next access window.

[0041] To avoid consuming industrial communication recovery time by waiting until the latest service time to disconnect candidate peripherals, the docking station implements early rollback control. The detection controller records the duration of the reset, address allocation, and description information reading phases during pre-enumeration. The docking station identifies the current enumeration phase of the standard enumeration based on the reset request, address setting request, description information reading request, and device configuration request sent by the host device. When using conservative prediction, the remaining estimated duration is determined by the sum of the complete phase duration corresponding to the current enumeration phase, the phase duration of each subsequent enumeration phase, and the historical maximum duration of the device configuration phase. If the executed duration of the current enumeration phase can be obtained, the executed duration is subtracted from the complete phase duration corresponding to the current enumeration phase. When the standard enumeration has entered the device configuration phase, the remaining estimated duration is the maximum remaining duration from the current state to the configuration confirmation response recorded in the historical device configuration records.

[0042] The link recovery time is determined based on historical disconnection events. After a candidate peripheral device disconnects, the industrial equipment port resends an industrial request message, and the industrial communication transaction is considered restored when a paired industrial response message is received within a preset response timeout period. The duration from the time the candidate peripheral device disconnects to the time the industrial communication transaction recovers is considered a historical recovery time, and the maximum value among these historical recovery times is taken as the link recovery time. Before the docking station is put into operation, at least five tests are conducted on the industrial communication recovery process after the device configuration phase and the candidate peripheral device disconnection, respectively, to form initial records of the device configuration phase duration and the link recovery time. If a longer duration is obtained during operation, the corresponding maximum value is updated. If the remaining time from the current moment to the latest service moment is not greater than the sum of the remaining estimated duration and the link recovery time, the candidate peripheral device is disconnected from the hub in advance. Otherwise, the candidate peripheral device remains connected to the hub and monitoring continues.

[0043] In this embodiment, the industrial equipment port is connected to a periodic data acquisition device. The average sending interval of the most recent 20 industrial request messages is 1000ms, with an allowable delay of 100ms. The current industrial request message is sent at the start of the timing period; therefore, the latest service time for the next industrial communication transaction is 1100ms after the start of the timing period. The current industrial response message is received 120ms after the start of the timing period, and the end time of the current industrial communication transaction is 120ms.

[0044] Candidate peripherals are inserted 30ms after the timing start. Since the candidate peripheral port shares the same hub and uplink data path with the industrial equipment port, the docking station keeps the candidate peripheral disconnected from the hub and performs pre-enumeration through the peripheral detection path. Pre-enumeration completes 290ms after the timing start, with a pre-enumeration duration of 260ms. The industrial communication transaction ends at 120ms, and the pre-enumeration completes at 290ms; therefore, 290ms is used as the start of the access window, with a continuous available time of 810ms.

[0045] Based on the description information of the candidate peripherals, the docking station matched 5 historical enumeration records, with the longest standard enumeration time being 360ms. Since 360ms is longer than the pre-enumeration time, 360ms is selected as the estimated standard enumeration time. The port switching time is 8ms, the candidate peripheral reset time is 22ms, and the estimated access occupancy time is 390ms. The continuous availability time is longer than the estimated access occupancy time; therefore, the docking station resets the candidate peripherals and switches them to the hub.

[0046] The host device receives a configuration confirmation response from the candidate peripheral 640ms after the timing start, earlier than the latest service time of 1100ms, therefore maintaining the connection between the candidate peripheral and the hub. In another operation, if the candidate peripheral standard enumeration is not completed 850ms after the timing start, the remaining estimated time is determined to be 180ms, and the link recovery time is 90ms. Since only 250ms remain between the current time and the latest service time, less than the sum of the remaining estimated time and the link recovery time, the docking station disconnects the candidate peripheral prematurely. After disconnection, the industrial device port can resume request and response message transmission before the latest service time of the next industrial communication transaction.

[0047] This embodiment does not merely delay candidate peripheral access during busy industrial communication periods. Instead, it obtains the actual time requirements of candidate peripherals through pre-enumeration, which is invisible to the host device. Then, it determines the true available window based on the later of the industrial communication transaction end time and the pre-enumeration completion time, thus eliminating potential window overestimation based solely on idle industrial communication periods. Simultaneously, by jointly determining the remaining enumeration time and link recovery time, it proactively withdraws candidate peripheral access that cannot be completed on time before the latest service time arrives. This embodiment ensures that the candidate peripheral enumeration process fully falls within the available time slots between industrial communication transactions without reducing the candidate peripheral interface rate or altering the industrial communication protocol. This reduces message retries and periodic data collection interruptions caused by new peripheral access, while avoiding excessive rejection of candidate peripherals that could normally access the market. Compared to fixed delays or simple bandwidth priority control, it balances industrial communication timeliness with docking station peripheral access efficiency.

[0048] Based on another preferred embodiment described above, see [link to preferred embodiment]. Figure 4 As shown, this embodiment provides an industrial internet docking station link hold-up control system for applying the above-described industrial internet docking station link hold-up control method, including: The data acquisition module is used to collect communication transaction data from the ports of industrial equipment and detect candidate peripheral insertion events.

[0049] The pre-enumeration module, including peripheral detection paths and port data selectors, is used to keep candidate peripherals disconnected from the hub and perform pre-enumeration, obtaining the pre-enumeration duration and the pre-enumeration completion time.

[0050] The duration determination module is used to determine the end time, latest service time, estimated access duration, and continuous available duration of industrial communication transactions.

[0051] The access control module is used to control the access of candidate peripherals to the hub based on the comparison between the continuous available time and the expected access time, and to disconnect the candidate peripherals from the hub if the standard enumeration is not completed before the latest service time.

[0052] When the above system executes the aforementioned method, it can achieve the same technical effect as the aforementioned method.

[0053] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for maintaining a link in an industrial internet docking station, characterized in that, include: Collect communication transaction data from industrial equipment ports and detect candidate peripheral insertion events on candidate peripheral ports; Determine that the candidate peripheral port and the industrial equipment port share the uplink data path of the main hub, keep the candidate peripheral disconnected from the main hub, perform pre-enumeration through the peripheral detection path, and obtain the pre-enumeration duration and pre-enumeration completion time; The communication transaction data is used to identify transaction boundaries to obtain the end time of the current industrial communication transaction and the latest service time of the next industrial communication transaction. The estimated access occupancy time is determined based on the pre-enumeration time, port switching time, and candidate peripheral reset time. The remaining time from the later of the end time and the pre-enumeration completion time to the latest service time is taken as the continuous available time. If there is no remaining time, the continuous available time is zero. When the continuous available time is not less than the expected access occupancy time, the candidate peripheral is switched to the hub, and the host device performs standard enumeration; otherwise, the candidate peripheral remains disconnected from the hub. If the standard enumeration is completed before the latest service time, the candidate peripheral remains connected to the hub; if it is not completed by the latest service time, the candidate peripheral is disconnected from the hub.

2. The industrial internet docking station link maintenance control method according to claim 1, characterized in that, The transaction boundary identification includes: Industrial request messages and industrial response messages are paired according to device identifier and transaction identifier, and the end time is the time when the industrial response message is received. The average sending interval of multiple industrial request messages is used as the transaction interval benchmark, and the latest service time is the time obtained by extending the transaction interval benchmark and the allowed delay time by the current industrial request message sending time.

3. The industrial internet docking station link maintenance control method according to claim 1, characterized in that, Determining the shared relationship includes: reading the port topology table; when the host identifier and uplink data path identifier of the candidate peripheral port are consistent with those of the industrial equipment port, it is determined that the uplink data path is shared.

4. The industrial internet docking station link maintenance control method according to claim 2, characterized in that, In-transit transaction isolation includes: when the candidate peripheral is inserted after the industrial request message is sent and before the paired industrial response message is received, it remains disconnected from the hub and performs the pre-enumeration; when the industrial response message is received within the preset response timeout period, the end time is determined; if it is not received, it remains disconnected and the continuous availability period is re-determined for the next complete industrial communication transaction.

5. The industrial internet docking station link maintenance control method according to claim 1, characterized in that, The pre-enumeration includes: connecting the candidate peripherals to the probe controller only through a port data selector, and having the probe controller perform reset, address allocation, and description information reading; and using the duration from the first reset to the completion of description information reading and the completion time as the pre-enumeration duration and the pre-enumeration completion time, respectively.

6. The industrial internet docking station link maintenance control method according to claim 5, characterized in that, The determination of the estimated access occupancy time includes: matching historical enumeration records according to the description information; if there are records, taking the larger value between the pre-enumeration time and the maximum standard enumeration time in the records; if there are no records, taking the sum of the pre-enumeration time and the enumeration protection time; adding the port switching time and the candidate peripheral reset time to the obtained time as the estimated access occupancy time.

7. The industrial internet docking station link maintenance control method according to claim 1, characterized in that, Access switching includes: when the continuous available time is not less than the expected access occupancy time, disconnecting the candidate peripheral from the peripheral detection path, resetting the candidate peripheral, connecting the candidate peripheral to the main hub, and reporting the access event to the host device; otherwise, keeping the candidate peripheral disconnected from the main hub.

8. The industrial internet docking station link maintenance control method according to claim 7, characterized in that, The standard enumeration completion determination includes: monitoring the device configuration request sent by the host device and the configuration confirmation response returned by the candidate peripheral; maintaining the connection when the configuration confirmation response is received before the latest service time; and disconnecting the candidate peripheral from the hub, resetting the candidate peripheral, and connecting it to the peripheral detection path when the latest service time has not been reached.

9. The industrial internet docking station link maintenance control method according to claim 7, characterized in that, Early rollback control includes: recording the duration of each pre-enumerated stage, using the sum of the stage duration corresponding to the current and subsequent stages in the standard enumeration and the historical maximum duration of the device configuration stage as the remaining estimated duration; using the historical maximum duration from the candidate peripheral disconnection to the industrial equipment port to resume industrial communication transactions as the link recovery duration; disconnecting the candidate peripheral from the hub when the duration from the current time to the latest service time is not greater than the sum of the remaining estimated duration and the link recovery duration, otherwise maintaining the connection.

10. An industrial internet docking station link maintenance control system, used to apply the industrial internet docking station link maintenance control method as described in any one of claims 1-9, characterized in that, include: The data acquisition module is used to collect communication transaction data from the ports of industrial equipment and detect candidate peripheral insertion events; The pre-enumeration module includes a peripheral detection path and a port data selector, which are used to keep the candidate peripherals disconnected from the hub and perform pre-enumeration to obtain the pre-enumeration duration and the pre-enumeration completion time. The duration determination module is used to determine the end time, latest service time, estimated access duration, and continuous available duration of industrial communication transactions. The access control module is used to control the candidate peripheral to access the hub based on the comparison result of the continuous available time and the expected access occupancy time, and disconnect the candidate peripheral from the hub if the standard enumeration is not completed before the latest service time.

Citation Information

Patent Citations

  • USB interface system, method for distributing USB bandwidth, device, equipment and storage medium

    CN108959141A