Intranet and extranet data automatic transmission method and device

By using independently controlled external and internal network modules and location status detection, the automated transmission of data between the internal and external networks is achieved, solving the problem of low efficiency in traditional technologies and realizing automated and physically isolated transmission of data between the internal and external networks.

CN117201633BActive Publication Date: 2026-11-24YGSOFT INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311058122.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-21
Publication Date
2026-11-24
Estimated Expiration
2043-08-21

AI Technical Summary

Technical Problem

In existing technologies, data interaction between internal and external networks requires manual intervention for switching, resulting in low efficiency. Furthermore, traditional solutions cannot achieve true physical isolation and automated data transmission.

Method used

The external network module and internal network module are completely physically isolated. Through location status detection and independent control host, automated data transmission is achieved, avoiding manual intervention.

Benefits of technology

It enables automated and physically isolated transmission of data between internal and external networks, improving data transmission efficiency and avoiding the inefficiencies caused by manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117201633B_ABST
    Figure CN117201633B_ABST
Patent Text Reader

Abstract

This invention provides a method and apparatus for automatic data transfer between internal and external networks. The method, applied to a first control host, includes the following steps: S11: Real-time acquisition of changes in the position and status of the external network connection module and the internal network connection module; S12: Updating the number of first connection operations of the external network connection module and the number of second connection operations of the internal network connection module; S13: Determining whether to execute the first data reading task and the first data writing task based on the difference between the number of first connection operations and the number of second connection operations. This invention also provides an apparatus for implementing this automatic data transfer method. The external network connection module and the internal network connection module of this invention are completely physically isolated and have no data transfer relationship. Switching between the external network connection module and the internal network connection module does not require a single software program, resulting in high switching efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intranet and extranet technology, specifically to a method and apparatus for automatic data transmission between intranet and extranet. Background Technology

[0002] In the process of building information technology infrastructure, many large enterprises have adopted physical isolation between internal and external networks to protect their internal hardware entities, such as routers, workstations, and various network servers, as well as communication links, from external attacks on the Internet. This means that the internal network cannot be directly or indirectly connected to the public network through physical means.

[0003] However, in actual business operations, there are still many situations where business data needs to be synchronized between internal and external networks. For example, bank statements or bank transaction information need to be downloaded from the external online banking system and then transferred to the internal network for use; similarly, invoice data from the internal network needs to be submitted to the tax website for review and reporting. Many enterprises have built information systems on both the internal and external networks, creating a need for data exchange between them.

[0004] To solve the data exchange problem between the intranet and the extranet, the traditional approach is to manually store and transfer data using mobile storage devices. While this method improves internal information security, it also introduces significant inconvenience to daily operations.

[0005] In addition, some solutions on the market currently propose using USB interface switching devices to switch between intranet and extranet links on demand. These solutions mainly employ two methods: one is manual judgment, switching between intranet and extranet links based on actual conditions. This method requires a high degree of human intervention, impacting work efficiency; the other is software control, automatically switching via integrated circuits. However, since the intranet and extranet are controlled by the same integrated circuit, true physical isolation cannot be achieved, or rather, it is difficult to demonstrate that the integrated circuit truly ensures physical isolation, thus making it unacceptable and unusable. Summary of the Invention

[0006] The primary objective of this invention is to provide a method for automatically transmitting data between internal and external networks that is physically isolated and not controlled by the same software.

[0007] The second objective of this invention is to provide another method for automatic data transfer between internal and external networks that is physically isolated and not controlled by the same software.

[0008] A third objective of this invention is to provide an automatic data transfer device for internal and external networks that implements the above-described automatic data transfer method for internal and external networks.

[0009] To achieve the aforementioned first objective, the present invention provides an automatic data transfer method for internal and external networks, applied to a first control host, comprising the following steps: S11: Real-time acquisition of changes in the position status of the external network connection module and the internal network connection module; S12: Updating the first connection operation count of the external network connection module and the second connection operation count of the internal network connection module; the first connection operation count is the number of times the external network connection module moves from the first initial position to the connection position and returns from the connection position to the first initial position, and the second connection operation count is the number of times the internal network connection module moves from the second initial position to the connection position and returns from the connection position to the second initial position; S13: Determining the following execution state based on the difference between the first connection operation count and the second connection operation count: When the difference between the first connection operation count and the second connection operation count is -1, execution is performed. The first data reading task is as follows: control the first horizontal motor and the first vertical motor to move the external network connection module from the first initial position to the connection position and perform a data reading operation on the transfer storage module at the connection position, then return to the first initial position and return to step S12; when the difference between the number of first connection operations and the number of second connection operations is 0, determine whether the first data writing task has been obtained. If not, return to step S12. If yes, execute the first data writing task, which is as follows: control the first horizontal motor and the first vertical motor to move the external network connection module from the first initial position to the connection position and perform a data writing operation on the transfer storage module, then return to the first initial position and return to step S12; when the difference between the number of first connection operations and the number of second connection operations is +1, return to step S12.

[0010] As can be seen from the above scheme, the first control host of the present invention determines whether to move the external network connection module from the first initial position to the connection position and connect it with the relay storage module at the connection position based on the position status of the external network connection module and the internal network connection module, thereby executing the first data reading task or the first data writing task. Since the external network connection module and the internal network connection module of the present invention are completely physically isolated and there is no data transmission relationship, the external network connection module determines whether to automatically transmit data based on the detected position change of the internal network connection module. There is no need for the same software program to control the switching between the external network connection module and the internal network connection module, and the problem of low efficiency caused by manual switching is solved.

[0011] A further approach is that, during the execution of the first data writing task, while controlling the external network connection module to move from the first initial position to the connection position, the distance between the external network connection module and the internal network connection module measured by the first distance sensor is used to determine whether the internal network connection module is moving. If so, it is determined whether to continue executing the first data writing task according to preset rules.

[0012] Therefore, it can be seen that the conflict caused by moving the external network connection module and the internal network connection module at the same time can be avoided.

[0013] A further approach is to wait a preset time after determining that the intranet connection module is not in the second initial position when the first data writing task begins, and then continue executing the first data writing task after confirming that the intranet connection module is in the second initial position.

[0014] Therefore, it can be seen that the intranet connection module will only execute the first write data task after the second initial position, thus avoiding potential conflicts between the intranet connection module and the external network connection module.

[0015] A further approach is to acquire the first write data task in real time during step S11 and store it in the first task list; and to execute all first write data tasks in the first task list during the execution of the first write data task.

[0016] Therefore, the first write data task can be stored in the first task list, so that each first write data task in the first task list can be executed sequentially when the external network connection module and the relay storage module are connected.

[0017] To achieve the second objective mentioned above, the present invention provides an automatic data transfer method between internal and external networks, applied to a second control host, comprising the following steps: S21: Real-time acquisition of changes in the position status of the external network connection module and the internal network connection module; S22: Updating the first connection operation count of the external network connection module and the second connection operation count of the internal network connection module; the first connection operation count is the number of times the external network connection module moves from the first initial position to the connection position and returns from the connection position to the first initial position, and the second connection operation count is the number of times the internal network connection module moves from the second initial position to the connection position and returns from the connection position to the second initial position; S23: Determining the following execution state based on the difference between the first connection operation count and the second connection operation count: when the difference between the first connection operation count and the second connection operation count is -1, returning to step S22; the first connection... When the difference between the number of first connection operations and the number of second connection operations is 0, determine whether a second write data task has been obtained. If not, return to step S22. If yes, execute the second write data task. The second write data task is: control the second horizontal motor and the second vertical motor to move the intranet connection module from the second initial position to the connection position and perform a write data operation on the transfer storage module, then return to the second initial position and return to step S22. When the difference between the number of first connection operations and the number of second connection operations is +1, execute the second read data task. The second read data task is: control the second horizontal motor and the second vertical motor to move the extranet connection module from the second initial position to the connection position and perform a read data operation on the transfer storage module at the connection position, then clear the data in the transfer storage module, then return to the second initial position and return to step S22.

[0018] As can be seen from the above scheme, the second control host of the present invention determines whether to move the internal network connection module from the second initial position to the connection position and connect it with the relay storage module at the connection position based on the position status of the external network connection module and the internal network connection module, thereby executing the second data reading task or the second data writing task. Since the external network connection module and the internal network connection module of the present invention are completely physically isolated and there is no data transmission relationship, the external network connection module determines whether to automatically transmit data based on the detected position change of the internal network connection module, eliminating the need for a single software program to control the switching between the external network connection module and the internal network connection module, and solving the problem of low efficiency caused by manual switching.

[0019] A further approach is to determine whether the external network connection module is moving when the second data writing task is executed, by controlling the internal network connection module to move from the second initial position to the connection position, using the distance measured by the second distance sensor. If so, determine whether to continue executing the second data writing task according to preset rules.

[0020] Therefore, it can be seen that conflicts between the intranet connection module and the extranet connection module can be avoided.

[0021] To achieve the aforementioned third objective, the present invention provides an automatic data transmission device for internal and external networks, comprising: an external network module, an internal network module, and a bus docking module; the external network module includes a first control host, a first horizontal motor, a first vertical motor, a first position sensor, and an external network connection module, the external network connection module including a first distance sensor and a first bus interface; the internal network module includes a second control host, a second horizontal motor, a second vertical motor, a second position sensor, and an internal network connection module, the internal network connection module including a second distance sensor and a second bus interface; the external network connection module is movable to the bus docking module. The system consists of a group, where the intranet connection module can be moved to the bus docking module; the bus docking module includes a third position sensor and a fourth position sensor, and can be connected to an external relay storage module; the first control host is connected to the first horizontal motor, the first vertical motor, the first position sensor, the third position sensor, and the extranet connection module, with both the first horizontal motor and the first vertical motor connected to the extranet connection module; the second control host is connected to the second horizontal motor, the second vertical motor, the second position sensor, the third position sensor, and the intranet connection module, with both the second horizontal motor and the second vertical motor connected to the extranet connection module.

[0022] As can be seen from the above scheme, the first control host of this invention can determine the change in the position state of the internal network connection module based on the first position sensor located at the first initial position and the first distance sensor located on the external network connection module. Combined with the third position sensor, it can further determine the change in the position state of the external network connection module. Similarly, the second control host of this invention can determine the change in the position of the external network connection module based on the second position sensor located at the second initial position and the second distance sensor located on the internal network connection module. Combined with the fourth position sensor, it can further determine the change in the position state of the internal network connection module. Therefore, the first control host can execute a first data write task and a first data read task based on the position changes of the external network connection module and the internal network connection module, and the second control host can execute a second data write task and a second data read task based on the position changes of the external network connection module and the internal network connection module.

[0023] A further proposed solution is that the external network module also includes a fifth position sensor, which is connected to the second control host; the internal network module also includes a sixth position sensor, which is connected to the first control host.

[0024] Therefore, it is more convenient for the first control host to determine whether the intranet connection module is in the second initial position, and more convenient for the second control host to determine whether the extranet connection module is in the first initial position. Attached Figure Description

[0025] Figure 1 This is a system block diagram of an embodiment of the automatic data transmission device for internal and external networks of the present invention.

[0026] Figure 2 This is a flowchart of the first control host execution in an embodiment of the automatic data transmission system between internal and external networks of the present invention.

[0027] Figure 3 This is a flowchart of the second control host execution in an embodiment of the automatic data transmission system between internal and external networks of the present invention.

[0028] The present invention will be further described below with reference to the accompanying drawings and embodiments. Detailed Implementation

[0029] This invention provides a method for automatic data transfer between internal and external networks. By using a completely physically isolated external network module and an internal network module to perform data reading and writing tasks respectively, fully automatic data transfer through switching between internal and external network data links is achieved. This invention also provides an automatic data transfer system for implementing the above-described method.

[0030] Example of an automatic data transmission device for internal and external networks:

[0031] See Figure 1 The automatic data transmission device between the internal and external networks in this embodiment includes: an external network module 1, an internal network module 2, and a bus docking module 3.

[0032] The external network module 1 includes a first control host 11, a first horizontal motor 12, a first vertical motor 13, a first position sensor 14, an external network connection module 15, and a fifth position sensor 16. The external network connection module 15 includes a first distance sensor 151 and a first bus interface 152. The internal network module 2 includes a second control host 21, a second horizontal motor 22, a second vertical motor 23, a second position sensor 24, an internal network connection module 25, and a sixth position sensor 26. The internal network connection module 25 includes a second distance sensor 251 and a second bus interface 252.

[0033] The bus docking module 3 includes a third position sensor 31, a fourth position sensor 32, a bus docking interface 33, and a storage module docking interface 34.

[0034] The first control host 11 is connected to the first horizontal motor 12, the first vertical motor 13, the first position sensor 14, the third position sensor 31, the sixth position sensor 26, the first distance sensor 151 of the external network connection module 15, and the first bus interface 152. The first horizontal motor 12 and the first vertical motor 13 are both connected to the external network connection module 15.

[0035] The second control host 21 is connected to the second horizontal motor 22, the second vertical motor 23, the second position sensor 24, the third position sensor 31, the fifth position sensor 16, the second distance sensor 251 of the intranet connection module 25, and the second bus interface 252. The second horizontal motor 22 and the second vertical motor 23 are both connected to the intranet connection module 25.

[0036] The first control host 11 can execute an external network control program to control the first bus interface 152 to connect with the bus interface 33, thereby executing a first write data task to write the acquired external network data to the relay storage module connected to the storage module interface 34, or execute a first write data task to retrieve internal network data stored in the relay storage module. The second control host 21 can execute an internal network control program to control the second bus interface 252 to connect with the bus interface 33, thereby executing a second write data task to write the acquired internal network data to the relay storage module connected to the storage module interface 34, or execute a second read task to retrieve external network data stored in the relay storage module. This achieves automatic transfer of internal and external network data.

[0037] In this embodiment, the first bus interface 152, the second bus interface 252, and the bus docking interface 33 are all USB interfaces, and the transfer storage module is a secure USB flash drive.

[0038] Specifically, the external network connection module 15 and the internal network connection module 25 are completely physically isolated. The external network connection module 15 has three possible positions: first initial position, connected position, and first moving position. The internal network connection module 25 has three possible positions: second initial position, connected position, and second moving position.

[0039] Wherein, the first initial position refers to the position where the external network connection module 15 stays and waits in the working state without connection; the second initial position refers to the position where the internal network connection module 25 stays and waits in the working state without connection; the connection position refers to the position where the external network connection module 15 and the internal network connection module 25 move to the bus docking interface 33 and complete docking with the bus docking interface 33; the first movement position refers to the position where the external network connection module 15 moves to a position other than the first initial position and the connection position; the second movement position refers to the position where the internal network connection module 25 moves to the second initial position and moves to a position other than the second initial position and the connection position.

[0040] Under the control of the first control host 11, the first horizontal motor 12 and the first vertical motor 13 enable the external network connection module 15 to move horizontally and vertically respectively, thus allowing the external network connection module 15 to move between the first initial position and the connection position. Under the control of the second control host 21, the second horizontal motor 22 and the second vertical motor 23 enable the internal network connection module 25 to move horizontally and vertically respectively, thus allowing the internal network connection module 25 to move between the second initial position and the connection position.

[0041] The first position sensor 14 is set at the first initial position, allowing the first control host 11 to determine whether the external network connection module 15 is in the first initial position. The third position sensor 31 is set at the connection position, allowing the first control host 11 to determine whether the external network connection module 15 is in the connection position. The second position sensor 24 is set at the second initial position, allowing the second control host 21 to determine whether the internal network connection module 25 is in the second initial position. The fourth position sensor 32 is set at the connection position, allowing the second control host 21 to determine whether the internal network connection module 25 is in the connection position.

[0042] The fifth position sensor 16 is set at the first initial position, so that the second control host 21 can determine whether the external network connection module 15 is at the first initial position. The sixth position sensor 26 is set at the second initial position, so that the first control host 11 can determine whether the internal network connection module 25 is at the second initial position.

[0043] The first distance sensor 151 is installed on the external network connection module 15, so that the current position of the external network connection module 15 can be determined in conjunction with the first position sensor 14 and the sixth position sensor 26. The second distance sensor 251 is installed on the internal network connection module 25, so that the current position of the internal network connection module 25 can be determined in conjunction with the second position sensor 24 and the fifth position sensor 16.

[0044] The first control host 11 can record the states of the first position sensor 14, the third position sensor 31, and the sixth position sensor 26 in real time, and record the time of state changes. The second host module can record the states of the second position sensor 24, the fourth position sensor 32, and the fifth position sensor 16 in real time, and record the time of state changes.

[0045] In this embodiment, when the external network connection module 15 is in the first initial position and the internal network connection module 25 is in the second initial position, the distance between the external network connection module 15 and the internal network connection module 25 should be 10 cm, with an error range of 0.2 cm. When the external network connection module 15 or the internal network connection module 25 is in the connection position, if the distance between it and the corresponding internal network connection module 25 or external network connection module 15 is 5 cm (again with an error range of 0.2 cm), the corresponding internal network connection module 25 or external network connection module 15 can be considered to be in the second initial position or the first initial position.

[0046] The first control host 11 can receive the first write data task and store it in a first task execution list for unified management and execution. In this embodiment, when the first control host 11 receives the first write data task, it needs to process it according to the location status of the external network connection module 15 and the internal network connection module 25. The processing rules include, but are not limited to:

[0047] (1) If the external network connection module 15 is already in the connection position, the external network connection module 15 does not need to move. The first control host 11 completes the task processing in one go according to the queue of each first write data task in the first task execution list; (2) If the external network connection module 15 is in the first initial position, it is further determined whether the internal network connection module 25 is in the second initial position. If the internal network connection module 25 is in the second initial position, the external network connection module 15 can start moving. If the internal network connection module 25 is not in the second initial position, the external network connection module 15 needs to wait for a preset time before re-determining the position status of the internal network connection module 25; (3) If the external network connection module 15 is in the first initial position, the second internal network connection module 25 is in the second initial position. Considering that the external network connection module 15 and the internal network connection module 25 are controlled by two completely independent control hosts, and there is no unified control of data or information between them, there may be a conflict caused by the external network connection module 15 and the internal network connection module 25 receiving tasks and moving at the same time. To prevent this problem, the external network connection module 15 can attempt to move a short distance from the first initial position. After moving to a specific position, the first distance sensor 151 can determine whether the internal network connection module 25 has moved. Similarly, the internal network connection module 25 can also determine whether the external network connection module 15 has moved through the second distance sensor 251. If one of them moves, it can be determined according to the preset rules that one of them continues to move, while the other needs to return to the corresponding first initial position or second initial position to wait.

[0048] The second control host 21 uses the second distance sensor 251 and the fifth position sensor 16 to determine if the external network connection module 15 has left the first initial position within a preset time period (e.g., after the external network connection module 15 last left the connection position or returned to the first initial position) and then returns to the connection position, then the second control host 21 will automatically generate a second reading task. Similarly, the first control host 11 also automatically generates a first reading task based on the first distance sensor 151 and the sixth position sensor 26.

[0049] After receiving the second write task, the second control host 21 will first determine the location status of the external network connection module 15 and the internal network connection module 25, and then process the second write task according to the corresponding location status. The processing rules include, but are not limited to:

[0050] (1) If the external network connection module 15 is in the first initial position, the internal network connection module 25 can start moving. If the external network connection module 15 is not in the first initial position, the internal network connection module 25 cannot move and continues to wait for a preset time to try again; (2) If the external network connection module 15 is in the first initial position, the internal network connection module 25 is in the second initial position. Considering that the external network connection module 15 and the internal network connection module 25 are controlled by two completely independent control hosts, the internal network connection module 25 can also determine whether the external network connection module 15 has moved through the second distance sensor 251. If one of them moves, it can be determined according to the preset rules that one of them continues to move, and the other needs to return to the corresponding first initial position or second initial position to wait.

[0051] Example of an automatic data transfer method between internal and external networks:

[0052] The automatic data transfer method between internal and external networks in this embodiment is implemented based on the external network control program executed by the first control host and the internal network control program executed by the second control host.

[0053] In this embodiment, a software program is installed and runs on client A, specifically an RPA automation program for "automatic downloading and sorting of bank statements", hereinafter referred to as: bank statement download robot.

[0054] The bank statement download robot can be executed manually as needed or run automatically on a scheduled basis. In this embodiment, scheduled operation is preferred: the bank statement download robot can simulate manual login to the web pages of various commercial banks and obtain bank statement information. At the same time, the obtained information is organized according to specific format requirements.

[0055] After the bank statement download robot executes its task, it can send a task connection request to the first control host. Upon receiving the request, the first control host adds the corresponding first data writing task to the first task execution list. The information of the first data writing task includes, but is not limited to: task issuance time, task name, task summary, and task status.

[0056] In this embodiment, a software program installed on client B is also provided, specifically an RPA automation program for "automatic bank statement upload," hereinafter referred to as the "bank statement upload robot." The bank statement upload robot can be executed manually on demand, run automatically on a scheduled basis, or be executed automatically upon receiving a specific signal.

[0057] In this embodiment, the bank statement uploading robot can receive instructions from the second control host and execute them to simulate a human automatically logging into the enterprise's intranet fund management system and entering the bank statement information obtained by the second control host.

[0058] In different embodiments, the connection between client A and the first control host, and the connection between client B and the second control host, can both be achieved through data transmission via USB cable or network. Alternatively, client A can run directly on the first control host, and client B can run directly on the second control host.

[0059] For details, see Figure 2 When the first control host executes the external network control program, it includes the following steps:

[0060] S11: Real-time acquisition of the location status changes of the external network connection module and the internal network connection module, as well as acquisition of the first write data task. During the execution of the external network control program, the location status changes of the external network connection module and the internal network connection module are continuously acquired, and the first write data task is acquired. The first write data task can originate from the aforementioned bank statement download robot.

[0061] S12: Update the first connection operation count of the external network connection module and the second connection operation count of the internal network connection module. The first connection operation count is the number of times the external network connection module moves from the first initial position to the connection position and returns from the connection position to the first initial position. The second connection operation count is the number of times the internal network connection module moves from the second initial position to the connection position and returns from the connection position to the second initial position.

[0062] S13: Determine if the difference between the number of first connection operations and the number of second connection operations is equal to -1. If yes, execute step S131 to perform the first data reading task. The first data reading task is: control the first horizontal motor and the first vertical motor to move the external network connection module from the first initial position to the connection position and perform a data reading operation on the transfer storage module at the connection position, then return to the first initial position and go back to step S12. If no, continue to execute step S14.

[0063] S14: Determine if the number of first connection operations and the number of second connection operations are equal to 0. If not, continue to step S15. If yes, continue to step S141, determine if a first write data task has been obtained. If a first write data task has been obtained, i.e., there is a first write data task to be executed, then continue to step S142 to execute the first write data task. If no first write task has been obtained, return to step S12. The first write data task is: control the first horizontal motor and the first vertical motor to move the external network connection module from the first initial position to the connection position and perform a write data operation in the transfer storage module, then return to the first initial position and return to step S12. In this embodiment, the content of the first write data task is determined by the bank statement download robot, specifically, it can be to store the task sheet provided by the bank statement download robot in the transfer storage module.

[0064] Specifically, the information in a task order includes, but is not limited to, task type number, task order number, bank account information involved, and key task information.

[0065] in:

[0066] Task Type Number: Each task type has a unique task type number. In this embodiment, the task type of the bank statement download robot is: rw-yhls-01. The task type number is preset in the first and second control hosts according to the coding standard. When the bank statement download robot provides the first write data task to the first control host, it needs to specify the corresponding task type number. If the task type number does not exist, the external network control program will prompt and terminate execution. Similarly, when the bank statement upload robot provides the second write data task to the second control host, it also needs the corresponding task type number. If the task type number does not exist, the internal network control program will prompt and terminate execution.

[0067] Task Number: The first control host can automatically generate a task number based on a natural range (e.g., year, month, day, or year). For example, 20230728-0001, where 20230728 is the current date (8-digit year, month, day), and 0001 is the serial number, which increases sequentially with a step size of 1.

[0068] The key task information records the necessary information required by the intranet control program when it obtains the task order. By parsing this information, the task requirements for the current task order can be obtained.

[0069] S15: Determine if the difference between the number of first connection operations and the number of second connection operations is +1. If yes, wait for the second control host to execute the second data reading task, then return to step S12. If no, execute step S16 to display an error message, and then end.

[0070] For details, see Figure 3 When the second control host executes the intranet control program, it includes the following steps:

[0071] S21: Real-time acquisition of the location status changes of the external network connection module and the internal network connection module, as well as acquisition of the second write data task. During the execution of the internal network control program, the location status changes of the external network connection module and the internal network connection module are continuously acquired, and the second write data task is acquired. The second write data task can originate from the aforementioned bank transaction upload robot.

[0072] S22: Update the first connection operation count of the external network connection module and the second connection operation count of the internal network connection module. The first connection operation count is the number of times the external network connection module moves from the first initial position to the connection position and returns from the connection position to the first initial position. The second connection operation count is the number of times the internal network connection module moves from the second initial position to the connection position and returns from the connection position to the second initial position.

[0073] It's important to note that since there's no direct communication between the external network connection module and the internal network connection module, they determine whether a task needs processing by judging the distance between them. Therefore, when the internal network connection module is executing the second data reading task triggered by the external network connection module, if the second control host simultaneously receives a second data writing task from the bank transaction upload robot, the second data reading task and the second data writing task need to be executed separately. That is, after completing the second data reading task, the internal network connection module returns to its second initial position and then begins executing the second data writing task, controlling the internal network connection module to move from its second initial position to the connection position, and then back to its second initial position. If the second data writing task is processed simultaneously during the execution of the second data reading task, the first host module will not be able to recognize that a second data writing task needs to be processed. Similarly, the same applies when the external network connection module receives a first data writing task while executing the first data reading task triggered by the internal network connection module.

[0074] S23: Determine if the difference between the number of first connection operations and the number of second connection operations is equal to -1. If yes, it means that we need to wait for the first control host to execute the first data reading task, that is, to obtain the data that the intranet needs to provide to the outside from the relay storage module. At this time, return to step S22. If no, continue to step S24.

[0075] S24, determine if the difference between the number of first connection operations and the number of second connection operations is equal to 0. If not, continue to step S25. If yes, continue to step S241, determine if a second write data task has been obtained. If no second write data task has been received, return to step S22. If a second write data task has been received, continue to step S242, and execute the second write data task. The second write data task is: control the second horizontal motor and the second vertical motor to move the intranet connection module from the second initial position to the connection position and perform a write data operation in the transfer storage module, and then return to the second initial position.

[0076] S25, determine if the difference between the number of first connection operations and the number of second connection operations is equal to +1. If yes, it means that the first control host has stored data in the transfer storage module, and it needs to control the intranet connection module to move to the transfer storage module to perform a data reading operation. At this time, continue to execute step S251 to execute the second data reading task, and then return to step S22. The second data reading task is: control the second horizontal motor and the second vertical motor to move the extranet connection module from the second initial position to the connection position and perform a data reading operation on the transfer storage module at the connection position, then clear the data in the transfer storage module, and then return to the second initial position, returning to step S22. If no, execute step S26, prompt an error message, and then end. In this embodiment, the second reading task is to obtain the task order stored in the transfer storage module, and then the content of the robot to execute the task order can be uploaded through bank statements.

[0077] In summary, since the external network connection module and the internal network connection module of this invention are completely physically isolated and there is no data transmission relationship, the external network connection module determines whether to automatically transmit data based on the detected change in the position of the internal network connection module. This eliminates the need for a single software program to control the switching between the external network connection module and the internal network connection module, and also solves the problem of low efficiency caused by manual switching.

[0078] Finally, it should be emphasized that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. For example, not setting the fifth position sensor and the sixth position sensor may reduce the accuracy of the judgment. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. An automatic data transfer method between intranet and extranet, applied to a first control host, characterized in that, Includes the following steps: S11: Real-time acquisition of changes in the location and status of the external network connection module and the internal network connection module; S12: Update the first connection operation count of the external network connection module and the second connection operation count of the internal network connection module; the first connection operation count is the number of times the external network connection module moves from the first initial position to the connection position and returns from the connection position to the first initial position, and the second connection operation count is the number of times the internal network connection module moves from the second initial position to the connection position and returns from the connection position to the second initial position; S13: Determine the following execution status based on the difference between the number of the first connection operations and the number of the second connection operations: When the difference between the number of first connection operations and the number of second connection operations is -1, the first data reading task is executed. The first data reading task is to control the first horizontal motor and the first vertical motor to make the external network connection module move from the first initial position to the connection position and perform a data reading operation on the transfer storage module at the connection position, and then return to the first initial position and return to step S12. When the difference between the number of first connection operations and the number of second connection operations is 0, determine whether the first write data task has been obtained. If not, return to step S12. If yes, execute the first write data task. The first write data task is: control the first horizontal motor and the first vertical motor to make the external network connection module move from the first initial position to the connection position and perform a write data operation in the transfer storage module, then return to the first initial position and return to step S12. When the difference between the number of the first connection operation and the number of the second connection operation is +1, return to step S12.

2. The automatic data transfer method between internal and external networks as described in claim 1, characterized in that: When executing the first write data task, during the process of controlling the external network connection module to move from the first initial position to the connection position, the distance between the external network connection module and the internal network connection module measured by the first distance sensor is used to determine whether the internal network connection module is moving. If so, it is determined whether to continue executing the first write data task according to the preset rules.

3. The automatic data transfer method between internal and external networks as described in claim 1, characterized in that: When the first data writing task is started, if it is determined that the location state of the intranet connection module is not the second initial position, the first data writing task is continued after waiting for a preset time and then determining that the intranet connection module is in the second initial position.

4. The method for automatic data transfer between internal and external networks as described in any one of claims 1 to 3, characterized in that: When performing step S11, the first write data task is also acquired in real time and stored in the first task list; When executing the first write data task, all first write data tasks in the first task list are executed.

5. An automatic data transfer method between intranet and extranet, applied to a second control host, characterized in that, Includes the following steps: S21: Real-time acquisition of changes in the location and status of the external network connection module and the internal network connection module; S22: Update the first connection operation count of the external network connection module and the second connection operation count of the internal network connection module; the first connection operation count is the number of times the external network connection module moves from the first initial position to the connection position and returns from the connection position to the first initial position, and the second connection operation count is the number of times the internal network connection module moves from the second initial position to the connection position and returns from the connection position to the second initial position; S23: Determine the following execution status based on the difference between the number of the first connection operations and the number of the second connection operations: When the difference between the number of first connection operations and the number of second connection operations is -1, return to step S22; When the difference between the number of first connection operations and the number of second connection operations is 0, determine whether a second write data task has been obtained. If not, return to step S22. If yes, execute the second write data task. The second write data task is: control the second horizontal motor and the second vertical motor to make the intranet connection module move from the second initial position to the connection position and perform a write data operation in the transfer storage module, then return to the second initial position and return to step S22. When the difference between the number of first connection operations and the number of second connection operations is +1, a second data reading task is executed. The second data reading task is: controlling the second horizontal motor and the second vertical motor to move the external network connection module from the second initial position to the connection position and perform a data reading operation on the transfer storage module at the connection position, then clearing the data in the transfer storage module, and then returning to the second initial position, returning to step S22.

6. The automatic data transfer method between internal and external networks as described in claim 5, characterized in that: When executing the second write data task, during the process of controlling the intranet connection module to move from the second initial position to the connection position, the distance between the intranet connection module and the extranet connection module measured by the second distance sensor is used to determine whether the extranet connection module is moving. If so, it is determined whether to continue executing the second write data task according to the preset rules.

7. An apparatus for implementing the method of automatically transferring data between the intranet and the extranet according to any one of claims 1 to 6, wherein include: External network module, internal network module, bus interface module; The external network module includes a first control host, a first horizontal motor, a first vertical motor, a first position sensor, and an external network connection module. The external network connection module includes a first distance sensor and a first bus interface. The intranet module includes a second control host, a second horizontal motor, a second vertical motor, a second position sensor, and an intranet connection module. The intranet connection module includes a second distance sensor and a second bus interface. The external network connection module can be moved to the bus docking module, and the internal network connection module can be moved to the bus docking module; The bus docking module includes a third position sensor and a fourth position sensor, and the bus docking module can be connected to an external relay storage module; The first control host is connected to the first horizontal motor, the first vertical motor, the first position sensor, the third position sensor, and the external network connection module, respectively. The first horizontal motor and the first vertical motor are both connected to the external network connection module. The second control host is connected to the second horizontal motor, the second vertical motor, the second position sensor, the third position sensor, and the intranet connection module; the second horizontal motor and the second vertical motor are both connected to the extranet connection module.

8. The automatic data transmission device for internal and external networks as described in claim 7, characterized in that: The external network module also includes a fifth position sensor, which is connected to the second control host. The intranet module also includes a sixth position sensor, which is connected to the first control host.

Citation Information

Patent Citations

  • Physical isolation device and data transmission method

    CN108417229A

  • Intranet and extranet data exchange device

    CN206389403U