CN112188461A - Control method and device for near field communication device, medium and electronic equipment - Google Patents

Control method and device for near field communication device, medium and electronic equipment Download PDF

Info

Publication number
CN112188461A
CN112188461A CN202011126376.9A CN202011126376A CN112188461A CN 112188461 A CN112188461 A CN 112188461A CN 202011126376 A CN202011126376 A CN 202011126376A CN 112188461 A CN112188461 A CN 112188461A
Authority
CN
China
Prior art keywords
near field
display interface
target
communication
communication mode
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.)
Granted
Application number
CN202011126376.9A
Other languages
Chinese (zh)
Other versions
CN112188461B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011126376.9A priority Critical patent/CN112188461B/en
Publication of CN112188461A publication Critical patent/CN112188461A/en
Application granted granted Critical
Publication of CN112188461B publication Critical patent/CN112188461B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • 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

Abstract

The disclosure provides a control method of a near field communication device, a control device of the near field communication device, a computer readable medium and an electronic device, and relates to the technical field of communication. The method comprises the following steps: when the first device is located at a target display interface, determining a target communication mode corresponding to the target display interface in a near field communication mode corresponding to a near field communication function; and when receiving a first control operation aiming at the target display interface, closing other communication modes except the target communication mode in the near field communication mode so as to enable the first equipment to establish communication connection with the second equipment based on the target communication mode. The present disclosure may retain only the target functional mode when the first device is in the target display interface. Therefore, the situation that the near field communication function of the first device establishes communication connection different from the user requirement based on other function modes when the first device is in the target display interface can be avoided, and the accuracy of the established communication connection is improved.

Description

Control method and device for near field communication device, medium and electronic equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a control method for a near field communication device, a control device for a near field communication device, a computer readable medium, and an electronic device.
Background
Near Field Communication (NFC) is a Near Field Communication technology, and is evolved from the convergence of a non-contact identification technology and an interconnection technology. At present, the technology is widely applied to life of people, such as common subway, public transport, UnionPay, access control system and the like.
When the terminal device uses the NFC apparatus to perform communication, the multiple near field communication modes of the NFC apparatus are often switched by means of time slice polling. However, when the NFC devices of two terminal devices support multiple near field communication modes, there are multiple communication connection modes between the NFC devices, and therefore, the communication connection may be different from the user requirement.
Disclosure of Invention
The present disclosure is directed to a control method of a near field communication device, a control device of a near field communication device, a computer readable medium, and an electronic apparatus, so as to avoid a situation that an established communication connection is different from a user requirement in related technologies at least to a certain extent, and improve accuracy of the established communication connection.
According to a first aspect of the present disclosure, there is provided a control method of a near field communication apparatus, applied to a first device having a near field communication function, including: when the first device is located at a target display interface, determining a target communication mode corresponding to the target display interface in a near field communication mode corresponding to a near field communication function; when a first control operation aiming at a target display interface is received, other communication modes except the target communication mode in the near field communication mode are closed, so that the first equipment establishes communication connection with the second equipment based on the target communication mode.
According to a second aspect of the present disclosure, there is provided a control apparatus of a near field communication apparatus, applied to a first device having a near field communication function, including:
the mode determining module is used for determining a target communication mode corresponding to the target display interface in a near field communication mode corresponding to the near field communication function when the first device is located at the target display interface;
the mode control module is used for closing other communication modes except the target communication mode in the near field communication mode when receiving first control operation aiming at the target display interface so as to enable the first equipment to establish communication connection with the second equipment based on the target communication mode.
According to a third aspect of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, is adapted to carry out the above-mentioned method.
According to a fourth aspect of the present disclosure, there is provided an electronic apparatus, comprising:
a processor; and
a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the above-described method.
According to the control method of the near field communication device provided by an embodiment of the present disclosure, when the first device is in the target display interface, the target function mode that the user needs to use when the first device is in the target display interface may be determined, and the target function mode may be retained and other function modes may be closed, so that the first device may establish a communication connection with the second device based on the target communication mode. By the method, only the target function mode can be reserved when the first device is in the target display interface. Therefore, the situation that the near field communication function of the first device establishes communication connection different from user requirements with the second device based on other function modes when the first device is located in the target display interface can be avoided, and the accuracy of the established communication connection is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
FIG. 1 illustrates a schematic diagram of an exemplary system architecture to which embodiments of the present disclosure may be applied;
FIG. 2 shows a schematic diagram of an electronic device to which embodiments of the present disclosure may be applied;
fig. 3 is a diagram showing a polling cycle of a polling operation of an NFC device in the related art;
fig. 4 schematically illustrates a flowchart of a control method of a near field communication device in an exemplary embodiment of the present disclosure;
FIG. 5 is a schematic diagram schematically illustrating a generation of a preset control on a target display interface in an exemplary embodiment of the present disclosure;
fig. 6 schematically shows a flow chart of another control method of a near field communication device in an exemplary embodiment of the present disclosure;
fig. 7 schematically shows a composition diagram of a control device of a near field communication device in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
Fig. 1 is a schematic diagram illustrating a system architecture of an exemplary application environment to which a control method of a near field communication apparatus and an apparatus according to an embodiment of the present disclosure can be applied.
As shown in fig. 1, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few. The terminal devices 101, 102, 103 may be near field communication enabled terminal devices including but not limited to desktop computers, portable computers, smart phones, tablet computers, and the like. It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. For example, server 105 may be a server cluster comprised of multiple servers, or the like.
The control method of the near field communication apparatus provided by the embodiment of the present disclosure is generally executed by the terminal devices 101, 102, and 103, and accordingly, the control apparatus of the near field communication apparatus is generally disposed in the terminal devices 101, 102, and 103. However, it is easily understood by those skilled in the art that the control method of the near field communication device provided in the embodiment of the present disclosure may also be executed by the server 105, and accordingly, the control device of the near field communication device may also be disposed in the server 105, which is not particularly limited in the exemplary embodiment. For example, in an exemplary embodiment, the terminal device 101, 102, 103 may determine a target communication mode according to whether its display interface is a target display interface, and control other communication modes to be closed; the server 105 may also determine whether the current interface is a target display interface by monitoring the display interfaces of the terminal devices 101, 102, and 103, and then issue a control instruction to the terminal devices 101, 102, and 103 to close other communication modes except the target communication mode after determining the corresponding target communication mode.
An exemplary embodiment of the present disclosure provides an electronic device for implementing a control method of a near field communication apparatus, which may be one or more of the terminal devices 101, 102, 103 or the server 105 in fig. 1. The electronic device comprises at least a processor and a memory for storing executable instructions of the processor, the processor being configured to perform the control method of the near field communication apparatus via execution of the executable instructions.
The following takes the mobile terminal 200 in fig. 2 as an example, and exemplifies the configuration of the electronic device. It will be appreciated by those skilled in the art that the configuration of figure 2 can also be applied to fixed type devices, in addition to components specifically intended for mobile purposes. In other embodiments, mobile terminal 200 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. The interfacing relationship between the components is only schematically illustrated and does not constitute a structural limitation of the mobile terminal 200. In other embodiments, the mobile terminal 200 may also interface differently than shown in fig. 2, or a combination of multiple interfaces.
As shown in fig. 2, the mobile terminal 200 may specifically include: a processor 210, an internal memory 221, an external memory interface 222, a Universal Serial Bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 271, a microphone 272, a microphone 273, an earphone interface 274, a sensor module 280, a display 290, a camera module 291, an indicator 292, a motor 293, a button 294, and a Subscriber Identity Module (SIM) card interface 295. Wherein the sensor module 280 may include a depth sensor 2801, a pressure sensor 2802, a gyroscope sensor 2803, and the like.
Processor 210 may include one or more processing units, such as: the Processor 210 may include an Application Processor (AP), a modem Processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband Processor, and/or a Neural-Network Processing Unit (NPU), and the like. The different processing units may be separate devices or may be integrated into one or more processors.
The NPU is a Neural-Network (NN) computing processor, which processes input information quickly by using a biological Neural Network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can implement applications such as intelligent recognition of the mobile terminal 200, for example: image recognition, face recognition, speech recognition, text understanding, and the like. In some embodiments, the NPU may be configured to identify whether the first device is at the target display interface. For example, the target display interface may be set as a display interface including a specific feature, and at this time, whether the current display screen of the first device includes the specific feature may be identified according to the NPU to determine whether the first device is in the target display interface.
A memory is provided in the processor 210. The memory may store instructions for implementing six modular functions: detection instructions, connection instructions, information management instructions, analysis instructions, data transmission instructions, and notification instructions, and execution is controlled by processor 210.
The charge management module 240 is configured to receive a charging input from a charger. The power management module 241 is used for connecting the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives the input of the battery 242 and/or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the display screen 290, the camera module 291, the wireless communication module 260, and the like.
The wireless communication function of the mobile terminal 200 may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, a modem processor, a baseband processor, and the like. Wherein, the antenna 1 and the antenna 2 are used for transmitting and receiving electromagnetic wave signals; the mobile communication module 250 may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied to the mobile terminal 200; the modem processor may include a modulator and a demodulator.
The Wireless communication module 260 may provide a solution for Wireless communication including a Wireless Local Area Network (WLAN) (e.g., a Wireless Fidelity (Wi-Fi) network), Bluetooth (BT), and the like, applied to the mobile terminal 200. In some embodiments, antenna 1 of the mobile terminal 200 is coupled to the mobile communication module 250 and antenna 2 is coupled to the wireless communication module 260, such that the mobile terminal 200 may communicate with networks and other devices via wireless communication techniques.
The mobile terminal 200 implements a display function through the GPU, the display screen 290, the application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 290 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
The mobile terminal 200 may implement a photographing function through the ISP, the camera module 291, the video codec, the GPU, the display screen 290, the application processor, and the like. The ISP is used for processing data fed back by the camera module 291; the camera module 291 is used for capturing still images or videos; the digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals; the video codec is used to compress or decompress digital video, and the mobile terminal 200 may also support one or more video codecs.
The external memory interface 222 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the mobile terminal 200. The external memory card communicates with the processor 210 through the external memory interface 222 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
Internal memory 221 may be used to store computer-executable program code, which includes instructions. The internal memory 221 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (e.g., audio data, a phonebook, etc.) created during use of the mobile terminal 200, and the like. In addition, the internal memory 221 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk Storage device, a Flash memory device, a Universal Flash Storage (UFS), and the like. The processor 210 executes various functional applications of the mobile terminal 200 and data processing by executing instructions stored in the internal memory 221 and/or instructions stored in a memory provided in the processor.
The mobile terminal 200 may implement an audio function through the audio module 270, the speaker 271, the receiver 272, the microphone 273, the earphone interface 274, the application processor, and the like. Such as music playing, recording, etc.
The depth sensor 2801 is used to obtain depth information of the scene; the pressure sensor 2802 is used for sensing a pressure signal and converting the pressure signal into an electrical signal; the gyro sensor 2803 may be used to determine a motion gesture of the mobile terminal 200. In addition, other functional sensors, such as an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc., may be provided in the sensor module 280 according to actual needs.
Other devices for providing auxiliary functions may also be included in mobile terminal 200. For example, the keys 294 include a power-on key, a volume key, and the like, and a user can generate key signal inputs related to user settings and function control of the mobile terminal 200 through key inputs. Further examples include indicator 292, motor 293, SIM card interface 295, etc.
In addition, the mobile terminal 200 is provided with an NFC module 296 and an auxiliary device of the NFC module, and is used for performing near field communication with other devices. The NFC module 296 may establish communication connections with NFC modules of other devices in different communication modes by emitting radio frequency fields or receiving radio frequency fields. For example, information in an analog card may be read by a card reader mode; as another example, data transmission may be performed with other devices via a point-to-point transmission mode.
The following specifically describes an analog card switching method and an analog card switching apparatus according to exemplary embodiments of the present disclosure.
In the related art, when a terminal device uses an NFC apparatus to perform communication, a plurality of functional modes of the NFC apparatus are often switched by means of time slice polling. Fig. 3 shows one polling cycle when the NFC apparatus includes three near field communication modes. Within one polling period, the NFC devices alternately operate in multiple near field communication modes according to time slices. After a polling period is finished, the next period is entered again, and the steps are repeated in a circulating mode. Based on the polling scheme, when two NFC devices are close to each other, both NFC devices may be in any one of a plurality of functional modes. In this case, it is likely that the communication connection cannot be established or that the established communication connection is random. For example, in a case where both NFC devices support a card reader mode, a card emulation mode, and a peer-to-peer transmission mode, both devices may establish a communication connection in the card reader-card emulation mode and may also establish a communication connection in the peer-to-peer transmission mode. Furthermore, there may be a case where connection cannot be established.
For the above reasons, in the case of the near field communication function used by the user, there is a high possibility that the communication connection that the user needs to use is different from the communication connection actually established. For example, the user now needs to establish a communication connection in a point-to-point transmission mode for data transmission, but the randomly established communication connection is a communication connection in a card reader-card simulation mode. At this time, the user is required to disconnect the communication connection in the card reader-card simulation mode and then to perform the random establishment process again. In an extreme case, even after the user disconnects the connection for many times and re-establishes the random establishment process for many times, the communication connection in the point-to-point transmission mode still cannot be established.
In view of one or more of the above problems, the present exemplary embodiment provides a control method of a near field communication apparatus, which can be applied to a first device having a near field communication function. The first device can be a mobile phone, a tablet computer, a wearable device and the like. Referring to fig. 4, the control method of the near field communication apparatus may include the following steps S410 and S420:
in step S410, when the first device is in the target display interface, a target communication mode corresponding to the target display interface is determined in the near field communication mode corresponding to the near field communication function.
The near field communication mode corresponding to the NFC function may include at least one of a card reader mode, a card simulation mode, a peer-to-peer transmission mode, and the like, or may be a combination of multiple modes. In some embodiments, the NFC-enabled near field communication mode may further include more communication modes, which is not limited in this disclosure.
In an exemplary embodiment, the NFC functionality is typically used for data exchange between two terminal devices in close proximity to each other, with different near field communication modes being used for different exchanged data. For example, when data such as a file and a picture is transmitted, it is necessary to transmit the data in a point-to-point transmission mode. Therefore, before the control method of the present disclosure is executed, a corresponding relationship between the display interface and the near field communication mode may be established according to different data contents contained in the display interface, and then the near field communication mode required by the user may be determined according to the display interface where the first device is located. For example, a corresponding relationship between a display interface containing picture data and file data and a peer-to-peer transmission mode may be established, and when the first device is in a target display interface containing picture data, the target communication mode may be determined to be the peer-to-peer transmission mode based on the established corresponding relationship.
When the corresponding relationship is established, the corresponding relationship can be established by setting the identifier. Specifically, different identifiers may be set for each near field communication mode, and the identifiers are used to identify the target display interface corresponding to each near field communication mode. When the current display interface of the first device has the identifier, it can be determined that the first device is in the target display interface, and then the corresponding target communication mode can be determined according to the difference of the identifiers. For example, a digital identifier "1" is set for the point-to-point transmission mode, pages such as picture pages and address book pages which may need data transmission in the point-to-point transmission mode are marked in advance through the digital identifier "1", and when the mobile phone enters the pages such as the picture pages and the address book pages, the pages can be identified as target display interfaces corresponding to the point-to-point transmission mode; the corresponding relation between each near field communication mode and the display interface can be established in a mode of limiting the characteristics of the display interface.
During control, the NPU and other devices can identify and judge whether the display interface characteristics in the current display interface of the first device meet the conditions of each near field communication mode, and then the target communication mode is determined according to the identification and judgment results. For example, the target display interface corresponding to the card simulation mode may be defined as a display interface including the feature of simulating a card. At this time, when the current display interface of the first device includes the feature of simulating the card, it may be determined that the first device is in the target display interface corresponding to the card simulation mode, and then it is determined that the target communication mode is the card simulation mode; in addition, the target display interface may be defined in other manners, which is not particularly limited in this disclosure.
It should be noted that, when establishing the corresponding relationship, it is necessary to establish the corresponding relationship based on the content included in the display interface, so that the communication connection established based on the target communication mode can process the content included in the corresponding target display interface. For example, when the content included in the target display interface of the first device is an analog card, only when the first device is in the card analog mode, the other NFC devices may read the information of the analog card, that is, only in the card analog mode, the analog card may be processed; if the target communication mode corresponding to the target display interface including the analog card is set to be the point-to-point transmission mode, other NFC devices cannot read the information of the analog card, and therefore the point-to-point transmission mode cannot process the analog card.
In step S420, when the first control operation for the target display interface is received, the other communication modes except the target communication mode in the near field communication mode are turned off, so that the first device establishes a communication connection with the second device based on the target communication mode.
In an exemplary embodiment, when a user needs to process content contained in a target display interface through an NFC function, a first control operation for the target display interface may be performed while a first device is still in the target display interface. The first control operation for the target display interface may include touch operations such as clicking, sliding and the like performed by a user on the target display interface on the screen when the first device is located on the target display interface; operations by a user with respect to the first device while the first device is at the target display interface may also be included. For example, when the first device is in the target display interface, the user presses a key provided on the first device.
It should be noted that, in some embodiments, the first control operation may further include an operation of a preset control on the target display interface on the display screen by the user. At this time, when the first device is located in the target display interface, a preset control may be generated on the target display interface, so that the user may operate the preset control, and it is further determined that the user needs to process the content included in the target display interface based on the near field communication function. For example, referring to fig. 5, an "N" -shaped preset control 501 may be generated on the target display interface, and when the user performs a touch operation on the "N" -shaped preset control, it may be determined that the user needs to process content included in the target display interface based on the near field communication function, and then close other communication modes except the target communication mode.
In an exemplary embodiment, the target communication mode may be a point-to-point transmission mode in a near field communication mode. In this case, since the first device only maintains the peer-to-peer transmission mode at this time, if the first device establishes a communication connection with the second device based on the peer-to-peer transmission mode, the content included in the target display interface may be directly transmitted to the second device. In this way, the communication mode for establishing the connection and the content of the transmission can be determined simultaneously through the first control operation, and the communication transmission can be directly performed, thereby simplifying the operation steps.
It should be noted that, in some embodiments, after the communication mode for establishing the connection is determined through the first control operation, the content included in the target display interface may be confirmed through the second control operation, and then the confirmed content may be subjected to communication transmission.
Further, in an exemplary embodiment, after the content transmission included in the target display interface is finished, other communication modes except the target communication mode in the near field communication mode may be automatically resumed. After the user's requirement for the target display interface (content included in the transmission target display interface) is finished, the user may also need to perform other processing based on other near field communication modes, so after the content transmission of the target display interface is finished, other communication modes that have been closed before can be recovered, and the user is prevented from being influenced to perform other processing according to other communication modes.
In an exemplary embodiment, since the target communication mode is used to support the first device to process the content included in the target display interface based on the target communication mode, when the first device closes the target display interface, it is stated that the user does not need to process the content included in the target display interface. At this time, other communication modes which are closed before can be recovered, and the influence on the need of the user to perform other processing according to other communication modes is avoided.
In an exemplary embodiment, if the first device is always in the target display interface, it may be that the user does not need to process the content included in the target display interface based on the near field communication function. For example, the user does not need to transfer an open file, but rather browse the file. In this case, a preset time may be set, and when the first device is in the target display interface for the preset time, the first device still does not establish a communication connection based on the target communication mode, which may be that the user does not need to process the content included in the target display interface based on the near field communication function, so that the other communication mode that has been closed before is recovered, and the user is prevented from being influenced by performing other processing according to the other communication mode.
In an exemplary embodiment, the power consumption of the NFC device is different in different near field communication modes. For example, when the NFC device is in the card reader mode, the corresponding maximum current can reach 200-300 mA, and when the NFC device is in the card simulation mode or only in the listening state, the current is generally below 50 uA. Based on the above situation, a near field communication mode with low power consumption may be selected as a preset communication mode, for example, a card emulation mode, and when the power amount of the first device is less than the preset power amount, the preset communication mode is turned on, and other communication modes except the preset communication mode in the near field communication mode are turned off. At this time, since the first device only retains the preset communication mode with low power consumption, the power consumption is low, and the situation that the first device is forced to be powered off due to high power consumption of the NFC device can be avoided to a certain extent.
In addition, when the first device is in the target display interface, if the first control operation for the target display interface is not received, the near field communication mode can still work in turn in a polling mode, so that the first device can still establish communication connection with other devices randomly.
It should be noted that the above control method may be implemented based on authorization of the user, that is, the user authorizes the first device, indicating that the user agrees that the first device may implement the control method proposed in this disclosure, and then the first device may execute the above control method.
The following describes the technical solution of the embodiment of the present disclosure in detail with reference to fig. 6 by taking a mobile phone as an example of a first device.
Step S602, acquiring the current display interface of the mobile phone;
step S604, detecting whether the current display interface of the mobile phone is a target display interface;
step S606, when the mobile phone is in the target display interface, generating a preset control on the target display interface, and determining a target communication mode in the near field communication mode according to the target display interface; assuming that the target communication mode is a point-to-point transmission mode;
step S608, determining whether a first control operation of a user on a preset control is received;
step S610, when the first control operation of the user on the preset control is not received, the near field communication mode can still work in turn in a polling mode;
step S612, when receiving a first control operation of a user on a preset control, closing other communication modes except the point-to-point transmission mode in the near field communication mode, so that the mobile phone can establish communication connection with other mobile phones through the point-to-point transmission mode;
it should be noted that the above-mentioned functions may be implemented according to issuing a specific command, for example, a command "2103050282018301-" (RE _ DISCOVER _ CMD) — "may be used to enable the mobile phone to turn off other communication modes except the peer-to-peer transmission mode
Step S614, detecting whether the mobile phone exits the target display interface;
step S616, when the mobile phone does not quit the target display interface and establishes communication connection with other mobile phones based on point-to-point transmission, transmitting the content included in the target display interface to other mobile phones;
it should be noted that whether the handset establishes the communication connection based on the peer-to-peer transmission mode may be determined according to a specific instruction. For example, it can be determined by "0000028190 LLCP: communication complete" that the handset has established a communication connection based on the peer-to-peer transmission mode with another handset.
In step S618, when the mobile phone exits the target display interface, or after the mobile phone finishes transmitting the content included in the target display interface based on the peer-to-peer transmission mode, the communication modes other than the peer-to-peer transmission mode in the near field communication mode are resumed.
After the user exits the target display interface or the transmission based on the peer-to-peer transmission mode is finished, the NFC device may be controlled to resume other communication modes except the peer-to-peer transmission mode in the near field communication mode by issuing a specific instruction to the NFC device. For example, an NCI command "2103150 a 0001010102010301800181018201830106017001-" (RF DISCOVER CIMD) "may be issued to the NFC device.
It should be noted that, in order to enable the mobile phone with only the point-to-point transmission mode to implement the near field communication function by using the polling method, the same information transmission start instruction as that in the related technical process may be reserved in the mobile phone with only the point-to-point transmission mode, that is, after the communication connection is successfully established and the preparation work for supporting data transmission is completed, the information transmission start instruction is sent to the other mobile phones, and after the other mobile phones receive the information transmission start instruction, the information can be normally received or sent. The command for starting transmission of Information corresponding to the cell phone with the point-to-point transmission mode may be, for example, "000046472000910211487212910202637256425102046163010162005 a2008016170706C69636174696F6E2F766E642E626C7565746F6F74682E65702E6F 626208006425AB252ECO LLCP: Information".
In summary, in the exemplary embodiment, on one hand, the target communication mode is determined through the target display interface where the first device is located, and then other communication modes except the target communication mode are closed, so that when communication connection needs to be established based on the target communication mode, the communication connection is prevented from being established based on other communication modes by mistake, and the accuracy of establishing the communication connection is improved; on the other hand, when the target communication mode is the point-to-point transmission mode, the transmission can be completed only by initiating the first control operation aiming at the target display interface by the user, and compared with the related technology, the operation steps in the point-to-point transmission mode can be simplified; in addition, by reserving the control instruction in the related technology, the first device using the technical scheme of the disclosure can be compatible with other devices using the related technology, and the problems of data transmission failure and the like caused by incompatibility are avoided.
It is noted that the above-mentioned figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Further, referring to fig. 7, in the embodiment of the present example, a control apparatus 700 of a near field communication apparatus is further provided, which is applied to a first device having a near field communication function, and includes a mode determining module 710 and a mode control module 720. Wherein:
the mode determining module 710 may be configured to determine, when the first device is located at the target display interface, a target communication mode corresponding to the target display interface in a near field communication mode corresponding to the near field communication function.
The mode control module 720 may be configured to, when receiving a first control operation for the target display interface, turn off other communication modes except the target communication mode in the near field communication mode, so that the first device establishes a communication connection with the second device based on the target communication mode.
In an exemplary embodiment, the mode determination module 710 may be configured to generate a preset control on the target display interface when the first device is in the target display interface.
In an exemplary embodiment, the control apparatus 700 of the near field communication apparatus may further include a data transmission module, and the data transmission module may be configured to transmit the content included in the target display interface to the second device in response to the first device establishing a communication connection with the second device based on a peer-to-peer transmission mode.
In an exemplary embodiment, the data transmission module may be further configured to transmit content included in the target display interface to the second device after receiving a second control operation for the target display interface.
In an exemplary embodiment, the mode control module 720 may be configured to resume other communication modes except the target communication mode in the near field communication mode after the content included in the target display interface is transmitted.
In an exemplary embodiment, the mode control module 720 may be configured to resume the other communication mode except the target communication mode in the near field communication mode in response to the first device closing the target display interface.
In an exemplary embodiment, the mode control module 720 may be configured to resume the other communication mode except the target communication mode in the near field communication mode when the first device does not establish the communication connection based on the target communication mode within the preset time.
In an exemplary embodiment, the mode control module 720 may be configured to turn on the preset communication mode and turn off other communication modes except the preset communication mode in the near field communication mode in response to the power of the first device being less than the preset power.
The specific details of each module in the above apparatus have been described in detail in the method section, and details that are not disclosed may refer to the method section, and thus are not described again.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
Exemplary embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product including program code for causing a terminal device to perform the steps according to various exemplary embodiments of the disclosure described in the above-mentioned "exemplary methods" section of this specification, when the program product is run on the terminal device, for example, any one or more of the steps in fig. 4 or fig. 6 may be performed.
It should be noted that the computer readable media shown in the present disclosure may be computer readable signal media or computer readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Furthermore, program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (11)

1. A control method of a near field communication device is applied to a first device with a near field communication function, and is characterized by comprising the following steps:
when the first device is located at a target display interface, determining a target communication mode corresponding to the target display interface in a near field communication mode corresponding to the near field communication function;
when a first control operation aiming at the target display interface is received, other communication modes except the target communication mode in the near field communication mode are closed, so that the first device establishes communication connection with a second device based on the target communication mode.
2. The method of claim 1, wherein the first control operation comprises an operation of a preset control on the target display interface, and wherein the method further comprises:
and when the first device is located in a target display interface, generating a preset control on the target display interface.
3. The method of claim 1, wherein the target communication mode comprises a point-to-point transmission mode;
after the turning off of the other communication modes than the target communication mode among the near field communication modes, the method further includes:
and in response to the first device establishing a communication connection with the second device based on the point-to-point transmission mode, transmitting the content included in the target display interface to the second device.
4. The method of claim 3, wherein prior to the transmitting the content included in the target display interface to the second device, the method further comprises:
after receiving a second control operation aiming at the target display interface, transmitting the content included by the target display interface to the second device.
5. The method of claim 3, further comprising:
and after the content transmission included in the target display interface is finished, recovering other communication modes except the target communication mode in the near field communication mode.
6. The method of claim 1, further comprising:
and responding to the first equipment closing the target display interface, and recovering other communication modes except the target communication mode in the near field communication mode.
7. The method of claim 1, wherein after said turning off other ones of said near field communication modes other than said target communication mode, said method further comprises:
and when the first equipment does not establish communication connection based on the target communication mode within preset time, recovering other communication modes except the target communication mode in the near field communication mode.
8. The method of claim 1, further comprising:
and responding to the fact that the electric quantity of the first equipment is smaller than a preset electric quantity, starting a preset communication mode, and closing other communication modes except the preset communication mode in the near field communication mode.
9. A control apparatus of a near field communication apparatus, applied to a first device having a near field communication function, comprising:
the mode determining module is used for determining a target communication mode corresponding to a target display interface in a near field communication mode corresponding to the near field communication function when the first device is in the target display interface;
and the mode control module is used for closing other communication modes except the target communication mode in the near field communication mode when receiving a first control operation aiming at the target display interface so as to enable the first equipment to establish communication connection with the second equipment based on the target communication mode.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
11. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1 to 8 via execution of the executable instructions.
CN202011126376.9A 2020-10-20 2020-10-20 Control method and device of near field communication device, medium and electronic equipment Active CN112188461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011126376.9A CN112188461B (en) 2020-10-20 2020-10-20 Control method and device of near field communication device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011126376.9A CN112188461B (en) 2020-10-20 2020-10-20 Control method and device of near field communication device, medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112188461A true CN112188461A (en) 2021-01-05
CN112188461B CN112188461B (en) 2023-07-25

Family

ID=73922366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011126376.9A Active CN112188461B (en) 2020-10-20 2020-10-20 Control method and device of near field communication device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112188461B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660149A (en) * 2021-08-13 2021-11-16 Oppo广东移动通信有限公司 Device control method and apparatus, storage medium, and electronic device
CN115623118A (en) * 2022-11-22 2023-01-17 荣耀终端有限公司 Near field communication control method and electronic equipment
WO2023005787A1 (en) * 2021-07-26 2023-02-02 华为技术有限公司 Information transmission method between terminal devices, and medium and terminal device
CN117749936A (en) * 2024-02-19 2024-03-22 花瓣支付(深圳)有限公司 Display method, electronic device and computer storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102832977A (en) * 2012-09-04 2012-12-19 深圳盈烨创新通讯技术有限公司 Method for rapidly switching multiple operating modes of near-field communication equipment
US20130196594A1 (en) * 2012-01-27 2013-08-01 Research In Motion Limited Mobile communications device providing enhanced near field communication (nfc) mode switching features and related methods
US20140375433A1 (en) * 2013-06-25 2014-12-25 Getac Technology Corporation Electronic apparatus and control method thereof
US20150044964A1 (en) * 2013-08-08 2015-02-12 Apple Inc. Management of near field communications using low power modes of an electronic device
US20160043775A1 (en) * 2014-08-11 2016-02-11 Qualcomm Incorporated Near field communication mode adjustment based on a screen state
CN105472534A (en) * 2014-09-24 2016-04-06 西安酷派软件科技有限公司 Switching method and switching system of NFC working mode and terminal
CN106231545A (en) * 2016-09-21 2016-12-14 广东欧珀移动通信有限公司 Reduce the method and device of near-field communication module power consumption
CN107071704A (en) * 2017-03-22 2017-08-18 深圳市金立通信设备有限公司 The open method and device of the mode of operation of NFC chip
US20190200203A1 (en) * 2016-09-06 2019-06-27 Huawei Technologies Co., Ltd. Data Sharing Method and Terminal
CN110795949A (en) * 2019-09-25 2020-02-14 维沃移动通信(杭州)有限公司 Card swiping method and device, electronic equipment and medium
CN111212412A (en) * 2020-01-03 2020-05-29 RealMe重庆移动通信有限公司 Near field communication method and device, computer readable storage medium and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130196594A1 (en) * 2012-01-27 2013-08-01 Research In Motion Limited Mobile communications device providing enhanced near field communication (nfc) mode switching features and related methods
CN102832977A (en) * 2012-09-04 2012-12-19 深圳盈烨创新通讯技术有限公司 Method for rapidly switching multiple operating modes of near-field communication equipment
US20140375433A1 (en) * 2013-06-25 2014-12-25 Getac Technology Corporation Electronic apparatus and control method thereof
US20150044964A1 (en) * 2013-08-08 2015-02-12 Apple Inc. Management of near field communications using low power modes of an electronic device
US20160043775A1 (en) * 2014-08-11 2016-02-11 Qualcomm Incorporated Near field communication mode adjustment based on a screen state
CN106575982A (en) * 2014-08-11 2017-04-19 高通股份有限公司 Near field communication mode adjustment based on a screen state
CN105472534A (en) * 2014-09-24 2016-04-06 西安酷派软件科技有限公司 Switching method and switching system of NFC working mode and terminal
US20190200203A1 (en) * 2016-09-06 2019-06-27 Huawei Technologies Co., Ltd. Data Sharing Method and Terminal
CN106231545A (en) * 2016-09-21 2016-12-14 广东欧珀移动通信有限公司 Reduce the method and device of near-field communication module power consumption
CN107071704A (en) * 2017-03-22 2017-08-18 深圳市金立通信设备有限公司 The open method and device of the mode of operation of NFC chip
CN110795949A (en) * 2019-09-25 2020-02-14 维沃移动通信(杭州)有限公司 Card swiping method and device, electronic equipment and medium
CN111212412A (en) * 2020-01-03 2020-05-29 RealMe重庆移动通信有限公司 Near field communication method and device, computer readable storage medium and electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023005787A1 (en) * 2021-07-26 2023-02-02 华为技术有限公司 Information transmission method between terminal devices, and medium and terminal device
CN115694562A (en) * 2021-07-26 2023-02-03 华为技术有限公司 Information transmission method and medium between terminal devices and terminal device
CN113660149A (en) * 2021-08-13 2021-11-16 Oppo广东移动通信有限公司 Device control method and apparatus, storage medium, and electronic device
CN115623118A (en) * 2022-11-22 2023-01-17 荣耀终端有限公司 Near field communication control method and electronic equipment
CN115623118B (en) * 2022-11-22 2023-10-20 荣耀终端有限公司 Near field communication control method and electronic equipment
CN117749936A (en) * 2024-02-19 2024-03-22 花瓣支付(深圳)有限公司 Display method, electronic device and computer storage medium

Also Published As

Publication number Publication date
CN112188461B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
CN112188461B (en) Control method and device of near field communication device, medium and electronic equipment
US20190318545A1 (en) Command displaying method and command displaying device
CN111132234B (en) Data transmission method and corresponding terminal
US11350264B2 (en) Method and apparatus for establishing device connection
WO2020155014A1 (en) Smart home device sharing system and method, and electronic device
KR102630452B1 (en) Method and Apparatus for Establishing Device Connection
CN111275122B (en) Label labeling method, device, equipment and readable storage medium
US10038834B2 (en) Video call method and device
KR102517228B1 (en) Electronic device for controlling predefined function based on response time of external electronic device on user input and method thereof
CN111784335A (en) Analog card management method, analog card management device, storage medium, and electronic apparatus
CN111968641B (en) Voice assistant awakening control method and device, storage medium and electronic equipment
CN113238727A (en) Screen switching method and device, computer readable medium and electronic equipment
CN112860169A (en) Interaction method and device, computer readable medium and electronic equipment
CN111711472A (en) NFC device output signal control method, terminal device, medium and electronic device
US20220261205A1 (en) Content Transmission Method and Terminal Device
CN106453846A (en) Display method and device for two-dimensional code business card
CN113766127B (en) Mobile terminal control method and device, storage medium and electronic equipment
CN113365274B (en) Network access method and electronic equipment
CN114489422A (en) Display method of sidebar and electronic equipment
WO2020062304A1 (en) File transmission method and electronic device
CN111770484B (en) Analog card switching method and device, computer readable medium and mobile terminal
CN113407318A (en) Operating system switching method and device, computer readable medium and electronic equipment
CN113655933A (en) Text labeling method and device, storage medium and electronic equipment
CN107295462A (en) Wireless connection control method and device
CN111985252A (en) Dialogue translation method and device, storage medium and electronic equipment

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