CN115175164B - Communication control method and related device - Google Patents

Communication control method and related device Download PDF

Info

Publication number
CN115175164B
CN115175164B CN202210739629.2A CN202210739629A CN115175164B CN 115175164 B CN115175164 B CN 115175164B CN 202210739629 A CN202210739629 A CN 202210739629A CN 115175164 B CN115175164 B CN 115175164B
Authority
CN
China
Prior art keywords
near field
target
field communication
electronic
card
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
CN202210739629.2A
Other languages
Chinese (zh)
Other versions
CN115175164A (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.)
Nanjing Opper Software Technology Co ltd
Original Assignee
Nanjing Opper Software 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 Nanjing Opper Software Technology Co ltd filed Critical Nanjing Opper Software Technology Co ltd
Priority to CN202210739629.2A priority Critical patent/CN115175164B/en
Publication of CN115175164A publication Critical patent/CN115175164A/en
Application granted granted Critical
Publication of CN115175164B publication Critical patent/CN115175164B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a communication control method and a related device, which are applied to electronic equipment, wherein the method comprises the following steps: determining a target electronic beacon in response to the transmission signal of the electronic beacon; acquiring a target identifier of the target electronic beacon; detecting whether a target near field communication analog card bound with the target identifier exists in the electronic equipment; and when the target near field communication simulation card bound with the target identifier exists in the electronic equipment, setting the target near field communication simulation card as a default simulation card. By adopting the embodiment of the application, the use convenience of the analog card can be improved.

Description

Communication control method and related device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling communications.
Background
Along with the wide popularization and application of electronic devices (such as smart phones, tablet computers and the like), the electronic devices have more and more applications and more powerful functions, and the electronic devices develop towards diversification and individuation, so that the electronic devices become indispensable electronic articles in the life of users.
In practical applications, taking a smart phone as an example, the smart phones all support near field communication (near field communication, NFC), and each smart phone manufacturer also provides various wallet and payment functions, such as an analog access card, a traffic card, and so on. Furthermore, in general, one smart phone will be provided with a plurality of analog cards, such as a district gate, a company gate, a traffic card, and the like. When using the analog card in the smart phone, the analog card can be normally used after the corresponding application is generally awakened, the analog card to be used is selected and verified, and the operation of using the analog card is complicated, so that the problem of how to improve the use convenience of the analog card is needed to be solved.
Disclosure of Invention
The embodiment of the application provides a communication control method and a related device, which can improve the use convenience of an analog card.
In a first aspect, an embodiment of the present application provides a communication control method, applied to an electronic device, where the method includes:
determining a target electronic beacon in response to the transmission signal of the electronic beacon;
acquiring a target identifier of the target electronic beacon;
detecting whether a target near field communication analog card bound with the target identifier exists in the electronic equipment;
and when the target near field communication simulation card bound with the target identifier exists in the electronic equipment, setting the target near field communication simulation card as a default simulation card.
In a second aspect, an embodiment of the present application provides a communication control apparatus, applied to an electronic device, where the apparatus includes: a determining unit, an acquiring unit, a detecting unit and a setting unit, wherein,
the determining unit is used for determining a target electronic beacon in response to the transmitting signal of the electronic beacon;
the acquisition unit is used for acquiring the target identifier of the target electronic beacon;
the detection unit is used for detecting whether a target near field communication analog card bound with the target identifier exists in the electronic equipment;
The setting unit is configured to set, when a target near field communication analog card bound to the target identifier exists in the electronic device, the target near field communication analog card as a default analog card.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory for storing one or more programs and configured for execution by the processor, the programs comprising instructions for performing part or all of the steps as described by the first party.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application.
In a fifth aspect, embodiments of the present application provide 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 some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
By implementing the embodiment of the application, the following beneficial effects are achieved:
it can be seen that, in the communication control method and the related device described in the embodiments of the present application, when the communication control method and the related device are applied to an electronic device, in response to a transmission signal of the electronic beacon, a target identifier of the target electronic beacon is determined, whether a target near field communication analog card bound with the target identifier exists in the electronic device is detected, and when the target near field communication analog card bound with the target identifier exists in the electronic device, the target near field communication analog card is set as a default analog card, so that after the transmission signal of the electronic beacon is received, the identifier of the electronic beacon can be obtained, and the near field communication analog card corresponding to the identifier is set as the default analog card, that is, the default analog card can be quickly set, and the convenience in use of the analog card can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic software structure of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a communication control method according to an embodiment of the present application;
fig. 4 is a schematic view of a scene demonstration for providing near field communication according to an embodiment of the present application;
FIG. 5 is another scene representation schematic providing near field communication according to an embodiment of the present application;
fig. 6 is a schematic flow chart of another communication control method according to an embodiment of the present application;
fig. 7 is a schematic flow chart of another communication control method according to an embodiment of the present application;
fig. 8 is a flow chart of another communication control method according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another electronic device according to an embodiment of the present application;
fig. 10 is a functional unit composition block diagram of a communication control apparatus provided in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
For a better understanding of aspects of embodiments of the present application, related terms and concepts that may be related to embodiments of the present application are described below.
In particular implementations, the electronic device may include various devices with computer functions, such as a handheld device (smart phone, tablet, etc.), a vehicle-mounted device (navigator, auxiliary back-up system, automobile data recorder, automobile refrigerator, etc.), a wearable device (smart bracelet, wireless headset, smart watch, smart glasses, etc.), a computing device or other processing device connected to a wireless modem, and various forms of User Equipment (UE), a Mobile Station (MS), a virtual reality/augmented reality device, a terminal device (terminal device), etc., and the electronic device may also be a base Station or a server.
The electronic device may further include an intelligent home device, where the intelligent home device may be at least one of: the intelligent sound box, the intelligent camera, the intelligent electric cooker, the intelligent wheelchair, the intelligent massage chair, the intelligent furniture, the intelligent dish washer, the intelligent television, the intelligent refrigerator, the intelligent electric fan, the intelligent warmer, the intelligent clothes hanger, the intelligent lamp, the intelligent router, the intelligent switch board, the intelligent humidifier, the intelligent air conditioner, the intelligent door, the intelligent window, the intelligent cooking bench, the intelligent disinfection cabinet, the intelligent toilet, the sweeping robot and the like are not limited herein.
In an embodiment of the present application, the tag device may include at least one of the following: POS machine, attendance machine, gate, card reader (such as bus card reader, canteen card reader, etc.), etc., without limitation. The tag device may include an electronic beacon for transmitting a signal and a reader for receiving the signal.
In the first part, the software and hardware operation environment of the technical scheme disclosed in the application is introduced as follows.
As shown, fig. 1 shows a schematic structural diagram of an electronic device 100. Electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (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, an indicator 192, a camera 193, a display 194, a subscriber identity module (subscriber identification module, SIM) card interface 195, and the like.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The 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 processor GPU, an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor 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 operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution. In other embodiments, memory may also be provided in the 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 the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it may be called directly from memory. This avoids repeated accesses and reduces the latency of the processor 110, thereby improving the efficiency of the electronic device 100 in processing data or executing instructions. The processor may also include an image processor, which may be an image preprocessor (preprocess image signal processor, pre-ISP), which may be understood as a simplified ISP, which may also perform some image processing operations, e.g. may obtain image statistics.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include inter-integrated circuit (inter-integrated circuit, I2C) interfaces, inter-integrated circuit audio (inter-integrated circuit sound, I2S) interfaces, pulse code modulation (pulse code modulation, PCM) interfaces, universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interfaces, mobile industry processor interfaces (mobile industry processor interface, MIPI), general-purpose input/output (GPIO) interfaces, SIM card interfaces, and/or USB interfaces, among others. The USB interface 130 is an interface conforming to the USB standard, 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 transfer data between the electronic device 100 and a peripheral device. The USB interface 130 may also be used to connect headphones through which audio is played.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive 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 for connecting the battery 142, and the charge 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 provides 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 configured to monitor battery capacity, battery cycle times, battery health (leakage, impedance), and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge 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 may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into 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 for wireless communication including 2G/3G/4G/5G/6G, etc. applied on the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. 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 provided in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the 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, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (FLED), a mini light-emitting diode (mini light-emitting diode), microLed, micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, 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 an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, 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, so that the electrical signal is converted into an image visible to naked eyes. ISP can also perform algorithm optimization on noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature, etc. of the photographed scene. In some embodiments, the ISP may be provided in the 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 onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or more cameras 193.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
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 (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 may cause the electronic device 100 to execute the method of displaying page elements provided in some embodiments of the present application, as well as various applications, data processing, and the like, by executing the above-described instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system; the storage program area may also store one or more applications (such as gallery, contacts, etc.), etc. The storage data area may store data created during use of the electronic device 100 (e.g., photos, contacts, etc.), and so on. In addition, the internal memory 121 may include high-speed random access memory, and may also include nonvolatile memory, such as one or more disk storage units, flash memory units, universal flash memory (universal flash storage, UFS), and the like. In some embodiments, processor 110 may cause electronic device 100 to perform the methods of displaying page elements provided in embodiments of the present application, as well as other applications and data processing, by executing instructions stored in internal memory 121, and/or instructions stored in a memory provided in processor 110. The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity 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 can convert 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 is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. 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 touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., X, Y and Z axis) may be determined by gyro 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 the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game 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 may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture 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 ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, 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 for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
By way of example, fig. 2 shows a block diagram of the software architecture of the electronic device 100. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer (abbreviated as framework layer), an Zhuoyun row (Android run) and system library, and a kernel layer. The application layer may include a series of application packages.
As shown in fig. 2, the application layer may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire 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 such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, 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, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, 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, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of 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. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (media library), three-dimensional graphics processing library (e.g., openGL ES), 2D graphics engine (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
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.
In the second section, a communication control method and a related device disclosed in the embodiments of the present application are described below.
Referring to fig. 3, fig. 3 is a flow chart of a communication control method according to an embodiment of the present application, and as shown in the drawing, the communication control method includes:
301. a target electronic beacon is determined in response to the transmitted signal of the electronic beacon.
In this embodiment of the present application, after receiving the transmission signal of the electronic beacon, the electronic device may respond to the transmission signal of the electronic beacon, and further determine the target electronic beacon. For example, if the electronic device receives a transmission signal of one electronic beacon, the electronic beacon may be regarded as a target electronic beacon; for another example, if the electronic device receives the transmission signals of the plurality of electronic beacons, one of the plurality of electronic beacons may be set as the target electronic beacon.
In this embodiment of the present application, the electronic beacon may be an electronic beacon in a near field communication technology, for example, the electronic beacon may be an electronic beacon (UWB tag) in an Ultra Wide Band (UWB) technology, that is, a UWB beacon; as another example, the electronic beacon may be an electronic beacon in Bluetooth (BT) technology, i.e., a BT beacon; as another example, the electronic beacon may be an electronic beacon in bluetooth low energy technology (blue tooth low energy, BLE), i.e., BLE beacon. The electronic beacon may be provided to the tag device, and one tag device may include at least one electronic beacon.
In an embodiment of the present application, the tag device may include an electronic beacon and a card reader, where the electronic beacon is used to transmit signals, and the card reader is used to receive signals. In a specific implementation, for example, a tag device may be configured at an NFC emulated card access point, where the tag device includes a beacon and a card reader, and the tag device continuously transmits signals in the near field (in the range of several meters to several tens of meters) through the beacon. For example, as shown in fig. 4, the tag device may include an electronic beacon and a card reader, where the electronic device may communicate with the tag device, e.g., the electronic device may receive a signal sent by the electronic beacon and parse the signal to obtain an identifier of the electronic beacon.
In a specific implementation, the electronic beacon can transmit a signal according to a preset time interval, when the electronic device detects the signal, the electronic device is indicated to have entered the signal coverage of the beacon, and when the electronic device is detected to enter the signal coverage of the electronic beacon, the identification of the electronic beacon can be obtained through a near field communication technology. The preset time interval may be preset or the system defaults. For example, a first UWB module may be included in the tag device, which may include an electronic beacon; the electronic equipment can comprise a second UWB module, and the identification of the electronic beacon can be obtained through a UWB communication technology; for example, the tag device may include a first bluetooth communication module, where the first bluetooth communication module may include an electronic beacon, and the electronic device may also include a second bluetooth communication module, where an identifier corresponding to the electronic beacon may be obtained through a bluetooth communication technology.
In general, the global positioning system (global positioning system, GPS) positioning function needs to be started manually, which increases certain power consumption, and meanwhile, because the GPS is greatly affected by weather, buildings and other environments, the positioning stability sometimes deviates, thereby affecting the accuracy and stability of the analog card switching function. Meanwhile, since the card use range is generally set to be more than 100m, if two cards are used in a place close to each other (such as a district entrance guard and a subway entrance), the card switching may also be wrong. The near field communication is utilized to realize positioning, so that the power consumption of the electronic equipment is reduced, the range of the near field communication is usually within a range of a few meters to tens of meters, and the accuracy and the stability of the analog card switching function are improved.
In one possible example, before the step 301, the following steps may be further included:
a1, detecting whether a near field communication analog card corresponding to the target identifier is set or not when the distance between the electronic equipment and a card reader corresponding to the target beacon is smaller than a second preset distance;
a2, when the fact that the near field communication simulation card corresponding to the target identifier is not set is detected, opening a near field communication simulation card application, and setting a target near field communication simulation card corresponding to the target identifier;
a3, binding the target near field communication analog card with the target identifier.
The second preset distance may be preset or default. In this embodiment of the present application, the NFC analog card may be simply referred to as an NFC analog card.
Wherein the near field communication analog card application may implement a near field communication analog card management function, which may include at least one of: the addition of a near field communication analog card, the deletion of a near field communication analog card, the recharging of a near field communication analog card, the addition of a near field communication analog card, and the like are not limited herein. Different near field communication analog cards may correspond to different near field communication analog card applications, or all near field communication analog cards may correspond to one near field communication analog card application.
In the specific implementation, when the distance between the electronic device and the card reader corresponding to the target beacon is smaller than the second preset distance, whether the near field communication analog card corresponding to the target identifier is set or not can be detected, if the near field communication analog card corresponding to the target identifier is not set, the near field communication analog card application can be opened, the target near field communication analog card corresponding to the target identifier is set based on the near field communication analog card application, then the target near field communication analog card and the target identifier are bound, namely, when a user enters the signal coverage range of the electronic beacon next time, the setting of the target near field communication analog card as a default analog card can be automatically realized, and the convenience in use of the analog card is improved.
In one possible example, the method may further include the steps of:
a4, unlocking operation is carried out through the target near field communication analog card;
a5, detecting whether unlocking is successful;
a6, if the unlocking is successful, executing the step of binding the target near field communication analog card with the target identifier; and A7, if the unlocking is unsuccessful, executing the step of opening the near field communication analog card application.
In specific implementation, the tag device may include an electronic beacon and a card reader, when the card reader is an access control card reader, the unlocking operation may be performed through the target near field communication analog card, whether the unlocking is successful may be detected, if the unlocking is successful, the target near field communication analog card and the target identifier are bound, so that when the user enters the signal coverage range of the electronic beacon, setting the target near field communication analog card as a default analog card can be automatically realized next time, otherwise, if the unlocking is unsuccessful, the near field communication analog card application is opened again, and the user is prompted to manually complete the analog card setting operation again, thereby being beneficial to improving the use convenience of the analog card.
In one possible example, when the electronic device is in the off-screen state, the method may further include the following steps:
and waking up the electronic equipment, and executing the step of opening the near field communication analog card application.
In the specific implementation, when the electronic equipment is in a screen-off state, and when the near field communication simulation card corresponding to the target identifier is detected not to be set, the electronic equipment is awakened, the near field communication simulation card application is opened, the target near field communication simulation card corresponding to the target identifier is set, and the target near field communication simulation card is bound with the target identifier.
In one possible example, when the target beacon includes a plurality of beacons, the determining the target electronic beacon in step 301 may include the following steps:
a11, determining the distance between each electronic beacon in the plurality of electronic beacons and the electronic equipment to obtain a plurality of distances; a12, determining the minimum value in the plurality of distances;
a13, determining the electronic beacon corresponding to the minimum value as the target electronic beacon.
In this embodiment of the present application, when the electronic device receives the transmission signals of the plurality of electronic beacons, a distance between each of the plurality of electronic beacons and the electronic device may be determined by a time of flight (TOF) technique, a plurality of distances may be obtained, a minimum value of the plurality of distances may be determined, and an electronic beacon corresponding to the minimum value may be determined as the target electronic beacon.
By way of illustration, taking a smart phone as an example, the smart phone can have a UWB communication function, and can identify different access control devices with smaller range through the capability of accurate ranging (centimeter level) and angle measurement of UWB, for example, multiple electronic beacons (such as access control devices) are identified in a range of several meters, and then an NFC analog card bound by one electronic beacon with the nearest distance can be selected as a card for default starting according to the accurate distance between each beacon (UWB tag) and the smart phone. Therefore, the purpose of accurately distinguishing different entrance guards in a small range and accurately switching cards is achieved. As shown in fig. 5, a is an electronic device, B1, B2, and B3 each correspond to a beacon, d1 is a distance between the electronic device a and the beacon B1, d2 is a distance between the electronic device a and the beacon B2, d3 is a distance between the electronic device a and the beacon B3, and further, a target electronic beacon of the beacon B1 corresponding to d1, which is a minimum distance, may be selected.
In one possible example, the determining the target electronic beacon in step 301 may include the following steps:
b11, obtaining geographic position information of the electronic equipment;
b12, determining the electronic beacon corresponding to the geographic position information as the target electronic beacon.
Specifically, in the embodiment of the present application, a mapping relationship between the geographic location information and the electronic beacon may be preset. The geographic position information of the electronic equipment can be obtained through the GPS technology, and then the electronic beacon corresponding to the geographic position information of the electronic equipment can be determined to be the target electronic beacon based on the mapping relation, so that the identification required by the user can be rapidly determined based on the geographic position information.
For example, when the user returns home, the electronic device may obtain the home position of the user through GPS positioning, and further, may obtain the electronic beacon corresponding to the home position, and use the electronic beacon as the target electronic beacon, so that the electronic beacon may be obtained quickly.
Of course, further, the geographic position information and the current time of the electronic device can also be obtained; the electronic beacon corresponding to the current time and the geographic position information is obtained as a target electronic beacon, specifically, a mapping relationship between the time, the geographic position information and the electronic beacon may be preset, and based on the mapping relationship, the electronic beacon corresponding to the current time and the geographic position information may be determined as the target electronic beacon.
By way of example, the identification of the electronic beacon of the entrance guard in the user's home can be bound with the set user home time and the set geographical position information in the user's home in advance, when the user returns home, the electronic device can acquire the current time and obtain the home position of the user through GPS positioning, when the current position is in the set user home time, the electronic beacon corresponding to the current time and the home position of the user can be acquired based on the mapping relation, and the electronic beacon can be used as the target electronic beacon, so that the electronic beacon can be acquired rapidly.
302. And obtaining the target identification of the target electronic beacon.
Wherein, different electronic beacons can correspond to different identifications, and the identifications can be used for uniquely identifying the electronic beacons. Of course, the identification may also uniquely identify the tag device that includes the electronic beacon.
303. And detecting whether a target near field communication analog card bound with the target identifier exists in the electronic equipment.
In a specific implementation, a mapping relation between a preset identifier and a near field communication analog card can be stored in the electronic device in advance, and whether the target near field communication analog card bound with the target identifier exists in the electronic device can be detected based on the mapping relation.
In the embodiment of the application, one identifier may be bound to at least one near field communication analog card, for example, one identifier is bound to 2 near field communication analog cards.
304. And when the target near field communication simulation card bound with the target identifier exists in the electronic equipment, setting the target near field communication simulation card as a default simulation card.
In the embodiment of the application, when the target near field communication analog card bound with the target identifier exists in the electronic device, the target near field communication analog card can be set as a default analog card, namely, the near field communication analog card required by the user can be automatically switched.
In this embodiment of the present application, near field communication technologies such as ultra wideband, bluetooth low energy technology may be utilized, and a beacon (UWB tag) or an electronic beacon of a BLE beacon signal is configured at an access point of an NFC analog card, so that signals are continuously transmitted in the near field (in a range of several meters to several tens of meters).
According to the embodiment of the application, the scheme that each access point only needs to be configured with one electronic beacon with extremely low cost, for example, the electronic beacon can be a UWB tag or BLE beacon with low cost, and further accuracy of intelligent switching of NFC analog cards is improved. The usability and convenience of using the NFC card simulated by the mobile phone are greatly improved.
In one possible example, applied to the payment scenario, when the target near field communication analog card includes a plurality of near field communication analog cards, step 303 above, the target near field communication analog card is set as a default analog card, and the following steps may be performed:
31. determining an amount to be paid;
32. determining the residual amount of each near field communication analog card in the plurality of near field communication analog cards to obtain a plurality of residual amounts;
33. Selecting the remaining amount larger than the to-be-paid amount from the plurality of remaining amounts to obtain at least one remaining amount;
34. determining the preferential strength of the near field communication analog card corresponding to the at least one residual amount to obtain at least one preferential strength;
35. and selecting a near field communication analog card corresponding to the maximum preferential strength in the at least one preferential strength, and setting the near field communication analog card as a default analog card.
In specific implementation, for a payment scene, when a target near field communication simulation card includes a plurality of near field communication simulation cards, the amount to be paid can be determined, the remaining amount of each near field communication simulation card in the plurality of near field communication simulation cards is determined to obtain a plurality of remaining amounts, the remaining amount larger than the amount to be paid in the plurality of remaining amounts is selected to obtain at least one remaining amount, namely, a simulation card meeting the payment requirement can be selected, then the preferential degree of the near field communication simulation card corresponding to the at least one remaining amount is determined to obtain at least one preferential degree, the near field communication simulation card corresponding to the greatest preferential degree in the at least one preferential degree is selected, the near field communication simulation card corresponding to the greatest preferential degree is set as a default simulation card, and the near field communication simulation card meeting the payment requirement and having the greatest preferential degree can be selected to be set as the default simulation card, so that quick payment can be realized under the condition of enjoying the greatest preferential degree.
By way of example, when the smart phone enters the signal coverage area of the electronic beacon, receives the signal of the electronic beacon and analyzes the data therein, obtains the unique identifier of the electronic beacon and records the unique identifier, and then if the user uses a certain NFC analog card and successfully opens the entrance guard, the current electronic beacon and the NFC analog card can be bound. After the intelligent mobile phone is successfully used once, the intelligent mobile phone automatically switches the NFC analog card bound with the intelligent mobile phone into a default card every time when the intelligent mobile phone enters the coverage area of the same signal, and a user can directly unlock the access control without waking the intelligent mobile phone.
For example, as shown in fig. 6, taking a smart phone as an example, in a signal coverage area of an electronic beacon where the smart phone enters an entrance guard, the smart phone may obtain an identifier of the electronic beacon, specifically: and receiving and analyzing the data in the NFC simulation card, acquiring the unique identifier of the electronic beacon, searching the NFC simulation card bound with the identifier, setting the NFC simulation card bound with the identifier as a default simulation card if the NFC simulation card exists, and ending the operation if the NFC simulation card does not exist.
For further illustration, as shown in fig. 7, for the unlocking scenario, when the smart phone is in the screen-off state, the smart phone approaches the entrance guard, and detects whether a default analog card is set, if yes, the entrance guard is unlocked, if not, the smart phone is awakened, the near field communication analog card application is opened, the user manually selects the analog card, the entrance guard is unlocked, whether the unlocking is successful is detected, and if yes, the identification of the electronic beacon is bound with the analog card selected by the user. In the specific application, if the default card is not set by the smart phone, the near field communication simulation card application in the smart phone is awakened, the NFC simulation card is manually selected by a user, then the access control is unlocked, the card is bound with the identification of the electronic beacon of the access control obtained before and stored after the access control is successful, and if the default card is set, the NFC simulation card is used for unlocking.
In one possible example, following step 304, the following steps may also be included:
b1, detecting that the target near field communication analog card is set as the duration of the default analog card;
and B2, when the duration time is longer than a preset duration time, canceling setting the target near field communication analog card as the default analog card.
The preset duration may be preset or default. In specific implementation, the duration of the target near field communication analog card set as the default analog card can be detected, when the duration is longer than the preset duration, the user is stated that the user is likely not to want to use the target near field communication analog card, the setting of the target near field communication analog card as the default analog card can be automatically canceled, further, the power consumption of the device can be reduced, the default analog card can be automatically released in advance, other near field communication analog cards can be conveniently set as the default analog card, and the use convenience of the analog card is improved.
It can be seen that, in the communication control method described in the embodiment of the present application, the communication control method is applied to an electronic device, and in response to a transmission signal of the electronic beacon, a target electronic beacon is determined, a target identifier of the target electronic beacon is obtained, whether a target near field communication analog card bound with the target identifier exists in the electronic device is detected, when the target near field communication analog card bound with the target identifier exists in the electronic device, the target near field communication analog card is set as a default analog card, and further after the transmission signal of the electronic beacon is received, the identifier of the electronic beacon is obtained, and the near field communication analog card corresponding to the identifier is set as a default analog card, that is, the default analog card can be quickly set, and the use convenience of the analog card can be improved.
In accordance with fig. 3, the present application provides reference to fig. 8, and fig. 8 is a schematic flow chart of a communication control method provided in an embodiment of the present application, and the method is applied to an electronic device, and includes:
801. a target electronic beacon is determined in response to the transmitted signal of the electronic beacon.
802. And obtaining the target identification of the target electronic beacon.
803. And detecting whether a target near field communication analog card bound with the target identifier exists in the electronic equipment.
804. And when the target near field communication analog card bound with the target identifier exists in the electronic equipment, determining the distance between the electronic equipment and the target electronic beacon.
805. And setting the target near field communication analog card as a default analog card when the distance is smaller than a first preset distance.
The specific description of the steps 801 to 805 may refer to the related description of the communication control method described in fig. 3, which is not repeated herein.
It can be seen that, in the communication control method described in the embodiment of the present application, the communication control method is applied to an electronic device, a target electronic beacon is determined in response to a transmission signal of the electronic beacon, a target identifier of the target electronic beacon is obtained, whether a target near field communication analog card bound with the target identifier exists in the electronic device is detected, when the target near field communication analog card bound with the target identifier exists in the electronic device, a distance between the electronic device and the target electronic beacon is determined, when the distance is smaller than a first preset distance, the target near field communication analog card is set as a default analog card, further after the transmission signal of the electronic beacon is received, an identifier of the electronic beacon is obtained, and when the distance is smaller than a certain distance, the near field communication analog card corresponding to the identifier is set as the default analog card, that is, that the default analog card can be quickly set, and switching of the analog card can be avoided only when the distance is sufficiently close, and convenience in use of the analog card can be improved.
In accordance with the above-described embodiments, referring to fig. 9, fig. 9 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, as shown in the fig. 9, the electronic device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and in the embodiment of the present application, the programs include instructions for performing the following steps:
determining a target electronic beacon in response to the transmission signal of the electronic beacon;
acquiring a target identifier of the target electronic beacon;
detecting whether a target near field communication analog card bound with the target identifier exists in the electronic equipment;
and when the target near field communication simulation card bound with the target identifier exists in the electronic equipment, setting the target near field communication simulation card as a default simulation card.
In one possible example, in the determining a target electronic beacon, the program includes instructions for:
determining the distance between each electronic beacon in the plurality of electronic beacons and the electronic equipment to obtain a plurality of distances;
determining a minimum value of the plurality of distances;
And determining the electronic beacon corresponding to the minimum value as the target electronic beacon.
In one possible example, in the determining a target electronic beacon, the program includes instructions for:
obtaining geographic position information of the electronic equipment;
and determining the electronic beacon corresponding to the geographic position information as the target electronic beacon.
In one possible example, the above-described program further includes instructions for performing the steps of:
determining a distance between the electronic device and the target electronic beacon;
and when the distance is smaller than a first preset distance, executing the step of setting the target near field communication analog card as a default analog card.
In one possible example, the above-described program further includes instructions for performing the steps of:
detecting whether a near field communication analog card corresponding to the target identifier is set or not when the distance between the electronic equipment and the target electronic beacon is smaller than a second preset distance;
when detecting that the near field communication simulation card corresponding to the target identifier is not set, opening a near field communication simulation card application, and setting a target near field communication simulation card corresponding to the target identifier;
And binding the target near field communication simulation card with the target identifier.
In one possible example, the above-described program further includes instructions for performing the steps of:
executing unlocking operation through the target near field communication analog card;
detecting whether unlocking is successful;
if the unlocking is successful, executing the step of binding the target near field communication analog card with the target identifier;
and if the unlocking is unsuccessful, executing the step of opening the near field communication analog card application.
In one possible example, the program further comprises instructions for, when the electronic device is in an off-screen state:
and waking up the electronic equipment, and executing the step of opening the near field communication analog card application.
It can be seen that, in the electronic device described in the embodiment of the present application, in response to the transmission signal of the electronic beacon, the target electronic beacon is determined, the target identifier of the target electronic beacon is obtained, whether the target near field communication analog card bound with the target identifier exists in the electronic device is detected, when the target near field communication analog card bound with the target identifier exists in the electronic device, the target near field communication analog card is set as a default analog card, and further, after the transmission signal of the electronic beacon is received, the identifier of the electronic beacon is obtained, and the near field communication analog card corresponding to the identifier is set as a default analog card, so that the default analog card can be quickly set, and the convenience in use of the analog card can be improved.
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven 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.
The embodiment of the application may divide the functional units of the electronic device according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
Fig. 10 is a functional unit block diagram of the communication control apparatus 1000 according to the embodiment of the present application. The communication control apparatus 1000 is applied to an electronic device, the apparatus 1000 including: a determination unit 1001, an acquisition unit 1002, a detection unit 1003, and a setting unit 1004, wherein,
the determining unit 1001 is configured to determine a target electronic beacon in response to a transmission signal of the electronic beacon;
the acquiring unit 1002 is configured to acquire a target identifier of the target electronic beacon;
the detecting unit 1003 is configured to detect whether a target near field communication analog card bound to the target identifier exists in the electronic device;
the setting unit 1004 is configured to set, when a target near field communication analog card bound to the target identifier exists in the electronic device, the target near field communication analog card as a default analog card.
In one possible example, in terms of the determining a target electronic beacon, the determining unit 1001 is specifically configured to:
determining the distance between each electronic beacon in the plurality of electronic beacons and the electronic equipment to obtain a plurality of distances;
determining a minimum value of the plurality of distances;
and determining the electronic beacon corresponding to the minimum value as the target electronic beacon.
In one possible example, in terms of the determining a target electronic beacon, the determining unit 1001 is specifically configured to:
obtaining geographic position information of the electronic equipment;
and determining the electronic beacon corresponding to the geographic position information as the target electronic beacon.
In one possible example, the apparatus 1000 is further specifically configured to:
determining a distance between the electronic device and the target electronic beacon;
and when the distance is smaller than a first preset distance, executing the step of setting the target near field communication analog card as a default analog card.
In one possible example, the apparatus 1000 is further specifically configured to:
detecting whether a near field communication analog card corresponding to the target identifier is set or not when the distance between the electronic equipment and the target electronic beacon is smaller than a second preset distance;
when detecting that the near field communication simulation card corresponding to the target identifier is not set, opening a near field communication simulation card application, and setting a target near field communication simulation card corresponding to the target identifier;
and binding the target near field communication simulation card with the target identifier.
In one possible example, the apparatus 1000 is further specifically configured to:
Executing unlocking operation through the target near field communication analog card;
detecting whether unlocking is successful;
if the unlocking is successful, executing the step of binding the target near field communication analog card with the target identifier;
and if the unlocking is unsuccessful, executing the step of opening the near field communication analog card application.
In one possible example, when the electronic device is in the off-screen state, the apparatus 1000 is further specifically configured to:
and waking up the electronic equipment, and executing the step of opening the near field communication analog card application.
It can be seen that, the communication control device described in the embodiment of the present application is applied to an electronic device, and responds to a transmission signal of the electronic beacon, determines a target electronic beacon, obtains a target identifier of the target electronic beacon, detects whether a target near field communication analog card bound with the target identifier exists in the electronic device, and sets the target near field communication analog card as a default analog card when the target near field communication analog card bound with the target identifier exists in the electronic device, so that after receiving the transmission signal of the electronic beacon, the identifier of the electronic beacon can be obtained, and sets the near field communication analog card corresponding to the identifier as the default analog card, that is, the default analog card can be quickly set, and the use convenience of the analog card can be improved.
The determining unit 1001, the acquiring unit 1002, the detecting unit 1003, and the setting unit 1004 may be a processor, which may be an artificial intelligence chip, NPU, CPU, GPU, modem, or the like, which is not limited herein. Of course, the determining unit 1001 may also be a communication module, and the functions or steps of any of the methods described above can be implemented based on the above unit modules.
The present embodiment also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the above computer program causes a computer to execute the embodiments as the present application for implementing any of the methods of the embodiments.
The present embodiment also provides a computer program product which, when run on a computer, causes the computer to perform the above-described relevant steps to implement any of the methods of the above-described embodiments.
In addition, the embodiment of the application also provides a communication control device, which can be a chip, a component or a module, and the device can comprise a processor and a memory which are connected; the memory is configured to store computer-executable instructions that, when the device is operated, are executable by the processor to cause the chip to perform any one of the method embodiments described above.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are used to execute the corresponding methods provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding methods provided above, and will not be described herein.
It will be appreciated by those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A communication control method applied to an electronic device and to a payment scene, the method comprising:
determining a target electronic beacon in response to the transmission signal of the electronic beacon;
acquiring a target identifier of the target electronic beacon;
detecting whether a target near field communication analog card bound with the target identifier exists in the electronic equipment;
when a target near field communication simulation card bound with the target identifier exists in the electronic equipment, setting the target near field communication simulation card as a default simulation card;
wherein when the target near field communication analog card includes a plurality of near field communication analog cards, the setting the target near field communication analog card as a default analog card includes:
determining an amount to be paid;
determining the residual amount of each near field communication analog card in the plurality of near field communication analog cards to obtain a plurality of residual amounts;
Selecting the remaining amount larger than the to-be-paid amount from the plurality of remaining amounts to obtain at least one remaining amount;
determining the preferential strength of the near field communication analog card corresponding to the at least one residual amount to obtain at least one preferential strength;
and selecting a near field communication analog card corresponding to the maximum preferential strength in the at least one preferential strength, and setting the near field communication analog card as a default analog card.
2. The method of claim 1, wherein the determining the target electronic beacon comprises:
determining the distance between each electronic beacon in the plurality of electronic beacons and the electronic equipment to obtain a plurality of distances;
determining a minimum value of the plurality of distances;
and determining the electronic beacon corresponding to the minimum value as the target electronic beacon.
3. The method of claim 1, wherein the determining the target electronic beacon comprises:
obtaining geographic position information of the electronic equipment;
and determining the electronic beacon corresponding to the geographic position information as the target electronic beacon.
4. A method according to any one of claims 1-3, wherein the method further comprises:
determining a distance between the electronic device and the target electronic beacon;
And when the distance is smaller than a first preset distance, executing the step of setting the target near field communication analog card as a default analog card.
5. A method according to any one of claims 1-3, wherein the method further comprises:
detecting whether a near field communication analog card corresponding to the target identifier is set or not when the distance between the electronic equipment and the target electronic beacon is smaller than a second preset distance;
when detecting that the near field communication simulation card corresponding to the target identifier is not set, opening a near field communication simulation card application, and setting a target near field communication simulation card corresponding to the target identifier;
and binding the target near field communication simulation card with the target identifier.
6. The method of claim 5, wherein the method further comprises:
executing unlocking operation through the target near field communication analog card;
detecting whether unlocking is successful;
if the unlocking is successful, executing the step of binding the target near field communication analog card with the target identifier;
and if the unlocking is unsuccessful, executing the step of opening the near field communication analog card application.
7. The method of claim 5, wherein when the electronic device is in an off-screen state, the method further comprises:
And waking up the electronic equipment, and executing the step of opening the near field communication analog card application.
8. A communication control apparatus, applied to an electronic device and to a payment scene, the apparatus comprising: a determining unit, an acquiring unit, a detecting unit and a setting unit, wherein,
the determining unit is used for determining a target electronic beacon in response to the transmitting signal of the electronic beacon;
the acquisition unit is used for acquiring the target identifier of the target electronic beacon;
the detection unit is used for detecting whether a target near field communication analog card bound with the target identifier exists in the electronic equipment;
the setting unit is used for setting the target near field communication simulation card as a default simulation card when the target near field communication simulation card bound with the target identifier exists in the electronic equipment;
wherein when the target near field communication analog card includes a plurality of near field communication analog cards, the setting the target near field communication analog card as a default analog card includes:
determining an amount to be paid;
determining the residual amount of each near field communication analog card in the plurality of near field communication analog cards to obtain a plurality of residual amounts;
Selecting the remaining amount larger than the to-be-paid amount from the plurality of remaining amounts to obtain at least one remaining amount;
determining the preferential strength of the near field communication analog card corresponding to the at least one residual amount to obtain at least one preferential strength;
and selecting a near field communication analog card corresponding to the maximum preferential strength in the at least one preferential strength, and setting the near field communication analog card as a default analog card.
9. An electronic device comprising a processor, a memory for storing one or more programs and configured for execution by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. 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 one of claims 1-7.
CN202210739629.2A 2022-06-28 2022-06-28 Communication control method and related device Active CN115175164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210739629.2A CN115175164B (en) 2022-06-28 2022-06-28 Communication control method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210739629.2A CN115175164B (en) 2022-06-28 2022-06-28 Communication control method and related device

Publications (2)

Publication Number Publication Date
CN115175164A CN115175164A (en) 2022-10-11
CN115175164B true CN115175164B (en) 2023-06-27

Family

ID=83486799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210739629.2A Active CN115175164B (en) 2022-06-28 2022-06-28 Communication control method and related device

Country Status (1)

Country Link
CN (1) CN115175164B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018018703A1 (en) * 2016-07-28 2018-02-01 宇龙计算机通信科技(深圳)有限公司 Emulated card switching method and device of nfc mobile terminal
KR20190016398A (en) * 2017-08-08 2019-02-18 김종정 Interphone service system and method capable of interphone call forwarding by using lobby phone and PC
WO2022083551A1 (en) * 2020-10-21 2022-04-28 华为技术有限公司 Emulation card switching method, electronic device, and communication system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10796030B2 (en) * 2016-10-27 2020-10-06 International Business Machines Corporation Detecting an attempted theft of information stored in an RFID-enabled card
CN108604342B (en) * 2017-01-20 2022-04-12 华为技术有限公司 NFC-based data transmission method and mobile device
CN110020569B (en) * 2019-03-11 2022-03-29 华为技术有限公司 Method for automatically selecting NFC analog card, electronic equipment and communication system
CN113902436A (en) * 2020-06-22 2022-01-07 Oppo广东移动通信有限公司 Analog card switching method, terminal device, card reader and storage medium
CN111784334A (en) * 2020-07-17 2020-10-16 Oppo广东移动通信有限公司 Analog card switching method, terminal device and storage medium
CN113312934B (en) * 2021-05-26 2023-04-25 维沃移动通信有限公司 NFC analog card selection method and device, electronic equipment and storage medium
CN113541741B (en) * 2021-07-20 2022-07-08 西安易朴通讯技术有限公司 Analog card switching method and device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018018703A1 (en) * 2016-07-28 2018-02-01 宇龙计算机通信科技(深圳)有限公司 Emulated card switching method and device of nfc mobile terminal
KR20190016398A (en) * 2017-08-08 2019-02-18 김종정 Interphone service system and method capable of interphone call forwarding by using lobby phone and PC
WO2022083551A1 (en) * 2020-10-21 2022-04-28 华为技术有限公司 Emulation card switching method, electronic device, and communication system

Also Published As

Publication number Publication date
CN115175164A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
CN115866121B (en) Application interface interaction method, electronic device and computer readable storage medium
CN112506386B (en) Folding screen display method and electronic equipment
CN113254409B (en) File sharing method, system and related equipment
CN111553846B (en) Super-resolution processing method and device
CN111835530B (en) Group joining method and device
CN110780929B (en) Method for calling hardware interface and electronic equipment
CN114513847B (en) Positioning method, device, system, electronic equipment and storage medium
CN113805487B (en) Control instruction generation method and device, terminal equipment and readable storage medium
CN116070035B (en) Data processing method and electronic equipment
CN113641271B (en) Application window management method, terminal device and computer readable storage medium
CN113973398A (en) Wireless network connection method, electronic equipment and chip system
CN115914461B (en) Position relation identification method and electronic equipment
CN111249728A (en) Image processing method and image processing device
CN115175164B (en) Communication control method and related device
CN114336998A (en) Charging control method, charging control device and storage medium
CN114510192B (en) Image processing method and related device
CN114596819B (en) Brightness adjusting method and related device
CN111459271B (en) Gaze offset error determination method and device
CN115016666B (en) Touch processing method, terminal equipment and storage medium
CN116048350B (en) Screen capturing method and electronic equipment
CN116339510B (en) Eye movement tracking method, eye movement tracking device, electronic equipment and computer readable storage medium
CN116054298B (en) Charging method and electronic equipment
CN116033347A (en) Positioning processing method, system and related device
CN116931802A (en) Control method and central control equipment
CN118069262A (en) Window adjusting method and related device

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