CN111343618B - Display method and electronic equipment - Google Patents

Display method and electronic equipment Download PDF

Info

Publication number
CN111343618B
CN111343618B CN202010090141.2A CN202010090141A CN111343618B CN 111343618 B CN111343618 B CN 111343618B CN 202010090141 A CN202010090141 A CN 202010090141A CN 111343618 B CN111343618 B CN 111343618B
Authority
CN
China
Prior art keywords
near field
field communication
electronic device
target
communication function
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
CN202010090141.2A
Other languages
Chinese (zh)
Other versions
CN111343618A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010090141.2A priority Critical patent/CN111343618B/en
Publication of CN111343618A publication Critical patent/CN111343618A/en
Application granted granted Critical
Publication of CN111343618B publication Critical patent/CN111343618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • 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)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a display method and electronic equipment, wherein the method comprises the following steps: establishing a near field communication connection with a second electronic device; displaying a target identifier under the condition that the first electronic equipment and the second electronic equipment both support a target near field communication function; wherein the target identifier corresponds to the target near field communication function. According to the invention, under the condition that the first electronic equipment and the second electronic equipment are connected by NFC, the target identifier corresponding to the target near field communication function supported by the first electronic equipment and the second electronic equipment is displayed on the first electronic equipment, so that the problems that the current NFC P2P mode function is single and the data transmission fails are solved.

Description

Display method and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a display method and an electronic device.
Background
Along with the rapid development of intelligent terminal equipment, more and more devices are integrated in electronic equipment, various sensors such as cameras, infrared sensors, GPS (Global Positioning System ), bluetooth, WIFI, fingerprint, NFC (Near Field Communication ), BLE (Bluetooth Low Energy, bluetooth low energy) and the like are gradually increased, and the use experience and the functional richness of the electronic equipment are greatly improved. The NFC near-field file sharing technology can enable a user to realize file or data transmission by touching two electronic devices, and is convenient and quick. However, the current NFC P2P (peer-to-peer) mode has a single function, and the type of data transmitted or received is fixed, so that there is a failure in data transmission.
Disclosure of Invention
The invention provides a display method and electronic equipment, which are used for solving the problems that the function of the current NFC P2P mode is single and the data transmission fails.
In order to solve the technical problems, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a display method, which is applied to a first electronic device, including:
establishing a near field communication connection with a second electronic device;
displaying a target identifier under the condition that the first electronic equipment and the second electronic equipment both support a target near field communication function;
wherein the target identifier corresponds to the target near field communication function.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device is a first electronic device, including:
the communication connection module is used for establishing near field communication connection with the second electronic equipment;
the first display module is used for displaying a target identifier under the condition that the first electronic equipment and the second electronic equipment support a target near field communication function;
wherein the target identifier corresponds to the target near field communication function.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program when executed by the processor implements the steps of the display method described above.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement the steps of the display method described above.
In the embodiment of the invention, under the condition that the first electronic device and the second electronic device establish NFC connection, the target identifier corresponding to the target near field communication function supported by the first electronic device and the second electronic device is displayed on the first electronic device, so that the problems that the current NFC P2P mode function is single and the data transmission fails are solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, 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 flow chart of a display method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a first display interface according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a second display interface according to an embodiment of the present invention;
FIG. 4 is a second schematic diagram of a first display interface according to an embodiment of the invention;
FIG. 5 is a second schematic diagram of a second display interface according to an embodiment of the invention;
FIG. 6 is a second flow chart of a display method according to an embodiment of the invention;
FIG. 7 is a third flow chart of a display method according to an embodiment of the invention;
FIG. 8 shows a block diagram of a first electronic device according to an embodiment of the invention;
fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, an embodiment of the present invention provides a display method applied to a first electronic device, including:
step 101, establishing a near field communication connection with a second electronic device.
The embodiment is based on an electronic device with an NFC device and supporting an NFC peer-to-peer communication function, the second electronic device being a peer device in NFC communication with the first electronic device, application software related to NFC peer-to-peer communication within the first electronic device and the second electronic device being required to follow an NFC related protocol.
Step 102, displaying a target identifier under the condition that the first electronic device and the second electronic device both support a target near field communication function; wherein the target identifier corresponds to the target near field communication function.
In this embodiment, the target near field communication function is an NFC function supported by both the first electronic device and the second electronic device, and the target near field communication function may be one or multiple items. The target identifier is an identifier corresponding to the target near field communication function, and the target identifier may be an icon, for example: the target near field communication function is a jump adding friend function, the target mark is a specific icon, and the first electronic device displays the specific icon representing the jump adding friend function. Through the displayed target identifier, a user can intuitively determine that the first electronic device and the NFC-connected second electronic device both support the target near field communication function, and data transmission of related functions can be performed.
According to the embodiment of the invention, under the condition that the first electronic equipment and the second electronic equipment are connected by NFC, the target identifier corresponding to the target near field communication function supported by the first electronic equipment and the second electronic equipment is displayed on the first electronic equipment, so that the problems that the current NFC P2P mode function is single and the data transmission fails are solved.
Specifically, the step 102 may include:
and sending first verification information to the second electronic equipment, and receiving second verification information sent by the second electronic equipment, wherein the first verification information comprises a near field communication function identifier supported by the first electronic equipment, and the second verification information comprises a near field communication function identifier supported by the second electronic equipment.
Optionally, the first verification information may be carried in first protocol data sent by the first electronic device to the second electronic device, or may be sent separately for the first electronic device; the second verification information may be carried in second protocol data sent by the second electronic device to the first electronic device, or may be sent separately for the second electronic device.
Taking the first authentication information carried by the first protocol data as an example, the second authentication information carried by the second protocol data. After the first electronic device and the second electronic device establish NFC connection, the two devices send protocol data to each other, that is, the first electronic device sends the first protocol data to the second electronic device, and the second electronic device sends the second protocol data to the first electronic device. The protocol data is a command data packet in LLCP (Logic Link Control Protocol, logical link control protocol) data packets, which is used to tell the peer device that the NFC connection exists and is normal, i.e. maintains the connection of point-to-point communication. The LLCP data packet also contains other command data such as connection request, disconnection, etc. Optionally, the authentication information is added to the first protocol data after the NFC peer communications connection.
It should be noted that, the first verification information includes a near field communication function identifier supported by the first electronic device; the second verification information comprises a near field communication function identifier supported by the second electronic equipment; the first authentication information and the second authentication information are used for the two parties of the electronic equipment to exchange the NFC functions respectively supported.
And displaying the target identifier under the condition that the first verification information and the second verification information both comprise identifiers corresponding to the target near field communication function.
In this embodiment, the first electronic device displays the target identifier based on the NFC function supported by itself in the first authentication information and the NFC function supported by the second electronic device in the second authentication information. For example: the first verification information shows the first electronic device supporting function A, B, C, and the second verification information shows the second electronic device supporting function B, C, D, and the target near field communication functions supported by both electronic devices are: and the function B and the function C can display the identifications of the function B and the function C on the first electronic equipment, so that a user can clearly know that the electronic equipment on two sides can perform data transmission related to the function B and the function C through the identifications of the function B and the function C, and the problems that the current NFC P2P is fixed in data type of transmission or reception and has failure in data transmission are effectively avoided.
In the embodiment, under the condition that the first electronic device and the second electronic device establish NFC connection, verification information is carried in protocol data sent by the electronic device, the verification information comprises NFC functions supported by the electronic device, and opposite terminal devices can analyze and identify the verification information according to the protocol, so that relevant function conditions supported by opposite terminal devices are identified, the display state of function identifiers is dynamically adjusted, and the situation that data transmission fails due to the fact that one party does not support the NFC functions is avoided. Therefore, the NFC point-to-point communication function is expanded, compatibility with equipment which does not support certain near field communication functions is guaranteed, the use experience of the near field communication functions of the electronic equipment is improved, and a means for compatibility of more new functions is provided.
Specifically, the first authentication information and the second authentication information may include at least one of the following, respectively:
protocol version supported by the electronic device;
whether the electronic equipment supports a preset function;
the electronic device supports a version of the preset function.
Wherein the first authentication information may include at least one of: a protocol version supported by the first electronic device; whether the first electronic device supports a preset function; the first electronic device supports a version of the preset function.
The second authentication information may include at least one of: a protocol version supported by the second electronic device; whether the second electronic device supports a preset function; the second electronic device supports a version of the preset function.
Optionally, taking the first protocol data as an example, the format of the first authentication information is shown in table one, and in this embodiment, the NFC function included in the first authentication information is one item:
list one
Protocol version Whether or not to support a certain function Version of a function supported
8bit 1bit 7bit
The first protocol data after the first verification information is added is as follows:
00 00 04 00 00 01 81 (01 81 is first authentication information);
respectively represent:
01: the protocol version number is 1;
81: a certain function is supported, and the version of the supported certain function is 1.
If the current device does not receive the verification information of the opposite terminal device or the verification information is 0, the opposite terminal device does not support the function, so that the current device can know the function support condition of the opposite terminal device, and the adaptation adjustment of the function is realized.
Optionally, taking the first protocol data as an example, when the first electronic device supports the expansion function of multiple NFC peer-to-peer communications, the first authentication information is added and the protocol version is upgraded after the first protocol data to support two peer-to-peer communications expansion functions, for example, as shown in the following table two:
Watch II
At this time, if the first electronic device supports both function 1 and function 2, the first protocol data after adding the first authentication information is as follows:
00 00 06 00 00 02 81 81 (02 81 81 is first authentication information);
respectively represent:
02: the protocol version number is 2;
81: support function 1, support function 1 version 1;
81: function 2 is supported, and the supported version 2 is 1.
If the first electronic device only supports function 2, the first protocol data after adding the first authentication information is as follows:
00 00 06 00 00 02 00 81 (02 00 81 is first authentication information);
respectively represent:
02: the protocol version number is 2;
00: function 1 is not supported, and the function 1 version field is invalid at this time and can be set to any value or 0;
81: function 2 is supported, and the supported version 2 is 1.
The other conditions are the same and will not be described in detail herein.
It should be noted that, the format and meaning of the second authentication information and the second protocol data are the same as those of the first authentication information and the first protocol data, and are not described herein.
Taking the target near field communication function as a 'bump-add friend' function as an example, two electronic devices support the bump-bump through NFC, establish point-to-point communication connection, transmit account information of instant messaging software to add friends, and then the function is normal. If any one of the devices does not support the touch-and-touch adding friend function, such as a second electronic device; the other electronic device supports the touch of the add friend but does not support the display method of the embodiment of the invention, such as the first electronic device, after the two devices approach, the first electronic device pops up the function identifier of the touch of the add friend. After the user clicks and clicks to add the function identifier of the friend, the device sends the account information of the instant messaging software to the second electronic device in the data format of NFC point-to-point communication. After the second electronic device receives the data of the account information, the second electronic device cannot process the data of the account information in a point-to-point communication function because the data is not in a normal point-to-point communication data format (contact person, picture, website and application store link), and at this time, the second electronic device distributes the data of the account information as the data read to the NFC tag card, so that abnormal behaviors such as some other applications are pulled up, and the expected function cannot be realized. In this case, if the first electronic device supports the display method according to the embodiment of the present invention, the first electronic device will not receive the second verification information sent by the second electronic device, so as to determine that the second electronic device does not support the bump-add friend function, and further hide the identifier of the bump-add friend function or ash the function identifier, thereby avoiding the trouble and function abnormality caused to the user.
Optionally, before the step 102, the method further includes: displaying an identification of at least one near field communication function supported by the first electronic device, the identification of the at least one near field communication function comprising a target identification.
In this embodiment, after the first electronic device establishes NFC connection with the second electronic device, the first electronic device may display, through a first display interface, an identifier of a near field communication function supported by at least one first electronic device. The target near field communication function is also an NFC function supported by the first electronic device, and therefore, the identifier of the at least one near field communication function includes a target identifier corresponding to the target near field communication function.
Further, the step 102 may include: displaying the target identification in a target mode. It should be noted that, the target mode may be an original display mode of the target identifier on the first electronic device, that is, a display mode of the target identifier remains unchanged; or, the target mode is a display mode different from the original display mode of the target identifier on the first electronic device, for example: after NFC communication connection is established, the target identifier is displayed in a first state on the first electronic device, and when the first electronic device and the second electronic device both support a target near field communication function, the display mode of the target identifier is adjusted to a second state which is different from the first state.
The various forms in which the target mark is displayed in a target manner are described below by way of specific embodiments. It should be noted that, the display modes of the target identifier include, but are not limited to, the following forms.
Form one: and adjusting the display state of the target mark to be different from the original display mode.
In this embodiment, after the first electronic device determines the target near field communication function commonly supported by the two electronic devices, the display state of the target identifier of the commonly supported target near field communication function may be adjusted, for example: highlighting the target mark, adjusting the target mark to a preset color, adjusting the target mark to a preset image, and the like.
Form two: and keeping the display mode of the target identifier unchanged, and adjusting the display modes of other function identifiers except the target near field communication function.
In this embodiment, after determining the target near field communication function supported by the two electronic devices together, in the first electronic device, a display state of other NFC function identifiers except for the target near field communication function is adjusted, for example: hiding the identification of the other functions except the target near field communication function, graying out the identification of the other functions except the target near field communication function, adjusting the identification of the other functions except the target near field communication function to a preset image, and the like.
Form three: and respectively adjusting the display form of the target identifier and the display modes of other function identifiers except the target near field communication function.
In this embodiment, the display mode of the target identifier may be adjusted to a state different from the original display mode, and the display modes of the function identifiers other than the target near field communication function may be adjusted to a state different from the original display mode. For example: highlighting the target identifier and hiding identifiers of other functions except the target near field communication function; or, the target mark is adjusted to be a first color, and marks of other functions except the target near field communication function are adjusted to be a second color, wherein the first color and the second color are different.
It should be noted that, displaying the target identifier in the target manner includes, but is not limited to, the above form, but it is required to ensure that the function identifiers supported by the electronic devices on both sides are different from the display states of the function identifiers that are not supported.
For example: the first electronic device supports functions 1 and 2, but does not support function 3, and the second electronic device supports functions 1, 2 and 3, then the functions supported by the two electronic devices together are: function 1 and function 2, as shown in fig. 2, in the first display interface 21 of the first electronic device, displaying the identifiers of function 1 and function 2; as shown in fig. 3, in the second display interface 31 of the second electronic device, the identifiers of the function 1 and the function 2 are displayed, and the identifier of the function 3 is hidden or gray (indicated by a dotted line in fig. 3), so as to prompt the user about the NFC function that can be executed between the two electronic devices.
If both electronic devices support the function 1, the function 2 and the function 3, as shown in fig. 4, the identifiers of the function 1, the function 2 and the function 3 are displayed in the first display interface 41 of the first electronic device; as shown in fig. 5, in the second display interface 51 of the second electronic device, the identifiers of the function 1, the function 2 and the function 3 are displayed.
Optionally, after the displaying the target identifier, the method further includes:
and sending Bluetooth low energy BLE connection information and/or Wireless Local Area Network (WLAN) connection information to the second electronic equipment through near field communication connection.
In this embodiment, in case of an NFC connection, BLE and/or WLAN (Wireless Local Area Networks, wireless local area network) connection information is sent to the second electronic device over the NFC connection, a BLE and/or WLAN connection between the two electronic devices is established, data is transmitted over NFC point-to-point communication, and/or data is transmitted over BLE, and/or data is transmitted over WLAN communication. Through near field communication connection, the first electronic device sends BLE connection information and/or WLAN connection information to the second electronic device, manual operation is not needed again by a user, BLE and/or WLAN connection of the electronic devices on two sides can be completed rapidly and conveniently, and network connection time is saved.
And receiving input of a user on the target identification.
And sending the relevant data information of the target near field communication function to the second electronic device through at least one of a near field communication connection, BLE and WLAN connection.
In this embodiment, the target identifier is an identifier of a target near field communication function commonly supported by the first electronic device and the second electronic device. The first input may be a click input of the target identity by a user. After NFC connection and/or BLE connection are established between the two electronic devices, a user clicks the target identifier, which means that the target near field communication function needs to be executed between the two electronic devices, and the first electronic device sends data information related to the target near field communication function to the second electronic device.
The step of transmitting data between the first electronic device and the second electronic device is shown in fig. 6, and a P2P connection is established between the two electronic devices; checking verification information and performing function adaptation; transmitting BLE and/or WLAN connection information; establishing BLE and/or WLAN connection; data is transmitted or received.
The step of adding friends by touching one touch is described below by taking the target identifier as an example of the function identifier of "adding friends by touching one touch".
As shown in fig. 7, the first electronic device and the second electronic device close to each other establish NFC connection, and trigger point-to-point communication; the first electronic device establishes BLE and/or WLAN connection with the second electronic device; the method comprises the steps that a first electronic device displays a function icon of 'touching and adding friends' and a user clicks the function icon; the method comprises the steps that first electronic equipment obtains account information of instant messaging software related to a touch and touch friend adding function; transmitting account information to the second electronic equipment; and the second electronic equipment calls and starts the instant messaging software to add friends.
In this embodiment, in case the first electronic device establishes an NFC connection with the second electronic device, and/or a BLE connection, and/or a WLAN connection, multiple ways of data transfer are provided. The user can select a proper data transmission mode according to the data transmission requirement, for example, according to the data size, so that the transmission speed is increased, and the data transmission time is reduced.
Further, in transmitting the data information related to the target near field communication function to the second electronic device through at least one of a near field communication connection, BLE, and WLAN connection, comprising:
acquiring the size of data to be transmitted; and storing preset values of data sizes in the first electronic equipment and the second electronic equipment. And determining a transmission mode according to the size of the data to be transmitted.
Specifically, under the condition that the data to be transmitted is smaller than a first preset value and near field communication is connected, the data to be transmitted is sent through near field communication; transmitting the data to be transmitted through the BLE under the condition that the data to be transmitted is smaller than a first preset value and the near field communication is disconnected and the BLE is connected; and under the condition that the data to be transmitted is larger than or equal to a first preset value and the WLAN is connected, the data to be transmitted is sent through the WLAN.
In this embodiment, the first preset value is determined according to the requirement. Because the speed of transmitting data through BLE is slower, when the data to be transmitted is smaller than a first preset value, if NFC is in a connected state, the NFC is used for transmitting the data, and if NFC is not connected, BLE is used for transmitting the data; and when the data to be transmitted is greater than or equal to the first preset value and the WLAN is connected, the data transmission is carried out in the related application by utilizing the network server in a WLAN communication mode.
Optionally, in order to ensure data security, that the received data is not tampered, etc., after NFC peer communications are established, the data to be transmitted may be encrypted, and when the data is transmitted through BLE and/or WLAN connection, the encrypted data is transmitted. Specifically, in case of establishing a BLE and/or WLAN connection with the second electronic device, the transmitting data comprises: encrypting data to be transmitted; and sending the encrypted data to be transmitted.
The password for encrypting the data to be transmitted may be a password stored in the electronic device in advance or may be a password generated before the data is transmitted. Specifically, before encrypting the data to be transmitted, the method further includes: generating a verification key under the condition of establishing near field communication connection with the second electronic equipment; and sending the verification key to the second electronic equipment through NFC connection. The verification secret key is used for encrypting and decrypting data transmitted through BLE and/or a wireless network server and the like, and the received data is guaranteed to be complete and not tampered.
According to the embodiment of the invention, under the condition that the first electronic equipment and the second electronic equipment are connected by NFC, the target identifier corresponding to the target near field communication function supported by the first electronic equipment and the second electronic equipment is displayed on the first electronic equipment, so that the problems that the current NFC P2P mode function is single and the data transmission fails are solved.
As shown in fig. 8, an embodiment of the present invention further provides an electronic device, which is a first electronic device 800, including:
a communication connection module 810 for establishing a near field communication connection with a second electronic device;
A first display module 820, configured to display a target identifier when the first electronic device and the second electronic device both support a target near field communication function;
wherein the target identifier corresponds to the target near field communication function.
Optionally, the first display module 820 includes:
the receiving and transmitting unit is used for sending first verification information to the second electronic equipment and receiving second verification information sent by the second electronic equipment, wherein the first verification information comprises a near field communication function identifier supported by the first electronic equipment, and the second verification information comprises a near field communication function identifier supported by the second electronic equipment;
and the display unit is used for displaying the target identifier under the condition that the first verification information and the second verification information both comprise identifiers corresponding to the target near field communication function.
Optionally, the electronic device further includes:
a second display module, configured to display an identifier of at least one near field communication function supported by the first electronic device, where the identifier of the at least one near field communication function includes a target identifier;
the first display module is specifically configured to: displaying the target identification in a target mode.
Optionally, the electronic device further includes:
the first sending module is used for sending Bluetooth low-power BLE connection information and/or Wireless Local Area Network (WLAN) connection information to the second electronic equipment through near field communication connection;
the receiving module is used for receiving the input of a user to the target identifier;
and the second sending module is used for sending the relevant data information of the target near field communication function to the second electronic equipment through at least one of near field communication connection, BLE and WLAN connection.
Optionally, the second sending module includes:
an acquisition unit for acquiring the size of data to be transmitted;
the first sending unit is used for sending the data to be transmitted through near field communication under the condition that the data to be transmitted is smaller than a first preset value and the near field communication is connected;
a second sending unit, configured to send the data to be transmitted through BLE when the data to be transmitted is smaller than a first preset value and near field communication is disconnected and BLE is connected;
and the third sending unit is used for sending the data to be transmitted through the WLAN connection under the condition that the data to be transmitted is larger than or equal to a first preset value and the WLAN connection is performed.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiment of fig. 1 to fig. 7, and in order to avoid repetition, a description is omitted here.
According to the embodiment of the invention, under the condition that the first electronic equipment and the second electronic equipment are connected by NFC, the target identifier corresponding to the target near field communication function supported by the first electronic equipment and the second electronic equipment is displayed on the first electronic equipment, so that the problems that the current NFC P2P mode function is single and the data transmission fails are solved.
Fig. 9 is a schematic hardware structure of an electronic device implementing various embodiments of the present invention, where the electronic device may be the first electronic device or the second electronic device.
The electronic device 900 includes, but is not limited to: radio frequency unit 901, network module 902, audio output unit 903, input unit 904, sensor 905, display unit 906, user input unit 907, interface unit 908, memory 909, processor 910, and power source 911. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than illustrated, or may combine certain components, or may have a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer and the like.
Wherein the processor 910 is configured to establish a near field communication connection with a second electronic device; displaying a target identifier under the condition that the first electronic equipment and the second electronic equipment both support a target near field communication function;
wherein the target identifier corresponds to the target near field communication function.
In the embodiment of the invention, under the condition that the first electronic device and the second electronic device establish NFC connection, the target identifier corresponding to the target near field communication function supported by the first electronic device and the second electronic device is displayed on the first electronic device, so that the problems that the current NFC P2P mode function is single and the data transmission fails are solved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 901 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, receiving downlink data from a base station and then processing the downlink data by the processor 910; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 901 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 901 may also communicate with networks and other devices via a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 902, such as helping the user to send and receive e-mail, browse web pages, and access streaming media, etc.
The audio output unit 903 may convert audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output as sound. Also, the audio output unit 903 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 900. The audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.
The input unit 904 is used to receive an audio or video signal. The input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, the graphics processor 9041 processing image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 906. The image frames processed by the graphics processor 9041 may be stored in memory 909 (or other storage medium) or transmitted via the radio frequency unit 901 or the network module 902. The microphone 9042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 901 in the case of a telephone call mode.
The electronic device 900 also includes at least one sensor 905, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 9061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 9061 and/or the backlight when the electronic device 900 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 905 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 906 is used to display information input by a user or information provided to the user. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 907 is operable to receive input numeric or character information, and to generate key signal inputs related to user settings and function controls of the electronic device. In particular, the user input unit 907 includes a touch panel 9071 and other input devices 9072. Touch panel 9071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (such as operations of the user on touch panel 9071 or thereabout using any suitable object or accessory such as a finger, stylus, or the like). The touch panel 9071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 910, and receives and executes commands sent by the processor 910. In addition, the touch panel 9071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 907 may also include other input devices 9072 in addition to the touch panel 9071. In particular, other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 9071 may be overlaid on the display panel 9061, and when the touch panel 9071 detects a touch operation thereon or thereabout, the touch operation is transmitted to the processor 910 to determine a type of touch event, and then the processor 910 provides a corresponding visual output on the display panel 9061 according to the type of touch event. Although in fig. 9, the touch panel 9071 and the display panel 9061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 9071 and the display panel 9061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 908 is an interface to which an external device is connected to the electronic apparatus 900. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 908 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 900 or may be used to transmit data between the electronic apparatus 900 and an external device.
The memory 909 may be used to store software programs as well as various data. The memory 909 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, the memory 909 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 910 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 909, and calling data stored in the memory 909, thereby performing overall monitoring of the electronic device. Processor 910 may include one or more processing units; preferably, the processor 910 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 910.
The electronic device 900 may also include a power supply 911 (e.g., a battery) for powering the various components, and the power supply 911 may preferably be logically coupled to the processor 910 by a power management system, such as to perform charge, discharge, and power consumption management functions.
In addition, the electronic device 900 includes some functional modules that are not shown, and will not be described herein.
Preferably, the embodiment of the present invention further provides an electronic device, including a processor 910, a memory 909, and a computer program stored in the memory 909 and capable of running on the processor 910, where the computer program when executed by the processor 910 implements each process of the embodiment of the display method, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the above-described embodiment of the display method, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (12)

1. A display method applied to a first electronic device, comprising:
establishing a near field communication connection with a second electronic device;
displaying a target identifier under the condition that the first electronic equipment and the second electronic equipment both support a target near field communication function;
wherein the target identifier corresponds to the target near field communication function;
the target near field communication function is an intersection of a near field communication function supported by the first electronic device and a near field communication function supported by the second electronic device.
2. The display method according to claim 1, wherein displaying the target identifier in a case where the first electronic device and the second electronic device both support a target near field communication function, comprises:
Transmitting first verification information to the second electronic equipment, and receiving second verification information transmitted by the second electronic equipment, wherein the first verification information comprises a near field communication function identifier supported by the first electronic equipment, and the second verification information comprises a near field communication function identifier supported by the second electronic equipment;
and displaying the target identifier under the condition that the first verification information and the second verification information both comprise identifiers corresponding to the target near field communication function.
3. The display method according to claim 1, wherein before the displaying the target mark, the method further comprises:
displaying an identification of at least one near field communication function supported by the first electronic device, wherein the identification of the at least one near field communication function comprises a target identification;
the displaying the target identifier includes:
displaying the target identification in a target mode.
4. The display method according to claim 1, wherein after the displaying of the target mark, the method further comprises:
transmitting Bluetooth low energy BLE connection information and/or Wireless Local Area Network (WLAN) connection information to the second electronic equipment through near field communication connection;
Receiving input of a user on a target identifier;
and sending the relevant data information of the target near field communication function to the second electronic device through at least one of a near field communication connection, BLE and WLAN connection.
5. The display method according to claim 4, wherein transmitting the data information related to the target near field communication function to the second electronic device via at least one of a near field communication connection, BLE, and WLAN connection, comprises:
acquiring the size of data to be transmitted;
transmitting the data to be transmitted through near field communication under the condition that the data to be transmitted is smaller than a first preset value and the near field communication is connected;
transmitting the data to be transmitted through the BLE under the condition that the data to be transmitted is smaller than a first preset value and the near field communication is disconnected and the BLE is connected;
and under the condition that the data to be transmitted is larger than or equal to a first preset value and the WLAN is connected, the data to be transmitted is sent through the WLAN.
6. An electronic device, the electronic device being a first electronic device, comprising:
the communication connection module is used for establishing near field communication connection with the second electronic equipment;
The first display module is used for displaying a target identifier under the condition that the first electronic equipment and the second electronic equipment support a target near field communication function;
wherein the target identifier corresponds to the target near field communication function;
the target near field communication function is an intersection of a near field communication function supported by the first electronic device and a near field communication function supported by the second electronic device.
7. The electronic device of claim 6, wherein the first display module comprises:
the receiving and transmitting unit is used for sending first verification information to the second electronic equipment and receiving second verification information sent by the second electronic equipment, wherein the first verification information comprises a near field communication function identifier supported by the first electronic equipment, and the second verification information comprises a near field communication function identifier supported by the second electronic equipment;
and the display unit is used for displaying the target identifier under the condition that the first verification information and the second verification information both comprise identifiers corresponding to the target near field communication function.
8. The electronic device of claim 6, wherein the electronic device further comprises:
A second display module, configured to display an identifier of at least one near field communication function supported by the first electronic device, where the identifier of the at least one near field communication function includes a target identifier;
the first display module is specifically configured to: displaying the target identification in a target mode.
9. The electronic device of claim 6, wherein the electronic device further comprises:
the first sending module is used for sending Bluetooth low-power BLE connection information and/or Wireless Local Area Network (WLAN) connection information to the second electronic equipment through near field communication connection;
the receiving module is used for receiving the input of a user to the target identifier;
and the second sending module is used for sending the relevant data information of the target near field communication function to the second electronic equipment through at least one of near field communication connection, BLE and WLAN connection.
10. The electronic device of claim 9, wherein the second transmitting module comprises:
an acquisition unit for acquiring the size of data to be transmitted;
the first sending unit is used for sending the data to be transmitted through near field communication under the condition that the data to be transmitted is smaller than a first preset value and the near field communication is connected;
A second sending unit, configured to send the data to be transmitted through BLE when the data to be transmitted is smaller than a first preset value and near field communication is disconnected and BLE is connected;
and the third sending unit is used for sending the data to be transmitted through the WLAN connection under the condition that the data to be transmitted is larger than or equal to a first preset value and the WLAN connection is performed.
11. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor performs the steps of the display method according to any one of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the display method according to any one of claims 1 to 5.
CN202010090141.2A 2020-02-13 2020-02-13 Display method and electronic equipment Active CN111343618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010090141.2A CN111343618B (en) 2020-02-13 2020-02-13 Display method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010090141.2A CN111343618B (en) 2020-02-13 2020-02-13 Display method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111343618A CN111343618A (en) 2020-06-26
CN111343618B true CN111343618B (en) 2023-11-10

Family

ID=71185225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010090141.2A Active CN111343618B (en) 2020-02-13 2020-02-13 Display method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111343618B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113840003A (en) * 2021-09-24 2021-12-24 维沃移动通信有限公司 Synchronization method and device

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090053561A (en) * 2007-11-23 2009-05-27 엘지전자 주식회사 Mobile terminal having a function for local area communication and control method thereof
JP2009135865A (en) * 2007-07-30 2009-06-18 Ricoh Co Ltd Information processor, path search apparatus, household electric appliance, information processing system, and program
CN103312864A (en) * 2012-03-09 2013-09-18 深圳市三诺电子有限公司 Intelligent terminal and method for controlling bluetooth device via intelligent terminal
CN103702012A (en) * 2012-09-27 2014-04-02 兄弟工业株式会社 Function execution device
CN103747130A (en) * 2013-09-30 2014-04-23 小米科技有限责任公司 Control method of terminal equipment, device and terminal equipment
EP2778923A2 (en) * 2013-03-11 2014-09-17 Nagravision S.A. Method and apparatus for selecting an application of a device having an nfc interface
CN106034066A (en) * 2015-03-16 2016-10-19 腾讯科技(深圳)有限公司 Communication method, communication device and communication system
CN107241262A (en) * 2017-06-08 2017-10-10 维沃移动通信有限公司 Data receiver, transmission and transmission method and transmitting terminal, receiving terminal and server
WO2018049893A1 (en) * 2016-09-14 2018-03-22 广东欧珀移动通信有限公司 Data transmission method and terminal device
CN108012029A (en) * 2017-11-29 2018-05-08 努比亚技术有限公司 A kind of information processing method, equipment and computer-readable recording medium
WO2018119630A1 (en) * 2016-12-27 2018-07-05 华为技术有限公司 Interaction method, and terminal
CN110020569A (en) * 2019-03-11 2019-07-16 华为技术有限公司 Automatically select method, electronic equipment and the communication system of NFC analog card
CN110244999A (en) * 2019-06-17 2019-09-17 广州酷狗计算机科技有限公司 Control method, apparatus, equipment and the storage medium of destination application operation

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8185601B2 (en) * 2008-05-11 2012-05-22 Nokia Corporation Sharing information between devices
US20140025504A1 (en) * 2011-06-13 2014-01-23 Thomson Licensing Method, apparatus and system for interacting with displays using near field communication nfc
US9008576B2 (en) * 2011-10-21 2015-04-14 Blackberry Limited Mobile communications device providing NFC applet compatibility features and related methods
KR20150001186A (en) * 2013-06-26 2015-01-06 삼성전자주식회사 Image forming apparatus supporting function of near field communication (NFC) and method for providing user interface (UI) screen customized to NFC device
KR102064929B1 (en) * 2013-10-10 2020-01-10 삼성전자 주식회사 Operating Method For Nearby Function and Electronic Device supporting the same
WO2016172977A1 (en) * 2015-04-30 2016-11-03 华为技术有限公司 Service processing method and terminal
KR102434865B1 (en) * 2015-11-27 2022-08-22 엘지전자 주식회사 Rollable mobile terminal and control method thereof
CN105956463B (en) * 2016-04-23 2019-01-11 腾讯科技(深圳)有限公司 A kind of apparatus control method, device and terminal
CN106170809B (en) * 2016-06-22 2020-09-01 北京小米支付技术有限公司 Virtual card display method and device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009135865A (en) * 2007-07-30 2009-06-18 Ricoh Co Ltd Information processor, path search apparatus, household electric appliance, information processing system, and program
KR20090053561A (en) * 2007-11-23 2009-05-27 엘지전자 주식회사 Mobile terminal having a function for local area communication and control method thereof
CN103312864A (en) * 2012-03-09 2013-09-18 深圳市三诺电子有限公司 Intelligent terminal and method for controlling bluetooth device via intelligent terminal
CN103702012A (en) * 2012-09-27 2014-04-02 兄弟工业株式会社 Function execution device
EP2778923A2 (en) * 2013-03-11 2014-09-17 Nagravision S.A. Method and apparatus for selecting an application of a device having an nfc interface
CN103747130A (en) * 2013-09-30 2014-04-23 小米科技有限责任公司 Control method of terminal equipment, device and terminal equipment
CN106034066A (en) * 2015-03-16 2016-10-19 腾讯科技(深圳)有限公司 Communication method, communication device and communication system
WO2018049893A1 (en) * 2016-09-14 2018-03-22 广东欧珀移动通信有限公司 Data transmission method and terminal device
WO2018119630A1 (en) * 2016-12-27 2018-07-05 华为技术有限公司 Interaction method, and terminal
CN107241262A (en) * 2017-06-08 2017-10-10 维沃移动通信有限公司 Data receiver, transmission and transmission method and transmitting terminal, receiving terminal and server
CN108012029A (en) * 2017-11-29 2018-05-08 努比亚技术有限公司 A kind of information processing method, equipment and computer-readable recording medium
CN110020569A (en) * 2019-03-11 2019-07-16 华为技术有限公司 Automatically select method, electronic equipment and the communication system of NFC analog card
CN110244999A (en) * 2019-06-17 2019-09-17 广州酷狗计算机科技有限公司 Control method, apparatus, equipment and the storage medium of destination application operation

Also Published As

Publication number Publication date
CN111343618A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN110266323B (en) Signal control circuit, terminal equipment and signal control method
CN110719319B (en) Resource sharing method, device, terminal equipment and storage medium
WO2020156123A1 (en) Information processing method and terminal device
CN111049980A (en) Application sharing method, electronic equipment and computer readable storage medium
CN111124706A (en) Application program sharing method and electronic equipment
CN107864086B (en) Information rapid sharing method, mobile terminal and computer readable storage medium
CN111124569B (en) Application sharing method, electronic device and computer readable storage medium
CN110099434B (en) Power adjustment method, terminal equipment and computer readable storage medium
US20220053585A1 (en) Method for pc5 link establishment, device, and system
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN109597546B (en) Icon processing method and terminal equipment
CN108093119B (en) Strange incoming call number marking method and mobile terminal
WO2021017785A1 (en) Data transmission method and terminal device
CN111343591B (en) Session information processing method and electronic equipment
CN111159738B (en) Authority configuration method, application login method and device
CN112925501A (en) Audio playing control method, device and system and computer readable storage medium
CN111343618B (en) Display method and electronic equipment
CN109992430B (en) Data transmission method, first terminal and second terminal
CN111132073B (en) Multicast communication link layer identifier updating method, device and terminal equipment
CN109164951B (en) Mobile terminal operation method and mobile terminal
CN110990029A (en) Application processing method and electronic equipment
CN110708494A (en) Video conference display control method, terminal and readable storage medium
CN108259807B (en) Communication method, mobile terminal and computer readable storage medium
CN111356096B (en) Information sending method and electronic equipment
CN108683793B (en) Display method of application icon and mobile terminal

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