Data transmission control method and device, equipment, storage medium and product
By writing data to the local cache after the browser detects the insertion of the security component and interrupting the transmission when it is unplugged, the problem of data loss caused by the unplugging of the security component is solved, thus achieving the security and stability of data transmission and avoiding system crashes and hardware damage.
Patent Information
- Application Number
- CN202510669773.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2026-11-24
AI Technical Summary
In existing technologies, data that has not been written can be easily lost when a security component is suddenly unplugged during data transmission, leading to data leakage and system instability.
After the browser detects the insertion of the security component, it acquires the data to be transmitted and writes it all to the local cache area before transmitting it to the security component. When the component is detected to be removed, the data transmission is immediately interrupted, and the insertion and removal status is detected by current and voltage difference. Intelligent data recognition and encryption algorithms are used to ensure data integrity and security.
It effectively avoids data loss, improves the security and stability of data transmission, prevents system crashes and hardware damage, and ensures the integrity and security of data transmission.
Smart Images

Figure CN123164103A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to data transmission control methods, apparatus, devices, storage media and products. Background Technology
[0002] With the development of information security technology, security components are widely used in the field of authentication. These security components can be USB key components, achieving high-security authentication through hardware encryption and private key storage. However, data transmission is indispensable during the use of security components. Currently, security components use a buffer during data transmission, meaning data is written to the buffer while being transmitted. However, if the security component is suddenly unplugged, unwritten data will be lost, potentially leading to data leakage. Furthermore, existing data transmission mechanisms do not immediately disconnect data from the security component, causing system instability and even crashes. Therefore, the security and stability of data transmission using the above methods are relatively low.
[0003] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main objective of this application is to provide a data transmission control method, apparatus, device, storage medium, and product, which aims to solve the technical problems of low security and stability in data transmission in the prior art.
[0005] To achieve the above objectives, this application proposes a data transmission control method, the method comprising:
[0006] After the browser detects that the target security component has been inserted, the data to be transmitted is obtained;
[0007] When all the data to be transmitted is written to the local cache area, each piece of data in the local cache area is transmitted to the target security component in sequence;
[0008] When the browser detects that the target security component has been disconnected during data transmission, the data transmission with the target security component is interrupted.
[0009] In one embodiment, the step of obtaining the data to be transmitted after the browser detects that a target security component has been inserted includes:
[0010] Obtain the current current and current voltage data of the insertion interface of the target security component based on the browser;
[0011] A first current difference is determined based on the current current data and the current data when the device is not inserted, and a first voltage difference is determined based on the current voltage data and the voltage data when the device is not inserted.
[0012] After determining that the target safety component has been inserted based on the first current difference and / or the first voltage difference, the data to be transmitted is acquired.
[0013] In one embodiment, the step of acquiring the data to be transmitted after determining that the target security component has been inserted based on the first current difference and / or the first voltage difference includes:
[0014] After determining that the target safety component has been inserted based on the first current difference and / or the first eye voltage difference, the intelligent data recognition unit is triggered to start.
[0015] The intelligent data recognition unit based on the startup performs data recognition on the target data set;
[0016] The key data identified is verified for correctness, and the data to be transmitted is obtained based on the verification results.
[0017] In one embodiment, the step of obtaining the data to be transmitted based on the verification result includes:
[0018] If the verification results contain critical data that failed the verification, a prompt message will be displayed asking you to enter correct data.
[0019] If the browser does not detect the correction data entered by the user in the typing interface, then feature extraction is performed on the key data of the verification failure.
[0020] Based on the extracted key data features, a key data generation strategy is determined, and target key data is generated by calling a backup device that has undergone security testing and the key data generation strategy.
[0021] Based on the target key data, the key data that failed the verification is cleaned, and the data to be transmitted is obtained based on the cleaned key data and the key data that succeeded in the verification results.
[0022] In one embodiment, the step of sequentially transmitting each piece of data in the local cache area to the target security component when writing all the data to be transmitted to the local cache area includes:
[0023] The data to be transmitted is encrypted based on the target encryption algorithm;
[0024] Each encrypted piece of data to be transmitted is written to a local cache area, and the current number of data in the local cache area is counted in real time.
[0025] When the current quantity matches the quantity of data to be transmitted, each piece of data in the local cache area is transmitted sequentially to the target security component.
[0026] In one embodiment, the step of interrupting data transmission with the target security component when the browser detects that the target security component has been disconnected during data transmission includes:
[0027] Obtain the target current and target voltage data of the insertion interface of the target security component based on the browser;
[0028] A second current difference is determined based on the target current data and the current data when not inserted; and a second voltage difference is determined based on the target voltage data and the voltage data when not inserted.
[0029] After determining that the target safety component has been removed based on the second current difference and / or the second voltage difference, the interrupt data transmission unit is triggered to start.
[0030] The interrupt data transmission unit based on startup interrupts data transmission between the target security component and the data transmission unit.
[0031] In one embodiment, after the step of interrupting data transmission with the target security component when the browser detects that the target security component has been disconnected during data transmission, the method further includes:
[0032] Obtain the current transmission status and identification information of the target security component;
[0033] The current transmission status is saved to the target data list based on the identification information;
[0034] When the browser detects a message indicating that the state has been successfully saved, the data cleanup unit is triggered to start.
[0035] The data cleanup unit that is started cleans up the remaining data to be transmitted in the local cache area.
[0036] In one embodiment, after the step of the data cleaning unit based on startup cleaning up the remaining data to be transmitted in the local cache area, the method further includes:
[0037] After the browser detects that a current security component has been inserted, the identification information of the current security component is obtained;
[0038] When the identification information of the current security component matches the identification information of the target security component, the current transmission status of the target security component is read from the target data list according to the identification information of the target security component;
[0039] When the browser does not detect a refusal to resume transmission instruction, a portion of the data to be transmitted is determined based on the current transmission status, and the portion of the data to be transmitted is transmitted to the current security component.
[0040] In one embodiment, after the step of reading the current transmission status of the target security component from the target data list based on the identification information of the target security component, the method further includes:
[0041] When the browser detects a rejection of the transmission resumption command, the data cleanup unit is triggered.
[0042] The activated data cleaning unit cleans the identification information of the target security component and the current transmission status of the target security component in the target data list, and then continues to execute the step of obtaining the data to be transmitted.
[0043] In one embodiment, after the step of interrupting data transmission with the target security component when the browser detects that the target security component has been disconnected during data transmission, the method further includes:
[0044] When the browser detects that the target security component has been inserted again, the number of times the target security component has been removed and the number of times the target security component has been inserted are counted in real time within the target time period.
[0045] When the number of times the target security component is removed exceeds a preset number and / or the number of times the target security component is inserted exceeds a preset number, the target component management unit is triggered to start.
[0046] The target component management unit controls the scaling component to push target security components outward based on the startup.
[0047] In one embodiment, after the step of the target component management unit controlling the scaling component to push the target security component based on the startup, the method further includes:
[0048] When the browser detects that the target security component has been reinserted, a signature password prompt message is displayed, and the camera device is activated.
[0049] The camera device that has been activated acquires current image data and performs detection on the current image data.
[0050] When it is determined from the detection results that a signature password exists in the current image data, a standard signature password is determined based on the identification information of the target security component;
[0051] When the signature password is inconsistent with the standard signature password, the identification information of the target security component is added to a preset abnormal list.
[0052] Furthermore, to achieve the above objectives, this application also proposes a data transmission control device, which includes:
[0053] The acquisition module is used to acquire the data to be transmitted after the browser detects that the target security component has been inserted.
[0054] The writing module is used to sequentially transmit each piece of data in the local cache area to the target security component when all the data to be transmitted is written to the local cache area;
[0055] The transmission module is used to interrupt data transmission with the target security component when the browser detects that the target security component has been unplugged during data transmission.
[0056] In one embodiment, the acquisition module is further configured to acquire current current data and current voltage data of the insertion interface of the target security component based on a browser; determine a first current difference based on the current current data and the current data when not inserted, and determine a first voltage difference based on the current voltage data and the voltage data when not inserted; and acquire data to be transmitted after determining that the target security component has been inserted based on the first current difference and / or the first voltage difference.
[0057] In one embodiment, the acquisition module is further configured to trigger the intelligent data recognition unit to start after determining that the target safety component has been inserted based on the first current difference and / or the first eye voltage difference; perform data recognition on the target data set based on the started intelligent data recognition unit; perform correctness verification on the key data identified, and acquire the data to be transmitted based on the verification result.
[0058] In one embodiment, the acquisition module is further configured to: display a prompt message for entering corrective data when the verification result contains key data that failed verification; if the browser does not detect the corrective data entered by the user on the typing interface, perform feature extraction on the key data that failed verification; determine a key data generation strategy based on the extracted key data features, and generate target key data by calling a backup device that has undergone security testing and the key data generation strategy; perform data cleaning on the key data that failed verification based on the target key data, and obtain the data to be transmitted based on the cleaned key data and the key data that successfully verified in the verification result.
[0059] In one embodiment, the writing module is further configured to encrypt the data to be transmitted based on the target encryption algorithm; write each encrypted data to be transmitted to a local cache area respectively, and count the current number of data in the local cache area in real time; when the current number is consistent with the number of data to be transmitted, transmit each data in the local cache area to the target security component in sequence.
[0060] In one embodiment, the transmission module is further configured to acquire target current data and target voltage data of the insertion interface of the target security component based on a browser; determine a second current difference based on the target current data and the current data when not inserted, and determine a second voltage difference based on the target voltage data and the voltage data when not inserted; after determining that the target security component has been removed based on the second current difference and / or the second voltage difference, trigger the start of the interrupt data transmission unit; and interrupt data transmission with the target security component based on the started interrupt data transmission unit.
[0061] In addition, to achieve the above objectives, this application also proposes a data transmission control device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the data transmission control method as described above.
[0062] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and which, when executed by a processor, implements the steps of the data transmission control method described above.
[0063] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the data transmission control method described above.
[0064] One or more technical solutions proposed in this application have at least the following technical effects: after the browser detects that a target security component has been inserted, data to be transmitted is acquired; while writing all the data to be transmitted to the local cache area, each piece of data in the local cache area is sequentially transmitted to the target security component; when the browser detects that the target security component has been unplugged during data transmission, data transmission with the target security component is interrupted. Through the above methods, after the browser detects that the target security component has been inserted, all the data to be transmitted is written to the local cache area, avoiding the loss of unwritten data when the target security component is unplugged. Furthermore, when the browser detects that the target security component has been unplugged during data transmission, data transmission is immediately interrupted, thereby effectively improving the security and stability of data transmission and preventing hardware damage and system failure. Attached Figure Description
[0065] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0066] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0067] Figure 1 This is a flowchart illustrating an embodiment of the data transmission control method of this application.
[0068] Figure 2 This is a schematic diagram of a hot-plug structure provided in Embodiment 1 of the data transmission control method of this application;
[0069] Figure 3 This is a flowchart illustrating Embodiment 2 of the data transmission control method of this application;
[0070] Figure 4 This is a schematic diagram of the module structure of the data transmission control device according to an embodiment of this application;
[0071] Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the data transmission control method in the embodiments of this application.
[0072] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0073] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or data transmission control device capable of performing the above functions. The following description uses a data transmission control device as an example to illustrate this embodiment and the subsequent embodiments.
[0074] Based on this, embodiments of this application provide a data transmission control method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the data transmission control method of this application.
[0075] In this embodiment, the data transmission control method includes steps S10 to S30:
[0076] Step S10: After the browser detects that the target security component has been inserted, obtain the data to be transmitted.
[0077] It should be noted that the target security component can be a USB Key component. The application scenario in this embodiment is the hot-plugging scenario of the target security component, including the insertion and removal of the target security component. The browser has AI function to realize intelligent detection of the insertion and removal of the target security component, ensuring the security of data and the stability of the system during the insertion and removal process.
[0078] It is understandable that the data to be transmitted refers to the data that needs to be synchronously transmitted to the target security component, including but not limited to login credentials, transaction information, etc.
[0079] Furthermore, to effectively improve the accuracy of obtaining the data to be transmitted, step S10 includes: obtaining current current data and current voltage data of the insertion interface of the target security component based on the browser; determining a first current difference based on the current current data and the current data when it is not inserted, and determining a first voltage difference based on the current voltage data and the voltage data when it is not inserted; and obtaining the data to be transmitted after determining that the target security component has been inserted based on the first current difference and / or the first voltage difference.
[0080] It should be understood that the insertion interface refers to the interface through which the target security component is inserted into the data transmission control device. This insertion interface can be a USB interface, see reference. Figure 2 , Figure 2 This is a schematic diagram of a hot-swappable structure. Specifically, the insertion interface of the target safety component has four gold fingers. The two outer gold fingers are longer and serve as power lines for power supply, while the two inner gold fingers are shorter and serve as data transmission lines for data transmission. When the target safety component is inserted, the two outer gold fingers first connect to the data transmission control device. Conversely, when the target safety component is removed, the two inner gold fingers first disconnect from the data transmission control device. The device also includes a telescopic component to push the target safety component when the number of times the target safety component is removed exceeds a preset number and / or the number of times the target safety component is inserted exceeds a preset number.
[0081] It is understandable that since the current and voltage of the insertion interface fluctuate when the target safety component is inserted and not inserted, it is possible to determine whether the target safety component is inserted based on the current and voltage of the insertion interface of the target safety component obtained by the browser. Specifically, a first current difference is determined based on the current data and the current data when it is not inserted, and a first voltage difference is determined based on the current voltage data and the voltage data when it is not inserted. When the first current difference is greater than a preset value and / or the first voltage difference is greater than a preset value, it indicates that there is a fluctuation in current and / or voltage. When at least one of the above conditions is met, it can be determined that the target safety component is inserted.
[0082] Furthermore, to effectively improve the accuracy of obtaining the data to be transmitted, the step of obtaining the data to be transmitted after determining that the target safety component has been inserted based on the first current difference and / or the first voltage difference includes: triggering the intelligent data recognition unit to start after determining that the target safety component has been inserted based on the first current difference and / or the first voltage difference; performing data recognition on the target data set based on the activated intelligent data recognition unit; verifying the correctness of the identified key data, and obtaining the data to be transmitted based on the verification result.
[0083] Understandably, the intelligent data recognition unit is used to intelligently identify data corresponding to user needs. This unit is equipped with a trained artificial intelligence recognition model. The target data set refers to the collection of various types of data generated during the operation of the data transmission control device. After the insertion of the target security component, the intelligent data recognition unit is triggered to automatically identify the critical data that needs to be written to the local cache area. Furthermore, in order to quickly and accurately write the identified critical data to the local cache area, the correctness of the identified critical data needs to be verified. This verification includes checking the format, length, and data content. If the verification results do not show any identified critical data, it indicates that all critical data has been successfully verified, and the identified critical data is directly used as the data to be transmitted.
[0084] Furthermore, to effectively improve the accuracy of obtaining the data to be transmitted, the step of obtaining the data to be transmitted based on the verification result includes: when there is critical data that failed verification in the verification result, displaying a prompt message for entering correct data; if the browser does not detect the correct data entered by the user on the typing interface, then extracting features from the critical data that failed verification; determining a critical data generation strategy based on the extracted critical data features, and generating target critical data by calling a backup device that has undergone security testing and the critical data generation strategy; cleaning the critical data that failed verification based on the target critical data, and obtaining the data to be transmitted based on the cleaned critical data and the critical data that successfully verified in the verification result.
[0085] It should be understood that the prompt message for entering correction data is used to prompt the user to enter information to correct key data that has failed verification. In order to effectively improve the accuracy of the correction data, this embodiment adopts two methods: user correction and automatic correction. The first method is based on the browser detecting the correction data entered by the user on the typing interface, and directly correcting the key data that failed verification in the verification result based on the correction data. The second method is based on the browser not detecting the correction data entered by the user on the typing interface. In this case, the target key data will be generated by calling the backup device that has passed the security test and the key data generation strategy. The target key data refers to the key data that has passed the correctness verification. The process of the backup device generating the target key data is completely consistent with the process of the execution subject generating the key data.
[0086] Understandably, after obtaining the target key data, the key data that failed the verification can be cleaned based on the target key data, such as format conversion and data filling. After the cleaning is completed, the key data that was successfully verified in the verification results can be combined to obtain the data to be transmitted, thereby effectively improving the accuracy of the data to be transmitted.
[0087] Step S20: When all the data to be transmitted is written to the local cache area, each piece of data in the local cache area is transmitted to the target security component in sequence.
[0088] Understandably, after receiving the data to be transmitted and writing it entirely into the local cache area, data transmission with the target security component begins. Even if the target security component is unplugged at this point, there will be no loss of unwritten data, thus ensuring data integrity and system stability. Furthermore, during the sequential transmission of data from the local cache area to the target security component, the transmission status of the target security component is displayed in real time, reminding the user not to unplug the target security component during this stage.
[0089] Furthermore, to avoid data loss due to the removal of the target security component, step S20 includes: encrypting the data to be transmitted based on the target encryption algorithm; writing each encrypted data to be transmitted to a local cache area, and counting the current number of data in the local cache area in real time; when the current number is consistent with the number of data to be transmitted, sequentially transmitting each data in the local cache area to the target security component.
[0090] It should be understood that, to ensure the security of the data to be transmitted, after obtaining the data, it can be encrypted using a target encryption algorithm, and each encrypted data entry can be written to a local cache area to prevent unauthorized access. This target encryption algorithm can be an asymmetric encryption algorithm, such as RSA, to implement a dual authentication mechanism, ensuring that only authorized users can access the cached data. During the process of writing each encrypted data entry to the local cache area, the current quantity of data in the local cache area is counted in real time, and it is determined whether the current quantity matches the quantity of data to be transmitted. If they match, it indicates that all the encrypted data has been written to the local cache area, at which point each data entry in the local cache area can be sequentially transmitted to the target security component. Furthermore, the local cache area is equipped with an automatic caching strategy to ensure secure data storage and fast transmission.
[0091] Step S30: When the browser detects that the target security component has been unplugged during data transmission, the data transmission with the target security component is interrupted.
[0092] It should be understood that during the transmission of data from the local cache area to the target security component, the browser continuously monitors whether the target security component has been disconnected. If so, the data transmission interruption unit is immediately triggered, interrupting data transmission with the target security component. This prevents system crashes and ensures system stability and data security. Furthermore, when the browser detects that the user intends to disconnect the target security component during data transmission, a warning dialog box pops up, informing the user that a data transmission operation is in progress and providing operation instructions to help the user correctly use the target security component and reduce the possibility of accidental operation.
[0093] Furthermore, to ensure system stability and data security, step S30 includes: acquiring target current data and target voltage data of the insertion interface of the target safety component based on a browser; determining a second current difference based on the target current data and the current data when not inserted, and determining a second voltage difference based on the target voltage data and the voltage data when not inserted; triggering the start of an interrupt data transmission unit after determining that the target safety component has been removed based on the second current difference and / or the second voltage difference; and interrupting data transmission with the target safety component based on the started interrupt data transmission unit.
[0094] Understandably, since the current and voltage at the insertion interface of the target safety component fluctuate when it is inserted and not inserted, the insertion status of the target safety component can be determined by obtaining the current and voltage at the insertion interface of the target safety component through a browser. Specifically, a second current difference is determined based on the target current data and the current data when it is not inserted, and a second voltage difference is determined based on the target voltage data and the voltage data when it is not inserted. When the second current difference is less than the target value and / or the second voltage difference is less than the target value, it indicates that there is a fluctuation in current and / or voltage. When at least one of the above conditions is met, it can be determined that the target safety component has been removed, at which point the interrupt data transmission unit is triggered. The interrupt data transmission unit is used to interrupt data transmission with the target safety component. At the moment the interrupt data transmission unit is triggered, data transmission with the target safety component is interrupted, thereby preventing system crashes and preventing long-term data exposure, thus improving data security.
[0095] Furthermore, to prevent the target security component from damaging the device, after step S30, the method further includes: when the browser detects that the target security component is inserted again, counting in real time the number of times the target security component is removed and the number of times the target security component is inserted within a target time period; when the number of times the target security component is removed exceeds a preset number and / or the number of times the target security component is inserted exceeds a preset number, triggering the target component management unit to start; and controlling the telescopic component to push the target security component outward based on the started target component management unit.
[0096] It should be understood that when the browser detects that the target security component has been inserted again, it further determines whether the number of times the target security component has been removed and the number of times it has been inserted within a target time period exceeds a preset number. If either of these conditions is met, it indicates that the target security component has been maliciously hot-plugged. In this case, to prevent the target security component from damaging the device, the target component management unit is triggered. The target component management unit is used to forcibly eject the inserted component. At the moment the target component management unit is triggered, it controls the telescopic component to extend, pushing the target security component outward until the target security component is completely separated from the data transmission control device.
[0097] Furthermore, to effectively reduce the risk of data leakage, after the step of controlling the scaling component to push the target security component based on the launched target component management unit, the method further includes: when the browser detects that the target security component is inserted again, playing and displaying a signature password prompt message, and controlling the camera device to start; acquiring current image data based on the launched camera device, and detecting the current image data; when it is determined that a signature password exists in the current image data according to the detection result, determining a standard signature password based on the identification information of the target security component; when the signature password is inconsistent with the standard signature password, adding the identification information of the target security component to a preset abnormal list.
[0098] It should be noted that when the browser detects that the target security component has been reinserted, it indicates that the user still intends to use the target security component for data transmission. In this case, access restrictions need to be lifted. Specifically, this involves displaying a signature password prompt, controlling the camera to capture current image data, and determining whether a signature password exists in the current image data. If so, it further checks whether the signature password in the current image data matches the standard signature password. If they match, authentication is successful, and the previous multiple hot-plugging attempts may have been erroneous. Access restrictions on the target security component are then lifted. Conversely, if the signature password does not match the standard signature password, authentication has failed. In this case, the target security component's identifier is added to a preset anomaly list, meaning data transmission with the target security component is no longer possible. This preset anomaly list can be a blacklist, effectively reducing the risk of data leakage and minimizing resource waste. Furthermore, this embodiment can also be applied to high-security scenarios such as finance and healthcare.
[0099] In this embodiment, after the browser detects that a target security component has been inserted, it acquires the data to be transmitted. While writing all the data to be transmitted to the local cache area, it sequentially transmits each piece of data from the local cache area to the target security component. When the browser detects that the target security component has been removed during data transmission, it interrupts the data transmission with the target security component. Through this method, after the browser detects that the target security component has been inserted, all the data to be transmitted is written to the local cache area, avoiding the loss of unwritten data when the target security component is removed. Furthermore, when the browser detects that the target security component has been removed during data transmission, it immediately interrupts the data transmission, thereby effectively improving the security and stability of data transmission and preventing hardware damage and system failure.
[0100] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 3After step S30, the following steps are included: S401 to S404:
[0101] Step S401: Obtain the current transmission status and identification information of the target security component.
[0102] It should be understood that the identification information refers to the information that identifies different components. This identification information can be the key code of the target security component. The current transmission state refers to the state of the target security component when transmitting data at the current moment. This current transmission state can be the start of transmission state, the stopped transmission state, the transmission in progress state, and the end of transmission state, etc.
[0103] Step S402: Save the current transmission status to the target data list according to the identification information.
[0104] It should be understood that the target data list refers to a list used to save the transmission status of security components. In order to respond to the transmission recovery command in a timely manner, after obtaining the current transmission status of the target security component, the current transmission status is saved to the target data list according to the identification information, so as to ensure that when the target security component is reinserted, the data transmission can be successfully restored and the continuity of data transmission can be guaranteed.
[0105] Step S403: When the browser detects a message indicating that the state has been successfully saved, the data cleaning unit is triggered to start.
[0106] It is understandable that the data cleanup unit refers to the unit used to clean up the data in the local cache area. In order to ensure that the local cache area does not consume too many resources, when the browser detects a prompt message indicating that the state has been successfully saved, it means that the identification information of the target security component has been successfully saved to the target data list. At this time, the data cleanup unit is triggered to clean up the remaining data to be transmitted in the local cache area.
[0107] Step S404: Clean up the remaining data to be transmitted in the local cache area based on the started data cleaning unit.
[0108] It should be understood that after the data cleanup unit is triggered to start, the started data cleanup unit cleans up the remaining data to be transmitted in the local cache area, thereby effectively reducing the resources occupied by the local cache area.
[0109] Furthermore, to effectively improve the efficiency of data transmission recovery, step S404 includes: after the browser detects that the current security component has been inserted, obtaining the identification information of the current security component; when the identification information of the current security component matches the identification information of the target security component, reading the current transmission status of the target security component from the target data list according to the identification information of the target security component; and when the browser does not detect a rejection instruction to resume transmission, determining a portion of the data to be transmitted according to the current transmission status, and transmitting the portion of the data to be transmitted to the current security component.
[0110] Understandably, after the browser detects the insertion of a current security component, it determines whether they are the same security component by comparing the identification information of the current security component with that of the target security component. If the identification information is inconsistent, it indicates that they are not the same security component. In this case, the data to be transmitted is rewritten in the same manner, and all data in the local cache area is transmitted to the current security component for the first time. Conversely, if the identification information is consistent, it indicates that they are the same security component, and data transmission can be resumed to ensure the integrity of data transmission.
[0111] It should be understood that when the browser does not detect a rejection instruction to resume transmission, it indicates that data transmission needs to be resumed by default, that is, the unfinished data transmission task needs to be resumed. In order to effectively improve the efficiency of resuming data transmission, the data to be resumed is a portion of the remaining data to be transmitted in the local cache area, that is, a portion of the data to be transmitted, and the portion of the data to be transmitted is transmitted to the current security component in sequence.
[0112] Furthermore, to effectively improve the user experience, after the step of reading the current transmission status of the target security component from the target data list based on the identification information of the target security component, the method further includes: triggering a data cleaning unit to start when the browser detects a rejection instruction to resume transmission; cleaning the identification information of the target security component and the current transmission status of the target security component in the target data list based on the started data cleaning unit, and continuing to execute the step of obtaining data to be transmitted.
[0113] It should be understood that when the browser detects a refusal to resume transmission, it indicates that the user does not need to resume data transmission. At this time, the data cleaning unit is triggered again to clean up information related to the target security component, such as the identification information of the target security component and the current transmission status of the target security component in the target data list. After the cleaning is completed, the target security component is a brand new security component for the data transmission control device, and data transmission can be restarted.
[0114] This embodiment acquires the current transmission status and identification information of the target security component; saves the current transmission status to the target data list based on the identification information; and triggers a data cleanup unit when the browser detects a successful status saving notification. The activated data cleanup unit then cleans up any remaining data to be transmitted in the local cache area. By acquiring the current transmission status of the target security component and saving it based on its identification information, and triggering a data cleanup unit to clean up any remaining data to be transmitted in the local cache area when the browser detects a successful status saving notification, long-term data exposure can be avoided, thus improving data security.
[0115] This application also provides a data transmission control device, please refer to... Figure 4 The data transmission control device includes:
[0116] The acquisition module 10 is used to acquire the data to be transmitted after the browser detects that the target security component has been inserted.
[0117] The writing module 20 is used to sequentially transmit each piece of data in the local cache area to the target security component when all the data to be transmitted is written to the local cache area.
[0118] The transmission module 30 is used to interrupt data transmission with the target security component when the browser detects that the target security component has been unplugged during data transmission.
[0119] In this embodiment, after the browser detects that a target security component has been inserted, it acquires the data to be transmitted. While writing all the data to be transmitted to the local cache area, it sequentially transmits each piece of data from the local cache area to the target security component. When the browser detects that the target security component has been removed during data transmission, it interrupts the data transmission with the target security component. Through this method, after the browser detects that the target security component has been inserted, all the data to be transmitted is written to the local cache area, avoiding the loss of unwritten data when the target security component is removed. Furthermore, when the browser detects that the target security component has been removed during data transmission, it immediately interrupts the data transmission, thereby effectively improving the security and stability of data transmission and preventing hardware damage and system failure.
[0120] The data transmission control device provided in this application, employing the data transmission control method in the above embodiments, can solve the technical problem of low security and stability in data transmission in the prior art. Compared with the prior art, the beneficial effects of the data transmission control device provided in this application are the same as those of the data transmission control method provided in the above embodiments, and other technical features in the data transmission control device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0121] In one embodiment, the acquisition module 10 is further configured to acquire current current data and current voltage data of the insertion interface of the target security component based on a browser; determine a first current difference based on the current current data and the current data when not inserted, and determine a first voltage difference based on the current voltage data and the voltage data when not inserted; and acquire data to be transmitted after determining that the target security component has been inserted based on the first current difference and / or the first voltage difference.
[0122] In one embodiment, the acquisition module 10 is further configured to trigger the intelligent data recognition unit to start after determining that the target safety component has been inserted based on the first current difference and / or the first eye voltage difference; perform data recognition on the target data set based on the started intelligent data recognition unit; perform correctness verification on the key data identified, and acquire the data to be transmitted based on the verification result.
[0123] In one embodiment, the acquisition module 10 is further configured to: display a prompt message for entering corrective data when the verification result contains key data that failed verification; if the browser does not detect the corrective data entered by the user on the typing interface, then perform feature extraction on the key data that failed verification; determine a key data generation strategy based on the extracted key data features, and generate target key data by calling a backup device that has undergone security testing and the key data generation strategy; perform data cleaning on the key data that failed verification based on the target key data, and obtain the data to be transmitted based on the cleaned key data and the key data that successfully verified in the verification result.
[0124] In one embodiment, the writing module 20 is further configured to encrypt the data to be transmitted based on the target encryption algorithm; write each encrypted data to be transmitted to a local cache area respectively, and count the current number of data in the local cache area in real time; when the current number is consistent with the number of data to be transmitted, transmit each data in the local cache area to the target security component in sequence.
[0125] In one embodiment, the transmission module 30 is further configured to acquire target current data and target voltage data of the insertion interface of the target security component based on a browser; determine a second current difference based on the target current data and the current data when not inserted, and determine a second voltage difference based on the target voltage data and the voltage data when not inserted; after determining that the target security component has been removed based on the second current difference and / or the second voltage difference, trigger the start of the interrupt data transmission unit; and interrupt data transmission with the target security component based on the started interrupt data transmission unit.
[0126] In one embodiment, the transmission module 30 is further configured to acquire the current transmission status and identification information of the target security component; save the current transmission status to the target data list according to the identification information; trigger the data cleaning unit to start when the browser detects a prompt message indicating that the status has been successfully saved; and clean up the remaining data to be transmitted in the local cache area based on the started data cleaning unit.
[0127] In one embodiment, the transmission module 30 is further configured to: after the browser detects that the current security component has been inserted, obtain the identification information of the current security component; when the identification information of the current security component is consistent with the identification information of the target security component, read the current transmission status of the target security component from the target data list according to the identification information of the target security component; and when the browser does not detect a rejection to resume transmission instruction, determine a portion of the data to be transmitted according to the current transmission status, and transmit the portion of the data to be transmitted to the current security component.
[0128] In one embodiment, the transmission module 30 is further configured to trigger the data cleaning unit to start when the browser detects a rejection of the transmission resumption instruction; based on the started data cleaning unit, clean the identification information of the target security component and the current transmission status of the target security component in the target data list, and continue to execute the step of obtaining the data to be transmitted.
[0129] In one embodiment, the transmission module 30 is further configured to, in real time, count the number of times the target security component is removed and the number of times the target security component is inserted within a target time period when the browser detects that the target security component is inserted again; trigger the target component management unit to start when the number of times the target security component is removed is greater than a preset number and / or the number of times the target security component is inserted is greater than a preset number; and control the telescopic component to push the target security component outward based on the started target component management unit.
[0130] In one embodiment, the transmission module 30 is further configured to: play a prompt message for the signature password when the browser detects that the target security component has been reinserted; control the camera device to start; acquire current image data based on the started camera device and detect the current image data; determine a standard signature password based on the identification information of the target security component when the detection result determines that a signature password exists in the current image data; and add the identification information of the target security component to a preset abnormal list when the signature password is inconsistent with the standard signature password.
[0131] This application provides a data transmission control device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the data transmission control method in the first embodiment described above.
[0132] The following is for reference. Figure 5 The diagram illustrates a structural schematic of a data transmission control device suitable for implementing embodiments of this application. The data transmission control device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The data transmission control device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of this application.
[0133] like Figure 5As shown, the data transmission control device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in ROM (Read Only Memory) 1002 or a program loaded from storage device 1003 into RAM (Random Access Memory) 1004. RAM 1004 also stores various programs and data required for the operation of the data transmission control device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via bus 1005. Input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touch screens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the data transmission control device to communicate wirelessly or wiredly with other devices to exchange data. Although data transmission control devices with various systems are shown in the figures, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0134] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0135] The data transmission control device provided in this application, employing the data transmission control method in the above embodiments, can solve the technical problem of low security and stability in data transmission in the prior art. Compared with the prior art, the beneficial effects of the data transmission control device provided in this application are the same as those of the data transmission control method provided in the above embodiments, and other technical features in this data transmission control device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0136] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0137] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0138] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the data transmission control method in the above embodiments.
[0139] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0140] The aforementioned computer-readable storage medium may be included in the data transmission control device; or it may exist independently and not be assembled into the data transmission control device.
[0141] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0142] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0143] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0144] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described data transmission control method, which can solve the technical problem of low security and stability in data transmission in the prior art. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the data transmission control method provided in the above embodiments, and will not be repeated here.
[0145] This invention discloses A1. A data transmission control method, the method comprising:
[0146] After the browser detects that the target security component has been inserted, the data to be transmitted is obtained;
[0147] When all the data to be transmitted is written to the local cache area, each piece of data in the local cache area is transmitted to the target security component in sequence;
[0148] When the browser detects that the target security component has been disconnected during data transmission, the data transmission with the target security component is interrupted.
[0149] A2. The method as described in A1, wherein the step of obtaining the data to be transmitted after the browser detects that the target security component has been inserted includes:
[0150] Obtain the current current and current voltage data of the insertion interface of the target security component based on the browser;
[0151] A first current difference is determined based on the current current data and the current data when the device is not inserted, and a first voltage difference is determined based on the current voltage data and the voltage data when the device is not inserted.
[0152] After determining that the target safety component has been inserted based on the first current difference and / or the first voltage difference, the data to be transmitted is acquired.
[0153] A3. The method as described in A2, wherein the step of acquiring the data to be transmitted after determining that the target security component has been inserted based on the first current difference and / or the first voltage difference includes:
[0154] After determining that the target safety component has been inserted based on the first current difference and / or the first eye voltage difference, the intelligent data recognition unit is triggered to start.
[0155] The intelligent data recognition unit based on the startup performs data recognition on the target data set;
[0156] The key data identified is verified for correctness, and the data to be transmitted is obtained based on the verification results.
[0157] A4. As described in A3, the step of obtaining the data to be transmitted based on the verification result includes:
[0158] If the verification results contain critical data that failed the verification, a prompt message will be displayed asking you to enter correct data.
[0159] If the browser does not detect the correction data entered by the user in the typing interface, then feature extraction is performed on the key data of the verification failure.
[0160] Based on the extracted key data features, a key data generation strategy is determined, and target key data is generated by calling a backup device that has undergone security testing and the key data generation strategy.
[0161] Based on the target key data, the key data that failed the verification is cleaned, and the data to be transmitted is obtained based on the cleaned key data and the key data that succeeded in the verification results.
[0162] A5. The method as described in A1, wherein when all the data to be transmitted is written to the local cache area, the step of sequentially transmitting each piece of data in the local cache area to the target security component includes:
[0163] The data to be transmitted is encrypted based on the target encryption algorithm;
[0164] Each encrypted piece of data to be transmitted is written to a local cache area, and the current number of data in the local cache area is counted in real time.
[0165] When the current quantity matches the quantity of data to be transmitted, each piece of data in the local cache area is transmitted sequentially to the target security component.
[0166] A6. The method as described in A1, wherein the step of interrupting data transmission with the target security component when the browser detects that the target security component has been disconnected during data transmission includes:
[0167] Obtain the target current and target voltage data of the insertion interface of the target security component based on the browser;
[0168] A second current difference is determined based on the target current data and the current data when not inserted; and a second voltage difference is determined based on the target voltage data and the voltage data when not inserted.
[0169] After determining that the target safety component has been removed based on the second current difference and / or the second voltage difference, the interrupt data transmission unit is triggered to start.
[0170] The interrupt data transmission unit based on startup interrupts data transmission between the target security component and the data transmission unit.
[0171] A7. The method as described in any one of A1 to A6, further comprising, after the step of interrupting data transmission with the target security component when the browser detects that the target security component has been unplugged during data transmission:
[0172] Obtain the current transmission status and identification information of the target security component;
[0173] The current transmission status is saved to the target data list based on the identification information;
[0174] When the browser detects a message indicating that the state has been successfully saved, the data cleanup unit is triggered to start.
[0175] The data cleanup unit that is started cleans up the remaining data to be transmitted in the local cache area.
[0176] A8. As described in A7, after the step of the data cleaning unit based on startup cleaning up the remaining data to be transmitted in the local cache area, the method further includes:
[0177] After the browser detects that a current security component has been inserted, the identification information of the current security component is obtained;
[0178] When the identification information of the current security component matches the identification information of the target security component, the current transmission status of the target security component is read from the target data list according to the identification information of the target security component;
[0179] When the browser does not detect a refusal to resume transmission instruction, a portion of the data to be transmitted is determined based on the current transmission status, and the portion of the data to be transmitted is transmitted to the current security component.
[0180] A9. The method as described in A8, after the step of reading the current transmission status of the target security component from the target data list based on the identification information of the target security component, further includes:
[0181] When the browser detects a rejection of the transmission resumption command, the data cleanup unit is triggered.
[0182] The activated data cleaning unit cleans the identification information of the target security component and the current transmission status of the target security component in the target data list, and then continues to execute the step of obtaining the data to be transmitted.
[0183] A10. The method of any one of A1 to A6, further comprising, after the step of interrupting data transmission with the target security component when the browser detects that the target security component has been unplugged during data transmission:
[0184] When the browser detects that the target security component has been inserted again, the number of times the target security component has been removed and the number of times the target security component has been inserted are counted in real time within the target time period.
[0185] When the number of times the target security component is removed exceeds a preset number and / or the number of times the target security component is inserted exceeds a preset number, the target component management unit is triggered to start.
[0186] The target component management unit controls the scaling component to push target security components outward based on the startup.
[0187] A11. The method as described in A10, after the step of controlling the telescopic component to push the target security component based on the initiated target component management unit, further comprising:
[0188] When the browser detects that the target security component has been reinserted, a signature password prompt message is displayed, and the camera device is activated.
[0189] The camera device that has been activated acquires current image data and performs detection on the current image data.
[0190] When it is determined from the detection results that a signature password exists in the current image data, a standard signature password is determined based on the identification information of the target security component;
[0191] When the signature password is inconsistent with the standard signature password, the identification information of the target security component is added to a preset abnormal list.
[0192] The present invention also discloses B12. A data transmission control device, the device comprising:
[0193] The acquisition module is used to acquire the data to be transmitted after the browser detects that the target security component has been inserted.
[0194] The writing module is used to sequentially transmit each piece of data in the local cache area to the target security component when all the data to be transmitted is written to the local cache area;
[0195] The transmission module is used to interrupt data transmission with the target security component when the browser detects that the target security component has been unplugged during data transmission.
[0196] B13. The data transmission control device as described in B12, wherein the acquisition module is further configured to acquire current current data and current voltage data of the insertion interface of the target security component based on a browser; determine a first current difference based on the current current data and the current data when not inserted, and determine a first voltage difference based on the current voltage data and the voltage data when not inserted; and acquire data to be transmitted after determining that the target security component has been inserted based on the first current difference and / or the first voltage difference.
[0197] B14. The data transmission control device as described in B13, wherein the acquisition module is further configured to, after determining that the target safety component has been inserted based on the first current difference and / or the first eye voltage difference, trigger the intelligent data recognition unit to start; perform data recognition on the target data set based on the started intelligent data recognition unit; perform correctness verification on the key data identified, and acquire the data to be transmitted based on the verification result.
[0198] B15. The data transmission control device as described in B14, wherein the acquisition module is further configured to: display a prompt message for entering corrective data when the verification result contains key data that failed verification; if the browser does not detect the corrective data entered by the user on the input interface, perform feature extraction on the key data that failed verification; determine a key data generation strategy based on the extracted key data features, and generate target key data by calling a backup device that has undergone security testing and the key data generation strategy; perform data cleaning on the key data that failed verification based on the target key data, and obtain the data to be transmitted based on the cleaned key data and the key data that successfully verified in the verification result.
[0199] B16. The data transmission control device as described in B12, wherein the writing module is further configured to encrypt the data to be transmitted based on the target encryption algorithm; write each encrypted data to be transmitted to a local cache area respectively, and count the current number of data in the local cache area in real time; when the current number is consistent with the number of data to be transmitted, sequentially transmit each data in the local cache area to the target security component.
[0200] B17. The data transmission control device as described in B12, wherein the transmission module is further configured to: acquire target current data and target voltage data of the insertion interface of the target safety component based on a browser; determine a second current difference based on the target current data and the current data when not inserted; and determine a second voltage difference based on the target voltage data and the voltage data when not inserted; after determining that the target safety component has been removed based on the second current difference and / or the second voltage difference, trigger the start of the interrupt data transmission unit; and interrupt data transmission with the target safety component based on the started interrupt data transmission unit.
[0201] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the data transmission control method described above.
[0202] The computer program product provided in this application can solve the technical problem of low security and stability in data transmission in the prior art. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the data transmission control method provided in the above embodiments, and will not be repeated here.
[0203] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A data transmission control method, characterized in that, The method includes: After the browser detects that the target security component has been inserted, the data to be transmitted is obtained; When all the data to be transmitted is written to the local cache area, each piece of data in the local cache area is transmitted to the target security component in sequence; When the browser detects that the target security component has been disconnected during data transmission, the data transmission with the target security component is interrupted.
2. The method as described in claim 1, characterized in that, The step of obtaining the data to be transmitted after the browser detects that a target security component has been inserted includes: Obtain the current current and current voltage data of the insertion interface of the target security component based on the browser; A first current difference is determined based on the current current data and the current data when the device is not inserted, and a first voltage difference is determined based on the current voltage data and the voltage data when the device is not inserted. After determining that the target safety component has been inserted based on the first current difference and / or the first voltage difference, the data to be transmitted is acquired.
3. The method as described in claim 2, characterized in that, The step of acquiring the data to be transmitted after determining that the target safety component has been inserted based on the first current difference and / or the first voltage difference includes: After determining that the target safety component has been inserted based on the first current difference and / or the first eye voltage difference, the intelligent data recognition unit is triggered to start. The intelligent data recognition unit based on the startup performs data recognition on the target data set; The key data identified is verified for correctness, and the data to be transmitted is obtained based on the verification results.
4. The method as described in claim 1, characterized in that, The step of sequentially transmitting each piece of data in the local cache area to the target security component when writing all the data to be transmitted to the local cache area includes: The data to be transmitted is encrypted based on the target encryption algorithm; Each encrypted piece of data to be transmitted is written to a local cache area, and the current number of data in the local cache area is counted in real time. When the current quantity matches the quantity of data to be transmitted, each piece of data in the local cache area is transmitted sequentially to the target security component.
5. The method according to any one of claims 1 to 4, characterized in that, After the step of interrupting data transmission with the target security component when the browser detects that the target security component has been disconnected during data transmission, the method further includes: Obtain the current transmission status and identification information of the target security component; The current transmission status is saved to the target data list based on the identification information; When the browser detects a message indicating that the state has been successfully saved, the data cleanup unit is triggered to start. The data cleanup unit that is started cleans up the remaining data to be transmitted in the local cache area.
6. The method as described in claim 5, characterized in that, After the step of the data cleaning unit based on startup cleaning up the remaining data to be transmitted in the local cache area, the method further includes: After the browser detects that a current security component has been inserted, the identification information of the current security component is obtained; When the identification information of the current security component matches the identification information of the target security component, the current transmission status of the target security component is read from the target data list according to the identification information of the target security component; When the browser does not detect a refusal to resume transmission instruction, a portion of the data to be transmitted is determined based on the current transmission status, and the portion of the data to be transmitted is transmitted to the current security component.
7. A data transmission control device, characterized in that, The device includes: The acquisition module is used to acquire the data to be transmitted after the browser detects that the target security component has been inserted. The writing module is used to sequentially transmit each piece of data in the local cache area to the target security component when all the data to be transmitted is written to the local cache area; The transmission module is used to interrupt data transmission with the target security component when the browser detects that the target security component has been unplugged during data transmission.
8. A data transmission control device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the data transmission control method as described in any one of claims 1 to 6.
9. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the data transmission control method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the data transmission control method as described in any one of claims 1 to 6.
