Access method of storage circuit, terminal device and computer device
By detecting the voltage level of the connection unit and controlling its state switching, the problem of multi-interface access conflict in eSE is solved, achieving efficient access to the storage circuit and improving the user experience.
Patent Information
- Application Number
- CN202111646470.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2041-12-29
AI Technical Summary
In terminal devices, the presence of multiple interfaces for accessing the embedded security element (eSE) may lead to access conflicts.
By detecting the voltage level of the connection unit, the first access module and the second access module control the voltage level of the connection unit to the second voltage level when the voltage level is at the first voltage level, thereby preventing multiple access modules from accessing the storage circuit at the same time.
This effectively avoids access conflicts caused by multiple access modules accessing the storage circuit when it is occupied, thus improving access efficiency and user experience.
Smart Images

Figure CN114296931B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method for accessing a storage circuit, a terminal device, and a computer device. Background Technology
[0002] With the development of communication technology, terminal devices are generally equipped with NFC (Near Field Communication) chips. NFC chips integrate eSE (embedded Secure Element), which can store various types of user data.
[0003] However, eSE can be accessed through multiple interfaces, and simultaneous access to eSE by different interfaces may cause access conflicts. Summary of the Invention
[0004] This application provides a method for accessing a storage circuit, a terminal device, and a computer device, which can avoid access conflicts that may occur when multiple modules access the storage circuit simultaneously.
[0005] A method for accessing a storage circuit is applied to a first access module, the first access module being connected to a second access module via a connection unit. Both the first and second access modules are configured to perform an access operation when the voltage level of the connection unit is detected to be a first voltage level. The access method includes:
[0006] Upon receiving a first request message requesting access to the storage circuit, the voltage level of the connection unit is obtained;
[0007] When the level state is the first level state, an access operation is performed, which includes controlling the level state of the connection unit to the second level state and accessing the storage circuit;
[0008] The second level state is different from the first level state.
[0009] A terminal device, comprising:
[0010] The first access module is connected to the storage circuit.
[0011] The second access module is connected to the storage circuit; wherein:
[0012] The first access module is connected to the second access module via a connection unit; both the first access module and the second access module are used to perform an access operation when the level state of the connection unit is detected to be a first level state.
[0013] The first access module is used to obtain the level state of the connection unit when it receives a first request information requesting access to the storage circuit; when the level state is a first level state, it performs an access operation, the access operation including controlling the level state of the connection unit to a second level state and accessing the storage circuit; the second level state is different from the first level state.
[0014] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the access method as described above.
[0015] The aforementioned storage circuit access method, terminal device, and computer device, wherein the access method is applied to a first access module, which is connected to a second access module via a connection unit. The first and second access modules are used to perform an access operation when the voltage level of the connection unit is detected to be a first voltage level. The access method obtains the voltage level of the connection unit upon receiving a first request to access the storage circuit; when the voltage level is the first voltage level, it performs an access operation, which includes controlling the voltage level of the connection unit to a second voltage level and accessing the storage circuit; wherein the second voltage level is different from the first voltage level. This avoids access conflicts that may occur when multiple access modules access the storage circuit when it is already occupied. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a diagram illustrating the application environment of the access method in one embodiment;
[0018] Figure 2 This is one of the flowcharts for the access method in one embodiment;
[0019] Figure 3 This is the second flowchart of an access method in one embodiment;
[0020] Figure 4 This is the third flowchart of the access method in one embodiment;
[0021] Figure 5 This is the fourth flowchart of an access method in one embodiment;
[0022] Figure 6 This is one of the structural block diagrams of the access device in one embodiment;
[0023] Figure 7 This is a second structural block diagram of the access device in one embodiment;
[0024] Figure 8 This is the third structural block diagram of the access device in one embodiment;
[0025] Figure 9 This is a fourth structural block diagram of the access device in one embodiment;
[0026] Figure 10 This is a structural block diagram of a terminal device in one embodiment. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0028] It is understood that the terms "first," "second," etc., used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of this application, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client. Both the first client and the second client are clients, but they are not the same client.
[0029] Figure 1 This is a schematic diagram illustrating the application environment of a storage circuit access method in one embodiment. For example... Figure 1 As shown, the application environment includes a storage circuit 100, a first access module 200, and a second access module 300. The first access module 200 and the second access module 300 are respectively connected to the storage circuit 100, and the execution entity of the access method can be either the first access module 100 or the second access module 200.
[0030] The storage circuit 100 can store various applications and data for access by the first access module 200 and the second access module 300. The storage circuit can be a secure element, such as an eSE. The eSE can store various types of security applications and user personal data. Security applications can include various bank cards, ID cards, public transport cards, access control cards, phone cards, etc., while user personal data can include various bank card information, ID card information, public transport card information, access control card information, mobile phone information, etc.
[0031] The first access module 200 is connected to the second access module 300 via the connection unit 400. When the first access module 200 and the second access module 300 need to access the storage circuit 100, both the first access module 200 and the second access module 300 determine whether to perform an access operation based on the voltage level of the connection unit 400. Specifically, the first access module 200 and the second access module 300 determine that an access operation can be performed when the voltage level of the connection unit 400 is detected to be at the first voltage level. The number of the first access module 200 and the second access module 300 can be one or more.
[0032] The connection unit 400 is a bidirectional controlled unit, controlled by both the first access module 200 and the second access module 300. Under the control of the first access module 200 and the second access module 300, the connection unit 400 can change its voltage level.
[0033] Optionally, the connection unit 400 can be a bidirectional controlled pin, such as a bidirectional controlled pin (e.g. Figure 2 As shown in Figure 400A (this is just an example and not a limitation), one side of the bidirectional controlled pin is connected to the first access module 200, and the other side is connected to the second access module 300. The operating state and level state of the side of the bidirectional controlled pin connected to the first access module 200 are controlled by the first access module 200, and the operating state and level state of the other side of the bidirectional controlled pin connected to the second access module 300 are controlled by the second access module 300.
[0034] In other embodiments, the connection unit 400 may also be a bidirectional controlled comparison unit or processing unit, and can switch level states under the control of the first access module 200 and the second access module 300. For example, if the connection unit 400 is a bidirectional controlled comparison unit, then when the connection unit 400 is configured as an input state, it can be directly configured with level signals by the first access module 200 and the second access module 300; when configured as an output state, it can switch level states according to preset signals output by the first access module 200 and the second access module 300.
[0035] Optionally, the first access module 200 can be an AP (Application Processor) for executing applications, etc., and can be understood as an application processing module; the second access module 300 can be a Modem (Modem Controller) for implementing communication functions, and can be understood as a communication module. It is understood that the first access module 200 can also be a Modem, and the second access module 300 can also be an AP. Specifically, when the first access module 200 is an AP and the second access module 300 is a Modem, the first access module 200 can be connected to the storage circuit via an SPI interface, and the second access module 300 can be connected to the storage circuit 100 via an ISO interface.
[0036] Optionally, when the first access module 200 accesses the storage circuit 100 as an AP, it can access electronic cards such as bus cards, bank cards, access control cards, and eIDs, along with their related data, through the wallet service program (Wallet_Service). When the second access module 300 accesses the storage circuit 100 as a Modem, it can implement related application services such as eSIM creation, deletion, and authentication within the storage circuit 100 through the communication service program (eSIM_Service).
[0037] Optionally, the first access module 200, the second access module 300, and the connection unit 400 are disposed in a terminal device. The terminal device may be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices may include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices may include smartwatches, smart bracelets, head-mounted devices, etc. Optionally, the storage circuit 100 may be disposed in the same terminal device as the first access module 200, the second access module 300, and the connection unit 400, or it may be disposed in another terminal device.
[0038] Figure 2 This is a flowchart of a memory circuit access method in one embodiment. The access method in this embodiment is designed to operate on... Figure 1 Let's take the first access module in the example as an example. Figure 2 As shown, the access method includes steps 202 to 204.
[0039] Step 202: Upon receiving the first request information requesting access to the storage circuit, obtain the level state of the connection unit.
[0040] The first request information refers to the information sent by the relevant module to the first access module requesting access to the storage circuit, instructing the first access module to access the storage circuit and provide corresponding access information. Optionally, the relevant module generates corresponding first request information based on the user's access needs and sends it to the first access module. The relevant module may be, for example, the touch module of the terminal device, where the user inputs relevant request commands to the touch module, causing the touchscreen to generate the first request information accordingly.
[0041] Optionally, the first request information includes information such as the access type and access content. The access type refers to the storage type being accessed, which may include application management and data read / write. The access content refers to the specific content accessed when accessing a particular storage type, including the specific management type of the application and the specific content of data read / write. The specific management type of the application may be, for example, application services such as downloading, updating, deleting, querying, authenticating, and paying. For example, if the first request information is to query the transaction records of a certain bank card in October 2021, then the corresponding access type is bank card information reading, and the access content could be the transaction records of the certain bank card in October 2021.
[0042] The voltage level of the connection unit can include at least two different voltage levels, such as a first voltage level and a second voltage level, where the first voltage level and the second voltage level are different. For example, the first voltage level may be low and the second voltage level may be high; or the second voltage level may be low and the first voltage level may be high. It is understood that the first voltage level and the second voltage level can also be other voltage levels, as long as they are different.
[0043] Optionally, the voltage level of the connection unit can be obtained by the first access module in binary form. Taking the first voltage level as low and the second voltage level as high as an example, the first low voltage level can be configured to be obtained by the first access module in binary form as "0" and the second low voltage level as binary "1", and the voltage level of the connection unit can be determined by the binary digital form.
[0044] Step 204: When the level state is the first level state, perform an access operation. The access operation includes controlling the level state of the connection unit to the second level state and accessing the storage circuit.
[0045] Both the first and second access modules are configured to perform an access operation when they need to access the storage circuit and determine that the connection unit is in a first-level state. Performing the access operation includes controlling the first-level state to a second-level state while simultaneously accessing the storage circuit. Therefore, in step 204, when the first access module detects that the level state is the first-level state, it can determine that the second access module is not accessing the storage circuit or is in a state of stopping access to the storage circuit, thereby further determining that the storage circuit is not occupied. At this time, the first access module updates the level state of the connection unit and accesses the storage circuit, which not only enables access to the storage circuit but also alerts other access modules that are currently in the access phase, avoiding access conflicts caused by other access modules accessing the storage circuit simultaneously.
[0046] The control of the level state of the connection unit can be achieved by configuring the connection unit's operating state as an input state, allowing direct configuration of the connection unit's level state when it is in an input state; alternatively, it can be configured as an output state, changing the connection unit's level state by outputting a preset signal. Therefore, by first configuring the connection unit's operating state and then further configuring its level state or outputting a preset signal, the connection unit's level state can be updated from a first level state to a second level state.
[0047] Accessing the storage circuit refers to managing applications within the storage circuit and reading / writing the stored data. The first access module manages applications within the storage circuit, including downloading, updating, deleting, querying, authenticating, and making payments. When managing applications, it can query the configuration files of relevant applications in the storage circuit and launch related application services based on the configuration files. The first access module also reads and writes the data stored in the storage circuit, including reading and storing data. For example, if the first request is to query bank card transaction records, then during access, bank card transaction records can be queried from the data list in the storage circuit.
[0048] Optionally, the storage circuit can be configured to include multiple storage areas, each corresponding to different applications and data. When accessing the storage circuit, the target storage area can be determined based on the first request information, so as to perform the corresponding access in the target storage area.
[0049] Optionally, the storage circuit can be configured to include a first storage area accessible only to a first access module and a second storage area accessible only to a second access module, thereby improving the security of the storage circuit. When accessing the storage circuit, the corresponding access can be performed in the first storage area according to the first request information, thereby improving the efficiency of access.
[0050] The access method provided in this embodiment is applied to a first access module, which is connected to a second access module via a connection unit. The first and second access modules perform an access operation when the voltage level of the connection unit is detected to be a first voltage level. The access method obtains the voltage level of the connection unit upon receiving a first request to access the storage circuit; when the voltage level is the first voltage level, it performs an access operation, which includes controlling the voltage level of the connection unit to a second voltage level and accessing the storage circuit; wherein the second voltage level is different from the first voltage level. This avoids the access conflict that may occur when multiple access modules access the storage circuit when it is already occupied.
[0051] In some embodiments, such as Figure 3 As shown, step 204 includes:
[0052] Step 302: When the level state is the first level state, configure the working state of the connection unit to the output state and output a preset signal to the connection unit so that the level state of the connection unit is updated to the second level state and the storage circuit is accessed.
[0053] When the connection unit is configured as an output state by the first access module, it can serve as the output terminal of the first access module, receiving a preset signal output by the internal circuit of the first access module and changing its level state under the influence of the preset signal. It is understood that in other embodiments, when the connection unit is configured as an output state by the second access module, it can serve as the output terminal of the second access module, receiving a preset signal output by the internal circuit of the second access module and changing its level state under the influence of the preset signal.
[0054] The preset signal refers to a signal capable of changing the voltage level of the connection unit. Specifically, the preset signal can switch the operating state of the connection unit from a first voltage level to a second voltage level. The preset signal is set according to the configuration of the first and second voltage levels and the specific type of the connection unit. For example, if the first voltage level is configured as low, the second voltage level as high, and the connection unit is a bidirectional controlled pin, then the preset signal can be a high-level signal output by the first access module, thereby causing the bidirectional controlled pin to switch its voltage level from low to high. It is understood that in other embodiments, if the connection unit is another unit with instruction receiving and processing functions, the preset signal can also be a switching instruction, causing the connection unit to switch its voltage level according to the switching instruction.
[0055] This embodiment updates the level state of the connection unit by configuring the connection unit to an output state and outputting a preset signal to the connection unit, which simplifies the level state control process and improves access efficiency.
[0056] In some embodiments, such as Figure 3 As shown, the access methods also include:
[0057] Step 304: If a preset signal is received from the second access module to the connection unit at the same time as the preset signal is output to the connection unit, the second request information of the second access module to access the storage circuit is obtained.
[0058] The connection unit is a bidirectional controlled unit. The operating state of the side of the connection unit connected to the first access module is controlled by the first access module, and the operating state of the other side of the connection unit connected to the second access module is controlled by the second access module. Therefore, it is possible that both the first and second access modules simultaneously detect that the voltage level of the connection unit is at the first voltage level and simultaneously perform related operations on both sides of the connection unit to access the storage circuit. In this case, when the first access module configures the operating state of one side of the connection unit to the output state and outputs a preset signal, the second access module may also simultaneously configure the operating state of the other side of the connection unit to the output state and output a preset signal. At this time, the first access module can obtain the second request information from the second access module, so as to determine whether to continue access in subsequent steps according to the access priority of the first and second access modules.
[0059] The second request information refers to the information sent by the relevant module to the second access module requesting access to the storage circuit, instructing the second access module to access the storage circuit and provide corresponding access information. Optionally, the relevant module generates corresponding second request information based on the user's access needs and sends it to the second access module. The relevant module may be, for example, the touch module of the terminal device, where the user inputs relevant request instructions to cause the touchscreen to generate the second request information accordingly. Optionally, the second request information includes information such as the access type and access content requested. For details on access type and access content, please refer to the relevant descriptions in the above embodiments, which will not be repeated here.
[0060] Optionally, the first access module and the second access module can access each other to obtain the requested information. For example, an information transmission channel can be set up between the first and second access modules, allowing them to access each other's requested information. This information transmission channel can be a temporary logical channel, for example, it can be set to be established within a preset time period to establish a communication connection between the first and second access modules, such as only during the time period when the first access module needs to request access, or during the time period after the terminal device is powered on. It is understood that the information transmission channel can also be a permanent logical channel, coexisting with the first and second access modules to permanently establish a communication connection between them. By directly querying the second access module to obtain the second requested information, the first access module can reduce time costs, improve access efficiency, and further enhance the user experience.
[0061] Step 306: Determine the priority information in the first request information and the second request information based on the first request information and the second request information.
[0062] The priority information can be request information with higher importance or urgency. After obtaining the second request information, the first and second request information are compared to obtain their priority information. The mechanism for determining importance and urgency can be preset. Optionally, all possible request information can be classified into levels based on the application of the storage circuit and the importance of the data, thereby determining the first request information and its priority information based on the classification. Optionally, a priority list can be preset, and the priority information of the first and second request information can be determined based on their ranking in the priority list.
[0063] For example, the first request is for paying with a bus card, and the second request is for updating the bus card's transaction records at 9:00 PM every day. If the two requests are received by the first access module and the second access module at 9:00 PM respectively, then the first access module and the second access module need to access the storage circuit simultaneously. Relative to the user, the first request for paying with a bus card can be considered a request with a higher degree of urgency, so the first request can be determined as priority information.
[0064] Step 308: When the first request information is priority information, continue to output a preset signal to the connection unit and access the storage circuit.
[0065] When the first request information is priority information, the first access module continues to initiate the relevant steps for accessing the memory circuit. Simultaneously, the second access module can actively or passively learn that the first access module is in an access state. For example, the second access module also executes steps 304-308, thus also determining that the first request information is priority information and maintaining the current request state. For example, simultaneously with step 308, the first access module can send relevant indication information indicating that the first request information is priority information to the second access module, instructing the second access module to maintain the current request state.
[0066] By determining the priority information and initiating the relevant operations to access the storage circuit when the first request information is determined to be the priority information, access conflicts that may occur when multiple modules access the storage circuit at the same time can be avoided.
[0067] In some embodiments, such as Figure 3 As shown, the access methods also include:
[0068] Step 310: When the second request information is priority information, stop the output of the preset signal and reacquire the level state of the connection unit.
[0069] When the second request information is priority information, the first access module maintains the current request state. While maintaining the current request state, the second access module can also execute steps 304-310. Therefore, the second request information is also determined to be priority information and the relevant operation of accessing the storage circuit is started. At this time, the access conflict that may occur if the first access module and the second access module access the storage circuit at the same time can still be avoided.
[0070] In some embodiments, the first access module and the second access module are respectively connected to a random timing module. When the random timing module receives a random timing instruction, it outputs a first timing instruction to the first access module to instruct the first access module to access the storage circuit at a first random time, and outputs a second timing instruction to the second access module to instruct the second access module to access the storage circuit at a second random time. The first random time and the second random time are different. Figure 4 As shown, the access methods also include:
[0071] Step 312: If a preset signal is received from the second access module at the same time as the preset signal is output to the connection unit, a random timing command is sent to the random timing module.
[0072] When the first access module and the second access module simultaneously detect that the level state of the connection unit is the first level state and simultaneously perform related operations to access the storage circuit on both sides of the connection unit, the first access module can send a random timing instruction to the random timing module to trigger the random timing module to feed back the first timing instruction and the second timing instruction to the first access module and the second access module respectively, so that the first access module and the second access module access the storage circuit at different random times to avoid access conflicts.
[0073] Step 314: Receive the first timing instruction fed back by the random timing module, continue to output a preset signal to the connection unit at the first random time according to the first timing instruction, and access the storage circuit.
[0074] The first timing instruction includes a first random time to initiate access and a first duration of random access; the second timing instruction includes a second random time to initiate access and a second duration of random access. The first and second random times are different, and the first and second durations can be the same or different. Optionally, the time interval between the first and second random times is set to be greater than both the first and second durations. This ensures that the access process does not overlap after access is initiated at different random times, further ensuring that the first and second access modules access the storage circuit at different time periods.
[0075] Therefore, when the first access module receives the first timing instruction from the random timing module, it continues to output a preset signal to the connection unit at a first random moment to change the level state of the connection unit, and simultaneously accesses the storage circuit. This avoids simultaneous access to the storage circuit with the second access module, thus preventing access conflicts.
[0076] In some embodiments, the access method further includes:
[0077] Step 402: When the access to the storage circuit ends, the working state of the connection unit is configured to the input state and the level state of the connection unit is configured to the first level state; wherein, the level state priority in the output state is higher than the level state priority in the input state.
[0078] When the connection unit is configured as an input by the first access module, it can serve as an input terminal of the first access module, and the level state of the connection unit can be directly configured by the first access module. Optionally, when the connection unit is configured as an input, taking a high level as an example, the first access module can directly pull the level state of the connection unit to a high level through an internally set pull-up unit, such as a pull-up resistor; taking a low level as an example, the first access module can directly pull the level state of the connection unit to a low level through an internally set pull-down unit, such as a pull-down resistor.
[0079] More specifically, taking a connection unit as a bidirectional controlled pin, a first level state as low level, and a second level state as high level as an example, when the first access module detects that the level state of the bidirectional controlled pin is low level, it controls the low level to high level and writes or reads data to the storage circuit at the same time. After the data writing or reading is completed, it pulls the level state of the bidirectional controlled pin low.
[0080] It is understood that in other embodiments, when the connection unit is configured as an input state by the second access module, the level state of the connection unit can be directly configured by the second access module as an input terminal of the second access module.
[0081] Specifically, when access to the storage circuit ends, the working state of the connection unit is configured to the input state and the level state of the connection unit is configured to the first level state. This can prompt other access modules that the current access is stopped, so that other access modules can determine that the storage circuit is in an idle state and is not occupied.
[0082] In this case, the level state priority in the output state is higher than that in the input state. Since the connection unit is a bidirectional controlled unit, its working state can be controlled by both the first access module and the second access module at the same time. Therefore, there may be a situation where the first access module and the second access module control the connection unit at the same time. When one side of the connection unit is controlled by the first access module to be in the input state and configured with the first level state, while the other side is controlled by the second access module to be in the output state and outputs a preset signal to make the level state the second level state, since the level state priority in the output state is higher than that in the input state, the connection unit will ultimately present the level state of the output state side, and no configuration conflict will occur.
[0083] The following further explains why the level priority is higher in the output state than in the input state:
[0084] When the connection unit is configured as an input, the level obtained by pulling up or pulling down is relatively weak, only maintaining a stable level. However, in the output state, the driving capability is stronger, and it is easier to control the connection unit to the output state level through preset signals. For example, if the bidirectional controlled pin is configured as a pull-up pin by the AP to change the level state to a high level, but the other side is output as a low level by the Modem, then the pin will eventually present a low level state.
[0085] Optionally, since the priority of the level state is lower in the input state than in the output state, the default configuration of the connection unit can be set to the input state so that the connection unit can be directly switched to the output state when it is necessary to start the relevant operation of accessing the memory circuit.
[0086] In some embodiments, the access method further includes:
[0087] Step 404: When the level state is the second level state, maintain the current request state until the second level state is updated to the first level state.
[0088] Specifically, when the access level is in the second level state, the second access module is accessing the storage circuit, and the storage circuit is occupied. At this time, the first access module maintains its current request state to restrict its own access to the storage circuit. Until the second level state is updated to the first level state, the second access module is in a state of stopping access to the storage circuit, and the storage circuit is no longer occupied. At this point, it can return to step 204 to initiate the relevant operations for accessing the storage circuit. This avoids the access conflict caused by the first and second access modules accessing the storage circuit simultaneously.
[0089] In other embodiments, when the level state is the second level state, no operation may be performed until the second level state is updated to the first level state, and then the relevant operation for accessing the memory circuit may be directly initiated.
[0090] In some embodiments, the first access module is configured with a service program; such as Figure 5 As shown, the access methods also include:
[0091] Step 502: When the level state is the second level state, start the service program so that the service program generates a notification message when it detects that the second level state has been updated to the first level state.
[0092] When the voltage level is in the second voltage level state, the first access module can determine that the storage circuit is occupied, and at this time, it starts the service program. The service program has the function of monitoring the voltage level state and generating corresponding notification information when the voltage level state is updated, so as to quickly notify the first access module to start the relevant operations to access the storage circuit.
[0093] Step 504: Upon receiving the notification information, control the connection unit to the second level state and access the storage circuit.
[0094] Upon receiving a notification message, the first access module can quickly determine that the current storage circuit is not occupied and initiate the relevant steps to access the storage circuit, thereby improving access efficiency and user experience.
[0095] In other embodiments, the above-described service program can be configured to have only monitoring and notification functions, or it can be configured to simultaneously have access functions so that when the second level state is detected to be updated to the first level state, the service program can directly control the level state of the connection unit to the second level state and access the storage circuit.
[0096] It should be understood that, although Figures 2-5 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figures 2-5 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0097] Figure 6 This is a structural block diagram of an access device for a memory circuit according to one embodiment. The access device in this embodiment is designed to operate in... Figure 1 Taking the first access module in the example, it is used to execute Figure 2 The relevant steps of the illustrated embodiment. For example... Figure 6 As shown, the access device includes:
[0098] The status acquisition module 602 is used to acquire the level status of the connection unit when it receives the first request information requesting access to the storage circuit.
[0099] The first access module 604 is configured to perform an access operation when the voltage level is in a first voltage level state. The access operation includes controlling the voltage level of the connection unit to a second voltage level state and accessing the storage circuit. The second voltage level state is different from the first voltage level state.
[0100] The status acquisition module 602 and the first access module 604 can be found in the relevant descriptions of the steps in the above embodiments, and will not be repeated here.
[0101] The access device provided in this embodiment is applied to a first access module, which is connected to a second access module via a connection unit. The first and second access modules perform an access operation when the connection unit's voltage level is detected to be a first voltage level. The access device obtains the voltage level of the connection unit upon receiving a first request to access the storage circuit; when the voltage level is the first voltage level, it performs an access operation, which includes controlling the connection unit's voltage level to a second voltage level and accessing the storage circuit; wherein the second voltage level is different from the first voltage level. This avoids access conflicts that may occur when multiple access modules access the storage circuit when it is already occupied.
[0102] In some embodiments, such as Figure 7 As shown, the access device also includes:
[0103] The request information acquisition module 702 is used to acquire the second request information of the second access module requesting access to the storage circuit if it receives a preset signal output by the second access module to the connection unit at the same time as outputting a preset signal to the connection unit.
[0104] The priority determination module 704 is used to determine the priority information in the first request information and the second request information based on the first request information and the second request information.
[0105] The continued access module 706 is used to continue outputting a preset signal to the connection unit and accessing the storage circuit when the first request information is priority information.
[0106] The stop access module 708 is used to stop the output of the preset signal and reacquire the level state of the connection unit when the second request information is priority information.
[0107] In some embodiments, such as Figure 8 As shown, the access device also includes:
[0108] The random timing request module 802 is used to send a random timing command to the random timing module if it receives a preset signal output by the second access module to the connection unit at the same time as outputting a preset signal to the connection unit.
[0109] The random timing access module 804 is used to receive the first timing instruction fed back by the random timing module, continue to output a preset signal to the connection unit at a first random time according to the first timing instruction, and access the storage circuit.
[0110] In some embodiments, the access device further includes:
[0111] The level state update module is used to configure the working state of the connection unit to the input state and configure the level state of the connection unit to the first level state when the access to the storage circuit ends; wherein, the level state priority in the output state is higher than the level state priority in the input state.
[0112] In some embodiments, the access device further includes:
[0113] The first holding module is used to maintain the current request state when the level state is the second level state, until the second level state is updated to the first level state.
[0114] In some embodiments, such as Figure 9 As shown, the access device also includes:
[0115] The program startup module 902 is used to start the service program when the level state is the second level state, so that the service program generates a notification message when it detects that the second level state has been updated to the first level state.
[0116] The second access module 904 is used to control the level state of the connection unit to the second level state and access the storage circuit when receiving notification information.
[0117] The division of the various modules in the above-described access device is merely for illustrative purposes. In other embodiments, the access device may be divided into different modules as needed to complete all or part of the functions of the above-described access device.
[0118] For specific limitations regarding the access device, please refer to the limitations on the access method above, which will not be repeated here. Each module in the aforementioned access device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware within or independently of the processor in the computer device, or stored in software within the memory of the computer device, so that the processor can invoke and execute the operations corresponding to each module.
[0119] The various modules in the access device provided in this application embodiment can be implemented in the form of a computer program. This computer program can run on a terminal or server. The program modules constituted by this computer program can be stored in the memory of an electronic device. When the computer program is executed by a processor, it implements the steps of the method described in the embodiments of this application.
[0120] This embodiment also provides a terminal device, such as Figure 10 As shown, the terminal device 10 includes:
[0121] The first access module 200 is connected to the storage circuit 100; the second access module 300 is connected to the storage circuit 100; wherein:
[0122] The first access module 200 is connected to the second access module 300 via the connection unit 400; the first access module 200 and the second access module 300 are used to perform an access operation when the level state of the connection unit 400 is detected to be the first level state.
[0123] The first access module 200 is used to obtain the level state of the connection unit 400 when it receives a first request information requesting access to the storage circuit 100; when the level state is the first level state, it performs an access operation, which includes controlling the level state of the connection unit 400 to the second level state and accessing the storage circuit 100; the second level state is different from the first level state.
[0124] The storage circuit 100 can be located inside or outside the terminal device 10. Figure 8 Taking the storage circuit 100 as an example where it is located inside the terminal device 10. The relevant descriptions of the storage circuit 100, the first access module 200, the second access module 300, and the connection unit 400 are as described in the above embodiments and will not be repeated here.
[0125] Optionally, the connection unit 400 is a bidirectional controlled pin, which is connected to the first access module 200 and the second access module 300 respectively. For a description of the bidirectional controlled pin, please refer to the relevant descriptions in the above embodiments, and they will not be repeated here.
[0126] The following example uses the first access module 200 as the access point (AP), the second access module 300 as the modem, and the connection unit 400 as a bidirectional controlled pin with the first level being high and the second level being low. Figure 10 Further explanation from the examples:
[0127] When the AP needs to access eSE, it detects the level of the pin. When the pin is high, it configures the pin as an output and outputs a low level while accessing eSE. After accessing eSE, it configures the pin as an input and pulls it up internally.
[0128] When the AP needs to access the eSE, it detects the level state of the pin. When the pin state is low, the pin is pulled low by the Modem side. At this time, the Modem is accessing the eSE, and the AP waits until it detects that the pin level state has been updated to high.
[0129] In the terminal device provided in this embodiment, a first access module 200 is connected to a second access module 300 via a connection unit 400. The first access module 200 and the second access module 300 are used to perform an access operation when the voltage level of the connection unit 400 is detected to be a first voltage level. The first access module 200 obtains the voltage level of the connection unit 400 upon receiving a first request to access the storage circuit 100; when the voltage level is the first voltage level, it performs an access operation, which includes controlling the voltage level of the connection unit 400 to a second voltage level and accessing the storage circuit 100; wherein the second voltage level is different from the first voltage level. Therefore, the problem of access conflicts that may occur when multiple access modules access the storage circuit 100 when it is already occupied can be avoided.
[0130] This application also provides a computer device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the access method as described in the above embodiments.
[0131] This application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, cause the processors to perform the steps of the access method described in the above embodiments.
[0132] Any references to memory, storage, databases, or other media used in this application may include non-volatile and / or volatile memory. Non-volatile memory may include ROM (Read-Only Memory), PROM (Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), or flash memory. Volatile memory may include RAM (Random Access Memory), which is used as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as SRAM (Static Random Access Memory), DRAM (Dynamic Random Access Memory), SDRAM (Synchronous Dynamic Random Access Memory), Double Data Rate DDR SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory), ESDRAM (Enhanced Synchronous Dynamic Random Access Memory), SLDRAM (Sync Link Dynamic Random Access Memory), RDRAM (Rambus Dynamic Random Access Memory), and DRDRAM (Direct Rambus Dynamic Random Access Memory).
[0133] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for accessing a storage circuit, applied to a first access module, characterized in that, The first access module is connected to the second access module via a connection unit. Both the first and second access modules are used to perform an access operation when the connection unit's voltage level is detected to be at a first voltage level. The access paths between the first access module and the storage circuit, and between the second access module and the storage circuit, do not pass through the connection unit. The access method includes: Upon receiving a first request message requesting access to the storage circuit, the voltage level of the connection unit is obtained; When the level state is the first level state, an access operation is performed, which includes controlling the level state of the connection unit to the second level state and accessing the storage circuit; The connection unit is a bidirectional controlled unit. Under the control of the first access module and the second access module, the connection unit switches its level state. The second level state is different from the first level state. The control of the level state of the connection unit by the first access module and the second access module includes: configuring the working state of the connection unit as an input state, so as to configure the level state of the connection unit when the connection unit is in the input state; or, configuring the working state of the connection unit as an output state, and outputting a preset signal to the connection unit to change the level state of the connection unit.
2. The access method according to claim 1, characterized in that, The control of the connection unit to a second level state includes: Configure the working state of the connection unit to the output state and output a preset signal to the connection unit so that the level state of the connection unit is updated to the second level state.
3. The access method according to claim 2, characterized in that, The access method also includes: When access to the storage circuit ends, the operating state of the connection unit is configured to the input state and the level state of the connection unit is configured to the first level state. In this context, the priority of the level state during the output state is higher than the priority of the level state during the input state.
4. The access method according to claim 2, characterized in that, The access method also includes: If, at the same time as outputting the preset signal to the connection unit, the preset signal output by the second access module to the connection unit is received, the second request information of the second access module requesting access to the storage circuit is obtained; Determine the priority information in the first request information and the second request information based on the first request information and the second request information; When the first request information is priority information, the preset signal continues to be output to the connection unit, and the storage circuit is accessed.
5. The access method according to claim 2, characterized in that, The first access module and the second access module are respectively connected to a random timing module. Upon receiving a random timing instruction, the random timing module outputs a first timing instruction to the first access module to instruct the first access module to access the storage circuit at a first random time, and outputs a second timing instruction to the second access module to instruct the second access module to access the storage circuit at a second random time. The first random time and the second random time are different. The access method further includes: If, at the same time as outputting the preset signal to the connection unit, the preset signal is received from the second access module to the connection unit, a random timing command is sent to the random timing module; The system receives the first timing instruction from the random timing module, continues to output a preset signal to the connection unit at the first random time according to the first timing instruction, and accesses the storage circuit.
6. The access method according to claim 1, characterized in that, The access method also includes: When the level state is the second level state, the current request state is maintained until the second level state is updated to the first level state.
7. The access method according to claim 1, characterized in that, The first access module is configured with a service program; the access method further includes: When the level state is the second level state, the service program is started so that the service program generates a notification message when it detects that the second level state has been updated to the first level state; Upon receiving the notification information, the connection unit's voltage level is controlled to the second voltage level, and the storage circuit is accessed.
8. A terminal device, characterized in that, include: The first access module is connected to the storage circuit. The second access module is connected to the storage circuit; wherein: The first access module is connected to the second access module via a connection unit; the first access module and the second access module are used to perform an access operation when the level state of the connection unit is detected to be a first level state; the access path between the first access module and the storage circuit, and the access path between the second access module and the storage circuit, do not pass through the connection unit. The first access module is used to obtain the level state of the connection unit when it receives a first request information requesting access to the storage circuit; when the level state is a first level state, it performs an access operation, the access operation including controlling the level state of the connection unit to a second level state and accessing the storage circuit; The connection unit is a bidirectional controlled unit. Under the control of the first access module and the second access module, the connection unit switches its level state. The second level state is different from the first level state. The control of the level state of the connection unit by the first access module and the second access module includes: configuring the working state of the connection unit as an input state, so as to configure the level state of the connection unit when the connection unit is in the input state; or, configuring the working state of the connection unit as an output state, and outputting a preset signal to the connection unit to change the level state of the connection unit.
9. The terminal device according to claim 8, characterized in that, The connection unit is a bidirectional controlled pin, which is connected to the first access module and the second access module respectively.
10. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the computer program is executed by the processor, it causes the processor to perform the steps of the access method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Bus access arbitration device and method
CN110875867A
Method of managing priority in the context, electronic device and communication system
CN111586651A
Method and apparatus for resource arbitration
US7039737B1