CN115063138A - Intelligent card cutting method and related device - Google Patents

Intelligent card cutting method and related device Download PDF

Info

Publication number
CN115063138A
CN115063138A CN202210616934.2A CN202210616934A CN115063138A CN 115063138 A CN115063138 A CN 115063138A CN 202210616934 A CN202210616934 A CN 202210616934A CN 115063138 A CN115063138 A CN 115063138A
Authority
CN
China
Prior art keywords
fence
information
virtual card
geo
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210616934.2A
Other languages
Chinese (zh)
Inventor
陈华星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210616934.2A priority Critical patent/CN115063138A/en
Publication of CN115063138A publication Critical patent/CN115063138A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/351Virtual cards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/322Aspects of commerce using mobile devices [M-devices]
    • G06Q20/3224Transactions dependent on location of M-devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • G06Q20/367Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Finance (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a smart card cutting method and a related device, wherein the method comprises the following steps: acquiring position information of the electronic equipment; confirming geo-fence information corresponding to the position of the electronic equipment according to the position information, wherein the geo-fence information is used for indicating the boundary and the range of a building, a park or a community of the position of the electronic equipment; and confirming a target virtual card to be used for executing the data interaction operation according to the geo-fence information. Therefore, through the method provided by the embodiment of the application, the geo-fence is selected through interaction between the user and the electronic equipment, and the map area coordinate is combined to draw the geo-fence area more accurately, so that the intelligent card cutting efficiency and accuracy are improved.

Description

Intelligent card cutting method and related device
Technical Field
The application relates to the technical field of electronics, in particular to a smart card cutting method and a related device.
Background
At present, more and more mobile terminals support the Near Field Communication (NFC) technology, and virtual cards such as bus cards, bank cards, access control cards and the like are opened/bound on the mobile terminals, so that the functions of swiping buses by mobile phones, swiping bank-phone-connected POS machines by mobile phones and swiping access controls by mobile phones can be realized. However, when a plurality of virtual cards are bound on the mobile phone, the selection problem of the virtual cards is involved, and the problem of how to quickly determine the target virtual card when the use area corresponding to the current virtual card is an irregular figure is involved.
Therefore, a smart card cutting method is needed to solve the above problems.
Disclosure of Invention
The embodiment of the application provides an intelligent card cutting method and a related device, which can select a geo-fence through interaction between a user and electronic equipment, and can draw a geo-fence area more accurately by combining map area coordinates, so that the efficiency and the accuracy of intelligent card cutting are improved.
In a first aspect, an embodiment of the present application provides a smart card cutting method, which is applied to an electronic device, and includes:
acquiring the position information of the electronic equipment;
confirming geo-fence information corresponding to the position of the electronic equipment according to the position information, wherein the geo-fence information is used for indicating the boundary and the range of a building, a park or a community of the position of the electronic equipment;
and confirming a target virtual card to be used for executing data interaction operation according to the geo-fence information.
In a second aspect, an embodiment of the present application provides a smart card cutting device, which is applied to an electronic device, and includes an obtaining unit, a confirming unit, and an executing unit:
the acquisition unit is used for acquiring the position information of the electronic equipment;
the confirming unit is used for confirming the geo-fence information corresponding to the position of the electronic equipment according to the position information, wherein the geo-fence information is used for indicating the boundary and the range of a building, a garden or a community of the position of the electronic equipment;
the execution unit is used for confirming a target virtual card to be used for executing data interaction operation according to the geo-fence information.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more executable program codes, where the one or more executable program codes are stored in the memory and configured to be executed by the processor, and the program includes instructions for performing the steps in the method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in the method according to the first aspect of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the method of the first aspect of embodiments of the present application. The computer program product may be a software installation package.
It can be seen that the embodiment of the application discloses a smart card cutting method and a related device, and the method comprises the following steps: acquiring position information of the electronic equipment; confirming geo-fence information corresponding to the position of the electronic equipment according to the position information, wherein the geo-fence information is used for indicating the boundary and the range of a building, a park or a community of the position of the electronic equipment; and confirming a target virtual card to be used for executing the data interaction operation according to the geo-fence information. Therefore, through the method provided by the embodiment of the application, the geo-fence is selected through interaction between the user and the electronic equipment, and the map area coordinate is combined to draw the geo-fence area more accurately, so that the intelligent card cutting efficiency and accuracy are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1A is a schematic view of a virtual card presentation interface of an electronic device wallet application provided in an embodiment of the present application;
fig. 1B is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2A is a schematic flowchart of a smart card cutting method according to an embodiment of the present application;
fig. 2B is a schematic view of an actual application scenario of a virtual card according to an embodiment of the present application;
fig. 2C is a scene schematic diagram for determining scene information according to an embodiment of the present application;
FIG. 2D is a schematic view of a scenario of a single target building constructing a first area according to an embodiment of the present application;
fig. 2E is a schematic view of a scene of a first area constructed by multiple target buildings according to an embodiment of the present application;
fig. 2F is a schematic diagram of a smart card cutting scene in a practical application process according to an embodiment of the present application;
fig. 3A is a schematic flow chart of another smart card cutting method provided by the embodiment of the present application;
fig. 3B is a schematic diagram of a relationship between a first fence and a second fence provided in the present application;
FIG. 3C is a diagram illustrating a scene of a column in a plurality of columns according to an embodiment of the present disclosure;
FIG. 4 is a schematic flow chart diagram of another smart card cutting method provided by the embodiment of the application;
fig. 5 is a block diagram of functional units of a smart card cutting device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
For a better understanding of aspects of embodiments of the present application, an electronic device, related concepts and contexts to which embodiments of the present application may relate are described below.
1. The electronic devices involved in the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal equipment (terminal device), and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices. By way of example, the electronic device may include a server as described in embodiments of the present application.
2. Near Field Communication (NFC for short) is an emerging technology, devices (such as mobile phones) using the NFC technology can exchange data when they are close to each other, and is integrated and evolved from a non-contact Radio Frequency Identification (RFID) and an interconnection technology, and by integrating functions of an induction card reader, an induction card and point-to-point Communication on a single chip, applications such as mobile payment, electronic ticketing, door access, mobile identity identification, anti-counterfeiting and the like are realized by using a mobile terminal. The NFC application may include an access control class, a transportation card class, a bank card class, and the like. Each NFC application includes at least one virtual card, for example: virtual transportation cards, virtual access cards, virtual bank cards and the like, and each virtual card has a unique identification ID corresponding to the card.
Exemplarily, in the electronic device, a wallet application is taken as an example. The wallet application may include a plurality of different types of virtual cards, as shown with particular reference to FIG. 1A. FIG. 1A shows a virtual card presentation interface schematic of an electronic device wallet application. As shown in fig. 1A: the virtual card types in the wallet application include: OPPO PAY, go to ride a car, go to open the door three types. Wherein, go by bus class virtual card includes: traffic cards (such as XX communication interconnection cards), keys (corresponding to the virtual cards for opening doors), PAY (such as XX bank credit cards), and virtual cards such as bank cards and bus codes can also be added. The certificate virtual card comprises: virtual cards such as citizen network electronic identity identification cards, identity cards, passports, driving licenses, other certificates and the like. The ticket virtual card includes virtual cards such as membership cards of various brands.
For example, fig. 1B shows a schematic structural diagram of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a compass 190, a motor 191, a pointer 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. Wherein the different processing units may be separate components or may be integrated in one or more processors. In some embodiments, the electronic device 100 may also include one or more processors 110. The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to complete the control of instruction fetching and instruction execution. In other embodiments, a memory may also be provided in processor 110 for storing instructions and data. Illustratively, the memory in the processor 110 may be a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. This avoids repeated accesses and reduces the latency of the processor 110, thereby increasing the efficiency with which the electronic device 100 processes data or executes instructions.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a SIM card interface, a USB interface, and/or the like. The USB interface 130 is an interface conforming to a USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. The USB interface 130 may also be used to connect to a headset to play audio through the headset.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (blue tooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), UWB, and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor that generates an application interface, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (mini-light-emitting diode, mini), a Micro-o led, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or more display screens 194.
The electronic device 100 may implement a photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or more cameras 193.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
Internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 may execute the above-mentioned instructions stored in the internal memory 121, so as to enable the electronic device 100 to execute the method for displaying page elements provided in some embodiments of the present application, and various applications and data processing. The internal memory 121 may include a program storage area and a data storage area. Wherein, the storage program area can store an operating system; the storage program area may also store one or more applications (e.g., gallery, contacts, etc.), and the like. The storage data area may store data (e.g., photos, contacts, etc.) created during use of the electronic device 100, and the like. Further, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage components, flash memory components, Universal Flash Storage (UFS), and the like. In some embodiments, the processor 110 may cause the electronic device 100 to execute the method for displaying page elements provided in the embodiments of the present application and other applications and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor 110. The electronic device 100 may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. Such as music playing, recording, etc.
The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., X, Y and the Z axis) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
In order to better understand the technical solution of the present application, the following detailed description is made with reference to specific embodiments.
Referring to fig. 2A, fig. 2A is a schematic flowchart illustrating a smart card cutting method according to an embodiment of the present application, as shown in fig. 2A, the smart card cutting method of the present application includes the following steps:
s201, acquiring the position of the electronic equipment.
Specifically, the location is used for representing location information of the electronic device.
S202, confirming geo-fence information corresponding to the position of the electronic equipment according to the position information, wherein the geo-fence information is used for indicating the boundary and the range of a building, a garden or a community of the position of the electronic equipment.
Specifically, the electronic device stores several virtual cards, wherein some virtual cards are activated to be used and set corresponding use areas, namely geographic fences. Therefore, before the electronic device calls the corresponding target virtual card, whether the corresponding geo-fence information exists in the current position can be judged according to the current position of the electronic device, and if the corresponding geo-fence information exists in the current position, the target virtual card related to the preset geo-fence information is directly called. If not, the next operation is carried out.
Specifically, whether the current electronic device is located in the preset geo-fence is judged according to the acquired location of the electronic device.
S203, according to the geo-fence information, confirming a target virtual card to be used for executing data interaction operation.
Specifically, a target virtual card corresponding to the current geo-fence is determined according to the geo-fence information.
Further, after determining the target virtual card, the electronic device performs a data interaction operation using the target virtual card. Wherein, the data interaction operation comprises: payment data interaction, user identity information interaction confirmation operation and the like. The data interaction operation is determined according to the specific function of the target virtual card, and will not be described in detail herein.
Specifically, a schematic diagram of an actual application scenario of a target virtual card provided in the embodiment of the present application shown in fig. 2B is combined. As shown in fig. 2B, the current electronic device is located near the bus station, and the bus station is in the preset geo-fence.
Exemplarily, the electronic device confirms the geo-fence information corresponding to the position where the electronic device is located according to the position information, and invokes the target virtual card corresponding to the geo-fence to perform data interaction with the NFC card reader of the bus. The data interaction operation is to execute a payment operation and update account balance information in the current virtual card. As can be seen from the above application scenario, the electronic device directly obtains the target virtual card corresponding to the geo-fence, and performs data interaction operation using the target virtual card. The card swiping behavior can be rapidly completed, and the efficiency of data interaction operation is improved.
It can be seen that a smart card cutting method and related device are disclosed, the method comprising: acquiring position information of the electronic equipment; confirming geo-fence information corresponding to the position of the electronic equipment according to the position information, wherein the geo-fence information is used for indicating the boundary and the range of a building, a park or a community of the position of the electronic equipment; and confirming a target virtual card to be used for executing the data interaction operation according to the geo-fence information. Therefore, through the method provided by the embodiment of the application, the geo-fence is selected through interaction between the user and the electronic equipment, and the map area coordinate is combined to draw the geo-fence area more accurately, so that the intelligent card cutting efficiency and accuracy are improved.
In one possible example, the method further comprises the steps of: determining the geo-fence information corresponding to the position of the electronic equipment according to the position information; and establishing a corresponding relation between the geo-fence information and a preset virtual card, wherein the preset virtual card is a virtual card for the electronic equipment to perform data interaction operation at the position indicated by the position information.
For example, in an actual application scenario, the electronic device is not necessarily located in a preset geo-fence. At this time, the electronic device may establish a geo-fence corresponding to the current location according to information related to the data interaction operation performed at the current location.
Further, a corresponding relation between the geo-fence information and a preset virtual card for performing data interaction operation at the position of the electronic equipment is established.
In one possible example, if the electronic device determines that the preset geo-fence does not exist at the current location, the default virtual card or the last used virtual card is directly invoked as the preset virtual card to perform the data interaction operation.
Further, a corresponding relationship between the geo-fence information and the preset virtual card executing the data interaction operation is established.
In another possible example, the electronic device may select the virtual card by providing a virtual card selection interface to the user, wherein the virtual card selection interface includes at least one virtual card. Further, the method comprises the steps of responding to the fact that a user determines a preset virtual card from at least one virtual card, and calling the preset virtual card to perform data interaction operation with the NFC card reader.
Illustratively, the wallet application is taken as an example and is specifically described herein. The electronic device displays a list of virtual cards added to the application to the user in a virtual card selection interface in the wallet application. The virtual card list includes but is not limited to: public transportation cards, credit cards, access cards, and the like. It should be noted that the NFC application is not limited to the wallet application, and the description is only for the sake of example.
Further, in response to a selection operation of a user on the virtual card selection interface, a preset virtual card is determined from at least one virtual card, and the preset virtual card is invoked to perform a data interaction operation, for example: and calling the preset virtual card and the NFC card reader to perform data interaction operation.
Specifically, the electronic equipment receives a selection operation of a user on a virtual card selection interface for a preset virtual card. Wherein the selecting operation includes, but is not limited to: manual entry, click selection, and the like. The electronic equipment selects a preset virtual card from the virtual card list according to the selection operation of the user.
Further, the electronic device establishes a geo-fence at the current location, and establishes a corresponding relationship between the geo-fence information and the preset virtual card, wherein the geo-fence information is used for indicating a boundary and a range of a building, a park or a community of the location where the electronic device is located. And storing the current setting result into the electronic equipment, and calling the preset virtual card to perform data interaction operation without manual selection again when the electronic equipment detects that the current position of the electronic equipment is in the target geo-fence next time.
In another possible example, the virtual card that the user desires has not been added to the current virtual card list. At this time, the user may select "wallet application" and perform addition of a preset virtual card while searching for or using a physical card close to the electronic device. And after the user adds the current virtual card into the virtual card list, selecting the current virtual card as a preset virtual card.
Further, after determining the preset virtual card, the electronic device performs a data interaction operation using the preset virtual card. Wherein, the data interaction operation comprises: payment data interaction, user identity information interaction confirmation operation and the like. The data interaction operation is determined according to the specific function of the preset virtual card, and will not be described in detail herein.
It can be seen that, by the method provided in the embodiment of the present application, if there is no preset geo-fence in the location of the current electronic device, the electronic device may establish a geo-fence corresponding to the current location, and establish a corresponding relationship between the geo-fence information and the preset virtual card. The selection mode of the preset virtual card comprises various modes, such as directly calling a default virtual card by the electronic equipment, calling a last used virtual card or giving a user a choice of one virtual card. Therefore, when the electronic equipment reaches the position next time, the preset virtual card corresponding to the geo-fence containing the current position can be directly called to execute data interaction operation, and the data interaction efficiency and the user experience are improved.
In one possible example, the determining, according to the location information, geofence information corresponding to a location where the electronic device is located includes: calling a map SDK according to the position information; determining building information of a building corresponding to the position of the electronic equipment through the map SDK, wherein the building information is determined by the map SDK according to the position information to define the building, the garden or the community in a preset range; and determining the geo-fence information according to the building information.
Specifically, the electronic device may invoke the map SDK according to location information of the electronic device when performing the data interaction operation. And the map SDK defines buildings, parks or communities in a preset range according to the position of the electronic equipment, and further takes the currently defined range as the area and the boundary of the geo-fence. When it needs to be explained, the preset range may be a range preset by the electronic device system, or may also be a range set by the user according to a daily use habit, and when the electronic device constructs the geo-fence, the range of the geo-fence is determined by calling preset parameter information. The shape of the geofence covered by the preset range can be, but is not limited to: a circle with a radius of 5km, an equilateral triangle with a distance of 6km from the inner center, etc.
In another possible example, a scene diagram for determining scene information is provided in the embodiment of the present application as shown in fig. 2C. Such as the electronic device 200 shown in fig. 2C. And the electronic equipment calls the map SDK and displays an electronic map interface containing the position. The user can execute target operation on the electronic map interface, which specifically includes but is not limited to: enter the target building name in the search box, for example: xx building, and marking the building as a target building; and drawing the target area shown in fig. 2C directly on the electronic map interface, wherein the drawing result corresponds to a target building delineation range, and the target building delineation range comprises one or more target buildings.
It should be noted that the drawn region shapes include, but are not limited to: circular, rectangular, and irregular patterns, etc. And is not particularly limited herein. In addition, the range of the electronic map interface including the position displayed by the current electronic equipment does not have a restriction relation with the position of the target building selected by the user and the area size between the drawn region graphs. The user can select buildings outside the current interface as target buildings according to actual requirements, and draw areas beyond the current interface as target areas without excessive limitation. The target building includes, but is not limited to, a location of the electronic device and boundaries and ranges of buildings, parks or communities beyond the location.
Further, the electronic device acquires corresponding target building information according to the target operation of the user.
Further, the electronic device obtains preset virtual card information of the currently executed data interaction operation, where the virtual card information includes, but is not limited to, identification information of a virtual card.
Further, a corresponding relation between the geo-fence information and the preset virtual card is established.
It should be further noted that, at present, the cards bound in the mobile terminal are generally managed by the wallet APP, so that the creation of the geo-fence is also created by calling the map SDK in the wallet APP. Of course, this is not the only way, if the card is managed by other APPs, the creation of the geofence could also be created by other APPs invoking the map SDK.
It can be seen that, in the embodiment of the application, the target building in the scene information can be confirmed by the electronic device to define the building within the preset range as the target building, or by interactive selection between the user and the electronic device, the selection modes are multiple, and the electronic device determines the target building information according to the selection of the user; and further determining scene information by combining the identification information of the virtual card. Therefore, the user participates in the selection of the target area, so that the acquired target geo-fence area is more accurate, and the accuracy and the efficiency of the intelligent card cutting are guaranteed.
In one possible example, the method further comprises determining the geo-fence information from the building information, the method further comprising: determining a plane closed area of the building, the park or the community on an electronic map interface according to the building information; determining boundary point coordinates of the plane closed region; connecting boundary points according to the boundary point coordinate sequence to obtain a first closed region; and determining the boundary and the range of the position of the electronic equipment according to the first closed area.
Illustratively, in real life, the target building exists in a three-dimensional stereo mode, and the projection of the target building on the electronic map interface is a plane area. The electronic equipment determines the geo-fence information corresponding to the defined target building after defining the building as the target building according to a preset range or defining the building as the target building according to a map interface of a user, and then obtains a projection area of the target building on an electronic map, namely a plane closed area. If the target building currently selected by the user is a single target building, please refer to fig. 2D specifically, which is a schematic view of a scene in which the single target building constructs the first area, as shown in fig. 2D. As shown in fig. 2D, if the current target building is a left building a, the coordinate point of the projection area of the building a on the electronic map is shown on the right side of fig. 2D, the boundary point is identified by a five-pointed star, the plane area formed by connecting the boundary points is the target area, and at this time, the target area and the first closed area to be constructed are the overlapping area.
And if the target buildings selected by the user are a plurality of target buildings, determining boundary points corresponding to the projection areas of each target building on the electronic map. Specifically, referring to fig. 2E, a scene diagram of a first area constructed by multiple target buildings is shown in fig. 2E. As shown in fig. 2E, the current target building includes three buildings of different shapes, and the plane areas of the buildings correspond to the respective boundary points on the electronic map (the right-side five-pointed star of fig. 2E represents each boundary point).
Further, in the manner shown in the upper right box of fig. 2E: and (3) taking the position coordinate as an axis, connecting a boundary point arbitrarily as a starting point, starting from the current starting point, and sequentially connecting all the boundary points to form a closed area shown on the right side of the 2E, wherein the closed area is the first closed area. It should be noted that the connection mode of the boundary points may also be a counterclockwise direction, or other mode to construct the first closed region, and only one of the possible modes is shown here.
Wherein the first closed area includes a location at which the data interaction operation is performed.
Further, a mapping relation is established between the target virtual card at the position for executing the data interaction operation and the first closed area, and specifically, a corresponding relation with the first closed area is established through the identification information of the target virtual card. Thus, the target geo-fence corresponding to the preset virtual card is obtained.
It should be noted that the first closed region may be directly confirmed as the current target closed region by the electronic device, or may be preset to expand a certain range, for example, 5m, toward the lateral region with the closed region constructed by the current boundary point as the center. Will not be described in detail herein.
It can be seen that, in the embodiment of the application, the electronic device may obtain the projection area of the target building and the boundary point coordinates corresponding to the projection area according to the target building selected by the user. And constructing a planar closed area according to the boundary point coordinates, and further establishing a mapping relation between a preset virtual card and the closed area to obtain a target geo-fence corresponding to the preset virtual card.
In one possible example, the at least one virtual card includes a calling default virtual card and a last used virtual card.
For example, if the electronic device confirms that the current location is not in the preset geo-fence, the electronic device may directly call the default virtual card to perform the data interaction operation. Or calling the last used virtual card to perform data interaction operation with the NFC card reader.
Further, if the currently invoked virtual card cannot perform the data interaction operation, the data interaction operation may be performed by providing a virtual card selection interface to the user.
It can be seen that in the embodiment of the application, by directly calling the default virtual card or the last used virtual card, and performing data interaction operation with the NFC card reader, it is possible to quickly call the virtual card to complete the data interaction operation.
In one possible example, the method further includes: displaying the first enclosed area on a geofence adjustment interface; adjusting the boundary point coordinates of the plane closed area in response to the selection operation of the user from the geo-fence adjustment fence to obtain target boundary point coordinates; drawing a second closed area according to the target boundary point coordinates, and determining the boundary and the range of the position of the electronic equipment according to the second closed area.
Specifically, after the electronic device completes the connection operation of the boundary point of the target building and obtains a closed area, i.e., a first closed area. The drawing result can be displayed to the user on the current interface, and the user confirms whether the drawing result of the first closed area is accurate or not.
In one possible example, the user may adjust the current first closed region according to the actual application scenario. The adjustment modes include but are not limited to: drag the boundary point to the appropriate area. And performing confirmation operation on the adjusted first closed area to obtain a second closed area.
In another possible example, the user may directly perform a confirmation operation on the current drawing result of the first closed region, and directly take the first closed region as the target region, that is, the second closed region.
Therefore, according to the embodiment of the application, the electronic equipment can deliver the drawn closed area corresponding to the target building to a user for confirmation, and the user can adjust or directly confirm the graph drawn by the electronic equipment according to the actual application requirement. Therefore, a more accurate target geo-fence can be obtained, and the accuracy and the efficiency of the intelligent card cutting are further guaranteed.
In one possible example, the establishing a correspondence between the geo-fence information and a preset virtual card includes: determining the identification information of the preset virtual card; and binding the corresponding relation between the identification information and the first closed area and/or the second closed area to establish the corresponding relation between the geo-fence information and a preset virtual card, and taking the boundary and range corresponding to the first closed area and/or the second closed area as the geo-fence corresponding to the preset virtual card.
Specifically, the electronic device obtains the first closed area and/or the second closed area confirmed by the user according to the above steps.
Further, identification information of a preset virtual card, where the electronic device performs data interaction operation, at the position is determined, and a mapping relation between the first closed area and/or the second closed area and the preset virtual card is established, so that a geo-fence corresponding to the preset virtual card is obtained.
It can be seen that, in the embodiment of the application, the electronic device constructs and stores the corresponding relationship between the first closed area and/or the second closed area confirmed by the user and the preset virtual card performing the data interaction operation at the position where the first closed area and/or the second closed area are located. Therefore, when the electronic equipment detects that the position of the electronic equipment enters the first closed area and/or the second closed area, the preset virtual card is directly called to execute data interaction operation, and the data interaction efficiency is improved.
In a possible example, the method of identifying a target virtual card to be used for performing a data interaction operation according to the geo-fence information specifically includes the steps of: determining identification information corresponding to the geo-fence information; acquiring a preset virtual card corresponding to the identification information; judging whether the geofence corresponding to the geofence information is marked with mark information or not according to the identification information; if the geographic fence does not mark the marking information, taking the preset virtual card as a target virtual card for executing the data interaction operation; if the geo-fence is marked with the marking information, the preset virtual card is used as a target virtual card corresponding to the position information and to be used for executing the data interaction operation, the position change of the electronic equipment is detected in real time, and the virtual card switching operation is executed according to the position change of the electronic equipment so as to confirm the target virtual card to be used for executing the data interaction operation.
Specifically, when the electronic device determines that the preset geo-fence exists in the current position, the corresponding target virtual card is determined according to the geo-fence information.
Further, the identification information of the target virtual card is obtained. If the fact that the geographic fence (target geographic fence) corresponding to the current position of the electronic equipment does not have the mark information is judged according to the target virtual card, it can be shown that the smart card cutting application scene only comprises one preset virtual card, the target virtual card is in one-to-one correspondence with the target geographic fence, and the corresponding preset virtual card in the range of the target geographic fence can be selected through the identification ID.
Specifically, if the geo-fence presence flag information corresponding to the current location of the electronic device indicates that the current geo-fence has the feature of "column in column". If the current geo-fence is a bar-in-bar, the current marking information can embody the characteristic information of the bar-in-bar. For example, the marking information of the first fence is "fence-in-fence-large fence", and the marking information of the second fence is "fence-in-fence-small fence". Thus, the middle rail is characterized by the first rail comprising the second rail. Then, whether the current position of the electronic equipment corresponds to the large fence or the small fence of the column-in-column, namely the first fence or the second fence, is determined according to the identification ID of the virtual card.
Further, the change situation of the position of the electronic device is detected in real time, and when the current position is detected to be switched from the first fence to the second fence or from the second fence to the first fence, the electronic device is automatically switched to the corresponding virtual card.
Further, data interaction operations may be performed with the NFC reader using the virtual card within range of the geofence.
Further, if it is determined that the mark information corresponding to the current target virtual card is "column in column-large fence", the current position of the electronic device is located in an area between the first fence and the second fence. The method comprises the steps that the electronic equipment monitors the change of the current position of the electronic equipment in real time, if the current position is detected to enter a second fence, namely a fence-in-fence area, a smart card switching operation is executed, a current virtual card is switched from a virtual card corresponding to the fence-in-fence area to a target virtual card corresponding to the fence-in-fence area, and the target virtual card is used for executing data interaction operation with an NFC card reader.
Therefore, by the method provided by the embodiment of the application, the electronic device can determine the current intelligent card cutting scene according to whether the mark information exists in the preset geographic fence or not. Therefore, in practical application, whether the scene is the 'fence in the fence' scene can be determined firstly, when the electronic equipment enters the 'fence in the fence' scene, different virtual cards can be selected according to different fences corresponding to the position change of the electronic equipment, the virtual cards can be selected accurately according to the geographic fences corresponding to the actual use areas of the users, and the improvement of user experience is facilitated.
In a possible example, the method includes, by taking the preset virtual card as a target virtual card corresponding to the location information and to be used for performing a data interaction operation, the following steps: if the first mark information exists in the geo-fence, determining that the geo-fence is the first fence according to the association relationship between the first mark information and the first fence, determining that the preset virtual card is the first virtual card, and taking the first virtual card as a target virtual card corresponding to the position information and to be used for executing data interaction operation; before the detecting the position change of the electronic device in real time, the method further includes: determining second mark information corresponding to the first mark information and a second fence corresponding to the second mark information, and determining a preset virtual card corresponding to the second fence as a second virtual card according to an association relation between the second mark information and the second fence, wherein the first mark information corresponds to the second mark information, and the first mark information and/or the second mark information are/is used for identifying the size relation between the first fence and the second fence.
Wherein the tag information includes first tag information and second tag information.
It should be noted that, when the mark information of the preset geo-fence is the second mark information, the above method is also applicable, and is not limited herein.
It can be seen that, in this example, a current smart card cutting scene may be determined according to whether there is label information in a geo-fence corresponding to a location where the electronic device is located, and when there is first label information, it may be determined that the current smart card cutting scene is a "fence-in-fence" scene, and further, according to the first label information, a corresponding first fence and a second fence corresponding to the first fence may be determined; therefore, in practical application, whether the scene is the 'fence in the fence' scene can be determined firstly, when the electronic equipment enters the 'fence in the fence' scene, different virtual cards can be selected subsequently according to different fences, the virtual cards can be selected accurately according to the geographic fences corresponding to the actual use areas of the users, and the improvement of user experience is facilitated.
In one possible example, the method for performing a virtual card switching operation according to a change in the position of the electronic device to identify a target virtual card to be used for performing a data interaction operation includes the following steps: if the position is detected to enter the range of the second fence, the first virtual card is switched to the second virtual card, so that the second virtual card is confirmed as the target virtual card, and the second virtual card and an NFC card reader corresponding to the second fence are called to perform data interaction operation.
Wherein each geofence (either the first fence or the second fence) can correspond to a range of use.
For example, when a user enters a certain cell, there is a gate device at the peripheral doorway of the cell (the gate device is equipped with an NFC reader), and each unit of the user has a gate device of a respective unit building (each unit building can also be equipped with an NFC reader); when the two access control devices are different, the electronic device can enter a 'fence-in-fence' scene after entering the cell: the second fence corresponding to the entrance guard equipment of the unit building is contained in the first fence corresponding to the entrance guard equipment of the community.
In this case, the electronic device may create a first fence and a second fence for the two access control devices, and mark the two fences respectively, and may mark first mark information, such as "fence in fence-large fence", for the first fence, and mark second mark information, such as "fence in fence-small fence", for the second fence, and after the user enters a preset geo-fence, if the preset geo-fence has the first mark information, it may be determined that the electronic device enters a "fence in fence" scene, it is determined that the first mark information corresponds to the first virtual card, and it is determined that the preset geo-fence is the first fence; further, the first virtual card may be called to perform a data interaction operation with the NFC card reader corresponding to the first fence (for example, open the first fence, i.e., the access control device corresponding to the cell gate).
Still further, the position change of the electronic device may be monitored, and after it is determined that the electronic device enters a second fence corresponding to the entrance guard equipment of the unit building, the first virtual card may be switched to a second virtual card corresponding to the second fence, and data interaction operation between the NFC card reader corresponding to the second fence is completed through the second virtual card, for example, the entrance guard equipment corresponding to the unit building is opened.
Specifically, please refer to fig. 2F, which is a schematic diagram of a smart card-cutting scene in an actual application process according to an embodiment of the present application.
Exemplarily, the left side is an application scenario in which no mark information exists in the geo-fence corresponding to the location of the electronic device. And when detecting that the current position of the user exists in the preset geographic fence and the current position of the user only corresponds to one geographic fence, the electronic equipment executes data interaction operation according to the preset virtual card corresponding to the preset geographic fence.
Exemplarily, the right side is an application scenario corresponding to the presence flag information in the above method. When the position where the user is located is detected to be a position 1 where the diagram star is located, the preset geo-fence corresponding to the current position 1 comprises: hurdle-big rail and hurdle-little rail. The electronic equipment acquires identification information of the large fence and the small fence, and calls a second virtual card corresponding to the small fence at the current position according to the fact that only one virtual card corresponding to the small fence in the current fence is a second virtual card. And after the user uses the second virtual card to execute data interaction operation with the NFC card reader, detecting the change condition of the position information of the user in real time. When the user is detected to move to the position 2, the current position only corresponds to one geo-fence, namely a fence-in-fence-big-fence, the first virtual card identification information of the virtual card corresponding to the current position is obtained according to the identification information of the fence-in-fence-big-fence, and the electronic equipment calls the first virtual card to execute data interaction operation according to the identification information of the first virtual card.
Another possible example of the illustration below the application scenario as shown in fig. 2F is: when the user starting position is at the position 3, only one geo-fence corresponding to the current position is detected, but two virtual cards are contained in the range of the current geo-fence. At the moment, the electronic equipment acquires mark information of the column-big fence in the column, acquires corresponding virtual card identification information according to the mark information, and calls the first virtual card to execute data interaction operation according to the identification information of the virtual card. After the data interaction operation is executed, the change of the located position of the user is monitored in real time, when the user enters the located position 4 shown in the lower area of fig. 2F, it is detected that the current located position is located in two geo-fences, but it can be determined according to the mark information of the current geo-fence that the fence-small fence in the current fence corresponds to only one virtual card, that is, the second virtual card. And the electronic equipment acquires the identification information of the corresponding second virtual card according to the marking information of the column-small fence in the column, and calls the second virtual card to execute data operation according to the identification information.
It can be seen that, in the smart card cutting method described in the embodiment of the present application, identification information of a preset virtual card is obtained; judging whether the geographic fence corresponding to the position of the electronic equipment has mark information or not according to the identification information; and if the mark information exists in the preset geographic fence, detecting the position change of the electronic equipment in real time, and executing virtual card switching operation according to the position change of the electronic equipment. Therefore, the electronic equipment can determine the scene of the electronic equipment according to whether the mark information exists in the geo-fence corresponding to the position of the electronic equipment, and after the mark information exists, the electronic equipment is determined to be in the scene of the 'fence-in-fence', the change situation of the position of the user can be further monitored in real time, the virtual card switching operation is executed according to the change situation of the position, namely, the currently used virtual card of the user is updated, the virtual card can be accurately selected according to the geo-fence corresponding to the actual use area of the user, and the improvement of user experience is facilitated.
In one possible example, please refer to a flow diagram of a large and small fence construction shown in fig. 3A. The method for establishing the corresponding relationship between the geo-fence information and the preset virtual card specifically includes the following steps as shown in fig. 3A:
s301, determining scene information of the preset virtual card according to the boundary and the range in the geo-fence information.
S302, if the scene information meets a preset scene, acquiring a plurality of preset virtual cards, wherein each virtual card corresponds to a unique identifier and geographical position information, and the geographical position information is used for indicating the use range of the corresponding preset virtual card.
Specifically, one or more virtual cards are stored in the wallet application of the electronic device, and each virtual card has unique identification information. And each virtual card is preset with a corresponding application range and a corresponding use place. Therefore, the electronic device can determine whether multiple virtual card usage scenarios exist within the range of the current geo-fence according to the boundary and the range of the geo-fence information. If the current scene information meets the preset scene, namely the scene requirement for switching the virtual card exists in the range of the geo-fence. And acquiring a plurality of preset virtual cards in the electronic equipment, wherein each virtual card corresponds to a unique identifier and geographical position information, and the geographical position information is used for indicating the use range of the corresponding preset virtual card. In a practical application scenario, all virtual cards may be saved at the virtual card list in a wallet-like application. The electronic device may obtain the list of virtual cards via a wallet application.
S303, aiming at the any two preset virtual cards, selecting a larger use range from the use ranges respectively corresponding to the any two preset virtual cards, creating a first fence, and determining first geo-fence information corresponding to the first fence.
Illustratively, any two virtual cards are selected from the virtual card list, and the use ranges corresponding to the two virtual cards are obtained. And selecting the fence with the larger use range to create a first fence and the fence with the smaller use range to create a second fence.
Specifically, the position relationship between the first fence and the second fence is an inclusion relationship, in other words, the size relationship between the first fence and the second fence is that the first fence is larger than the second fence.
It should be noted that the first fence may also be created for a smaller usage range, and then, correspondingly, the second fence may be created for a virtual card with a larger usage range, and a specific creation manner is not limited herein.
S304, selecting a smaller use range from the use ranges respectively corresponding to the two preset virtual cards, creating a second fence, and determining second geographic fence information corresponding to the second fence.
S305, marking the first fence and the second fence to obtain first marking information of the first fence relative to the second fence and second marking information of the second fence relative to the first fence, wherein the first marking information and/or the second marking information are used for identifying the size relationship between the first fence and the second fence.
S306, respectively establishing a corresponding relation between first geo-fence information corresponding to the first fence and a first preset virtual card corresponding to the first fence, and a corresponding relation between second geo-fence information corresponding to the second fence and a second preset virtual card corresponding to the second fence.
In general, the first flag information and the second flag information are present in a one-to-one correspondence.
Illustratively, the first fence and the second fence are respectively marked, and the mark is used for characterizing the relationship between the first fence and the second fence, namely, when the electronic device detects the first mark information aiming at the first fence, the electronic device can indicate that the first fence corresponds to the second fence. Please refer to fig. 3B, which illustrates a relationship between the first rail and the second rail. That is, the smart card-cutting application scene where the electronic device is located is a "fence-in-fence" scene, the current first fence is the "fence-in-fence-large fence" shown in fig. 3B, and the second fence is the "fence-in-fence-small fence" shown in fig. 3B. The first fence and the second fence are in a positional relationship such that the first fence comprises the second fence.
The association relations are respectively used for representing the mapping relations between one of the virtual cards and the corresponding first fence and between the other virtual card and the corresponding second fence.
Specifically, the "column in column-large fence" shown in fig. 3B, that is, the virtual card corresponding to the first fence is the first virtual card; the column-small fence in the column is the second virtual card corresponding to the second fence. The first virtual card and the second virtual card have corresponding identification information respectively.
Further, an association relationship between the corresponding first fence and the corresponding second fence is set according to the identification information of the first virtual card and the second virtual card, so that a first target geo-fence corresponding to the first virtual card and a second target geo-fence corresponding to the second virtual card are obtained.
In another possible example, please refer to a scene diagram of a column in multiple columns shown in fig. 3C. As shown in fig. 3C, it is determined according to the current geo-fence information that the preset scene information exists in the current area, and the scene information may respectively correspond to three buildings on the left side of fig. 3C, and respectively have corresponding geo-fence information and associated preset virtual cards. Meanwhile, scene information of 'column in column-large fence' exists in the position point where the current electronic equipment is located.
Further, the electronic device acquires a plurality of preset virtual cards, wherein each virtual card corresponds to the unique identifier and the geographic position information. Through the steps, the position change of the electronic equipment is detected in real time, and then the switching of the preset virtual card is carried out. The preset virtual card includes: the default virtual cards corresponding to the column-in-column small fence 1, the column-in-column small fence 2, the column-in-column small fence 3, and the column-in-column large fence are not described in detail herein.
It can be seen that, with the method provided by the embodiment of the present application, the scene information of the preset virtual card is determined according to the boundary and the range in the geo-fence information, and if the current scene information is satisfied, a plurality of virtual cards are obtained; aiming at any two preset virtual cards, selecting a larger use range from the use ranges respectively corresponding to the two preset virtual cards, creating a first fence, and determining first geo-fence information corresponding to the first fence; selecting a smaller use range from the use ranges respectively corresponding to any two preset virtual cards, creating a second fence, and determining second geographic fence information corresponding to the second fence; marking the first fence and the second fence to obtain first marking information of the first fence relative to the second fence and second marking information of the second fence relative to the first fence, wherein the first marking information and/or the second marking information are used for identifying the size relationship between the first fence and the second fence; respectively establishing a corresponding relation between first geo-fence information corresponding to the first fence and a first preset virtual card corresponding to the first fence, and a corresponding relation between second geo-fence information corresponding to the second fence and a second preset virtual card corresponding to the second fence. Therefore, when the electronic equipment can realize the switching of the position from the large fence and the small fence according to the real-time detection of the current position change, the virtual card is correspondingly switched, and the corresponding virtual card is used for executing data interaction operation without the need of virtual card selection of a user. The intelligent card cutting efficiency and the experience of the user are improved. Therefore, through the device provided by the embodiment of the application, the geo-fence is selected through interaction between the user and the electronic equipment, and the map area coordinate is combined to draw the geo-fence area more accurately, so that the efficiency and the accuracy of intelligent card cutting are improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating another smart card cutting method according to an embodiment of the present application, and as shown in fig. 4, the smart card cutting method according to the present application is applied to an electronic device and includes the following steps.
S401, obtaining the position information of the electronic equipment.
S402, calling the map SDK according to the position information.
And S403, determining building information of a building corresponding to the position of the electronic equipment through the map SDK.
S404, determining a plane closed area of the building, the park or the community on an electronic map interface according to the building information.
S405, determining the boundary point coordinates of the plane closed region.
And S406, connecting the boundary points according to the coordinate sequence of the boundary points to obtain a first closed region.
S407, determining the boundary and the range of the position of the electronic equipment according to the first closed area to obtain the geo-fence information.
S408, establishing a corresponding relation between the geo-fence information and a preset virtual card.
S409, determining scene information of the preset virtual card according to the boundary and the range in the geo-fence information.
Specifically, if the scene information meets a preset scene, acquiring a plurality of preset virtual cards, wherein each virtual card corresponds to a unique identifier and geographical position information, and the geographical position information is used for indicating a use range of the corresponding preset virtual card.
Further, for any two preset virtual cards, selecting a larger use range from the use ranges respectively corresponding to the two preset virtual cards, creating a first fence, and determining first geo-fence information corresponding to the first fence.
Further, a smaller use range of the use ranges respectively corresponding to the two arbitrary preset virtual cards is selected, a second fence is created, and second geo-fence information corresponding to the second fence is determined.
Further, the first fence and the second fence are marked to obtain first marking information of the first fence relative to the second fence and second marking information of the second fence relative to the first fence, wherein the first marking information and/or the second marking information are used for identifying a size relationship between the first fence and the second fence.
Further, respectively establishing a corresponding relation between first geo-fence information corresponding to the first fence and a first preset virtual card corresponding to the first fence, and a corresponding relation between second geo-fence information corresponding to the second fence and a second preset virtual card corresponding to the second fence.
As can be seen, in the method provided in this example, the electronic device may obtain the location information of the electronic device, and invoke the map SDK according to the location information. And determining the building information of the building corresponding to the position of the electronic equipment through the map SDK. And determining a plane closed area of the building, the park or the community on an electronic map interface according to the building information. And determining the boundary point coordinates of the plane closed area. And connecting boundary points according to the boundary point coordinates in sequence to obtain a first closed region. And determining the boundary and the range of the position of the electronic equipment according to the first closed area to obtain the geo-fence information. And establishing a corresponding relation between the geo-fence information and a preset virtual card. And determining scene information of the preset virtual card according to the boundary and the range in the geo-fence information. Further, whether the current geo-fence has a large fence or a small fence can be determined according to the scene information, and the virtual card is switched in real time to serve as a preset virtual card to perform data interaction operation according to the position change of the electronic device.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that, in the embodiment of the present application, the division of the unit is schematic, and is only one logic function division, and when the actual implementation is realized, another division manner may be provided.
In the case of dividing each function module according to each function, in accordance with the embodiment of fig. 2A, please refer to fig. 5, fig. 5 shows a block diagram of functional units of a smart card cutting device according to an embodiment of the present application, as shown in fig. 5, the smart card cutting device 500 may include: an acquisition unit 501, a confirmation unit 502, and an execution unit 503. Wherein the content of the first and second substances,
the obtaining unit 501 may be configured to support the electronic device to perform the step S201 and/or other processes for the techniques described herein.
The validation unit 502 may be used to support the electronic device in performing step S202 described above, and/or other processes for the techniques described herein.
The execution unit 503 may be used to support the electronic device to perform step S203 described above, and/or other processes for the techniques described herein.
It can be seen that, in the smart card cutting device described in the embodiment of the present application, the location of the electronic device is obtained by the obtaining unit; the confirming unit confirms the geo-fence information corresponding to the position of the electronic equipment according to the position information, wherein the geo-fence information is used for indicating the boundary and the range of a building, a garden or a community of the position of the electronic equipment. And the execution unit confirms a target virtual card to be used for executing data interaction operation according to the geo-fence information. Therefore, through the device provided by the embodiment of the application, the geo-fence is selected through interaction between the user and the electronic equipment, and the map area coordinate is combined to draw the geo-fence area more accurately, so that the efficiency and the accuracy of intelligent card cutting are improved.
In a possible example, after obtaining the location information of the electronic device, the confirming unit 502 specifically performs the following steps:
determining the geo-fence information corresponding to the position of the electronic equipment according to the position information;
and establishing a corresponding relation between the geo-fence information and a preset virtual card, wherein the preset virtual card is a virtual card for the electronic equipment to perform data interaction operation at the position indicated by the position information.
In a possible example, the determining, according to the location information, geofence information corresponding to the location where the electronic device is located is performed by the execution unit 503, specifically performing the following steps:
calling a map SDK according to the position information;
determining building information of a building corresponding to the position of the electronic equipment through the map SDK, wherein the building information is determined by defining the building, the park or the community within a preset range according to the position information through the map SDK;
and determining the geo-fence information according to the building information.
In a possible example, the determining the geo-fence information according to the building information, the executing unit 503 specifically executes the following steps:
determining a plane closed area of the building, the park or the community on an electronic map interface according to the building information;
determining boundary point coordinates of the plane closed region;
connecting boundary points according to the boundary point coordinate sequence to obtain a first closed region;
and determining the boundary and the range of the position of the electronic equipment according to the first closed area.
In one possible example, the execution unit 503 specifically executes the following steps:
displaying the first enclosed area on a geofence adjustment interface;
adjusting the boundary point coordinates of the plane closed area in response to the selection operation of the user from the geo-fence adjustment fence to obtain target boundary point coordinates;
drawing a second closed area according to the target boundary point coordinates, and determining the boundary and the range of the position of the electronic equipment according to the second closed area.
In a possible example, the step of establishing the corresponding relationship between the geo-fence information and the preset virtual card is specifically executed by the execution unit 503, and is as follows:
determining identification information of the preset virtual card;
and binding the corresponding relation between the identification information and the first closed area and/or the second closed area to establish the corresponding relation between the geo-fence information and a preset virtual card, and taking the boundary and range corresponding to the first closed area and/or the second closed area as the geo-fence corresponding to the preset virtual card.
In a possible example, the step of confirming the target virtual card to be used for performing the data interaction operation according to the geo-fence information is specifically performed by the confirming unit 502 as follows:
determining a target virtual card corresponding to the geo-fence information;
acquiring identification information of the target virtual card;
judging whether the geofence corresponding to the geofence information is marked with mark information or not according to the identification information;
if the geo-fence does not mark the marking information, taking the target virtual card as a virtual card for executing the data interaction operation;
if the geo-fence is marked with the marking information, the target virtual card is used as a virtual card corresponding to the position information and to be used for executing data interaction operation, the position change of the electronic equipment is detected in real time, and virtual card switching operation is executed according to the position change of the electronic equipment so as to confirm the target virtual card to be used for executing data interaction operation.
In a possible example, the step executed by the execution unit 503 specifically includes, by taking the preset virtual card as a target virtual card to be used for executing the data interaction operation corresponding to the location information, that is:
if the first mark information exists in the geo-fence, determining that the geo-fence is the first fence according to the association relationship between the first mark information and the first fence, determining that the preset virtual card is the first virtual card, and taking the first virtual card as a target virtual card corresponding to the position information and to be used for executing data interaction operation;
before the detecting the position change of the electronic device in real time, the method further comprises:
determining second mark information corresponding to the first mark information and a second fence corresponding to the second mark information, and determining a preset virtual card corresponding to the second fence as a second virtual card according to an association relation between the second mark information and the second fence, wherein the first mark information corresponds to the second mark information, and the first mark information and/or the second mark information are/is used for identifying the size relation between the first fence and the second fence.
In a possible example, the executing unit 503 specifically executes the following steps to perform the virtual card switching operation according to the position change of the electronic device to confirm the target virtualization to be used for executing the data interaction operation:
if the position is detected to enter the range of the second fence, the first virtual card is switched to the second virtual card, so that the second virtual card is confirmed as the target virtual card, and the second virtual card and an NFC card reader corresponding to the second fence are called to perform data interaction operation.
In a possible example, the establishing a corresponding relationship between the geo-fence information and a preset virtual card, the executing unit 503 specifically executes the following steps:
determining scene information of the preset virtual card according to the boundary and the range in the geo-fence information;
if the scene information meets a preset scene, acquiring a plurality of preset virtual cards, wherein each virtual card corresponds to a unique identifier and geographical position information, and the geographical position information is used for indicating the use range of the corresponding preset virtual card;
aiming at any two preset virtual cards, selecting a larger use range from the use ranges respectively corresponding to the any two preset virtual cards, creating a first fence, and determining first geo-fence information corresponding to the first fence;
selecting a smaller use range from the use ranges respectively corresponding to the two arbitrary preset virtual cards, creating a second fence, and determining second geographic fence information corresponding to the second fence;
marking the first fence and the second fence to obtain first marking information of the first fence relative to the second fence and second marking information of the second fence relative to the first fence, wherein the first marking information and/or the second marking information are used for identifying the size relationship between the first fence and the second fence;
respectively establishing a corresponding relation between first geo-fence information corresponding to the first fence and a first preset virtual card corresponding to the first fence, and a corresponding relation between second geo-fence information corresponding to the second fence and a second preset virtual card corresponding to the second fence.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
The electronic device provided by the embodiment is used for executing the above-mentioned smart card cutting method as shown in fig. 2A or fig. 5, so that the same effect as that of the above-mentioned implementation method can be achieved.
In case an integrated unit is employed, the electronic device may comprise a processing module, a storage module and a communication module. The processing module may be configured to control and manage an action of the electronic device, for example, may be configured to support the electronic device to perform the steps performed by the obtaining unit 501, the confirming unit 502, and the executing unit 503. The memory module can be used to support the electronic device in executing stored program codes and data, etc. The communication module can be used for supporting the communication between the electronic equipment and other equipment.
Where an integrated unit is employed, the electronic device may include a processing module, a memory module, and a communication module. The processing module may be configured to control and manage an action of the electronic device, for example, may be configured to support the electronic device to perform the steps performed by the obtaining unit 501, the confirming unit 502, and the executing unit 503. The memory module may be used to support the electronic device in executing stored program codes and data, etc. The communication module can be used for supporting the communication between the electronic equipment and other equipment.
The processing module may be a processor or a controller. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. A processor may also be a combination of computing functions, e.g., a combination of one or more microprocessors, a Digital Signal Processing (DSP) and a microprocessor, or the like. The storage module may be a memory. The communication module may specifically be a radio frequency circuit, a bluetooth chip, a Wi-Fi chip, or other devices that interact with other electronic devices.
Consistent with the embodiment shown in fig. 2A, the terminal according to the embodiment of the present application may be the electronic device shown in fig. 6, and includes a processor, a memory, a communication interface, and one or more programs, which are stored in the memory and configured to be executed by the processor, and the programs include a program for executing the smart card cutting method, so that the same effects as the implementation method can be achieved.
In one possible example, if the electronic device comprises a mobile terminal, the one or more programs include instructions for:
acquiring the position information of the electronic equipment;
confirming geo-fence information corresponding to the position of the electronic equipment according to the position information, wherein the geo-fence information is used for indicating the boundary and the range of a building, a park or a community of the position of the electronic equipment;
and confirming a target virtual card to be used for executing data interaction operation according to the geo-fence information.
It can be seen that, the electronic device described in the embodiment of the present application obtains the location information of the electronic device; confirming geo-fence information corresponding to the position of the electronic equipment according to the position information, wherein the geo-fence information is used for indicating the boundary and the range of a building, a park or a community of the position of the electronic equipment; and confirming a target virtual card to be used for executing the data interaction operation according to the geo-fence information. Therefore, through the method provided by the embodiment of the application, the geo-fence is selected through interaction between the user and the electronic equipment, and the map area coordinate is combined to draw the geo-fence area more accurately, so that the efficiency and the accuracy of intelligent card cutting are improved.
In one possible example, after the obtaining of the location information of the electronic device, the program includes instructions for performing the following steps:
determining the geo-fence information corresponding to the position of the electronic equipment according to the position information;
and establishing a corresponding relation between the geo-fence information and a preset virtual card, wherein the preset virtual card is a virtual card for the electronic equipment to perform data interaction operation at the position indicated by the position information.
In one possible example, the determining, according to the location information, geo-fence information corresponding to a location where the electronic device is located includes instructions for:
calling a map SDK according to the position information;
determining building information of a building corresponding to the position of the electronic equipment through the map SDK, wherein the building information is determined by the map SDK according to the position information to define the building, the garden or the community in a preset range;
and determining the geo-fence information according to the building information.
In one possible example, the determining the geo-fence information based on the building information, the program includes instructions for:
determining a plane closed area of the building, the park or the community on an electronic map interface according to the building information;
determining boundary point coordinates of the plane closed region;
connecting boundary points according to the boundary point coordinate sequence to obtain a first closed region;
and determining the boundary and the range of the position of the electronic equipment according to the first closed area.
In one possible example, the execution unit 503 specifically executes the following steps:
displaying the first enclosed area on a geofence adjustment interface;
adjusting the boundary point coordinates of the plane closed area in response to the selection operation of the user from the geo-fence adjustment fence to obtain target boundary point coordinates;
drawing a second closed area according to the target boundary point coordinates, and determining the boundary and the range of the position of the electronic equipment according to the second closed area.
In one possible example, the establishing the corresponding relationship between the geo-fence information and the preset virtual card includes instructions for:
determining the identification information of the preset virtual card;
and binding the corresponding relation between the identification information and the first closed area and/or the second closed area to establish the corresponding relation between the geo-fence information and a preset virtual card, and taking the boundary and range corresponding to the first closed area and/or the second closed area as the geo-fence corresponding to the preset virtual card.
In one possible example the program identifies a target virtual card to be used to perform a data interaction operation based on the geofence information, the program comprising instructions for:
determining a target virtual card corresponding to the geo-fence information;
acquiring identification information of the target virtual card;
judging whether the geofence corresponding to the geofence information is marked with mark information or not according to the identification information;
if the geo-fence does not mark the marking information, taking the target virtual card as a virtual card for executing the data interaction operation;
if the geo-fence is marked with the marking information, the target virtual card is used as a virtual card corresponding to the position information and to be used for executing data interaction operation, the position change of the electronic equipment is detected in real time, and virtual card switching operation is executed according to the position change of the electronic equipment so as to confirm the target virtual card to be used for executing data interaction operation.
In a possible example, the preset virtual card is used as a target virtual card corresponding to the location information and to be used for performing a data interaction operation, where the program includes instructions for performing the following steps:
if the first mark information exists in the geo-fence, determining that the geo-fence is the first fence according to the association relationship between the first mark information and the first fence, determining that the preset virtual card is the first virtual card, and taking the first virtual card as a target virtual card corresponding to the position information and to be used for executing data interaction operation;
before the detecting the position change of the electronic device in real time, the method further includes:
determining second mark information corresponding to the first mark information and a second fence corresponding to the second mark information, and determining a preset virtual card corresponding to the second fence as a second virtual card according to an association relation between the second mark information and the second fence, wherein the first mark information corresponds to the second mark information, and the first mark information and/or the second mark information are/is used for identifying the size relation between the first fence and the second fence.
In one possible example, the program performs a virtual card switching operation to confirm a target virtual to be used for performing a data interactive operation according to a change in a position of the electronic device, and includes instructions for:
if the position is detected to enter the range of the second fence, the first virtual card is switched to the second virtual card, so that the second virtual card is confirmed as the target virtual card, and the second virtual card and an NFC card reader corresponding to the second fence are called to perform data interaction operation.
In one possible example, the establishing a correspondence between the geo-fence information and a preset virtual card, the program includes instructions for:
determining scene information of the preset virtual card according to the boundary and the range in the geo-fence information;
if the scene information meets a preset scene, acquiring a plurality of preset virtual cards, wherein each virtual card corresponds to a unique identifier and geographical position information, and the geographical position information is used for indicating the use range of the corresponding preset virtual card;
aiming at any two preset virtual cards, selecting a larger use range from the use ranges respectively corresponding to the two preset virtual cards, creating a first fence, and determining first geo-fence information corresponding to the first fence;
selecting a smaller use range from the use ranges respectively corresponding to the any two preset virtual cards, creating a second fence, and determining second geographic fence information corresponding to the second fence;
marking the first fence and the second fence to obtain first marking information of the first fence relative to the second fence and second marking information of the second fence relative to the first fence, wherein the first marking information and/or the second marking information are used for identifying the size relationship between the first fence and the second fence;
respectively establishing a corresponding relation between first geo-fence information corresponding to the first fence and a first preset virtual card corresponding to the first fence, and a corresponding relation between second geo-fence information corresponding to the second fence and a second preset virtual card corresponding to the second fence.
It can be seen that, in the electronic device described in the embodiment of the present application, the electronic device obtains the location information of the electronic device; confirming geo-fence information corresponding to the position of the electronic equipment according to the position information, wherein the geo-fence information is used for indicating the boundary and the range of a building, a park or a community of the position of the electronic equipment; and confirming a target virtual card to be used for executing the data interaction operation according to the geo-fence information. Therefore, through the method provided by the embodiment of the application, the geo-fence is selected through interaction between the user and the electronic equipment, and the map area coordinate is combined to draw the geo-fence area more accurately, so that the intelligent card cutting efficiency and accuracy are improved.
The present application provides a computer-readable storage medium, in which a computer program for electronic data exchange is stored, the computer program including instructions for executing a part or all of the steps of any one of the smart card cutting methods described in the above smart card cutting method embodiments, and the computer includes a server.
Embodiments of the present application provide a computer program product, wherein the computer program product comprises a computer program operable to cause a computer to perform some or all of the steps of any of the smart card cutting methods as described in the above method embodiments, and the computer program product may be a software installation package.
It should be noted that any of the above embodiments of the smart card cutting method are described as a series of actions for simplicity of description, but those skilled in the art should understand that the present application is not limited by the described sequence of actions, as some steps may be performed in other sequences or simultaneously according to the present application. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
The foregoing embodiments of the present application have been described in detail, and the principles and implementations of an intelligent card cutting method and related apparatus according to the present application are described herein with reference to specific embodiments, and the description of the foregoing embodiments is only used to help understand the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the smart card cutting method and the related apparatus of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, hardware products and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. The memory may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
While the present application has been described in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from a review of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the word "a" or "an" does not exclude a plurality. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
It will be understood by those skilled in the art that all or part of the steps of the various methods of any of the above embodiments of the smart card cutting method may be performed by associated hardware instructed by a program, which may be stored in a computer-readable memory, the memory may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
It will be appreciated that all products controlled or configured to perform the processing method of the flow chart described in an embodiment of the smart card cutting method of the present application, such as the apparatus of the flow chart and the computer program product described above, fall within the scope of the related products described in the present application.
It will be apparent to those skilled in the art that various modifications and variations can be made in a smart card cutting method and apparatus provided herein without departing from the spirit and scope of the present application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (14)

1. A smart card cutting method is applied to electronic equipment, and is characterized by comprising the following steps:
acquiring the position information of the electronic equipment;
confirming the geo-fence information corresponding to the position of the electronic equipment according to the position information; wherein the geo-fence information is used to indicate a boundary and a range of a building, a campus, or a community where the electronic device is located;
and confirming a target virtual card to be used for executing data interaction operation according to the geo-fence information.
2. The method of claim 1, further comprising:
determining the geo-fence information corresponding to the position of the electronic equipment according to the position information;
and establishing a corresponding relation between the geo-fence information and a preset virtual card, wherein the preset virtual card is a virtual card for the electronic equipment to perform data interaction operation at the position indicated by the position information.
3. The method of claim 2, wherein the determining, according to the location information, the geo-fence information corresponding to the location of the electronic device comprises:
calling a map SDK according to the position information;
determining building information of a building corresponding to the position of the electronic equipment through the map SDK, wherein the building information is determined by the map SDK according to the position information to define the building, the garden or the community in a preset range;
and determining the geo-fence information according to the building information.
4. The method of claim 3, wherein determining the geo-fence information from the building information comprises:
determining a plane closed area of the building, the park or the community on an electronic map interface according to the building information;
determining boundary point coordinates of the plane closed region;
connecting boundary points according to the boundary point coordinates in sequence to obtain a first closed region;
and determining the boundary and the range of the position of the electronic equipment according to the first closed area.
5. The method of claim 4, further comprising:
displaying the first enclosed area on a geofence adjustment interface;
adjusting the boundary point coordinates of the plane closed area in response to the selection operation of the user from the geo-fence adjustment fence to obtain target boundary point coordinates;
drawing a second closed area according to the target boundary point coordinates, and determining the boundary and the range of the position of the electronic equipment according to the second closed area.
6. The method according to claim 4 or 5, wherein the establishing the corresponding relationship between the geo-fence information and the preset virtual card comprises:
determining the identification information of the preset virtual card;
and binding the corresponding relation between the identification information and the first closed area and/or the second closed area to establish the corresponding relation between the geo-fence information and a preset virtual card, and taking the boundary and the range corresponding to the first closed area and/or the second closed area as the geo-fence corresponding to the preset virtual card.
7. The method of claim 1, wherein the identifying a target virtual card to be used for performing a data interaction operation based on the geo-fence information comprises:
determining identification information corresponding to the geo-fence information;
acquiring a preset virtual card corresponding to the identification information;
judging whether the geofence corresponding to the geofence information is marked with mark information or not according to the identification information;
if the geographic fence does not mark the marking information, taking the preset virtual card as a target virtual card for executing the data interaction operation;
if the geo-fence is marked with the marking information, the target virtual card is used as a virtual card corresponding to the position information and to be used for executing data interaction operation, the position change of the electronic equipment is detected in real time, and virtual card switching operation is executed according to the position change of the electronic equipment so as to confirm the target virtual card to be used for executing data interaction operation.
8. The method according to claim 7, wherein the taking the preset virtual card as a target virtual card corresponding to the location information and to be used for performing the data interaction operation comprises:
if the first mark information exists in the geo-fence, determining that the geo-fence is the first fence according to the association relationship between the first mark information and the first fence, determining that the preset virtual card is the first virtual card, and taking the first virtual card as a target virtual card corresponding to the position information and to be used for executing data interaction operation;
before the detecting the position change of the electronic device in real time, the method further includes:
determining second mark information corresponding to the first mark information and a second fence corresponding to the second mark information, and determining a preset virtual card corresponding to the second fence as a second virtual card according to an association relation between the second mark information and the second fence, wherein the first mark information corresponds to the second mark information, and the first mark information and/or the second mark information are/is used for identifying the size relation between the first fence and the second fence.
9. The method of claim 8, wherein the performing a virtual card switching operation to identify a target virtual card to be used for performing a data interaction operation according to the change in the location of the electronic device comprises:
if the position is detected to enter the range of the second fence, the first virtual card is switched to the second virtual card, so that the second virtual card is confirmed as the target virtual card, and the second virtual card and an NFC card reader corresponding to the second fence are called to perform data interaction operation.
10. The method of claim 2, wherein the establishing the corresponding relationship between the geo-fence information and a preset virtual card comprises:
determining scene information of the preset virtual card according to the boundary and the range in the geo-fence information;
if the scene information meets a preset scene, acquiring a plurality of preset virtual cards, wherein each virtual card corresponds to a unique identifier and geographical position information, and the geographical position information is used for indicating the use range of the corresponding preset virtual card;
aiming at any two preset virtual cards, selecting a larger use range from the use ranges respectively corresponding to the any two preset virtual cards, creating a first fence, and determining first geo-fence information corresponding to the first fence;
selecting a smaller use range from the use ranges respectively corresponding to the two arbitrary preset virtual cards, creating a second fence, and determining second geographic fence information corresponding to the second fence;
marking the first fence and the second fence to obtain first marking information of the first fence relative to the second fence and second marking information of the second fence relative to the first fence, wherein the first marking information and/or the second marking information are used for identifying the size relationship between the first fence and the second fence;
respectively establishing a corresponding relation between first geo-fence information corresponding to the first fence and a first preset virtual card corresponding to the first fence, and a corresponding relation between second geo-fence information corresponding to the second fence and a second preset virtual card corresponding to the second fence.
11. A smart card cutting device is applied to electronic equipment, and is characterized by comprising an acquisition unit, a confirmation unit and an execution unit:
the acquisition unit is used for acquiring the position information of the electronic equipment;
the confirming unit is used for confirming the geo-fence information corresponding to the position of the electronic equipment according to the position information, wherein the geo-fence information is used for indicating the boundary and the range of a building, a garden or a community of the position of the electronic equipment;
the execution unit is used for confirming a target virtual card to be used for executing data interaction operation according to the geo-fence information.
12. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-10.
13. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of claims 1-10.
14. A computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform the method of any one of claims 1-10.
CN202210616934.2A 2022-06-01 2022-06-01 Intelligent card cutting method and related device Pending CN115063138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210616934.2A CN115063138A (en) 2022-06-01 2022-06-01 Intelligent card cutting method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210616934.2A CN115063138A (en) 2022-06-01 2022-06-01 Intelligent card cutting method and related device

Publications (1)

Publication Number Publication Date
CN115063138A true CN115063138A (en) 2022-09-16

Family

ID=83198527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210616934.2A Pending CN115063138A (en) 2022-06-01 2022-06-01 Intelligent card cutting method and related device

Country Status (1)

Country Link
CN (1) CN115063138A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115835135A (en) * 2023-02-13 2023-03-21 荣耀终端有限公司 CELL fence matching method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115835135A (en) * 2023-02-13 2023-03-21 荣耀终端有限公司 CELL fence matching method and electronic equipment
CN115835135B (en) * 2023-02-13 2023-11-07 荣耀终端有限公司 CELL fence matching method and electronic equipment

Similar Documents

Publication Publication Date Title
CN113581127B (en) Service processing method and device
CN111768416B (en) Photo cropping method and device
CN111835530B (en) Group joining method and device
CN114119758B (en) Method for acquiring vehicle pose, electronic device and computer-readable storage medium
CN114638605A (en) Method and electronic equipment for near field wireless communication
CN112506386A (en) Display method of folding screen and electronic equipment
CN111983559A (en) Indoor positioning navigation method and device
CN114513847B (en) Positioning method, device, system, electronic equipment and storage medium
CN111371849A (en) Data processing method and electronic equipment
CN111882642B (en) Texture filling method and device for three-dimensional model
CN110138999B (en) Certificate scanning method and device for mobile terminal
CN112102541A (en) Authority determining method and device based on UWB
CN111553846A (en) Super-resolution processing method and device
US20230005277A1 (en) Pose determining method and related device
CN111555825A (en) Radio frequency resource allocation method and device
CN115063138A (en) Intelligent card cutting method and related device
CN111127541B (en) Method and device for determining vehicle size and storage medium
CN114257671A (en) Image display method and electronic equipment
CN111249728B (en) Image processing method, device and storage medium
CN114336998A (en) Charging control method, charging control device and storage medium
CN115175164B (en) Communication control method and related device
CN114173165B (en) Display method and electronic equipment
CN116048350B (en) Screen capturing method and electronic equipment
CN114387693B (en) Vehicle charge management method, device, computer equipment and storage medium
CN112950826B (en) Intelligent converged communication scheduling system for Internet of vehicles

Legal Events

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