CN112929858B - Method and terminal for simulating access control card - Google Patents

Method and terminal for simulating access control card Download PDF

Info

Publication number
CN112929858B
CN112929858B CN201911243432.4A CN201911243432A CN112929858B CN 112929858 B CN112929858 B CN 112929858B CN 201911243432 A CN201911243432 A CN 201911243432A CN 112929858 B CN112929858 B CN 112929858B
Authority
CN
China
Prior art keywords
base station
information
terminal
access control
card information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911243432.4A
Other languages
Chinese (zh)
Other versions
CN112929858A (en
Inventor
任彦昭
赵临虎
常琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201911243432.4A priority Critical patent/CN112929858B/en
Publication of CN112929858A publication Critical patent/CN112929858A/en
Application granted granted Critical
Publication of CN112929858B publication Critical patent/CN112929858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)

Abstract

The application provides an entrance guard card simulation method and an entrance guard card simulation terminal, relates to the technical field of intelligent terminals, and is used for solving the time delay problem of the entrance guard card simulation automatic switching function in the prior art. Monitoring base station information of a base station connected with a terminal, and when the base station information connected with the terminal changes; searching access control card information corresponding to the base station information in a corresponding relation between preset base station information and access control card information; and switching the currently used access control card information into the searched access control card information. Based on the scheme, the method for simulating the access control card of the terminal searches the corresponding access control card information according to the base station information of the base station connected with the terminal, and does not locate the user when the user uses the access control card function and then switch the access control card, and the access control card switching is delayed due to the fact that the location is influenced by factors such as a network. The technical scheme that this application provided switches corresponding entrance guard's card according to the change of basic station information, the effectual time delay problem of having avoided.

Description

Method and terminal for simulating access control card
Technical Field
The application relates to the technical field of terminals, in particular to an entrance guard card simulation method and a terminal.
Background
When the near-field communication (NFC) access card simulation function is performed, the access card is simulated by a mobile phone by copying a User Identifier (UID) of a non-encrypted access card of a user based on the expanded function of the NFC simulation function.
At present, the simulation automatic switching function of the access control card is mainly to locate a user to acquire the position information of the user when the user uses the access control card, and then switch the access control card bound with the position information. However, this approach has some latency. On one hand, the positioning process is delayed due to factors such as network and the like, and on the other hand, the switching process of the access control card is delayed.
Disclosure of Invention
The application provides an entrance guard card simulation method and terminal, which are used for solving the problem that in the prior art, the entrance guard card simulation automatic switching function has time delay.
In a first aspect, an embodiment of the present application provides a terminal, including: a processor and a Near Field Communication (NFC) module;
the processor is used for acquiring the base station information of the base station connected with the terminal; the base station information comprises a base station position area code and a cell position identification code of the base station; when the base station information changes, searching access control card information corresponding to the base station position area code and the cell position identification code in the corresponding relation between the preset base station information and the access control card information;
and the NFC module is used for switching the currently used access control card information into the searched access control card information.
Based on the scheme, the method for simulating the access control card of the terminal searches the corresponding access control card information according to the base station information of the base station connected with the terminal, so that the searched access control card information is simulated, a user can use the searched access control card information, and time delay does not exist during use.
Optionally, the processor is further configured to:
acquiring access card information through an NFC module, and determining base station information of a base station connected with the terminal;
and establishing the corresponding relation between the determined base station information and the access control card information.
According to the method, the corresponding relation between the access card information and the base station information can be established in advance, so that the currently used access card information can be switched according to the base station information of the base station connected with the terminal.
Optionally, the processor is further configured to:
and determining the base station information of the base station connected with the terminal within a first set time after the access control card information is acquired through the NFC module.
According to the method, the corresponding relation between the base station information of the base station connected with the terminal within the first set time length and the access card information is established, and the problem of base station roaming can be effectively avoided. Even if the base station to which the terminal is connected changes within the first set time period, the information can be recorded in the correspondence relationship.
Optionally, the processor is further configured to:
after the corresponding relation between the determined base station information and the access card information is established, binding at least one wireless local area network identifier scanned when the access card information is acquired through an NFC module with the determined corresponding relation; the RSSI (received signal strength indicator) of the wireless local area network corresponding to the at least one wireless local area network identifier is greater than a preset threshold value; performing wireless local area network scanning for a second set duration; and if at least one scanned wireless local area network identifier has a wireless local area network identifier in a binding corresponding relationship and the binding corresponding relationship does not contain the base station information of the base station currently connected with the terminal, establishing the corresponding relationship between the base station information of the base station currently connected with the terminal and the access card information.
Based on the scheme, the problem of base station roaming can be effectively avoided through the wireless local area network identification. Within the second set duration, the wireless local area network identifier in the binding correspondence can be recorded in the correspondence even when the connected base station is changed.
Optionally, in the preset correspondence between the base station information and the access card information, one of the base station information corresponds to one of the access card information.
Based on the scheme, one base station information corresponds to one access card information, so that when the access card information is switched according to the base station information of the base station connected with the terminal, the only corresponding access card information can be accurately found.
In a second aspect, the present application further provides a method for simulating an access card, which is applied to a terminal, and includes:
acquiring base station information of a base station connected with the terminal; the base station information comprises a base station position area code and a cell position identification code of the base station;
when the base station information changes, searching access control card information corresponding to the base station position area code and the cell position identification code in the corresponding relation between the preset base station information and the access control card information;
and switching the currently used access control card information into the searched access control card information.
Optionally, the corresponding relationship between the base station information and the access card information is obtained according to the following method:
acquiring access card information through NFC, and determining base station information of a base station connected with the terminal;
and establishing the corresponding relation between the determined base station information and the access control card information.
Optionally, the determining the base station information of the base station to which the terminal is connected includes:
and determining the base station information of the base station connected with the terminal within a first set time after the access control card information is acquired through NFC.
Optionally, after the corresponding relationship between the determined base station information and the access card information is established, the method further includes:
binding at least one wireless local area network identifier scanned when the access control card information is acquired through NFC with the determined corresponding relation; the RSSI (received signal strength indicator) of the wireless local area network corresponding to the at least one wireless local area network identifier is greater than a preset threshold value;
performing wireless local area network scanning for a second set duration;
and if at least one scanned wireless local area network identifier has a wireless local area network identifier in a binding corresponding relationship and the binding corresponding relationship does not contain the base station information of the base station currently connected with the terminal, establishing the corresponding relationship between the base station information of the base station currently connected with the terminal and the access card information.
Optionally, in the preset correspondence between the base station information and the access card information, one of the base station information corresponds to one of the access card information.
In a third aspect, the present application also provides a computer storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of the method of the first aspect.
In addition, for technical effects brought by any one implementation manner of the second aspect to the third aspect, reference may be made to technical effects brought by different implementation manners of the first aspect, and details are not described here.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an intelligent terminal according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a software architecture of an intelligent terminal according to an embodiment of the present application;
fig. 3 is a schematic view of a user interface of an intelligent terminal according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 5 is one of schematic display interfaces of an intelligent terminal according to an embodiment of the present application;
fig. 6 is one of schematic display interfaces of an intelligent terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" in the text is only an association relationship describing an associated object, and means that three relationships may exist, for example, a and/or B may mean: three cases of a alone, a and B both, and B alone exist, and in addition, "a plurality" means two or more than two in the description of the embodiments of the present application.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of embodiments of the application, unless stated otherwise, "plurality" means two or more.
Fig. 1 shows a schematic structural diagram of a terminal 100.
The following describes an embodiment specifically by taking the terminal 100 as an example. It should be understood that the terminal 100 shown in fig. 1 is merely an example, and that the terminal 100 may have more or fewer components than shown in fig. 1, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
A block diagram of a hardware configuration of the terminal 100 according to an exemplary embodiment is exemplarily shown in fig. 1. As shown in fig. 1, the terminal 100 includes: a Radio Frequency (RF) circuit 110, a memory 120, a display unit 130, a camera 140, a sensor 150, an audio circuit 160, a Wireless Fidelity (Wi-Fi) module 170, a processor 180, a bluetooth module 181, and a power supply 190.
The RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink data of a base station and then send the downlink data to the processor 180 for processing; the uplink data may be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
The memory 120 may be used to store software programs and data. The processor 180 performs various functions of the terminal 100 and data processing by executing software programs or data stored in the memory 120. The memory 120 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The memory 120 stores an operating system that enables the terminal 100 to operate. The memory 120 may store an operating system and various application programs, and may also store codes for performing the methods described in the embodiments of the present application.
The display unit 130 may be used to receive input numeric or character information and generate signal input related to user settings and function control of the terminal 100, and particularly, the display unit 130 may include a touch screen 131 disposed on the front surface of the terminal 100 and may collect touch operations of a user thereon or nearby, such as clicking a button, dragging a scroll box, and the like.
The display unit 130 may also be used to display a Graphical User Interface (GUI) of information input by or provided to the user and various menus of the terminal 100. Specifically, the display unit 130 may include a display screen 132 disposed on the front surface of the terminal 100. The display screen 132 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 130 may be used to display various graphical user interfaces described herein.
The touch screen 131 may cover the display screen 132, or the touch screen 131 and the display screen 132 may be integrated to implement the input and output functions of the terminal 100, and after the integration, the touch screen may be referred to as a touch display screen for short. In the present application, the display unit 130 may display the application programs and the corresponding operation steps.
The camera 140 may be 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 elements convert the light signals into electrical signals which are then passed to the processor 180 for conversion into digital image signals.
The terminal 100 may further comprise at least one sensor 150, such as an acceleration sensor 151, a distance sensor 152, a fingerprint sensor 153, a temperature sensor 154. The terminal 100 may also be configured with other sensors such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, light sensor, motion sensor, etc.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and terminal 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161. The terminal 100 may also be provided with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 160, and outputs the audio data to the RF circuit 110 to be transmitted to, for example, another terminal or outputs the audio data to the memory 120 for further processing. In this application, the microphone 162 may capture the voice of the user.
Wi-Fi belongs to a short-distance wireless transmission technology, and the terminal 100 can help a user to send and receive e-mails, browse webpages, access streaming media, and the like through the Wi-Fi module 170, and provides wireless broadband internet access for the user.
The processor 180 is a control center of the terminal 100, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal 100 and processes data by running or executing software programs stored in the memory 120 and calling data stored in the memory 120. In some embodiments, processor 180 may include one or more processing units; the processor 180 may also integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a baseband processor, which mainly handles wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 180. In the present application, the processor 180 may run an operating system, an application program, a user interface display, and a touch response, and the processing method described in the embodiments of the present application. Additionally, the processor 180 is coupled to the touch screen 131 and the display screen 132.
And the bluetooth module 181 is configured to perform information interaction with other bluetooth devices having a bluetooth module through a bluetooth protocol. For example, the terminal 100 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) having a bluetooth module via the bluetooth module 181, so as to perform data interaction.
The near field communication NFC module 1000 is configured to identify access card information in a non-contact radio frequency identification manner, and may also simulate point-to-point communication between an access card and an access card identification device. For example, the terminal 100 may emulate the access card a through the near field communication module 1000 to communicate with the access card identification device.
The terminal 100 also includes a power supply 190 (e.g., a battery) to power the various components. The power supply may be logically connected to the processor 180 through a power management system to manage charging, discharging, power consumption, etc. through the power management system. The terminal 100 may also be configured with power buttons for powering the terminal on and off, and locking the screen.
Fig. 2 is a block diagram of a software configuration of the terminal 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide a communication function of the terminal 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the terminal vibrates, an indicator light flashes, and the like.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The following describes exemplary workflow of the terminal 100 software and hardware in connection with capturing a photo scene.
When the touch screen 131 receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, a time stamp of the touch operation, and other information). The raw input events are stored at the kernel layer. And the application program framework layer acquires the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and taking a control corresponding to the click operation as a control of a camera application icon as an example, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera drive by calling a kernel layer, and captures a still image or a video through the camera 140.
The terminal 100 in the embodiment of the present application may be a mobile phone, a tablet computer, a wearable device, a notebook computer, a television, and the like.
Fig. 3 is a schematic diagram for illustrating a user interface on a terminal (e.g., terminal 100 of fig. 1). In some implementations, a user can open a corresponding application by touching an application icon on the user interface, or can open a corresponding folder by touching a folder icon on the user interface.
Currently, the simulation function of an access card of a terminal is to locate a user to obtain the position information of the user when the user selects to simulate an access card. The base station positioning has the advantages of no need of distinguishing indoor and outdoor, low power consumption and quick positioning, and can meet the requirement of simulating the access card. However, due to the problem of base station roaming, position acquisition may be inaccurate, and the access card cannot be simulated successfully.
In view of this, an embodiment of the present application provides an access card simulation method, which is applied to a terminal. As shown in fig. 4, a schematic flow chart of a method for simulating an access card provided in the embodiment of the present application may include the following steps:
step 401: acquiring base station information of a base station connected with the terminal; the base station information includes a base station location area code and a cell location identification code of the base station.
In a possible implementation manner, the base station information of the base station to which the terminal is connected may be acquired after receiving the instruction. The instruction may be, for example, a bright screen of a cell phone, etc.
In another possible implementation manner, the terminal may monitor the status broadcast of the base station in real time to obtain the base station information of the base station to which the terminal is connected.
Step 402: and when the base station information changes, searching the access control card information corresponding to the base station position area code and the cell position identification code in the corresponding relation between the preset base station information and the access control card information.
Step 403: and switching the currently used access control card information into the searched access control card information.
Based on the scheme, the method for simulating the access control card of the terminal searches the corresponding access control card information according to the base station information of the base station connected with the terminal, so that the searched access control card information is simulated, a user can use the searched access control card information, and time delay does not exist during use.
A method for obtaining a corresponding relationship between preset base station information and access card information in the embodiment of the present application is described below.
In one possible implementation manner, access control card information is acquired through NFC, base station information of a base station connected with the terminal within a first set time is determined, and a corresponding relation between the determined base station information and the access control card information is established. The first set time period may be 10s, 15s, and the like, and may be predetermined according to an empirical value, which is not specifically limited in the embodiment of the present application.
For example, access card information a is acquired through NFC, and base station information 1 of a base station to which the terminal is connected is determined. And in a first set time (10s), the terminal is respectively connected with the base station 2 and the base station 3, and then the corresponding relation between the access card information A and the base station information of the base station 1, the base station information of the base station 2 and the base station information of the base station 3 is established.
According to the method, the corresponding relation between the base station information of the base station connected with the terminal and the access card information within the first set time length is established, the problem of base station roaming can be effectively avoided, and even if the base station connected with the terminal changes within the first set time length, the base station information can be recorded in the corresponding relation.
Another possible implementation manner is that access card information is acquired through NFC, and base station information of a base station connected with the terminal is determined; and establishing the corresponding relation between the determined base station information and the access control card information. Binding at least one wireless local area network identifier scanned when the access control card information is acquired through NFC with the determined corresponding relation; wherein a Received Signal Strength Indicator (RSSI) of the wlan corresponding to the at least one wlan identifier is greater than a preset threshold; performing wireless local area network scanning for a second set duration; and if at least one scanned wireless local area network identifier has a wireless local area network identifier in a binding corresponding relationship and the binding corresponding relationship does not contain the base station information of the base station currently connected with the terminal, establishing the corresponding relationship between the base station information of the base station currently connected with the terminal and the access card information.
The wlan identifier may be a name of the wlan or a Media Access Control (MAC) address of the wlan.
The second set time period may be, for example, 15s, 20s, etc., and may be predetermined according to an empirical value. The second set time period may be the same as the first set time period, or may be different from the second set time period, and the application is not particularly limited. The preset threshold may be, for example, -106dBm, -98dBm, etc., and may be predetermined based on empirical values.
For example, the access card information B is acquired through the NFC module, the wireless lan is scanned, the base station information of the base station to which the terminal is connected is determined to be lac1 and cellID1, and the correspondence between the access card information B and lac1 and cellID1 is established. In addition, the MAC addresses of the scanned wlan are wifi 1, wifi 2 and wifi 3, respectively. The RSSI of the wifi macs1 and the RSSI of the wifi macs3 are larger than-98 dBm, so that the corresponding relation between the access control card information B and the base station information is bound with the wifi macs1 and the wifi macs 3.
And continuously scanning the wireless local area network for 15s, wherein the MAC addresses of the scanned wireless local area network are wifi MACs3 and wifi MACs4 respectively, and the RSSI of the wifi MACs3 and the RSSI of the wifi MACs4 are both greater than-98 dBm. Since the binding correspondence relationship includes wifi 3, the base station information of the base station to which the terminal is connected is obtained as lac2 and cellID 2. And establishing corresponding relations between the access control card information B, lac1, cellID1, lac2 and cellID 2. And if the scanning time length reaches a second set time length or the scanned WLAN identification is different from the WLAN identification in the binding corresponding relation, stopping scanning.
Based on the scheme, the problem of base station roaming can be effectively avoided through the wireless local area network identification. Within the second set duration, the wireless local area network identifier in the binding correspondence can be recorded in the correspondence even when the connected base station is changed.
In a possible implementation manner, in the correspondence between the base station information and the access card information, one base station information may correspond to at least one access card information, and one access card information may correspond to at least one base station information.
For example, the access card information a may have a correspondence relationship with lac1 and cellID1, lac2 and cellID2, and the access card information B may have a correspondence relationship with lac2 and cellID2, lac3 and cellID 3. If the base station information of the currently connected base station obtained by the terminal is lac2 and cellID2, the access card information corresponding to lac2 and cellID2 is displayed in a display interface for the user to select, as shown in fig. 5. And the currently used access control card information is switched into the access control card information selected by the user.
In another possible implementation manner, in the preset correspondence between the base station information and the access card information, one base station information may correspond to one access card information; one access card information may correspond to at least one base station information.
For example, the access card information a may have a correspondence with lac1 and cellID1, lac2 and cellID2, while lac1 and cellID1 may have a correspondence with only the access card information a.
For example, the access card information a corresponds to lac1 and cellID1, lac2 and cellID 2. After the access card information B is acquired through NFC, if the base station information of the base station connected to the terminal is lac2 and cellID2, that is, the base station information has a corresponding relationship with other access card information except the access card information B, the user may be prompted in a pop-up window or text push manner whether to delete information of lac2 and cellID2 in the corresponding relationship of the access card information a.
Fig. 6 is a schematic diagram of a display interface in the embodiment of the present application. In the display interface, when the corresponding relationship between the access card information B and the base station information is established, the base station information of the base station connected to the terminal is the same as the base station information corresponding to the access card information a within the first set time, and the display interface prompts the user whether to delete the same base station information in the corresponding relationship of the access card information a.
Based on the scheme, one base station information corresponds to one access card information, so that when the access card information is switched according to the base station information of the base station connected with the terminal, the only corresponding access card information can be accurately found.
Based on the same inventive concept, the embodiment of the application also provides a terminal. The terminal includes: a processor and an NFC module;
the processor is used for acquiring the base station information of the base station connected with the terminal; the base station information comprises a base station position area code and a cell position identification code of the base station; searching access control card information corresponding to the base station position area code and the cell position identification code in a preset corresponding relation between the base station information and the access control card information;
and the NFC module is used for switching the currently used access control card information into the searched access control card information.
Optionally, the processor is further configured to:
acquiring access card information through an NFC module, and determining base station information of a base station connected with the terminal;
and establishing the corresponding relation between the determined base station information and the access control card information.
Optionally, the processor is further configured to:
and determining the base station information of the base station connected with the terminal within a first set time after the access control card information is acquired through the NFC module.
Optionally, the processor is further configured to:
after the corresponding relation between the determined base station information and the access card information is established, binding at least one wireless local area network identifier scanned when the access card information is acquired through an NFC module with the determined corresponding relation; the RSSI (received signal strength indicator) of the wireless local area network corresponding to the at least one wireless local area network identifier is greater than a preset threshold value; performing wireless local area network scanning for a second set duration; and if at least one scanned wireless local area network identifier has a wireless local area network identifier in a binding corresponding relationship and the binding corresponding relationship does not contain the base station information of the base station currently connected with the terminal, establishing the corresponding relationship between the base station information of the base station currently connected with the terminal and the access card information.
Optionally, in the preset correspondence between the base station information and the access card information, one of the base station information corresponds to one of the access card information.
In some possible embodiments, the aspects of the method for simulating an access card provided in the embodiments of the present application may also be implemented in the form of a program product, which includes program code for causing a computer device to execute the steps in the method for simulating an access card according to various exemplary embodiments of the present application described in this specification when the program code runs on the computer device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to the program product for performing simulation of an access card of the embodiment of the present application, it may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a server device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain or store a program for use by or in connection with an information delivery, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the periodic network action system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device.
The method for executing the entrance guard card simulation in the embodiment of the application further provides a storage medium readable by the computing device, namely, the content is not lost after the power is cut off. The storage medium stores therein a software program comprising program code which, when executed on a computing device, when read and executed by one or more processors, implements any of the above access card emulation schemes of embodiments of the present application.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the application. It will be understood that one block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, 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, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the subject application may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
Although the present application has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and figures are merely exemplary of the present application as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the present application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the scope of the 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 also intended to include such modifications and variations.

Claims (6)

1. A terminal, comprising: a processor and a Near Field Communication (NFC) module;
the processor is used for acquiring the base station information of the base station connected with the terminal; the base station information comprises a base station position area code and a cell position identification code of the base station; when the base station information changes, searching access control card information corresponding to the base station position area code and the cell position identification code in the corresponding relation between the preset base station information and the access control card information;
the processor is further configured to acquire access card information through the NFC module, determine base station information of a base station connected to the terminal, establish a corresponding relationship between the determined base station information and the access card information, and after establishing the determined corresponding relationship between the base station information and the access card information, bind at least one wireless local area network identifier scanned when the access card information is acquired through the NFC module with the determined corresponding relationship; the RSSI (received signal strength indicator) of the wireless local area network corresponding to the at least one wireless local area network identifier is greater than a preset threshold value; performing wireless local area network scanning for a second set duration; if at least one scanned wireless local area network identifier has a wireless local area network identifier of a binding corresponding relation, and the binding corresponding relation does not contain the base station information of the base station currently connected with the terminal, establishing the corresponding relation between the base station information of the base station currently connected with the terminal and the access card information;
and the NFC module is used for switching the currently used access control card information into the searched access control card information.
2. The terminal of claim 1, wherein the processor is further configured to:
and determining the base station information of the base station connected with the terminal within a first set time after the access control card information is acquired through the NFC module.
3. The terminal according to any one of claims 1 to 2, wherein in the correspondence between the preset base station information and the access card information, one base station information corresponds to one access card information.
4. The method for simulating the access control card is applied to a terminal and comprises the following steps:
acquiring base station information of a base station connected with the terminal; the base station information comprises a base station position area code and a cell position identification code of the base station;
the method comprises the steps of obtaining access control card information through NFC, determining base station information of a base station connected with a terminal, establishing a corresponding relation between the determined base station information and the access control card information, and after establishing the corresponding relation between the determined base station information and the access control card information, further comprising the following steps: binding at least one wireless local area network identifier scanned when the access control card information is acquired through NFC with the determined corresponding relation; the RSSI (received signal strength indicator) of the wireless local area network corresponding to the at least one wireless local area network identifier is greater than a preset threshold value; performing wireless local area network scanning for a second set duration; if at least one scanned wireless local area network identifier has a wireless local area network identifier of a binding corresponding relation, and the binding corresponding relation does not contain the base station information of the base station currently connected with the terminal, establishing the corresponding relation between the base station information of the base station currently connected with the terminal and the access card information;
when the base station information changes, searching access control card information corresponding to the base station position area code and the cell position identification code in the corresponding relation between the preset base station information and the access control card information;
and switching the currently used access control card information into the searched access control card information.
5. The method of claim 4, wherein the determining base station information of the base station to which the terminal is connected comprises:
and determining the base station information of the base station connected with the terminal within a first set time after the access control card information is acquired through NFC.
6. The method according to any one of claims 4 to 5, wherein in the correspondence between the preset base station information and the access card information, one base station information corresponds to one access card information.
CN201911243432.4A 2019-12-06 2019-12-06 Method and terminal for simulating access control card Active CN112929858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911243432.4A CN112929858B (en) 2019-12-06 2019-12-06 Method and terminal for simulating access control card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911243432.4A CN112929858B (en) 2019-12-06 2019-12-06 Method and terminal for simulating access control card

Publications (2)

Publication Number Publication Date
CN112929858A CN112929858A (en) 2021-06-08
CN112929858B true CN112929858B (en) 2022-04-01

Family

ID=76161701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911243432.4A Active CN112929858B (en) 2019-12-06 2019-12-06 Method and terminal for simulating access control card

Country Status (1)

Country Link
CN (1) CN112929858B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106340086A (en) * 2015-07-14 2017-01-18 上海拜恩投资管理有限公司 Intelligent access control system and control method thereof
CN107172581A (en) * 2017-06-27 2017-09-15 中国联合网络通信集团有限公司 NFC function method of controlling switch and system
CN107481429A (en) * 2017-08-23 2017-12-15 成都源来来科技有限公司 It is a kind of to go back umbrella system based on what umbrella was shared and go back umbrella method
CN107657689A (en) * 2017-09-08 2018-02-02 深圳传音通讯有限公司 A kind of gate inhibition's method for unlocking, mobile terminal and computer-readable medium
CN110390749A (en) * 2019-07-17 2019-10-29 青岛聚好联科技有限公司 A kind of access control system based on bluetooth positioning

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102238535B1 (en) * 2014-10-01 2021-04-09 엘지전자 주식회사 Mobile terminal and method for controlling the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106340086A (en) * 2015-07-14 2017-01-18 上海拜恩投资管理有限公司 Intelligent access control system and control method thereof
CN107172581A (en) * 2017-06-27 2017-09-15 中国联合网络通信集团有限公司 NFC function method of controlling switch and system
CN107481429A (en) * 2017-08-23 2017-12-15 成都源来来科技有限公司 It is a kind of to go back umbrella system based on what umbrella was shared and go back umbrella method
CN107657689A (en) * 2017-09-08 2018-02-02 深圳传音通讯有限公司 A kind of gate inhibition's method for unlocking, mobile terminal and computer-readable medium
CN110390749A (en) * 2019-07-17 2019-10-29 青岛聚好联科技有限公司 A kind of access control system based on bluetooth positioning

Also Published As

Publication number Publication date
CN112929858A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN111225108A (en) Communication terminal and card display method of negative screen interface
CN111367456A (en) Communication terminal and display method in multi-window mode
CN112114733B (en) Screen capturing and recording method, mobile terminal and computer storage medium
CN113835569A (en) Terminal device, quick start method for internal function of application and storage medium
CN111124219A (en) Communication terminal and card display method of negative screen interface
CN111176766A (en) Communication terminal and component display method
CN113709026B (en) Method, device, storage medium and program product for processing instant communication message
CN111857531A (en) Mobile terminal and file display method thereof
CN111506237A (en) Terminal and method for starting operation function in application
CN112099892A (en) Communication terminal and method for rapidly scanning two-dimensional code
CN111726605A (en) Resolving power determining method and device, terminal equipment and storage medium
CN113068229A (en) Communication terminal and wireless network switching method
CN112929858B (en) Method and terminal for simulating access control card
CN112825536B (en) Electronic terminal and background card display method
CN114546219A (en) Picture list processing method and related device
CN114371895A (en) Terminal device, mail marking method and storage medium
CN113642010A (en) Method for acquiring data of extended storage device and mobile terminal
CN111159734A (en) Communication terminal and multi-application data inter-access processing method
CN110852717A (en) Travel updating method and intelligent communication terminal
CN114020379B (en) Terminal equipment, information feedback method and storage medium
CN111142648B (en) Data processing method and intelligent terminal
CN113253905B (en) Touch method based on multi-finger operation and intelligent terminal
CN114020379A (en) Terminal device, information feedback method and storage medium
CN113535041A (en) Terminal and method for operating application and communication information
CN115334604A (en) Terminal device, network control method and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder