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

Resource sharing method and device and electronic equipment Download PDF

Info

Publication number
CN115243202B
CN115243202B CN202210667671.8A CN202210667671A CN115243202B CN 115243202 B CN115243202 B CN 115243202B CN 202210667671 A CN202210667671 A CN 202210667671A CN 115243202 B CN115243202 B CN 115243202B
Authority
CN
China
Prior art keywords
terminal
identifier
dimensional code
broadcast data
connection
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
CN202210667671.8A
Other languages
Chinese (zh)
Other versions
CN115243202A (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
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 CN202210667671.8A priority Critical patent/CN115243202B/en
Publication of CN115243202A publication Critical patent/CN115243202A/en
Application granted granted Critical
Publication of CN115243202B publication Critical patent/CN115243202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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

Abstract

The application discloses a resource sharing method, a 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 identifier; and receiving the resource content corresponding to the resource identifier.

Description

Resource sharing method and device and electronic equipment
This patent application is application number: 2018107920898, filing date: the invention discloses a division application of China patent application of a resource sharing method, a resource sharing device and electronic equipment, wherein the division application is 7 in 2018 and 18 in 7 months.
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for sharing resources, and an electronic device.
Background
With the rapid development of two-dimensional code technology, many information can be spread in the form of two-dimensional code, such as public number popularization, application program popularization, personal business card, preferential activity, receipts and payments, etc. can be spread in the form of two-dimensional code.
Specifically, the two-dimensional code may store various information, mainly including: web addresses, business cards, text messages, and specific codes. According to the application method of the information, the application method can be divided into online application (such as website 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 gather together to scan one or more two-dimensional codes, users waiting for scanning the two-dimensional code in a queue often need to wait for a period of time to scan the two-dimensional code to be scanned because the users are far away from the two-dimensional code, which brings inconvenience to most users waiting in a queue.
Therefore, a solution is urgently needed to cope with the above-mentioned scene in which a plurality of persons scan two-dimensional codes simultaneously.
Disclosure of Invention
The embodiment of the application provides a resource sharing method, a resource sharing device and electronic equipment, which are used for solving the problem that a solution for a scene of simultaneously scanning two-dimensional codes by multiple persons is not optimized in the prior art.
In order to solve the technical problems, the embodiment of the application is realized 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 identifier;
and receiving the resource content corresponding to the resource identifier.
In a second aspect, a resource sharing method is provided, where the method is applied to a second terminal, and the method includes:
transmitting 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 device is provided, including:
the acquisition unit acquires broadcast data, wherein the broadcast data comprises a terminal identifier and a resource identifier;
the connection unit establishes 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 device is provided, including:
a first transmitting unit, configured to transmit broadcast data, where the broadcast data includes a terminal identifier and a resource identifier of the second terminal;
the receiving unit receives a connection request of a first terminal and establishes 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, the 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 resource identifier;
establishing connection with a second terminal corresponding to the terminal identifier;
and receiving the resource content corresponding to the resource identifier.
In a sixth aspect, a computer-readable storage medium storing one or more programs that, when executed by an electronic device comprising 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 identifier.
In a seventh aspect, an electronic device is provided, the electronic device comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
transmitting 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 provided, the computer-readable storage medium storing one or more programs that, when executed by an electronic device that includes a plurality of application programs, cause the electronic device to:
transmitting 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 adopts the technical scheme at least to achieve the following technical effects:
when a plurality of users need to acquire a certain resource at the same time, for example, a two-dimensional code is scanned, because the first terminal can acquire broadcast data firstly, the broadcast data comprises a terminal identifier and a resource identifier, then connection can be established with a second terminal corresponding to the terminal identifier, and finally resource content corresponding to the resource identifier can be received. After one user of the plurality of users scans the two-dimension code through the terminal equipment and acquires the corresponding two-dimension code value, broadcast data can be sent through the terminal equipment of the user, the broadcast data comprises the terminal identification of the terminal equipment of the user and the identification of the scanned two-dimension code, other users can acquire the broadcast data and establish connection with the terminal equipment for sending the broadcast data so as to acquire the two-dimension code value corresponding to the identification of the two-dimension code, thereby avoiding waiting in line for scanning the two-dimension code and providing great convenience for the user.
When a plurality of users need to acquire a certain resource at the same time, for example, a two-dimension code is scanned, because the second terminal can send broadcast data, the broadcast data comprises a terminal identifier and a resource identifier of the second terminal, then a connection request of the first terminal can be received, connection is established with the first terminal, and finally resource content corresponding to the resource identifier can be sent to the first terminal. After one user of the plurality of users scans the two-dimension code through the terminal equipment and acquires the corresponding two-dimension code value, broadcast data can be sent through the terminal equipment of the user, the broadcast data comprises the terminal identification of the terminal equipment of the user and the identification of the scanned two-dimension code, other users can acquire the broadcast data and establish connection with the terminal equipment for sending the broadcast data so as to acquire the two-dimension code value corresponding to the identification of the two-dimension code, thereby avoiding waiting in line for scanning the two-dimension code and providing great convenience 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 embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 is a schematic implementation flow diagram of a resource sharing method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a flow of an application of the resource sharing method provided in an embodiment of the present disclosure in an actual scenario;
fig. 3 is a schematic flowchart of another implementation of a 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 according to an embodiment of the present disclosure.
Detailed Description
For the purposes, technical solutions and advantages of the present application, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The following describes in detail the technical solutions provided by the embodiments of the present application with reference to the accompanying drawings.
In order to solve the problem that a solution to a scene that a plurality of people scan two-dimensional codes simultaneously is not optimized in the prior art, an embodiment of the present disclosure provides a resource sharing method. The execution subject of the resource sharing method provided in the embodiments of the present disclosure may be, but not limited to, a mobile phone, a tablet computer, a personal computer, or the like, which may be 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, hereinafter, embodiments of the method will be described taking an execution body of the method as an example of a terminal device capable of executing the method. It will be appreciated that the subject of execution of the method is a terminal device which is merely an exemplary illustration and should not be construed as limiting the method.
Specifically, an implementation flow diagram of a resource sharing method provided in one or more embodiments of the present disclosure 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 scenario that a plurality of users gather together to scan a two-dimension code as an example, in order to avoid the problem that users far away from the two-dimension code are difficult to scan the two-dimension code, the embodiment of the invention solves the problem by utilizing the function that the version of Bluetooth 4.0 or more than Bluetooth 4.0 can send broadcast data outwards. Optionally, acquiring the broadcast data includes: firstly, searching terminal equipment for starting Bluetooth communication; and then, if the second terminal of the broadcast resource is searched, acquiring the broadcast data of the second terminal, wherein the broadcast data comprises the terminal identifier and the resource identifier of the second terminal.
It should be understood that, before the first terminal acquires the broadcast data, the bluetooth communication function should be started, and the nearby terminal devices (i.e., bluetooth devices) that start bluetooth communication should be scanned, and when the nearby bluetooth devices are scanned, bluetooth devices within a preset range from the first terminal are displayed in the form of a list in the first terminal. The list not only comprises the terminal identifiers of all the Bluetooth devices, but also comprises the resource identifiers broadcast by the Bluetooth devices broadcasting the resources, and the user can obtain the terminal identifiers of the Bluetooth devices broadcasting the resources and the resource identifiers broadcast by the terminal identifiers 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, so as 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 sending 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.
And 130, receiving resource content corresponding to the resource identification.
Optionally, the resource content corresponding to the resource identifier is received, and in particular, the resource content corresponding to the resource identifier may be received through bluetooth communication. Taking the resource as an example of the two-dimensional code, a two-dimensional code value corresponding to the two-dimensional code identifier can be received.
The resource sharing method provided by the embodiment of the present invention is described in detail below by taking fig. 2 as an example. As shown in fig. 2, a flow chart of the resource sharing method provided by the embodiment of the invention applied in an actual scene is a scene of multiple persons scanning two-dimension codes simultaneously, and the scene comprises a user a mobile phone and a user B mobile phone, wherein the user a mobile phone is terminal equipment scanning the two-dimension codes in the scene, and the user B mobile phone is terminal equipment far away from a two-dimension code picture and not scanning the two-dimension codes. That is, fig. 2 is a schematic view of a scene of the user a mobile phone analyzing the scanned two-dimensional code to the user B mobile phone, including the following main steps:
step 211, a user A mobile phone opens a scanning application program to scan a two-dimensional code;
step 212, the mobile phone of the user A starts Bluetooth and sends out broadcast data, wherein the broadcast data comprises a terminal identifier and a two-dimensional code identifier of the mobile phone of the user A;
step 213, the mobile phone of the user B starts Bluetooth and searches nearby Bluetooth equipment;
step 214, the mobile phone of the user B searches for a bluetooth device that transmits broadcast data;
the mobile phone of the user B can check whether other terminal devices share the two-dimension code by searching nearby Bluetooth devices, and can acquire the terminal identification and the two-dimension code identification included in the broadcast data after searching the Bluetooth devices with the broadcast data.
Step 215, the mobile phone of the user B initiates a Bluetooth connection to the Bluetooth device which sends the broadcast data;
the user B mobile phone transmits a bluetooth connection request to a terminal device (i.e., bluetooth device) corresponding to the terminal identification included in the broadcast data.
Step 216, the user a mobile phone receives the bluetooth connection request sent by the user B mobile phone, and establishes bluetooth connection with the user B mobile phone in response to the bluetooth connection request;
step 217, the mobile phone of the user A sends a two-dimension code value to the mobile phone of the user B;
step 218, the mobile phone of the user B receives the two-dimension code value;
in step 219, after the user B mobile phone obtains the two-dimensional code value, in order to improve information security, the user B mobile phone may disconnect the bluetooth connection with the user a mobile phone.
When a plurality of users need to acquire a certain resource at the same time, for example, a two-dimensional code is scanned, because the first terminal can acquire broadcast data firstly, the broadcast data comprises a terminal identifier and a resource identifier, then connection can be established with a second terminal corresponding to the terminal identifier, and finally resource content corresponding to the resource identifier can be received. After one user of the plurality of users scans the two-dimension code through the terminal equipment and acquires the corresponding two-dimension code value, broadcast data can be sent through the terminal equipment of the user, the broadcast data comprises the terminal identification of the terminal equipment of the user and the identification of the scanned two-dimension code, other users can acquire the broadcast data and establish connection with the terminal equipment for sending the broadcast data so as to acquire the two-dimension code value corresponding to the identification of the two-dimension code, thereby avoiding waiting in line for scanning the two-dimension code and providing great convenience for the user.
Fig. 3 is a schematic flow chart of another implementation of a 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, in particular, by bluetooth communication. It should be understood that after the broadcast data is transmitted through bluetooth communication, after the bluetooth communication function is turned on, other terminal devices within a preset range from the second terminal may receive the broadcast data, and may acquire the terminal identifier and the resource identifier of the second terminal included in the broadcast data.
Step 320, receiving a connection request of a first terminal;
optionally, the connection request of the first terminal is received, specifically, the bluetooth connection request of the first terminal may be received first; then, in response to a Bluetooth connection request of the first terminal, a Bluetooth connection is established with the first terminal.
And 330, transmitting the resource content corresponding to the resource identifier to the first terminal.
The specific implementation of the steps related to 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 of this disclosure are not repeated herein.
When a plurality of users need to acquire a certain resource at the same time, for example, a two-dimension code is scanned, because the second terminal can send broadcast data, the broadcast data comprises a terminal identifier and a resource identifier of the second terminal, then a connection request of the first terminal can be received, connection is established with the first terminal, and finally resource content corresponding to the resource identifier can be sent to the first terminal. After one user of the plurality of users scans the two-dimension code through the terminal equipment and acquires the corresponding two-dimension code value, broadcast data can be sent through the terminal equipment of the user, the broadcast data comprises the terminal identification of the terminal equipment of the user and the identification of the scanned two-dimension code, other users can acquire the broadcast data and establish connection with the terminal equipment for sending the broadcast data so as to acquire the two-dimension code value corresponding to the identification of the two-dimension code, thereby avoiding waiting in line for scanning the two-dimension code and providing great convenience for the user.
Fig. 4 is a schematic structural diagram of a resource sharing device 400 provided in the present disclosure. Referring to fig. 4, in a software embodiment, a resource sharing device 400 may include an obtaining unit 401 and a connecting unit 402, where:
an acquisition unit 401, configured to acquire 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;
and a receiving unit 403 for receiving the resource content corresponding to the resource identifier.
In one embodiment, alternatively, the acquisition unit 401,
searching terminal equipment for starting Bluetooth communication;
and if the second terminal of the broadcast resource is searched, acquiring the broadcast data of the second terminal, wherein the broadcast data comprises the terminal identifier and the resource identifier of the second terminal.
In one embodiment, alternatively, 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 device 400 can implement the method of the method embodiments of fig. 1 to 2, and the resource sharing method of the embodiment shown in fig. 1 can be referred to specifically, and will not be described again.
Fig. 5 is a schematic structural diagram of a resource sharing device 500 provided in the present disclosure. Referring to fig. 5, in a software embodiment, a resource sharing device 500 may include a first sending unit 501, a receiving unit 502, and a second sending unit 503, where:
a first transmitting unit 501, configured to transmit 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;
and a second transmitting unit 503 configured to transmit, to the first terminal, resource content corresponding to the resource identifier.
In one embodiment, alternatively, the first transmitting unit 501,
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 device 500 can implement the method of the method embodiment of fig. 3, and the method of resource sharing in the embodiment of fig. 3 can be referred to specifically, and will not be described again.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. Referring to fig. 6, at the hardware level, the electronic device includes a processor, and optionally 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 (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, network interface, and memory may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 6, but not only one bus or type of bus.
And the memory is used for storing programs. In particular, the program may include program code including computer-operating instructions. The memory may include memory and non-volatile storage and provide 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 a resource sharing device on a logic level. The processor is used for executing the programs 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 identifier;
and receiving the resource content corresponding to the resource identifier.
The resource sharing method disclosed in the embodiment shown in fig. 1 of the present specification may 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 by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) 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 description 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 a hardware decoding processor or in a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
The electronic device may further execute the method for determining resource sharing in fig. 1 to 2, which is not described herein.
Of course, in addition to the software implementation, the electronic device in this specification does not exclude other implementations, such as a logic device or a combination of software and hardware, that is, the execution subject of the following process is not limited to each logic unit, but may also be hardware or a logic device.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present specification. Referring to fig. 7, at the hardware level, the electronic device includes a processor, and optionally 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 (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, network interface, and memory may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 7, but not only one bus or type of bus.
And the memory is used for storing programs. In particular, the program may include program code including computer-operating instructions. The memory may include memory and non-volatile storage and provide 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 a resource sharing device on a logic level. The processor is used for executing the programs stored in the memory and is specifically used for executing the following operations:
transmitting 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 shown in fig. 3 of the present specification may 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 by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) 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 description 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 a hardware decoding processor or in a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
The electronic device may further execute the resource sharing method of fig. 3, which is not described herein.
Of course, in addition to the software implementation, the electronic device in this specification does not exclude other implementations, such as a logic device or a combination of software and hardware, that is, the execution subject of the following process is not limited to each logic unit, but may also be hardware or a logic device.
In summary, the foregoing description is only a preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of one or more embodiments of the present disclosure, is intended to be included within the scope of one or more embodiments of the present disclosure.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, 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 storage media for a computer 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, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.

Claims (12)

1. A method for sharing resources, the method being applied to a first terminal, the method comprising:
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 and prepared to be shared by terminal equipment corresponding to the terminal identifier;
establishing connection with a second terminal corresponding to the terminal identifier, wherein the connection is used for acquiring two-dimensional code content corresponding to the two-dimensional code identifier;
and receiving a two-dimensional code value corresponding to the two-dimensional code identifier from the second terminal.
2. The method of claim 1, acquiring broadcast data, comprising:
searching terminal equipment for starting Bluetooth communication;
if a second terminal broadcasting the two-dimension code is searched, acquiring broadcasting data of the second terminal, wherein the broadcasting data comprises a terminal identifier of the second terminal and a two-dimension code identifier.
3. The method of claim 2, establishing a connection with a second terminal corresponding to the terminal identity, comprising:
sending a Bluetooth connection request to a second terminal corresponding to the terminal identifier;
and establishing Bluetooth connection with the second terminal.
4. A method for sharing resources, the method being applied to a second terminal, the method comprising:
transmitting broadcast data, wherein the broadcast data comprises a terminal identifier of the second terminal and a two-dimensional code identifier, and the two-dimensional code identifier is an identifier of a two-dimensional code which is scanned and prepared to be shared by the second terminal;
receiving a connection request of a first terminal, wherein the connection is used for acquiring two-dimension code content corresponding to the two-dimension code identifier;
and sending a two-dimensional code value corresponding to the two-dimensional code identifier to the first 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 the 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 terminal equipment comprises an acquisition unit, a sharing unit and a sharing 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 and prepared to share by a terminal equipment corresponding to the terminal identifier;
the connection unit is used for establishing connection with a second terminal corresponding to the terminal identifier, and the connection is used for acquiring two-dimensional code content corresponding to the two-dimensional code identifier;
and the receiving unit is used for receiving the two-dimension code value corresponding to the two-dimension code identifier from the second terminal.
8. A resource sharing apparatus, comprising:
the first sending unit is used for sending broadcast data, wherein the broadcast data comprises a terminal identifier of a second terminal and a two-dimensional code identifier, and the two-dimensional code identifier is an identifier of a two-dimensional code which is scanned and prepared to be shared by the second terminal;
the receiving unit is used for receiving a connection request of the first terminal, wherein the connection is used for acquiring two-dimensional code content corresponding to the two-dimensional code identifier;
and the second sending unit is used for sending the two-dimension code value corresponding to the two-dimension code identifier to the first terminal.
9. An electronic device, the 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 and prepared to be shared by terminal equipment corresponding to the terminal identifier;
establishing connection with a second terminal corresponding to the terminal identifier, wherein the connection is used for acquiring two-dimensional code content corresponding to the two-dimensional code identifier;
and receiving a two-dimensional code value corresponding to the two-dimensional code identifier from the second terminal.
10. A computer-readable storage medium storing one or more programs that, when executed by an electronic device comprising 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 and prepared to be shared by terminal equipment corresponding to the terminal identifier;
establishing connection with a second terminal corresponding to the terminal identifier, wherein the connection is used for acquiring two-dimensional code content corresponding to the two-dimensional code identifier;
and receiving a two-dimensional code value corresponding to the two-dimensional code identifier from the second terminal.
11. An electronic device, the electronic device comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
transmitting broadcast data, wherein the broadcast data comprises a terminal identifier of a second terminal and a two-dimensional code identifier, and the two-dimensional code identifier is an identifier of a two-dimensional code which is scanned and prepared to be shared by the second terminal;
receiving a connection request of a first terminal, wherein the connection is used for acquiring two-dimension code content corresponding to the two-dimension code identifier;
and sending a two-dimensional code value corresponding to the two-dimensional code identifier to the first terminal.
12. A computer-readable storage medium storing one or more programs that, when executed by an electronic device comprising a plurality of application programs, cause the electronic device to:
transmitting broadcast data, wherein the broadcast data comprises a terminal identifier of a second terminal and a two-dimensional code identifier, and the two-dimensional code identifier is an identifier of a two-dimensional code which is scanned and prepared to be shared by the second terminal;
receiving a connection request of a first terminal, wherein the connection is used for acquiring two-dimension code content corresponding to the two-dimension code identifier;
and sending a two-dimensional code value corresponding to the two-dimensional code identifier to the first terminal.
CN202210667671.8A 2018-07-18 2018-07-18 Resource sharing method and device and electronic equipment Active CN115243202B (en)

Priority Applications (1)

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

Applications Claiming Priority (2)

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

Related Parent Applications (1)

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

Publications (2)

Publication Number Publication Date
CN115243202A CN115243202A (en) 2022-10-25
CN115243202B true CN115243202B (en) 2023-07-21

Family

ID=64817325

Family Applications (2)

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

Country Status (1)

Country Link
CN (2) CN109068303B (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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219617A (en) * 2014-08-22 2014-12-17 腾讯科技(深圳)有限公司 Service acquiring method and device
WO2017198009A1 (en) * 2016-05-16 2017-11-23 阿里巴巴集团控股有限公司 Method, system and intelligent terminal for pairing between intelligent wearable device and intelligent terminal
CN107734460A (en) * 2017-09-20 2018-02-23 广州市盈泽信息科技有限公司 A kind of method and terminal that bluetooth lock intelligent unlocking is realized based on mobile terminal
CN107766738A (en) * 2017-09-12 2018-03-06 阿里巴巴集团控股有限公司 A kind of binding method of smart machine, device and system, communication system

Family Cites Families (11)

* 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
CN103095895B (en) * 2011-11-01 2016-03-23 中国电信股份有限公司 A kind of method and client sending mobile phone electronic business card
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
CN105376696A (en) * 2015-10-09 2016-03-02 惠州Tcl移动通信有限公司 Data transmission method and intelligent terminal
US20170134486A1 (en) * 2015-11-10 2017-05-11 Le Holdings (Beijing) Co., Ltd. Method and device for information synchronization
CN105790800B (en) * 2016-03-03 2019-02-19 上海智向信息科技有限公司 A kind of online information method for pushing and system based on wearable device
CN108108773B (en) * 2016-11-24 2021-07-20 阿里巴巴集团控股有限公司 Data processing method and device
CN107071711A (en) * 2017-04-12 2017-08-18 安徽华米信息科技有限公司 Multimedia sharing method, device and Bluetooth equipment
CN107392586A (en) * 2017-06-16 2017-11-24 南京维智感网络科技有限公司 Quick Response Code payment system and method based on proximity relation detection
CN107426311A (en) * 2017-07-19 2017-12-01 上海慧流云计算科技有限公司 Information-pushing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219617A (en) * 2014-08-22 2014-12-17 腾讯科技(深圳)有限公司 Service acquiring method and device
WO2017198009A1 (en) * 2016-05-16 2017-11-23 阿里巴巴集团控股有限公司 Method, system and intelligent terminal for pairing between intelligent wearable device and intelligent terminal
CN107766738A (en) * 2017-09-12 2018-03-06 阿里巴巴集团控股有限公司 A kind of binding method of smart machine, device and system, communication system
CN107734460A (en) * 2017-09-20 2018-02-23 广州市盈泽信息科技有限公司 A kind of method and terminal that bluetooth lock intelligent unlocking is realized based on mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"嵌入式二维码数据无线多点传输系统设计";林盈盈等;《网络与通信 N》;全文 *

Also Published As

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

Similar Documents

Publication Publication Date Title
CN110113744B (en) Communication method, device, equipment and storage medium
CN109493073B (en) Identity recognition method and device based on human face and electronic equipment
CN105430711B (en) Transmission method, device and the equipment of information
CN109462601B (en) Multi-platform access method and device based on eSIM
EP3197213A1 (en) Network access method and mobile communication terminal
US20150269269A1 (en) Method and apparatus for generating a desktop shortcut
US11019008B2 (en) Method, public account server, and mobile terminal for sending and generating cards
US9864552B2 (en) Communication apparatus, control method of communication apparatus, and storage medium
CN115243202B (en) Resource sharing method and device and electronic equipment
CN105515887B (en) application testing method, server and system
CN111666518A (en) DOI display method and device
CN110780963B (en) Content display method and device and electronic equipment
CN110764929B (en) Message interaction method, system and device and electronic equipment
TW201923659A (en) Service process starting method and apparatus
CN111614759A (en) Resource sharing method and device, electronic equipment and computer readable medium
CN108541000B (en) Method, medium and device for detecting network connection
CN112970276B (en) Communication processing method, device, mobile terminal and storage medium
CN113966603A (en) Method for sharing server, client and cloud platform
CN111132131A (en) Number copying method, terminal and storage medium
EP2477380A1 (en) Apparatus and method for providing and executing content
CN112417330A (en) Page loading method, device, equipment and storage medium
CN111143292B (en) File positioning method, device and system
CN111478982B (en) Message processing method, device and system and electronic equipment
US9282457B2 (en) Method of sharing credential and wireless communication system thereof
WO2016172951A1 (en) Method and device for sending data service, and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant