A bus control method and system

By acquiring scan command configuration address information through bus control methods, generating topology information and determining its compliance, the data transmission security problem caused by slave device abnormalities when the bus is idle is solved, thereby improving data transmission security and handling abnormalities.

CN115437976BActive Publication Date: 2026-03-20SHANGHAI FLEXEM TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-08
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

In computer systems, when the bus is idle, slave devices may malfunction or become unresponsive, leading to reduced data transmission security, loss of cached data, or errors.

Method used

By acquiring scanning instructions, configuring address information, generating topology information, and determining whether it conforms to preset topology rules, if it does not conform, it is marked as an item to be processed. Configuration parameters are acquired and data is transmitted according to control policies, thereby improving data transmission security.

Benefits of technology

It improves the security of data transmission, ensures normal operation when the topology is intact, and effectively caches data and handles exception types when the target function malfunctions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115437976B_ABST
    Figure CN115437976B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of network control, in particular to a bus control method and system, which comprises the following steps: obtaining a scanning instruction; configuring corresponding address information according to the scanning instruction; reading the address information to generate corresponding topology information; judging whether the topology information conforms to a preset topology rule; if the topology information does not conform to the preset topology rule, calibrating the topology information as a to-be-processed item; if the topology information conforms to the preset topology rule, obtaining configuration parameters corresponding to the topology information; obtaining corresponding control instructions according to the configuration parameters; analyzing the control instructions to obtain and perform data transmission according to a control strategy. The bus control method and system provided by the application have the effect of improving the safety of data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of network control, in particular to a bus control method and system. BACKGROUND

[0002] The bus is a common communication trunk for transmitting messages between various functional components of a computer. It is a transmission line bundle composed of wires. According to the types of information transmitted by the computer, the bus of the computer can be divided into a data bus, an address bus and a control bus, which are respectively used to transmit data, data addresses and control signals. The bus is also an internal structure, which is a common channel for information transmission between CPU, memory, input and output devices. The components of the host are connected through the bus, and the external devices are connected to the bus through the corresponding interface circuit, thereby forming a computer hardware system. In a computer system, the common path for transmitting information between components is called a bus, and a microcomputer is connected with various functional components in a bus structure.

[0003] When the bus is idle and a device wants to communicate with a destination device, the device initiating the communication drives the bus and sends addresses and data. If a device connected to the bus receives (or can receive) address information consistent with itself, it receives data on the bus, and the transmitting device completes the communication.

[0004] During the process of sending a control instruction from the host to the slave device, the slave device may appear abnormal or not respond, resulting in loss of related cache data or errors, thereby reducing the security of data transmission. SUMMARY

[0005] In order to improve the security of data transmission, the present application provides a bus control method and system.

[0006] In a first aspect, the present application provides a bus control method, comprising the following steps:

[0007] Obtaining a scanning instruction;

[0008] According to the scanning instruction, configuring corresponding address information;

[0009] Reading the address information to generate corresponding topology information;

[0010] Judging whether the topology information conforms to a preset topology rule;

[0011] If the preset topology rule is not met, the topology information is marked as a to-be-processed item;

[0012] If the preset topology rule is met, the configuration parameters corresponding to the topology information are obtained;

[0013] According to the configuration parameters, a corresponding control instruction is obtained;

[0014] analyzing the control instruction, obtaining and transmitting data according to the control strategy.

[0015] By adopting the technical scheme, the corresponding address information is configured according to the scanning instruction, so as to generate the corresponding topology information by reading the address information, and then it is judged whether the generated topology information conforms to the preset topology rule stored locally. If the preset topology rule is not met, the topology information is calibrated as a to-be-processed item, and a corresponding prompt is made. If the preset topology rule is met, it means that the topology structure is not damaged and can be normally operated, that is, the configuration parameters corresponding to the topology information can be obtained, the control instruction obtained according to the configuration parameters is further analyzed, and then the data is transmitted according to the corresponding control strategy, so that the security of data transmission can be improved.

[0016] Optionally, the analyzing the control instruction, obtaining and transmitting data according to the control strategy comprises the following steps:

[0017] obtaining target data according to the configuration parameters;

[0018] judging whether the control instruction corresponding to the target data is responded;

[0019] if the control instruction corresponding to the target data is responded, judging whether the target function corresponding to the target data is normal;

[0020] if the target function is normal, transmitting the target data according to the control instruction as the control strategy;

[0021] if the target function is not normal, obtaining corresponding to-be-cached data according to the target data, and caching the to-be-cached data according to the control strategy of the preset caching rule;

[0022] if the instruction corresponding to the target data is not responded, obtaining a corresponding exception type, and processing the exception type according to the control strategy of the preset security standard.

[0023] By adopting the technical scheme, according to whether the control instruction corresponding to the target data is responded, the control strategy corresponding to the target data is further obtained for transmission, so that the security of data in the transmission process is improved.

[0024] Optionally, if the target function is not normal, obtaining corresponding to-be-cached data according to the target data, and caching the to-be-cached data according to the control strategy of the preset caching rule comprises the following steps:

[0025] if the target function is not normal, analyzing the size and data type of the to-be-cached data;

[0026] acquire a cache node table corresponding to the data type as a current node table;

[0027] determine whether there is a cacheable space in the current node table according to the preset cache rule;

[0028] if there is the cacheable space, take the cacheable space with a storage capacity greater than the data size as a to-be-cached space;

[0029] acquire a storage security value of the to-be-cached space;

[0030] acquire a risk threshold corresponding to the to-be-cached data;

[0031] determine whether the storage security value is greater than the risk threshold;

[0032] if the storage security value is greater than the risk threshold, cache the to-be-cached data into the to-be-cached space, and update an identification bit of the to-be-cached space to a cached flag.

[0033] By using the above technical solution, the storage security value of the to-be-cached space greater than the risk threshold of the to-be-cached data is taken as a prerequisite condition for caching the to-be-cached data into the to-be-cached space, thereby improving the security of caching the to-be-cached data when a target function is abnormal.

[0034] Optionally, before the step of analyzing the size and data type of the to-be-cached data, the method further includes the following steps:

[0035] acquire a data reading instruction;

[0036] analyze a reading position, reading content and reading authority of the data reading instruction;

[0037] determine whether the reading authority can conform to a position authority of the reading position;

[0038] if yes, acquire storage data corresponding to the reading position and the reading content as the to-be-cached data;

[0039] if no, record the data reading instruction and the reading content to form record information.

[0040] By using the above technical solution, the data reading instruction is analyzed and determined, thereby improving the security of acquiring the to-be-cached data.

[0041] Optionally, the step of acquiring the risk threshold corresponding to the to-be-cached data includes the following steps:

[0042] acquire a content category corresponding to the reading content in the record information;

[0043] determining whether the content category is the same as the data type of the data to be cached;

[0044] if the content category is the same as the data type, obtaining a security coefficient corresponding to the data type as the risk threshold;

[0045] if the content category is not the same as the data type, obtaining the preset risk threshold corresponding to the data to be cached as the risk threshold.

[0046] By using the above technical solution, the content category corresponding to the read content in the record information is compared and analyzed with the data type of the data to be cached, and the corresponding risk threshold is further obtained, so that the specific security level of the data to be cached can be obtained according to the risk threshold.

[0047] Optionally, the obtaining of the storage security value of the cache space to be cached comprises the following steps:

[0048] determining whether the cache space to be cached has a risk record;

[0049] if the cache space to be cached does not have the risk record, obtaining a preset storage security value of the cache space to be cached as the storage security value;

[0050] if the cache space to be cached has the risk record, determining whether the risk record contains the data type;

[0051] if the risk record contains the data type, obtaining a risk coefficient corresponding to the data type;

[0052] if the risk record does not contain the data type, obtaining the preset storage security value of the cache space to be cached as the storage security value.

[0053] By using the above technical solution, it is determined whether the cache space to be cached has a risk record, and whether the same data type as the data to be cached exists in the risk record, and a corresponding risk coefficient or storage security value is further obtained, thereby improving the security of the data to be cached in the caching process.

[0054] Optionally, if the target function is not normal, the obtaining of the corresponding data to be cached according to the target data and the caching of the data to be cached according to the control strategy of the preset caching rule further comprises the following steps:

[0055] if the storage security value is less than or equal to the risk threshold, obtaining a preset storage security value greater than the current storage security value;

[0056] the cache space corresponding to the preset storage security value is taken as the cache space to be cached;

[0057] obtaining an encryption mode corresponding to the data category;

[0058] encrypt the to-be-cached data by the encryption mode to form encrypted cached data;

[0059] cache the encrypted cached data into the to-be-cached space, and update the identification bit of the to-be-cached space to the cached flag.

[0060] By adopting the technical solution, when the storage security value is less than or equal to the risk threshold, the cache space corresponding to the preset storage security value greater than the current storage security value is obtained as the to-be-cached space, and the to-be-cached data is encrypted by the encryption mode corresponding to the to-be-cached data, thereby improving the security of the to-be-cached data in the caching process.

[0061] Optionally, if the control instruction corresponding to the target data is not responsive, the corresponding exception type is obtained, and the exception type is processed according to the control policy of the preset security standard, which includes the following steps:

[0062] If the control instruction corresponding to the target data is not responsive, the corresponding detection information is obtained.

[0063] According to the detection information, the corresponding feature information is obtained.

[0064] The feature information is identified to generate the corresponding exception type.

[0065] The exception type is processed according to the control policy of the preset security standard.

[0066] By adopting the technical solution, the feature information detected by the detection information is identified to further generate the corresponding exception type, thereby facilitating the processing of the specific exception type according to the preset security standard, and improving the efficiency of processing the control instruction when the control instruction is abnormal.

[0067] Optionally, processing the exception type according to the control policy of the preset security standard further includes the following steps:

[0068] The processing result of the preset security standard processing the exception type is obtained.

[0069] It is judged whether there is an exception processing record in the processing result.

[0070] If the failure record exists, a preset configuration rule is obtained, and the exception processing record is processed according to the preset configuration rule.

[0071] By adopting the technical solution, the exception processing record existing in the processing result is processed by the preset configuration rule, thereby improving the integrity of the exception processing operation.

[0072] In a second aspect, the present application also provides a bus control system, comprising:

[0073] a first obtaining module, configured to obtain a scanning instruction;

[0074] a configuration module, configured to configure corresponding address information according to the scanning instruction;

[0075] a reading module, configured to read the address information and generate corresponding topology information;

[0076] a judging module, configured to judge whether the topology information conforms to a preset topology rule;

[0077] a calibration module, configured to calibrate the topology information as a to-be-processed item according to the calibration module if the topology information does not conform to the preset topology rule;

[0078] a second obtaining module, configured to obtain configuration parameters corresponding to the topology information according to the second obtaining module if the topology information conforms to the preset topology rule;

[0079] a third obtaining module, configured to obtain corresponding control instructions according to the configuration parameters;

[0080] an analyzing module, configured to analyze the control instructions, obtain and control data transmission according to a control strategy.

[0081] By using the above technical solution, the address information corresponding to the scanning instruction obtained by the first obtaining module is configured by the configuration module, so as to generate corresponding topology information by reading the address information by the reading module. Then, the judging module judges whether the generated topology information conforms to the preset topology rule stored locally. If the topology information does not conform to the preset topology rule, the topology information is calibrated as a to-be-processed item according to the calibration module, and a corresponding prompt is made. If the topology information conforms to the preset topology rule, it indicates that the topology structure is not damaged and can be normally operated. In this case, the configuration parameters corresponding to the topology information can be obtained by the second obtaining module, the corresponding control instructions can be obtained by the third obtaining module according to the configuration parameters, and finally the data transmission can be controlled by the analyzing module according to the corresponding control strategy. Therefore, the security of data transmission can be improved.

[0082] In summary, the present application includes the following beneficial technical effects: according to the scanning instruction configuration corresponding address information, in order to generate corresponding topology information by reading address information, and then determine whether the generated topology information conforms to the locally stored preset topology rule, if it does not conform to the preset topology rule, then mark the topology information as a to-be-processed item, and make a corresponding prompt, if it conforms to the preset topology rule, it means that the topology structure has not been damaged and can run normally, that is, the configuration parameters corresponding to the topology information can be obtained, further analysis of the control instruction obtained according to the configuration parameters, and then obtain and control the data transmission according to the corresponding control strategy, so as to improve the security of data transmission. BRIEF DESCRIPTION OF DRAWINGS

[0083] Figure 1 is a flowchart of steps S101 to S108 in a bus control method of the present application.

[0084] Figure 2 is a flowchart of steps S201 to S206 in a bus control method of the present application.

[0085] Figure 3 is a flowchart of steps S301 to S308 in a bus control method of the present application.

[0086] Figure 4 is a flowchart of steps S401 to S405 in a bus control method of the present application.

[0087] Figure 5 is a flowchart of steps S501 to S504 in a bus control method of the present application.

[0088] Figure 6 is a flowchart of steps S601 to S605 in a bus control method of the present application.

[0089] Figure 7 is a flowchart of steps S701 to S705 in a bus control method of the present application.

[0090] Figure 8 is a flowchart of steps S801 to S804 in a bus control method of the present application.

[0091] Figure 9 is a flowchart of steps S901 to S903 in a bus control method of the present application.

[0092] Figure 10 is a module diagram of a bus control system of the present application.

[0093] BRIEF DESCRIPTION OF DRAWINGS

[0094] 1. First acquisition module; 2. Configuration module; 3. Reading module; 4. Judgment module; 5. Calibration module; 6. Second acquisition module; 7. Third acquisition module; 8. Analysis module. Detailed Implementation

[0095] The following is in conjunction with the appendix Figures 1-10 This application will be described in further detail.

[0096] To facilitate the explanation of this solution, we will use an FME-BUS-II bus device as an example:

[0097] The host is the only one for each FME-BUS-II line, and all command operations are initiated by the host.

[0098] The FME-BUS-II host consists of two main parts: the bus controller and the general-purpose processor.

[0099] The functions of the bus controller are: to control the physical layer to send and receive data; to automatically generate and parse data frames; to automatically and periodically initiate synchronization operations (sending synchronization frames and exchanging process data objects); to manage interrupts (error interrupts caused by operational abnormalities, and device interrupts generated based on the interrupt flags of slave devices), and to provide methods for interrupt triggering and querying interrupt sources; and to provide an interface for performing bursty data access and control operations on slave devices.

[0100] A general-purpose processor, such as an MCU or CPU, is used to execute user code. It controls and exchanges data with slave devices through the interface provided by the bus controller.

[0101] A slave device is the executor of commands initiated by the master device. A single FME-BUS-II line can support no more than 31 slave devices. Each slave device is assigned a unique address from 1 to 31 by the master. Address 0 is used as the initial default address.

[0102] The device also includes two logical parts: a bus controller and a function actuator.

[0103] The functions of the bus controller are: to control the physical layer to send and receive data; to automatically generate and parse data frames; to automatically respond to instructions sent by the host; to provide an interface to the function actuators for accessing interactive data and control flags (such as device interrupts); to provide interrupt interfaces (synchronous interrupts, data interrupts, control interrupts); to provide memory access to registers, PDO data areas, and internal or external extended addresses; and to control the communication enable of the next-level slave devices.

[0104] The function actuator is responsible for: updating input data (digital input, analog input, etc.); transforming output data (digital output, analog output, etc.); and performing other auxiliary operations and calculations.

[0105] The two function models of the slave device can be implemented in the same FPGA or MCU according to actual conditions.

[0106] The embodiment of the application discloses a bus control method, referring to Figure 1 , comprising the steps of:

[0107] S101, obtaining a scanning instruction;

[0108] S102, configuring corresponding address information according to the scanning instruction;

[0109] S103, reading the address information and generating corresponding topology information;

[0110] S104, judging whether the topology information meets preset topology rules;

[0111] S105, if the preset topology rules are not met, calibrating the topology information as a to-be-processed item;

[0112] S106, if the preset topology rules are met, obtaining configuration parameters corresponding to the topology information;

[0113] S107, obtaining corresponding control instructions according to the configuration parameters;

[0114] S108, analyzing the control instructions, obtaining and performing data transmission according to a control strategy.

[0115] The scanning instruction in the steps S101 to S102 refers to a bus scanning instruction of a host to a slave device; and the address information refers to address information set for the slave device according to the bus scanning instruction of the host.

[0116] In actual application, the host needs to be able to normally communicate with the slave device, and first needs to be able to establish an effective connection with each slave device. The establishment of the connection is a process of allocating a unique bus address for each slave device, which needs to be completed by bus scanning.

[0117] For example, when bus scanning is performed, the host first sends a reset instruction to make all the slave devices enter a reset state, and simultaneously opens a lower-level communication enable of the host. At this time, only the slave device directly hung behind the host will respond to the address setting instruction. Then the host sets the slave device with the #0 address as a specified address, and if a correct response is obtained, sets an internal related register to indicate that the address is valid (for synchronous operation preparation). After the slave device is set with the address, it enters a configuration state, and simultaneously opens a next-level communication enable, which ensures that all the slave devices will be configured in turn. When 31 addresses are allocated or a response timeout occurs, the scanning is ended.

[0118] The slave device has four different working states, and different characteristics are shown in different states, which are as follows.

[0119] Initialization state, the slave enters this state immediately after power-on reset. In this state, the slave initializes the hardware drivers. No bus command is responded in this state. After initialization, if a valid configuration is detected in the memory, the configuration (including bus address) is loaded and the slave enters the configuration state, otherwise the slave enters the reset state.

[0120] Reset state, in this state, the slave sets the bus address to 0 and turns off the communication enable of the next slave. Meanwhile, the configuration of the slave is also reloaded: if a valid configuration is detected, the configuration (excluding address) is loaded, otherwise the default configuration is loaded. In this state, the slave can only respond to the command with bus address 0, and the communication enable of the next slave must be turned on by the previous slave. In this state, if a valid set address command is received, the slave enters the configuration state.

[0121] Configuration state, in this state, the bus address of the slave is set to a valid address other than 0, and the communication enable of the next slave is turned on. In this state, the slave can respond to the command from the master with bus address other than 0 and equal to itself. In this state, if a control command is received, the slave enters the synchronization state. If a reset command is received, the slave enters the reset state.

[0122] Synchronization state, only in this state, the slave can receive the control command and produce effect. In this state, if a control command is received, the slave enters the configuration state. If a reset command is received, the slave enters the reset state.

[0123] When performing bus scan, the master first sends a reset command to make all slaves enter the reset state, and turns on the communication enable of the next slave. At this time, only the slave directly connected to the master will respond to the set address command. Then the master sets the slave at #0 address to the specified address, and if the correct response is received, the internal related register is set to indicate that the address is valid (for synchronization operation). After the slave is set address, it enters the configuration state and turns on the communication enable of the next slave, which ensures that all slaves will be configured in turn. When the 31 addresses are allocated or the response timeout, the scan is ended.

[0124] Among them, the register is set in the slave, the bit width is 32 bits, the addressable range is 0~127, and there are 128 registers. The register can be used to configure the slave, control the behavior of the slave, and indicate the state of the slave. The master accesses through the register read / write command, and the function executor in the slave accesses through the data interface of the bus controller.

[0125] The bus controller can provide optional memory access, which can directly access internal SRAM, FLASH, extended external storage, and virtual address space, etc.

[0126] The topology information in steps S103-S106 refers to the network topology information of the slave device that needs to be established by the user code of the host after the scanning is completed; and the preset topology rule refers to the topology table stored locally.

[0127] In actual application, the topology table is generated by reading the relevant registers to obtain the address, type, unique ID, configuration magic number (used to compare whether the configuration of the slave device is consistent with that saved by the host) and other information of all slave devices, and is compared with the topology table stored locally. If consistent, it is indicated that the topology structure is not damaged, and the user code can be started to run normally. If inconsistent, a corresponding prompt should be made, and the user should be waited for manual processing. If it is the first scanning, the user should be prompted to make relevant configuration and save.

[0128] The configuration parameter in steps S107-S108 refers to the configuration parameter information of the slave device; the control instruction refers to the relevant control instruction issued by the host to the slave device; and the control strategy refers to the way of control data transmission generated according to the actual response state of the control instruction.

[0129] In actual application, the slave device needs to be reconfigured and saved (both the host and the slave device need to be saved) when the slave device is first connected to the host, or needs to be replaced, or needs to modify the parameters of the slave device, and update the firmware of the slave device.

[0130] The configuration parameter can define its own proprietary configuration register or the address and meaning of the configuration memory by different slave devices, and the host writes the parameter by writing the register or writing the memory.

[0131] The parameter is saved, and the slave device should provide a flag bit in its control register to save the parameter, which is used to let the host notify the slave device to write the configured parameter into its internal FLASH. The user code of the host generates a topology table according to the relevant information of all slave devices and saves it.

[0132] The slave device also provides a read-only configuration magic number register, and the slave device will randomly generate a 16-bit configuration magic number after saving the parameter each time. The configuration magic number will also be saved and loaded at each time of reloading the configuration. If the default configuration is loaded, the configuration magic number is 0. The host will quickly judge whether the configuration is changed according to this number.

[0133] The parameter is reloaded, and the slave device will automatically reload the configuration parameter after power-on reset or receiving a reset instruction. The configuration parameter (excluding the address) can also be manually reloaded by setting the flag bit of the relevant register. If the slave device has a valid configuration, the configuration is reloaded, and if not, the default configuration is reloaded.

[0134] Updating firmware, the host can write firmware data directly into FLASH by writing memory, or write into cache and set relevant control registers to inform the slave device to write into FLASH. For safety, the slave device's special register should be written with specified values before opening the firmware update function.

[0135] It should be noted that, in the process of data interaction according to the control instruction, the data interaction between the host and the slave device is divided into two categories: burst data transmission and synchronous data transmission.

[0136] Burst data transmission refers to a randomly initiated data request, and there is no special requirement for the time point of initiation. It is generally initiated by the application layer. Reading and writing memory and reading and writing registers are all such transmissions. The priority of burst data transmission is lower than that of synchronous data transmission. After the application layer initiates the request, the bus controller of the host will automatically arrange it in the remaining bandwidth of synchronous transmission, and after completion, the result will be notified to the application layer.

[0137] Synchronous data transmission is a transmission mode for PDO (process data), which is a fast data interaction mode between the host and the slave device.

[0138] For example, before starting the synchronization operation, the bus controller of the host needs to configure the synchronization cycle time and the PDO exchange length of each slave device, as well as initialize the PDO mapping address space of the slave device. The slave device needs to specify the specific meaning of different fields of the PDO by configuring relevant registers.

[0139] After all the slave devices are configured, the user code sets the bus controller of the host into synchronous working mode. The bus controller first sends a control instruction to let all the slave devices enter the synchronization mode.

[0140] After starting the synchronization, the bus controller of the host automatically sends a control instruction at the beginning of each synchronization cycle. All the slave devices receive it and perform synchronization operation: output the data in the PDO, sample the input data and update the PDO. Then the bus controller of the host sends a control instruction to update the PDO data of each slave device. After all the slave devices are synchronized, the bus controller can generate a synchronization interrupt to notify the application layer (configurable). The user code accesses the memory space mapped in each slave device by the bus controller of the host. The double buffer mechanism is used to solve the data integrity problem caused by non-synchronous operation of the user code and the bus controller.

[0141] If the control instruction response from the device is timed out, the host does not retry, but is marked as an update failure, if the continuous 4 times of update failure, the slave device is determined to be abnormal, and is removed from the synchronization list (no synchronization is performed thereafter), and the related register flag is set to notify the application layer (an interrupt can be generated). If the slave device cannot receive the correct control instruction for 4 times continuously, it is determined that the bus is abnormal, and the synchronization state is exited to enter the configuration state, and the related register flag is set to notify the application layer (an interrupt can be generated).

[0142] Further analysis of the control instruction, the control instruction of the slave device includes an interrupt state used to indicate the slave device, and after the bus controller of the host receives the interrupt state, the interrupt state is automatically mapped to the internal state register, and after being processed by the configurable logic, the application layer is notified. After the user code receives the notification, the specific interrupt source is determined by reading the state register of the slave device, and the corresponding control strategy is obtained to control the data transmission.

[0143] The bus control method provided in the embodiment comprises the following steps: configuring corresponding address information according to a scanning instruction, generating corresponding topology information by reading the address information, judging whether the generated topology information conforms to a preset topology rule stored locally, if not, marking the topology information as a to-be-processed item and making a corresponding prompt, if yes, obtaining configuration parameters corresponding to the topology information, further analyzing control instructions obtained according to the configuration parameters, and then obtaining and controlling data transmission according to corresponding control strategies, so that the safety of data transmission can be improved.

[0144] In one of the implementation manners of the embodiment, as shown in Figure 2 The step S108 comprises the following steps:

[0145] S201, obtaining target data according to configuration parameters;

[0146] S202, judging whether a control instruction corresponding to the target data is responded;

[0147] S203, if the control instruction corresponding to the target data is responded, judging whether a target function corresponding to the target data is normal;

[0148] S204, if the target function is normal, transmitting the control instruction as a control strategy to the target data;

[0149] S205, if the target function is not normal, obtaining corresponding to-be-cached data according to the target data, and caching the to-be-cached data according to a control strategy of a preset caching rule;

[0150] S206, if the control instruction corresponding to the target data is not responsive, an abnormal type corresponding to the target data is obtained, and the abnormal type is processed according to a control policy of a preset security standard.

[0151] In actual application, the target data refers to a control data transmission instruction issued by a host according to a configuration parameter of a slave device; the target function refers to a function to be implemented by the slave device according to the control instruction; the data to be cached refers to data to be cached when the target function is abnormal; the preset caching rule refers to a rule for caching according to a type of the data to be cached; the abnormal type refers to an abnormal fault type generated when the slave device is interrupted; and the preset security standard refers to a repair operation standard corresponding to the abnormal fault type.

[0152] In actual application, the host end can detect two kinds of abnormalities: the slave device is not responsive and the slave device is responsive but the function is not normal, including the slave device is not responsive and the slave device is responsive but the function is not normal.

[0153] For example, in the case that the slave device is not responsive, if an abnormal type of a burst of a short period of time not responsive occurs, it is generally caused by device reset, and according to the corresponding preset security standard, if the device has saved valid configuration, the configuration will be reloaded immediately after reset, and the device can be restored to the configuration state.

[0154] If an abnormal type of intermittent non-response occurs, it is usually caused by bus interference, and the slave device itself is normal. According to the corresponding preset security standard, the bus controller of the host can count the communication failure rate for a period of time, and if the threshold is exceeded, an alarm is triggered, which is processed by the application layer.

[0155] If an abnormal type of continuous non-response occurs, there are generally the following possibilities: device power failure, physical disconnection, and dead machine.

[0156] According to the preset security standard corresponding to the device power failure, the device cannot be restored before the device is powered on. After the device is powered on, the reset process is performed: if the device has saved valid configuration, the configuration will be reloaded immediately after reset, and the device can be restored to the configuration state.

[0157] According to the preset security standard corresponding to the physical disconnection, the slave device is normal but the physical disconnection occurs. Before the physical connection is restored, the device cannot be restored. After the physical connection is restored, the device can communicate normally.

[0158] According to the preset security standard corresponding to the dead machine, the slave device is completely dead. In this case, the device can only be restored by physical reset. The slave device can set a watchdog to avoid this situation. After the watchdog is reset, the reset process is performed: if the device has saved valid configuration, the configuration will be reloaded immediately after reset, and the device can be restored to the configuration state.

[0159] For example, in the case of a normal response from the device but abnormal function, it can be a program runaway, a logic timing error, or an abnormality of some external device causing the data to be unable to be normally refreshed, so the target data transmitted under the control of the host can be lost or damaged due to the program error, and thus important data in the target data needs to be cached.

[0160] For example, the program error can also cause a cache abnormality, and there are generally several abnormal conditions such as cache avalanche, cache penetration, and cache break-in. The cache avalanche refers to a large area of cache invalidation at the same time, so that the subsequent requests are all dropped on the database, causing the database to collapse due to a large number of requests in a short time. The cache penetration refers to data that is not in the cache and the database, causing all requests to be dropped on the database, causing the database to collapse due to a large number of requests in a short time. The cache break-in refers to data that is not in the cache but is in the database (generally, the cache time has expired), at which time a large number of concurrent users read the cache and do not read the data, and simultaneously read the data from the database, causing the database pressure to instantaneously increase, causing excessive pressure.

[0161] According to the preset cache rule of the cache avalanche, a corresponding cache mark is added to each cache data to record whether the cache is invalid. If the cache mark is invalid, the data cache is updated. According to the preset cache rule of the cache penetration, a verification is added to the interface layer, such as user authentication verification, and id-based verification, and id<=0 is directly intercepted. According to the preset cache rule of the cache break-in, hot data is set to never expire or a mutual exclusion lock is added.

[0162] Further, the actual situation of the data to be cached and the storage location corresponding to the data to be cached are analyzed according to the above-described preset cache rule, and a corresponding control strategy is generated in combination with multiple security factors to cache the data to be cached.

[0163] The bus control method provided by the embodiment improves the security of the data in the transmission process according to whether the control instruction corresponding to the target data is responded.

[0164] In one embodiment of the present embodiment, as shown in Figure 3 the step S205 includes the following steps:

[0165] S301, if the target function is abnormal, analyzing the size and data type of the data to be cached;

[0166] S302, obtaining a cache node table corresponding to the data type as a current node table;

[0167] S303, judging whether all cache spaces in the current node table exist cacheable spaces according to the preset cache rule;

[0168] S304, if the cacheable spaces exist, taking the cacheable space with the storable capacity greater than the data size as the to-be-cached space;

[0169] S305, obtaining the storage security value of the to-be-cached space;

[0170] S306, obtaining the risk threshold corresponding to the to-be-cached data;

[0171] S307, judging whether the storage security value is greater than the risk threshold;

[0172] S308, if the storage security value is greater than the risk threshold, caching the to-be-cached data into the to-be-cached space, and updating the identification bit of the to-be-cached space to the cached flag.

[0173] In actual application, the cache node table refers to the record table of the cache space corresponding to each cache node of the data type of the to-be-cached data; the current node table refers to the cache space node record table corresponding to the data type of the to-be-cached data; the preset cache rule refers to the rule of analyzing the cache space in the current node table; the storage security value refers to the security value corresponding to the storage of the to-be-cached data in the to-be-cached space; the risk threshold refers to the risk degree of the to-be-cached data itself; and the identification bit refers to the flag indicating whether the to-be-cached space has cached the to-be-cached data.

[0174] For example, due to the large number of internet project nodes, each node considers its own cache scheme, and corresponding protocols need to be established between different nodes to fully utilize the cache. The current node table of an internet application includes browser nodes, proxy server nodes, network server nodes, data server nodes, application server nodes and other cache nodes. Each node can use cache to improve the service efficiency of the entire network and the security of network data.

[0175] According to the preset cache rule, it is judged whether the corresponding cacheable space exists in the current node table of the internet application. It is judged that the database server corresponding cacheable space exists, the cacheable space with the storable capacity greater than the data size of the database service is taken as the to-be-cached space, the storage security value of the to-be-cached space of the database server is 10, the risk threshold of the to-be-cached data of the database service is 8, the to-be-cached data of the database service is cached into the to-be-cached space of the database server, and the identification bit of the to-be-cached space is updated to the cached flag.

[0176] For another example, it is judged that the corresponding cacheable space does not exist in the current node table of the internet application, and identification information of full cache is output.

[0177] For example, if the storage security value of the to-be-cached space of the database server is 8, the risk threshold of the to-be-cached data of the database service is 10, and the to-be-cached data outputs a prompt identifier of data anomaly, the risk threshold of the corresponding data is displayed.

[0178] The bus control method provided in the embodiment takes the premise condition that the storage security value of the to-be-cached space is greater than the risk threshold of the to-be-cached data, and improves the security of the to-be-cached data when the target function is abnormal.

[0179] In one of the embodiments of the present embodiment, as shown in Figure 4 Before step S301, the following steps are further included:

[0180] S401, obtaining a data reading instruction;

[0181] S402, parsing the reading position, reading content and reading permission of the data reading instruction;

[0182] S403, judging whether the reading permission can meet the position permission of the reading position;

[0183] S404, if yes, obtaining the storage data corresponding to the reading position and the reading content as the to-be-cached data;

[0184] S405, if no, recording the data reading instruction and the reading content to form record information.

[0185] In actual application, the data reading instruction refers to the reading instruction for obtaining the to-be-cached data from the target data; the reading position refers to the file position for obtaining the to-be-cached data; the reading content refers to the reading content corresponding to the to-be-cached data obtained according to the data reading instruction; and the reading permission refers to the related permission for parsing the reading content in the corresponding reading position.

[0186] For example, the cache of the proxy server is generally to cache pages and files, and the proxy server can be configured to cache the page. The proxy server cache is very effective for accessing from a remote place. For example, the network server is in Beijing and the proxy server is in Guangzhou. When the user in Guangzhou accesses through the proxy server, the proxy server in Guangzhou can cache a copy of the data, so that the next time the user in Guangzhou accesses, the user does not need to go to Beijing to obtain the data.

[0187] The reading position, reading content and reading permission of the reading instruction of the Guangzhou proxy server are obtained and parsed. It is judged that the reading permission corresponding to the Guangzhou proxy server meets the position permission of the Guangzhou reading position, and the storage data corresponding to the reading position of the Guangzhou proxy server and the proxy server is obtained as the to-be-cached data.

[0188] For example, if it is determined that the read permission corresponding to the Guangzhou proxy server does not meet the location permission of the Guangzhou read location, the read instruction of the Guangzhou proxy server and the corresponding read content are recorded to form the record information.

[0189] The bus control method provided by the embodiment improves the security of obtaining the data to be cached by analyzing and determining the data read instruction.

[0190] In one of the embodiments of the present embodiment, as shown in Figure 5 Step S306 includes the following steps:

[0191] S501, obtaining the content type corresponding to the read content in the record information;

[0192] S502, determining whether the content type is the same as the data type of the data to be cached;

[0193] S503, if the same, obtaining the security coefficient corresponding to the data type as the risk threshold;

[0194] S504, if not the same, obtaining the preset risk threshold corresponding to the data to be cached as the risk threshold.

[0195] In actual application, the record information refers to the relevant information of the data read instruction that does not meet the location permission of the read location; the content type refers to the data type corresponding to the read content; the security coefficient refers to the security coefficient of the data type corresponding to the data to be cached; and the preset risk threshold refers to the risk threshold set according to the actual security level of the data to be cached.

[0196] For example, the content type corresponding to the read content in the record information is the content type in the database cache, and the data type of the data to be cached is the data type corresponding to the network server cache, and the preset risk threshold corresponding to the network server cache is obtained as the risk threshold of the data to be cached.

[0197] For example, the data type of the data to be cached is the shared data type corresponding to the network server cache, and the content type corresponding to the read content in the record information is the shared content type in the network server cache, and the security coefficient corresponding to the network server cache is obtained as the risk threshold of the data to be cached.

[0198] The bus control method provided by the embodiment compares and analyzes the content type corresponding to the read content in the record information with the data type of the data to be cached, and further obtains the corresponding risk threshold, so as to facilitate obtaining the specific security level of the data to be cached according to the risk threshold.

[0199] In one of the embodiments of the present embodiment, as shown in Figure 6 Step S305 includes the following steps:

[0200] S601, judging whether the to-be-cached space has a risk record;

[0201] S602, if the to-be-cached space has no risk record, obtaining a preset storage security value of the to-be-cached space as the storage security value;

[0202] S603, if the to-be-cached space has a risk record, judging whether the risk record contains a data type;

[0203] S604, if the risk record contains the data type, obtaining a risk coefficient corresponding to the data type;

[0204] S605, if the risk record does not contain the data type, obtaining a preset storage security value of the to-be-cached space as the storage security value.

[0205] In actual application, the risk record refers to a risk that has occurred in the to-be-cached space in the past, and the preset storage security value is a storage security value set for the to-be-cached space.

[0206] For example, in a distributed caching process, the corresponding to-be-cached space has no relevant risk record, and a preset storage security value of the to-be-cached space in the distributed caching process is obtained as the storage security value for caching the to-be-cached data.

[0207] For another example, in a distributed caching process, the corresponding to-be-cached space has a relevant risk record, and through the relevant risk record, it is found that a risk of cache penetration has occurred in the past. Then, it is further judged whether the risk record of the cache penetration contains a data type corresponding to the to-be-cached data, and if so, a risk coefficient corresponding to the data type in the risk record of the cache penetration is obtained.

[0208] For another example, it is judged that the risk record of the cache penetration does not contain the data type corresponding to the to-be-cached data, and a preset storage security value of the to-be-cached space in the risk record of the cache penetration is obtained as the storage security value of the to-be-cached data.

[0209] The bus control method provided in the embodiment judges whether the to-be-cached space has a risk record and whether the risk record contains a data type identical to the to-be-cached data, and further obtains a corresponding risk coefficient or storage security value, thereby improving the security of the to-be-cached data in the caching process.

[0210] In one of the embodiments of the present embodiment, as shown in FIG. 2, Figure 7 the step S205 includes the following steps:

[0211] S701, if the storage security value is less than or equal to the risk threshold, obtaining a preset storage security value greater than the current storage security value;

[0212] S702, taking the cache space corresponding to the preset storage security value as the to-be-cached space;

[0213] S703, acquiring an encryption mode corresponding to the data category;

[0214] S704, encrypting the to-be-cached data by using the encryption mode to form encrypted cache data;

[0215] S705, caching the encrypted cache data into the to-be-cached space, and updating the identification bit of the to-be-cached space to the cached flag.

[0216] In actual application, the encryption mode corresponding to the data category refers to that, in order to ensure the security of data transmission and data storage, the data plaintext is encrypted into complex ciphertext by using a specific algorithm; and the preset storage security value refers to a storage security value with a higher security coefficient than the current analyzed storage security value.

[0217] For example, the storage security value of the to-be-cached space of the database server is 10, and the risk threshold of the to-be-cached data of the database service is 8, so the preset storage security value greater than the storage security value of the to-be-cached space of the database server is acquired, and the database server cache space corresponding to the preset storage security value is taken as the to-be-cached space.

[0218] The encryption mode of the to-be-cached data of the database server is single encryption, the to-be-cached data of the database server is calculated by using the single encryption mode to generate ciphertext, the ciphertext cannot be reversely pushed to restore, and the database server encrypted cache data is further formed, and the database server encrypted cache data is cached into the database server to-be-cached space, and the identification bit of the database server to-be-cached space is updated to the cached flag.

[0219] The bus control method provided by the embodiment can acquire the cache space corresponding to the preset storage security value greater than the current storage security value as the to-be-cached space when the storage security value is less than or equal to the risk threshold, and encrypt the to-be-cached data by using the encryption mode corresponding to the to-be-cached data, thereby improving the security of the to-be-cached data in the caching process.

[0220] In one of the embodiments of the present embodiment, as shown in Figure 8 S206 includes the following steps:

[0221] S801, if the target data corresponding control instruction does not respond, acquiring corresponding detection information;

[0222] S802, acquiring corresponding feature information according to the detection information;

[0223] S803, identifying the feature information to generate corresponding abnormal type;

[0224] S804, processing the exception type according to the control strategy of the preset security standard.

[0225] In actual application, the detection information refers to the relevant detection and detection result information in response to the control instruction, and the feature information refers to the reason feature of the control instruction in response to the detection information.

[0226] For example, in the case of non-response of the slave device, if a burst of non-response occurs for a short period of time, the corresponding detection information is obtained as the device reset detection result, and the corresponding feature information is burst and a short period of time. According to the identification of the feature information, the corresponding burst short frequency exception type is generated, and according to the corresponding preset security standard, if the device has a valid configuration, the configuration will be reloaded immediately after reset, and the configuration state can be restored.

[0227] For example, if the interval non-response occurs, the corresponding detection information is obtained as the detection result of the bus interference, and the corresponding feature information is interval. According to the identification of the feature information, the corresponding interval contact failure exception type is generated, which is usually caused by bus interference. The slave device is normal, and according to the corresponding preset security standard, the bus controller of the host can count the communication failure rate in a period of time, and if the threshold is exceeded, an alarm is triggered, which is processed by the application layer.

[0228] The bus control method provided by the embodiment identifies the feature information detected by the detection information, and further generates the corresponding exception type, so as to facilitate the processing of the specific exception type according to the preset security standard, and improve the efficiency of processing the exception of the control instruction.

[0229] In one embodiment of the present embodiment, as shown in Figure 9 S804 includes the following steps:

[0230] S901, obtaining the processing result of the preset security standard processing exception type;

[0231] S902, judging whether there is an exception processing record in the processing result;

[0232] S903, if there is an exception processing record, obtaining a preset configuration rule, and processing the exception processing record according to the preset configuration rule.

[0233] In actual application, the exception processing record refers to the relevant problem record of the exception type after the preset security standard, and the preset configuration rule refers to the corresponding processing measures set for the exception processing record.

[0234] For example, in the abnormality processing record, it is shown that the abnormal type of disconnection non-response is more serious interference, at this time, some special configurations need to be made for the abnormal type of disconnection non-response, and further preset configuration rules corresponding to the disconnection non-response are obtained: on the host side, after the slave device is disconnected, the device is put into a retry list, and the synchronization instruction is sent to the disconnected slave device in turn every certain time, if the slave device responds normally, the slave device is recovered. On the slave device side, the flag of automatic synchronization is set in the control register, and once enabled, the slave device can automatically enter the synchronization state from the configuration state. In this way, after the slave device is reset, the synchronization instruction can be quickly received again, and the normal work is restored.

[0235] The bus control method provided by the embodiment improves the integrity of the abnormality processing operation by processing the abnormality processing record existing in the processing result according to the preset configuration rule.

[0236] The embodiment also discloses a bus control system, as shown in the accompanying drawings, comprising: Figure 10

[0237] In the second aspect, the application also provides a bus control system, comprising:

[0238] In the second aspect, the application also provides a bus control system, comprising:

[0239] The first acquisition module 1 is configured to acquire a scanning instruction.

[0240] The configuration module 2 is configured to configure corresponding address information according to the scanning instruction.

[0241] The reading module 3 is configured to read the address information and generate corresponding topology information.

[0242] The judgment module 4 is configured to judge whether the topology information meets a preset topology rule.

[0243] The calibration module 5 is configured to calibrate the topology information as a to-be-processed item according to the calibration module 5 if the topology information does not meet the preset topology rule.

[0244] The second acquisition module 6 is configured to acquire configuration parameters corresponding to the topology information according to the second acquisition module 6 if the topology information meets the preset topology rule.

[0245] The third acquisition module 7 is configured to acquire corresponding control instructions according to the configuration parameters.

[0246] The analysis module 8 is configured to analyze the control instructions, acquire and perform data transmission according to a control strategy.

[0247] ​The bus control system provided by the embodiment configures the address information corresponding to the scanning instruction acquired by the first acquisition module 1 according to the configuration module 2, so as to generate corresponding topology information by reading the address information through the reading module 3, and then judge whether the generated topology information conforms to the preset topology rule stored locally through the judging module 4. If the topology information does not conform to the preset topology rule, the topology information is calibrated as a to-be-processed item according to the calibration module 5, and a corresponding prompt is made. If the topology information conforms to the preset topology rule, it indicates that the topology structure is not damaged and can be normally operated, that is, the configuration parameters corresponding to the topology information can be acquired through the second acquisition module 6, the corresponding control instruction can be acquired according to the configuration parameters through the third acquisition module 7, and finally the control instruction can be analyzed through the analysis module 8, so as to acquire and control the data transmission according to the corresponding control strategy, thereby improving the security of data transmission.

[0248] It should be noted that the bus control system provided by the embodiment of the application further includes various modules and / or corresponding sub-modules corresponding to the logical functions or logical steps of any one of the bus control system methods, which achieve the same effect as the various logical functions or logical steps, and will not be repeated here.

[0249] The above are preferred embodiments of the application, and are not intended to limit the protection scope of the application, therefore: any equivalent changes made according to the structure, shape, principle of the application should be covered within the protection scope of the application.

Claims

1. A bus control method, characterized in that, Includes the following steps: Obtain scan instructions; Configure the corresponding address information according to the scan command; Read the address information and generate the corresponding topology information; Determine whether the topology information conforms to preset topology rules; If the topology does not conform to the preset topology rules, the topology information is marked as an item to be processed. If the preset topology rules are met, the configuration parameters corresponding to the topology information are obtained; Based on the configuration parameters, obtain the corresponding control commands; Analyze the control commands, acquire and transmit data according to the control strategy; The process of analyzing the control commands, acquiring data, and transmitting data according to the control strategy includes the following steps: Based on the configuration parameters, obtain the target data; Determine whether the control command corresponding to the target data is responded to; If the control command corresponding to the target data is responded to, then it is determined whether the target function corresponding to the target data is normal; If the target function is normal, the control command will be used as the control strategy to transmit the target data. If the target function is not normal, the corresponding data to be cached is obtained according to the target data, and the data to be cached is cached according to the control strategy of the preset caching rules; If the control command corresponding to the target data does not respond, the corresponding exception type is obtained, and the exception type is processed according to the control strategy of the preset security standard. If the target function is not normal, the process of obtaining the corresponding data to be cached based on the target data and caching the data to be cached according to the control strategy of the preset caching rules includes the following steps: If the target function is not working properly, analyze the size and data type of the data to be cached; Obtain the cached node table corresponding to the data type as the current node table; Based on the preset caching rules, determine whether there is cacheable space in all cache spaces in the current node table; If the cacheable space exists, then the cacheable space with a storage capacity greater than the data size will be used as the cacheable space to be cached. Obtain the storage security value of the space to be cached; Obtain the risk threshold corresponding to the data to be cached; Determine whether the storage security value is greater than the risk threshold; If the storage security value is greater than the risk threshold, the data to be cached is cached into the cache space, and the identifier of the cache space is updated to the cached flag. If the control command corresponding to the target data does not respond, the corresponding exception type is obtained, and the exception type is handled according to the control strategy of the preset security standard, including the following steps: If the control command corresponding to the target data does not respond, then the corresponding detection information is obtained; Based on the detection information, obtain the corresponding feature information; Identify the feature information and generate the corresponding anomaly type; The anomaly type is processed according to the control strategy based on the preset security standard.

2. The bus control method according to claim 1, characterized in that, Before analyzing the size and data type of the data to be cached, the following steps are also included: Obtain data read instructions; Parse the read location, read content, and read permissions of the data read instruction; Determine whether the read permission is compatible with the location permission of the read location; If the conditions are met, the stored data corresponding to the read position and the read content is obtained as the data to be cached; If the data does not meet the requirements, the data reading instruction and the read content are recorded to form record information.

3. The bus control method according to claim 2, characterized in that, The process of obtaining the risk threshold corresponding to the data to be cached includes the following steps: Obtain the content type corresponding to the read content in the recorded information; Determine whether the content type is the same as the data type of the data to be cached; If they are the same, then the security coefficient corresponding to the data type is obtained as the risk threshold; If they are not the same, then the preset risk threshold corresponding to the data to be cached is obtained as the risk threshold.

4. The bus control method according to claim 1, characterized in that, Obtaining the storage security value of the space to be cached includes the following steps: Determine if the space to be cached has any risk records; If the cached space does not have the risk record, then the preset storage security value of the cached space is obtained as the storage security value; If the cached space contains the risk record, then determine whether the risk record contains the data type. If the data type is included, then obtain the risk coefficient corresponding to the data type; If the data type is not included, then the preset storage security value of the space to be cached is obtained as the storage security value.

5. The bus control method according to claim 1, characterized in that, It also includes the following steps: If the storage security value is less than or equal to the risk threshold, then a preset storage security value greater than the current storage security value is obtained; The cache space corresponding to the preset storage security value is used as the cache space to be cached. Obtain the encryption method corresponding to the data type; The data to be cached is encrypted using the aforementioned encryption method to form encrypted cached data; The encrypted cached data is cached into the cache space, and the identifier bit of the cache space is updated to the cached flag.

6. The bus control method according to claim 1, characterized in that, The process of handling the anomaly type according to the control strategy based on the preset security standard further includes the following steps: Obtain the processing result after the preset security standard processes the anomaly type; Determine whether there are any abnormal processing records in the processing results; If the exception handling record exists, a preset configuration rule is obtained, and the exception handling record is processed according to the preset configuration rule.

7. A bus control system, characterized in that, include: The first acquisition module (1) is used to acquire scanning instructions; Configuration module (2) is used to configure the corresponding address information according to the scanning instruction; The reading module (3) is used to read the address information and generate the corresponding topology information; The judgment module (4) is used to determine whether the topology information conforms to the preset topology rules; If the calibration module (5) does not conform to the preset topology rules, the topology information is calibrated as an item to be processed according to the calibration module (5); If the preset topology rules are met, the second acquisition module (6) acquires the configuration parameters corresponding to the topology information according to the second acquisition module (6). The third acquisition module (7) is used to acquire the corresponding control command according to the configuration parameters; Analysis module (8) is used to analyze the control instructions, acquire and transmit data according to the control strategy; The process of analyzing the control commands, acquiring data, and transmitting data according to the control strategy includes the following steps: Based on the configuration parameters, obtain the target data; Determine whether the control command corresponding to the target data is responded to; If the control command corresponding to the target data is responded to, then it is determined whether the target function corresponding to the target data is normal; If the target function is normal, the control command will be used as the control strategy to transmit the target data. If the target function is not normal, the corresponding data to be cached is obtained according to the target data, and the data to be cached is cached according to the control strategy of the preset caching rules; If the control command corresponding to the target data does not respond, the corresponding exception type is obtained, and the exception type is processed according to the control strategy of the preset security standard. If the target function is not normal, the process of obtaining the corresponding data to be cached based on the target data and caching the data to be cached according to the control strategy of the preset caching rules includes the following steps: If the target function is not working properly, analyze the size and data type of the data to be cached; Obtain the cached node table corresponding to the data type as the current node table; Based on the preset caching rules, determine whether there is cacheable space in all cache spaces in the current node table; If the cacheable space exists, then the cacheable space with a storage capacity greater than the data size will be used as the cacheable space to be cached. Obtain the storage security value of the space to be cached; Obtain the risk threshold corresponding to the data to be cached; Determine whether the storage security value is greater than the risk threshold; If the storage security value is greater than the risk threshold, the data to be cached is cached into the cache space, and the identifier of the cache space is updated to the cached flag. If the control command corresponding to the target data does not respond, the corresponding exception type is obtained, and the exception type is handled according to the control strategy of the preset security standard, including the following steps: If the control command corresponding to the target data does not respond, then the corresponding detection information is obtained; Based on the detection information, obtain the corresponding feature information; Identify the feature information and generate the corresponding anomaly type; The anomaly type is processed according to the control strategy based on the preset security standard.

Citation Information

Patent Citations

  • FPGA-based EtherCAT master-slave station design and implementation method

    CN110177013A

  • IP address allocation and topology management method and device in DAS system and storage medium

    CN110247997A