Simulated access control card control method and device, electronic equipment and storage medium

By obtaining the time information and attitude information in the near-field communication between the terminal and the access control device, and automatically selecting the matching analog access control card, it solves the problem of inconvenient operation when the terminal sets up multiple analog access control cards, and improves the convenience of NFC card swiping.

CN119720471APending Publication Date: 2025-03-28SHANGHAI WINGTECH INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411332017.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

When multiple analog access control cards are installed at the terminal, users need to manually select the analog access control card, which is inconvenient to operate, especially when switching the card swiping location, they cannot swipe the card successfully in one go.

Method used

By responding to the near-field communication between the terminal and the access control device, the current time information and/or the current terminal attitude information are obtained, the preset relationship is queried, and the target simulated access control card matching the current time information and/or the terminal attitude information is automatically determined from multiple simulated access control cards, and the simulated access control card and the access control device are unlocked and authenticated.

Benefits of technology

It realizes that the simulated access control card currently used is automatically selected when swiping a card at the terminal, without the user's manual selection, which improves the operation convenience of NFC card swiping and solves the problem that the card swiping location cannot be swiped successfully in one go.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119720471A_ABST
    Figure CN119720471A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent terminals, and provides a control method and device for simulating an access control card, electronic equipment and a storage medium, and the method comprises the following steps: responding to near field communication between a terminal and access control equipment, and obtaining current time information and / or current terminal attitude information; querying a preset relationship according to the current time information and / or the current terminal attitude information, so as to determine a target simulation access control card matched with the current time information and / or the current terminal attitude information from a plurality of preset simulation access control cards; wherein the preset relationship comprises a first corresponding relationship between the time information and the simulated access control card, and a second corresponding relationship between the terminal posture information and the simulated access control card; and performing unlocking authentication processing through the target simulation access control card and the access control equipment so as to open the access control equipment. By adopting the method, the convenience of swiping the simulated access control card by the user can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of intelligent terminals, and in particular to a control method, device, electronic device and storage medium for simulating access control cards. Background Art

[0002] NFC (Near Field Communication) is a short-range wireless communication technology that enables secure and fast communication between mobile devices, smart cards and access control cards. Using NFC technology, access control cards can be simulated. As the frequency of access control cards increases, users no longer need to carry multiple access control cards with them. They only need one terminal to easily open multiple access control cards.

[0003] Currently, the terminal is equipped with multiple simulated access control cards. When opening the access control, the user needs to manually select the corresponding simulated access control card in the access control card application interface, which is not convenient enough. Summary of the invention

[0004] Based on this, it is necessary to provide a control method, device, electronic device and storage medium for simulating access control cards to address the above technical problems.

[0005] In a first aspect, an embodiment of the present disclosure provides a control method for simulating an access control card, comprising:

[0006] In response to near field communication between the terminal and the access control device, obtaining current time information and / or current terminal posture information;

[0007] Querying a preset relationship according to the current time information and / or the current terminal posture information to determine a target simulated access control card that matches the current time information and / or the current terminal posture information from a plurality of preset simulated access control cards; wherein the preset relationship includes a first corresponding relationship between the time information and the simulated access control card, and a second corresponding relationship between the terminal posture information and the simulated access control card;

[0008] The target simulated access control card is used to perform unlocking authentication processing with the access control device to open the access control device.

[0009] In a second aspect, an embodiment of the present disclosure provides a control device for simulating an access control card, comprising:

[0010] An acquisition module, configured to acquire current time information and / or current terminal posture information in response to near field communication between the terminal and the access control device;

[0011] A determination module, configured to query a preset relationship according to the current time information and / or the current terminal posture information, so as to determine a target simulated access control card that matches the current time information and / or the current terminal posture information from a plurality of preset simulated access control cards; wherein the preset relationship includes a first corresponding relationship between the time information and the simulated access control card, and a second corresponding relationship between the terminal posture information and the simulated access control card;

[0012] The authentication module is used to perform unlocking authentication processing with the access control device through the target simulated access control card to open the access control device.

[0013] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the control method of the simulated access control card described in the first aspect above.

[0014] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the control method for the simulated access control card described in the first aspect above is implemented.

[0015] Compared with the prior art, the technical solution provided by the disclosed embodiment has the following advantages: in response to the near field communication between the terminal and the access control device, the current time information and / or the current terminal posture information are obtained, and the target simulated access control card that matches the current time information and / or the current terminal posture information is determined from the preset multiple simulated access control cards, and then the target simulated access control card and the access control device are used to perform unlocking authentication processing to open the access control device. Thus, the currently used simulated access control card can be automatically selected from multiple simulated access control cards according to the current time and terminal posture when the terminal swipes the card, without the user having to manually select the simulated access control card every time the card swiping location is switched, which solves the problem that when the terminal is provided with multiple access control simulated access control cards, the card cannot be swiped successfully at one time after the card swiping location is switched, and improves the convenience of NFC card swiping operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0018] Figure 1A flow chart of a control method for simulating an access control card provided by an embodiment of the present disclosure;

[0019] Figure 2 A schematic diagram of a terminal posture provided by an embodiment of the present disclosure;

[0020] Figure 3 A schematic diagram of a process for determining a target simulated access card provided by an embodiment of the present disclosure;

[0021] Figure 4 A business process diagram provided by an embodiment of the present disclosure;

[0022] Figure 5 A schematic diagram of the structure of a control device for simulating an access control card provided in an embodiment of the present disclosure;

[0023] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present disclosure more clear, the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not used to limit the present disclosure.

[0025] In one embodiment, Figure 1 As shown, a control method for simulating an access control card is provided, the method comprising the following steps:

[0026] Step 102: In response to near field communication between the terminal and the access control device, obtain current time information and / or current terminal posture information.

[0027] In this embodiment, the terminal is provided with multiple simulated access control cards, which are used to simulate physical access control cards and communicate and interact with access control devices to open corresponding access control devices. Multiple simulated access control cards correspond to multiple access control devices one by one. As an example, the terminal can be a mobile terminal such as a smart phone, and the access control devices include access control devices of a company, access control devices of a community gate, access control devices of a community garage, etc.

[0028] The steps for setting up a simulated access card include: turning on the NFC (Near Field Communication) function of the terminal and turning on the card reader mode; placing the physical access card next to the terminal so that the distance between the physical access card and the terminal device is within the effective range of NFC; the terminal establishes a communication connection with the physical access card through the NFC protocol and reads the access card information in the physical access card; the terminal processes the read access card information, identifies the access card type and sector and further parses it; the terminal stores the parsed data locally and generates a simulated access card corresponding to the physical access card.

[0029] In this embodiment, when the user interacts with the access control device through the simulated access card of the terminal to open the access control, the current time information and / or the current terminal posture information is obtained. Optionally, the terminal is provided with a simulated access card application, and when the user needs to open the access control device through the simulated access card, the simulated access card application is opened, and when in the application interface of the simulated access card application, the terminal obtains the current time information and / or the current terminal posture information; or, when the terminal turns on the NFC function, the terminal obtains the current time information and / or the current terminal posture information.

[0030] Among them, the current time information can be the time period of the current moment. For example, the time when the user uses the terminal to swipe the card with the access control device is 8:30, and the time span of the time period is set to one hour, then the current time information is the time period from 8 to 9 o'clock.

[0031] The current terminal posture information indicates the current spatial posture of the terminal. The spatial posture of the terminal includes but is not limited to vertical placement, inverted placement, horizontal placement, etc. Figure 2 As shown, schematic diagrams of the terminal's spatial postures of vertical, inverted, and horizontal are shown in sequence to indicate the position of the terminal when swiping a card. As an example, the terminal is provided with a gravity sensor (also called an acceleration sensor), which detects the inclination and movement of the terminal by detecting the acceleration of an object in the x, y, and z directions to obtain the terminal's spatial posture.

[0032] Step 104, querying a preset relationship according to the current time information and / or the current terminal posture information to determine a target simulated access control card that matches the current time information and / or the current terminal posture information from a plurality of preset simulated access control cards.

[0033] In this embodiment, the preset relationship includes a first corresponding relationship between time information and a simulated access control card, and a second corresponding relationship between terminal posture information and the simulated access control card. Optionally, after pre-setting multiple simulated access control cards in the terminal, the time information and / or terminal posture information corresponding to each simulated access control card is configured.

[0034] Among them, a simulated access control card can be configured with only the corresponding time information or the terminal posture information, or can be configured with the corresponding time information and the terminal posture information at the same time.

[0035] As an example, the simulated access control card is simulated access control card 1 for the company's access control device, simulated access control card 2 for the community gate access control device, and simulated access control card 3 for the community garage access control device. The time information corresponding to the configuration of simulated access control card 1 is the time period from 8 to 9 o'clock, the time information corresponding to the configuration of simulated access control card 2 is the time period from 18 to 19 o'clock, and the time information corresponding to the configuration of simulated access control card 3 is the time period from 8 to 9 o'clock and the time period from 18 to 19 o'clock. In this example, the user can determine the simulated access control card to be used in a specific time period based on the work and rest routine, and actively set the time information corresponding to each simulated access control card slot. When it is within the time range represented by the time information, the corresponding simulated access control card can be automatically called without the user manually selecting the simulated access control card.

[0036] As another example, the terminal posture information corresponding to the configuration of simulated access card 1 is vertical placement, the terminal posture information corresponding to the configuration of simulated access card 2 is inverted placement, and the terminal posture information corresponding to the configuration of simulated access card 3 is horizontal placement. In this example, the terminal posture information includes but is not limited to vertical placement, inverted placement, left horizontal placement, right horizontal placement, supine position, lying position, etc. The user can actively set the terminal posture information corresponding to each simulated access card slot. If the terminal is in this terminal posture information, the corresponding simulated access card can be automatically called without the user manually selecting the simulated access card.

[0037] Furthermore, during the application process, the terminal queries the preset relationship based on the current time information and / or the current terminal posture information, determines the simulated access control card that matches the current time information and / or the current terminal posture information from multiple simulated access control cards, and uses the matching simulated access control card as the target simulated access control card currently in use.

[0038] The following describes how to determine a target simulated access control card that matches the current time information and / or the current terminal posture information from a plurality of preset simulated access control cards.

[0039] In one embodiment of the present disclosure, Figure 3 As shown, querying a preset relationship according to current time information and / or current terminal posture information to determine a target simulated access card that matches the current time information and / or current terminal posture information from a plurality of preset simulated access cards includes the following steps:

[0040] Step 302, query the preset relationship according to the current time information and / or the current terminal posture information to determine the first simulated access control card that matches the current time information from the preset multiple simulated access control cards, and / or determine the second simulated access control card that matches the current terminal posture information from the preset multiple simulated access control cards.

[0041] Step 304: If the first simulated access card and the second simulated access card are matched at the same time, the priority between the time information and the terminal posture information is obtained, and the target simulated access card is determined from the first simulated access card and the second simulated access card according to the priority.

[0042] Step 306: If one of the first simulated access control card and the second simulated access control card is matched, the matched first simulated access control card or the second simulated access control card is determined as a target simulated access control card.

[0043] Among them, the priority can be set to that the terminal posture information takes precedence over the time information. As an example, in response to the near-field communication between the terminal and the access control device, the first simulated access control card that matches the current time information is card A, and the second simulated access control card that matches the current terminal posture information is card B. According to the priority, card B is used as the target simulated access control card, and the currently used simulated access control card is switched to card B; the first simulated access control card that matches the current time information is card A, and the current terminal posture information does not match the second simulated access control card, and card A is used as the target simulated access control card, and the currently used simulated access control card is switched to card A; the current time information does not match the first simulated access control card, and the second simulated access control card that matches the current terminal posture information is card B, and card B is used as the target simulated access control card, and the currently used simulated access control card is switched to card B. Therefore, when the user uses the terminal to open the access control device, the corresponding simulated access control card can be automatically called according to the current card swiping time, and / or the corresponding simulated access control card can be automatically called by adjusting the terminal's placement posture when swiping the card, without manually selecting the simulated access control card in the application interface, thereby improving the convenience of card swiping.

[0044] In one embodiment of the present disclosure, a preset relationship is queried according to current time information and / or current terminal posture information to determine a target simulated access control card that matches the current time information and / or current terminal posture information from a plurality of preset simulated access control cards, including: querying a preset relationship according to current time information and / or current terminal posture information to determine a third simulated access control card that matches the current time information from a plurality of preset simulated access control cards, and determining a fourth simulated access control card that matches the current terminal posture information from a plurality of preset simulated access control cards; obtaining first identification information of each third simulated access control card and second identification information of each fourth simulated access control card; if there are multiple third simulated access control cards, determining the third simulated access control card whose first identification information is the same as the second identification information as the target simulated access control card; if there are multiple fourth simulated access control cards, determining the fourth simulated access control card whose second identification information is the same as the first identification information as the target simulated access control card.

[0045] Among them, in the preset relationship, the same time information can correspond to multiple simulated access control cards, and the same terminal posture information can also correspond to multiple simulated access control cards. For example, simulated access control card 2 used for the access control device of the community gate and simulated access control card 3 used for the access control device of the community garage both correspond to the time period from 18:00 to 19:00.

[0046] As an example, in response to the near field communication between the terminal and the access control device, the third simulated access control card matching the current time information is card A and card B, and the fourth simulated access control card matching the current terminal posture information is card B. According to the identification information, card B is determined as the target simulated access control card, and the currently used simulated access control card is switched to card B; the third simulated access control card matching the current time information is card B, and the fourth simulated access control card matching the current terminal posture information is card B and card C. According to the identification information, card B is determined as the target simulated access control card, and the currently used simulated access control card is switched to card B; the third simulated access control card matching the current time information is card A and card B, and the fourth simulated access control card matching the current terminal posture information is card B and card C. According to the identification information, card B is determined as the target simulated access control card, and the currently used simulated access control card is switched to card B. As a result, when the user uses the terminal to open the access control device, the corresponding simulated access control card can be automatically called by the current card swiping time and the terminal placement posture when adjusting the card swiping, without manually selecting the simulated access control card in the application interface, thereby improving the convenience of card swiping.

[0047] In one embodiment of the present disclosure, after querying the preset relationship based on the current time information and / or the current terminal posture information, if the target simulated access control card that matches the current time information and / or the current terminal posture information is not queried, the simulated access control card used for the last near-field communication is obtained, and the simulated access control card used for the last near-field communication is determined as the target simulated access control card.

[0048] As an example, a business process diagram such as Figure 4 As shown, a first correspondence between each simulated access control card and time information, and a second correspondence between each simulated access control card and terminal posture information are pre-set, and then, the current time information and the current terminal posture information are obtained during the application process. If the current time information matches card A and the current terminal posture information matches card B, card B with a higher priority is selected as the target simulated access control card currently in use. If only one simulated access control card is matched, the matched simulated access control card is used as the target simulated access control card currently in use. If neither the current time information nor the current terminal posture information matches the corresponding simulated access control card, the simulated access control card used when the card was swiped last time is used as the target simulated access control card currently in use.

[0049] Step 106, performing unlocking authentication processing with the access control device through the target simulated access control card to open the access control device.

[0050] In this embodiment, after determining the target simulated access control card, the terminal conducts near-field communication with the access control device through the NFC function, and sends the access control card information corresponding to the simulated access control card to the access control device. The access control device unlocks and authenticates the received access control card information. If the authentication is successful, the unlocking process is executed to enable the access control device to be opened.

[0051] Optionally, in response to the opening of the access control device, the number of times the target simulated access control card is used in each time information is recorded, and the number of times each simulated access control card is used in the time range represented by each time information can be obtained. When it is detected that the number of times the fifth simulated access control card is used in the target time information is greater than the preset number of times, the first corresponding relationship is updated according to the target time information and the fifth simulated access control card; wherein the fifth simulated access control card is any one of the preset multiple simulated access control cards. For example, the preset number of times is five times, when it is detected that the number of times the simulated access control card A is used in the time period from five to six is ​​equal to five times, a corresponding relationship between the simulated access control card A and the time period from five to six is ​​generated, and the corresponding relationship is added to the first corresponding relationship, thereby, according to the cumulative record of the number of times the user uses the simulated access control card, the time information corresponding to the simulated access control card can be updated.

[0052] According to the technical solution of the embodiment of the present disclosure, in response to the near field communication between the terminal and the access control device, the current time information and / or the current terminal posture information are obtained, and the target simulated access control card matching the current time information and / or the current terminal posture information is determined from the preset multiple simulated access control cards, and then the target simulated access control card and the access control device are unlocked and authenticated to open the access control device. Thus, the currently used simulated access control card can be automatically selected from multiple simulated access control cards according to the current time and terminal posture when the terminal swipes the card, and the user does not need to manually select the simulated access control card every time the card swiping location is switched, which solves the problem that the card cannot be swiped successfully at one time after the card swiping location is switched when the terminal is provided with multiple access control simulated access control cards, and improves the convenience of NFC card swiping operation. And compared with the method of automatically selecting the simulated access control card according to the positioning, the accuracy is higher. For example, due to the low accuracy of the positioning accuracy caused by the change of the network environment, the selection of the simulated access control card is not accurate enough. In this embodiment, it is not affected by the positioning geographical location, and the simulated access control card can be accurately selected.

[0053] It should be understood that although Figure 1 , Figure 3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 , Figure 3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed 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 part of the sub-steps or stages of other steps.

[0054] In one embodiment, Figure 5 As shown, a control device for simulating an access control card is provided, comprising: an acquisition module 51 , a determination module 52 , and an authentication module 53 .

[0055] An acquisition module 51 is used to acquire current time information and / or current terminal posture information in response to near field communication between the terminal and the access control device;

[0056] A determination module 52 is used to query a preset relationship according to the current time information and / or the current terminal posture information to determine a target simulated access card that matches the current time information and / or the current terminal posture information from a plurality of preset simulated access cards; wherein the preset relationship includes a first corresponding relationship between the time information and the simulated access card, and a second corresponding relationship between the terminal posture information and the simulated access card;

[0057] The authentication module 53 is used to perform unlocking authentication processing with the access control device through the target simulated access control card to open the access control device.

[0058] In one embodiment, the determination module 52 is specifically configured to:

[0059] Querying a preset relationship according to current time information and / or current terminal posture information to determine a first simulated access card that matches the current time information from a plurality of preset simulated access cards, and / or determining a second simulated access card that matches the current terminal posture information from a plurality of preset simulated access cards;

[0060] If the first simulated access card and the second simulated access card are matched at the same time, the priority between the time information and the terminal posture information is obtained, and the target simulated access card is determined from the first simulated access card and the second simulated access card according to the priority;

[0061] If one of the first simulated access control card and the second simulated access control card is matched, the matched first simulated access control card or the second simulated access control card is determined as the target simulated access control card.

[0062] In one embodiment, the determination module 52 is specifically configured to:

[0063] Querying a preset relationship according to the current time information and / or the current terminal posture information to determine a third simulated access card that matches the current time information from a plurality of preset simulated access cards, and determining a fourth simulated access card that matches the current terminal posture information from a plurality of preset simulated access cards;

[0064] Obtaining first identification information of each third simulated access control card and second identification information of each fourth simulated access control card;

[0065] If there are multiple third simulated access control cards, determine the third simulated access control card with the same first identification information and second identification information as the target simulated access control card;

[0066] If there are multiple fourth simulated access control cards, the fourth simulated access control card whose second identification information is the same as the first identification information is determined as the target simulated access control card.

[0067] In one embodiment, the apparatus further comprises:

[0068] The calling module is used to obtain the simulated access card used for the last near-field communication if the target simulated access card matching the current time information and / or the current terminal posture information is not queried, and determine the simulated access card used for the last near-field communication as the target simulated access card.

[0069] In one embodiment, the apparatus further comprises:

[0070] An updating module, for recording the number of times the target simulated access control card is used at each time in response to the access control device being turned on;

[0071] When it is detected that the fifth simulated access control card is used more than the preset number of times in the target time information, the first corresponding relationship is updated according to the target time information and the fifth simulated access control card; wherein the fifth simulated access control card is any one of the preset multiple simulated access control cards.

[0072] For the specific definition of the control device for simulating access control cards, please refer to the definition of the control method for simulating access control cards above. It has the corresponding functional modules and beneficial effects of the execution method, which will not be repeated here. Each module in the above-mentioned control device for simulating access control cards can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0073] In one embodiment, an electronic device is provided. The electronic device may be a terminal or a smart device. The internal structure diagram thereof may be as follows: Figure 6 As shown. The electronic device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a control method for simulating an access card is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covered on the display screen, or a button, a trackball or a touchpad provided on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.

[0074] Those skilled in the art will understand that Figure 6 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0075] In one embodiment, the control device for simulating access control cards provided by the present disclosure can be implemented in the form of a computer program. The computer program can be Figure 6 The memory of the electronic device may store various program modules constituting the control device of the simulated access control card, for example, Figure 5 The computer program composed of the various program modules shown enables the processor to execute the steps in the control method of the simulated access control card of each embodiment of the present disclosure described in this specification.

[0076] For example, Figure 6 The electronic device shown can be Figure 5 The acquisition module 51 in the control device of the simulated access control card shown executes in response to the near-field communication between the terminal and the access control device to obtain the current time information and / or the current terminal posture information; the determination module 52 executes a query of the preset relationship based on the current time information and / or the current terminal posture information to determine the target simulated access control card that matches the current time information and / or the current terminal posture information from the preset multiple simulated access control cards; wherein the preset relationship includes a first corresponding relationship between the time information and the simulated access control card, and a second corresponding relationship between the terminal posture information and the simulated access control card; the authentication module 53 executes an unlocking authentication process through the target simulated access control card and the access control device to open the access control device.

[0077] In one embodiment, an electronic device is provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: obtaining current time information and / or current terminal posture information in response to near-field communication between a terminal and an access control device; querying a preset relationship based on the current time information and / or the current terminal posture information to determine a target simulated access control card that matches the current time information and / or the current terminal posture information from a plurality of preset simulated access control cards; and performing unlocking and authentication processing with the access control device through the target simulated access control card to open the access control device.

[0078] In one embodiment, the processor can also implement the following steps when executing the computer program: query the preset relationship according to the current time information and / or the current terminal posture information to determine the first simulated access control card that matches the current time information from the preset multiple simulated access control cards, and / or determine the second simulated access control card that matches the current terminal posture information from the preset multiple simulated access control cards; if the first simulated access control card and the second simulated access control card are matched at the same time, obtain the priority between the time information and the terminal posture information, and determine the target simulated access control card from the first simulated access control card and the second simulated access control card according to the priority; if one of the first simulated access control card and the second simulated access control card is matched, determine the matched first simulated access control card or the second simulated access control card as the target simulated access control card.

[0079] In one embodiment, the processor can also implement the following steps when executing the computer program: query the preset relationship according to the current time information and / or the current terminal posture information to determine the third simulated access control card that matches the current time information from the preset multiple simulated access control cards, and determine the fourth simulated access control card that matches the current terminal posture information from the preset multiple simulated access control cards; obtain the first identification information of each third simulated access control card and the second identification information of each fourth simulated access control card; if the number of third simulated access control cards is multiple, determine the third simulated access control card whose first identification information is the same as the second identification information as the target simulated access control card; if the number of fourth simulated access control cards is multiple, determine the fourth simulated access control card whose second identification information is the same as the first identification information as the target simulated access control card.

[0080] In one embodiment, the processor can also implement the following steps when executing the computer program: if the target simulated access control card that matches the current time information and / or the current terminal posture information is not queried, the simulated access control card used for the last near-field communication is obtained, and the simulated access control card used for the last near-field communication is determined as the target simulated access control card.

[0081] In one embodiment, the processor can also implement the following steps when executing the computer program: in response to the access control device being turned on, record the number of times the target simulated access control card is used at each time information; when it is detected that the number of times the fifth simulated access control card is used at the target time information is greater than a preset number of times, update the first corresponding relationship between the target time information and the fifth simulated access control card; wherein the fifth simulated access control card is any one of the preset multiple simulated access control cards.

[0082] According to the electronic device of the embodiment of the present disclosure, the above steps are implemented when the processor executes the computer program, and the current time and terminal posture when the terminal swipes the card can be used to automatically select the currently used simulated access card from multiple simulated access cards, without the need for the user to manually select the simulated access card each time the card swiping location is switched, which solves the problem that when the terminal is equipped with multiple access control simulated access cards, the card cannot be swiped successfully at one time after switching the card swiping location, and improves the convenience of NFC card swiping. And compared with the method of automatically selecting the simulated access card according to the positioning, the accuracy is higher. For example, due to the low accuracy of the positioning accuracy caused by the change of the network environment, the selection of the simulated access card is not accurate enough. In this embodiment, it is not affected by the positioning geographical location and can accurately select the simulated access card.

[0083] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: in response to near-field communication between a terminal and an access control device, current time information and / or current terminal posture information is obtained; a preset relationship is queried based on the current time information and / or the current terminal posture information to determine a target simulated access control card that matches the current time information and / or the current terminal posture information from a plurality of preset simulated access control cards; and unlocking and authenticating the access control device through the target simulated access control card to open the access control device.

[0084] In one embodiment, when the computer program is executed by the processor, the following steps can also be implemented: querying a preset relationship based on the current time information and / or the current terminal posture information to determine a first simulated access card that matches the current time information from a preset plurality of simulated access cards, and / or determining a second simulated access card that matches the current terminal posture information from a preset plurality of simulated access cards; if the first simulated access card and the second simulated access card are matched at the same time, obtaining the priority between the time information and the terminal posture information, and determining the target simulated access card from the first simulated access card and the second simulated access card according to the priority; if one of the first simulated access card and the second simulated access card is matched, determining the matched first simulated access card or the second simulated access card as the target simulated access card.

[0085] In one embodiment, when the computer program is executed by the processor, the following steps can also be implemented: querying a preset relationship based on the current time information and / or the current terminal posture information to determine a third simulated access control card that matches the current time information from a preset plurality of simulated access control cards, and determining a fourth simulated access control card that matches the current terminal posture information from a preset plurality of simulated access control cards; obtaining the first identification information of each third simulated access control card and the second identification information of each fourth simulated access control card; if there are multiple third simulated access control cards, determining the third simulated access control card whose first identification information is the same as the second identification information as the target simulated access control card; if there are multiple fourth simulated access control cards, determining the fourth simulated access control card whose second identification information is the same as the first identification information as the target simulated access control card.

[0086] In one embodiment, when the computer program is executed by the processor, the following steps can also be implemented: if the target simulated access card that matches the current time information and / or the current terminal posture information is not queried, the simulated access card used for the last near-field communication is obtained, and the simulated access card used for the last near-field communication is determined as the target simulated access card.

[0087] In one embodiment, when the computer program is executed by the processor, the following steps can also be implemented: in response to the access control device being turned on, recording the number of times the target simulated access control card is used at each time information; when it is detected that the number of times the fifth simulated access control card is used at the target time information is greater than a preset number of times, updating the first corresponding relationship between the target time information and the fifth simulated access control card; wherein the fifth simulated access control card is any one of the preset multiple simulated access control cards.

[0088] According to the computer-readable storage medium of the embodiment of the present disclosure, the currently used simulated access card can be automatically selected from multiple simulated access cards according to the current time and terminal posture when the terminal is swiping the card, without the need for the user to manually select the simulated access card every time the card swiping location is switched, solving the problem that when the terminal is equipped with multiple access control simulated access cards, the card cannot be swiped successfully at one time after switching the card swiping location, and improving the convenience of NFC card swiping. And compared with the method of automatically selecting the simulated access card according to the positioning, the accuracy is higher. For example, the positioning accuracy is low due to the change of the network environment, making the selection of the simulated access card not accurate enough. In this embodiment, it is not affected by the positioning geographical location and can accurately select the simulated access card.

[0089] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static random access memory (SRAM) and dynamic random access memory (DRAM).

[0090] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0091] The above-mentioned embodiments only express several implementation methods of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present disclosure, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the patent of the present disclosure shall be subject to the attached claims.

Claims

1. A control method for simulating an access card, characterized in that: include: In response to near field communication between the terminal and the access control device, obtaining current time information and / or current terminal posture information; Querying a preset relationship according to the current time information and / or the current terminal posture information to determine a target simulated access control card that matches the current time information and / or the current terminal posture information from a plurality of preset simulated access control cards; wherein the preset relationship includes a first corresponding relationship between the time information and the simulated access control card, and a second corresponding relationship between the terminal posture information and the simulated access control card; The target simulated access control card is used to perform unlocking authentication processing with the access control device to open the access control device.

2. The method according to claim 1, characterized in that The querying of the preset relationship according to the current time information and / or the current terminal posture information to determine the target simulated access control card matching the current time information and / or the current terminal posture information from a plurality of preset simulated access control cards includes: Querying a preset relationship according to the current time information and / or the current terminal posture information to determine a first simulated access card that matches the current time information from the preset multiple simulated access cards, and / or determining a second simulated access card that matches the current terminal posture information from the preset multiple simulated access cards; If the first simulated access control card and the second simulated access control card are matched at the same time, the priority between the time information and the terminal posture information is obtained, and the target simulated access control card is determined from the first simulated access control card and the second simulated access control card according to the priority; If one of the first simulated access control card and the second simulated access control card is matched, the matched first simulated access control card or the second simulated access control card is determined as the target simulated access control card.

3. The method according to claim 1, characterized in that The querying of the preset relationship according to the current time information and / or the current terminal posture information to determine the target simulated access control card matching the current time information and / or the current terminal posture information from a plurality of preset simulated access control cards includes: Querying a preset relationship according to the current time information and / or the current terminal posture information to determine a third simulated access card that matches the current time information from the preset multiple simulated access cards, and determining a fourth simulated access card that matches the current terminal posture information from the preset multiple simulated access cards; Obtaining first identification information of each third simulated access control card and second identification information of each fourth simulated access control card; If there are multiple third simulated access control cards, determining the third simulated access control card with the same first identification information and the same second identification information as the target simulated access control card; If there are multiple fourth simulated access control cards, the fourth simulated access control card whose second identification information is the same as the first identification information is determined as the target simulated access control card.

4. The method according to claim 1, characterized in that After querying the preset relationship according to the current time information and / or the current terminal posture information, the method further includes: If the target simulated access card matching the current time information and / or the current terminal posture information is not found, the simulated access card used for the last near-field communication is obtained, and the simulated access card used for the last near-field communication is determined as the target simulated access card.

5. The method according to claim 4, characterized in that After the access control device is turned on, the method further includes: In response to the access control device being turned on, recording the number of times the target simulated access control card is used at each time; When it is detected that the fifth simulated access control card is used more than the preset number of times in the target time information, the first corresponding relationship is updated according to the target time information and the fifth simulated access control card; wherein the fifth simulated access control card is any one of the preset multiple simulated access control cards.

6. A control device for simulating an access card, characterized in that: include: An acquisition module, configured to acquire current time information and / or current terminal posture information in response to near field communication between the terminal and the access control device; A determination module, configured to query a preset relationship according to the current time information and / or the current terminal posture information, so as to determine a target simulated access control card that matches the current time information and / or the current terminal posture information from a plurality of preset simulated access control cards; wherein the preset relationship includes a first corresponding relationship between the time information and the simulated access control card, and a second corresponding relationship between the terminal posture information and the simulated access control card; The authentication module is used to perform unlocking authentication processing with the access control device through the target simulated access control card to open the access control device.

7. The device according to claim 6, characterized in that The determination module is specifically used for: Querying a preset relationship according to the current time information and / or the current terminal posture information to determine a first simulated access card that matches the current time information from the preset multiple simulated access cards, and / or determining a second simulated access card that matches the current terminal posture information from the preset multiple simulated access cards; If the first simulated access control card and the second simulated access control card are matched at the same time, the priority between the time information and the terminal posture information is obtained, and the target simulated access control card is determined from the first simulated access control card and the second simulated access control card according to the priority; If one of the first simulated access control card and the second simulated access control card is matched, the matched first simulated access control card or the second simulated access control card is determined as the target simulated access control card.

8. The device according to claim 6, characterized in that Also includes: The calling module is used to obtain the simulated access card used for the last near-field communication if the target simulated access card matching the current time information and / or the current terminal posture information is not found, and determine the simulated access card used for the last near-field communication as the target simulated access card.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.