Card switching method and device based on acceleration direction, electronic equipment and medium

By obtaining the acceleration direction in the mobile device and binding the card logo, the function of automatically switching cards is realized, solving the problem of slow card switching response in the prior art, and improving card swiping efficiency and user experience.

CN119893425APending Publication Date: 2025-04-25BEIJING TSINGTENG MICROSYSTEM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411940331.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In mobile devices, after multiple cards are activated, the existing technology cannot automatically switch cards, resulting in users needing manual selection, slow response, and inconvenience to users.

Method used

By obtaining the current acceleration direction of the terminal device and automatically determining and switching the corresponding card according to the binding relationship between different acceleration directions and card identification.

Benefits of technology

It realizes that the terminal equipment quickly and accurately switches cards according to the current acceleration direction, improves the card swipe success rate and card swipe speed, and avoids the cumbersome operation of users to manually select cards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119893425A_ABST
    Figure CN119893425A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a card switching method and device based on an acceleration direction, electronic equipment and a medium. The method comprises the steps that the current acceleration direction of terminal equipment is acquired; determining a target card identifier corresponding to the current acceleration direction according to a binding relationship between different acceleration directions and card identifiers; and switching the currently used card to the target card based on the information of the target card corresponding to the target card identifier. By adopting the above technical scheme, the terminal device can quickly and accurately switch the card according to the current acceleration direction, so that the card swiping success rate and the card swiping speed are improved, the tedious operation of manually selecting the card by a user is avoided, and convenience is provided for the use of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of near field communication technology, and in particular to a card switching method, device, electronic device and medium based on acceleration direction. Background Art

[0002] At present, near field communication (NFC) functions are very common in our lives, such as NFC access control, public transportation, financial POS machines, etc. Mobile devices that support NFC have card simulation functions and can simulate bus cards, access control cards, financial cards, etc., bringing great convenience to people's travel and daily activities.

[0003] When multiple cards are activated in the wallet of a mobile device, the current card switching solution is: set a default card, and swipe the default card first when a card is needed. When an error occurs due to a card machine mismatch, all currently activated cards will pop up for the user to manually select and switch cards. The mobile device cannot automatically switch the corresponding card, and the manual card switching response is slow, which brings inconvenience to the user. Summary of the invention

[0004] In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a card switching method, device, electronic device and medium based on acceleration direction.

[0005] In a first aspect, an embodiment of the present disclosure provides a card switching method based on acceleration direction, comprising:

[0006] Get the current acceleration direction of the terminal device;

[0007] Determine the target card identifier corresponding to the current acceleration direction according to the binding relationship between different acceleration directions and card identifiers;

[0008] The currently used card is switched to the target card based on the information of the target card corresponding to the target card identifier.

[0009] In a second aspect, an embodiment of the present disclosure provides a card switching device based on acceleration direction, comprising:

[0010] A direction acquisition module is used to obtain the current acceleration direction of the terminal device;

[0011] A card determination module, used to determine the target card identification corresponding to the current acceleration direction according to the binding relationship between different acceleration directions and card identifications;

[0012] The card switching module is used to switch the currently used card to the target card based on the information of the target card corresponding to the target card identifier.

[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 executable instructions to implement the card switching method based on acceleration direction as described in the first aspect.

[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 the computer program is used to implement the card switching method based on acceleration direction as described in the first aspect.

[0015] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0016] The card switching solution based on acceleration direction provided by the embodiment of the present disclosure obtains the current acceleration direction of the terminal device, determines the target card identifier corresponding to the current acceleration direction according to the binding relationship between different acceleration directions and card identifiers, and then switches the currently used card to the target card based on the information of the target card corresponding to the target card identifier. The solution of the present disclosure is adopted to automatically select the card corresponding to the acceleration direction by obtaining the current acceleration direction of the terminal device, and automatically switch to the card to perform the card swiping action, thereby achieving the purpose of fast card switching, and realizing that the terminal device switches the card quickly and accurately according to the current acceleration direction, thereby improving the card swiping success rate and card swiping speed, avoiding the tedious operation of the user manually selecting the card, and providing convenience for the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0018] Figure 1 A schematic flow chart of a card switching method based on acceleration direction provided by an exemplary embodiment of the present disclosure;

[0019] Figure 2 A schematic diagram of a coordinate system of a mobile phone sensor world according to an exemplary embodiment of the present disclosure is shown;

[0020] Figure 3 A schematic diagram of a flow chart for determining a binding relationship between an acceleration direction and a card identifier according to an exemplary embodiment of the present disclosure;

[0021] Figure 4 A schematic diagram showing a card emulation setting page according to an exemplary embodiment of the present disclosure is shown;

[0022] Figure 5 A schematic diagram of the structure of a card switching device based on acceleration direction provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0023] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0024] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0025] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0026] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0027] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0028] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0029] In people's daily life, elevators, door locks, subways, buses, etc. may all require the use of NFC devices to swipe cards. Cards based on NFC technology for swiping subways, access control, elevators, etc. can be collectively referred to as NFC cards. At present, when multiple cards are activated in the wallet of a mobile device, such as access control or bus, financial POS machine, etc., the mobile device does not know what type of card reader is on the other end, and first presses the default card to swipe. If the default card is swiped and an error is reported because the card machine does not match, other means are used to switch the card, for example: the user of the mobile device manually switches to select the card corresponding to the card machine to ensure the card swipe is successful; or, the mobile terminal background automatically cycles through all currently activated cards; or, according to the network and global positioning system (Global Positioning System, GPS) positioning, the card machine location is determined to select the corresponding card; or, according to the application identifier (Application Identifier, AID) sent by the POS machine and other features, the card is intelligently selected. However, the above-mentioned card switching scheme is prone to slow response, experience freeze, abnormal card swiping error, etc. In the absence of network or subway signal, the existing intelligent card selection cannot accurately select the card to be swiped.

[0030] In view of the above problems, the present disclosure provides a card switching solution based on the acceleration direction. By adding different types of cards to be bound according to the acceleration direction in the system settings, for example, taking the terminal device as a mobile phone, the mobile phone can be set to swipe upward to bind to public transportation, swipe downward to bind to access control, swipe left to bind to finance, etc. When the user confirms the type of external card machine, swipe the card in the corresponding swiping direction, and automatically selects the corresponding card, ensuring that the card machine and the card match, thereby improving the card swiping success rate and card swiping speed. This solution is easy to operate and has a high accuracy rate, and there is no need to operate the card interface of the terminal device to select the card.

[0031] The card switching method, device, electronic device and medium based on acceleration direction provided by the present disclosure are explained in detail below with reference to the accompanying drawings.

[0032] Figure 1 A flow chart of a card switching method based on acceleration direction provided for an exemplary embodiment of the present disclosure. The method can be executed by a card switching device based on acceleration direction provided for an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can be integrated in an electronic device, such as a smart phone, a tablet computer, a wearable device, etc.

[0033] like Figure 1 As shown, the card switching method based on acceleration direction may include the following steps:

[0034] Step 101, obtaining the current acceleration direction of the terminal device.

[0035] The terminal device may be a handheld mobile device with NFC function, such as a smart phone, a smart watch, etc.

[0036] In this embodiment, the terminal device can obtain its own current acceleration direction. For example, the terminal device can detect the acceleration direction of the terminal device at this time through a built-in acceleration sensor to obtain the current acceleration direction.

[0037] Exemplarily, the terminal device may periodically obtain its own current acceleration direction when detecting that the NFC function is turned on.

[0038] Exemplarily, the NFC controller on the terminal device can detect radio frequency signals in real time or periodically. When the NFC controller detects a radio frequency signal, it sends an approach event to the terminal device. After receiving the approach event, the terminal device can determine that the radio frequency signal is detected, and then determine that there is a card reader that can read NFC cards at the current location of the terminal device. At this time, the terminal device can obtain its current acceleration direction.

[0039] Take a mobile phone as an example. The mobile phone has a built-in accelerometer. The coordinate system of the sensor world is as follows: Figure 2 As shown in the figure, the direction of the x-axis is from left to right, the direction of the y-axis is from bottom to top, and the direction of the z-axis is from inside to outside. The acceleration direction of the mobile phone can be determined based on the return values ​​of the acceleration sensor on the three coordinate axes. Specifically, when the value of the x-axis is close to the gravity acceleration (g = 9.80665m / s 2 ≈9.8m / s 2 ), it indicates that the left side of the phone is facing downwards, and the acceleration direction is to the left; when the x-axis value is close to a negative g value, it indicates that the right side of the phone is facing downwards, and the acceleration direction is to the right; when the y-axis value is close to a negative g value, it indicates that the bottom of the phone is facing downwards (i.e. Figure 2 When the value of the y-axis is close to the negative g-value, the top of the phone is facing downward (that is, the phone is upside down), and the acceleration direction is downward; when the value of the z-axis is close to the g-value, the screen of the phone is facing upward, and the acceleration direction is forward; when the value of the z-axis is close to the negative g-value, the screen of the phone is facing downward, and the acceleration direction is backward.

[0040] Step 102: Determine the target card identifier corresponding to the current acceleration direction according to the binding relationship between different acceleration directions and card identifiers.

[0041] The card identifier is unique and uniquely identifies an NFC card. The card identifier may be the name of an NFC card, such as a home access card, a bus card, a financial card, etc. It is understood that the correspondence between the acceleration direction and the card identifier is the correspondence between the acceleration direction and the NFC card to which the card identifier uniquely corresponds.

[0042] In this embodiment, the user can pre-set the binding relationship between different acceleration directions and the card identification of the activated card according to actual needs. One card identification corresponds to at least one acceleration direction, and one acceleration direction can also correspond to at least one card identification. Therefore, in this embodiment, after obtaining the current acceleration direction, by querying the binding relationship between different acceleration directions and card identifications, the target card identification corresponding to the current acceleration direction can be determined, that is, the corresponding target card is determined. For example, assuming that the acceleration downward corresponds to the card identification of card A, the acceleration upward corresponds to the card identification of card B, the acceleration to the left corresponds to the card identification of card C, and the acceleration to the right corresponds to the card identification of card D, the current acceleration direction obtained is left, then it can be determined that the target card identification corresponding to the current acceleration direction is the card identification of card C, so that the target card can be determined to be card C.

[0043] Step 103: Switch the currently used card to the target card based on the information of the target card corresponding to the target card identifier.

[0044] In this embodiment, after the target card identifier is determined, the currently used card can be switched to the target card based on the target card information corresponding to the target card identifier. For example, the target card information corresponding to the target card identifier can be sent to the eSE or NFC controller, and the eSE or NFC controller switches the card to the corresponding target card based on the received information, thereby switching the card currently used by the terminal device to the target card determined this time, and then the target card can be used to interact with the card reader to realize the corresponding function of swiping the card.

[0045] In an optional implementation of the present disclosure, if there is more than one target card identifier corresponding to the current acceleration direction, a target card identifier can be randomly selected from the more than one target card identifiers for card switching, and if the card corresponding to the target card identifier does not match the card reader, the terminal device can select another target card identifier from the more than one target card identifiers for card switching. Thus, even if there are many activated cards but insufficient acceleration directions that can be bound, it is possible to automatically switch cards according to the acceleration direction of the terminal device. If all cards with target card identifiers do not match the card reader, the terminal device can prompt the user to rotate the terminal device to adjust the acceleration direction, or remind the user to manually select the correct card.

[0046] The card switching method based on acceleration direction provided by the embodiment of the present disclosure obtains the current acceleration direction of the terminal device, determines the target card identifier corresponding to the current acceleration direction according to the binding relationship between different acceleration directions and card identifiers, and then switches the currently used card to the target card based on the information of the target card corresponding to the target card identifier. The scheme of the present disclosure is adopted to automatically select the card corresponding to the acceleration direction by obtaining the current acceleration direction of the terminal device, and automatically switch to the card to perform the card swiping action, thereby achieving the purpose of fast card switching, and realizing that the terminal device switches the card quickly and accurately according to the current acceleration direction, thereby improving the card swiping success rate and card swiping speed, avoiding the tedious operation of the user manually selecting the card, and providing convenience for the user.

[0047] In an optional implementation of the present disclosure, the user can customize the correspondence between the acceleration direction of the terminal device and the card identifier (i.e., NFC card) to be switched according to their own needs, so as to realize the personalization of NFC card switching. Different users can set the acceleration direction corresponding to the card identifier of each NFC card according to their own usage habits. For example, the acceleration downward corresponds to the card identifier of card A, the acceleration upward corresponds to the card identifier of card B, the acceleration to the left corresponds to the card identifier of card C, etc. In this embodiment, the binding relationship between different acceleration directions and card identifiers can be as follows: Figure 3 The embodiment shown is determined, comprising the following steps:

[0048] Step 201, in response to receiving a click operation of a user on a card simulation setting interface, a card simulation setting page is displayed, and configurable cards are displayed on the card simulation setting page.

[0049] Exemplarily, the card simulation setting interface can be set in the setting options of the electronic wallet of the terminal device, or in the system setting options of the terminal device, and the present disclosure does not limit this. The card simulation setting interface is used to switch the page to the card simulation setting page, which supports users to set the binding relationship between each activated card and the acceleration direction.

[0050] In this embodiment, when the user needs to set the binding relationship between the acceleration direction and the card, he can find the card simulation setting interface and click it. After the terminal device receives the user's click operation on the card simulation setting interface, it further displays the card simulation setting page. The card simulation setting page displays all NFC cards that the user has activated. These cards allow the user to bind the acceleration direction to them, so they are called configurable cards. Therefore, all configurable cards are displayed in the card simulation setting page.

[0051] For example, Figure 4 A schematic diagram of a card emulation setting page according to an exemplary embodiment of the present disclosure is shown. Figure 4 As shown, the card simulation setting page displays the following configurable cards: access card, bus card, payment card, and displays a prompt message "Click the card name to bind the acceleration direction to achieve automatic card switching" to prompt the user of the functions of this page and the operations that can be performed. It can be understood that the card name here is the card ID.

[0052] Step 202: In response to receiving a click operation of the user on the target configurable card, display acceleration direction options.

[0053] In this embodiment, when the user needs to set the acceleration direction for a card, the user can click on the card (for ease of description and distinction, referred to as a target configurable card). When the terminal device receives the user's click operation on the target configurable card, the acceleration direction option is further displayed for the user to select. The acceleration direction option can be displayed by page jump display, pop-up window display, etc., and the present disclosure does not limit this.

[0054] As an example, when displaying acceleration direction options, all preset acceleration directions may be displayed as acceleration direction options, and the user may select the acceleration direction to be bound.

[0055] As another example, when displaying acceleration direction options, only the currently selectable acceleration direction can be obtained as an acceleration direction option for display, and the acceleration direction that has been bound to the card identifier of other cards in the preset acceleration direction is no longer displayed to avoid the user repeatedly selecting the same acceleration direction to bind different cards. Among them, the currently selectable acceleration direction can be determined in the following manner but is not limited to.

[0056] In an optional embodiment of the present disclosure, in response to receiving a click operation of a user on a target configurable card, displaying acceleration direction options may include: in response to receiving a click operation of a user on a target configurable card, obtaining a binding relationship between a currently stored acceleration direction and a card identifier as a historical binding relationship, and obtaining an acceleration direction from the historical binding relationship as an unavailable direction, then deleting the unavailable direction from the preset acceleration direction options to obtain an available direction option, and displaying the available direction option as the acceleration direction option corresponding to the target configurable card. For example, assuming that the preset acceleration direction options include up, down, left, right, forward, and backward, and the unavailable directions determined based on the binding relationship between the currently stored acceleration direction and the card identifier include up and down, it can be determined that the available direction options include left, right, forward, and backward, and then the four available direction options are displayed for the user to select.

[0057] In an optional embodiment of the present disclosure, in response to receiving a click operation of a user on a target configurable card, displaying an acceleration direction option may include: in response to receiving a click operation of a user on a target configurable card, obtaining an acceleration direction set, the acceleration direction set including multiple acceleration directions, each acceleration direction carrying a bound or unbound identifier, and selecting an acceleration direction carrying an unbound identifier as an acceleration direction option corresponding to the target configurable card according to the identifier carried by each acceleration direction in the acceleration direction set, and then displaying the acceleration direction option. For example, assuming that the initial acceleration direction set includes six directions, namely, up, down, left, right, forward, and backward, each direction carries an unbound identifier, after the user binds up and down to the card identifier respectively, the identifiers of the two directions of up and down in the acceleration direction set become bound identifiers, and the other four directions are still unbound identifiers, then some or all of the four directions carrying unbound identifiers are selected as acceleration direction options corresponding to the target configurable card and displayed. In addition, optionally, when the acceleration direction option is determined in this way, after binding the card identifier of the target settable card with the target acceleration direction selected by the user from the acceleration direction options, it is also necessary to update the unbound identifier carried by the target acceleration direction in the acceleration direction set to a bound identifier, so as to timely update the status of the acceleration direction in the acceleration direction set, so that the acceleration direction option can be accurately obtained during subsequent binding.

[0058] Step 203, in response to receiving a user's selection operation on a target acceleration direction in an acceleration direction option, the card identifier of the target settable card is bound to the target acceleration direction and stored.

[0059] In this embodiment, after the acceleration direction options are displayed, the user can select the desired binding acceleration direction (for ease of description and distinction, referred to as the target acceleration direction) from the displayed acceleration direction options. After the terminal device receives the user's selection operation on the target acceleration direction, the card identifier of the target settable card can be bound to the target acceleration direction, and the binding relationship between the two can be stored.

[0060] The card switching method based on acceleration direction provided by the embodiment of the present disclosure displays a card simulation setting page containing settable cards in response to receiving a click operation on the card simulation setting interface by the user, displays acceleration direction options in response to receiving a click operation on the target settable card by the user, and binds and stores the card identifier of the target settable card with the target acceleration direction in response to receiving a selection operation on the target acceleration direction in the acceleration direction options by the user, thereby realizing the customized setting of the binding relationship between the acceleration direction and the card, thereby enabling the personalization of card switching.

[0061] In the actual use process of the user, it is possible that the acceleration direction corresponding to a certain card may be forgotten, especially when there are many cards, which may cause the currently given acceleration direction to be unable to switch to the accurate target card, and thus the card swiping cannot be completed. In response to this problem, in an optional implementation of the present disclosure, after determining the target card identifier corresponding to the current acceleration direction, the target card identifier can also be displayed to allow the user to confirm whether the target card corresponding to the target card identifier is correct; in response to receiving a feedback message from the user that the target card is correct, the currently used card is switched to the target card based on the information of the target card corresponding to the target card identifier; in response to receiving a feedback message from the user that the target card is incorrect, a new card identifier is obtained as the target card identifier according to a preset card correction rule.

[0062] Exemplarily, the preset card correction rule may be to display the card identifications of all activated cards for the user to select, so that when receiving a feedback message that the user determines that the target card is incorrect, the terminal device displays the card identifications of all activated cards for the user to select, and the user selects a new card identification from them according to their own needs. After the user selects, the terminal device can obtain the new card identification and use it as the target card identification, and then implement card switching according to the information of the target card corresponding to the target card identification. Therefore, when the target card determined according to the acceleration direction does not match the card reader, all cards can be obtained and selected without the user manually clicking the electronic wallet of the terminal device, which simplifies the user's operation.

[0063] Exemplarily, the preset card correction rule may be to obtain a new card identifier based on the current location information of the terminal device. Thus, when a feedback message is received from the user confirming that the target card is incorrect, the terminal device obtains the type of card reader closest to its own location based on its own location, and then selects a card identifier that matches the type of the card reader from the card identifier list of activated cards as the target card identifier, and then implements card switching based on the information of the target card corresponding to the target card identifier.

[0064] In an optional implementation of the present disclosure, before obtaining the current acceleration direction of the terminal device, it can also be determined whether the acceleration direction card switching function of the terminal device is turned on. The acceleration direction card switching function can be set in the setting options of the electronic wallet of the terminal device, or in the system setting options of the terminal device, and the present disclosure does not limit this.

[0065] In order to implement the above embodiment, the present disclosure also provides a card switching device based on acceleration direction.

[0066] Figure 5This is a schematic diagram of the structure of a card switching device based on acceleration direction provided by an embodiment of the present disclosure. The device is implemented in software and / or hardware and can be integrated in an electronic device.

[0067] like Figure 5 As shown, the card switching device 30 based on acceleration direction may include: a direction acquisition module 310 , a card determination module 320 and a card switching module 330 .

[0068] Wherein, the direction acquisition module 310 is used to obtain the current acceleration direction of the terminal device;

[0069] The card determination module 320 is used to determine the target card identification corresponding to the current acceleration direction according to the binding relationship between different acceleration directions and card identifications;

[0070] The card switching module 330 is used to switch the currently used card to the target card based on the information of the target card corresponding to the target card identifier.

[0071] Optionally, the card switching device 30 based on acceleration direction further includes: a relationship binding module, including:

[0072] A first display unit, configured to display a card simulation setting page in response to receiving a click operation of a user on the card simulation setting interface, wherein the card simulation setting page displays configurable cards;

[0073] A second display unit, configured to display acceleration direction options in response to receiving a click operation of a user on a target configurable card;

[0074] The relationship binding unit is used to bind and store the card identifier of the target settable card with the target acceleration direction in response to receiving a user's selection operation on the target acceleration direction in the acceleration direction option.

[0075] Further optionally, the second display unit is further used for:

[0076] In response to receiving a click operation of the user on the target configurable card, obtaining a currently stored binding relationship between the acceleration direction and the card identifier as a historical binding relationship;

[0077] Get the acceleration direction from the historical binding relationship as the unavailable direction;

[0078] Delete the unavailable directions from the preset acceleration direction options to obtain the available direction options;

[0079] Using the available direction options as a target sets the acceleration direction options corresponding to the card and displays them.

[0080] Optionally, the second display unit is further used for:

[0081] In response to receiving a click operation of a user on a target configurable card, an acceleration direction set is obtained, where the acceleration direction set includes multiple acceleration directions, and each acceleration direction carries a bound or unbound identifier;

[0082] According to the identifier carried by each acceleration direction in the acceleration direction set, select the acceleration direction with an unbound identifier as the target to set the acceleration direction option corresponding to the card;

[0083] Shows acceleration direction options.

[0084] Further optionally, the card switching device 30 based on acceleration direction further includes:

[0085] The updating module is used to update the unbound identifier carried by the target acceleration direction in the acceleration direction set to a bound identifier.

[0086] Optionally, the card switching device 30 based on acceleration direction further includes:

[0087] A display confirmation module is used to display the target card identifier so that the user can confirm whether the target card corresponding to the target card identifier is correct;

[0088] The card correction module is used to obtain a new card identifier as the target card identifier according to a preset card correction rule in response to receiving a feedback message from a user that the target card is incorrect.

[0089] Optionally, the card switching device 30 based on acceleration direction further includes:

[0090] The first determination module is used to determine whether the terminal device detects a radio frequency signal.

[0091] Optionally, the card switching device 30 based on acceleration direction further includes:

[0092] The second determination module is used to determine whether the acceleration direction card cutting function of the terminal device is turned on.

[0093] The card switching device based on acceleration direction applied to electronic devices provided in the embodiments of the present disclosure can execute the card switching method based on acceleration direction provided in the embodiments of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method. The contents not fully described in the embodiments of the present disclosure device can refer to the description in any method embodiment of the present disclosure.

[0094] The embodiments of the present disclosure further provide a computer program product, including a computer program / instruction, which, when executed by a processor, implements the card switching method based on acceleration direction provided by any embodiment of the present disclosure.

[0095] According to one or more embodiments of the present disclosure, the present disclosure provides an electronic device, including:

[0096] processor;

[0097] a memory for storing instructions executable by the processor;

[0098] The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the card switching method based on acceleration direction as provided in any embodiment of the present disclosure.

[0099] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program is used to implement a card switching method based on acceleration direction as provided in any embodiment of the present disclosure.

[0100] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0101] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0102] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0103] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0104] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0105] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0106] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0107] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0108] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A card switching method based on acceleration direction, characterized in that: The method comprises: Get the current acceleration direction of the terminal device; Determine the target card identifier corresponding to the current acceleration direction according to the binding relationship between different acceleration directions and card identifiers; The currently used card is switched to the target card based on the information of the target card corresponding to the target card identifier.

2. The method according to claim 1, characterized in that The binding relationship between the different acceleration directions and the card identification is determined in the following manner: In response to receiving a click operation of the user on the card simulation setting interface, displaying a card simulation setting page, wherein the card simulation setting page displays configurable cards; In response to receiving a click operation of the user on the target configurable card, displaying acceleration direction options; In response to receiving a selection operation of the user on a target acceleration direction in the acceleration direction options, the card identifier of the target settable card is bound to and stored with the target acceleration direction.

3. The method according to claim 2, characterized in that In response to receiving a click operation of the user on the target configurable card, displaying acceleration direction options includes: In response to receiving a click operation of the user on the target configurable card, obtaining a currently stored binding relationship between the acceleration direction and the card identifier as a historical binding relationship; Obtaining the acceleration direction from the historical binding relationship as an unavailable direction; Deleting the unavailable direction from the preset acceleration direction options to obtain available direction options; The available direction options are used as the target to set the acceleration direction options corresponding to the card and display them.

4. The method according to claim 2, characterized in that: In response to receiving a click operation of the user on the target configurable card, displaying acceleration direction options includes: In response to receiving a click operation of the user on the target configurable card, obtaining an acceleration direction set, wherein the acceleration direction set includes multiple acceleration directions, each acceleration direction carries a bound or unbound identifier; According to the identifier carried by each acceleration direction in the acceleration direction set, selecting the acceleration direction carrying an unbound identifier as the acceleration direction option corresponding to the target configurable card; Displays the acceleration direction options.

5. The method according to claim 4, characterized in that After binding and storing the card identifier of the target configurable card and the target acceleration direction, the method further includes: The unbound identifier carried by the target acceleration direction in the acceleration direction set is updated to a bound identifier.

6. The method according to any one of claims 1 to 5, characterized in that: After determining the target card identifier corresponding to the current acceleration direction, the method further includes: Displaying the target card identifier to allow the user to confirm whether the target card identifier corresponds to the correct target card; In response to receiving a feedback message from the user that the target card is incorrect, a new card identifier is obtained as the target card identifier according to a preset card correction rule.

7. The method according to any one of claims 1 to 5, characterized in that: Before obtaining the current acceleration direction of the terminal device, the method further includes: It is determined that the terminal device detects a radio frequency signal.

8. A card switching device based on acceleration direction, characterized in that: include: A direction acquisition module is used to obtain the current acceleration direction of the terminal device; A card determination module, used to determine the target card identification corresponding to the current acceleration direction according to the binding relationship between different acceleration directions and card identifications; The card switching module is used to switch the currently used card to the target card based on the information of the target card corresponding to the target card identifier.

9. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the card switching method based on acceleration direction as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to implement the card switching method based on acceleration direction as described in any one of claims 1 to 7.