CN110662309A - Method and electronic device for communication - Google Patents
Method and electronic device for communication Download PDFInfo
- Publication number
- CN110662309A CN110662309A CN201910922053.1A CN201910922053A CN110662309A CN 110662309 A CN110662309 A CN 110662309A CN 201910922053 A CN201910922053 A CN 201910922053A CN 110662309 A CN110662309 A CN 110662309A
- Authority
- CN
- China
- Prior art keywords
- signal
- electronic device
- wave
- communication
- signal wave
- 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.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 120
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000004044 response Effects 0.000 claims abstract description 12
- 238000004590 computer program Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 16
- 230000006870 function Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000002184 metal Substances 0.000 description 2
- 238000004806 packaging method and process Methods 0.000 description 2
- 239000000758 substrate Substances 0.000 description 2
- 108010001267 Protein Subunits Proteins 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0231—Cordless keyboards
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present disclosure provides a method for communication. The method comprises the following steps: obtaining a trigger signal for establishing a communication connection, the trigger signal being generated based on physical contact with a second electronic device to be connected in a predetermined manner; receiving a signal wave in response to the trigger signal; analyzing the signal wave to obtain communication identification information of the second electronic equipment included in the signal wave; and establishing communication connection with the second electronic equipment based on the communication identification information. The present disclosure also provides a corresponding electronic device.
Description
Technical Field
The present disclosure relates to a method and an electronic device for communication.
Background
When the electronic device is in communication connection with other devices through WiFi or bluetooth, the electronic device available for connection around the electronic device is usually scanned through WiFi or bluetooth. When there are a plurality of electronic devices available for connection, it is often necessary to select a device to be connected according to identification information (e.g., a Serial Number) of the device to be connected, so as to establish a communication connection. Thus, the user must first obtain identification information of the device to be connected. In an extreme case, if the identification information of the device to be connected is difficult to obtain, it may cause trouble in establishing the communication connection.
Disclosure of Invention
One aspect of the present disclosure provides a method for communication, applied to a first electronic device. The method comprises the following steps: obtaining a trigger signal for establishing a communication connection, the trigger signal being generated based on physical contact with a second electronic device to be connected in a predetermined manner; receiving a signal wave in response to the trigger signal; analyzing the signal wave to obtain communication identification information of the second electronic equipment included in the signal wave; and establishing communication connection with the second electronic equipment based on the communication identification information.
Optionally, the signal wave comprises at least one of a light wave or a sound wave.
Optionally, said receiving a signal wave in response to said trigger signal comprises at least one of: receiving a signal wave within a predetermined period of time after obtaining the trigger signal, or receiving a signal wave having a signal strength within a first strength range.
Optionally, the first electronic device comprises a signal receiver for receiving the signal wave, and the second electronic device comprises a signal transmitter for transmitting the signal wave. Wherein the signal receiver is spatially opposite to the signal transmitter when the first electronic device and the second electronic device are in physical contact according to a predetermined manner.
Another aspect of the present disclosure provides a method for communication, applied to a second electronic device. The method comprises the following steps: obtaining a trigger signal for establishing a communication connection, wherein the trigger signal is generated based on physical contact with a first electronic device to be connected in a predetermined manner; transmitting a signal wave in response to the trigger signal; wherein the signal wave includes communication identification information of the second electronic device; and receiving a communication connection request sent by the first electronic equipment based on the communication identification information so as to establish communication connection with the first electronic equipment based on the communication connection request.
Optionally, the signal wave comprises at least one of a light wave or a sound wave.
Optionally, said transmitting a signal wave in response to said trigger signal comprises at least one of: and transmitting the signal wave or transmitting the signal wave with the signal intensity in a second intensity range within a preset time period after the trigger signal is obtained.
Optionally, the second electronic device comprises a signal transmitter for transmitting the signal wave, and the first electronic device comprises a signal receiver for receiving the signal wave. Wherein the signal receiver is spatially opposite to the signal transmitter when the second electronic device is in physical contact with the first electronic device in a predetermined manner.
Another aspect of the disclosure provides a first electronic device. The first electronic device comprises a first obtaining module, a signal wave receiving module, an analyzing module and a first communication establishing module. The first obtaining module is used for obtaining a trigger signal for establishing communication connection, and the trigger signal is generated based on physical contact with a second electronic device to be connected according to a preset mode. The signal wave receiving module is used for responding to the trigger signal and receiving a signal wave. The analysis module is used for analyzing the signal wave to obtain the communication identification information of the second electronic equipment included in the signal wave. The first communication establishing module is used for establishing communication connection with the second electronic equipment based on the communication identification information.
Another aspect of the present disclosure provides a first electronic device. The first electronic device includes a signal receiver, and a processor. The processor runs the program to perform the method for communication as applied to the first electronic device as described above.
Another aspect of the present disclosure provides a second electronic device. The second electronic device comprises a second obtaining module, a signal wave transmitting module and a second communication establishing module. The second obtaining module is used for obtaining a trigger signal for establishing communication connection, wherein the trigger signal is generated based on physical contact with the first electronic equipment to be connected according to a preset mode. The signal wave transmitting module is used for responding to the trigger signal and transmitting a signal wave; wherein the signal wave includes communication identification information of the second electronic device. The second communication establishing module is used for receiving a communication connection request sent by the first electronic equipment based on the communication identification information so as to establish communication connection with the first electronic equipment based on the communication connection request.
Another aspect of the present disclosure provides a second electronic device. The second electronic device includes a signal wave transmitter, and a processor. The processor runs the program to perform the method for communication as applied to the second electronic device as described above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
fig. 1A and 1B schematically illustrate application scenarios of a method and an electronic device for communication according to an embodiment of the present disclosure;
FIG. 2 schematically shows a block diagram of a first electronic device according to an embodiment of the present disclosure;
FIG. 3 schematically shows a block diagram of a second electronic device according to an embodiment of the present disclosure;
fig. 4 schematically shows a flow chart of a method for communication applied to a first electronic device according to an embodiment of the present disclosure;
fig. 5 schematically shows a flow chart of a method for communication applied to a second electronic device according to an embodiment of the present disclosure;
fig. 6 schematically shows a block diagram of a first electronic device according to another embodiment of the present disclosure; and
fig. 7 schematically shows a block diagram of a second electronic device according to another embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks. The techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon for use by or in connection with an instruction execution system.
When the electronic equipment is in communication connection with other equipment through WiFi or Bluetooth pairing, the equipment to be connected can be uniquely located through the identification information of the equipment to be connected. This requires not only manual participation of the user but also the user to acquire the identification information of the device to be connected in advance during the establishment of the communication connection. And when the identification information of the device to be connected is difficult to obtain, great trouble is often brought to the user.
For example, if a tablet computer and a wireless keyboard (e.g., a bluetooth keyboard) are used in a classroom, the tablet computer of a user (student or teacher) can search for tens of pieces of information of the wireless keyboard available for connection at the same time. In this case, the user needs to select information of the wireless keyboard (for example, the wireless keyboard on the desktop) from the information of the dozens of wireless keyboards available for connection, so as to connect the tablet computer with the wireless keyboard on the desktop. Otherwise, a connection error may cause the user not to control the tablet computer by operating the wireless keyboard on the desktop. However, the process of selecting the wireless keyboard actually needed by the user from the information of dozens of wireless keyboards available for connection consumes much effort, is very easy to make mistakes, and brings great trouble to the user.
In view of the above-mentioned drawbacks in the related art, the embodiments of the present disclosure provide a method for communication and a corresponding electronic device. When two electronic devices establish communication connection, signal wave (such as light wave or sound wave) interaction between the two electronic devices is triggered through physical contact of the two electronic devices according to a preset mode, wherein communication identification information (such as mac address) of the electronic devices to be paired can be coded in the signal wave, then the two electronic devices can be mutually identified based on the interaction of the signal wave, and directional communication connection is established between the two electronic devices. Therefore, the communication pairing of the equipment is carried out through physical contact, and the effect of one-touch connection is achieved.
The following provides an exemplary description of a method for communication and a corresponding electronic device according to embodiments of the disclosure with reference to the drawings. It should be noted that the terms "first" and "second" are used herein only for distinguishing the terms, and do not have actual limiting meanings.
Fig. 1A and 1B schematically illustrate an application scenario 100 of a method and an electronic device for communication according to an embodiment of the present disclosure.
As shown in fig. 1A and 1B, the application scenario 100 may include a tablet computer 11 and a wireless keyboard 12. The tablet computer 11 may be a first electronic device according to the embodiment of the disclosure, and the wireless keyboard 12 may be a second electronic device according to the embodiment of the disclosure. It is understood that in other cases, the tablet computer 11 may be the second electronic device and the wireless keyboard 12 corresponds to the first electronic device.
In fig. 1A, the tablet computer 11 and the wireless keyboard 12 are not in contact. When it is desired to establish a communication connection between the tablet computer 11 and the wireless keyboard 12, the tablet computer 11 and the wireless keyboard 12 may be brought into contact in the manner shown in fig. 1B to trigger a directional communication connection between the tablet computer 11 and the wireless keyboard 12.
The contact between the tablet computer 11 and the wireless keyboard 12 may be physical contact in a predetermined manner. For example, the tablet computer 11 may be provided with a first specific area 111 for contacting the wireless keyboard 12. The first specific region 111 may be provided therein with, for example, metal pins, electrode pins, and the like. The wireless keyboard 12 may be provided with a second specific area 121 coupled to the first specific area 111. When it is required to trigger the communication connection between the tablet computer 11 and the wireless keyboard 12, the user may contact the first specific region 111 of the tablet computer 11 and the second specific region 121 of the wireless keyboard 12, so as to contact the metal pins or the electrode pins to generate a trigger signal for establishing the communication connection.
The tablet computer 11 and the wireless keyboard 12 may each include a signal transmitter and/or a signal receiver. The signal transmitter may be, for example, a microphone and/or an LED lamp, etc.; a microphone may be used to transmit sound waves; LED lamps can be used to emit light waves. The signal receiver may be, for example, a speaker and/or a camera, etc.; the horn may be for receiving sound waves; the camera may be used to receive light waves.
The description is continued by taking the tablet computer 11 including the speaker 112 and the wireless keyboard 12 including the microphone 122 as examples. As mentioned above, when the tablet computer 11 and the wireless keyboard 12 are contacted as shown in fig. 1B, a trigger signal for establishing a communication connection is generated.
The trigger signal may initiate the microphone 122 to emit sound waves outward, where communication identification information of the wireless keyboard 12 may be encoded in the sound waves in accordance with embodiments of the present disclosure.
At the same time, the trigger signal may activate the speaker 112 to receive a signal, such as a sound wave emitted by the microphone 122. The tablet computer 11 may analyze the sound wave to obtain the communication identification information of the wireless keyboard 12. Thereafter, the tablet computer 11 may send a communication request to the wireless keyboard 12 based on the communication identification information to establish a communication connection between the tablet computer 11 and the wireless keyboard 12. After the communication connection between the tablet computer 11 and the wireless keyboard 12 is established, the tablet computer 11 and the wireless keyboard 12 may be kept in contact or may be physically separated, which is not limited in this disclosure.
In one embodiment, the location of the speaker 112 in the tablet computer 11 and the microphone 122 location setting in the wireless keyboard 12 may be matched. For example, when the tablet computer 11 and the wireless keyboard 12 are contacted in the manner shown in fig. 1B, the speaker 112 and the microphone 122 may be located opposite to each other in space, so that the sound wave emitted from the microphone 122 propagates to the speaker 112, and the efficiency and the speed of signal wave transmission can be ensured.
It should be noted that fig. 1A and 1B are only examples of scenarios in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure may not be used in other devices, systems, environments or scenarios.
Fig. 2 schematically shows a block diagram of a first electronic device 200 according to an embodiment of the present disclosure.
As shown in fig. 2, the first electronic device 200 may include a first obtaining module 210, a signal wave receiving module 220, a parsing module 230, and a first communication establishing module 240.
The first obtaining module 210 is configured to obtain a trigger signal for establishing a communication connection, where the trigger signal is generated based on physical contact with a second electronic device to be connected in a predetermined manner.
The signal wave receiving module 220 is configured to receive a signal wave in response to a trigger signal.
The parsing module 230 is configured to parse the signal wave to obtain communication identification information of the second electronic device included in the signal wave.
The first communication establishing module 240 is configured to establish a communication connection with the second electronic device based on the communication identification information.
Fig. 3 schematically shows a block diagram of a second electronic device 300 according to an embodiment of the present disclosure.
As shown in fig. 3, the second electronic device 300 includes a second obtaining module 310, a signal wave transmitting module 320, and a second communication establishing module 330.
The second obtaining module 310 is configured to obtain a trigger signal for establishing a communication connection, where the trigger signal is generated based on physical contact with a first electronic device to be connected in a predetermined manner.
The signal wave transmitting module 320 is used for responding to the trigger signal and transmitting the signal wave; wherein the signal wave includes communication identification information of the second electronic device.
The second communication establishing module 330 is configured to receive a communication connection request sent by the first electronic device based on the communication identification information, so as to establish a communication connection with the first electronic device based on the communication connection request.
The first electronic device 200 may perform the method for communication shown in fig. 4 below, and the second electronic device 300 may perform the method for communication shown in fig. 5 below, so that when the first electronic device 200 and the second electronic device 300 are in physical contact in a predetermined manner, a communication connection between the first electronic device 200 and the second electronic device 300 may be achieved. In this way, the embodiment of the present disclosure can perform communication pairing of the devices through physical contact of the two electronic devices, and achieve the effect of one touch and one touch.
Fig. 4 schematically shows a flowchart of a method for communication applied to the first electronic device 200 according to an embodiment of the present disclosure.
As shown in fig. 4, the method may include operations S401 to S404.
In operation S401, the first obtaining module 210 obtains a trigger signal for establishing a communication connection, the trigger signal being generated based on physical contact with the second electronic device 300 to be connected in a predetermined manner.
In operation S402, the signal wave receiving module 220 receives a signal wave in response to the trigger signal. According to an embodiment of the present disclosure, the signal wave includes at least one of a light wave or a sound wave.
According to an embodiment of the present disclosure, a specific implementation of receiving the signal wave in operation S402 may be receiving the signal wave within a predetermined time period (e.g., 1ms) after obtaining the trigger signal; alternatively, the specific implementation of the received signal wave in operation S402 receives a signal wave whose signal intensity is within a first intensity range (e.g., within 10 mW). Since the first electronic device 200 and the second electronic device 300 are communication connections triggered by physical contact, the first electronic device 200 and the second electronic device 300 are at a small distance from each other when establishing communication connections. By limiting the time of receiving the signal wave or the signal strength of the signal wave, the interference of other signal waves in the environment can be avoided, and the accuracy of communication establishment is improved.
In operation S403, the parsing module 230 parses the signal wave to obtain communication identification information (e.g., mac address) of the second electronic device 300 included in the signal wave.
In operation S404, the first communication establishing module 240 establishes a communication connection with the second electronic device 300 based on the communication identification information.
Fig. 5 schematically shows a flowchart of a method for communication applied to the second electronic device 300 according to an embodiment of the present disclosure.
As shown in fig. 5, the method may include operations S501 to S503.
In operation S501, the second obtaining module 310 obtains a trigger signal for establishing a communication connection, wherein the trigger signal is generated based on physical contact with a first electronic device to be connected in a predetermined manner.
In operation S502, the signal wave transmitting module 320 transmits a signal wave in response to the trigger signal, wherein the signal wave includes communication identification information (e.g., mac address) of the second electronic device 300. According to an embodiment of the present disclosure, the signal wave includes at least one of a light wave or a sound wave.
According to an embodiment of the present disclosure, a specific implementation of transmitting the signal wave in operation S502 may be that the signal wave is transmitted within a predetermined time period (0.5ms) after the trigger signal is obtained; or alternatively emit signal waves having signal intensities within a second intensity range (e.g., within 15 mW). Since the first electronic device 200 and the second electronic device 300 are communication connections triggered by physical contact, the first electronic device 200 and the second electronic device 300 are at a small distance from each other when establishing communication connections. Based on the characteristic, the transmitting time and/or the transmitting strength of the signal wave are/is set, so that the interference of other signal waves in the environment can be avoided, and the accuracy of communication establishment is improved.
In operation S503, the second communication establishing module 330 receives a communication connection request transmitted by the first electronic device 200 based on the communication identification information to establish a communication connection with the first electronic device 200 based on the communication connection request.
According to an embodiment of the present disclosure, the first electronic device 200 includes a signal receiver for receiving a signal wave, and the second electronic device 300 includes a signal transmitter for transmitting a signal wave. For example, the signal wave receiving module 220 may be integrated in a signal receiver, and the signal wave transmitter 320 may be integrated in a signal transmitter. Wherein the signal receiver is spatially opposite the signal transmitter (e.g., speaker 112 and microphone 122 in fig. 1A and 1B) when the first electronic device 200 and the second electronic device 300 are in physical contact in a predetermined manner.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any plurality of the first obtaining module 210, the signal wave receiving module 220, the parsing module 230, the first communication establishing module 240, the second obtaining module 310, the signal wave transmitting module 320, and the second communication establishing module 330 may be combined in one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to the embodiment of the present disclosure, at least one of the first obtaining module 210, the signal wave receiving module 220, the parsing module 230, the first communication establishing module 240, the second obtaining module 310, the signal wave transmitting module 320, and the second communication establishing module 330 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementation manners of software, hardware, and firmware, or by a suitable combination of any several of them. Alternatively, at least one of the first obtaining module 210, the signal wave receiving module 220, the parsing module 230, the first communication establishing module 240, the second obtaining module 310, the signal wave transmitting module 320, and the second communication establishing module 330 may be at least partially implemented as a computer program module that may perform a corresponding function when executed.
Fig. 6 schematically shows a block diagram of a first electronic device 600 according to another embodiment of the present disclosure. The computing or system architecture of the first electronic device 600 shown in fig. 6 is only one example and should not impose any limitations on the functionality or scope of use of embodiments of the disclosure.
As shown in fig. 6, the first electronic device 600 includes a processor 610, a computer-readable storage medium 620, and a signal receiver 630. The first electronic device 600 may perform the method described with reference to fig. 4. According to an embodiment of the present invention, at least one of the first obtaining module 210, the signal wave receiving module 220, the parsing module 230, and the first communication establishing module 240 may be implemented as a computer program module described with reference to fig. 6, which, when executed by the processor 610, may implement the corresponding operations described above.
In particular, the processor 610 may comprise, for example, a general purpose microprocessor, an instruction set processor and/or related chip set and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 610 may also include onboard memory for caching purposes. The processor 610 may be a single processing unit or a plurality of processing units for performing the different actions of the method flow described with reference to fig. 4.
Computer-readable storage medium 620, for example, may be a non-volatile computer-readable storage medium, specific examples including, but not limited to: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and so on.
The computer-readable storage medium 620 may include a computer program 621, which computer program 621 may include code/computer-executable instructions that, when executed by the processor 610, cause the processor 610 to perform the method described with reference to fig. 4, or any variation thereof.
The computer program 621 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code in computer program 621 may include one or more program modules, including 621A, 621B, … …, for example. It should be noted that the division and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, which when executed by the processor 610, enable the processor 610 to perform the method described with reference to fig. 4 or any variation thereof.
According to an embodiment of the present disclosure, the signal receiver 630 may be used to receive a signal wave. The processor 610 may interact with the signal receiver 630 to perform the method according to the method described with reference to fig. 4 or any variant thereof.
Fig. 7 schematically shows a block diagram of a second electronic device 700 according to another embodiment of the present disclosure. The computing or system architecture of the second electronic device 700 shown in fig. 7 is only one example and should not impose any limitations on the functionality or scope of use of embodiments of the present disclosure.
As shown in fig. 7, the second electronic device 700 includes a processor 710, a computer-readable storage medium 720, and a signal transmitter 730. The second electronic device 700 may perform the method described with reference to fig. 5. According to an embodiment of the present invention, at least one of the second obtaining module 310, the signal wave transmitting module 320, and the second communication establishing module 330 may be implemented as a computer program module described with reference to fig. 7, which, when executed by the processor 710, may implement the respective operations described above.
In particular, processor 710 may comprise, for example, a general purpose microprocessor, an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 710 may also include on-board memory for caching purposes. The processor 610 may be a single processing unit or a plurality of processing units for performing different actions according to the method flow described with reference to fig. 5.
Computer-readable storage medium 720, for example, may be a non-volatile computer-readable storage medium, specific examples including, but not limited to: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and so on.
The computer-readable storage medium 720 may comprise a computer program 721, which computer program 721 may comprise code/computer-executable instructions, which, when executed by the processor 710, cause the processor 710 to perform the method described with reference to fig. 5 or any variant thereof.
The computer program 721 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code in computer program 721 may include one or more program modules, including 721A, modules 721B, … …, for example. It should be noted that the division and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, which when executed by the processor 710, enable the processor 710 to perform the method described with reference to fig. 5 or any variation thereof.
According to an embodiment of the present disclosure, the signal transmitter 730 may be used to transmit a signal wave. Processor 710 may interact with signal transmitter 730 to perform the method described with reference to fig. 5 or any variation thereof.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the methods described with reference to fig. 4 or 5.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the disclosure can be made without conflict, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.
Claims (10)
1. A method for communication, applied to a first electronic device, includes:
obtaining a trigger signal for establishing a communication connection, the trigger signal being generated based on physical contact with a second electronic device to be connected in a predetermined manner;
receiving a signal wave in response to the trigger signal;
analyzing the signal wave to obtain communication identification information of the second electronic equipment included in the signal wave; and
and establishing communication connection with the second electronic equipment based on the communication identification information.
2. The method of claim 1, wherein the signal wave comprises at least one of a light wave or a sound wave.
3. The method of claim 1, wherein said receiving a signal wave in response to said trigger signal comprises at least one of:
receiving a signal wave within a predetermined period of time after obtaining the trigger signal; or
Signal waves having signal strengths within a first strength range are received.
4. The method of claim 1, wherein:
the first electronic device includes a signal receiver for receiving the signal wave;
the second electronic device includes a signal transmitter for transmitting the signal wave;
wherein,
when the first electronic device and the second electronic device are in physical contact according to a preset mode, the signal receiver and the signal transmitter are opposite in spatial position.
5. A method for communication, applied to a second electronic device, includes:
obtaining a trigger signal for establishing a communication connection, wherein the trigger signal is generated based on physical contact with a first electronic device to be connected in a predetermined manner;
transmitting a signal wave in response to the trigger signal; wherein the signal wave includes communication identification information of the second electronic device;
and receiving a communication connection request sent by the first electronic equipment based on the communication identification information so as to establish communication connection with the first electronic equipment based on the communication connection request.
6. The method of claim 5, wherein the signal wave comprises at least one of a light wave or a sound wave.
7. The method of claim 5, wherein said transmitting a signal wave in response to said trigger signal comprises at least one of:
transmitting the signal wave within a predetermined time period after obtaining the trigger signal; or
Signal waves are transmitted with signal strengths in a second strength range.
8. The method of claim 5, wherein:
the second electronic device includes a signal transmitter for transmitting the signal wave;
the first electronic device includes a signal receiver for receiving the signal wave;
wherein,
when the second electronic device is in physical contact with the first electronic device according to a preset mode, the signal receiver is opposite to the signal transmitter in the space position.
9. A first electronic device, comprising:
a signal receiver; and
a processor running a program to perform the method of any one of claims 1 to 4.
10. A second electronic device, comprising:
a signal wave transmitter; and
a processor running a program to perform the method of any one of claims 5 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910922053.1A CN110662309A (en) | 2019-09-26 | 2019-09-26 | Method and electronic device for communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910922053.1A CN110662309A (en) | 2019-09-26 | 2019-09-26 | Method and electronic device for communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110662309A true CN110662309A (en) | 2020-01-07 |
Family
ID=69039415
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910922053.1A Pending CN110662309A (en) | 2019-09-26 | 2019-09-26 | Method and electronic device for communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110662309A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015101285A1 (en) * | 2013-12-30 | 2015-07-09 | Mediatek Inc. | Touch communications connection establishing method and touch panel device |
CN105792102A (en) * | 2015-01-12 | 2016-07-20 | 威斯通全球技术公司 | A mechanism and a method for wireless connection of apparatuses |
CN105898678A (en) * | 2016-03-29 | 2016-08-24 | 联想(北京)有限公司 | Pairing method and electronic device |
CN106535301A (en) * | 2016-12-30 | 2017-03-22 | 珠海赛纳打印科技股份有限公司 | Method, device and system for establishing communication connection |
-
2019
- 2019-09-26 CN CN201910922053.1A patent/CN110662309A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015101285A1 (en) * | 2013-12-30 | 2015-07-09 | Mediatek Inc. | Touch communications connection establishing method and touch panel device |
CN105792102A (en) * | 2015-01-12 | 2016-07-20 | 威斯通全球技术公司 | A mechanism and a method for wireless connection of apparatuses |
CN105898678A (en) * | 2016-03-29 | 2016-08-24 | 联想(北京)有限公司 | Pairing method and electronic device |
CN106535301A (en) * | 2016-12-30 | 2017-03-22 | 珠海赛纳打印科技股份有限公司 | Method, device and system for establishing communication connection |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2706726B1 (en) | Method and device for executing application | |
US10536406B2 (en) | Data transmission method and apparatus, and in-vehicle terminal | |
US9484991B2 (en) | Device, system and method of wireless communication via a plurality of antennas | |
US9232335B2 (en) | Networked speaker system with follow me | |
CN110618971B (en) | Information interaction method and electronic equipment | |
CN110636441B (en) | Information processing method and mobile terminal | |
CN104320520A (en) | Terminal commissioning method and device | |
WO2019128829A1 (en) | Action execution method and apparatus, storage medium and electronic apparatus | |
US20150257183A1 (en) | Apparatus, system and method of identifying a wireless docking station | |
EP4404473A3 (en) | System and method for supporting beamformed sounding reference signals | |
US20170162216A1 (en) | Spectral recognition of percussive sounds | |
CN108415786B (en) | Information processing method and device, electronic equipment and computer readable medium | |
US20190164411A1 (en) | Alerthub System with Two Touch Badge | |
US20180077242A1 (en) | Network communication technologies for laboratory instruments | |
US20200160691A1 (en) | Alerthub system with two touch badge | |
CN114035759B (en) | Screen control method, control terminal, screen and computer readable storage medium | |
CN105448085A (en) | Road crossing prompting method, device, and terminal device | |
CN110662309A (en) | Method and electronic device for communication | |
KR101585787B1 (en) | Remote Management System and Method of Applying the system to Remote Manage Bluetooth Beacon | |
US10492013B2 (en) | Testing of vehicle system module using audio recognition | |
CN112769627B (en) | Network environment simulation method, system and computer program product | |
KR101754899B1 (en) | Education services platform system use of SDR radar | |
CN113747370A (en) | Data transmission method, device, equipment and system | |
CN109710545B (en) | Data transmission method and device, computer readable storage medium and computer system | |
KR101532324B1 (en) | Apparatus and Method of testing the performance of TDOA system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200107 |
|
RJ01 | Rejection of invention patent application after publication |