CN109068303B - Resource sharing method and device and electronic equipment - Google Patents

Resource sharing method and device and electronic equipment Download PDF

Info

Publication number
CN109068303B
CN109068303B CN201810792089.8A CN201810792089A CN109068303B CN 109068303 B CN109068303 B CN 109068303B CN 201810792089 A CN201810792089 A CN 201810792089A CN 109068303 B CN109068303 B CN 109068303B
Authority
CN
China
Prior art keywords
terminal
identifier
broadcast data
dimensional code
dimension code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810792089.8A
Other languages
Chinese (zh)
Other versions
CN109068303A (en
Inventor
方刚
杨磊磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201810792089.8A priority Critical patent/CN109068303B/en
Priority to CN202210667671.8A priority patent/CN115243202B/en
Publication of CN109068303A publication Critical patent/CN109068303A/en
Application granted granted Critical
Publication of CN109068303B publication Critical patent/CN109068303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0025Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a resource sharing method, a resource sharing device and electronic equipment, wherein the method is applied to a first terminal, and comprises the following steps: acquiring broadcast data, wherein the broadcast data comprises a terminal identifier and a resource identifier; establishing connection with a second terminal corresponding to the terminal identification; and receiving the resource content corresponding to the resource identification.

Description

Resource sharing method and device and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a resource sharing method and apparatus, and an electronic device.
Background
With the rapid development of the two-dimensional code technology, a lot of information can be spread in the form of the two-dimensional code, for example, public number popularization, application program popularization, personal business cards, preferential activities, payment collection and the like can be spread in the form of the two-dimensional code.
Specifically, the two-dimensional code may store various information, mainly including: web address, business card, text message and specific code. According to the application method of the information, the method can be divided into online application (such as web address and specific code) and offline application (such as text information and business card information).
In the offline application scenario of the two-dimensional code, if a plurality of users are gathered together to scan one or more two-dimensional codes, the users waiting to scan the two-dimensional code in line often need to wait for a period of time to scan the two-dimensional code to be scanned due to the fact that the users are too far away from the two-dimensional code, which brings inconvenience to most of the users waiting in line.
Therefore, a solution is urgently needed to deal with the above-mentioned scenario in which multiple persons scan the two-dimensional code simultaneously.
Disclosure of Invention
The embodiment of the application provides a resource sharing method and device and electronic equipment, and aims to solve the problem that in the prior art, a solution for a scene in which a plurality of people scan two-dimensional codes simultaneously is not optimized.
In order to solve the above technical problem, the embodiments of the present application are implemented as follows:
in a first aspect, a resource sharing method is provided, where the method is applied to a first terminal, and the method includes:
acquiring broadcast data, wherein the broadcast data comprises a terminal identifier and a resource identifier;
establishing connection with a second terminal corresponding to the terminal identification;
and receiving the resource content corresponding to the resource identification.
In a second aspect, a resource sharing method is provided, where the method is applied to a second terminal, and the method includes:
sending broadcast data, wherein the broadcast data comprises a terminal identifier and a resource identifier of the second terminal;
receiving a connection request of a first terminal, and establishing connection with the first terminal;
and sending the resource content corresponding to the resource identifier to the first terminal.
In a third aspect, a resource sharing apparatus is provided, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring broadcast data which comprises a terminal identifier and a resource identifier;
the connection unit is used for establishing connection with a second terminal corresponding to the terminal identifier;
and the receiving unit is used for receiving the resource content corresponding to the resource identifier.
In a fourth aspect, a resource sharing apparatus is provided, including:
a first sending unit, configured to send broadcast data, where the broadcast data includes a terminal identifier and a resource identifier of the second terminal;
the receiving unit is used for receiving a connection request of a first terminal and establishing connection with the first terminal;
and the second sending unit is used for sending the resource content corresponding to the resource identifier to the first terminal.
In a fifth aspect, an electronic device is provided, which includes:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
acquiring broadcast data, wherein the broadcast data comprises a terminal identifier and a resource identifier;
establishing connection with a second terminal corresponding to the terminal identification;
and receiving the resource content corresponding to the resource identification.
In a sixth aspect, a computer-readable storage medium is presented, storing one or more programs, which when executed by an electronic device that includes a plurality of application programs, cause the electronic device to:
acquiring broadcast data, wherein the broadcast data comprises a terminal identifier and a resource identifier;
establishing connection with a second terminal corresponding to the terminal identifier;
and receiving the resource content corresponding to the resource identification.
In a seventh aspect, an electronic device is provided, which includes:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
sending broadcast data, wherein the broadcast data comprises a terminal identifier and a resource identifier of the second terminal;
receiving a connection request of a first terminal, and establishing connection with the first terminal;
and sending the resource content corresponding to the resource identifier to the first terminal.
In an eighth aspect, a computer-readable storage medium is presented, storing one or more programs, which when executed by an electronic device that includes a plurality of application programs, cause the electronic device to:
sending broadcast data, wherein the broadcast data comprises a terminal identifier and a resource identifier of the second terminal;
receiving a connection request of a first terminal, and establishing connection with the first terminal;
and sending the resource content corresponding to the resource identifier to the first terminal.
The embodiment of the application can at least achieve the following technical effects by adopting the technical scheme:
when a plurality of users need to acquire a certain resource at the same time, for example, scanning a two-dimensional code, because a first terminal can first acquire broadcast data, the broadcast data comprises a terminal identifier and a resource identifier, then a connection can be established with a second terminal corresponding to the terminal identifier, and finally, the resource content corresponding to the resource identifier can be received. Like this after a user in a plurality of users passes through terminal equipment and scans the two-dimensional code and acquires the two-dimensional code value that corresponds, alright in order to send broadcast data through this user's terminal equipment, including the terminal equipment's of this user terminal equipment and the sign of the two-dimensional code that scans in this broadcast data, other users alright in order to acquire this broadcast data, and establish the connection with the terminal equipment who sends broadcast data, in order to acquire the two-dimensional code value that corresponds with the sign of two-dimensional code, thereby avoided waiting in line to scan the two-dimensional code, provide very big facility for the user.
When a plurality of users need to acquire a certain resource at the same time, for example, scanning a two-dimensional code, since the second terminal can send broadcast data, the broadcast data includes a terminal identifier and a resource identifier of the second terminal, and then can receive a connection request of the first terminal, establish a connection with the first terminal, and finally can send resource content corresponding to the resource identifier to the first terminal. Like this after a user in a plurality of users passes through terminal equipment and scans the two-dimensional code and acquires the two-dimensional code value that corresponds, alright in order to send broadcast data through this user's terminal equipment, including the terminal equipment's of this user terminal equipment and the sign of the two-dimensional code that scans in this broadcast data, other users alright in order to acquire this broadcast data, and establish the connection with the terminal equipment who sends broadcast data, in order to acquire the two-dimensional code value that corresponds with the sign of two-dimensional code, thereby avoided waiting in line to scan the two-dimensional code, provide very big facility for the user.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flow chart illustrating an implementation of a resource sharing method according to an embodiment of the present disclosure;
fig. 2 is a schematic view of a process of applying a resource sharing method provided in an embodiment of the present disclosure to an actual scene;
fig. 3 is a schematic flow chart illustrating an implementation of another resource sharing method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a resource sharing device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another resource sharing device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another electronic device provided in an embodiment of the present specification.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
In order to solve the problem that a resource sharing method, a resource sharing device and an electronic device are not optimized enough for solving a problem that a scene in which a plurality of people scan a two-dimensional code simultaneously in the prior art, embodiments of the present specification provide a resource sharing method. An execution subject of the resource sharing method provided in the embodiments of the present disclosure may be, but is not limited to, a mobile phone, a tablet computer, a personal computer, and the like, which are capable of being configured to execute at least one of the user terminals of the method provided in the embodiments of the present disclosure, or the execution subject of the method may also be a client itself capable of executing the method.
For convenience of description, the following description will be made of an embodiment of the method taking as an example that an execution subject of the method is a terminal device capable of executing the method. It is understood that the implementation of the method by the terminal device is only an exemplary illustration, and should not be construed as a limitation of the method.
Specifically, an implementation flow diagram of a resource sharing method provided in one or more embodiments of the present specification is shown in fig. 1, where the method is applied to a first terminal, and includes:
step 110, acquiring broadcast data, wherein the broadcast data comprises a terminal identifier and a resource identifier;
taking a scene that a plurality of users scan the two-dimensional code together as an example, in order to avoid the problem that users far away from the two-dimensional code are difficult to scan the two-dimensional code, the embodiment of the invention utilizes the function that the bluetooth 4.0 or the version more than the bluetooth 4.0 can send broadcast data to the outside, so as to solve the problem. Optionally, the acquiring broadcast data includes: firstly, searching for terminal equipment for starting Bluetooth communication; then, if a second terminal of the broadcast resource is searched, broadcast data of the second terminal is obtained, and the broadcast data includes a terminal identifier and a resource identifier of the second terminal.
It should be understood that the first terminal should turn on the bluetooth communication function before acquiring the broadcast data, and scan nearby terminal devices (i.e., bluetooth devices) that turn on bluetooth communication, and when scanning nearby bluetooth devices, bluetooth devices within a preset range from the first terminal are displayed in the first terminal in a list. The list not only includes the terminal identifiers of the bluetooth devices, but also includes the resource identifiers broadcast by the bluetooth devices of the broadcast resources, and the user can acquire the terminal identifiers of the bluetooth devices of the broadcast resources and the resource identifiers broadcast by the bluetooth devices by looking up the search results.
Step 120, establishing connection with a second terminal corresponding to the terminal identifier;
it should be understood that, in order to obtain the resource content corresponding to the resource identifier included in the broadcast data of the second terminal, a connection may be established with the second terminal corresponding to the terminal identifier to obtain the resource content corresponding to the resource identifier. Optionally, the second terminal corresponding to the terminal identifier may first send a bluetooth connection request to the second terminal corresponding to the terminal identifier; then, a bluetooth connection is established with the second terminal. Wherein, after transmitting the bluetooth connection request to the second terminal, the second terminal may establish a bluetooth connection with the first terminal in response to the bluetooth connection request.
Step 130, receiving the resource content corresponding to the resource identification.
Optionally, the resource content corresponding to the resource identifier is received, specifically, the resource content corresponding to the resource identifier may be received through bluetooth communication. Taking the resource as the two-dimensional code as an example, the two-dimensional code value corresponding to the two-dimensional code identifier may be received.
The following describes the resource sharing method according to the embodiment of the present invention in detail by taking fig. 2 as an example. Such as
Fig. 2 is a schematic view of a process of applying the resource sharing method provided in the embodiment of the present invention to an actual scene, where the scene is a scene in which multiple people scan two-dimensional codes simultaneously, and includes a user a mobile phone and a user B mobile phone, where the user a mobile phone is a terminal device that scans two-dimensional codes in the scene, and the user B mobile phone is a terminal device that is far away from a two-dimensional code image and does not scan two-dimensional codes. That is to say, fig. 2 is a schematic view of a scene in which the mobile phone of the user a analyzes the scanned two-dimensional code to the mobile phone of the user B, and includes the following main steps:
step 211, the mobile phone of the user A opens a scanning application program and scans the two-dimensional code;
step 212, the user A mobile phone starts the Bluetooth and sends broadcast data to the outside, wherein the broadcast data comprises a terminal identifier and a two-dimension code identifier of the user A mobile phone;
step 213, the user B mobile phone starts the Bluetooth and searches nearby Bluetooth equipment;
step 214, the mobile phone of the user B searches the Bluetooth equipment for sending the broadcast data;
the mobile phone of the user B can check whether other terminal devices share the two-dimensional code or not by searching nearby Bluetooth devices, and can acquire the terminal identifier and the two-dimensional code identifier included in the broadcast data after the Bluetooth devices which send the broadcast data are searched.
Step 215, the user B mobile phone initiates a Bluetooth connection to the Bluetooth device sending the broadcast data;
the user B handset transmits a bluetooth connection request to a terminal device (i.e., bluetooth device) corresponding to the terminal identification contained in the broadcast data.
Step 216, the user a mobile phone receives the bluetooth connection request sent by the user B mobile phone, and responds to the bluetooth connection request to establish bluetooth connection with the user B mobile phone;
step 217, the user A mobile phone sends the two-dimension code value to the user B mobile phone;
step 218, receiving the two-dimension code value by the mobile phone of the user B;
in step 219, after the user B mobile phone obtains the two-dimensional code value, the user B mobile phone may disconnect the bluetooth connection with the user a mobile phone in order to improve information security.
When a plurality of users need to acquire a certain resource at the same time, for example, scanning a two-dimensional code, because a first terminal can first acquire broadcast data, the broadcast data comprises a terminal identifier and a resource identifier, then a connection can be established with a second terminal corresponding to the terminal identifier, and finally, the resource content corresponding to the resource identifier can be received. Like this after a user in a plurality of users passes through terminal equipment and scans the two-dimensional code and acquires the two-dimensional code value that corresponds, alright in order to send broadcast data through this user's terminal equipment, including the terminal equipment's of this user terminal equipment and the sign of the two-dimensional code that scans in this broadcast data, other users alright in order to acquire this broadcast data, and establish the connection with the terminal equipment who sends broadcast data, in order to acquire the two-dimensional code value that corresponds with the sign of two-dimensional code, thereby avoided waiting in line to scan the two-dimensional code, provide very big facility for the user.
Fig. 3 is a schematic implementation flow diagram of another resource sharing method according to an embodiment of the present disclosure. As shown in fig. 3, the method comprises the following main steps:
step 310, sending broadcast data, wherein the broadcast data comprises a terminal identifier and a resource identifier of a second terminal;
alternatively, the broadcast data may be transmitted, and specifically, the broadcast data may be transmitted through bluetooth communication. It should be understood that after the broadcast data is sent through bluetooth communication, after the bluetooth communication function is turned on by other terminal devices within a preset range from the second terminal, the broadcast data may be received, and the terminal identifier and the resource identifier of the second terminal included in the broadcast data may be obtained.
Step 320, receiving a connection request of a first terminal;
optionally, receiving a connection request of the first terminal, specifically, first, receiving a bluetooth connection request of the first terminal; then, a bluetooth connection is established with the first terminal in response to a bluetooth connection request of the first terminal.
Step 330, sending the resource content corresponding to the resource identifier to the first terminal.
The specific implementation of the relevant steps in the embodiment shown in fig. 3 may refer to the specific implementation of the corresponding steps in the embodiment shown in fig. 1, and one or more embodiments in this specification are not described herein again.
When a plurality of users need to acquire a certain resource at the same time, for example, scanning a two-dimensional code, since the second terminal can send broadcast data, the broadcast data includes a terminal identifier and a resource identifier of the second terminal, and then can receive a connection request of the first terminal, establish a connection with the first terminal, and finally can send resource content corresponding to the resource identifier to the first terminal. Like this after a user in a plurality of users passes through terminal equipment and scans the two-dimensional code and acquires the two-dimensional code value that corresponds, alright in order to send broadcast data through this user's terminal equipment, including the terminal equipment's of this user terminal equipment and the sign of the two-dimensional code that scans in this broadcast data, other users alright in order to acquire this broadcast data, and establish the connection with the terminal equipment who sends broadcast data, in order to acquire the two-dimensional code value that corresponds with the sign of two-dimensional code, thereby avoided waiting in line to scan the two-dimensional code, provide very big facility for the user.
Fig. 4 is a schematic structural diagram of a resource sharing apparatus 400 provided in the present specification. Referring to fig. 4, in a software implementation, a resource sharing apparatus 400 may include an obtaining unit 401 and a connecting unit 402, wherein:
an obtaining unit 401, configured to obtain broadcast data, where the broadcast data includes a terminal identifier and a resource identifier;
a connection unit 402, configured to establish a connection with a second terminal corresponding to the terminal identifier;
a receiving unit 403, receiving the resource content corresponding to the resource identifier.
Alternatively, in one embodiment, the obtaining unit 401,
searching for a terminal device starting Bluetooth communication;
and if a second terminal of the broadcast resource is searched, acquiring the broadcast data of the second terminal, wherein the broadcast data comprises a terminal identifier and a resource identifier of the second terminal.
Alternatively, in one embodiment, the connection unit 402,
sending a Bluetooth connection request to a second terminal corresponding to the terminal identifier;
and establishing Bluetooth connection with the second terminal.
Optionally, in an embodiment, the resource includes a two-dimensional code.
The resource sharing apparatus 400 can implement the method of the embodiment of the method shown in fig. 1 to fig. 2, and reference may be specifically made to the resource sharing method of the embodiment shown in fig. 1, which is not described again.
Fig. 5 is a schematic structural diagram of a resource sharing apparatus 500 provided in the present specification. Referring to fig. 5, in a software implementation, the resource sharing apparatus 500 may include a first sending unit 501, a receiving unit 502, and a second sending unit 503, wherein:
a first sending unit 501, configured to send broadcast data, where the broadcast data includes a terminal identifier and a resource identifier of the second terminal;
a receiving unit 502 that receives a connection request of a first terminal;
a second sending unit 503, sending the resource content corresponding to the resource identifier to the first terminal.
Optionally, in one embodiment, the first sending unit 501,
the broadcast data is transmitted through bluetooth communication.
Optionally, in an embodiment, the receiving unit 502 is configured to:
receiving a Bluetooth connection request of the first terminal;
and responding to the Bluetooth connection request of the first terminal, and establishing Bluetooth connection with the first terminal.
Optionally, in an embodiment, the resource includes a two-dimensional code.
The resource sharing apparatus 500 can implement the method of the embodiment of the method in fig. 3, and reference may be specifically made to the resource sharing method in the embodiment shown in fig. 3, which is not described again.
Fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present specification. Referring to fig. 6, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory to the memory and then runs the computer program to form the resource sharing device on the logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
acquiring broadcast data, wherein the broadcast data comprises a terminal identifier and a resource identifier;
establishing connection with a second terminal corresponding to the terminal identification;
and receiving the resource content corresponding to the resource identification.
The resource sharing method disclosed in the embodiment shown in fig. 1 of the present specification may be applied to a processor, or may be implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in one or more embodiments of the present specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with one or more embodiments of the present disclosure may be embodied directly in hardware, in a software module executed by a hardware decoding processor, or in a combination of the hardware and software modules executed by a hardware decoding processor. The software modules may be located in ram, flash, rom, prom, or eprom, registers, etc. as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method for determining resource sharing in fig. 1 to fig. 2, which is not described herein again.
Of course, besides the software implementation, the electronic device in the present specification does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present specification. Referring to fig. 7, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 7, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory to the memory and then runs the computer program to form the resource sharing device on the logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
sending broadcast data, wherein the broadcast data comprises a terminal identifier and a resource identifier of the second terminal;
receiving a connection request of a first terminal;
and sending the resource content corresponding to the resource identifier to the first terminal.
The resource sharing method disclosed in the embodiment of fig. 3 of the present specification can be applied to a processor, or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in one or more embodiments of the present specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with one or more embodiments of the present disclosure may be embodied directly in hardware, in a software module executed by a hardware decoding processor, or in a combination of the hardware and software modules executed by a hardware decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the resource sharing method of fig. 3, which is not described herein again.
Of course, besides the software implementation, the electronic device in this specification does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
In short, the above description is only a preferred embodiment of the present disclosure, and is not intended to limit the scope of the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of the present disclosure should be included in the scope of protection of one or more embodiments of the present disclosure.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the system embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.

Claims (12)

1. A resource sharing method is applied to a first terminal, and comprises the following steps:
acquiring broadcast data, wherein the broadcast data comprises a terminal identifier and a two-dimension code identifier, and the two-dimension code identifier is an identifier of a two-dimension code which is scanned by terminal equipment corresponding to the terminal identifier and is to be shared;
establishing connection with a second terminal corresponding to the terminal identification;
receiving a two-dimension code value corresponding to the two-dimension code identifier from the second terminal;
and after the two-dimension code value is acquired, disconnecting the connection with the second terminal.
2. The method of claim 1, acquiring broadcast data, comprising:
searching for a terminal device starting Bluetooth communication;
and if a second terminal broadcasting the two-dimension code is searched, acquiring broadcast data of the second terminal, wherein the broadcast data comprises a terminal identifier and a two-dimension code identifier of the second terminal.
3. The method according to claim 2, wherein the establishing of the connection with the second terminal corresponding to the terminal identifier comprises:
sending a Bluetooth connection request to a second terminal corresponding to the terminal identifier;
and establishing Bluetooth connection with the second terminal.
4. A resource sharing method is applied to a second terminal, and comprises the following steps:
sending broadcast data, wherein the broadcast data comprises a terminal identifier and a two-dimensional code identifier of the second terminal, and the two-dimensional code identifier is an identifier of a two-dimensional code which is scanned by the second terminal and is to be shared;
receiving a connection request of a first terminal;
sending a two-dimension code value corresponding to the two-dimension code identifier to the first terminal; wherein,
and after the first terminal acquires the two-dimension code value, disconnecting the first terminal from the second terminal.
5. The method of claim 4, transmitting broadcast data, comprising:
broadcast data is transmitted through bluetooth communication.
6. The method of claim 4, receiving a connection request of the first terminal, comprising:
receiving a Bluetooth connection request of the first terminal;
and responding to the Bluetooth connection request of the first terminal, and establishing Bluetooth connection with the first terminal.
7. A resource sharing apparatus, comprising:
the device comprises an acquisition unit, a sharing unit and a display unit, wherein the acquisition unit acquires broadcast data, the broadcast data comprises a terminal identifier and a two-dimensional code identifier, and the two-dimensional code identifier is an identifier of a two-dimensional code which is scanned by terminal equipment corresponding to the terminal identifier and is to be shared;
the connection unit is used for establishing connection with a second terminal corresponding to the terminal identifier;
the receiving unit is used for receiving the two-dimension code value corresponding to the two-dimension code identifier from the second terminal; wherein,
and the connection unit disconnects the connection with the second terminal after the receiving unit acquires the value of the two-dimensional code.
8. A resource sharing apparatus, comprising:
the first sending unit is used for sending broadcast data, wherein the broadcast data comprise a terminal identifier and a two-dimensional code identifier of a second terminal, and the two-dimensional code identifier is an identifier of a two-dimensional code which is scanned by the second terminal and is to be shared;
a receiving unit that receives a connection request of a first terminal;
the second sending unit is used for sending the two-dimension code value corresponding to the two-dimension code identifier to the first terminal; wherein,
and after the first terminal acquires the two-dimension code value, disconnecting the first terminal from the second terminal.
9. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
acquiring broadcast data, wherein the broadcast data comprises a terminal identifier and a two-dimensional code identifier, and the two-dimensional code identifier is an identifier of a two-dimensional code which is scanned by terminal equipment corresponding to the terminal identifier and is to be shared;
establishing connection with a second terminal corresponding to the terminal identification;
receiving a two-dimension code value corresponding to the two-dimension code identifier from the second terminal;
and after the two-dimension code value is acquired, disconnecting the connection with the second terminal.
10. A computer-readable storage medium storing one or more programs that, when executed by an electronic device including a plurality of application programs, cause the electronic device to:
acquiring broadcast data, wherein the broadcast data comprises a terminal identifier and a two-dimensional code identifier, and the two-dimensional code identifier is an identifier of a two-dimensional code which is scanned by terminal equipment corresponding to the terminal identifier and is to be shared;
establishing connection with a second terminal corresponding to the terminal identification;
receiving a two-dimension code value corresponding to the two-dimension code identifier from the second terminal;
and after the two-dimension code value is acquired, disconnecting the connection with the second terminal.
11. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
sending broadcast data, wherein the broadcast data comprises a terminal identifier and a two-dimensional code identifier of a second terminal, and the two-dimensional code identifier is an identifier of a two-dimensional code which is scanned by the second terminal and is to be shared;
receiving a connection request of a first terminal;
sending a two-dimension code value corresponding to the two-dimension code identifier to the first terminal; wherein,
and after the first terminal acquires the two-dimension code value, disconnecting the first terminal from the second terminal.
12. A computer-readable storage medium storing one or more programs that, when executed by an electronic device including a plurality of application programs, cause the electronic device to:
sending broadcast data, wherein the broadcast data comprises a terminal identifier and a two-dimensional code identifier of a second terminal, and the two-dimensional code identifier is an identifier of a two-dimensional code which is scanned by the second terminal and is to be shared;
receiving a connection request of a first terminal;
sending a two-dimension code value corresponding to the two-dimension code identifier to the first terminal; wherein,
and after the first terminal acquires the two-dimension code value, disconnecting the first terminal from the second terminal.
CN201810792089.8A 2018-07-18 2018-07-18 Resource sharing method and device and electronic equipment Active CN109068303B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810792089.8A CN109068303B (en) 2018-07-18 2018-07-18 Resource sharing method and device and electronic equipment
CN202210667671.8A CN115243202B (en) 2018-07-18 2018-07-18 Resource sharing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810792089.8A CN109068303B (en) 2018-07-18 2018-07-18 Resource sharing method and device and electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202210667671.8A Division CN115243202B (en) 2018-07-18 2018-07-18 Resource sharing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109068303A CN109068303A (en) 2018-12-21
CN109068303B true CN109068303B (en) 2022-07-05

Family

ID=64817325

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202210667671.8A Active CN115243202B (en) 2018-07-18 2018-07-18 Resource sharing method and device and electronic equipment
CN201810792089.8A Active CN109068303B (en) 2018-07-18 2018-07-18 Resource sharing method and device and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202210667671.8A Active CN115243202B (en) 2018-07-18 2018-07-18 Resource sharing method and device and electronic equipment

Country Status (1)

Country Link
CN (2) CN115243202B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110780963B (en) * 2019-10-16 2021-02-23 支付宝(杭州)信息技术有限公司 Content display method and device and electronic equipment
CN112767047A (en) * 2021-01-27 2021-05-07 上海淇玥信息技术有限公司 Business process guiding method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095895A (en) * 2011-11-01 2013-05-08 中国电信股份有限公司 Method and client end for sending mobile phone electronic business cards
CN105376696A (en) * 2015-10-09 2016-03-02 惠州Tcl移动通信有限公司 Data transmission method and intelligent terminal
CN105790800A (en) * 2016-03-03 2016-07-20 上海智向信息科技有限公司 On-line information pushing method and system based on wearable device
CN107071711A (en) * 2017-04-12 2017-08-18 安徽华米信息科技有限公司 Multimedia sharing method, device and Bluetooth equipment
CN107426311A (en) * 2017-07-19 2017-12-01 上海慧流云计算科技有限公司 Information-pushing method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8879994B2 (en) * 2009-10-02 2014-11-04 Blackberry Limited Methods and devices for facilitating Bluetooth pairing using a camera as a barcode scanner
KR20140073065A (en) * 2012-12-06 2014-06-16 한국전자통신연구원 Method and apparatus for device to device multicast communication in cellular mobile systems
CN104618217B (en) * 2014-03-24 2018-09-04 腾讯科技(北京)有限公司 Share method, terminal, server and the system of resource
CN104219617B (en) * 2014-08-22 2016-01-20 腾讯科技(深圳)有限公司 Service acquisition method and device
US20170134486A1 (en) * 2015-11-10 2017-05-11 Le Holdings (Beijing) Co., Ltd. Method and device for information synchronization
CN107396347A (en) * 2016-05-16 2017-11-24 阿里巴巴集团控股有限公司 A kind of Intelligent worn device and method, system and the intelligent terminal of intelligent terminal pairing
CN108108773B (en) * 2016-11-24 2021-07-20 阿里巴巴集团控股有限公司 Data processing method and device
CN107392586B (en) * 2017-06-16 2024-05-17 深圳市一敏商用设备有限公司 Two-dimensional code payment system and method based on proximity relation detection
CN107766738A (en) * 2017-09-12 2018-03-06 阿里巴巴集团控股有限公司 A kind of binding method of smart machine, device and system, communication system
CN107734460B (en) * 2017-09-20 2021-05-07 广州市盈泽信息科技有限公司 Method and terminal for realizing intelligent unlocking of Bluetooth lock based on mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095895A (en) * 2011-11-01 2013-05-08 中国电信股份有限公司 Method and client end for sending mobile phone electronic business cards
CN105376696A (en) * 2015-10-09 2016-03-02 惠州Tcl移动通信有限公司 Data transmission method and intelligent terminal
CN105790800A (en) * 2016-03-03 2016-07-20 上海智向信息科技有限公司 On-line information pushing method and system based on wearable device
CN107071711A (en) * 2017-04-12 2017-08-18 安徽华米信息科技有限公司 Multimedia sharing method, device and Bluetooth equipment
CN107426311A (en) * 2017-07-19 2017-12-01 上海慧流云计算科技有限公司 Information-pushing method and device

Also Published As

Publication number Publication date
CN115243202B (en) 2023-07-21
CN115243202A (en) 2022-10-25
CN109068303A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
US10219150B2 (en) Method, client terminal and server for establishing communication
CN109493073B (en) Identity recognition method and device based on human face and electronic equipment
EP2975821A1 (en) Network connection method and apparatus
CN109660594B (en) Directional pushing method, display method, device and equipment for business processing result
CN110764929B (en) Message interaction method, system and device and electronic equipment
EP3197213A1 (en) Network access method and mobile communication terminal
CN109298926B (en) Method and device for entering resource transfer party into resource transfer platform and electronic equipment
US20150269269A1 (en) Method and apparatus for generating a desktop shortcut
US11019008B2 (en) Method, public account server, and mobile terminal for sending and generating cards
CN105515887B (en) application testing method, server and system
CN109068303B (en) Resource sharing method and device and electronic equipment
CN110780963B (en) Content display method and device and electronic equipment
CN111614759B (en) Resource sharing method and device, electronic equipment and computer readable medium
CN112770151A (en) Method, device and storage medium for supporting multi-person interception of screen-projected playing picture
CN108280342B (en) Application synchronization method and device for application synchronization
CN103546551B (en) Application software smart download methods, devices and systems
CN105303120B (en) Short message reading method and device
CN113966603A (en) Method for sharing server, client and cloud platform
CN106777072B (en) Method, equipment and system for providing presentation information
CN111260445A (en) House resource information display method, device, terminal and storage medium
CN111400690A (en) Biological verification method and device
CN111478982B (en) Message processing method, device and system and electronic equipment
CN106302002B (en) Test method and device
CN107436900B (en) Information processing method and device based on search engine
CN112748968A (en) Auxiliary operation method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant