Data processing method, device and system

By setting up storage modules between the data requesting device and the data response device and processing data units one by one, the problem of data processing time spent in the data interaction between the TEE system and the REE system is solved, and faster data processing is achieved.

CN114115732BActive Publication Date: 2025-03-11SHENZHEN TCL NEW-TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111328477.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-10
Publication Date
2025-03-11
Estimated Expiration
2041-11-10

AI Technical Summary

Technical Problem

During the data interaction between the TEE system and the REE system, since the TEE interface is a thread-blocking access interface, the data processing takes a long time, and the decoder interface needs to copy data for decoding, further exacerbating the time-consuming problem.

Method used

By setting a first storage module and a second storage module between the data requesting device and the data response device, and processing multiple data units one by one in the same data request, the processed data units are written to the first storage module and update the write information in the second storage module, so that the data requesting device can directly obtain the processed data units.

Benefits of technology

This method does not need to wait for the interface to return or copy process, and directly obtains the processed data unit through the write information in the second storage module, which significantly shortens the time spent on data processing and alleviates the problem of time spent on data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114115732B_ABST
    Figure CN114115732B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a data processing method, device and system, including: first receiving the data to be processed including multiple data units sent by the data request device in the same data request, the data request device is provided with a first storage module and a second storage module, and then calling the processing parameters corresponding to each data unit to process the multiple data units one by one, when a data unit is processed, the processed data unit is written into the first storage module for storage, and the write information corresponding to the processed data unit in the second storage module is updated, so that the data request device obtains the processed data unit according to the write information. Since the data request device can directly obtain the processed data unit through the write information in the second storage module, the process does not need to wait for the interface to return, nor does it need to wait for the copy process, thereby shortening the time consumed by data processing and alleviating the current situation where data processing consumes a long time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, device and system. Background Art

[0002] With the development of science and technology, data processing technology has been widely used in many fields.

[0003] During the data interaction between the TEE (Trusted Execution Environment) system and the REE (Rich Execution Environment) system, the REE system needs to first obtain data (scrambled data) from the server, and then send the data to the TEE system through the TEE interface. The TEE system then descrambles each part of the received data in turn. After all the data is descrambled, the TEE interface returns the descrambled data to the REE system. The REE system then uses the decoder interface to copy the received descrambled data to the decoder's storage area for decoding to obtain the decoded data.

[0004] Since the TEE interface is a thread-blocking access interface, the TEE interface needs to wait until all parts of the data are descrambled before returning them to the REE system at once, resulting in a long data processing time. In addition, since the decoder interface needs to copy the received descrambled data to the decoder's storage area for decoding, the data processing time is further aggravated. Summary of the invention

[0005] The embodiments of the present application provide a data processing method, device and system, which can alleviate the current situation where data processing takes a long time.

[0006] The present application provides a data processing method, which is applicable to a data response device and includes:

[0007] Receiving data to be processed sent by a data requesting device in a same data request, wherein the data to be processed includes a plurality of data units, and the data requesting device is provided with a first storage module and a second storage module;

[0008] Invoking processing parameters corresponding to each data unit to process the multiple data units one by one;

[0009] When the processing of one of the data units is completed, the processed data unit is written into the first storage module for storage, and the write information corresponding to the processed data unit in the second storage module is updated so that the data requesting device obtains the processed data unit according to the write information.

[0010] Wherein, before the step of receiving the data to be processed sent by the data requesting device in the same data request, the method further includes:

[0011] receiving a data processing request sent by the data requesting device;

[0012] sending a data processing instruction to the data requesting device according to the data processing request;

[0013] Receive the data to be processed sent by the data requesting device according to the data processing instruction.

[0014] The data unit includes scrambled data, and calling the processing parameters corresponding to each data unit to process the multiple data units one by one includes:

[0015] The processing parameters corresponding to each scrambled data are called to perform descrambling processing on the multiple scrambled data one by one.

[0016] Wherein, when the processing of one of the data units is completed, the processed data unit is written into the first storage module for storage, and the write information corresponding to the data unit in the second storage module is updated so that the data request device obtains the processed data unit according to the write information, including:

[0017] When the descrambling process of the scrambled data is completed, a descrambled data is obtained;

[0018] The descrambled data is written into the first storage module for storage, and the write information corresponding to the descrambled data in the second storage module is updated, so that the data requesting device obtains the processed descrambled data according to the write information.

[0019] The write information includes a write address of the data unit in the first storage module and an offset value of the write address, and the writing of the descrambled data into the first storage module for storage, and updating the write information corresponding to the descrambled data in the second storage module so that the data requesting device obtains the processed descrambled data according to the write information, includes:

[0020] The descrambled data is written into the first storage module for storage, and a write address of the descrambled data stored in the second storage module and an offset value of the write address in the first storage module are updated, so that the data requesting device obtains the descrambled data according to the write address and the offset value of the write address.

[0021] The embodiment of the present application also provides another data processing method, which is characterized by being applicable to a data requesting device and comprising:

[0022] configuring a first storage module and a second storage module, and registering the second storage module in a data response device;

[0023] Sending data to be processed to the data response device in a same data request, wherein the data to be processed includes a plurality of data units;

[0024] querying the write information in the second storage module, and acquiring, according to the write information, the processed data unit corresponding to the write information written by the data response device in the first storage module;

[0025] The processed data unit is decoded to obtain a decoded data unit.

[0026] The configuring of the first storage module and the second storage module, and registering the second storage module in the data response device, includes:

[0027] A first storage module and a second storage module are configured, and a physical address of the second storage module is mapped to a virtual address on a data response device, so that the second storage module is registered on the data response device.

[0028] The embodiment of the present application also provides another data processing method, which is characterized by being applicable to a data processing system, wherein the data processing system includes a data requesting device and a data responding device, and the data processing method includes:

[0029] The data requesting device configures a first storage module and a second storage module, and registers the second storage module in the data responding device;

[0030] The data requesting device sends the data to be processed to the data responding device in the same data request, wherein the data to be processed includes a plurality of data units;

[0031] The data response device receives the data to be processed, and calls the processing parameters corresponding to each data unit to process the multiple data units one by one;

[0032] When the processing of one of the data units is completed, the data response device writes the processed data unit into the first storage module for storage, and updates the write information corresponding to the processed data unit in the second storage module;

[0033] The data requesting device queries the write information in the second storage module, and obtains the processed data unit corresponding to the write information written by the data responding device in the first storage module according to the write information;

[0034] The data requesting device decodes the processed data unit to obtain a decoded data unit.

[0035] The embodiment of the present application further provides a data processing device, which is applicable to a data response device and includes:

[0036] A receiving module, used for receiving the data to be processed sent by the data requesting device in the same data request, wherein the data to be processed includes a plurality of data units, and the data requesting device is provided with a first storage module and a second storage module;

[0037] A processing module, used for calling processing parameters corresponding to each data unit to process the multiple data units one by one;

[0038] A writing module is used to write the processed data unit into the first storage module for storage when the processing of one data unit is completed, and to update the writing information corresponding to the processed data unit in the second storage module, so that the data requesting device obtains the processed data unit according to the writing information.

[0039] The present application also provides another data processing device, which is applicable to a data requesting device and includes:

[0040] A configuration module, used to configure the first storage module and the second storage module, and register the second storage module in the data response device;

[0041] A sending module, used for sending the data to be processed to the data response device in the same data request, wherein the data to be processed includes a plurality of data units;

[0042] a query module, configured to query the write information in the second storage module, and obtain, according to the write information, the processed data unit corresponding to the write information written by the data response device in the first storage module;

[0043] The decoding module is used to decode the processed data unit to obtain a decoded data unit.

[0044] The embodiment of the present application further provides a data processing system, characterized in that the data processing system includes a data request device and a data response device, and the data processing system is used to:

[0045] The data requesting device configures a first storage module and a second storage module, and registers the second storage module in the data responding device;

[0046] The data requesting device sends the data to be processed to the data responding device in the same data request, wherein the data to be processed includes a plurality of data units;

[0047] The data response device receives the data to be processed, and calls the processing parameters corresponding to each data unit to process the multiple data units one by one;

[0048] When the processing of one of the data units is completed, the data response device writes the processed data unit into the first storage module for storage, and updates the write information corresponding to the processed data unit in the second storage module;

[0049] The data requesting device queries the write information in the second storage module, and obtains the processed data unit corresponding to the write information written by the data responding device in the first storage module according to the write information;

[0050] The data requesting device decodes the processed data unit to obtain a decoded data unit.

[0051] The embodiment of the present application provides a data processing method, device and system, which first receives the data to be processed sent by the data request device in the same data request, and the data to be processed includes multiple data units. The data request device is provided with a first storage module and a second storage module, and then calls the processing parameters corresponding to each data unit to process the multiple data units one by one. When a data unit is processed, the processed data unit is written into the first storage module for storage, and the write information corresponding to the processed data unit in the second storage module is updated, so that the data request device obtains the processed data unit according to the write information. Since the data request device can directly obtain the processed data unit through the write information in the second storage module, the process does not need to wait for the interface to return, nor does it need to wait for the copy process, thereby shortening the time consumed by data processing and alleviating the current situation where data processing consumes a long time. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.

[0053] Figure 1 A flowchart of a data processing method provided in an embodiment of the present application.

[0054] Figure 2 Another flowchart of the data processing method provided in an embodiment of the present application.

[0055] Figure 3 Another flowchart of the data processing method provided in the embodiment of the present application.

[0056] Figure 4 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application.

[0057] Figure 5 Another structural schematic diagram of the data processing device provided in an embodiment of the present application.

[0058] Figure 6 A schematic diagram of a data processing system in the prior art provided in an embodiment of the present application.

[0059] Figure 7 A schematic diagram of a data processing system provided in an embodiment of the present application.

[0060] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0061] Fig. 9 Another schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0063] Embodiments of the present application provide a data processing method, device, and system.

[0064] like Figure 1 As shown, Figure 1 It is a flow chart of the data processing method provided in the embodiment of the present application. The specific flow can be as follows:

[0065] S101. Receive data to be processed sent by a data requesting device in a same data request, the data to be processed includes a plurality of data units, and the data requesting device is provided with a first storage module and a second storage module.

[0066] Among them, the data request device is a device in a data request environment (for example, a REE device), which is used to process data with a data response device (i.e., a device in a data response environment, such as a TEE device). The data to be processed includes multiple data units that cannot be directly read by the data request device (for example, data units processed by scrambling or encryption, etc.), and the processing method for the data to be processed includes descrambling processing. The first storage module and the second storage module are buffer areas for writing / reading data. In actual application, the data request device needs to first send a request to obtain the data to be processed to the server. After receiving the request to obtain the data to be processed, the server sends the data to be processed to the data request device, and the data request device then sends the data to be processed to the data response device.

[0067] In the embodiment of the present application, the REE device is a data request device, the TEE device is a data response device, and the data to be processed is a plurality of scrambled audio and video data. The REE device first sends a data acquisition request to the server, and after the server receives the data acquisition request, it sends the scrambled audio and video data to the REE device. Since the REE device can only read the descrambled audio and video data, and the descrambling key is stored in the TEE device, the REE device sends the scrambled audio and video data to the TEE device in the same data request for corresponding processing.

[0068] Furthermore, before the above step S101, the method further includes:

[0069] receiving a data processing request sent by a data requesting device;

[0070] sending a data processing instruction to a data requesting device according to a data processing request;

[0071] At least one to-be-processed data sent by the data requesting device according to the data processing instruction is received.

[0072] Among them, the data processing request and the data processing instruction are messages or signals used to transmit information. In this embodiment, after the REE device obtains multiple scrambled audio and video data from the server, it first sends a data processing request to the TEE device to request the TEE device to receive the scrambled audio and video data. After the TEE system obtains the data processing request, it returns the data processing instruction to the REE device to indicate that the TEE system currently has the conditions to receive the scrambled audio and video data. After that, the REE device can send these scrambled audio and video data to the TEE device at one time.

[0073] S102. Call the processing parameters corresponding to each data unit to process multiple data units one by one.

[0074] The processing method includes descrambling processing. In this embodiment, when the TEE device receives multiple scrambled audio and video data, it calls the processing parameters corresponding to each scrambled audio and video data to descramble the multiple scrambled audio and video data one by one, thereby obtaining the descrambled audio and video data one by one.

[0075] S103. When a data unit is processed, the processed data unit is written into the first storage module for storage, and the write information corresponding to the processed data unit in the second storage module is updated so that the data requesting device obtains the processed data unit according to the write information.

[0076] The storage information includes the write position address of the processed data unit in the first storage module and the offset value of the write position address.

[0077] In this embodiment, whenever a scrambled audio and video data is descrambled, a descrambled audio and video data will be obtained. The TEE system writes the descrambled audio and video data into the first storage module for storage, and updates the write address of the descrambled audio and video data stored in the second storage module in the first storage module and the offset value of the write address, so that the REE system obtains the descrambled audio and video data according to the write address and the offset value of the write address.

[0078] like Figure 2 As shown, Figure 2 Another flowchart of the data processing method provided in the embodiment of the present application is as follows:

[0079] S201. Configure a first storage module and a second storage module, and register the second storage module in a data response device.

[0080] The data requesting device pre-configures the first storage module and the second storage module inside it, and performs virtual address mapping of the physical address of the second storage module on the data responding device, so that the second storage module is registered on the data responding device, thereby enabling the data responding device to obtain write / read permissions for the second storage module.

[0081] In this embodiment, the REE device pre-configures the first storage module and the second storage module, and performs virtual address mapping of the physical address of the second storage module in the TEE device, so that the second storage module is registered in the TEE device.

[0082] S202. Sending data to be processed to the data response device in the same data request, where the data to be processed includes multiple data units.

[0083] Since the data requesting device can only read the processed data units, the pre-acquired data to be processed including multiple data units are sent to the data responding device together, so that the data responding device processes these data units.

[0084] In this embodiment, since the REE device can only read the descrambled audio and video data, and the descrambling key is stored in the TEE device, the REE device sends multiple scrambled audio and video data to the TEE device for descrambling in the same data request.

[0085] S203. Query the write information in the second storage module, and obtain, according to the write information, a processed data unit corresponding to the write information written by the data response device in the first storage module.

[0086] After the data request device sends the data unit to the data response device, it can query the write information in the second storage module by creating a read thread, and obtain the corresponding data unit processed by the data response device according to the write information. Optionally, the write information includes the write address of the data unit in the first storage module and the offset value of the write address.

[0087] In this embodiment, the REE device creates a read thread to read the write position address of the demodulated audio and video data stored in the second storage module and the offset value of the write position address of the demodulated audio and video data, and calculates according to the write position address and the offset value of the write position to obtain the demodulated audio and video data.

[0088] S204. Decode the processed data unit to obtain a decoded data unit.

[0089] The data request device is provided with a decoding device. When the data request device obtains a processed data unit, the decoding device decodes the processed data unit to obtain a decoded data unit.

[0090] In this embodiment, after the REE device obtains a descrambled audio and video data, the decoding device reads the descrambled audio and video data and decodes the descrambled audio and video data so that the REE device obtains a decoded audio and video data, and the REE device can then play the audio and video smoothly.

[0091] like Figure 3 As shown, Figure 3 This is another flow chart of the data processing method provided in the embodiment of the present application. The specific flow chart may be as follows:

[0092] S301. The data requesting device configures a first storage module and a second storage module, and registers the second storage module in the data responding device.

[0093] For example, the REE device pre-configures the first storage module and the second storage module, and performs virtual address mapping of the physical address of the second storage module in the TEE device, so that the second storage module is registered in the TEE device.

[0094] S302. The data requesting device sends the data to be processed to the data responding device in the same data request, where the data to be processed includes multiple data units.

[0095] For example, the REE device sends multiple scrambled audio and video data to the TEE device for descrambling in the same data request.

[0096] S303. The data response device receives the data to be processed, and calls the processing parameters corresponding to each data unit to process multiple data units one by one.

[0097] For example, the TEE device calls the processing parameters corresponding to each scrambled audio and video data to descramble the multiple scrambled audio and video data one by one.

[0098] S304. When a data unit is processed, the data response device writes the processed data unit into the first storage module for storage, and updates the write information corresponding to the processed data unit in the second storage module.

[0099] For example, each time the TEE device descrambles a scrambled audio or video data, it obtains a descrambled audio or video data. The TEE system writes the descrambled audio or video data into the first storage module for storage, and updates the write address of the descrambled audio or video data stored in the second storage module in the first storage module and the offset value of the write address.

[0100] S305. The data requesting device queries the write information in the second storage module, and obtains the processed data unit corresponding to the write information written by the data responding device in the first storage module according to the write information.

[0101] For example, the REE device creates a read thread to read the write position address of the demodulated audio and video data stored in the second storage module and the offset value of the write position address of the demodulated audio and video data, and calculates according to the write position address and the offset value of the write position to obtain the demodulated audio and video data.

[0102] S306. The data requesting device decodes the processed data unit to obtain a decoded data unit.

[0103] For example, the decoding device in the REE device reads the descrambled audio and video data and decodes the descrambled audio and video data, so that the REE device obtains a decoded audio and video data.

[0104] As can be seen from the above, the data processing method provided by the present application first receives the data to be processed sent by the data request device in the same data request, and the data to be processed includes multiple data units. The data request device is provided with a first storage module and a second storage module, and then calls the processing parameters corresponding to each data unit to process the multiple data units one by one. When a data unit is processed, the processed data unit is written into the first storage module for storage, and the write information corresponding to the processed data unit in the second storage module is updated, so that the data request device obtains the processed data unit according to the write information. Since the data request device can directly obtain the processed data unit through the write information in the second storage module, the process does not need to wait for the interface to return, nor does it need to wait for the copy process, thereby shortening the time consumed by data processing and alleviating the current situation where data processing consumes a long time.

[0105] According to the method described in the above embodiment, this embodiment will be further described from the perspective of a data processing device.

[0106] See also Figure 4 , Figure 4 The data processing device provided in the embodiment of the present application is specifically described. The data processing device may include: a receiving module 10, a processing module 20 and a writing module 30, wherein:

[0107] (1) Receiving module 10

[0108] The receiving module 10 is used to receive the data to be processed sent by the data requesting device in the same data request. The data to be processed includes a plurality of data units. The data requesting device is provided with a first storage module and a second storage module.

[0109] (2) Processing module 20

[0110] The processing module 20 is used to call the processing parameters corresponding to each data unit to process multiple data units one by one.

[0111] (3) Write module 30

[0112] The writing module 30 is used to write the processed data unit into the first storage module for storage when a data unit is processed, and to update the writing information corresponding to the processed data unit in the second storage module so that the data requesting device obtains the processed data unit according to the writing information.

[0113] As can be seen from the above, the data processing device provided by the present application first receives the data to be processed sent by the data request device in the same data request through the receiving module 10, and the data to be processed includes multiple data units. The data request device is provided with a first storage module and a second storage module, and then calls the processing parameters corresponding to each data unit through the processing module 20 to process the multiple data units one by one. When a data unit is processed, the processed data unit is written into the first storage module for storage through the writing module 30, and the writing information corresponding to the processed data unit in the second storage module is updated, so that the data request device obtains the processed data unit according to the writing information. Since the data request device can directly obtain the processed data unit through the writing information in the second storage module, the process does not need to wait for the interface to return, nor does it need to wait for the copying process, thereby shortening the time consumed by data processing and alleviating the current situation where data processing consumes a long time.

[0114] Figure 5 Another structural diagram of a data processing device provided in an embodiment of the present application, the data processing device may include: a configuration module 40, a sending module 50, a query module 60 and a decoding module 70, wherein:

[0115] (1) Configuration module 40

[0116] The configuration module is used to configure the first storage module and the second storage module, and register the second storage module in the data response device.

[0117] (2) Transmitting module 50

[0118] The sending module 50 is used to send the data to be processed to the data response device in the same data request, and the data to be processed includes multiple data units.

[0119] (3) Query module 60

[0120] The query module 60 is used to query the write information in the second storage module, and obtain the processed data unit corresponding to the write information written by the data response device in the first storage module according to the write information.

[0121] (4) Decoding module 70

[0122] The decoding module 70 is used to decode the processed data unit to obtain a decoded data unit.

[0123] As can be seen from the above, the data processing device provided by the present application first configures the first storage module and the second storage module through the configuration module 40, and registers the second storage module in the data response device, and then sends the data to be processed (including multiple data units) to the data response device in the same data request through the sending module 50, and then queries the write information in the second storage module through the query module 60, and obtains the processed data unit corresponding to the write information written by the data response device in the first storage module according to the write information, and finally decodes the processed data unit through the decoding module 70 to obtain the decoded data unit. Since the processed data unit can be directly obtained by querying the write information in the second storage module, and the processed data unit can be directly decoded, the process does not need to wait for the interface to return, nor does it need to wait for the copy process, thereby shortening the time consumed by data processing and alleviating the current situation where data processing consumes a long time.

[0124] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.

[0125] Correspondingly, an embodiment of the present invention further provides a data processing system, including the data request device and the data response device provided by the embodiment of the present invention.

[0126] Among them, Figure 6 As shown, Figure 6 Schematic diagram of a data processing system in the prior art provided by an embodiment of the present application. In the prior art, the REE device 2001 needs to execute step S61: send the scrambled audio and video data to the TEE device 2002 through the TEE interface, and the TEE device 2002 executes step S62: descramble the scrambled audio and video data in turn to obtain descrambled audio and video data, and after all the scrambled audio and video data are descrambled, execute step S63: send all the descrambled audio and video data to the REE device 2001 through the TEE interface, and after the REE device 2001 receives all the descrambled audio and video data, execute step S64: copy the descrambled audio and video data to the storage area of ​​the decoder through the decoder interface for decoding to obtain decoded audio and video data.

[0127] In the above-mentioned existing data processing process, since the TEE interface is a thread-blocking access interface, the TEE interface needs to wait for all parts of the data to be descrambled before returning them to the REE device at once, resulting in a long time for data processing. As a result, a long waiting time is required when playing audio and video in the REE device environment. In addition, since the decoder interface needs to copy the received descrambled data to the decoder's storage area for decoding, the situation of long data processing time is further aggravated.

[0128] like Figure 7 As shown, Figure 7 Schematic diagram of a data processing system provided in an embodiment of the present application. In an embodiment of the present application, the REE device 2001 executes step S71: configures a first storage module and a second storage module, then executes step S72: registers the second storage module in the TEE device 2002, and executes step S73: sends multiple scrambled audio and video data to the TEE device 2002 in the same data request, and after the TEE device 2002 receives these scrambled audio and video data, executes step S74: calls the processing parameters corresponding to each scrambled audio and video data to descramble the multiple scrambled audio and video data one by one, and when a scrambled audio and video data is descrambled to obtain a descrambled audio and video data , TEE device 2002 executes step S75: writes the descrambled audio and video data into the first storage module for storage, and updates the write address of the descrambled audio and video data stored in the second storage module in the first storage module and the offset value of the write address, REE device 2001 executes step S76: queries the write position address of the descrambled audio and video data stored in the second storage module, and the offset value of the write position address to obtain the descrambled audio and video data, and finally REE device 2001 executes step S77: the decoding device reads the descrambled audio and video data, and decodes the descrambled audio and video data to obtain a decoded audio and video data. The above process does not need to wait for the TEE interface to return, nor does it need to wait for the decoder to copy time, thereby shortening the time spent on data processing and alleviating the current situation where data processing takes a long time.

[0129] In addition, the present application also provides an electronic device. Figure 8 As shown, the electronic device 800 includes a processor 801 and a memory 802. The processor 801 is electrically connected to the memory 802.

[0130] The processor 801 is the control center of the electronic device 800. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or loading applications stored in the memory 802 and calling data stored in the memory 802, thereby monitoring the electronic device as a whole.

[0131] In this embodiment, the processor 801 in the electronic device 800 will load the instructions corresponding to the processes of one or more applications into the memory 802 according to the following steps, and the processor 801 will run the application stored in the memory 802 to execute the steps of the above-mentioned data processing method.

[0132] Fig. 9A specific structural block diagram of an electronic device provided in an embodiment of the present invention is shown, and the electronic device can be used to implement the data processing method provided in the above embodiment.

[0133] The RF circuit 910 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 910 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity module (SIM) cards, memories, etc. The RF circuit 910 can communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices through wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as Institute of Electrical and Electronics Engineers standards IEEE802.11a, IEEE 802.11b, IEEE802.11g and / or IEEE 802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging and short messages, and any other suitable communication protocols, even those that have not yet been developed.

[0134] The memory 920 can be used to store software programs and modules, such as program instructions / modules for converting detection signals into target characters in the above-mentioned embodiments. The processor 980 executes various functional applications and data processing by running software programs and modules stored in the memory 920, that is, realizes the function of storing 5G capability information. The memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 920 may further include a memory remotely arranged relative to the processor 980, and these remote memories may be connected to the electronic device 900 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0135] The input unit 930 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 930 may include a touch-sensitive surface 931 and other input devices 932. The touch-sensitive surface 931, also known as a touch display screen or a touchpad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 931), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 931 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 980, and can receive and execute commands sent by the processor 980. In addition, the touch-sensitive surface 931 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 931, the input unit 930 may further include other input devices 932. Specifically, the other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

[0136] The display unit 940 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 900, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 940 may include a display panel 941. Optionally, the display panel 941 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 931 may cover the display panel 941. When the touch-sensitive surface 931 detects a touch operation on or near it, it is transmitted to the processor 980 to determine the type of touch event. Subsequently, the processor 980 provides corresponding visual output on the display panel 941 according to the type of touch event. Although in Fig. 9 In the embodiment, the touch-sensitive surface 931 and the display panel 941 are implemented as two independent components to implement input and output functions, but in some embodiments, the touch-sensitive surface 931 and the display panel 941 can be integrated to implement input and output functions.

[0137] The electronic device 900 may also include at least one sensor 950, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 941 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 941 and / or the backlight when the electronic device 900 is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 900, they will not be repeated here.

[0138] The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the electronic device 900. The audio circuit 960 can transmit the electrical signal converted from the received audio data to the speaker 961, which is converted into a sound signal for output; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, which is received by the audio circuit 960 and converted into audio data, and then the audio data is output to the processor 980 for processing, and then sent to another terminal through the RF circuit 910, or the audio data is output to the memory 920 for further processing. The audio circuit 960 may also include an earplug jack to provide communication between an external headset and the electronic device 900.

[0139] The electronic device 900 can help users send and receive emails, browse web pages, and access streaming media through the transmission module 970 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Fig. 9 A transmission module 970 is shown, but it is understandable that it is not an essential component of the electronic device 900 and can be omitted as needed without changing the essence of the invention.

[0140] The processor 980 is the control center of the electronic device 900. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of the electronic device 900 and processes data by running or executing software programs and / or modules stored in the memory 920, and calling data stored in the memory 920. Optionally, the processor 980 may include one or more processing cores; in some embodiments, the processor 980 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 980.

[0141] The electronic device 900 also includes a power supply 990 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 980 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 990 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0142] Although not shown, the electronic device 900 may also include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail herein. Specifically in this embodiment, the display unit of the electronic device is a touch screen display, and the electronic device also includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and are configured to be executed by one or more processors to include the steps for executing the above-mentioned data processing method.

[0143] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0144] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium, which stores a plurality of instructions, and the instructions can be loaded by a processor to execute the steps in any data processing method provided by an embodiment of the present invention.

[0145] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0146] Since the instructions stored in the storage medium can execute the steps in any data processing method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any data processing method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0147] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0148] In summary, although the present application has been disclosed as above with preferred embodiments, the above preferred embodiments are not intended to limit the present application. Ordinary technicians in this field can make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined in the claims.

Claims

1. A data processing method, characterized in that: Applicable to a data response device, the data response device being a device in a trusted execution environment, the method comprising: Receive the data to be processed sent by the data request device in the same data request, the data to be processed includes multiple data units, the data request device is provided with a first storage module and a second storage module, the data request device is a device in a general environment of mobile devices; wherein the second storage module is a module for storing write information, the data request device performs virtual address mapping on the physical address of the second storage module in the data response device, so that the second storage module is registered in the data response device; Invoking a processing parameter corresponding to each data unit to process the plurality of data units one by one, the data units including scrambled data; When the processing of one of the data units is completed, the processed data unit is written into the first storage module for storage, and the write information corresponding to the processed data unit in the registered second storage module is updated, so that the data request device obtains the processed data unit according to the write information; The calling of the processing parameters corresponding to each data unit to process the multiple data units one by one includes: calling the processing parameters corresponding to each scrambled data to descramble the multiple scrambled data one by one; When the processing of one of the data units is completed, the processed data unit is written into the first storage module for storage, and the write information corresponding to the data unit in the registered second storage module is updated so that the data request device obtains the processed data unit according to the write information, including: when the descrambling processing of one of the scrambled data is completed, a descrambled data is obtained; the descrambled data is written into the first storage module for storage, and the write information corresponding to the descrambled data in the registered second storage module is updated so that the data request device obtains the processed descrambled data according to the write information.

2. The data processing method according to claim 1, characterized in that: Before the step of receiving the data to be processed sent by the data requesting device in the same data request, the method further includes: receiving a data processing request sent by the data requesting device; sending a data processing instruction to the data requesting device according to the data processing request; Receive the data to be processed sent by the data requesting device according to the data processing instruction.

3. The data processing method according to claim 1, characterized in that: The write information includes a write address of the data unit in the first storage module and an offset value of the write address, and the writing of the descrambled data into the first storage module for storage, and updating the write information corresponding to the descrambled data in the registered second storage module so that the data requesting device obtains the processed descrambled data according to the write information, including: The descrambled data is written into the first storage module for storage, and the write address of the descrambled data stored in the registered second storage module in the first storage module and the offset value of the write address are updated, so that the data requesting device obtains the descrambled data according to the write address and the offset value of the write address.

4. A data processing method, characterized in that: Applicable to a data requesting device, the data requesting device is a device in a general environment of a mobile device, the method comprising: Configure a first storage module and a second storage module, and perform virtual address mapping on the physical address of the second storage module on the data response device, so that the second storage module is registered on the data response device, the data response device is a device in a trusted execution environment, and the second storage module is a module for storing write information; Sending data to be processed to the data response device in the same data request, the data to be processed including multiple data units, the data units including scrambled data, so that the data response device calls the processing parameters corresponding to each scrambled data to perform descrambling processing on the multiple scrambled data one by one; wherein, when one of the scrambled data is descrambled to obtain one descrambled data, the data response device writes the descrambled data into the first storage module for storage, and updates the write information corresponding to the descrambled data in the registered second storage module; querying the write information in the second storage module, and acquiring, according to the write information, the processed data unit corresponding to the write information written by the data response device in the first storage module; The processed data unit is decoded to obtain a decoded data unit.

5. A data processing method, characterized in that: Applicable to a data processing system, the data processing system includes a data request device and a data response device, the data request device is a device in a general environment of a mobile device, the data response device is a device in a trusted execution environment, and the data processing method includes: The data request device configures a first storage module and a second storage module, and performs virtual address mapping of the physical address of the second storage module on the data response device, so that the second storage module is registered on the data response device, and the second storage module is a module for storing write information; The data requesting device sends the data to be processed to the data responding device in the same data request, wherein the data to be processed includes a plurality of data units; The data response device receives the data to be processed, and calls the processing parameters corresponding to each data unit to process the multiple data units one by one, wherein the data units include scrambled data; calling the processing parameters corresponding to each data unit to process the multiple data units one by one includes: calling the processing parameters corresponding to each scrambled data to perform descrambling processing on the multiple scrambled data one by one; When the processing of one of the data units is completed, the data response device writes the processed data unit into the first storage module for storage, and updates the write information corresponding to the processed data unit in the registered second storage module; when the processing of one of the data units is completed, the data response device writes the processed data unit into the first storage module for storage, and updates the write information corresponding to the processed data unit in the registered second storage module, including: when the descrambling processing of one of the scrambled data is completed, a descrambled data is obtained; the descrambled data is written into the first storage module for storage, and the write information corresponding to the descrambled data in the registered second storage module is updated; The data requesting device queries the write information in the second storage module, and obtains the processed descrambled data corresponding to the write information written by the data responding device in the first storage module according to the write information; The data requesting device decodes the processed data unit to obtain a decoded data unit.

6. A data processing device, characterized in that: Applicable to a data response device, the data response device is a device in a trusted execution environment, the apparatus comprises: A receiving module, used for receiving the data to be processed sent by the data request device in the same data request, wherein the data to be processed includes a plurality of data units, the data request device is provided with a first storage module and a second storage module, and the data request device is a device in a general environment of mobile devices; wherein the second storage module is a module for storing write information, and the data request device performs virtual address mapping on the physical address of the second storage module in the data response device, so that the second storage module is registered in the data response device; A processing module, configured to call processing parameters corresponding to each data unit to process the multiple data units one by one, wherein the data units include scrambled data; the calling processing parameters corresponding to each data unit to process the multiple data units one by one includes: calling processing parameters corresponding to each scrambled data to perform descrambling processing on the multiple scrambled data one by one; A writing module, used for, when processing of one data unit is completed, writing the processed data unit into the first storage module for storage, and updating the write information corresponding to the processed data unit in the registered second storage module, so that the data request device obtains the processed data unit according to the write information; when processing of one data unit is completed, writing the processed data unit into the first storage module for storage, and updating the write information corresponding to the data unit in the registered second storage module, so that the data request device obtains the processed data unit according to the write information, comprising: when descrambling processing of one scrambled data is completed, a descrambled data is obtained; writing the descrambled data into the first storage module for storage, and updating the write information corresponding to the descrambled data in the registered second storage module, so that the data request device obtains the processed descrambled data according to the write information.

7. A data processing device, characterized in that: Applicable to a data requesting device, the data requesting device is a device in a general environment of a mobile device, the apparatus comprises: A configuration module, configured to configure a first storage module and a second storage module, and to map a physical address of the second storage module to a virtual address on a data response device, so that the second storage module is registered on the data response device, the data response device is a device in a trusted execution environment, and the second storage module is a module for storing write information; a sending module, configured to send to-be-processed data to the data response device in a same data request, the to-be-processed data including a plurality of data units, the data units including scrambled data, so that the data response device calls processing parameters corresponding to each scrambled data to perform descrambling processing on the plurality of scrambled data one by one; wherein, when the descrambling processing of one scrambled data is completed to obtain a descrambled data, the data response device writes the descrambled data into the first storage module for storage, and updates the write information corresponding to the descrambled data in the registered second storage module; a query module, configured to query the written information in the second storage module, and obtain the processed data unit corresponding to the written information written by the data response device in the first storage module according to the written information; the processed data unit is processed descrambled data obtained by performing descrambling processing by calling the processing parameters corresponding to the scrambled data in the data response device; The decoding module is used to decode the processed data unit to obtain a decoded data unit.

8. A data processing system, characterized in that: The data processing system comprises a data request device and a data response device, wherein the data request device is a device in a general environment of a mobile device, and the data response device is a device in a trusted execution environment. The data processing system is used for: The data request device configures a first storage module and a second storage module, and performs virtual address mapping of the physical address of the second storage module on the data response device, so that the second storage module is registered on the data response device, and the second storage module is a module for storing write information; The data requesting device sends the data to be processed to the data responding device in the same data request, wherein the data to be processed includes a plurality of data units; The data response device receives the data to be processed, and calls the processing parameters corresponding to each data unit to process the multiple data units one by one, wherein the data units include scrambled data; calling the processing parameters corresponding to each data unit to process the multiple data units one by one includes: calling the processing parameters corresponding to each scrambled data to perform descrambling processing on the multiple scrambled data one by one; When the processing of one of the data units is completed, the data response device writes the processed data unit into the first storage module for storage, and updates the write information corresponding to the processed data unit in the registered second storage module; when the processing of one of the data units is completed, the data response device writes the processed data unit into the first storage module for storage, and updates the write information corresponding to the processed data unit in the registered second storage module, including: when the descrambling processing of one of the scrambled data is completed, a descrambled data is obtained; the descrambled data is written into the first storage module for storage, and the write information corresponding to the descrambled data in the registered second storage module is updated; The data requesting device queries the write information in the second storage module, and obtains the processed descrambled data corresponding to the write information written by the data responding device in the first storage module according to the write information; The data requesting device decodes the processed data unit to obtain a decoded data unit.

Citation Information

Patent Citations

  • Data sharing method, device, equipment and system

    CN109857573A

  • Inter-application communication method and device based on privacy protection

    CN112231124A