WO2021249231A1 - 基于应用程序的短距离通知方法、电子设备及系统 - Google Patents

基于应用程序的短距离通知方法、电子设备及系统 Download PDF

Info

Publication number
WO2021249231A1
WO2021249231A1 PCT/CN2021/097358 CN2021097358W WO2021249231A1 WO 2021249231 A1 WO2021249231 A1 WO 2021249231A1 CN 2021097358 W CN2021097358 W CN 2021097358W WO 2021249231 A1 WO2021249231 A1 WO 2021249231A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
short
message
electronic device
scene
Prior art date
Application number
PCT/CN2021/097358
Other languages
English (en)
French (fr)
Other versions
WO2021249231A9 (zh
Inventor
杨标
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to BR112022025196A priority Critical patent/BR112022025196A2/pt
Priority to US18/001,030 priority patent/US20230269567A1/en
Priority to EP21821808.9A priority patent/EP4149126A4/en
Publication of WO2021249231A1 publication Critical patent/WO2021249231A1/zh
Publication of WO2021249231A9 publication Critical patent/WO2021249231A9/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • 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/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
    • 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/58Message adaptation for wireless communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/535Tracking the activity of the user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/20Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
    • H04W4/21Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel for social networking applications

Definitions

  • This application relates to the technical field of short-distance wireless communication, and in particular to an application-based short-distance notification method, electronic device, and system.
  • APP applications
  • the application can push various notification messages to the user.
  • the notification message sent by an electronic device to other nearby electronic devices based on the application can be widely used in various scenarios, and can improve user activity, user stickiness, conversion rate, and retention rate.
  • electronic devices can only rely on the Internet to send notification messages, which is inflexible and has the risk of leaking user privacy. How to send/receive notification messages based on applications more conveniently and effectively is the current and future research direction.
  • the embodiments of the present application provide an application-based short-distance notification method, electronic device, and system, which can make the electronic device send/receive short-distance messages more flexibly, conveniently and effectively, and avoid leakage of user privacy.
  • the embodiments of the present application provide an application-based short-distance notification method, which is applied to a communication system, and the communication system includes: a first device and a second device; the first device and the second device Both are installed with the first application.
  • the method includes: the first device runs the first application program and recognizes a first scenario; the first device uses short-range wireless communication technology to send a first message, the first message carrying an identifier of the first application program And the identifier of the first scene; the second device receives the first message using the short-range wireless communication technology, and determines the first application and the first scene according to the first message; the second device outputs a prompt Information, the prompt information is used to indicate the first application and the first scene.
  • the method provided in the first aspect can be implemented without relying on the Internet, and the transmission of short-range messages can be completed only through short-range wireless communication technology. This method is carried out directly between electronic devices, without additional configuration of a server, and reduces the cost of short-distance notification. In addition, short-distance messages transmitted between electronic devices only carry the identification of the application program and the identification of the notification scene, which can avoid the leakage of the user's personal location information, personal account and other private data.
  • short-range wireless communication technologies may include but are not limited to: Bluetooth (BT), near field communication (NFC), and wireless local area networks (WLAN) (Such as wireless fidelity (WiFi)), ZigBee or ultra-wideband (UWB), etc.
  • BT Bluetooth
  • NFC near field communication
  • WLAN wireless local area networks
  • WiFi wireless fidelity
  • ZigBee ZigBee
  • UWB ultra-wideband
  • both the first device and the second device store one or more notification scenarios corresponding to the first application and an identifier corresponding to each notification scenario, and the one or more notification scenarios include The first scene. This can ensure that the first device can recognize the first scene and send the first message, and it can also ensure that the second device can parse the first message.
  • one or more notification scenarios corresponding to the first application program may be preset or updated in real time.
  • the notification scenarios can be set according to actual needs, which can expand the application scope of the method provided in the first aspect.
  • different applications may correspond to different notification scenarios.
  • notification scenarios can be customized according to different applications.
  • the first message includes a broadcast packet. That is, the first device sends the first message in the form of broadcast.
  • the broadcast packet includes a broadcast data part, the broadcast data part includes a first domain and a second domain, the first domain is used to carry the identity of the first application, and the second domain is used to carry the The ID of the first scene.
  • the first device before the first device recognizes the first scene, the first device may also detect the first operation, and enable the short-distance notification function in response to the first operation.
  • the short-distance notification function is used for the first device to identify the first scene and send the first message.
  • the second device may also detect a second operation and respond to the first The second operation enables the short-range notification function; the short-range notification function is used by the second device to determine the first application and the first scene according to the first message.
  • the embodiment of the present application does not limit the implementation form of the second operation.
  • the prompt information output by the second device may include any one or more of the following: interface elements displayed on the display screen, audio played by the audio module, vibration prompts generated by a motor, or flashing lights Flashing reminder.
  • the second device after the second device receives a short-range message, if it receives another short-range message that indicates the same notification scenario as the short-range message within a preset time period, it does not Then output prompt information according to the other short-range messages.
  • the second device may also use the short-range wireless communication technology to receive a second message within a preset time period of receiving the first message, and the second message carries the identifier of the first application and the The identifier of the first scene; the second device determines the first application and the first scene according to the second message.
  • the prompt information output by the second device is only used to indicate the first application and the first scene once.
  • the second message may be sent by the first device, or sent by other devices, which is not limited in the embodiment of the present application.
  • the frequency of outputting the same prompt information by the second device can be reduced, and the user can be prompted concisely and conveniently, and the user experience is better.
  • the second device may periodically output prompt information. Two possible implementations are listed below.
  • the second device may count the short-distance messages indicating a certain notification scenario sent by other electronic devices within the first preset period based on the first application, and output them every first preset period One-time prompt information, where the prompt information is used to indicate the first application program and the notification scenario indicated by the short-distance message counted in the first preset period.
  • the second device may also use the short-range wireless communication technology to receive a third message; the third message carries the identifier of the first application program and the identifier of the first scene, and the first The message and the third message are received by the second device within a first preset period; the second device determines the first application and the first scene according to the third message.
  • the prompt information output by the second device is specifically used to indicate the first application program and the first scene twice. In this way, the frequency of outputting the same prompt information by the second device can be reduced, the user can be prompted more concisely and conveniently, and the user experience can be better.
  • the second device may also use the short-range wireless communication technology to receive a fourth message; the fourth message carries the identifier of the first application and the second scenario The first message and the fourth message are received by the second device within a second preset period; the second device determines the first application and the second scene according to the fourth message.
  • the prompt information output by the second device is also used to indicate the second scene. In this way, multiple prompt messages can be integrated, the frequency of the second device outputting prompt messages can be reduced, the user can be prompted more concisely and conveniently, and the user experience can be better.
  • an embodiment of the present application provides an application-based short-distance notification method, applied to a first device, and the method includes: the first device runs the first application and recognizes the first scene; A device uses short-range wireless communication technology to send a first message to a second device, and the first message carries the identifier of the first application program and the identifier of the first scene, and is used by the second device to output prompt information according to the first message Indicate the first application and the first scenario; wherein the first device and the second device are both installed with the first application.
  • the first device may not rely on the Internet and can send short-range messages only through short-range wireless communication technology.
  • This method requires additional configuration of a server, which reduces the cost of short-distance notification.
  • short-distance messages transmitted between electronic devices only carry the identification of the application program and the identification of the notification scene, which can avoid the leakage of the user's personal location information, personal account and other private data.
  • short-range wireless communication technologies may include, but are not limited to: BT, NFC, WLAN (such as WiFi), ZigBee or UWB, and so on.
  • the first device stores one or more notification scenarios corresponding to the first application program and an identifier corresponding to each notification scenario, and the one or more notification scenarios include the first scenario. This can ensure that the first device can recognize the first scene and send the first message.
  • one or more notification scenarios corresponding to the first application program may be preset or updated in real time.
  • the notification scenarios can be set according to actual needs, which can expand the application range of the method provided in the second aspect.
  • different applications may correspond to different notification scenarios.
  • notification scenarios can be customized according to different applications.
  • the first message includes a broadcast packet. That is, the first device sends the first message in the form of broadcast.
  • the broadcast packet includes a broadcast data part, the broadcast data part includes a first domain and a second domain, the first domain is used to carry the identity of the first application, and the second domain is used to carry the The ID of the first scene.
  • the first device before the first device recognizes the first scene, the first device may also detect the first operation, and activate the short-distance notification function in response to the first operation.
  • the short-distance notification function is used for the first device to identify the first scene and send the first message.
  • an embodiment of the present application provides an application-based short-distance notification method, which is applied to a second device.
  • the method includes: the second device uses short-range wireless communication technology to receive a first message sent by the first device; the first message carries the identifier of the first application and the identifier of the first scene; the second device according to The first message determines the first application and the first scene; the second device outputs prompt information, and the prompt information is used to indicate the first application and the first scene; wherein, the first device and the second device Both are installed with the first application.
  • the second device may not rely on the Internet and can receive short-range messages only through short-range wireless communication technology.
  • This method is carried out directly between electronic devices, without additional configuration of a server, and reduces the cost of short-distance notification.
  • short-distance messages transmitted between electronic devices only carry the identification of the application program and the identification of the notification scene, which can avoid the leakage of the user's personal location information, personal account and other private data.
  • short-range wireless communication technologies may include, but are not limited to: BT, NFC, WLAN (such as WiFi), ZigBee or UWB, and so on.
  • the second device stores one or more notification scenarios corresponding to the first application and an identifier corresponding to each notification scenario, and the one or more notification scenarios include the first scenario. This can ensure that the second device can parse the first message.
  • one or more notification scenarios corresponding to the first application program may be preset or updated in real time.
  • the notification scenarios can be set according to actual needs, which can expand the application scope of the method provided by the third aspect.
  • different applications may correspond to different notification scenarios.
  • notification scenarios can be customized according to different applications.
  • the first message includes a broadcast packet. That is, the second device receives the first message by scanning the broadcast packet.
  • the broadcast packet includes a broadcast data part, the broadcast data part includes a first domain and a second domain, the first domain is used to carry the identity of the first application, and the second domain is used to carry the The ID of the first scene.
  • the second device may also detect a second operation and respond to the first The second operation enables the short-range notification function; the short-range notification function is used by the second device to determine the first application and the first scene according to the first message.
  • the embodiment of the present application does not limit the implementation form of the second operation.
  • the prompt information output by the second device may include any one or more of the following: interface elements displayed on the display, audio played by the audio module, vibration prompts generated by a motor, or flashing lights Flashing reminder.
  • the second device after the second device receives a short-range message, if it receives another short-range message that indicates the same notification scenario as the short-range message within a preset time period, it does not Then output prompt information according to the other short-range messages.
  • the second device may also use the short-range wireless communication technology to receive a second message within a preset time period of receiving the first message, and the second message carries the identifier of the first application and the The identifier of the first scene; the second device determines the first application and the first scene according to the second message.
  • the prompt information output by the second device is specifically used to indicate the first application and the first scene once.
  • the second message may be sent by the first device, or sent by other devices, which is not limited in the embodiment of the present application.
  • the frequency of outputting the same prompt information by the second device can be reduced, and the user can be prompted concisely and conveniently, and the user experience is better.
  • the second device may periodically output prompt information. Two possible implementations are listed below.
  • the second device may count the short-distance messages indicating a certain notification scenario sent by other electronic devices within the first preset period based on the first application, and output them every first preset period One-time prompt information, where the prompt information is used to indicate the first application program and the notification scenario indicated by the short-distance message counted in the first preset period.
  • the second device may also use the short-range wireless communication technology to receive a third message; the third message carries the identifier of the first application program and the identifier of the first scene, and the first The message and the third message are received by the second device within a first preset period; the second device determines the first application and the first scene according to the third message.
  • the prompt information output by the second device is specifically used to indicate the first application program and the first scene twice. In this way, the frequency of outputting the same prompt information by the second device can be reduced, the user can be prompted more concisely and conveniently, and the user experience can be better.
  • the second device may also use the short-range wireless communication technology to receive a fourth message; the fourth message carries the identifier of the first application and the second scenario The first message and the fourth message are received by the second device within a second preset period; the second device determines the first application and the second scene according to the fourth message.
  • the prompt information output by the second device is also used to indicate the second scene. In this way, multiple prompt messages can be integrated, the frequency of the second device outputting prompt messages can be reduced, the user can be prompted more concisely and conveniently, and the user experience can be better.
  • an embodiment of the present application provides an electronic device.
  • the electronic device includes: a display screen, a memory, and one or more processors; the display screen and the memory are coupled with the one or more processors, and the memory is used to store the computer
  • the program code, the computer program code includes computer instructions, and one or more processors call the computer instructions to make the electronic device execute the method described in the second aspect or any one of the possible implementation manners of the second aspect.
  • an embodiment of the present application provides an electronic device that includes: a display screen, a memory, and one or more processors; the display screen and the memory are coupled with the one or more processors, and the memory is used to store the computer
  • the program code, the computer program code includes computer instructions, and one or more processors call the computer instructions to make the electronic device execute the method described in the third aspect or any one of the possible implementation manners of the third aspect.
  • an embodiment of the present application provides a communication system, which includes a first device and a second device; both the first device and the second device are installed with a first application; the first device It may be the electronic device described in the fourth aspect, and the second device may be the electronic device described in the fifth aspect.
  • the embodiments of the present application provide a computer program product containing instructions, which when the computer program product runs on an electronic device, causes the electronic device to execute any one of the second aspect or the second aspect Possible implementations are described in the method.
  • an embodiment of the present application provides a computer-readable storage medium, including instructions, which when run on an electronic device, cause the electronic device to execute any one of the second aspect or the second aspect Possible implementations are described in the method.
  • the embodiments of the present application provide a computer program product containing instructions, when the computer program product runs on an electronic device, the electronic device is caused to execute any one of the third aspect or the third aspect Possible implementations are described in the method.
  • an embodiment of the present application provides a computer-readable storage medium, including instructions, which, when the instructions run on an electronic device, cause the electronic device to execute any one of the third aspect or the third aspect Possible implementations are described in the method.
  • the transmission of short-range messages can be completed without relying on the Internet and only through short-range wireless communication technology.
  • This method is carried out directly between electronic devices, without additional configuration of a server, and reduces the cost of short-distance notification.
  • short-distance messages transmitted between electronic devices only carry the identification of the application program and the identification of the notification scene, which can avoid the leakage of the user's personal location information, personal account and other private data.
  • Fig. 1 is a schematic diagram of a short-distance notification scenario in the prior art
  • Figure 2 is a communication system provided by an embodiment of the application
  • 3A is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the application.
  • 3B is a schematic diagram of the software architecture of an electronic device provided by an embodiment of the application.
  • FIG. 4 is a schematic flowchart of a short-distance notification method based on an application provided by an embodiment of the application;
  • 5A and 5B are a set of user interfaces implemented on the electronic device 100 provided by an embodiment of the application;
  • 6A and 6B are schematic diagrams of the format of short-range messages provided by an embodiment of this application.
  • 7A and 7B are a set of user interfaces implemented on the electronic device 200 provided by an embodiment of the application;
  • FIG. 8 is a diagram of internal module interaction between the electronic device 100 and the electronic device 200 provided by an embodiment of the application.
  • first and second are only used for descriptive purposes, and cannot be understood as implying or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, “multiple” The meaning is two or more.
  • GUI graphical user interface
  • Fig. 1 exemplarily shows a current scenario where notification messages are transmitted based on an application program.
  • both electronic device 1 and electronic device 2 are installed with the same APP, and the server provides various services for the APP.
  • the number of servers can be one or more.
  • the process of the electronic device 1 sending a notification message to the nearby electronic device 2 based on the APP includes the following steps:
  • Electronic device 1 and electronic device 2 each report location information to the server when running the APP.
  • the electronic device 1 sends a notification message to the service based on the request of the APP.
  • the specific content of the notification message may be, for example, that the electronic device 1 purchased a certain service in the APP, and the electronic device 1 used a certain service provided by the APP. etc.
  • the server receives the request for the notification message, and determines that the electronic device near the electronic device 1 and installed with the APP includes the electronic device 2 according to the location information reported by each electronic device.
  • the server In response to the request of the notification message, the server sends the notification message to the electronic device 2.
  • the electronic device 2 receives the notification message.
  • the communication between the electronic device and the server relies on the Internet such as a cellular network and a WiFi network, which is inflexible.
  • This method requires the electronic device to report the location information to the server, and there is a risk of leaking user privacy.
  • each APP needs to be configured with a corresponding server to complete the transmission of notification messages, which is costly.
  • the following embodiments of the application provide an application-based short-distance notification method, electronic device, and system.
  • the electronic device if it recognizes the notification scenario corresponding to the application while running the application, it can send short-range messages to other nearby electronic devices based on the application and using short-range wireless communication technology.
  • the short-range message carries the identifier of the application program and the identifier of the notification scene recognized by the electronic device.
  • Other nearby electronic devices can receive the short-range message, and the electronic device installed with the application can determine the application and the notification scenario according to the short-range message, and output prompt information to notify the user of the notification scenario.
  • the method does not rely on the Internet, does not require electronic devices to report location information, can make electronic devices more flexible, convenient and effective to send/receive short-range messages, and can avoid leakage of user privacy.
  • one application program may correspond to one or more notification scenarios, and different application programs correspond to different notification scenarios.
  • different application programs correspond to different notification scenarios.
  • the electronic device may use short-range wireless communication technology to send short-range messages to other nearby electronic devices in the form of broadcast.
  • the short-range wireless communication technology may include, but is not limited to: Bluetooth (Bluetooth), near field communication (NFC), wireless local area networks (WLAN) (such as wireless fidelity (WiFi)) , ZigBee or ultra wideband (UWB) and so on.
  • Each short-range wireless communication technology has a corresponding communication range, and the communication range is a signal coverage range when an electronic device uses the short-range wireless communication technology to send signals.
  • Different short-range wireless communication technologies can correspond to different communication ranges.
  • the communication range corresponding to Bluetooth may be within 10 meters
  • the communication range corresponding to NFC may be within 20 cm.
  • other electronic devices near the electronic device refer to other electronic devices within the communication range corresponding to the short-range wireless communication technology used by the electronic device.
  • FIG. 2 shows a communication system 10 provided by an embodiment of the present application.
  • the communication system 10 may include multiple electronic devices, such as electronic device 100, electronic device 200, electronic device 300, electronic device 400, and electronic device 500.
  • the electronic devices 100-500 can be portable terminal devices equipped with iOS, Android, Microsoft or other operating systems, such as mobile phones, tablets, wearable devices, etc., and can also be laptop computers with touch-sensitive surfaces or touch panels (Laptop), non-portable terminal devices such as desktop computers with touch-sensitive surfaces or touch panels.
  • Multiple apps may be installed in the electronic devices 100-500, such as game apps, Internet service apps (for example, Tiantong), payment apps (for example, Huawei Wallet), and so on.
  • Tiantiantong is an application that provides overseas Internet services, hotel/air ticket booking, and car rental services.
  • Huawei Wallet is an application that provides services such as mobile payment and fast travel.
  • each electronic device When each electronic device runs the APP, it can generate a short-range message and use the short-range wireless communication technology to send the short-range message, that is, send the short-range message based on the APP. Each electronic device can also parse received short-distance messages sent by other electronic devices based on the APP.
  • the following embodiments will take the electronic device generating, sending, or receiving short-range messages based on the first application program (APP1 in FIG. 2) as an example for description.
  • the embodiment of the application does not limit the type of the first application program.
  • the electronic device 100, the electronic device 200, the electronic device 300, and the electronic device 500 are all installed with the first application program.
  • the electronic device 100 is the sender of the short-range message, and the electronic devices 200-400 are within the communication range corresponding to the short-range wireless communication technology used by the electronic device 100.
  • the electronic device 100, the electronic device 200, and the electronic device 400 all enable the "short-distance notification function" of the first application.
  • the manner in which each electronic device activates the "short-distance notification function" of the first application and the specific meaning of the "short-distance notification function" can refer to related descriptions in subsequent method embodiments, and will not be repeated here.
  • the electronic devices 100-500 all have one or more of a Bluetooth (BT) module, an NFC module, a WLAN module, and a ZigBee module.
  • BT Bluetooth
  • NFC NFC
  • WLAN Wireless Fidelity
  • ZigBee ZigBee
  • the electronic device 100 may use short-range wireless communication technology to send short-range messages to other nearby electronic devices in the form of broadcast when the notification scene is recognized. Specifically, the electronic device 100 may send short-range messages through one or more of a Bluetooth (BT) module, an NFC module, a WLAN module, and a ZigBee module.
  • BT Bluetooth
  • NFC NFC
  • WLAN Wireless Fidelity
  • ZigBee ZigBee
  • the electronic device 200, the electronic device 300, and the electronic device 400 are located within the communication range corresponding to the short-range wireless communication technology used by the electronic device 100, the electronic device 200, the electronic device 300, and the electronic device 400 can all pass through the Bluetooth (BT) module
  • BT Bluetooth
  • One or more of the NFC module, the WLAN module, and the ZigBee module scan to the short-distance message sent by the electronic device 100.
  • the electronic device 200, the electronic device 300, and the electronic device 400 scan the short-range message sent by the electronic device 100 based on the first application program
  • the electronic device 200 and the electronic device 300 that also have the first application program installed can parse the short-range message.
  • the electronic device 200 with the "short-range notification function" of the first application enabled may output prompt information to notify the user. It can be seen that the short-distance notification provided by the embodiment of the present application is performed between electronic devices that are located within the communication range of the short-distance wireless communication technology, have the same application installed, and have all enabled the "short-distance notification function" of the application.
  • FIG. 3A shows a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device may be any electronic device in the communication system 10 shown in FIG. 2.
  • the electronic device may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , The display screen 194, and the subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device.
  • the electronic device may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, etc.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • the controller can be the nerve center and command center of the electronic device.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory.
  • the wireless communication function of the electronic device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G and the like applied to electronic devices.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on electronic devices including WLAN (such as Wi-Fi), BT, global navigation satellite system (GNSS), frequency modulation (FM), NFC, ZigBee, UWB, Infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the Bluetooth (BT) module can provide one or more Bluetooth communication solutions including classic Bluetooth (Bluetooth 2.1) or Bluetooth low energy (Bluetooth low energy, BLE).
  • the WLAN module can provide a solution for WiFi communication.
  • the antenna 1 of the electronic device is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , ZigBee, UWB, FM, and/or IR technology, etc.
  • the GNSS may include the global positioning system (GPS), the global navigation satellite system (GLONASS), the Beidou navigation satellite system (BDS), and the quasi-zenith satellite system (quasi). -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the processor 110 may be used to run the first application program when the notification scene is recognized To generate short-range messages.
  • the Bluetooth (BT) module, NFC module, WLAN module, and ZigBee module included in the wireless communication module 160 may transmit the short-range message in a broadcast form.
  • the electronic device shown in FIG. 3A when the electronic device shown in FIG. 3A is within the communication range of the short-range wireless communication technology used by the electronic device 100 (for example, the electronic device is the electronic device 200 in the communication system 10 shown in FIG. , The electronic device 300 or the electronic device 400), the Bluetooth (BT) module, the NFC module, the WLAN module, and the ZigBee module included in the wireless communication module 160 of the electronic device can scan the short-distance message sent by the electronic device 100. Further, if the electronic device shown in FIG. 3A is installed with the first application (for example, the electronic device is the electronic device 200 and the electronic device 300 in the communication system shown in FIG.
  • the processor 110 of the electronic device can also be used To analyze the scanned short-distance message, determine which application the short-distance message is based on and the specific content of the short-distance message. Furthermore, if the "short-distance notification function" of the first application is enabled in the electronic device (for example, the electronic device is the electronic device 200 in the communication system shown in FIG. 2), the processor 110 of the electronic device may According to the specific content of the parsed short-range message, prompt information is generated, and the relevant device is instructed to output the prompt information. For the specific implementation of the prompt information, refer to the detailed description of the subsequent method embodiments.
  • the electronic device realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device may include one or N display screens 194, and N is a positive integer greater than one.
  • the display screen 194 may be used to display the prompt information output after the electronic device receives the short-range message and parses the short-range message.
  • the display screen 194 may be used to display the prompt information output after the electronic device receives the short-range message and parses the short-range message.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials.
  • the electronic device determines the strength of the pressure based on the change in capacitance.
  • a touch operation acts on the display screen 194, the electronic device detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation intensities can correspond to different operation instructions.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be provided on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device, which is different from the position of the display screen 194.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device can receive key input, and generate key signal input related to user settings and function control of the electronic device.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the software system of the electronic device can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • Fig. 3B is a software structure block diagram of an electronic device according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the software system of the electronic device is divided into four layers, from top to bottom, the application program layer, the short-distance notification capability layer, the operating system (OS) layer, and the hardware layer.
  • OS operating system
  • the application layer can include a series of application packages.
  • the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, game application package, Internet service application package (such as Tiantiantong ), payment application packages (such as Huawei Wallet) and other applications.
  • the electronic device 100, the electronic device 200, and the electronic device 300 include the first application package.
  • the application package describes or predefines the notification scene when the electronic device runs the corresponding application program and the identifier corresponding to the notification scene.
  • the electronic device can update the application package according to the resources obtained from the network, and can update the notification scene and the identifier corresponding to the notification scene. That is to say, when the electronic device in the embodiment of the present application is running an application, the notification scenarios corresponding to different time periods and the identifiers corresponding to the notification scenarios may be different.
  • the notification scenario and the identifier corresponding to the notification scenario reference may be made to the detailed description of the subsequent embodiments, which will not be repeated here.
  • the OS layer includes an operating system and drivers.
  • the OS layer provides interfaces for the short-distance notification capability layer to use various hardware of the hardware layer.
  • the hardware layer provides the underlying hardware capabilities of the electronic device, and may include one or more of a Bluetooth (BT) module, an NFC module, a WLAN module, and a ZigBee module.
  • BT Bluetooth
  • NFC NFC
  • WLAN Wireless Fidelity
  • ZigBee ZigBee
  • the short-distance notification capability layer is used to provide short-distance notification functions of electronic devices.
  • the short-distance notification capability layer provides short-distance notification and perception services for all installed applications.
  • the short-distance notification capability layer may include an APP enable state management module, a transmitter, and a sensor.
  • the APP enabled state management module is used to manage the short-distance notification function of each application installed on the electronic device, for example, to record the on/off of the short-distance notification function of each application.
  • the perceptron is used to cooperate with the OS layer and the hardware layer to monitor short-distance messages sent by other electronic devices. Specifically, after the Bluetooth (BT) module, NFC module, WLAN module, or ZigBee module in the hardware layer scans the short-range message sent by other electronic devices, the short-range message is passed to the sensor through the interface of the OS layer, and the sensor Parse the short-range message.
  • BT Bluetooth
  • NFC NFC
  • WLAN module Wireless Local Area Network
  • ZigBee module ZigBee module
  • the transmitter is used to cooperate with the OS layer and the hardware layer to send short-distance messages when the notification scene is recognized. Specifically, after the first application in the application layer recognizes the notification scene, it sends the identified identification of the notification scene to the transmitter in the short-distance notification capability layer, and the transmitter generates a short-distance message and calls the OS
  • the interface of the layer sends the generated short-range message to the hardware layer, which is sent by the Bluetooth (BT) module, NFC module, WLAN module or ZigBee module in the hardware layer.
  • BT Bluetooth
  • the short-distance notification between the electronic device 100 and the electronic device 200 in the communication system 10 shown in FIG. 2 is taken as an example to describe in detail the application-based short-distance notification method provided by the embodiment of the present application.
  • FIG. 4 is a schematic flowchart of the short-distance notification method based on an application.
  • the electronic device 100, the electronic device 200, and the electronic device 300 are all installed with the first application program.
  • the electronic device 200, the electronic device 300, and the electronic device 400 are located within the communication range of the short-distance wireless communication of the electronic device 100.
  • the electronic device 100 and the electronic device 200 enable the "short-distance notification function" of the first application. It should be noted that, because the electronic device 500 in the communication system shown in FIG. 2 is located outside the communication range of short-range wireless communication, it is not shown in the method shown in FIG. 4.
  • the electronic device 100 that sends the short-range message can also be called the first device
  • the electronic device 200 that receives and can parse the short-range message and can output prompt information according to the short-range message can also be called the first device.
  • the second device For the second device.
  • the method may include the following steps:
  • S110 The electronic device 100 activates the "short-distance notification function" of the first application.
  • each electronic device can activate/deactivate the "short-distance notification function" of each application program. After turning on the "short-range notification function" of the application, if the electronic device recognizes the notification scene while running the application, it can send to other nearby electronic devices based on the application and using short-range wireless communication technology Short-distance messaging. In addition, the electronic device can also receive short-range messages sent by other electronic devices based on the application, and output prompt information according to the short-range messages.
  • short-distance notification function is only a term used in this embodiment, and its representative meaning has been recorded in this embodiment, and its name does not constitute any limitation to this embodiment.
  • short-range notification function may also be referred to as other terms such as “short-range notification function”.
  • the first application is one of multiple applications installed on the electronic device 100.
  • the first application may be a game APP, an Internet service APP (such as Tiantong), a payment APP (such as Huawei Wallet), or other types
  • the APP of this application does not limit this.
  • the electronic device 100 may activate the "short-distance notification function" of the first application in response to the received user operation.
  • the user operation received by the electronic device 100 to start the "short-distance notification function" of the first application program may be referred to as the first operation.
  • FIG. 5A shows a user interface 51 provided by the electronic device 100 when running the first application program.
  • the user interface 51 may be an interface provided when the first application program is run for the first time after the electronic device 100 installs the first application program.
  • the user interface 51 may be an interface displayed in response to the user clicking the icon of the first application in the main interface.
  • the first application is Tiantiantong as an example.
  • the user interface 51 may include: a main page provided by Tiantong, and a window 505 displayed floating above the main page.
  • the main page provided by Tiantong includes: a status bar 501, a search box 502, multiple controls 503 for purchasing traffic, and a navigation bar 504.
  • the status bar 501 may include: one or more signal strength indicators of mobile communication signals (also called cellular signals), the name of the operator (for example, "China Mobile"), and wireless fidelity (Wi-Fi) signals One or more of the signal strength indicator, battery status indicator, time indicator, etc.
  • the search box 502 can be used for the user to search for a desired area.
  • the control 503 can be used to monitor user operations, and the electronic device 100 can respond to the user operation to open an interface for purchasing the area traffic corresponding to the control.
  • the navigation bar 504 may include system navigation keys such as a return key, a home screen key, and a multitasking key.
  • the window 505 is displayed floating above the rest of the user interface 51.
  • the window 505 is used for the user to turn on/off the "short-distance notification function" of the first application.
  • the window 505 includes: a prompt text 505a, a control 505b, and a control 505c.
  • the prompt text 505a is used to prompt the user of the function of the window 505, for example, the text "Are you allowed to receive/send short-distance notifications?"
  • the control 505b is used to monitor user operations (for example, click operations), and the electronic device 100 can close the "short-distance notification function" of the first application in response to the user operations.
  • the control 505c is used to monitor user operations (for example, click operations), and the electronic device 100 can activate the "short-distance notification function" of the first application in response to the user operations.
  • the electronic device 100 may also respond to other users Operate to turn on the "short-distance notification function" of the first application.
  • the electronic device 100 may also provide a control for turning on/off the "short-distance notification function" of the first application in the internal function setting interface of the first application, and the user can input a user operation (for example, Click Operate) to turn on the "short-distance notification function" of the first application.
  • the electronic device 100 may also display a setting interface provided by a settings application, and the setting interface may include a control provided to the user for turning on/off the "short-distance notification function" of the first application, and the user may The "short-distance notification function" of the first application program is turned on by inputting a user operation on the control.
  • the user can also turn on the "short-distance notification function" of the first application through an operation input on a physical button, a voice command, and the like.
  • the electronic device 100 may also enable the "short-distance notification function" of the first application by default without user operation.
  • S120 The electronic device 200 activates the "short-distance notification function" of the first application.
  • step S110 the user operation received by the electronic device 200 to start the "short-distance notification function" of the first application program may be referred to as the second operation.
  • the electronic device 100 runs the first application, and when it recognizes the notification scenario of the first application, broadcasts a short-range message using short-range wireless communication technology; the short-range message is used to indicate the first application and the Notification scene.
  • different applications may correspond to different notification scenarios.
  • An application can correspond to one or more notification scenarios.
  • Each scene may correspond to a scene identifier, and the notification scene identifier is used to indicate the notification scene.
  • the notification scene corresponding to an application and the identification corresponding to each scene can be pre-defined by the developer of the application and stored in the installation package of the application.
  • the electronic device may also update the application package according to the resources obtained from the network, and may update the notification scene and the identifier corresponding to the notification scene.
  • the embodiment of the application does not limit the number of notification scenarios corresponding to an application program, and in some embodiments, the number can be customized by the developer.
  • the electronic device After the electronic device installs an application, or after the electronic device updates the version of an application, it can learn the notification scene corresponding to the application and the identification corresponding to each scene. All electronic devices installed with the same application program can learn the notification scene corresponding to the application program and the identification corresponding to each scene. For example, both the electronic device 100 and the electronic device 200 can learn the notification scene corresponding to the first application and the identifier corresponding to each scene.
  • the identifier corresponding to the notification scenario may also be referred to as a channel name (channel name).
  • Table 1 exemplarily shows notification scenarios corresponding to several types of applications installed in the electronic device 100, and an identifier corresponding to each scenario.
  • each application program also has a corresponding identifier (APP ID), which is used to indicate the application function program.
  • APP ID corresponding identifier
  • the electronic device 100 when the electronic device 100 is running the first application program, if it recognizes the notification scene corresponding to the first application program, it broadcasts a short-range message using short-range wireless communication technology.
  • the first application program may run in the foreground of the electronic device 100 or in the background.
  • the electronic device 100 may use short-range wireless communication technology to broadcast short-range messages when recognizing that the user purchases a vagrant package or purchases a ticket through Tiantong.
  • the electronic device 100 may use short-range wireless communication technology to broadcast short-range messages when recognizing that the user has opened a membership card, drawn a lottery, or received a full payment reduction through the Huawei wallet.
  • the electronic device 100 may use short-range wireless communication technology to broadcast short-range messages when starting the game.
  • the electronic device 100 uses short-range wireless communication technology to send short-range messages in the form of broadcast.
  • the short-range wireless communication technology used by the electronic device 100 may include, but is not limited to: Bluetooth (BT), NFC, WiFi, ZigBee, UWB, and so on.
  • the short-range message carries the identifier of the first application program and the identifier of the notification scene currently recognized by the electronic device 100.
  • the implementation form of the short-range message in the embodiment of the present application is a broadcast packet or a broadcast message sent by the electronic device 100 using the short-range wireless communication technology.
  • the message format of the original Bluetooth broadcast packet, NFC broadcast packet, WiFi broadcast packet, ZigBee broadcast packet or UWB broadcast packet is not changed, and only the broadcast data in the original broadcast packet (advertising data, AD) The content in the paragraph/part is updated.
  • the broadcast data (AD) segment/part carries the identifier of the first application program and the identifier of the notification scene recognized by the electronic device 100.
  • Fig. 6A exemplarily shows the message structure of the Bluetooth broadcast packet provided by the embodiment of the present application.
  • a Bluetooth broadcast message includes the following parts: preamble, access address, protocol data unit (PDU), cyclic redundancy check, CRC).
  • PDU can include the following parts: broadcast message type, reserved field, sending address type, receiving address type, length field, reserved field, broadcast device address, broadcast data (AD).
  • the value of the broadcast message type may be a general broadcast indication (ADV_IND), which indicates that the Bluetooth broadcast message shown in FIG. 6A is a general broadcast.
  • the broadcast data (AD) part includes a first domain and a second domain.
  • the first domain is used to carry the identification (APP ID) of the first application program
  • the second domain is used to carry the identification of the electronic device 100.
  • the broadcast data (AD) may also include random numbers generated by the electronic device 100.
  • the electronic device 100 may generate different random numbers at different times, and carry the random numbers in the short-distance message sent in the corresponding time period. In this way, when the electronic device 100 scans the short-distance message sent by itself, it can confirm that the short-distance message is a short-distance message sent by itself through a random number, and does not process the short-distance message.
  • the broadcast data (AD) may further include a tag, and the tag may be used to indicate the structure of the broadcast data (AD).
  • the length of the broadcast data (AD) in the Bluetooth broadcast packet shown in FIG. 6A is 31 bytes (byte).
  • the embodiment of the present application does not specifically limit the length occupied by each part of the broadcast data (AD).
  • Each part of the broadcast data (AD) can occupy all 31 bytes, or only part of the 31 bytes, and the remaining bytes are filled with 0.
  • the tag, random number, APP ID, and notification scene identifier in the broadcast data (AD) may occupy 6, 8, 16, and 1 bytes, respectively.
  • FIG. 5B exemplarily shows the user interface 52 displayed by the electronic device 100 when a user purchases a data package through Tiantong on the electronic device 100.
  • the user interface 52 may be an interface when the user clicks the control 503 in the user interface 51 shown in FIG. 5A to purchase traffic in the user interface displayed by the electronic device 100.
  • the electronic device 100 When the user successfully purchases the data package through the electronic device 100 (for example, the user clicks the control "Confirm Payment” shown in FIG. 5B and successfully pays), the electronic device 100 recognizes the notification scenario of purchasing the data package. After that, the electronic device 100 can use short-range wireless communication technology to broadcast a short-range message, which carries the identifier "1" of "Skyline” and the identifier "Ch_1" of the notification scenario of purchasing a data package.
  • FIG. 6B which shows the broadcast data (AD) in the Bluetooth broadcast packet sent by the electronic device 100 when the electronic device 100 uses Bluetooth to send a short-range message.
  • the broadcast data (AD) carries: a tag, a random number, an identifier "1" of "Tianjintong", and an identifier "Ch_1" of the notification scenario of purchasing a data package.
  • the electronic device 100 may also encrypt the identification of the first application in the short-range message and the identification of the notification scene recognized by the electronic device 100 through a secure encryption algorithm before sending the short-range message. Therefore, the identification of the first application program and the identification of the notification scene in the short-distance message are prevented from being exposed, maliciously intercepted, or tampered with.
  • the embodiment of the application does not limit the security encryption algorithm, for example, it may be an advanced encryption standard (AES) in a symmetric encryption algorithm.
  • AES advanced encryption standard
  • the notification scene recognized by the electronic device 100 when running the first application program may be referred to as the first scene.
  • the short-distance message sent by the electronic device 100 after recognizing the notification scenario may be referred to as the first message.
  • S140 The electronic device 200 scans or receives the short-distance message sent by the electronic device 100.
  • each electronic device can use one or more of a Bluetooth (BT) module, an NFC module, a WLAN module, and a ZigBee module to monitor signals transmitted by other devices, such as broadcast packets.
  • BT Bluetooth
  • NFC NFC
  • WLAN Wireless Fidelity
  • ZigBee ZigBee
  • the electronic device 200, the electronic device 300, and the electronic device 400 are located within the communication range of the short-range wireless communication technology used by the electronic device 100. Therefore, the electronic device 200, the electronic device 300, and the electronic device 400 can scan or receive short-range messages sent by the electronic device 100 through one or more short-range wireless communication technologies of Bluetooth (BT), NFC, WLAN, ZigBee, or UWB. After receiving the short-range message, the short-range wireless communication module can pass the short-range message to the short-range notification capability layer for analysis.
  • Bluetooth Bluetooth
  • NFC NFC
  • WLAN Wireless Fidelity
  • the electronic device 200 determines the first application program and the notification scene according to the received short-range message, and outputs prompt information, where the prompt information is used to indicate the first application program and the notification scene.
  • the electronic device installed with the first application program stores the notification scene corresponding to the first application program and the identifier corresponding to each scene. Therefore, the electronic device installed with the first application can parse the received short-range message according to the pre-stored notification scenario corresponding to the first application and the identifier corresponding to each scenario, and determine what the short-range message indicates The first application and notification scene. That is, the electronic device 200 and the electronic device 300 installed with the first application program can successfully parse the received short-range message.
  • the electronic device 200, the electronic device 300, and the electronic device 400 that have received the short-range message can all be based on the message format of the Bluetooth broadcast packet, NFC broadcast packet, WiFi broadcast packet, ZigBee broadcast packet, and UWB broadcast packet described above.
  • both the electronic device 200 and the electronic device 300 may determine, according to the identifier of the application program, that the short-range message is sent based on the first application program, and may also determine the notification scene indicated by the short-range message according to the identifier of the notification scene.
  • the electronic device 400 Since the electronic device 400 does not install the first application, and does not store the notification scene corresponding to the first application and the identification corresponding to each scene, the electronic device 400 cannot parse the identification of the application carried in the short-range message. The indicated application and the notification scene indicated by the identifier of the notification scene.
  • the electronic device 200 and the electronic device 300 can parse the short-distance message, and according to the value of APP ID in the short-distance message "1" learns that the short-range message is sent based on "Tianjintong", and learns that the corresponding notification scenario is the purchase of a data package according to the identifier "Ch_1" of the notification scene in the short-range message.
  • the electronic device with the "short-range notification function" of the first application enabled can output prompt information.
  • the prompt information is used to prompt the first application program and the notification scenario indicated by the short-range message.
  • the prompt information may include any one or a combination of the following: interface elements displayed on the display screen, audio played by the audio module, vibration prompt generated by the motor, flashing prompt of the flashlight, and so on.
  • the form of the prompt information can be set independently by the user, or can be predefined by the installation package of the first application program.
  • the electronic device 200 may output prompt information during the process of running the first application program, or output prompt information when the first application program is not running, which is not limited in the embodiments of the present application.
  • the first application program may run in the foreground of the electronic device 200 or in the background.
  • the electronic device 200 may immediately output prompt information every time it receives a short-distance message.
  • the prompt information may be displayed on the user interface currently displayed after the electronic device 200 receives and parses the short-distance message.
  • FIGS. 7A and 7B each of which shows a prompt information displayed on the display screen immediately after the electronic device 100 receives and parses the short-range message.
  • FIG. 7A shows the user interface 71 provided by the electronic device 200 after receiving and parsing the short-range message during the process of running the first application program.
  • the user interface 71 may include: a main page provided by Tiantiantong, and a prompt window 701.
  • the prompt window 701 includes a text 701a, and the text 701a may be, for example, "a user near you has purchased a data package".
  • the text 701a displayed on the main page of Tiantong is the prompt information
  • the location of the text 701a is used to indicate the first application (namely Tiantong)
  • the content of the text 701a is used to indicate the notification Scenario (that is, purchase a data package).
  • the prompt window 701 may also include text 701b, a control 701c, and a control 701d.
  • the text 701b may ask, for example, "Are you going to buy a data plan?".
  • the control 701c can be used to monitor user operations (for example, click operations), and the electronic device 200 can display an interface for purchasing a data package in response to the user operations.
  • the control 701d can be used to monitor user operations (for example, click operations), and the electronic device 200 can stop displaying the prompt window 701 in response to the user operations. In this way, the characteristics of the notification scene can be fully utilized, and the user's activity in the first application can be improved.
  • FIG. 7B shows the user interface 72 provided by the electronic device 200 after parsing and receiving the short-range message.
  • the user interface 72 may be provided when the electronic device 200 is running the first application program in the background, or may be provided when the electronic device 200 is not running the first application program, which is not limited here.
  • the prompt information 702 may be displayed on the top of the main interface.
  • the prompt information 702 may include: the icon and/or name and text of the first application program (such as Tiantiantong) "A user near you has purchased a data plan!. Among them, the icon and/or name of the first application program can be used to indicate the first application program, and the text "A user near you has purchased a data package! is used to indicate a notification scenario.
  • the electronic device 200 may also display prompt information on other user interfaces.
  • the electronic device 100 may also display prompt information on other interfaces provided by the first application program.
  • FIG. 7A and FIG. 7B only exemplarily show the prompt method of the notification scenario of "purchase data package” in "Skyline".
  • the electronic device 100 sends a short-distance message based on other applications, the electronic device The manner of 200 outputting the prompt information may be different, which is not limited in the embodiment of the present application.
  • the electronic device 200 may decide to output or not to output the prompt information according to the situation. Specifically, after the electronic device 200 receives a short-distance message, if within a preset time period (for example, 10 minutes or 20 minutes), it receives another short-distance message indicating the same notification scene as the short-distance message (including The electronic device 100 and short-range messages sent by other electronic devices) no longer output prompt information according to the other short-range messages.
  • other short-distance messages that are received by the electronic device 100 within a preset time period and that the short-distance message indicates the same notification scene (for example, the first scene) may also be referred to as second messages.
  • the preset time period can be set in advance, which is not limited in the embodiment of the present application. This can reduce the frequency of the electronic device 200 outputting the same prompt information, can prompt the user concisely and conveniently, and have a better experience for the user.
  • the electronic device 200 may periodically output prompt information.
  • the electronic device 200 may also count the short-distance messages indicating a certain notification scenario sent by other electronic devices (not limited to the electronic device 100) received within the first preset period based on the first application program, and The prompt information is output every first preset period, and the prompt information is used to indicate the first application program and the notification scenario indicated by the short-distance message counted in the first preset period.
  • the certain notification scenario may be referred to as the first scenario
  • the short-distance message sent by the electronic device 100 and indicating the first scenario received by the electronic device 200 within the first preset period may be referred to as the first message.
  • the short-distance message received by the electronic device 200 within the first preset period and sent by other electronic devices other than the electronic device 100 and indicating the first scene may be referred to as a third message.
  • the electronic device 200 may output prompt information on the display screen, and the prompt information may be the text "7 users near you have purchased a data package.” This can reduce the frequency of the electronic device 200 outputting the same prompt information, can prompt the user more concisely and conveniently, and have a better experience for the user.
  • the electronic device 200 may count all the short-distance messages sent by other electronic devices (not limited to the electronic device 100) based on the first application program received in the second preset period, and every second preset period. It is assumed that the prompt information is output once periodically, and the prompt information is used to indicate the notification scenarios respectively indicated by the first application program and all the short-range messages received in the second preset period.
  • the short-distance message sent by the electronic device 100 and indicating the first scene received by the electronic device 200 in the second preset period may be referred to as a first message
  • the electronic device 200 received in the second preset period A short-distance message sent by an electronic device other than the electronic device 100 may be referred to as a fourth message.
  • the implementation of this application does not limit the notification scenario indicated by the short-distance message sent by the electronic device other than the electronic device 100.
  • the electronic device 200 may count all the short-distance messages received in the second preset period every 20 minutes or half an hour, and output prompt information according to all the short-distance messages.
  • the electronic device 200 may output prompt information on the display screen.
  • the prompt information may be the text "7 users near you have purchased a data package, and 2 users have purchased air tickets". In this way, multiple prompt messages can be integrated, the frequency of the electronic device 200 outputting the prompt information can be reduced, the user can be prompted more concisely and conveniently, and the user experience can be better.
  • the electronic device 100 runs the first application and recognizes the notification scenario, it can use the short-range wireless communication technology to send the short-range message, which is located in the short-range wireless communication technology used by the electronic device 100
  • All electronic devices 200-400 within the communication range of can receive the short-distance message.
  • the electronic device 200 and the electronic device 300 installed with the first application program can successfully parse the short-range message to learn the notification scenario recognized by the first application program and the electronic device 100.
  • the electronic device 200 with the “short-distance notification function” turned on can output prompt information according to the first application program and the notification scene obtained by the analysis.
  • the method provided in the embodiment of the present application does not rely on the Internet, and the transmission of short-distance messages can be completed only through short-distance wireless communication technology.
  • the method provided in the embodiment of the present application is directly performed between electronic devices without additional configuration of a server, which reduces the cost of short-distance notification.
  • short-distance messages transmitted between electronic devices only carry the identification of the application program and the identification of the notification scene, which can avoid the leakage of the user's personal location information, personal account and other private data.
  • the method provided in the embodiments of the present application supports developers of various application function programs to customize scenarios that require short-distance notification, which can give users a more flexible short-distance notification experience.
  • the short-range notification capability layer of the electronic device in the embodiments of the present application can provide short-range notification and short-range notification perception services for all users with short-range notification needs, without the need for individual applications to provide short-range notification and short-range notification perception. Service can save the power consumption of electronic equipment.
  • FIG. 8 shows the interaction process between the various modules of the electronic device 100 and the electronic device 200 in the process of executing the application-based short-distance notification method provided by the embodiment of the present application.
  • the electronic device 100 activates the "short-distance notification function" of the first application.
  • the first application in the application layer of the electronic device 100 instructs the short-range notification capability layer to enable the "short-range notification function" of the first application; the short-range notification capability layer opens the first application according to the instructions of the first application. An app’s "short-distance notification function".
  • the first application program may call the interface between the application program layer and the short-range notification capability layer to instruct the short-range notification capability layer to enable the "short-range notification function" of the first application function program.
  • the APP enable state management module in the short-distance notification capability layer may store the identifier of the "short-distance notification function" of the first application, and the identifier may be used to indicate the "short-distance notification function" of the first application. "On/off. For example, the number “1” may indicate that the "short-range notification function" of the first application is in the on state, and the number “0” may indicate that the "short-range notification function" of the first application is in the off state.
  • the short-distance notification capability layer returns the processing result of the "short-distance notification function" to the first application in the application layer.
  • the first application in the application layer is registered to the short-distance notification capability layer; after the "short-distance notification function" of the first application is turned on, the short-distance notification capability layer accepts the notification of the first application in the application layer. register.
  • the short-distance notification capability layer returns the registration result to the first application in the application layer.
  • the electronic device 100 can enable the "short-distance notification function" of the first application to send or receive short-distance messages.
  • the electronic device 200 activates the "short-distance notification function" of the first application.
  • Steps 5-8 are similar to steps 1-4, please refer to related descriptions.
  • the first application in the application layer of the electronic device 100 recognizes the notification scene, and sends the identified identification of the notification scene to the short-range notification capability layer to notify the short-range notification capability layer that the notification scene is currently recognized .
  • the short-distance notification capability layer of the electronic device 100 receives the identification of the notification scene recognized by the first application, and determines whether the "short-distance notification function" of the first application is enabled; When the "short-range notification function" is enabled, the short-range notification capability layer generates short-range messages.
  • the APP enable state management module in the short-distance notification capability layer of the electronic device 100 can determine whether the "short-distance notification function" of the first application is turned on, and after it is determined to be turned on, the transmitter can be used to generate a short-distance message .
  • the format and content of the short-range message please refer to the previous description.
  • the short-distance notification capability layer of the electronic device 100 calls related modules of the OS layer and the hardware layer to send short-distance messages.
  • the transmitter in the short-range notification capability layer of the electronic device 100 can call related modules of the OS layer and the hardware layer to send short-range messages, such as calling a Bluetooth (BT) module, an NFC module, a WLAN module, or a ZigBee module to send short-range messages. information.
  • BT Bluetooth
  • NFC NFC
  • WLAN Wireless Fidelity
  • ZigBee ZigBee
  • the hardware layer Bluetooth (BT) module, NFC module, WLAN module or ZigBee module of the electronic device 200 receives the short-range message sent by the electronic device 100, and passes the short-range message to the short-range notification capability layer through the OS layer interface .
  • BT Bluetooth
  • the short-range notification capability layer of the electronic device 200 parses the received short-range message, obtains the identifier of the application program and the identifier of the notification scene carried in the short-range message; and determines the first application program according to the identifier of the application program.
  • the sensor in the electronic device 200 can parse the received short-range message, and obtain the identifier of the application and the notification scene carried in the short-range message.
  • the short-distance notification capability layer of the electronic device 200 judges whether the "short-distance notification function" of the first application is turned on; when it is determined that the "short-distance notification function" of the first application in the electronic device 200 is turned on, short
  • the distance notification capability layer sends the parsed identifier of the notification scene to the first application in the application layer.
  • the APP enable state management module in the short-distance notification capability layer of the electronic device 200 can determine whether the "short-distance notification function" of the first application is enabled.
  • the first application in the application layer receives the identification of the notification scene, and determines the corresponding notification scene according to the identification of the notification scene; then, the first application in the application layer calls the relevant module to output prompt information.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium, (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk).
  • the process can be completed by a computer program instructing relevant hardware.
  • the program can be stored in a computer readable storage medium. , May include the processes of the above-mentioned method embodiments.
  • the aforementioned storage media include: ROM or random storage RAM, magnetic disks or optical discs and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请实施例公开了基于应用程序的短距离通知方法、电子设备及系统。在该方法中,电子设备在运行应用程序的过程中,若识别到该应用程序对应的通知场景,则可以使用短距离无线通信技术向附近的其他电子设备发送短距消息。该短距消息携带有该应用程序的标识和电子设备识别到的通知场景的标识。附近同样安装有该应用程序的其他电子设备可以接收并解析该短距消息,并输出提示信息以通知用户该通知场景。这样即完成了电子设备之间的短距离通知。该方法不依赖于互联网,无需电子设备上报位置信息,能够使得电子设备更加灵活、方便且有效地发送/接收短距消息,且可以避免用户隐私的泄漏。

Description

基于应用程序的短距离通知方法、电子设备及系统
本申请要求于2020年6月10日提交中国专利局、申请号为202010522551.X、申请名称为“基于应用程序的短距离通知方法、电子设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及短距离无线通信技术领域,尤其涉及基于应用程序的短距离通知方法、电子设备及系统。
背景技术
随着通信技术的发展,手机等电子设备中安装有越来越多的应用程序(application,APP)。应用程序可以向用户推送各类通知消息。一个电子设备基于应用程序向附近的其他电子设备发送的通知消息可以广泛应用于各类场景,并可以提升用户活跃度、用户粘性、转化率、留存率。目前,电子设备之间只能依赖互联网发送通知消息,灵活性差,且存在泄漏用户隐私的风险。如何更加方便、有效地基于应用程序来发送/接收通知消息,是当前及未来的研究方向。
发明内容
本申请实施例提供了一种基于应用程序的短距离通知方法、电子设备及系统,能够使得电子设备更加灵活、方便且有效地发送/接收短距消息,且可以避免用户隐私的泄漏。
第一方面,本申请实施例提供了一种基于应用程序的短距离通知方法,该方法应用于通信系统,该通信系统包括:第一设备和第二设备;该第一设备和该第二设备均安装有第一应用程序。该方法包括:该第一设备运行该第一应用程序,并识别到第一场景;该第一设备使用短距离无线通信技术发送第一消息,该第一消息携带有该第一应用程序的标识和该第一场景的标识;该第二设备使用该短距离无线通信技术接收到该第一消息,并根据该第一消息确定该第一应用程序和该第一场景;该第二设备输出提示信息,该提示信息用于指示该第一应用程序和该第一场景。
实施第一方面提供的方法,可以不依赖于互联网,仅通过短距离无线通信技术即可完成短距消息的传输。该方法直接在电子设备之间进行,无需额外配置服务器,减少了短距离通知的成本。此外,电子设备之间传输的短距消息中仅携带了应用程序的标识和通知场景的标识,可以避免用户的个人位置信息、个人账号等隐私数据的泄漏。
结合第一方面,在一些实施例中,短距离无线通信技术可包括但不限于:蓝牙(Bluetooth,BT)、近场通信(near field communication,NFC)、无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,WiFi))、ZigBee或超宽带(ultra wideband,UWB)等等。
结合第一方面,在本申请实施例中,第一设备和第二设备均存储有第一应用程序对应 的一个或多个通知场景以及各个通知场景对应的标识,该一个或多个通知场景包括第一场景。这样可以保证第一设备能够识别第一场景并发送第一消息,还可以保证第二设备能够解析第一消息。
结合第一方面,在一些实施例中,第一应用程序对应的一个或多个通知场景可以是预先设置的,也可以是实时更新的。当第一应用程序对应的一个或多个通知场景是实时更新的情况下,可以根据实际需求来设置通知场景,可以扩大第一方面提供的方法的应用范围。
结合第一方面,在一些实施例中,不同的应用程序可以对应有不同的通知场景。这样可以根据应用程序的不同个性化定制通知场景。
结合第一方面,在一些实施例中,第一消息包括广播包。也就是说,第一设备以广播的形式发送第一消息。在一些实施例中,该广播包包括广播数据部分,该广播数据部分包含第一域和第二域,该第一域用于携带该第一应用程序的标识,该第二域用于携带该第一场景的标识。
结合第一方面,在一些实施例中,该第一设备识别到第一场景之前,该第一设备还可以检测到第一操作,并响应于该第一操作开启短距离通知功能。该短距离通知功能用于该第一设备识别该第一场景并发送该第一消息。本申请实施例对第一操作的实现形式不做限制。
结合第一方面,在一些实施例中,该第二设备根据该第一消息确定该第一应用程序和该第一场景之前,该第二设备还可以检测到第二操作,并响应于该第二操作开启短距离通知功能;该短距离通知功能用于该第二设备根据该第一消息确定该第一应用程序和该第一场景。本申请实施例对第二操作的实现形式不做限制。
结合第一方面,在一些实施例中,第二设备输出的提示信息可包括以下任意一项或多项:在显示屏上显示的界面元素、音频模块播放的音频、马达生成的震动提示或闪光灯的闪烁提示。
结合第一方面,在一些实施例中,第二设备接收到一个短距消息后,若在预设时间段内内再次接收到和该短距消息指示同一通知场景的其他短距消息,则不再根据该其他短距消息输出提示信息。具体的,该第二设备还可以在接收到该第一消息的预设时间段内使用该短距离无线通信技术接收到第二消息,该第二消息携带有该第一应用程序的标识和该第一场景的标识;第二设备根据该第二消息确定该第一应用程序和该第一场景。在这种情况下,该第二设备输出的该提示信息仅用于指示该第一应用程序和一次该第一场景。这里,第二消息可以是第一设备发送的,也可以是其他设备发送的,本申请实施例对此不做限制。这样,可以减少第二设备输出相同提示信息的频率,可以加简洁方便地提示用户,对用户来说体验更佳。
结合第一方面,在一些实施例中,第二设备可以周期性地输出提示信息。下面列举两种可能的实现方式。
在一种实现方式中,第二设备可以统计第一预设周期内接收到的其他电子设备基于第一应用程序发送的指示某个通知场景的短距消息,并每隔第一预设周期输出一次提示信息,该提示信息用于指示第一应用程序以及在该第一预设周期内统计的短距消息所指示的通知场景。具体的,第二设备输出提示信息之前,还可以使用该短距离无线通信技术接收到第 三消息;该第三消息携带有该第一应用程序的标识和该第一场景的标识,该第一消息和该第三消息由该第二设备在第一预设周期内接收到;该第二设备根据该第三消息确定该第一应用程序和该第一场景。在这种情况下,该第二设备输出的该提示信息具体用于指示该第一应用程序和两次该第一场景。这样可以减少第二设备输出相同提示信息的频率,可以更加简洁方便地提示用户,对用户来说体验更佳。
在另一种实现方式中,该第二设备输出提示信息之前,还可以使用该短距离无线通信技术接收到第四消息;该第四消息携带有该第一应用程序的标识和该第二场景的标识;该第一消息和该第四消息由该第二设备在第二预设周期内接收到;该第二设备根据该第四消息确定该第一应用程序和该第二场景。在这种情况下,该第二设备输出的该提示信息还用于指示该第二场景。这样可以将多个提示信息整合到一起,可以减少第二设备输出提示信息的频率,可以更加简洁方便地提示用户,对用户来说体验更佳。
第二方面,本申请实施例提供了一种基于应用程序的短距离通知方法,应用于第一设备,该方法包括:该第一设备运行第一应用程序,并识别到第一场景;该第一设备使用短距离无线通信技术发送第一消息至第二设备,该第一消息携带有该第一应用程序的标识和该第一场景的标识,用于第二设备根据第一消息输出提示信息指示第一应用程序和第一场景;其中,第一设备和第二设备均安装有第一应用程序。
实施第二方面提供的方法,第一设备可以不依赖于互联网,仅通过短距离无线通信技术即可发送短距消息。该方法需额外配置服务器,减少了短距离通知的成本。此外,电子设备之间传输的短距消息中仅携带了应用程序的标识和通知场景的标识,可以避免用户的个人位置信息、个人账号等隐私数据的泄漏。
结合第二方面,在一些实施例中,短距离无线通信技术可包括但不限于:BT、NFC、WLAN(如WiFi)、ZigBee或UWB等等。
结合第二方面,在本申请实施例中,第一设备存储有第一应用程序对应的一个或多个通知场景以及各个通知场景对应的标识,该一个或多个通知场景包括第一场景。这样可以保证第一设备能够识别第一场景并发送第一消息。
结合第二方面,在一些实施例中,第一应用程序对应的一个或多个通知场景可以是预先设置的,也可以是实时更新的。当第一应用程序对应的一个或多个通知场景是实时更新的情况下,可以根据实际需求来设置通知场景,可以扩大第二方面提供的方法的应用范围。
结合第二方面,在一些实施例中,不同的应用程序可以对应有不同的通知场景。这样可以根据应用程序的不同个性化定制通知场景。
结合第二方面,在一些实施例中,第一消息包括广播包。也就是说,第一设备以广播的形式发送第一消息。在一些实施例中,该广播包包括广播数据部分,该广播数据部分包含第一域和第二域,该第一域用于携带该第一应用程序的标识,该第二域用于携带该第一场景的标识。
结合第二方面,在一些实施例中,该第一设备识别到第一场景之前,该第一设备还可以检测到第一操作,并响应于该第一操作开启短距离通知功能。该短距离通知功能用于该第一设备识别该第一场景并发送该第一消息。本申请实施例对第一操作的实现形式不做限制。
第三方面,本申请实施例提供了一种基于应用程序的短距离通知方法,该方法应用于第二设备。该方法包括:该第二设备使用短距离无线通信技术接收到第一设备发送的第一消息;该第一消息携带有该第一应用程序的标识和第一场景的标识;该第二设备根据该第一消息确定该第一应用程序和该第一场景;该第二设备输出提示信息,该提示信息用于指示该第一应用程序和该第一场景;其中,第一设备和第二设备均安装有第一应用程序。
实施第三方面的方法,第二设备可以不依赖于互联网,仅通过短距离无线通信技术即可接收短距消息。该方法直接在电子设备之间进行,无需额外配置服务器,减少了短距离通知的成本。此外,电子设备之间传输的短距消息中仅携带了应用程序的标识和通知场景的标识,可以避免用户的个人位置信息、个人账号等隐私数据的泄漏。
结合第三方面,在一些实施例中,短距离无线通信技术可包括但不限于:BT、NFC、WLAN(如WiFi)、ZigBee或UWB等等。
结合第三方面,在本申请实施例中,第二设备存储有第一应用程序对应的一个或多个通知场景以及各个通知场景对应的标识,该一个或多个通知场景包括第一场景。这样可以保证第二设备能够解析第一消息。
结合第三方面,在一些实施例中,第一应用程序对应的一个或多个通知场景可以是预先设置的,也可以是实时更新的。当第一应用程序对应的一个或多个通知场景是实时更新的情况下,可以根据实际需求来设置通知场景,可以扩大第三方面提供的方法的应用范围。
结合第三方面,在一些实施例中,不同的应用程序可以对应有不同的通知场景。这样可以根据应用程序的不同个性化定制通知场景。
结合第三方面,在一些实施例中,第一消息包括广播包。也就是说,第二设备通过扫描广播包来接收到第一消息。在一些实施例中,该广播包包括广播数据部分,该广播数据部分包含第一域和第二域,该第一域用于携带该第一应用程序的标识,该第二域用于携带该第一场景的标识。
结合第三方面,在一些实施例中,该第二设备根据该第一消息确定该第一应用程序和该第一场景之前,该第二设备还可以检测到第二操作,并响应于该第二操作开启短距离通知功能;该短距离通知功能用于该第二设备根据该第一消息确定该第一应用程序和该第一场景。本申请实施例对第二操作的实现形式不做限制。
结合第三方面,在一些实施例中,第二设备输出的提示信息可包括以下任意一项或多项:在显示屏上显示的界面元素、音频模块播放的音频、马达生成的震动提示或闪光灯的闪烁提示。
结合第三方面,在一些实施例中,第二设备接收到一个短距消息后,若在预设时间段内内再次接收到和该短距消息指示同一通知场景的其他短距消息,则不再根据该其他短距消息输出提示信息。具体的,该第二设备还可以在接收到该第一消息的预设时间段内使用该短距离无线通信技术接收到第二消息,该第二消息携带有该第一应用程序的标识和该第一场景的标识;第二设备根据该第二消息确定该第一应用程序和该第一场景。在这种情况下,该第二设备输出的该提示信息具体用于指示该第一应用程序和一次该第一场景。这里,第二消息可以是第一设备发送的,也可以是其他设备发送的,本申请实施例对此不做限制。这样,可以减少第二设备输出相同提示信息的频率,可以加简洁方便地提示用户,对用户 来说体验更佳。
结合第三方面,在一些实施例中,第二设备可以周期性地输出提示信息。下面列举两种可能的实现方式。
在一种实现方式中,第二设备可以统计第一预设周期内接收到的其他电子设备基于第一应用程序发送的指示某个通知场景的短距消息,并每隔第一预设周期输出一次提示信息,该提示信息用于指示第一应用程序以及在该第一预设周期内统计的短距消息所指示的通知场景。具体的,第二设备输出提示信息之前,还可以使用该短距离无线通信技术接收到第三消息;该第三消息携带有该第一应用程序的标识和该第一场景的标识,该第一消息和该第三消息由该第二设备在第一预设周期内接收到;该第二设备根据该第三消息确定该第一应用程序和该第一场景。在这种情况下,该第二设备输出的该提示信息具体用于指示该第一应用程序和两次该第一场景。这样可以减少第二设备输出相同提示信息的频率,可以更加简洁方便地提示用户,对用户来说体验更佳。
在另一种实现方式中,该第二设备输出提示信息之前,还可以使用该短距离无线通信技术接收到第四消息;该第四消息携带有该第一应用程序的标识和该第二场景的标识;该第一消息和该第四消息由该第二设备在第二预设周期内接收到;该第二设备根据该第四消息确定该第一应用程序和该第二场景。在这种情况下,该第二设备输出的该提示信息还用于指示该第二场景。这样可以将多个提示信息整合到一起,可以减少第二设备输出提示信息的频率,可以更加简洁方便地提示用户,对用户来说体验更佳。
第四方面,本申请实施例提供了一种电子设备,该电子设备包括:显示屏、存储器、一个或多个处理器;显示屏、存储器与一个或多个处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,一个或多个处理器调用计算机指令以使得电子设备执行如第二方面或第二方面的任意一种可能的实现方式所述的方法。
第五方面,本申请实施例提供了一种电子设备,该电子设备包括:显示屏、存储器、一个或多个处理器;显示屏、存储器与一个或多个处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,一个或多个处理器调用计算机指令以使得电子设备执行如第三方面或第三方面的任意一种可能的实现方式所述的方法。
第六方面,本申请实施例提供了一种通信系统,该通信系统包括第一设备和第二设备;所述第一设备和所述第二设备均安装有第一应用程序;该第一设备可以为第四方面所述的电子设备,该第二设备可以为第五方面所述的电子设备。
第七方面,本申请实施例提供了一种包含指令的计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如第二方面或第二方面的任意一种可能的实现方式所述的方法。
第八方面,本申请实施例提供了一种计算机可读存储介质,包括指令,当所述指令在电子设备上运行时,使得所述电子设备执行如第二方面或第二方面的任意一种可能的实现方式所述的方法。
第九方面,本申请实施例提供了一种包含指令的计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如第三方面或第三方面的任意一种可能的实现方式所述的方法。
第十方面,本申请实施例提供了一种计算机可读存储介质,包括指令,当所述指令在电子设备上运行时,使得所述电子设备执行如第三方面或第三方面的任意一种可能的实现方式所述的方法。
实施本申请实施例提供的技术方案,可以不依赖于互联网,仅通过短距离无线通信技术即可完成短距消息的传输。该方法直接在电子设备之间进行,无需额外配置服务器,减少了短距离通知的成本。此外,电子设备之间传输的短距消息中仅携带了应用程序的标识和通知场景的标识,可以避免用户的个人位置信息、个人账号等隐私数据的泄漏。
附图说明
图1为现有技术中短距离通知的场景示意图;
图2为本申请实施例提供的通信系统;
图3A为本申请实施例提供的电子设备的硬件结构示意图;
图3B为本申请实施例提供的电子设备的软件架构示意图;
图4为本申请实施例提供的基于应用程序的短距离通知方法的流程示意图;
图5A和图5B为本申请实施例提供的在电子设备100上实现的一组用户界面;
图6A和图6B为本申请实施例提供的短距消息的格式示意图;
图7A和图7B为本申请实施例提供的在电子设备200上实现的一组用户界面;
图8为本申请实施例提供的电子设备100和电子设备200之间的内部模块交互图。
具体实施方式
下面将结合附图对本申请实施例中的技术方案进行清除、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请以下实施例中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在电子设备上经过解析,渲染,最终呈现为用户可以识别的内容。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的文本、图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。
参考图1,图1示例性示出了目前的一种基于应用程序来传输通知消息的场景。
如图1所示,电子设备1和电子设备2均安装有同一款APP,服务器为该APP提供各类服务。服务器的数量可以为一个或多个。电子设备1基于该APP向附近的电子设备2发送通知消息的过程包括如下步骤:
1.电子设备1和电子设备2在运行该APP时各自上报位置信息给服务器。
2.电子设备1基于该APP向服务发送通知消息的请求,该通知消息的具体内容例如可以是电子设备1在该APP内购买了某项服务、电子设备1使用了该APP提供的某项服务等等。
3.服务器接收到该通知消息的请求,并根据各电子设备上报的位置信息确定电子设备1附近且安装有该APP的电子设备包括电子设备2。
4.服务器响应该通知消息的请求,将该通知消息发送给电子设备2。
5.电子设备2接收到该通知消息。
在图1所示的传输通知消息的方式中,电子设备和服务器之间的通信依赖于蜂窝网络、WiFi网络等互联网,灵活性差。该方式需要电子设备将位置信息上报到服务器,存在泄漏用户隐私的风险。此外,每一款APP均需要配置对应的服务器才能完成通知消息的传输,成本高。
本申请以下实施例提供了基于应用程序的短距离通知方法、电子设备及系统。在该方法中,电子设备在运行应用程序的过程中,若识别到该应用程序对应的通知场景,则可以基于该应用程序并使用短距离无线通信技术向附近的其他电子设备发送短距消息。该短距消息携带有该应用程序的标识和电子设备识别到的通知场景的标识。附近的其他电子设备可以接收到该短距消息,其中安装有该应用程序的电子设备可以根据该短距消息确定该应用程序和通知场景,并输出提示信息,以通知用户该通知场景。这样即完成了电子设备之间的短距离通知。该方法不依赖于互联网,无需电子设备上报位置信息,能够使得电子设备更加灵活、方便且有效地发送/接收短距消息,且可以避免用户隐私的泄漏。
在本申请实施例中,一个应用程序可对应一个或多个通知场景,不同的应用程序对应于不同的通知场景。具体可参考后续方法实施例中进行详细的描述,在此暂不赘述。
在本申请以下实施例中,电子设备可以使用短距离无线通信技术以广播的形式向附近的其他电子设备发送短距消息。该短距离无线通信技术可包括但不限于:蓝牙(Bluetooth)、近场通信(near field communication,NFC)、无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,WiFi))、ZigBee或超宽带(ultra wideband,UWB)等等。
每一种短距离无线通信技术有对应的通信范围,该通信范围为电子设备使用该短距离无线通信技术发送信号时的信号覆盖范围。不同的短距离无线通信技术可以对应不同的通信范围。例如,蓝牙对应的通信范围可以是10米以内,NFC对应的通信范围可以是20厘米以内。在本申请以下实施例中,电子设备附近的其他电子设备是指,在该电子设备所使用的短距离无线通信技术所对应的通信范围内的其他电子设备。
首先,介绍本申请实施例提供的通信系统。
参考图2,图2示出了本申请实施例提供的通信系统10。如图2所示,通信系统10可 包括多个电子设备,例如电子设备100、电子设备200、电子设备300、电子设备400和电子设备500。
电子设备100-500均可以是搭载iOS、Android、Microsoft或者其它操作系统的便携式终端设备,例如手机、平板电脑、可穿戴设备等,还可以是具有触敏表面或触控面板的膝上型计算机(Laptop)、具有触敏表面或触控面板的台式计算机等非便携式终端设备。
电子设备100-500中均可以安装有多个APP,例如游戏类APP、上网服务类APP(例如天际通)、支付类APP(例如华为钱包)等等。其中,天际通是一款提供境外上网服务、预订酒店/机票、租车服务的应用程序。华为钱包是一款提供移动支付、快捷出行等服务的应用程序。
各个电子设备在运行APP时,可以生成短距消息并使用短距离无线通信技术发送该短距消息,即基于该APP发送短距消息。各个电子设备也可以解析接收到的其他电子设备基于该APP发送的短距消息。
以下实施例将以电子设备基于第一应用程序(图2中的APP1)生成、发送或接收短距消息为例进行说明。本申请实施例对该第一应用程序的类型不作限制。在以下实施例中,假设电子设备100、电子设备200、电子设备300和电子设备500均安装有该第一应用程序。假设电子设备100为短距消息的发送端,电子设备200-400在电子设备100所使用的短距离无线通信技术所对应的通信范围内。电子设备100、电子设备200、电子设备400均开启了第一应用程序的“短距离通知功能”。这里,各个电子设备开启第一应用程序的“短距离通知功能”的方式、“短距离通知功能”的具体含义可参考后续方法实施例的相关描述,在此暂不赘述。
电子设备100-500中均具有蓝牙(BT)模块、NFC模块、WLAN模块、ZigBee模块中的一项或多项。
电子设备100可以在识别到通知场景时,使用短距离无线通信技术以广播的形式向附近的其他电子设备发送短距消息。具体的,电子设备100可以通过蓝牙(BT)模块、NFC模块、WLAN模块、ZigBee模块的一项或多项发送短距消息。
由于电子设备200、电子设备300和电子设备400位于电子设备100所使用的短距离无线通信技术所对应的通信范围内,电子设备200、电子设备300和电子设备400均可以通过蓝牙(BT)模块、NFC模块、WLAN模块、ZigBee模块的一项或多项扫描到电子设备100发送的短距消息。
电子设备200、电子设备300和电子设备400扫描到电子设备100基于第一应用程序发送的短距消息之后,同样安装有第一应用程序的电子设备200和电子设备300可以解析该短距消息。解析该短距消息之后,开启了第一应用程序的“短距离通知功能”的电子设备200可以输出提示信息以通知用户。可见,本申请实施例提供的短距离通知在位于短距离无线通信技术的通信范围内、安装有同一款应用程序且均开启了该应用程序的“短距离通知功能”的电子设备之间进行。
参考图3A,图3A示出了本申请实施例提供的电子设备的结构示意图。该电子设备可以为图2所示通信系统10中的任意一个电子设备。
如图3A所示,电子设备可以包括:处理器110,外部存储器接口120,内部存储器121, 通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备的具体限定。在本申请另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后, 被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备上的包括WLAN(如Wi-Fi),BT,全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),NFC,ZigBee,UWB,红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
其中,蓝牙(BT)模块可以提供包括经典蓝牙(蓝牙2.1)或蓝牙低功耗(Bluetooth low energy,BLE)中一项或多项蓝牙通信的解决方案。WLAN模块可以提供WiFi通信的解决方案。
在一些实施例中,电子设备的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,ZigBee,UWB,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
在一些实施例中,当图3A所示的电子设备为发送短距消息的一端(例如电子设备100)时,处理器110可用于在运行第一应用程序的过程中,在识别到通知场景时,生成短距消息。该短距消息的具体内容及结构可参考后续实施例的详细描述,在此暂不赘述。无线通信模块160中包括的蓝牙(BT)模块、NFC模块、WLAN模块、ZigBee模块可以广播的形式发送该短距消息。
在另一些实施例中,当图3A所示的电子设备位于电子设备100所使用的短距离无线通信技术的通信范围内时(例如该电子设备为图2所示通信系统10中的电子设备200、电子设备300或电子设备400时),该电子设备的无线通信模块160中包括的蓝牙(BT)模块、NFC模块、WLAN模块、ZigBee模块可以扫描到电子设备100发送的短距消息。进一步地,若图3A所示的电子设备安装了第一应用程序(例如该电子设备为图2所示通信系统中的电子设备200和电子设备300),则该电子设备的处理器110还可用于解析扫描到的短距消息,确定该短距消息是基于哪一款应用程序发送的以及该短距消息的具体内容。更进一步地,若该电子设备中开启了第一应用程序的“短距离通知功能”(例如该电子设备为 图2所示通信系统中的电子设备200),则该电子设备的处理器110可以根据解析后的短距消息的具体内容,生成提示信息,并指示相关器件输出该提示信息。该提示信息的具体实现可参考后续方法实施例的详细描述。
电子设备通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备可以包括1个或N个显示屏194,N为大于1的正整数。
在本申请一些实施例中,显示屏194可用于显示电子设备接收到短距消息并解析该短距消息后输出的提示信息。显示屏194显示提示信息的方式具体可参考后续方法实施例中的相关描述,在此暂不赘述。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。
电子设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备根据压力传感器180A检测所述触摸操作强度。电子设备也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备的表面,与显示屏194所处的位置不同。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
电子设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。
图3B是本申请实施例的电子设备的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将电子设备的软件系统分为四层,从上至下分别为应用程序层、短距离通知能力层、操作系统(operating system,OS)层和硬件层。
应用程序层可以包括一系列应用程序包。如图3B所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息,游戏类应用程序包,上网服务类应用程序包(例如天际通),支付类应用程序包(例如华为钱包)等应用程序。在一个具体的实施例中,电子设备100、电子设备200和电子设备300中包括第一应用程序包。
在本申请实施例中,应用程序包描述或预定义了电子设备在运行对应的应用程序时的通知场景以及该通知场景对应的标识。在一些实施例中,电子设备可以根据从网络中获取到的资源更新该应用程序包,并且可以更新通知场景以及该通知场景对应的标识。也就是说,本申请实施例中电子设备在运行某个应用程序时,在不同的时间段对应的通知场景以及该通知场景对应的标识可能不同。这里,通知场景以及该通知场景对应的标识的具体实现,可参考后续实施例的详细描述,这里暂不赘述。
OS层包括操作系统及驱动。OS层为短距离通知能力层使用硬件层的各个硬件提供接口。
硬件层提供电子设备的底层硬件能力,可包括蓝牙(BT)模块、NFC模块、WLAN模块、ZigBee模块中的一项或多项。
短距离通知能力层用于提供电子设备的短距离通知功能。短距离通知能力层面向安装的全部应用程序提供短距离通知和感知服务。具体的,短距离通知能力层可包括APP使能状态管理模块、发送器和感知器。
其中,APP使能状态管理模块用于管理电子设备上安装的各个应用程序的短距离通知功能,例如记录各个应用程序的短距离通知功能的开启/关闭。
感知器用于和OS层以及硬件层配合,监听其他电子设备发送的短距消息。具体的,硬件层中的蓝牙(BT)模块、NFC模块、WLAN模块或ZigBee模块扫描到其他电子设备发送的短距消息之后,将该短距消息通过OS层的接口传递给感知器,由感知器解析该短距消息。
发送器用于和OS层以及硬件层配合,在识别到通知场景时发送短距消息。具体的,应用程序层中的第一应用程序识别到通知场景后,将识别到的该通知场景的标识发送给短距离通知能力层中的发送器,由发送器生成短距消息,并调用OS层的接口将生成的短距 消息发送给硬件层,由硬件层中的蓝牙(BT)模块、NFC模块、WLAN模块或ZigBee模块发送出去。
下面以图2所示通信系统10中的电子设备100和电子设备200之间进行的短距离通知为例,详细说明本申请实施例提供的基于应用程序的短距离通知方法。
参考图4,图4为该基于应用程序的短距离通知方法的流程示意图。在图4所示的方法中,电子设备100、电子设备200、和电子设备300均安装有该第一应用程序。电子设备200、电子设备300和电子设备400位于电子设备100的短距离无线通信的通信范围之内。电子设备100和电子设备200开启了第一应用程序的“短距离通知功能”。需要说明的是,因为图2所示通信系统中的电子设备500,位于短距离无线通信的通信范围之外,因此,在图4所示的方法中没有示出。在本申请实施例中,发送短距消息的电子设备100也可以被称为第一设备,接收并能够解析短距消息、且能够根据该短距消息输出提示信息的电子设备200也可以被称为第二设备。
如图4所示,该方法可包括如下步骤:
S110,电子设备100开启第一应用程序的“短距离通知功能”。
在本申请实施例中,各个电子设备均可以分别启动/关闭各个应用程序的“短距离通知功能”。在开启应用程序的“短距离通知功能”后,电子设备在运行该应用程序的过程中,若识别到通知场景,则可以基于该应用程序并使用短距离无线通信技术向附近的其他电子设备发送短距消息。此外,电子设备还可以接收到其他电子设备基于该应用程序发送的短距消息,并根据该短距消息输出提示信息。
可理解的,“短距离通知功能”只是本实施例中所使用的一个词语,其代表的含义在本实施例中已经记载,其名称并不能对本实施例构成任何限制。另外,在本申请其他一些实施例中,“短距离通知功能”也可以被称为例如“短距离通知功能”等其他名词。
第一应用程序为电子设备100安装的多个应用程序中的一个,该第一应用程序可以为游戏类APP、上网服务类APP(例如天际通)、支付类APP(例如华为钱包)或其他类型的APP,本申请实施例对此不作限制。
在一些实施例中,电子设备100可以响应于接收到的用户操作,开启第一应用程序的“短距离通知功能”。在本申请实施例中,电子设备100接收到的用于开启第一应用程序的“短距离通知功能”的用户操作,可以被称为第一操作。
示例性地,参考图5A,图5A示出了电子设备100在运行第一应用程序时所提供的用户界面51。用户界面51可以是电子设备100安装第一应用程序之后,首次运行第一应用程序时所提供的界面。该用户界面51可以是响应于用户点击主界面中该第一应用程序的图标而显示的界面。图5A中以第一应用程序为天际通为例。
如图5A所示,用户界面51可包括:天际通提供的主页面,以及悬浮显示在该主页面之上的窗口505。
其中,天际通提供的主页面包括:状态栏501、搜索框502、多个用于购买流量的控件503、导航栏504。状态栏501可包括:移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符、运营商名称(例如“中国移动”)、无线高保真(wireless fidelity,Wi-Fi) 信号的一个或多个信号强度指示符,电池状态指示符、时间指示符等等。搜索框502可用于用户搜索想要去的区域。控件503可用于监听用户操作,电子设备100可响应于该用户操作,打开购买该控件对应区域流量的界面。导航栏504可包括返回键、主屏幕键、多任务键等系统导航键。
窗口505悬浮显示于用户界面51的其余内容之上。窗口505用于用户开启/关闭第一应用程序的“短距离通知功能”。窗口505包括:提示文本505a、控件505b、控件505c。提示文本505a用于提示用户该窗口505的功能,例如可以为文本“是否允许接收/发送短距离通知?”。控件505b用于监听用户操作(例如点击操作),电子设备100可以响应于该用户操作关闭第一应用程序的“短距离通知功能”。控件505c用于监听用户操作(例如点击操作),电子设备100可以响应于该用户操作开启第一应用程序的“短距离通知功能”。
不限于图5A所示的电子设备100在首次运行第一应用程序时所提供的界面上接收到的用户操作(例如在控件505c上接收到的点击操作),电子设备100还可以响应于其他用户操作开启第一应用程序的“短距离通知功能”。例如,电子设备100还可以在第一应用程序的内部功能设置界面中提供用于开启/关闭第一应用程序的“短距离通知功能”的控件,用户可通过在该控件上输入用户操作(例如点击操作)来开启第一应用程序的“短距离通知功能”。又例如,电子设备100还可以显示设置(settings)应用提供的设置界面,该设置界面中可包括提供给用户的用于开启/关闭第一应用程序的“短距离通知功能”的控件,用户可通过在该控件上输入用户操作来开启第一应用程序的“短距离通知功能”。又例如,用户还可通过在实体按键上输入的操作、语音指令等等,来开启第一应用程序的“短距离通知功能”。
在其他一些实施例中,电子设备100还可以默认开启第一应用程序的“短距离通知功能”,无需用户操作。
S120,电子设备200开启第一应用程序的“短距离通知功能”。
电子设备200开启第一应用程序的“短距离通知功能”的具体实现,和电子设备100开启第一应用程序的“短距离通知功能”的具体实现相同,可参考步骤S110的详细描述,这里不再赘述。在本申请实施例中,电子设备200接收到的用于开启第一应用程序的“短距离通知功能”的用户操作,可以被称为第二操作。
S130,电子设备100运行第一应用程序,并在识别到该第一应用程序的通知场景时,使用短距离无线通信技术广播短距消息;该短距消息用于指示该第一应用程序以及该通知场景。
在本申请实施例中,不同的应用程序可对应有不同的通知场景。一个应用程序可以对应有一个或多个通知场景。每一种场景可对应有场景标识,该通知场景标识用于指示该通知场景。一款应用程序所对应的通知场景,以及每种场景对应的标识,可以由该应用程序的开发人员预先定义,并存储在该应用程序的安装包中。在一些实施例中,电子设备还可以根据从网络中获取到的资源更新该应用程序包,并且可以更新通知场景以及该通知场景对应的标识。本申请实施例对一款应用程序所对应的通知场景的数量不作限制,在一些实施例中该数量可以由开发人员自定义。
电子设备在安装一款应用程序之后,或者,电子设备在更新一款应用程序的版本之后, 即可获知该应用程序所对应的通知场景,以及每种场景对应的标识。安装有相同应用程序的电子设备均可以获知该应用程序所对应的通知场景,以及每种场景对应的标识。例如,电子设备100和电子设备200均可以获知第一应用程序所对应的通知场景,以及每种场景对应的标识。在以下实施例中,通知场景所对应的标识也可以被称为通道名(channel name)。
示例性地,参考表1,表1示例性示出了电子设备100中安装的几款应用程序分别对应的通知场景,以及每种场景对应的标识。其中,每一款应用程序也有对应的标识(APP ID),该标识用于指示该应用功能程序。
Figure PCTCN2021097358-appb-000001
表1
在本申请实施例中,电子设备100在运行第一应用程序的过程中,若识别到该第一应用程序对应的通知场景,则使用短距离无线通信技术广播短距消息。该第一应用程序可以运行在电子设备100的前台,也可以运行在后台。
示例性地,第一应用程序为天际通时,电子设备100可以在识别到用户通过天际通购买流浪套餐或者购买机票时,使用短距离无线通信技术广播短距消息。第一应用程序为华为钱包时,电子设备100可以在识别到用户通过华为钱包开通会员卡、抽奖或者获得支付满减时,使用短距离无线通信技术广播短距消息。第一应用程序为华为钱包时,电子设备100可以在启动游戏时,使用短距离无线通信技术广播短距消息。
具体的,电子设备100使用短距离无线通信技术以广播的形式发送短距消息。电子设备100所使用的短距离无线通信技术可包括但不限于:蓝牙(BT)、NFC、WiFi、ZigBee或UWB等等。该短距消息中携带有第一应用程序的标识,以及,电子设备100当前识别到的通知场景的标识。
也就是说,本申请实施例中短距消息的实现形式为电子设备100使用短距离无线通信技术发送的广播包或广播报文。在本申请实施例中,不更改原有的蓝牙广播包、NFC广播包、WiFi广播包、ZigBee广播包或UWB广播包的报文格式,仅对原有广播包中的广播数据(advertising data,AD)段/部分中的内容做更新。本申请实施例涉及的蓝牙广播包、NFC广播包、WiFi广播包、ZigBee广播包以及UWB广播包的报文的其余部分,如前导、接入地址、报头、长度、校验等部分,和现有技术中相同,这不不做详细描述。在本申请实施例中,该广播数据(AD)段/部分携带有第一应用程序的标识,以及,电子设备100识别到的通知场景的标识。
图6A示例性示出了本申请实施例提供的蓝牙广播包的报文结构。
如图6A所示,蓝牙广播报文包括以下几部分:前导(preamble)、接入地址(access address)、协议数据单元(protocol data unit,PDU)、循环冗余校验码(cyclic redundancy check, CRC)。PDU可包括以下几部分:广播报文类型、保留域、发送地址类型、接受地址类型、长度域、保留域、广播设备地址、广播数据(AD)。其中,广播报文类型的值可以为通用广播指示(ADV_IND),表示图6A所示的蓝牙广播报文为通用广播。
如图6A所示,广播数据(AD)部分包括第一域和第二域,第一域用于携带第一应用程序的标识(APP ID),第二域用于携带电子设备100识别到的通知场景的标识。在一些实施例中,该广播数据(AD)中还可包括电子设备100生成的随机数。电子设备100可以在不同时间生成不同的随机数,并在对应时间段发送的短距消息中携带该随机数。这样,电子设备100在扫描到自身发送的短距消息时,可以通过随机数确认该短距消息为自身发送的短距消息,不对该短距消息做处理。
如图6A所示,在一些实施例中,该广播数据(AD)中还可包括标签(tag),该标签可用于指示广播数据(AD)的结构。
可理解的,图6A所示的蓝牙广播包中广播数据(AD)的长度为31个字节(byte)。本申请实施例对该广播数据(AD)中各个部分所占用的长度不作具体限制。该广播数据(AD)中各个部分可以占用全部的31个字节,也可以仅占用31个字节中的部分字节,且其余字节用0补全。举例说明,在一个具体的例子中,广播数据(AD)中的标签(tag)、随机数、APP ID、通知场景的标识可分别占用6、8、16、1个字节。
示例性地,参考图5B,图5B示例性示出了用户在电子设备100上通过天际通购买流量套餐时,电子设备100所显示的用户界面52。该用户界面52可以是用户点击图5A所示用户界面51中的控件503后,在电子设备100所显示的用户界面中购买流量时的界面。
当用户通过电子设备100成功购买流量套餐(例如用户点击图5B所示的控件“确定支付”并成功付款)后,电子设备100识别到购买流量套餐的通知场景。之后,电子设备100可以使用短距离无线通信技术广播短距消息,该短距消息携带有“天际通”的标识“1”,以及,购买流量套餐这一通知场景的标识“Ch_1”。示例性地,参考图6B,其示出了电子设备100使用蓝牙发送短距消息时,电子设备100所发送的蓝牙广播包报文中的广播数据(AD)。如图6B所示,该广播数据(AD)中携带有:标签(tag)、随机数、“天际通”的标识“1”,以及,购买流量套餐这一通知场景的标识“Ch_1”。
在一些实施例中,电子设备100还可以在发送短距消息之前,通过安全加密算法对短距消息中的第一应用程序的标识,以及,电子设备100识别到的通知场景的标识进行加密,从而避免短距消息中第一应用程序的标识和通知场景的标识被暴露、恶意截取或篡改。本申请实施例对该安全加密算法不作限制,例如可以是对称加密算法中的高级加密标准(advanced encryption standard,AES)。
在本申请实施例中,电子设备100在运行第一应用程序时识别到的通知场景可以被称为第一场景。电子设备100在识别到通知场景后发送的短距消息可以被称为第一消息。
S140,电子设备200扫描或接收到电子设备100发送的短距消息。
具体的,各个电子设备均可以使用蓝牙(BT)模块、NFC模块、WLAN模块、ZigBee模块的一项或多项监听到其他设备发射的信号,如广播包等等。
在图2所示的通信系统中,电子设备200、电子设备300和电子设备400位于电子设备100所使用的短距离无线通信技术的通信范围内,因此,电子设备200、电子设备300 和电子设备400均可以通过蓝牙(BT)、NFC、WLAN、ZigBee或UWB中的一项或多项短距离无线通信技术来扫描或接收到电子设备100发送的短距消息。接收到短距消息之后,短距离无线通信模块可以将该短距消息传递给短距离通知能力层进行解析。
S150,电子设备200根据接收到的短距消息确定第一应用程序以及通知场景,并输出提示信息,该提示信息用于指示该第一应用程序和该通知场景。
在本申请实施例中,安装有第一应用程序的电子设备,存储有该第一应用程序所对应的通知场景,以及每种场景对应的标识。因此,安装有第一应用程序的电子设备才能根据预先存储的该第一应用程序所对应的通知场景,以及每种场景对应的标识,解析接收到的短距消息,确定该短距消息指示的第一应用程序以及通知场景。也就是说,安装有第一应用程序的电子设备200和电子设备300可以成功解析接收到的短距消息。
具体的,接收到短距消息的电子设备200、电子设备300和电子设备400均可以根据前文描述的蓝牙广播包、NFC广播包、WiFi广播包、ZigBee广播包以及UWB广播包的报文格式,获取短距消息中广播数据(AD)段/部分中携带的应用程序的标识以及通知场景的标识。之后,电子设备200和电子设备300均可以根据该应用程序的标识确定该短距消息是基于第一应用程序发送的,还可以根据通知场景的标识确定该短距消息所指示的通知场景。由于电子设备400并未安装第一应用程序,且未存储该第一应用程序所对应的通知场景以及每种场景对应的标识,电子设备400无法解析该短距消息中携带的应用程序的标识所指示的应用程序以及通知场景的标识所指示的通知场景。
在一个具体的例子中,若电子设备100发送了如图6B所示的短距消息,则电子设备200和电子设备300可以解析该短距消息,并根据该短距消息中的APP ID的值“1”获知该短距消息基于“天际通”发送,根据该短距消息中的通知场景的标识“Ch_1”获知对应的通知场景为购买流量套餐。
在解析短距消息之后,开启了第一应用程序的“短距离通知功能”的电子设备可以输出提示信息。也就是说,虽然电子设备200和电子设备300均可以解析接收到的短距消息,但是只有开启了第一应用程序的“短距离通知功能”的电子设备200会根据该短距消息输出提示信息,该提示信息用于提示该短距消息所指示的第一应用程序和通知场景。该提示信息可包括以下任意一项或多项的组合:在显示屏上显示的界面元素、音频模块播放的音频、马达生成的震动提示、闪光灯的闪烁提示等等。该提示信息的形式可以由用户自主设置,也可以由该第一应用程序的安装包预先定义。
在本申请的一些实施例中,电子设备200可以在运行第一应用程序的过程中输出提示信息,也可以在未运行第一应用程序时输出提示信息,本申请实施例对此不作限制。当电子设备200在运行第一应用程序的过程中输出提示信息时,该第一应用程序可以运行在电子设备200的前台,也可以运行在后台。
在一些实施例中,电子设备200可以在每次收到短距消息后,立即输出提示信息。这里,该提示信息可以显示于电子设备200接收并解析短距消息后当前所显示的用户界面之上。
示例性地,参考图7A及图7B,其各自示出了一种电子设备100接收并解析短距消息后,立即在显示屏上显示的提示信息。
图7A示出了电子设备200在运行第一应用程序的过程中接收并解析短距消息后所提供的用户界面71。如图7A所示,用户界面71可包括:天际通所提供的主页面,以及,提示窗口701。天际通所提供的主页面可参考前文实施例的相关描述,这里不再赘述。提示窗口701中包括文本701a,文本701a例如可以为“您附近有用户购买了流量套餐”。其中,显示于天际通主页面之上的文本701a为提示信息,文本701a所在的位置(即天际通主页面)用于指示第一应用程序(即天际通),文本701a的内容用于指示通知场景(即购买流量套餐)。在一些实施例中,提示窗口701中还可包括文本701b、控件701c和控件701d。文本701b例如可以问“是否前往购买流量套餐?”。控件701c可用于监听用户操作(例如点击操作),电子设备200可响应于该用户操作显示购买流量套餐的界面。控件701d可用于监听用户操作(例如点击操作),电子设备200可响应于该用户操作停止显示提示窗口701。这样可以充分利用通知场景的特性,提升用户在第一应用程序中的活跃度。
图7B示出了电子设备200解析并接收短距消息后所提供的用户界面72。该用户界面72可以是电子设备200在后台运行第一应用程序时提供的,也可以是电子设备200未运行第一应用程序时提供的,这里不作限制。如图7B所示,电子设备在显示主界面时,可以在主界面的顶部显示提示信息702,该提示信息702中可包括:第一应用程序(例如天际通)的图标和/或名称、文本“您附近有用户购买了流量套餐!”。其中,第一应用程序的图标和/或名称可用于指示第一应用程序,文本“您附近有用户购买了流量套餐!”用于指示通知场景。
不限于如图7A及图7B所示的用户界面,电子设备200还可以在其他用户界面显示提示信息。例如,电子设备100还可以在第一应用程序提供的其他界面上显示提示信息。
可理解的,图7A及图7B仅示例性示出了“天际通”中的“购买流量套餐”这一通知场景的提示方式,在电子设备100基于其他应用程序发送短距消息时,电子设备200输出提示信息的方式可以不同,本申请实施例对此不作限制。
在本申请的另一些实施例中,电子设备200可以视情况决定输出或不输出提示信息。具体的,电子设备200在接收到一个短距消息后,若在预设时间段内(例如10分钟或20分钟)内再次接收到和该短距消息指示同一通知场景的其他短距消息(包括电子设备100以及其他电子设备发送的短距消息),则不再根据该其他短距消息输出提示信息。这里,电子设备100在预设时间段内接收到的和该短距消息指示同一通知场景(例如第一场景)的其他短距消息也可以被称为第二消息。其中,预设时间段可以预先设置,本申请实施例不作限制。这样可以减少电子设备200输出相同提示信息的频率,可以加简洁方便地提示用户,对用户来说体验更佳。
在本申请的又一些实施例中,电子设备200可以周期性地输出提示信息。
在一种实施方式中,电子设备200还可以统计第一预设周期内接收到的其他电子设备(不限于电子设备100)基于第一应用程序发送的指示某个通知场景的短距消息,并每隔第一预设周期输出一次提示信息,该提示信息用于指示第一应用程序以及在该第一预设周期内统计的短距消息所指示的通知场景。这里,该某个通知场景可以被称为第一场景,电子设备200在第一预设周期内接收到的电子设备100发送的且指示第一场景的短距消息可以被称为第一消息,电子设备200在该第一预设周期内接收到的除电子设备100以外的其 他电子设备发送且指示第一场景的短距消息可以被称为第三消息。示例性地,电子设备200可以在显示屏上输出提示信息,该提示信息可以为文本“您附近有7位用户购买了流量套餐”。这样可以减少电子设备200输出相同提示信息的频率,可以更加简洁方便地提示用户,对用户来说体验更佳。
在另一种实施方式中,电子设备200可以统计第二预设周期内接收到的其他电子设备(不限于电子设备100)基于第一应用程序发送的全部短距消息,并每隔第二预设周期输出一次提示信息,该提示信息用于指示第一应用程序以及在该第二预设周期内接收到的全部短距消息分别所指示的通知场景。这里,电子设备200在第二预设周期内接收到的电子设备100发送的且指示第一场景的短距消息可以被称为第一消息,电子设备200在该第二预设周期内接收到的除电子设备100以外的其他电子设备发送的短距消息可以被称为第四消息。本申请实施不限制该除电子设备100以外的其他电子设备发送的短距消息所指示的通知场景。例如,电子设备200可以每20分钟或半小时统计在该第二预设周期内接收到的全部短距消息,并根据该全部短距消息来输出提示信息。示例性地,电子设备200可以在显示屏上输出提示信息,该提示信息可以为文本“您附近有7位用户购买了流量套餐,有2位用户购买了机票”。这样可以将多个提示信息整合到一起,可以减少电子设备200输出提示信息的频率,可以更加简洁方便地提示用户,对用户来说体验更佳。
结合图2以及图4实施例可知,电子设备100运行第一应用程序并识别到通知场景后,可以使用短距离无线通信技术发送短距消息之后,位于电子设备100所使用的短距离无线通信技术的通信范围内的电子设备200-400均可以接收到该短距消息。其中,安装有第一应用程序的电子设备200和电子设备300可以成功解析该短距消息,获知第一应用程序及电子设备100识别到的通知场景。之后,开启了“短距离通知功能”的电子设备200可以根据解析得到的第一应用程序和通知场景输出提示信息。
从上述图4实施例描述的基于应用程序的短距离通知方法可知,本申请实施例提供的该方法不依赖于互联网,仅通过短距离无线通信技术即可完成短距消息的传输。本申请实施例提供的该方法直接在电子设备之间进行,无需额外配置服务器,减少了短距离通知的成本。此外,电子设备之间传输的短距消息中仅携带了应用程序的标识和通知场景的标识,可以避免用户的个人位置信息、个人账号等隐私数据的泄漏。
此外,本申请实施例提供的方法支持各个应用功能程序的开发人员自定义需要短距离通知的场景,可以给用户更加灵活的短距离通知体验。并且,本申请实施例中电子设备的短距离通知能力层可针对所有有短距离通知需求的用户提供短距离通知和短距离通知感知服务,无需各个应用程序单独提供短距离通知和短距离通知感知服务,可以节省电子设备的功耗。
下面将结合电子设备的软件系统中的各个模块,详细描述在执行本申请实施例提供的基于应用程序的短距离通知方法的过程中,电子设备100和电子设备200的各个模块之间的协作过程。
参考图8,图8示出了在执行本申请实施例提供的基于应用程序的短距离通知方法的过程中,电子设备100和电子设备200的各个模块之间的交互过程。
1-6:电子设备100启用第一应用程序的“短距离通知功能”。
1,电子设备100的应用程序层中的第一应用程序指示短距离通知能力层开启该第一应用程序的“短距离通知功能”;短距离通知能力层根据第一应用程序的指示,开启第一应用程序的“短距离通知功能”。
具体的,第一应用程序可调用应用程序层和短距离通知能力层之间的接口,指示短距离通知能力层开启该第一应用功能程序的“短距离通知功能”。
在一些实施例中,短距离通知能力层中的APP使能状态管理模块可以存储第一应用程序的“短距离通知功能”的标识,该标识可用于指示第一应用程序的“短距离通知功能”的开启/关闭。例如,标识为数字“1”时可表示第一应用程序的“短距离通知功能”为开启状态,标识为数字“0”时可表示第一应用程序的“短距离通知功能”为关闭状态。
2,短距离通知能力层向应用程序层中的第一应用程序返回“短距离通知功能”的处理结果。
3,应用程序层中的第一应用程序注册到短距离通知能力层;在第一应用程序的“短距离通知功能”开启后,短距离通知能力层接受应用程序层中的第一应用程序的注册。
4,短距离通知能力层向应用程序层中的第一应用程序返回注册结果。
执行步骤1-4后,电子设备100可以启用第一应用程序的“短距离通知功能”,发送或接收短距消息。
5-8:电子设备200启用第一应用程序的“短距离通知功能”。
步骤5-8和步骤1-4类似,可参考相关描述。
9,电子设备100的应用程序层中的第一应用程序识别到通知场景,并将识别到的该通知场景的标识发送给短距离通知能力层,以通知短距离通知能力层当前识别到通知场景。
10,电子设备100的短距离通知能力层接收到第一应用程序识别到的通知场景的标识,并判断该第一应用程序的“短距离通知功能”是否开启;在确定该第一应用程序的“短距离通知功能”开启的情况下,短距离通知能力层生成短距消息。
具体的,电子设备100的短距离通知能力层中的APP使能状态管理模块可判断该第一应用程序的“短距离通知功能”是否开启,在确定开启后,发送器可用于生成短距消息。该短距消息的格式及内容可参考前文相关描述。
11,电子设备100的短距离通知能力层调用OS层以及硬件层的相关模块发送短距消息。
具体的,电子设备100的短距离通知能力层中的发送器可以调用OS层以及硬件层的相关模块发送短距消息,例如调用蓝牙(BT)模块、NFC模块、WLAN模块或ZigBee模块发送短距消息。
12,电子设备200的硬件层蓝牙(BT)模块、NFC模块、WLAN模块或ZigBee模块接收到电子设备100发送的短距消息,并将该短距消息通过OS层接口传递给短距离通知能力层。
13,电子设备200的短距离通知能力层解析接收到的短距消息,获取该短距消息中携带的应用程序的标识和通知场景的标识;并根据应用程序的标识确定第一应用程序。
具体的,电子设备200中的感知器可以解析接收到的短距消息,获取该短距消息中携 带的应用程序的标识和通知场景的标识。
14,电子设备200的短距离通知能力层判断该第一应用程序的“短距离通知功能”是否开启;在确定电子设备200中第一应用程序的“短距离通知功能”开启的情况下,短距离通知能力层将解析得到的通知场景的标识发送给应用程序层中的第一应用程序。
具体的,电子设备200的短距离通知能力层中的APP使能状态管理模块可判断该第一应用程序的“短距离通知功能”是否开启。
15,应用程序层中的第一应用程序接收到该通知场景的标识,并根据通知场景的标识确定对应的通知场景;之后,应用程序层中的第一应用程序调用相关模块输出提示信息。
这里,应用程序层中的第一应用程序调用相关模块输出提示信息的具体实现,可参考前文相关描述,这里不再赘述。
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk)等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (31)

  1. 一种基于应用程序的短距离通知方法,其特征在于,所述方法应用于通信系统,所述通信系统包括:第一设备和第二设备;所述第一设备和所述第二设备均安装有第一应用程序;所述方法包括:
    所述第一设备运行所述第一应用程序,并识别到第一场景;
    所述第一设备使用短距离无线通信技术发送第一消息,所述第一消息携带有所述第一应用程序的标识和所述第一场景的标识;
    所述第二设备使用所述短距离无线通信技术接收到所述第一消息,并根据所述第一消息确定所述第一应用程序和所述第一场景;
    所述第二设备输出提示信息,所述提示信息用于指示所述第一应用程序和所述第一场景。
  2. 根据权利要求1所述的方法,其特征在于,所述第一消息包括广播包。
  3. 根据权利要求2所述的方法,其特征在于,
    所述广播包包括广播数据部分,所述广播数据部分包含第一域和第二域,所述第一域用于携带所述第一应用程序的标识,所述第二域用于携带所述第一场景的标识。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一设备识别到第一场景之前,所述方法还包括:
    所述第一设备检测到第一操作,并响应于所述第一操作开启短距离通知功能;所述短距离通知功能用于所述第一设备识别所述第一场景并发送所述第一消息。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述第二设备根据所述第一消息确定所述第一应用程序和所述第一场景之前,所述方法还包括:
    所述第二设备检测到第二操作,并响应于所述第二操作开启短距离通知功能;所述短距离通知功能用于所述第二设备根据所述第一消息确定所述第一应用程序和所述第一场景。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,
    所述提示信息包括以下任意一项或多项:在显示屏上显示的界面元素、音频模块播放的音频、马达生成的震动提示或闪光灯的闪烁提示。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:
    所述第二设备在接收到所述第一消息的预设时间段内,还使用所述短距离无线通信技术接收到第二消息;所述第二消息携带有所述第一应用程序的标识和所述第一场景的标识;
    所述第二设备根据所述第二消息确定所述第一应用程序和所述第一场景;
    则所述第二设备输出的所述提示信息仅用于指示所述第一应用程序和一次所述第一场景。
  8. 根据权利要求1-6任一项所述的方法,其特征在于,所述第二设备输出提示信息之前,所述方法还包括:
    所述第二设备还使用所述短距离无线通信技术接收到第三消息;所述第三消息携带有所述第一应用程序的标识和所述第一场景的标识;所述第一消息和所述第三消息由所述第二设备在第一预设周期内接收到;
    所述第二设备根据所述第三消息确定所述第一应用程序和所述第一场景;
    则所述第二设备输出的所述提示信息具体用于指示所述第一应用程序和两次所述第一场景。
  9. 根据权利要求1-6任一项所述的方法,其特征在于,所述第二设备输出提示信息之前,所述方法还包括:
    所述第二设备还使用所述短距离无线通信技术接收到第四消息;所述第四消息携带有所述第一应用程序的标识和所述第二场景的标识;所述第一消息和所述第四消息由所述第二设备在第二预设周期内接收到;
    所述第二设备根据所述第四消息确定所述第一应用程序和所述第二场景;
    则所述第二设备输出的所述提示信息还用于指示所述第二场景。
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述第一场景是预先设置的,或者,所述第一场景是实时更新的。
  11. 一种基于应用程序的短距离通知方法,其特征在于,所述方法应用于第一设备,所述方法包括:
    所述第一设备运行第一应用程序,并识别到第一场景;
    所述第一设备使用短距离无线通信技术发送第一消息至第二设备,所述第一消息携带有所述第一应用程序的标识和所述第一场景的标识,用于所述第二设备根据所述第一消息输出提示信息指示所述第一应用程序和所述第一场景;
    其中,所述第一设备和所述第二设备均安装有所述第一应用程序。
  12. 根据权利要求11所述的方法,其特征在于,所述第一消息包括广播包。
  13. 根据权利要求12所述的方法,其特征在于,
    所述广播包包括广播数据部分,所述广播数据部分包含第一域和第二域,所述第一域用于携带所述第一应用程序的标识,所述第二域用于携带所述第一场景的标识。
  14. 根据权利要求11-13任一项所述的方法,其特征在于,所述第一设备识别到第一场景之前,所述方法还包括:
    所述第一设备检测到第一操作,并响应于所述第一操作开启短距离通知功能;所述短距离通知功能用于所述第一设备识别所述第一场景并发送所述第一消息。
  15. 根据权利要求11-14任一项所述的方法,其特征在于,所述第一场景是预先设置的,或者,所述第一场景是实时更新的。
  16. 一种基于应用程序的短距离通知方法,其特征在于,所述方法应用于第二设备,所述方法包括:
    所述第二设备使用短距离无线通信技术接收到第一设备发送的第一消息;所述第一消息携带有所述第一应用程序的标识和第一场景的标识;
    所述第二设备根据所述第一消息确定所述第一应用程序和所述第一场景;
    所述第二设备输出提示信息,所述提示信息用于指示所述第一应用程序和所述第一场景;
    其中,所述第一设备和所述第二设备均安装有第一应用程序。
  17. 根据权利要求16所述的方法,其特征在于,所述第一消息包括广播包。
  18. 根据权利要求17所述的方法,其特征在于,
    所述广播包包括广播数据部分,所述广播数据部分包含第一域和第二域,所述第一域用于携带所述第一应用程序的标识,所述第二域用于携带所述第一场景的标识。
  19. 根据权利要求16-18任一项所述的方法,其特征在于,所述第二设备根据所述第一消息确定所述第一应用程序和所述第一场景之前,所述方法还包括:
    所述第二设备检测到第二操作,并响应于所述第二操作开启短距离通知功能;所述短距离通知功能用于所述第二设备根据所述第一消息确定所述第一应用程序和所述第一场景。
  20. 根据权利要求16-19任一项所述的方法,其特征在于,
    所述提示信息包括以下任意一项或多项:在显示屏上显示的界面元素、音频模块播放的音频、马达生成的震动提示或闪光灯的闪烁提示。
  21. 根据权利要求16-20任一项所述的方法,其特征在于,所述方法还包括:
    所述第二设备在接收到所述第一消息的预设时间段内,还使用所述短距离无线通信技术接收到第二消息;所述第二消息携带有所述第一应用程序的标识和所述第一场景的标识;
    所述第二设备根据所述第二消息确定所述第一应用程序和所述第一场景;
    则所述提示信息仅用于指示所述第一应用程序和一次所述第一场景。
  22. 根据权利要求16-20任一项所述的方法,其特征在于,所述第二设备输出提示信息之前,所述方法还包括:
    所述第二设备还使用所述短距离无线通信技术接收到第三消息;所述第三消息携带有所述第一应用程序的标识和所述第一场景的标识;所述第一消息和所述第三消息由所述第二设备在第一预设周期内接收到;
    所述第二设备根据所述第三消息确定所述第一应用程序和所述第一场景;
    则所述提示信息具体用于指示所述第一应用程序和两次所述第一场景。
  23. 根据权利要求16-20任一项所述的方法,其特征在于,所述第二设备输出提示信息之前,所述方法还包括:
    所述第二设备还使用所述短距离无线通信技术接收到第四消息;所述第四消息携带有所述第一应用程序的标识和所述第二场景的标识;所述第一消息和所述第四消息由所述第二设备在第二预设周期内接收到;
    所述第二设备根据所述第四消息确定所述第一应用程序和所述第二场景;
    则所述提示信息还用于指示所述第二场景。
  24. 根据权利要求16-23任一项所述的方法,其特征在于,所述第一场景是预先设置的,或者,所述第一场景是实时更新的。
  25. 一种电子设备,其特征在于,所述电子设备包括:显示屏、存储器、一个或多个处理器;所述显示屏、所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行如权利要求11-15任一项所述的方法。
  26. 一种电子设备,其特征在于,所述电子设备包括:显示屏、存储器、一个或多个处理器;所述显示屏、所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行如权利要求16-24任一项所述的方法。
  27. 一种通信系统,其特征在于,所述通信系统包括第一设备和第二设备;所述第一设备和所述第二设备均安装有第一应用程序;所述第一设备为权利要求25所述的电子设备,所述第二设备为权利要求26所述的电子设备。
  28. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求11-15任一项所述的方法。
  29. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求11-15任一项所述的方法。
  30. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求16-24任一项所述的方法。
  31. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求16-24任一项所述的方法。
PCT/CN2021/097358 2020-06-10 2021-05-31 基于应用程序的短距离通知方法、电子设备及系统 WO2021249231A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
BR112022025196A BR112022025196A2 (pt) 2020-06-10 2021-05-31 Método de notificação de curto alcance baseado em aplicação, dispositivo eletrônico, e sistema
US18/001,030 US20230269567A1 (en) 2020-06-10 2021-05-31 Application-based short-range notification method, electronic device, and system
EP21821808.9A EP4149126A4 (en) 2020-06-10 2021-05-31 APPLICATION-BASED SHORT-RANGE NOTIFICATION METHOD, ELECTRONIC DEVICE AND SYSTEM

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010522551.X 2020-06-10
CN202010522551.XA CN113784297A (zh) 2020-06-10 2020-06-10 基于应用程序的短距离通知方法、电子设备及系统

Publications (2)

Publication Number Publication Date
WO2021249231A1 true WO2021249231A1 (zh) 2021-12-16
WO2021249231A9 WO2021249231A9 (zh) 2022-12-01

Family

ID=74304557

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/097358 WO2021249231A1 (zh) 2020-06-10 2021-05-31 基于应用程序的短距离通知方法、电子设备及系统

Country Status (5)

Country Link
US (1) US20230269567A1 (zh)
EP (1) EP4149126A4 (zh)
CN (2) CN112333644B (zh)
BR (1) BR112022025196A2 (zh)
WO (1) WO2021249231A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333644B (zh) * 2020-06-10 2021-08-20 华为技术有限公司 基于应用程序的短距离通知方法、电子设备及系统
CN113014637B (zh) * 2021-02-22 2023-09-19 中国银联股份有限公司 信息显示方法和信息推送方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735524A (zh) * 2015-03-31 2015-06-24 上海华勤通讯技术有限公司 移动终端的数据分享方法及数据分享系统
CN104980883A (zh) * 2015-05-29 2015-10-14 努比亚技术有限公司 近场信息发送方法及系统
CN106385662A (zh) * 2016-08-31 2017-02-08 青岛歌尔声学科技有限公司 运动数据交互方法及设备
US10164776B1 (en) * 2013-03-14 2018-12-25 goTenna Inc. System and method for private and point-to-point communication between computing devices
CN110753312A (zh) * 2019-10-25 2020-02-04 深圳传音控股股份有限公司 数据的分享方法、装置、系统及计算机可读存储介质
CN112333644A (zh) * 2020-06-10 2021-02-05 华为技术有限公司 基于应用程序的短距离通知方法、电子设备及系统

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6628938B1 (en) * 2000-08-14 2003-09-30 Koninklijke Philips Electronics N.V. Wireless system, a method of selecting an application while receiving application specific messages and user location method using user location awareness
CN102981761A (zh) * 2012-11-13 2013-03-20 广义天下文化传播(北京)有限公司 用于移动终端应用程序的触发式交互方法
TWI640941B (zh) * 2015-11-18 2018-11-11 立創智能股份有限公司 藍芽廣告與訊息推播系統
CN106856488B (zh) * 2015-12-08 2020-03-31 阿里巴巴集团控股有限公司 一种场景感知及提供服务的方法及装置
CN107968995B (zh) * 2017-11-29 2019-11-29 北京地平线机器人技术研发有限公司 短距离通信设备分享请求和控制方法、电子设备及存储介质
JP6935322B2 (ja) * 2017-12-21 2021-09-15 株式会社クボタ 作業機の通信装置、携帯端末、作業機の通信システム及び作業機の通信処理方法
CN108111999B (zh) * 2017-12-28 2020-02-28 北京地平线机器人技术研发有限公司 设备分享请求和控制方法及电子设备、存储介质
CN110167168B (zh) * 2018-02-14 2022-05-24 华为技术有限公司 传输探测参考信号的方法和装置
CN110365721A (zh) * 2018-03-26 2019-10-22 华为技术有限公司 一种基于用户场景感知触发服务的方法、终端设备及系统
CN110381160B (zh) * 2019-07-26 2021-11-19 广州华多网络科技有限公司 通信信息交互方法、装置、存储介质及计算机设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10164776B1 (en) * 2013-03-14 2018-12-25 goTenna Inc. System and method for private and point-to-point communication between computing devices
CN104735524A (zh) * 2015-03-31 2015-06-24 上海华勤通讯技术有限公司 移动终端的数据分享方法及数据分享系统
CN104980883A (zh) * 2015-05-29 2015-10-14 努比亚技术有限公司 近场信息发送方法及系统
CN106385662A (zh) * 2016-08-31 2017-02-08 青岛歌尔声学科技有限公司 运动数据交互方法及设备
CN110753312A (zh) * 2019-10-25 2020-02-04 深圳传音控股股份有限公司 数据的分享方法、装置、系统及计算机可读存储介质
CN112333644A (zh) * 2020-06-10 2021-02-05 华为技术有限公司 基于应用程序的短距离通知方法、电子设备及系统

Also Published As

Publication number Publication date
BR112022025196A2 (pt) 2022-12-27
EP4149126A1 (en) 2023-03-15
WO2021249231A9 (zh) 2022-12-01
EP4149126A4 (en) 2023-11-08
US20230269567A1 (en) 2023-08-24
CN112333644B (zh) 2021-08-20
CN113784297A (zh) 2021-12-10
CN112333644A (zh) 2021-02-05

Similar Documents

Publication Publication Date Title
WO2021023220A1 (zh) 一种内容接续方法、系统及电子设备
CN111404802A (zh) 通知处理系统、方法以及电子设备
US20220232466A1 (en) Method for Accessing Wireless Local Area Network and Terminal
US10075896B2 (en) Service providing method using a beacon and electronic apparatus thereof
US9832607B2 (en) Method of processing beacon of electronic device and electronic device thereof
EP3062477B1 (en) Electronic device employing level-based transmission of configuration information
US10009838B2 (en) Access point connection method and electronic device thereof
WO2021249231A1 (zh) 基于应用程序的短距离通知方法、电子设备及系统
WO2021017894A1 (zh) 一种使用远程sim模块的方法及电子设备
CN108605373B (zh) 用于提供网络共享服务的方法和电子装置
CN111277985A (zh) WiFi网络连接方法及设备
KR20160084777A (ko) 등록 설정 지원 방법 및 이를 지원하는 전자 장치
US9948732B2 (en) Method for providing status messaging service in electronic device and the electronic device thereof
CN111315035A (zh) WiFi网络连接方法及设备
EP4199474A1 (en) Method and system for acquiring download information of application, and server and storage medium
WO2020133006A1 (zh) 基于低功耗蓝牙的通信方法及相关装置
WO2022228190A1 (zh) 一种WiFi连接方法及装置
CN114884685B (zh) 电子设备的安全管理方法、电子设备及其可读介质
KR102227488B1 (ko) 통신 환경에 기반한 메시지 송신 방법 및 그 장치
CN117118819B (zh) 一种第三方应用的运行场景的定位方法和电子设备
US20230421636A1 (en) Application sharing method and sharing apparatus
CN117991934A (zh) 一种卡片使用方法及电子设备
CN117675743A (zh) 消息显示方法、装置、消息处理方法、服务器及系统
CN118101637A (zh) 设备协同方法及电子设备
WO2023048979A1 (en) Adjustment of radio frequency settings of near-field communication circuitry

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21821808

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021821808

Country of ref document: EP

Effective date: 20221208

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112022025196

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112022025196

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20221209

NENP Non-entry into the national phase

Ref country code: DE