CN109871281B - Data interaction method and device based on InSE security chip - Google Patents

Data interaction method and device based on InSE security chip Download PDF

Info

Publication number
CN109871281B
CN109871281B CN201910133194.5A CN201910133194A CN109871281B CN 109871281 B CN109871281 B CN 109871281B CN 201910133194 A CN201910133194 A CN 201910133194A CN 109871281 B CN109871281 B CN 109871281B
Authority
CN
China
Prior art keywords
control module
main control
data processing
shared memory
inse
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910133194.5A
Other languages
Chinese (zh)
Other versions
CN109871281A (en
Inventor
索思亮
习伟
蔡田田
简淦杨
匡晓云
姚浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CSG Electric Power Research Institute
China Southern Power Grid Co Ltd
Original Assignee
CSG Electric Power Research Institute
China Southern Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CSG Electric Power Research Institute, China Southern Power Grid Co Ltd filed Critical CSG Electric Power Research Institute
Priority to CN201910133194.5A priority Critical patent/CN109871281B/en
Publication of CN109871281A publication Critical patent/CN109871281A/en
Application granted granted Critical
Publication of CN109871281B publication Critical patent/CN109871281B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a data interaction method based on an inSE (input sense element) security chip, wherein when data interaction is carried out between a main control module of the inSE security chip and the inSE security module, data interaction is realized through a shared memory, the main control module sends and stores a data processing command to the shared memory, the inSE module analyzes the acquired data processing command to obtain processing parameters, then the processing parameters are utilized to process data to obtain a data processing result and store the data processing result to the shared memory, and finally the main control module reads the data processing result from the shared memory, so that the data interaction between the main control module and a security control module is completed. The data transmission efficiency is improved; meanwhile, the main control module and the inSE safety module are not in multi-chip communication any more, so that the error rate during data interaction is reduced. In addition, the invention also discloses a data interaction device based on the inSE security chip and the inSE security chip, and the effects are as above.

Description

Data interaction method and device based on InSE security chip
Technical Field
The present invention relates to the field of data storage, and in particular, to a data interaction method and apparatus based on an inSE security chip, and an inSE security chip.
Background
An internal security module (inner Secure Element, inSE) refers to a security module integrated into the security chip, and is combined with a functional chip integrated with a main control module for operating the security module to serve as an embedded security module of a terminal product, so as to realize functions of secure storage, encryption and decryption operation and the like of data.
At present, the functional chip integrated with the main control module and the safety chip integrated with the safety module carry out data interaction through a serial communication interface, on one hand, the main control module and the safety module adopt different chips for carrying, namely the main control module and the safety module adopt a separation structure, and when data transmission is carried out among multiple chips, the error rate is higher when the data transmission is carried out among the chips because the data link is long and is easily influenced by board-level interference and working environment, and the power consumption is higher when the two chips are used as embedded safety modules; on the other hand, the data link is longer, and the data interaction mode between the security chip and the functional chip is to use the serial interface between boards to carry out data interaction, so that the data transmission efficiency is lower.
Disclosure of Invention
The invention aims to provide a data interaction method and device based on an inSE (input sense element) safety chip and the inSE safety chip, so that the error rate and the data transmission efficiency of data transmission between a main control module and a safety module are reduced.
In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:
first, an embodiment of the present invention provides a data interaction method based on an inSE security chip, where the inSE security chip is integrated with a main control module and an inSE security module, and includes:
acquiring a data processing command sent and stored by the main control module from a shared memory;
analyzing the data processing command to obtain a processing parameter corresponding to the data processing command;
processing the data according to the processing parameters to obtain a data processing result;
and sending and storing the data processing result to the shared memory so that the main control module reads the data processing result from the shared memory.
Optionally, the main control module and the inSE security module perform data interaction in a Mailbox manner, and correspondingly, the main control module sends and stores the data processing command includes:
the main control module detects whether the mutual exclusion lock in the Mailbox message entity in the shared memory is in an idle state or not;
if yes, the main control module sends and stores the data processing command;
if not, the main control module enters a waiting mode until the mutual exclusion lock is in the idle state.
Optionally, after the main control module sends and stores the data processing command, the method further includes:
the main control module switches the working mode of the main control module into a dormant mode.
Optionally, the main control module reads the data processing result from the shared memory, including:
the main control module detects whether a first trigger command is received or not by using a Mailbox;
if yes, the main control module converts the sleep mode into the working mode, and reads the data processing result from the shared memory by utilizing the first trigger command;
wherein the first trigger command includes: and the data processing result is stored in the storage address of the shared memory.
Optionally, after the main control module reads the data processing result from the shared memory, the method further includes:
and the master control module releases the mutual exclusion lock at preset time.
Optionally, before the data processing command sent and stored by the main control module is obtained from the shared memory, the method further includes:
detecting whether a second trigger instruction sent by the main control module by using the Mailbox is received or not through the Mailbox;
if yes, switching the sleep mode of the main control module to a working mode and executing the step of acquiring the data processing command sent and stored by the main control module from the shared memory;
if not, the sleep mode is maintained.
Optionally, the sending and storing the data processing result to the shared memory includes:
encrypting the data processing result by using an encryption algorithm;
and sending and storing the encrypted data processing result to the shared memory.
Second, an embodiment of the present invention provides a data interaction device based on an inSE security chip, including:
the acquisition module is used for acquiring the data processing command sent and stored by the main control module from the shared memory;
the analysis module is used for analyzing the data processing command to obtain a processing parameter corresponding to the data processing command;
the processing module is used for processing the data according to the processing parameters to obtain a data processing result;
and the storage module is used for sending and storing the data processing result to the shared memory so that the main control module reads the data processing result from the shared memory.
Optionally, the method further comprises:
the detection module is used for detecting whether a second trigger instruction sent by the main control module by using the Mailbox is received or not through the Mailbox; if yes, entering a switching module, and if not, keeping the sleep mode;
the switching module is used for switching the sleep mode of the switching module into the working mode and executing the step of acquiring the data processing command sent and stored by the main control module from the shared memory.
Third, the embodiment of the invention provides an inSE security chip, which is integrated with a main control module, an inSE security module and a shared memory;
the shared memory is respectively connected with the main control module and the inSE security module and is used for storing data processing commands and data processing results;
the inSE security module is configured to perform the steps of:
acquiring a data processing command sent and stored by the main control module from a shared memory of the shared memory;
analyzing the data processing command to obtain a processing parameter corresponding to the data processing command;
processing the data according to the processing parameters to obtain a data processing result;
sending and storing the data processing result to the shared memory;
the main control module is used for sending and storing data processing commands to the shared memory and reading the data processing results from the shared memory.
According to the data interaction method based on the inSE security chip, the main control module and the inSE security module are integrated on the same chip to form the inSE security chip in the embodiment of the invention, when the data interaction is carried out between the main control module and the inSE security module of the inSE security chip in the embodiment of the invention, the data interaction is realized through the shared memory, the main control module sends and stores a data processing command to the shared memory, the inSE module obtains the data processing command and analyzes the data processing command to obtain processing parameters, then the processing parameters are utilized to process the data to obtain a data processing result and store the data processing result to the shared memory, and finally the main control module reads the data processing result from the shared memory, so that the data interaction between the main control module and the security control module is completed. Therefore, by adopting the scheme, the data link can be shortened, and the data transmission efficiency is improved; meanwhile, the main control module and the inSE safety module are not in multi-chip communication any more, so that board-level interference is avoided, the error rate during data interaction is reduced, and the reliability of data transmission is improved. In addition, the embodiment of the invention also discloses a data interaction device based on the inSE security chip and the inSE security chip, and the effects are as above.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a data interaction method based on an inSE security chip according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a message entity of a Mailbox according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a data interaction method based on an InSE security chip according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of a data interaction device based on an inSE security chip according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an inSE security chip according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention discloses a data interaction method and device based on an inSE (input sense element) safety chip and the inSE safety chip, which reduce the error rate and the data transmission efficiency of data transmission between a main control module and a safety module.
In the prior art, the main control module is mainly integrated on a specific functional chip, the inSE security module is integrated on a security chip, the functional chip and the security chip are connected through a serial interface, and accordingly, the data interaction mode between the functional chip and the security chip is serial communication, namely, a multi-chip communication scheme is adopted between the main control module and the inSE security module in the prior art. Therefore, when data transmission is carried out among the multiple chips, the error rate is high when the data transmission is carried out among the chips because the data link is long and is easily influenced by board-level interference and working environment. Meanwhile, when serial communication is adopted among different chips for data transmission, one-bit data and one-bit data are sequentially transmitted and a data link is longer when the serial communication is used for data transmission, so that the data transmission efficiency is low.
Therefore, the main control module and the inSE security module are integrated on the same chip, so that the inSE security chip in the embodiment of the invention is formed to serve as a hardware base and a hardware-based software base of the main control module and the inSE security module. When the main control module and the inSE security module are integrated on the same chip, a data link can be shortened, and the data transmission efficiency is improved; meanwhile, the main control module and the inSE safety module are not in multi-chip communication any more, so that board-level interference is avoided, the error rate during data interaction is reduced, and the reliability of data transmission is improved.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data interaction method based on an inSE security chip according to a first embodiment of the present invention, where the method includes:
s101: and acquiring the data processing command sent and stored by the main control module from the shared memory.
Specifically, the shared memory is accessible by both the main control module and the inSE security module, and data interaction can be performed between the main control module and the inSE security module in a Mailbox mode or in an interrupt triggering mode.
When a Mailbox mode is adopted for data interaction, referring to FIG. 2, FIG. 2 is a schematic diagram of an organization structure of a Mailbox message entity, wherein cmd represents a data processing command sent by a main control module; the complete represents the task completion status of the inSE security module to process data processing commands; ret represents the returned result of the processing of the data processing command by the inSE security module (the data processing result in the following embodiments); mutex represents a mutual exclusive lock of a message entity and a shared memory accessed by a master control module; args represents the attached parameters of different data processing commands, such as the storage address of the data which is encrypted and decrypted by the inSE security module, the address of the returned data processing result, the encryption and decryption calculation mode and the like.
When the master control module and the inSE security module perform data interaction in a Mailbox mode, in order to avoid occupation conflict when a plurality of threads in the master control module access shared resources, the embodiment of the invention uses the mutual exclusion lock, and when the master control module sends data in the Mailbox mode, the mutual exclusion lock is acquired first to access the shared memory.
After the master control module acquires the mutual exclusion lock, the master control module stores the data processing command to the cmd of the message entity of the Mailbox of the shared memory in the Mailbox mode and sends a trigger command (second trigger command) to the inSE security module, at the moment, the complex state is a waiting state, then the inSE security module reads the data processing command from the cmd and the args of the message entity of the Mailbox of the shared memory at the moment, performs data processing according to the data processing command and the incidental parameters, stores the data processing result in the shared memory after the processing is completed, sends a feedback command (first trigger command) to the master control module in the Mailbox mode, modifies the complex state to be a completion state, and the master control module reads the data processing result from the shared memory and releases the mutual exclusion lock by the master control module at the moment.
Considering that the next data interaction may be performed after the primary control module completes one data interaction, after the primary control module reads the data processing result, the mutual exclusion lock does not need to be released immediately.
When the main control module sends and stores a data processing command, whether the mutual exclusion lock in the shared memory is in an idle state or not needs to be detected, when the mutual exclusion lock is in the idle state, the step of sending and storing the data processing command by the main control module can be executed, and when the mutual exclusion lock is in a non-idle state, the main control module can enter a waiting mode until the mutual exclusion lock is in the idle state, or the thread occupying the mutual exclusion lock can be in the waiting state by preferentially using the mutual exclusion lock. Wherein, considering that the forced offline of the thread occupying the mutual exclusion lock may cause the paralysis of the whole system, as an alternative embodiment of the present invention, the sending and storing the data processing command by the main control module includes:
the main control module detects whether the mutual exclusion lock in the shared memory is in an idle state or not;
if yes, the main control module sends and stores a data processing command;
if not, the main control module enters a waiting mode until the mutual exclusion lock is in an idle state.
Further, after the main control module sends and stores the data processing command, the main control module is in an idle state at this time, so as to avoid power consumption caused by the main control module being in the idle state.
S102: and analyzing the data processing command to obtain the processing parameters corresponding to the data processing command.
Specifically, the processing parameters included in the data processing command include a processing mode of the data, a storage address of a data processing result after the data processing is completed, the data to be processed, and the like.
S103: and processing the data according to the processing parameters to obtain a data processing result.
S104: and sending and storing the data processing result to the shared memory so that the main control module reads the data processing result from the shared memory.
Specifically, in this embodiment, after the data processing result is stored in the shared memory, the inSE security module sends a feedback signal to the main control module, and the main control module receives the feedback signal and then returns the data processing result from the shared memory, where the data processing result includes the success or failure condition of the data processing and the storage address of the processed data.
In the above-mentioned embodiments, after the main control module sends and stores the data processing command, the main control module is in an idle state at this time, so as to avoid power consumption caused by the main control module being in the idle state. After the data processing of the inSE security module is completed, a feedback signal (which can be sent through a Mailbox or interrupt trigger) is sent to the main control module by the inSE security module, and the main control module is converted into a working mode from a sleep mode.
As an alternative embodiment, S104 includes:
the main control module detects whether a first trigger command is received by using a Mailbox;
if yes, the main control module converts the sleep mode into the working mode, and reads the data processing result from the shared memory by using the first trigger command;
wherein, the first trigger command includes: the data processing result is at the memory address of the shared memory.
In order to ensure confidentiality of data, as an alternative embodiment of the present invention, step S104 includes:
and encrypting the data processing result by using an encryption algorithm.
And sending and storing the encrypted data processing result to the shared memory.
Specifically, the encryption algorithm may be determined according to practical situations, and embodiments of the present invention are not limited herein.
In addition, when the data interaction mode between the main control module and the inSE security module is an interrupt trigger mode, the main control module can directly write data processing instructions into the shared memory and inform the inSE security module in an interrupt trigger mode, and after the inSE security module is triggered, the data (corresponding to an interrupt trigger signal) is acquired from the shared memory to perform corresponding calculation, encrypted and stored in the shared memory, so that the confidentiality of the data is ensured. After finishing the data processing, the inSE safety module also informs the main control module of the finishing of the data processing in an interrupt triggering mode, stores the processing result into the shared memory, and the main control module acquires the processing result from the shared memory.
According to the data interaction method based on the InSE security chip disclosed by the first embodiment of the invention, the main control module and the InSE security module are integrated on the same chip to form the InSE security chip in the embodiment of the invention, when the data interaction is carried out between the main control module and the InSE security module of the InSE security chip in the embodiment of the invention, the main control module sends and stores a data processing command to the shared memory through the shared memory, the InSE module obtains the data processing command and analyzes the data processing command to obtain processing parameters, then the processing parameters are utilized to process the data to obtain a data processing result and store the data processing result to the shared memory, and finally the main control module reads the data processing result from the shared memory, so that the data interaction between the main control module and the security control module is completed. Therefore, by adopting the scheme, the data link can be shortened, and the data transmission efficiency is improved; meanwhile, the main control module and the inSE safety module are not in multi-chip communication any more, so that board-level interference is avoided, the error rate during data interaction is reduced, and the reliability of data transmission is improved.
The in SE security module can be in a dormant state when data processing is not needed, so that the problem of high power consumption caused by long-time working mode is avoided. When in a sleep state, the main control module may send a trigger command to switch the in se security module from the sleep mode to the working mode, so the present invention provides a second embodiment, in which the data interaction mode between the main control module and the in se security module is a Mailbox mode, please refer to fig. 3, fig. 3 is a flow chart of a data interaction method based on an in se security chip disclosed in the second embodiment of the present invention, which includes:
s201: detecting whether a second trigger instruction sent by the main control module by using the Mailbox is received or not through the Mailbox, if yes, entering S202; if not, the process advances to S203.
S202: and switching the sleep mode of the device to the working mode.
S203: the sleep mode is maintained.
S101: and acquiring the data processing command sent and stored by the main control module from the shared memory.
S102: and analyzing the data processing command to obtain the processing parameters corresponding to the data processing command.
S103: and processing the data according to the processing parameters to obtain a data processing result.
S104: and sending and storing the data processing result to the shared memory so that the main control module reads the data processing result from the shared memory.
The data interaction method based on the InSE security chip disclosed by the second embodiment of the invention has the beneficial effects of the first embodiment, and avoids the problem of larger power consumption caused by long-time working mode.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data interaction device based on an inSE security chip according to an embodiment of the present invention, where the device includes:
an obtaining module 401, configured to obtain, from the shared memory, a data processing command sent and stored by the main control module;
the parsing module 402 is configured to parse the data processing command to obtain a processing parameter corresponding to the data processing command;
a processing module 403, configured to process the data according to the processing parameters to obtain a data processing result;
the storage module 404 is configured to send and store the data processing result to the shared memory, so that the main control module reads the data processing result from the shared memory.
The embodiment of the invention discloses a data interaction device based on an inSE security chip, wherein a main control module and an inSE security module are integrated on the same chip to form the inSE security chip in the embodiment of the invention. Therefore, by adopting the scheme, the data link can be shortened, and the data transmission efficiency is improved; meanwhile, the main control module and the inSE safety module are not in multi-chip communication any more, so that board-level interference is avoided, the error rate during data interaction is reduced, and the reliability of data transmission is improved.
Based on the above embodiments, as an optional embodiment, further includes:
the detection module is used for detecting whether a second trigger instruction sent by the main control module by using the Mailbox is received or not through the Mailbox; if yes, entering a switching module, and if not, keeping a sleep mode;
and the switching module is used for switching the sleep mode of the switching module into the working mode and executing the step of acquiring the data processing command sent and stored by the main control module from the shared memory.
In addition, the embodiment of the invention also discloses an in se security chip 50, please refer to fig. 5, fig. 5 is a schematic diagram of an in se security chip structure disclosed in the embodiment of the invention, and the in se security chip 50 is integrated with a main control module 501, an in se security module 502 and a shared memory 503;
the shared memory 503 is connected with the main control module 501 and the inSE security module 502 respectively, and is used for storing data processing commands and data processing results;
the inSE security module 502 is configured to perform the steps of:
acquiring a data processing command sent and stored by the main control module 501 from a shared memory of the shared memory 503;
analyzing the data processing command to obtain processing parameters corresponding to the data processing command;
processing the data according to the processing parameters to obtain a data processing result;
transmitting and storing the data processing result to a shared memory;
the main control module 501 is configured to send and store data processing commands to and read data processing results from the shared memory.
The invention discloses an inSE security chip, wherein a main control module and an inSE security module are integrated on the same chip to form the inSE security chip in the embodiment of the invention. Therefore, by adopting the scheme, the data link can be shortened, and the data transmission efficiency is improved; meanwhile, the main control module and the inSE safety module are not in multi-chip communication any more, so that board-level interference is avoided, the error rate during data interaction is reduced, and the reliability of data transmission is improved.
The data interaction method and device based on the inSE security chip provided by the application are described in detail. Specific examples are set forth herein to illustrate the principles and embodiments of the present application, and the description of the examples above is only intended to assist in understanding the methods of the present application and their core ideas. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.

Claims (6)

1. The data interaction method based on the inSE security chip is characterized in that the inSE security chip is integrated with a main control module and an inSE security module, and comprises the following steps:
detecting whether a second trigger instruction sent by the main control module by using the Mailbox is received or not through the Mailbox; if yes, switching the sleep mode of the main control module to a working mode and executing a step of acquiring a data processing command sent and stored by the main control module from a shared memory; if not, maintaining the sleep mode;
acquiring the data processing command sent and stored by the main control module from the shared memory; the main control module and the inSE security module perform data interaction in a Mailbox mode, and correspondingly, the main control module sends and stores the data processing command, which comprises the following steps: the main control module detects whether the mutual exclusion lock in the Mailbox message entity in the shared memory is in an idle state or not; if yes, the main control module sends and stores the data processing command; if not, the main control module enters a waiting mode until the mutual exclusion lock is in the idle state;
analyzing the data processing command to obtain a processing parameter corresponding to the data processing command;
processing the data according to the processing parameters to obtain a data processing result;
the data processing result is sent to and stored in the shared memory, so that the main control module uses the Mailbox to detect whether a first trigger command is received or not; if yes, the main control module converts the sleep mode into the working mode, and reads the data processing result from the shared memory by utilizing the first trigger command; wherein the first trigger command includes: and the data processing result is stored in the storage address of the shared memory.
2. The inSE security chip based data interaction method according to claim 1, further comprising, after the main control module transmits and stores the data processing command:
the main control module switches the working mode of the main control module into a dormant mode.
3. The inSE security chip based data interaction method according to claim 1, further comprising, after the main control module reads the data processing result from the shared memory:
and the master control module releases the mutual exclusion lock at preset time.
4. The method for data interaction based on an inSE security chip according to claim 1, wherein the sending and storing the data processing result to the shared memory comprises:
encrypting the data processing result by using an encryption algorithm;
and sending and storing the encrypted data processing result to the shared memory.
5. A data interaction device based on an inSE security chip, comprising:
the detection module is used for detecting whether a second trigger instruction sent by the main control module by using the Mailbox is received or not through the Mailbox; if yes, entering a switching module, and if not, keeping a sleep mode;
the switching module is used for switching the sleep mode of the switching module into a working mode and executing the step of acquiring the data processing command sent and stored by the main control module from the shared memory;
the acquisition module is used for acquiring the data processing command sent and stored by the main control module from the shared memory; the main control module and the inSE security module perform data interaction in a Mailbox mode, and correspondingly, the main control module sends and stores the data processing command, and the data processing command comprises the following steps: the main control module detects whether the mutual exclusion lock in the Mailbox message entity in the shared memory is in an idle state or not; if yes, the main control module sends and stores the data processing command; if not, the main control module enters a waiting mode until the mutual exclusion lock is in the idle state;
the analysis module is used for analyzing the data processing command to obtain a processing parameter corresponding to the data processing command;
the processing module is used for processing the data according to the processing parameters to obtain a data processing result;
the storage module is used for sending and storing the data processing result to the shared memory so that the main control module uses the Mailbox to detect whether a first trigger command is received or not; if yes, the main control module converts the sleep mode into the working mode, and reads the data processing result from the shared memory by utilizing the first trigger command; wherein the first trigger command includes: and the data processing result is stored in the storage address of the shared memory.
6. An inSE security chip is characterized in that the inSE security chip is integrated with a main control module, an inSE security module and a shared memory;
the shared memory is respectively connected with the main control module and the inSE security module and is used for storing data processing commands and data processing results;
the inSE security module is configured to perform the steps of:
detecting whether a second trigger instruction sent by the main control module by using the Mailbox is received or not through the Mailbox; if yes, switching the sleep mode of the main control module to a working mode and executing a step of acquiring a data processing command sent and stored by the main control module from a shared memory; if not, maintaining the sleep mode;
acquiring the data processing command sent and stored by the main control module from the shared memory of the shared memory; the main control module and the inSE security module perform data interaction in a Mailbox mode, and correspondingly, the main control module sends and stores the data processing command, which comprises the following steps: the main control module detects whether the mutual exclusion lock in the Mailbox message entity in the shared memory is in an idle state or not; if yes, the main control module sends and stores the data processing command; if not, the main control module enters a waiting mode until the mutual exclusion lock is in the idle state;
analyzing the data processing command to obtain a processing parameter corresponding to the data processing command;
processing the data according to the processing parameters to obtain a data processing result;
sending and storing the data processing result to the shared memory;
the main control module is used for sending and storing a data processing command to the shared memory and detecting whether a first trigger command is received or not by using the Mailbox; if yes, converting the sleep mode into the working mode, and reading the data processing result from the shared memory by utilizing the first trigger command; wherein the first trigger command includes: and the data processing result is stored in the storage address of the shared memory.
CN201910133194.5A 2019-02-22 2019-02-22 Data interaction method and device based on InSE security chip Active CN109871281B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910133194.5A CN109871281B (en) 2019-02-22 2019-02-22 Data interaction method and device based on InSE security chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910133194.5A CN109871281B (en) 2019-02-22 2019-02-22 Data interaction method and device based on InSE security chip

Publications (2)

Publication Number Publication Date
CN109871281A CN109871281A (en) 2019-06-11
CN109871281B true CN109871281B (en) 2023-06-06

Family

ID=66919073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910133194.5A Active CN109871281B (en) 2019-02-22 2019-02-22 Data interaction method and device based on InSE security chip

Country Status (1)

Country Link
CN (1) CN109871281B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899545A (en) * 2015-12-18 2017-06-27 联芯科技有限公司 A kind of system and method for terminal security communication
CN108875412A (en) * 2017-05-15 2018-11-23 展讯通信(上海)有限公司 A kind of inSE security module

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9183399B2 (en) * 2013-02-14 2015-11-10 International Business Machines Corporation Instruction set architecture with secure clear instructions for protecting processing unit architected state information
CN103795735B (en) * 2014-03-07 2017-11-07 深圳市迈科龙电子有限公司 Safety means, server and server info safety implementation method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899545A (en) * 2015-12-18 2017-06-27 联芯科技有限公司 A kind of system and method for terminal security communication
CN108875412A (en) * 2017-05-15 2018-11-23 展讯通信(上海)有限公司 A kind of inSE security module

Also Published As

Publication number Publication date
CN109871281A (en) 2019-06-11

Similar Documents

Publication Publication Date Title
US9965014B2 (en) Techniques for tracing wakelock usage
US9135130B2 (en) Debugging method, chip, board, and system
US9459937B2 (en) Method for using shared device in apparatus capable of operating two operating systems
US9552279B2 (en) Data bus network interface module and method therefor
CN110971591B (en) Method and system for multi-process access to trusted application
CN102955474A (en) Measurement control method and system of automobile ECU (electronic control unit)
EP2733613B1 (en) Controller and program
CN113407383A (en) Main/standby system switching method and device, server and main/standby system
CN112350861A (en) Log obtaining method and device, computer equipment and storage medium
CN109257955B (en) Method for operating hard disk and hard disk manager
CN113328927B (en) Industrial Internet of things gateway with calculation, storage and network exchange functions
CN105472377A (en) Television debugging method and apparatus thereof
CN117112474B (en) Universal trusted substrate management method and system
CN104780360A (en) Set top box debugging method and set top box debugging system
CN109871281B (en) Data interaction method and device based on InSE security chip
WO2015117384A1 (en) Method and device for reporting received loss of signal alarm (rxlos)
US20170052521A1 (en) Programmable controller and arithmetic processing system
US20220052902A1 (en) Method for managing remote device through management device
CN114116645A (en) Log management method and device for multi-processing unit, storage medium and electronic equipment
JP2004310514A (en) Information processing terminal and history information saving method
TWI699095B (en) Bluetooth pairing method and electronic system
CN110687854B (en) PA bus controller and PA bus control system
CN114070892A (en) Data transmission method and device
WO2014027223A1 (en) Data bus network interface module and method therefor
CN111953696A (en) Service data interaction method, system, device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant