Cross-network and cross-system data transmission method, device, equipment and medium
Through the combination of multi-interface storage media and Bluetooth channels, data transmission across networks and systems is optimized, problems of low transmission efficiency and complex operation are solved, and efficient and secure data transmission is achieved.
Patent Information
- Application Number
- CN202411018125.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-26
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The data transmission efficiency of the mid-span network and cross-system in the prior art is low, labor costs are high, and there are problems such as high cost and difficulty in operation when using the gate.
Using a multi-interface physical storage medium, it determines the reading device and the writing device by obtaining the data transmission instructions sent by the device, uses the Bluetooth channel to perform data transmission processing, prioritizes the writing operation, and processes the reading operation after the write operation is completed, and passes the physical connection. Implementing data transmission solves the problems of low data transmission efficiency and complex operation between devices.
It improves the efficiency of data transmission across networks and systems, reduces manual operations, reduces equipment costs, simplifies operation processes, and avoids security risks and data leakage caused by network transmission protocols.
Smart Images

Figure CN119026150A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data transmission, and specifically relates to a method, device, equipment and medium for cross-network and cross-system data transmission. Background Art
[0002] As all industries in China are gradually promoting the transformation of domestic systems, there is a period of coexistence of Windows systems and domestic systems. Daily power business has data interaction problems under different networks and systems. Due to network security, it can only be done by manually plugging and unplugging storage media, manually copying the required files to the storage media, and then placing the storage media on other devices for reading. This problem seriously affects the speed of data reporting and transmission, resulting in low data interaction efficiency.
[0003] For example, using a USB flash drive to share files between two computers or servers across systems and networks (such as pasting, copying, etc.) is labor-intensive and inefficient. For daily reports required by enterprises, it is usually necessary to copy the domestic Ningsi system to the Windows system every day and submit the data. If the data is moved one by one, the efficiency is low and data errors are prone to occur. If the data is made into a fixed table and copied uniformly, the error rate will be reduced, but the storage device needs to be manually plugged in and out for operation every day, and the process is relatively cumbersome.
[0004] In the prior art, data processing is usually performed through a network gate, which is an information security device that uses a solid-state switch read-write medium with multiple control functions to connect two independent host systems. Since the two independent host systems are isolated by the network gate, there is no physical connection, logical connection, or information transmission protocol for communication between the systems, and there is no information exchange based on the protocol, but only non-protocol ferrying in the form of data files. However, using a network gate for data processing will result in problems such as high cost and difficulty in operation and installation. Summary of the invention
[0005] The embodiments of the present application provide a method, apparatus, device and medium for data transmission across networks and systems, which are used to solve the problems of low data transmission efficiency and high manpower consumption in the data transmission process using small single-interface storage media in the prior art. In addition, there are problems such as domain limitations for data transmission across networks and systems, which makes the transmission process difficult to implement. If the data transmission process is carried out using a network gate, there are problems such as high cost and difficulty in operation.
[0006] In a first aspect, an embodiment of the present application provides a cross-network and cross-system data transmission method, which is applied to a storage medium with multiple interfaces, wherein at least two interfaces of the storage medium are respectively connected to corresponding devices, and the method includes:
[0007] Acquire, through the at least two interfaces, data transmission instructions sent by a plurality of devices, wherein the data transmission instructions are used to instruct to perform a read operation or a write operation on the data to be transmitted;
[0008] Determining a read device and a write device from a plurality of devices according to the data transmission instruction;
[0009] If a read or write operation is received from the read device and / or the write device, transmission processing is performed on the data to be transmitted.
[0010] Optionally, if a write operation sent by the write device is received, transmission processing is performed on the data to be transmitted, and the method includes:
[0011] Sending a start writing command to the writing device through a first interface corresponding to the writing device, and establishing a Bluetooth channel with the writing device;
[0012] The write data is received through the Bluetooth channel, and the write data is stored and processed.
[0013] Optionally, if a read operation sent by the reading device is received, transmission processing is performed on the data to be transmitted, and the method includes:
[0014] Sending a start reading command to the reading device through a second interface corresponding to the reading device, establishing a Bluetooth channel with the reading device, and determining identification information of the data to be read;
[0015] The data to be read is transmitted to the reading device via the Bluetooth channel.
[0016] Optionally, if a read / write operation sent by the reading device and / or the writing device is received, transmission processing is performed on the data to be transmitted, and the method includes:
[0017] Determining the operation priority of the reading device and the writing device, wherein the operation priority of the reading device is lower than the operation priority of the writing device;
[0018] Sending a start writing command to the writing device with a high operation priority through the first interface corresponding to the writing device, and establishing a Bluetooth channel with the writing device;
[0019] receiving the written data through the Bluetooth channel, and storing and processing the written data;
[0020] After the writing device completes the writing operation, a start reading command is sent to the reading device with a lower operation priority through the second interface corresponding to the reading device, a Bluetooth channel with the reading device is established, and identification information of the data to be read is determined;
[0021] The data to be read is transmitted to the reading device via the Bluetooth channel.
[0022] Optionally, if a read / write operation sent by the reading device and / or the writing device is received, transmission processing is performed on the data to be transmitted, and the method further includes:
[0023] receiving the write data corresponding to the write device through the first interface within a first preset time period, and storing the write data according to a fixed path;
[0024] transmitting the to-be-read data stored in the fixed path to the reading device through a second interface within a second preset time period, wherein the start time of the second preset time period is the end time of the first preset time period;
[0025] Optionally, before receiving the write data corresponding to the write device through the first interface within the first preset time period, the method further includes:
[0026] Determining the first preset time period and the second preset time period, wherein the duration of the first preset time period is the same as the duration of the second preset time period;
[0027] Optionally, the fixed path is jointly determined by the reading device and the writing device.
[0028] In a second aspect, an embodiment of the present application provides a cross-network and cross-system data transmission device, which is applied to a storage medium with multiple interfaces, wherein at least two interfaces of the storage medium are respectively connected to corresponding devices, and the device includes:
[0029] An acquisition module, used for acquiring data transmission instructions sent by multiple devices through the at least two interfaces, wherein the data transmission instructions are used for instructing to perform a read operation or a write operation on the data to be transmitted;
[0030] A determination module, used to determine a read device and a write device from a plurality of devices according to the data transmission instruction;
[0031] A transmission module, configured to perform transmission processing on the data to be transmitted upon receiving a read / write operation sent by the reading device and / or the writing device;
[0032] Optionally, if a write operation sent by the write device is received, transmission processing is performed on the data to be transmitted, and the device further includes: a sending module, a establishing module, a receiving module, and a storage module;
[0033] The sending module is used to send a start writing command to the writing device through the first interface corresponding to the writing device;
[0034] The establishing module is used to establish a Bluetooth channel with the writing device;
[0035] The receiving module is used to receive the write data through the Bluetooth channel;
[0036] The storage module is used to store the written data;
[0037] Optionally, if a read operation sent by the reading device is received, transmission processing is performed on the data to be transmitted, and the apparatus further includes:
[0038] The sending module is further used to send a start reading command to the reading device through a second interface corresponding to the reading device;
[0039] The establishment module is further used to establish a Bluetooth channel with the reading device;
[0040] The determination module is further used to determine identification information of the data to be read;
[0041] The transmission module is further used to transmit the to-be-read data to the reading device via the Bluetooth channel;
[0042] Optionally, if a read or write operation is received from the read device and / or the write device, the data to be transmitted is subjected to transmission processing, and the determination module is further used to determine the operation priority of the read device and the write device, wherein the operation priority of the read device is lower than the operation priority of the write device;
[0043] The sending module is further used to send a start writing command to the writing device with a high operation priority through the first interface corresponding to the writing device;
[0044] The establishing module is further used to establish a Bluetooth channel with the writing device;
[0045] The receiving module is further used to receive write data through the Bluetooth channel;
[0046] The storage module is further used to store and process the written data;
[0047] The sending module is further used to send a start reading command to the reading device with a low operation priority through the second interface corresponding to the reading device after the writing device completes the writing operation;
[0048] The establishment module is further used to establish a Bluetooth channel with the reading device;
[0049] The determination module is further used to determine identification information of the data to be read;
[0050] The transmission module is further used to transmit the to-be-read data to the reading device via the Bluetooth channel;
[0051] Optionally, if a read or write operation sent by the reading device and / or the writing device is received, the data to be transmitted is subjected to transmission processing, and the receiving module is further used to receive the write data corresponding to the writing device through the first interface within a first preset time period;
[0052] The storage module is further used to store the written data according to a fixed path;
[0053] The transmission module is further used to transmit the to-be-read data stored in the fixed path to the reading device through a second interface within a second preset time period, and the start time of the second preset time period is the end time of the first preset time period.
[0054] Optionally, the determining module is further used to determine the first preset period and the second preset period, wherein the duration of the first preset period is the same as the duration of the second preset period;
[0055] Optionally, the fixed path is jointly determined by the reading device and the writing device.
[0056] In a third aspect, an embodiment of the present application provides a cross-network and cross-system data transmission device, including:
[0057] processor;
[0058] Memory;
[0059] Wherein, the memory stores computer-executable instructions;
[0060] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes a cross-network and cross-system data transmission method as described in the above-mentioned first aspect and various possible implementations of the first aspect.
[0061] In a fourth aspect, an embodiment of the present invention provides a readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is a method for transmitting data across networks and systems as described in the first aspect and various possible implementations of the first aspect.
[0062] The embodiments of the present application provide a method, apparatus, device and medium for data transmission across networks and systems. A physical storage medium containing multiple readable and writable interfaces is used to connect multiple devices across networks and systems through the storage medium, and according to the read or write instructions fed back by multiple devices, the written data or the data to be read is stored or transmitted to solve the data transmission problem of multiple devices across networks and systems, and improve the data transmission efficiency between multiple networks and multiple systems. The use of a small physical storage medium to realize data transmission between devices across networks and systems solves the problem of high equipment cost and difficult operation caused by the use of a network gate communication connection between systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0064] Figure 1 This is a scenario diagram of a cross-network and cross-system data transmission method provided by the present application;
[0065] Figure 2 This is a schematic diagram of a cross-network and cross-system data transmission method provided by this application. Figure 1 ;
[0066] Figure 3 This is a schematic diagram of a cross-network and cross-system data transmission method provided by this application. Figure 2 ;
[0067] Figure 4 This is a schematic diagram of a cross-network and cross-system data transmission method provided by this application. Figure 3 ;
[0068] Figure 5 This is a schematic diagram of a cross-network and cross-system data transmission method provided by this application. Figure 4 ;
[0069] Figure 6 This is a schematic diagram of a cross-network and cross-system data transmission method provided by this application. Figure 5 ;
[0070] Figure 7 It is a structural schematic diagram of a cross-network and cross-system data transmission device provided by the present application;
[0071] Figure 8 A schematic diagram of the structure of a cross-network and cross-system data transmission device provided in this application.
[0072] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0073] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0074] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein, for example.
[0075] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0076] First, the terms involved in this application are explained:
[0077] Universal Serial Bus: It is a serial bus standard and a technical specification for input and output interfaces. It is widely used in information communication products such as personal computers and mobile devices. USB (Universal Serial Bus, hereinafter referred to as "USB") is an external bus standard that regulates the connection and communication between computers and external devices. The USB interface has a hot-swappable function and can connect a variety of peripherals, such as a mouse and keyboard.
[0078] Device: Computers, devices, or hosts in different systems and networks are all devices that need to complete data interaction, collectively referred to as devices below; execute reading of data from non-devices, or writing data from this device to other devices.
[0079] Writing: Writing data refers to the process of transferring data to a storage medium and saving it. This is one of the most basic and essential functions of computer operation, during which data is encoded in a specific format and placed in a designated area of the storage medium. Writing data means storing data to some form of storage medium, such as a hard drive, SSD, memory, or USB drive. This process involves transferring data from temporary storage, such as computer memory, to a place where the information can be stored long-term.
[0080] Writing scripts: Writing scripts means that a fixed path and fixed file naming format have been set on the device. The file is opened according to the established file naming format and path, and then copied and pasted to the storage medium.
[0081] Read: Reading data refers to the process of retrieving data from a storage medium. In a computer system, when a user or software issues a read instruction, the system retrieves information from a specific storage location and loads it into memory for processing. Reading data refers to retrieving data from a storage medium to a place that is easy to process, such as a computer's RAM (Random Access Memory), in order to perform an operation or process it.
[0082] Reading script: Reading script sets a fixed path and fixed format file naming in the storage medium, opens the file according to the established format of file naming and path, and copies and pastes it into the device.
[0083] Marking: Marking includes marking operations in the script writing, creates a new folder to indicate the effect, writes the file to the corresponding folder, and indicates that other devices can read the script.
[0084] Daily power business has data interaction problems under different networks and systems. Due to network security, it can only be done by manually plugging and unplugging storage media, manually copying the required files to the storage media, and then placing the storage media on other devices for reading, which greatly reduces the speed of data reporting and transmission, resulting in low data interaction efficiency. In the prior art, data processing is usually performed through a network gate, but using a network gate for data processing will result in problems such as high cost and difficulty in operation and installation.
[0085] In response to the above problems, an embodiment of the present application provides a cross-network and cross-system data transmission method. Figure 1 A schematic diagram of a scenario of a cross-network and cross-system data transmission method provided in an embodiment of the present application. Figure 1 As shown, the storage medium 3 includes: a plurality of read-write interfaces 31, a core ( Figure 1(not shown) and a Bluetooth communication module 32. Among them, device 1, device 2 and storage medium 3 are physically connected through a readable and writable interface 31, and device 1 or device 2 can write data into storage medium 3 through the readable and writable interface 31, and perform data reading operation on storage medium 3 through the readable and writable interface 31 when device 1 or device 2 needs to read data. When device 1 or device 2 can be wirelessly connected to the Bluetooth communication module 32 in the storage medium 3, the read and / or write data of device 1 or device 2 can be actively transmitted between the Bluetooth communication module 32 and the storage medium 3; when device 1 or device 2 cannot be wirelessly connected to the Bluetooth communication module 32 in the storage medium 3, the read and / or write data of device 1 or device 2 is passively requested by the physically connected storage medium 3 to perform data transmission operation between devices 1 or device 2.
[0086] The method uses a physical storage medium containing multiple read-write interfaces, and connects multiple devices across networks and systems that need to transmit data through the storage medium. Bluetooth communication can be used during the transmission process, and physical communication connection can be used for transmission when Bluetooth communication cannot be connected. According to the read or write instructions fed back by multiple devices, the written data or the data to be read is stored or transmitted to solve the data transmission problem between multiple devices across networks and systems, and improve the data transmission efficiency between devices. The use of a small physical storage medium for cross-system data transmission solves the problem of high equipment cost and difficult operation caused by the use of a network gate communication connection between systems.
[0087] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0088] Figure 2 This is a schematic diagram of a cross-network and cross-system data transmission method provided in an embodiment of the present application. Figure 1 .like Figure 2 As shown, a cross-network and cross-system data transmission method shown in this embodiment is applied to a storage medium with multiple interfaces, wherein at least two interfaces of the storage medium are respectively connected to corresponding devices, including:
[0089] S101: Acquire data transmission instructions sent by multiple devices through the at least two interfaces, where the data transmission instructions are used to instruct to perform a read operation or a write operation on data to be transmitted.
[0090] The data transmission instruction is a message generated by the sending device, which is used to indicate the specific information of the data to be processed, for example, it may include the sender (i.e., the source device), the receiver (i.e., the target device), and the operation type (read or write). The instruction specifies whether to perform a read operation or a write operation. The read operation is to retrieve data from a data source, such as a memory, a file, or a network location in a storage medium. The write operation is to write data to the storage medium so that the reading device can read the required data through the data source in the storage medium.
[0091] In this embodiment, the storage medium is set to a storage medium with a dual read-write interface, and its interface can be, for example, a USB interface, and the storage medium can support the USB interface of two devices that are physically connected at the same time. When a device is connected to the storage medium, the storage medium determines the device identification according to the data transmission instruction sent by the access device for subsequent data transmission operations.
[0092] S102: Determine a read device and a write device from a plurality of devices according to the data transmission instruction.
[0093] When the storage medium processes data transfer instructions from multiple devices, the read device is the device that initiates the data read request, and the write device is the device that receives the data write request and actually performs the write operation. If the operation type is a read operation, the device that sends the instruction is the read device, and the target device specified in the instruction is the write device. If the operation type is a write operation, the device that sends the instruction is the write device, and the target device specified in the instruction is the read device.
[0094] It is understandable that the storage medium receives data transmission instructions from at least two ports. The instructions may include an identifier of the device, such as an IP address, a device ID, or a MAC address. The storage medium uses these identifiers to determine the read device or the write device, and establishes a communication channel for the device so that the read / write device completes the read / write operation on the storage medium. If an error occurs in the storage medium during identification, transmission, or communication, such as when the device does not exist, there is no permission to access, or a network failure, the storage medium can capture such errors and take corresponding measures, such as recording an error log for the device that issued the instruction, sending an alarm, or retrying the operation.
[0095] S103: If a read or write operation sent by the reading device and / or the writing device is received, transmission processing is performed on the data to be transmitted.
[0096] Among them, when the storage medium receives a read or write operation, the operation can be prioritized. In a read or write process, the priority of the write operation is higher than the read priority. For the determination of the priority between multiple devices, the operator can prioritize the devices, or the storage medium can determine the device identifier based on the data transmission instruction sent by the device, and confirm the priority of the device and its operation based on its device identifier and the read / write operation sent by the device.
[0097] It can be understood that before transmitting the transmission data, the writing device communicates with the storage medium and writes the data to be written into the storage medium. The storage medium stores the written data. After receiving the data transmission instruction from the reading device, the storage medium establishes a data reading channel so that the reading device reads the data to be transmitted from the storage medium. The channel establishment order and data transmission process are determined by the device and the priority of the operation instruction.
[0098] This embodiment provides a method for cross-network and cross-system data transmission, which connects multiple cross-network and cross-system devices that need to perform data transmission through a storage medium, and stores or transmits write data or data to be read according to read or write instructions fed back by multiple devices, so as to solve the problem of data transmission between multiple devices across networks and systems and improve the data transmission efficiency between devices.
[0099] Figure 3 This is a schematic diagram of a cross-network and cross-system data transmission method provided in an embodiment of the present application. Figure 2 In this embodiment, when the received read and write operations are only write operations sent by the write device, the specific steps of performing transmission processing on the data to be transmitted are as follows:
[0100] S201: Sending a start writing command to the writing device through a first interface corresponding to the writing device, and establishing a Bluetooth channel with the writing device.
[0101] S202: receiving write data through the Bluetooth channel, and storing and processing the write data.
[0102] Among them, the storage medium only receives the write operation instruction issued by the device. At this time, the storage medium is only used as a storage space, establishes a Bluetooth communication connection with the device that issues the instruction, opens the Bluetooth data transmission channel, and enables the device to store data in the storage medium through the Bluetooth channel.
[0103] It can be understood that after the Bluetooth channel is successfully established between the device and the storage medium, a start writing command can be sent to the writing device through the channel. The device recognizes and responds to the command. The specific format and content of the command can be determined by the communication protocol between the storage medium and the writing device. After sending the command, the storage device waits for the response of the writing device. The writing device successfully receives the command and starts the writing operation. When the writing is completed, a confirmation completion message is returned and the Bluetooth channel with the storage medium is disconnected.
[0104] This embodiment provides a cross-network and cross-system data transmission method. When the only read and write operations received are write operations sent by a writing device, Bluetooth communication is used to enable the writing device to transfer the required stored data to a storage medium, and a communication connection between the device and the storage medium is established through Bluetooth, thereby improving the efficiency of data transmission.
[0105] Figure 4 This is a schematic diagram of a cross-network and cross-system data transmission method provided in an embodiment of the present application. Figure 3 In this embodiment, when the received read / write operations are only read operations sent by the read device, the specific steps of performing transmission processing on the data to be transmitted are as follows:
[0106] S301: Sending a start reading command to the reading device through a second interface corresponding to the reading device, establishing a Bluetooth channel with the reading device, and determining identification information of the data to be read.
[0107] S302: Transmitting the data to be read to the reading device via the Bluetooth channel.
[0108] Among them, the storage medium only receives the read operation instruction issued by the device. At this time, the storage medium is only used as a transmission space. The "start reading" command is sent to the reading device through the storage medium's read-write interface. The command can notify the reading device to prepare to start receiving data. After the storage medium sends the start reading command, the storage medium establishes a Bluetooth connection with the reading device. The process of establishing a Bluetooth connection can include steps such as device discovery, pairing, and channel establishment. After the Bluetooth pairing is successful, the device and the storage medium can communicate through the established Bluetooth channel to complete the data reading process.
[0109] It is understandable that before data transmission, identification information of the data is determined, such as the ID, address or other unique identifier of the data block. The storage medium finds the corresponding data from the data source (which may be a database, file or other storage medium) based on the identification information. When the identification information does not exist, an "error" prompt is returned to the reading device.
[0110] When all data has been successfully transmitted and processed, the control device can send an "end" command to the reading device to notify the reading device that the data transmission has been completed. At this time, both parties can disconnect the Bluetooth connection and release related resources.
[0111] This embodiment provides a method for data transmission across networks and systems. When the only read and write operations received are read operations sent by a reading device, the device and the storage medium open Bluetooth communication, determine the data source based on the read information identifier, and transmit the required read data, thereby physically solving the problem of data transmission between devices.
[0112] Figure 5 This is a schematic diagram of a cross-network and cross-system data transmission method provided in an embodiment of the present application. Figure 4 In this embodiment, when the Bluetooth communication module of the storage medium can establish a communication connection with the reading device and / or the writing device, and the received read / write operation is a read / write operation sent by the reading device and / or the writing device, the specific steps for performing transmission processing on the data to be transmitted are as follows:
[0113] S401: Determine the operation priorities of the reading device and the writing device, wherein the operation priority of the reading device is lower than the operation priority of the writing device.
[0114] The operation priority of the read device is lower than the operation priority of the write device, which means that when read and write operations simultaneously request to access the same storage medium, the write operation should be processed first. In the configuration of the read device and the write device, the priority of each device can be set in the firmware, driver or configuration file of the device. In addition, for some devices, the priority can also be set by operator definition, specific commands or interfaces.
[0115] It is understood that the storage medium may include an access control mechanism for managing access requests to the storage medium, and the mechanism may identify and process requests from the read device and the write device. When multiple operation requests arrive at the storage medium at the same time, the access control mechanism should decide to process one or more of the operation requests first according to the priority rule.
[0116] Specifically, in order to manage requests of different priorities, a queue can be used to store pending requests. A high-priority write operation request is placed in a queue with a higher priority so that it can be processed as soon as possible. A low-priority read operation request can be placed in a queue with a lower priority and processed after the write operation is completed. When read and write operations request access to the same data resource at the same time, the access control mechanism can resolve the conflict according to the priority rule. If a write operation request arrives and the read operation is being executed, the access control mechanism can consider interrupting the read operation and processing the write operation first. When the read operation is interrupted, the current state of the read operation can be saved so that it can be restored and continued after the write operation is completed. When the read operation is interrupted or has a low priority and cannot be executed immediately, the storage medium can send a notification or feedback to the read device of the read operation and explain the reason why the operation is delayed or interrupted. When the write operation is completed, the storage medium can notify the initiator of the read operation so that it can continue to perform the read operation.
[0117] S402: Send a start writing command to the writing device with a high operation priority through the first interface corresponding to the writing device, and establish a Bluetooth channel with the writing device.
[0118] S403: receiving the write data through the Bluetooth channel, and storing and processing the write data.
[0119] Among them, step S402-step S403 are similar to the above-mentioned step S201-step S202, and will not be repeated here.
[0120] S404: After the writing device completes the writing operation, a start reading command is sent to the reading device with a lower operation priority through the second interface corresponding to the reading device, a Bluetooth channel with the reading device is established, and identification information of the data to be read is determined.
[0121] S405: Transmitting the to-be-read data to the reading device via the Bluetooth channel.
[0122] After the write device completes the write operation, the write device can send a completion signal or status update to the storage medium. The storage medium detects that the write operation is completed and sends a "start reading" command to the read device with a low operation priority through the second interface corresponding to the read device to notify the read device to prepare to start receiving read requests or perform read operations.
[0123] It can be understood that after the write channel Bluetooth channel is released, the storage medium will establish a Bluetooth channel with the released Bluetooth communication module and the reading device Bluetooth module, and open a data transmission channel to the reading device. After the Bluetooth channel is successfully established, the read data in the read instruction sent by the reading device is actively transmitted to the reading device to complete the data transmission.
[0124] A cross-network and cross-system data transmission method provided in this embodiment is applied to a storage medium with multiple interfaces, wherein at least two interfaces of the storage medium are respectively connected to corresponding devices. By adding more data read and write ports to the storage medium, a one-to-many storage sharing function is provided, thereby eliminating the manual operation of plugging and unplugging the storage medium for regular data transmission. For data transmission, the device priority is identified, thereby improving the flexibility of data transmission operations and the data transmission efficiency, while reducing the security risks caused by network transmission protocols and avoiding network attacks and data leakage.
[0125] Figure 6 This is a schematic diagram of a cross-network and cross-system data transmission method provided in an embodiment of the present application. Figure 5 In this embodiment, when the Bluetooth communication module of the storage medium cannot establish a communication connection with the reading device and / or the writing device, the received read / write operation is a read / write operation sent by the reading device and / or the writing device, and the specific steps for transmission processing of the data to be transmitted are as follows:
[0126] S501: Determine the first preset period and the second preset period, wherein the duration of the first preset period is the same as the duration of the second preset period.
[0127] The first preset time period refers to the time period during which the writing device can write data to the storage medium, that is, during this time period, the storage medium can open a data transmission channel to the writing device so that the writing device can write data. The second preset time period refers to the time period during which the reading device can read data from the storage medium, that is, during this time period, the storage medium can open a data transmission channel to the reading device so that the reading device can read data.
[0128] It is understandable that the duration of the data transmission channel opening can be set on the storage medium. The setting method can be, for example, a duration setting module on the storage medium, and the operation and maintenance personnel can estimate the transmission time required according to the relevant parameters of the data to be transmitted, and set the channel opening period through the duration setting module according to the estimated duration. The duration setting module on the storage medium can be, for example, a key-in module, and the operation and maintenance personnel can key in the required time period; a knob module, and the operation and maintenance personnel can rotate the knob pointer to point to the required preset time period to complete the time period setting.
[0129] In this embodiment, the duration of the preset time period is set according to the required transmission duration of the data to be transmitted, for example, it can be determined by the operation and maintenance personnel according to the data transmission rate, and the data transmission rate refers to the amount of data transmitted per unit time.
[0130] According to the actual needs, the operation and maintenance personnel can adjust the estimated transmission time. For example, they can add a buffer time to deal with possible delays or retransmissions, or reduce a safety time to prevent timeouts.
[0131] S502: receiving write data corresponding to the write device through a first interface within a first preset time period, and storing the write data according to a fixed path.
[0132] The first preset period refers to the time period during which the writing device needs to complete the data writing operation. During the first preset period, the writing device can write data to the storage medium through the first interface. At the end of the first preset period, the storage medium closes the data transmission channel for writing, and the writing device can no longer complete the writing operation through the data transmission channel.
[0133] It is understandable that the writing device can detect the access to the storage medium. When the writing device detects that the storage medium is accessed, the accessed storage medium can be checked for legitimacy to determine that the accessed storage medium is a marked legal medium. After the legitimacy check is passed, the operation and maintenance personnel can synchronously set the transmission period on the writing device and / or the reading device. The transmission period can be determined, for example, based on the size of the data to be transmitted, the amount of tasks to be transmitted, etc. The transmission period can be, for example, a time node or a corresponding time period corresponding to a preset period. The writing device and / or the reading device can complete the reading and / or writing operations through the storage medium within the transmission period.
[0134] After the writing device determines that the storage medium is connected, the writing device may, for example, ensure that the first interface is in an available state and transmit the write data in a fixed path. During the first preset period of time, the storage medium continuously receives the data stream from the writing device through the first interface, and when the data starts to be written, it starts to receive and temporarily store it in the target storage space, and stores the received data according to the previously determined fixed path.
[0135] S503: Transmitting the to-be-read data stored in the fixed path to the reading device via a second interface within a second preset time period, wherein the start time of the second preset time period is the end time of the first preset time period.
[0136] Among them, the reading device and the writing device can predetermine a fixed storage path in the storage medium. The path can be, for example, a folder in the storage medium, a table in the database, or other storage locations in the storage medium. The starting time of the second preset time period is set to the end time of the first preset time period to ensure that the reading device starts reading immediately after the writing device completes writing, that is, the reading data transmission channel is opened to the reading device when the writing data transmission channel is closed. After the writing device writes data and stores it in the fixed path, the second interface physically connecting the reading device to the storage medium can be connected, that is, the reading device can read and transmit the data to be read through the fixed path at this time.
[0137] It can be understood that the reading device can set a transmission period for reading data. At the starting time of the set transmission period, the reading device can start reading the data to be read from the storage medium. The reading device can establish a data transmission channel with the storage medium through the second interface. The storage medium is opened to the reading device through the second interface according to the starting time of the second preset period, and the data transmission channel is started. The data transmission channel is closed at the end time of the second preset start period, and passive data transmission is realized in a certain period of time. The data transmission time and the fixed transmission channel opening time are combined with the transmission data size to complete the data transmission work in a fixed period of time.
[0138] The present embodiment provides a cross-network and cross-system data transmission method, a multi-interface storage medium, at least two interfaces of the storage medium are respectively connected to corresponding devices, when the storage medium and the device cannot communicate via Bluetooth, the storage medium and the transmission device are physically connected, the data transmission time is estimated according to the size of the transmitted data, and the opening and disconnection of the data transmission channel of the storage medium are restricted by time periods, that is, conditional control is set on the storage medium, the opening of the data channel is passively completed, and when the transmission time is reached, the channel is controlled to complete the data transmission in a timely manner, and the network transmission protocol is not involved, the operation is simple, and the data transmission is completed by a small storage device while avoiding the security risks caused by the network transmission protocol, thereby avoiding network attacks and data leakage.
[0139] In a possible implementation, in the above Figure 6 Based on the embodiment, after the storage medium transmits the to-be-read data stored in the fixed path to the reading device through the second interface, a transmission patrol cycle can also be set in the data transmission channel. The specific process is as follows:
[0140] After the reading device finishes reading the data to be read, the operation and maintenance personnel determine the data transmission status of one or more reading devices corresponding to the data to be read, and determine the transmission patrol cycle according to the data transmission status.
[0141] The data transmission status may include, for example, whether the current reading device has completed the data reading, whether one or more reading devices have read the corresponding data, etc. The operation and maintenance personnel may confirm whether the reading device has successfully completed the data reading, for example, by checking the device's status indicator, log records or monitoring system, and the data that can be read needs to be initially verified to ensure the integrity and accuracy of the data, for example, by checking the data format, range, and whether it contains abnormal values.
[0142] It is understandable that after the storage medium data transmission channel is closed, the wired connection between the storage medium and the read and / or write device may not be disconnected. After determining that there is incomplete data transmission or other problems, the operation and maintenance personnel may set a patrol cycle for the read and / or write device and the storage medium. After the patrol is set, the storage medium may open the data transmission channel to the read and / or write device within the time period set in the patrol cycle, and the read and / or write device may complete the read and / or write operation through the storage medium within the time period set in the patrol cycle.
[0143] Figure 7 The present invention provides a schematic diagram of a cross-network and cross-system data transmission device, which is applied to a storage medium with multiple interfaces, wherein at least two interfaces of the storage medium are connected to corresponding devices respectively. Figure 7 As shown, this embodiment provides a cross-network and cross-system data transmission device 600, including:
[0144] An acquisition module 601 is used to acquire data transmission instructions sent by multiple devices through the at least two interfaces, where the data transmission instructions are used to instruct to perform a read operation or a write operation on the data to be transmitted;
[0145] A determination module 602, configured to determine a read device and a write device from a plurality of devices according to the data transmission instruction;
[0146] A transmission module 603, configured to perform transmission processing on the data to be transmitted upon receiving a read / write operation sent by the reading device and / or the writing device;
[0147] Optionally, if a write operation sent by the write device is received, the data to be transmitted is subjected to transmission processing, and the apparatus further includes: a sending module 604, a establishing module 605, a receiving module 606, and a storage module 607;
[0148] The sending module 604 is used to send a start writing command to the writing device through the first interface corresponding to the writing device;
[0149] The establishing module 605 is used to establish a Bluetooth channel with the writing device;
[0150] The receiving module 606 is used to receive the write data through the Bluetooth channel;
[0151] The storage module 607 is used to store the written data;
[0152] Optionally, if a read operation sent by the reading device is received, the data to be transmitted is subjected to transmission processing, and the sending module 604 is further configured to send a start reading command to the reading device through a second interface corresponding to the reading device;
[0153] The establishing module 605 is also used to establish a Bluetooth channel with the reading device;
[0154] The determination module 602 is further used to determine identification information of the data to be read;
[0155] The transmission module 603 is further used to transmit the to-be-read data to the reading device via the Bluetooth channel;
[0156] Optionally, if a read / write operation sent by the read device and / or the write device is received, the data to be transmitted is subjected to transmission processing, and the determination module 602 is further used to determine the operation priority of the read device and the write device, wherein the operation priority of the read device is lower than the operation priority of the write device;
[0157] The sending module 604 is further configured to send a start writing command to the writing device with a high operation priority through the first interface corresponding to the writing device;
[0158] The establishing module 605 is further used to establish a Bluetooth channel with the writing device;
[0159] The receiving module 606 is further used to receive write data through the Bluetooth channel;
[0160] The storage module 607 is also used to store the written data;
[0161] The sending module 604 is further configured to send a start reading command to the reading device with a lower operation priority through the second interface corresponding to the reading device after the writing device completes the writing operation;
[0162] The establishing module 605 is also used to establish a Bluetooth channel with the reading device;
[0163] The determination module 602 is further used to determine identification information of the data to be read;
[0164] The transmission module 603 is further used to transmit the to-be-read data to the reading device via the Bluetooth channel;
[0165] Optionally, if a read or write operation is received from the read device and / or the write device, the data to be transmitted is subjected to transmission processing, and the receiving module 606 is further configured to receive the write data corresponding to the write device through the first interface within a first preset time period;
[0166] The storage module 607 is further used to store the written data according to a fixed path;
[0167] The transmission module 603 is further configured to transmit the to-be-read data stored in the fixed path to the reading device via a second interface within a second preset period, wherein the start time of the second preset period is the end time of the first preset period;
[0168] Optionally, before receiving the write data corresponding to the write device through the first interface within the first preset time period, the determination module 602 is further used to determine the first preset time period and the second preset time period, wherein the duration of the first preset time period is the same as the duration of the second preset time period;
[0169] Optionally, the fixed path is jointly determined by the reading device and the writing device.
[0170] Figure 8 A schematic diagram of a cross-network and cross-system data transmission device provided in an embodiment of the present application. Figure 8 As shown, an embodiment of the present application provides a cross-network and cross-system data transmission device, a cross-network and cross-system data transmission device 700 includes: a receiver 701, a transmitter 702, a processor 703 and a memory 704.
[0171] Receiver 701, used for receiving instructions and data;
[0172] A transmitter 702, used for sending instructions and data;
[0173] Memory 704, for storing computer-executable instructions;
[0174] The processor 703 is used to execute the computer-executable instructions stored in the memory 704 to implement the steps executed by the various execution entities of the above-mentioned cross-network and cross-system data transmission method. For details, please refer to the relevant description in the above-mentioned cross-network and cross-system data transmission method embodiment.
[0175] Optionally, the memory 704 may be independent or integrated with the processor 703 .
[0176] When the memory 704 is independently provided, the electronic device further includes a bus for connecting the memory 704 and the processor 703 .
[0177] The present application also provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, a cross-network and cross-system data transmission method executed by the above-mentioned cross-network and cross-system data transmission device is implemented.
[0178] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0179] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0180] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A cross-network and cross-system data transmission method, characterized in that: Applied to a storage medium with multiple interfaces, at least two interfaces of the storage medium are respectively connected to corresponding devices, and the method includes: Acquire, through the at least two interfaces, data transmission instructions sent by a plurality of devices, wherein the data transmission instructions are used to instruct to perform a read operation or a write operation on the data to be transmitted; Determining a read device and a write device from a plurality of devices according to the data transmission instruction; If a read or write operation is received from the read device and / or the write device, transmission processing is performed on the data to be transmitted.
2. The method according to claim 1, characterized in that If a write operation sent by the write device is received, transmission processing is performed on the data to be transmitted, including: Sending a start writing command to the writing device through a first interface corresponding to the writing device, and establishing a Bluetooth channel with the writing device; The write data is received through the Bluetooth channel, and the write data is stored and processed.
3. The method according to claim 1, characterized in that If a read operation sent by the reading device is received, transmission processing is performed on the data to be transmitted, including: Sending a start reading command to the reading device through a second interface corresponding to the reading device, establishing a Bluetooth channel with the reading device, and determining identification information of the data to be read; The data to be read is transmitted to the reading device via the Bluetooth channel.
4. The method according to claim 1, characterized in that: If the read / write operation sent by the read device and / or the write device is received, transmission processing is performed on the data to be transmitted, including: Determining the operation priority of the reading device and the writing device, wherein the operation priority of the reading device is lower than the operation priority of the writing device; Sending a start writing command to the writing device with a high operation priority through the first interface corresponding to the writing device, and establishing a Bluetooth channel with the writing device; receiving the written data through the Bluetooth channel, and storing and processing the written data; After the writing device completes the writing operation, a start reading command is sent to the reading device with a lower operation priority through the second interface corresponding to the reading device, a Bluetooth channel with the reading device is established, and identification information of the data to be read is determined; The data to be read is transmitted to the reading device via the Bluetooth channel.
5. The method according to claim 1, characterized in that If the read / write operation sent by the read device and / or the write device is received, transmission processing is performed on the data to be transmitted, including: receiving the write data corresponding to the write device through the first interface within a first preset time period, and storing the write data according to a fixed path; The to-be-read data stored in the fixed path is transmitted to the reading device via the second interface within a second preset time period, and the start time of the second preset time period is the end time of the first preset time period.
6. The method according to claim 5, characterized in that Before receiving the write data corresponding to the write device through the first interface within the first preset time period, the method further includes: The first preset period and the second preset period are determined, wherein the duration of the first preset period is the same as the duration of the second preset period.
7. The method according to claim 5, characterized in that The fixed path is jointly determined by the reading device and the writing device.
8. A cross-network and cross-system data transmission device, characterized in that: Applicable to storage media with multiple interfaces, including: An acquisition module, used for acquiring data transmission instructions sent by multiple devices through the at least two interfaces, wherein the data transmission instructions are used for instructing to perform a read operation or a write operation on the data to be transmitted; A determination module, used to determine a read device and a write device from a plurality of devices according to the data transmission instruction; The transmission module is used to perform transmission processing on the data to be transmitted upon receiving the read / write operation sent by the read device and / or the write device.
9. A cross-network and cross-system data transmission device, characterized in that: include: Memory; processor; Wherein, the memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement a cross-network and cross-system data transmission method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement a cross-network and cross-system data transmission method as described in any one of claims 1 to 7.
