CN104866209A - Data transmission method and electronic equipment - Google Patents

Data transmission method and electronic equipment Download PDF

Info

Publication number
CN104866209A
CN104866209A CN201410061020.XA CN201410061020A CN104866209A CN 104866209 A CN104866209 A CN 104866209A CN 201410061020 A CN201410061020 A CN 201410061020A CN 104866209 A CN104866209 A CN 104866209A
Authority
CN
China
Prior art keywords
unit
electronic device
electronic devices
data
file
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.)
Granted
Application number
CN201410061020.XA
Other languages
Chinese (zh)
Other versions
CN104866209B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410061020.XA priority Critical patent/CN104866209B/en
Publication of CN104866209A publication Critical patent/CN104866209A/en
Application granted granted Critical
Publication of CN104866209B publication Critical patent/CN104866209B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a data transmission method and electronic equipment. The data transmission method is used for first electronic equipment. The first electronic equipment comprises a detection unit, a storage unit that at least stores a first file, and a communication unit, wherein the first electronic equipment is communicated with second electronic equipment through the communication unit. The data transmission method comprises the following steps of detecting environmental data by utilizing the detection unit, wherein the environmental data indicates that airflow movement exits at the spatial position of the first electronic equipment; judging whether the environmental data meets a first condition in order to obtain a judging result; when the judging result indicates that the environmental data meets the first condition, generating a first command; and responding the first command and sending the first file stored in the storage unit to the second electronic equipment.

Description

Data transmission method and electronic equipment
Technical Field
The present invention relates to data transmission technologies, and in particular, to a data transmission method and an electronic device.
Background
At present, electronic devices, such as mobile phones, tablet computers, and the like, can share files with other electronic devices after being interconnected with each other. When a user sends a local file to other electronic devices through the electronic device, the user generally performs an operation on a display interface of the electronic device to send a target file to the other electronic devices. With the intelligent development of electronic equipment, services provided by the electronic equipment are more and more abundant and diversified, the existing file sharing mode is tedious in operation and tedious in operation mode, and how to share files among the electronic equipment through convenient operation is a problem which needs to be solved urgently.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention provide a data transmission method and an electronic device.
The data transmission method provided by the embodiment of the invention is applied to first electronic equipment, wherein the first electronic equipment comprises a detection unit, a storage unit and a communication unit, the storage unit at least can store a first file, and the first electronic equipment can communicate with second electronic equipment through the communication unit; the data transmission method comprises the following steps:
detecting environmental data by using the detection unit, wherein the environmental data indicate that airflow movement exists at a spatial position where the first electronic device is located;
judging whether the environmental data meet a first condition or not to obtain a judgment result;
when the judgment result shows that the environment data meet the first condition, generating a first instruction;
and responding to the first instruction, and sending the first file stored in the storage unit to the second electronic equipment.
The electronic equipment provided by the embodiment of the invention comprises: the electronic equipment comprises a detection unit, a storage unit and a communication unit, wherein the storage unit can at least store a first file, and the electronic equipment can communicate with second electronic equipment through the communication unit; the electronic device further includes: the device comprises a judging unit, a generating unit and a responding unit; wherein,
the detection unit is used for detecting environmental data, and the environmental data indicate that airflow movement exists at the spatial position of the electronic equipment;
the judging unit is used for judging whether the environment data meet a first condition or not to obtain a judgment result;
the generating unit is used for generating a first instruction when the judgment result shows that the environment data meets the first condition;
the response unit is configured to send the first file stored in the storage unit to the second electronic device in response to the first instruction.
According to the technical scheme of the embodiment of the invention, the detection unit in the first electronic device detects the environmental data of the space position where the first electronic device is located, namely the data related to the air flow movement, when the detected environmental data meets the first condition, it is indicated that a user blows air, and the first electronic device sends the first file stored in the storage unit to the second electronic device. So, the user only needs through the operation of blowing, alright send first file to second electronic equipment, and the operation method simple accurate has just increased the interest of operation, has promoted user's experience.
Drawings
Fig. 1 is a schematic flowchart of a data transmission method according to a first embodiment of the present invention;
fig. 2 is a schematic flow chart of a data transmission method according to a second embodiment of the present invention;
fig. 3 is a schematic flow chart of a data transmission method according to a third embodiment of the present invention;
fig. 4 is a flowchart illustrating a data transmission method according to a fourth embodiment of the present invention;
fig. 5 is a schematic flowchart of a data transmission method according to a fifth embodiment of the present invention;
fig. 6 is a schematic flowchart of a data transmission method according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to a first embodiment of the invention;
fig. 8 is a schematic structural diagram of an electronic device according to a second embodiment of the invention;
fig. 9 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention;
fig. 11 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention;
fig. 12 is a schematic structural composition diagram of an electronic device according to a sixth embodiment of the present invention;
FIG. 13 is a first diagram illustrating a relationship between airflow directions and a second electronic device according to an embodiment of the present invention;
fig. 14 is a second diagram illustrating a positional relationship between the airflow direction and the second electronic device according to the embodiment of the invention.
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
Fig. 1 is a flowchart illustrating a data transmission method according to a first embodiment of the present invention, where the data transmission method in this example is applied to a first electronic device, the first electronic device includes a detection unit, a storage unit capable of storing at least a first file, and a communication unit, and the first electronic device is capable of communicating with a second electronic device through the communication unit; as shown in fig. 1, the data transmission method includes the following steps:
step 101: and detecting environmental data by using the detection unit, wherein the environmental data indicate that airflow movement exists at the spatial position of the first electronic device.
In the embodiment of the invention, the first electronic device and the second electronic device can be realized through electronic devices such as a mobile phone, a tablet computer and an all-in-one machine.
In the embodiment of the present invention, the first file may be a data file with any format, such as a picture file, an audio file, a video file, and the like.
In the embodiment of the present invention, the first electronic device may be interconnected with the second electronic device by using the communication unit, and further communicate with the second electronic device through a Network, for example, a Network such as bluetooth, WIreless FIdelity (WIFI), Local Area Network (LAN), Internet (Internet), and the like.
In the embodiment of the present invention, the detection unit in the first electronic device may be a microphone or an airflow sensor; specifically, when the detection unit in the first electronic device is a microphone, the environment data detected by the microphone is audio data; when the detection unit in the first electronic device is an airflow sensor, the environmental data detected by the airflow sensor is used as airflow data.
In the embodiment of the invention, the environment data indicates that the first electronic device is in the air flow motion at the spatial position, and in practical application, a user blows air, and a microphone detects sound generated by the air blowing, namely audio data. Alternatively, the user blows air to an airflow sensor in the first electronic device, and the airflow sensor detects an airflow generated by the blowing air.
Step 102: and judging whether the environmental data meet a first condition or not to obtain a judgment result.
When the environment data is audio data detected by a microphone, step 102 is: judging whether the audio data is matched with preset standard audio data or not to obtain a matching result; specifically, first, the audio data is filtered to filter out noise; then, extracting characteristic points from the audio data, wherein the characteristic points indicate the characteristics of the audio data, and the sound generated by blowing has specific characteristic points; and finally, comparing and matching the characteristic points with the characteristic points of the standard audio data, and if the matching is successful, indicating that the audio data detected by the microphone is generated due to blowing.
When the environmental data is the airflow data detected by the airflow sensor, step 102 is: judging whether the flow direction and the flow of the airflow data are matched with standard airflow data or not to obtain a matching result; here, the standard airflow data is airflow data generated by the first electronic device due to the blowing of the user, and when the airflow data detected by the airflow sensor matches the standard airflow data, it can be determined that the airflow data is generated due to the blowing of the user.
Step 103: and when the judgment result shows that the environment data meets the first condition, generating a first instruction.
Here, the environmental data satisfies the first condition, i.e., the environmental data is generated by a user blowing air.
In the above solution, the generated first instruction is used to send the first file stored in the storage unit to the second electronic device, see step 104 as follows.
Step 104: and responding to the first instruction, and sending the first file stored in the storage unit to the second electronic equipment.
In the above technical solution of the embodiment of the present invention, the detection unit in the first electronic device detects environmental data, that is, data related to the movement of the air flow, of a spatial position where the first electronic device is located, and when the detected environmental data meets a first condition, it indicates that a user blows air, and the first electronic device sends the first file stored in the storage unit to the second electronic device. So, the user only needs through the operation of blowing, alright send first file to second electronic equipment to, under some scenes, for example when the user beats the keyboard through both hands and types, the user need not to touch first electronic equipment, only need through the operation of blowing alright send first file to second electronic equipment, and operation mode simple accurate, and increased the interest of operation, promoted user's experience.
Fig. 2 is a flowchart illustrating a data transmission method according to a second embodiment of the present invention, where the data transmission method in this example is applied to a first electronic device, the first electronic device includes a detection unit, a storage unit capable of storing at least a first file, and a communication unit, and the first electronic device is capable of communicating with a second electronic device through the communication unit; as shown in fig. 2, the data transmission method includes the following steps:
step 201: and detecting environmental data by using the detection unit, wherein the environmental data indicate that airflow movement exists at the spatial position of the first electronic device.
In the embodiment of the invention, the first electronic device and the second electronic device can be realized through electronic devices such as a mobile phone, a tablet computer and an all-in-one machine.
In the embodiment of the present invention, the first file may be a data file with any format, such as a picture file, an audio file, a video file, and the like.
In the embodiment of the present invention, the first electronic device may be interconnected with the second electronic device by using the communication unit, and further communicate with the second electronic device through a network, such as bluetooth, WIFI, LAN, Internet, and the like.
In the embodiment of the present invention, the detection unit in the first electronic device may be a microphone or an airflow sensor; specifically, when the detection unit in the first electronic device is a microphone, the environment data detected by the microphone is audio data; when the detection unit in the first electronic device is an airflow sensor, the environmental data detected by the airflow sensor is used as airflow data.
In the embodiment of the invention, the environment data indicates that the first electronic device is in the air flow motion at the spatial position, and in practical application, a user blows air, and a microphone detects sound generated by the air blowing, namely audio data. Alternatively, the user blows air to an airflow sensor in the first electronic device, and the airflow sensor detects an airflow generated by the blowing air.
Step 202: obtaining a first operation for determining the first file from a plurality of files stored by the storage unit, the first operation lasting from time T1 to time T2.
Here, the first operation may be a touch operation on a touch display screen of the first electronic device, a key operation on a key of the first electronic device, a gesture operation, a voice operation, or the like.
In the embodiment of the present invention, the trigger time of the first operation is referred to as time T1, the first operation is a continuous operation, and the end time of the first operation is referred to as time T2.
In practical application, icons corresponding to a plurality of files stored in the storage unit are displayed on the touch display screen of the first electronic device, and a user can select a file to be sent to the second electronic device through a first operation, for example, touching the icon. Here, the selected file to be transmitted to the second electronic device is referred to as a first file.
Step 203: and judging whether the environmental data meet a first condition or not to obtain a judgment result.
When the environment data is audio data detected by a microphone, step 202 is: judging whether the audio data is matched with preset standard audio data or not to obtain a matching result; specifically, first, the audio data is filtered to filter out noise; then, extracting characteristic points from the audio data, wherein the characteristic points indicate the characteristics of the audio data, and the sound generated by blowing has specific characteristic points; and finally, comparing and matching the characteristic points with the characteristic points of the standard audio data, and if the matching is successful, indicating that the audio data detected by the microphone is generated due to blowing.
When the environmental data is the airflow data detected by the airflow sensor, step 202 is: judging whether the flow direction and the flow of the airflow data are matched with standard airflow data or not to obtain a matching result; here, the standard airflow data is airflow data generated by the first electronic device due to the blowing of the user, and when the airflow data detected by the airflow sensor matches the standard airflow data, it can be determined that the airflow data is generated due to the blowing of the user.
Step 204: and when the judgment result shows that the environment data meet the first condition, recording the current time as T3 time.
Here, the environmental data satisfies the first condition, i.e., the environmental data is generated by a user blowing air.
Step 205: when the time T3 is later than or equal to the time T1 and earlier than or equal to the time T2, the first instruction is generated.
Here, the time T3 is between the times T1 and T2, indicating that the environmental data of the first electronic device satisfies the first condition while the first electronic device obtains the first operation. In practical application, a user can implement a first operation to select a first file; blowing air during the implementation of the first operation to generate a first instruction for sending the first file stored in the storage unit to the second electronic device, see step 206 below.
In this embodiment of the present invention, after obtaining a first operation, the first operation is configured to determine the first file from the plurality of files stored in the storage unit, and generate a first instruction when the determination result indicates that the environment data satisfies the first condition. In practical application, a user may select the first file in advance through a first operation, and then blow air to the detection unit in the first electronic device to generate the first instruction.
In the embodiment of the present invention, a file displayed on a current display screen of the first electronic device may also be used as the first file, and when the determination result indicates that the environment data meets the first condition, the first instruction is generated. In practical application, the user can display a file to be sent to the second electronic device on the display screen, and then blow air to the detection unit in the first electronic device to generate the first instruction.
Step 206: and responding to the first instruction, and sending the first file stored in the storage unit to the second electronic equipment.
In the above technical solution of the embodiment of the present invention, the detection unit in the first electronic device detects environmental data, that is, data related to airflow movement, of a spatial position where the first electronic device is located, when the detected environmental data meets a first condition, it is indicated that a user blows air, and when the user blows air in a process of triggering the first operation, the first electronic device sends the first file stored in the storage unit to the second electronic device. According to the embodiment of the invention, the first file to be sent can be selected through the first operation, and meanwhile, the first file is sent to the second electronic equipment only by blowing in the process of triggering the first operation, so that the misoperation caused by the mistaken blowing of a user or the airflow in other non-blowing modes is avoided, and the operation accuracy is improved.
Fig. 3 is a flowchart illustrating a data transmission method according to a third embodiment of the present invention, where the data transmission method in this example is applied to a first electronic device, where the first electronic device includes a detection unit, a storage unit capable of storing at least a first file, and a communication unit, and the first electronic device is capable of communicating with N second electronic devices through the communication unit, where N is an integer greater than 1; as shown in fig. 3, the data transmission method includes the following steps:
step 301: and detecting environmental data by using the detection unit, wherein the environmental data indicate that airflow movement exists at the spatial position of the first electronic device.
In the embodiment of the invention, the first electronic device and the second electronic device can be realized through electronic devices such as a mobile phone, a tablet computer and an all-in-one machine.
In the embodiment of the present invention, the first file may be a data file with any format, such as a picture file, an audio file, a video file, and the like.
In the embodiment of the present invention, the first electronic device may be interconnected with the second electronic device by using the communication unit, and further communicate with the second electronic device through a network, such as bluetooth, WIFI, LAN, Internet, and the like.
In the embodiment of the present invention, the detection unit in the first electronic device may be a microphone or an airflow sensor; specifically, when the detection unit in the first electronic device is a microphone, the environment data detected by the microphone is audio data; when the detection unit in the first electronic device is an airflow sensor, the environmental data detected by the airflow sensor is used as airflow data.
In the embodiment of the invention, the environment data indicates that the first electronic device is in the air flow motion at the spatial position, and in practical application, a user blows air, and a microphone detects sound generated by the air blowing, namely audio data. Alternatively, the user blows air to an airflow sensor in the first electronic device, and the airflow sensor detects an airflow generated by the blowing air.
Step 302: and judging whether the environmental data meet a first condition or not to obtain a judgment result.
When the environment data is audio data detected by a microphone, step 302 is: judging whether the audio data is matched with preset standard audio data or not to obtain a matching result; specifically, first, the audio data is filtered to filter out noise; then, extracting characteristic points from the audio data, wherein the characteristic points indicate the characteristics of the audio data, and the sound generated by blowing has specific characteristic points; and finally, comparing and matching the characteristic points with the characteristic points of the standard audio data, and if the matching is successful, indicating that the audio data detected by the microphone is generated due to blowing.
When the environmental data is the airflow data detected by the airflow sensor, step 302 is: judging whether the flow direction and the flow of the airflow data are matched with standard airflow data or not to obtain a matching result; here, the standard airflow data is airflow data generated by the first electronic device due to the blowing of the user, and when the airflow data detected by the airflow sensor matches the standard airflow data, it can be determined that the airflow data is generated due to the blowing of the user.
Step 303: and when the judgment result shows that the environmental data meet the first condition, analyzing the environmental data to obtain the flow direction parameter of the airflow motion shown by the environmental data.
Here, the environmental data satisfies the first condition, i.e., the environmental data is generated by a user blowing air.
In an embodiment of the invention, the parameters characterizing the movement of the gas flow at least comprise: flow direction parameters, flow parameters, and flow rate parameters. The flow direction parameter indicates a direction of the air flow movement, and in practical application, a user can blow air to the detection unit of the first electronic device in different directions. The detection unit of the first electronic device analyzes the detected environment data to obtain the flow direction parameter.
Step 304: and determining M second electronic devices from the N second electronic devices according to the flow direction parameters of the environment data, and generating a first instruction.
Here, M is a positive integer equal to or less than N.
In the above scheme, the generated first instruction is used to send the first file stored in the storage unit to the M second electronic devices, see step 305 as follows.
Step 305: and responding to the first instruction, and sending the first file stored in the storage unit to the M second electronic devices.
In the technical solution of the embodiment of the present invention, a detection unit in a first electronic device detects environmental data of a spatial position where the first electronic device is located, that is, data related to airflow movement, when the detected environmental data meets a first condition, it indicates that a user blows air, and the first electronic device determines M second electronic devices from N second electronic devices according to flow direction parameters of the airflow movement, and further sends a first file stored in a storage unit to the M second electronic devices. So, the user only needs through the operation of blowing, alright send first file to M second electronic equipment to, under some scenes, for example when the user beats the keyboard through both hands and types, the user need not to touch first electronic equipment, only need through the operation of blowing alright send first file to M second electronic equipment, operation mode simple accurate, and increased the interest of operation, promoted user's experience.
Fig. 4 is a schematic flowchart of a data transmission method according to a fourth embodiment of the present invention, where the data transmission method in this example is applied to a first electronic device, where the first electronic device includes a detection unit, a storage unit capable of storing at least a first file, and a communication unit, and the first electronic device is capable of communicating with N second electronic devices through the communication unit, where N is an integer greater than 1; as shown in fig. 4, the data transmission method includes the following steps:
step 401: and detecting environmental data by using the detection unit, wherein the environmental data indicate that airflow movement exists at the spatial position of the first electronic device.
In the embodiment of the invention, the first electronic device and the second electronic device can be realized through electronic devices such as a mobile phone, a tablet computer and an all-in-one machine.
In the embodiment of the present invention, the first file may be a data file with any format, such as a picture file, an audio file, a video file, and the like.
In the embodiment of the present invention, the first electronic device may be interconnected with the second electronic device by using the communication unit, and further communicate with the second electronic device through a network, such as bluetooth, WIFI, LAN, Internet, and the like.
In the embodiment of the present invention, the detection unit in the first electronic device may be a microphone or an airflow sensor; specifically, when the detection unit in the first electronic device is a microphone, the environment data detected by the microphone is audio data; when the detection unit in the first electronic device is an airflow sensor, the environmental data detected by the airflow sensor is used as airflow data.
In the embodiment of the invention, the environment data indicates that the first electronic device is in the air flow motion at the spatial position, and in practical application, a user blows air, and a microphone detects sound generated by the air blowing, namely audio data. Alternatively, the user blows air to an airflow sensor in the first electronic device, and the airflow sensor detects an airflow generated by the blowing air.
Step 402: and judging whether the environmental data meet a first condition or not to obtain a judgment result.
When the environment data is audio data detected by a microphone, step 402 is: judging whether the audio data is matched with preset standard audio data or not to obtain a matching result; specifically, first, the audio data is filtered to filter out noise; then, extracting characteristic points from the audio data, wherein the characteristic points indicate the characteristics of the audio data, and the sound generated by blowing has specific characteristic points; and finally, comparing and matching the characteristic points with the characteristic points of the standard audio data, and if the matching is successful, indicating that the audio data detected by the microphone is generated due to blowing.
When the environmental data is the airflow data detected by the airflow sensor, step 402 is: judging whether the flow direction and the flow of the airflow data are matched with standard airflow data or not to obtain a matching result; here, the standard airflow data is airflow data generated by the first electronic device due to the blowing of the user, and when the airflow data detected by the airflow sensor matches the standard airflow data, it can be determined that the airflow data is generated due to the blowing of the user.
Step 403: and when the judgment result shows that the environmental data meet the first condition, analyzing the environmental data to obtain the flow direction parameter of the airflow motion shown by the environmental data.
Here, the environmental data satisfies the first condition, i.e., the environmental data is generated by a user blowing air.
In an embodiment of the invention, the parameters characterizing the movement of the gas flow at least comprise: flow direction parameters, flow parameters, and flow rate parameters. The flow direction parameter indicates a direction of the air flow movement, and in practical application, a user can blow air to the detection unit of the first electronic device in different directions. The detection unit of the first electronic device analyzes the detected environment data to obtain the flow direction parameter.
Step 404: obtaining location parameters of the N second electronic devices, wherein the location parameters indicate locations of the second electronic devices relative to the first electronic device.
In the embodiment of the present invention, the position parameters of the N second electronic devices may be obtained in a sound localization manner, and specifically, the first electronic device transmits sound waves to the N second electronic devices and receives sound waves returned by the N second electronic devices, so as to determine the position of the second electronic device according to a time interval between the transmission of the sound waves and the reception of the sound waves. In practical applications, the first electronic device may detect the position parameters of the N second electronic devices through the radar device.
Step 405: and determining a position parameter meeting a second condition according to the flow direction parameter of the environment data.
In the embodiment of the present invention, the position parameter of the second electronic device indicates a position of the second electronic device relative to the first electronic device, and therefore, the position parameter of the second electronic device may be represented by a vector having a direction and a magnitude. Similarly, the flow direction parameter of the environmental data represents the direction and the flow rate of the air flow movement of the environmental data, and therefore, the flow direction parameter of the environmental data can also be represented by a vector having a direction and a magnitude. Based on this, the second condition in the above scheme may be: an included angle between the vector of the second electronic device and the vector of the environment data is less than or equal to a preset threshold, for example, 30 degrees. The second condition in the above scheme may also be: the difference between the absolute value of the vector of the second electronic device and the absolute value of the vector of the environment data is less than or equal to a preset threshold. The second condition in the above scheme may be that the above two conditions are satisfied simultaneously.
The N pieces of second electronic equipment in the embodiment of the invention are separated from the first electronic equipment and are in non-contact with the first electronic equipment.
Step 406: and determining M second electronic devices corresponding to the position parameters meeting the second condition from the N second electronic devices according to the mapping relation between the N second electronic devices and the position parameters, and generating a first instruction.
Here, M is a positive integer equal to or less than N.
Here, the mapping relationship between the N second electronic devices and the location parameter is stored in the first electronic device in advance.
In the embodiment of the present invention, each second electronic device has a different position relative to the first electronic device, and the directions of the second electronic devices relative to the first electronic device are also different, for example, when M is 5, as shown in fig. 13, the directions of the 5 second electronic devices are A, B, C, D, E respectively, and the directions of the 5 electronic devices relative to the first electronic device are different, and when the flow direction parameter of the environmental data indicates that the flow direction of the airflow is in the C direction, B, C, D may be selected as the second electronic device of the first file to be sent.
In the above solution, the generated first instruction is used to send the first file stored in the storage unit to the M second electronic devices, see step 407 as follows.
Step 407: and responding to the first instruction, and sending the first file stored in the storage unit to the M second electronic devices.
In the technical solution of the embodiment of the present invention, a detection unit in a first electronic device detects environmental data of a spatial position where the first electronic device is located, that is, data related to airflow movement, and when the detected environmental data meets a first condition, it indicates that a user blows air, and the first electronic device determines M second electronic devices from N second electronic devices according to a flow direction parameter of the airflow movement and position parameters of the M second electronic devices, and further sends a first file stored in a storage unit to the M second electronic devices. So, the user only needs through the operation of blowing, alright send first file to M second electronic equipment to, under some scenes, for example when the user beats the keyboard through both hands and types, the user need not to touch first electronic equipment, only need through the operation of blowing alright send first file to M second electronic equipment, operation mode simple accurate, and increased the interest of operation, promoted user's experience.
Fig. 5 is a schematic flow chart of a data transmission method according to a fifth embodiment of the present invention, where the data transmission method in this example is applied to a first electronic device, where the first electronic device includes a detection unit, a storage unit capable of storing at least a first file, and a communication unit, and the first electronic device is capable of communicating with N second electronic devices through the communication unit, where N is an integer greater than 1; the first electronic device is provided with a supporting surface which can support the N second electronic devices; the supporting surface is provided with an induction unit; as shown in fig. 5, the data transmission method includes the following steps:
step 501: and detecting environmental data by using the detection unit, wherein the environmental data indicate that airflow movement exists at the spatial position of the first electronic device.
In the embodiment of the invention, the first electronic device and the second electronic device can be realized through electronic devices such as a mobile phone, a tablet computer and an all-in-one machine.
In the embodiment of the present invention, the first file may be a data file with any format, such as a picture file, an audio file, a video file, and the like.
In the embodiment of the present invention, the first electronic device may be interconnected with the second electronic device by using the communication unit, and further communicate with the second electronic device through a network, such as bluetooth, WIFI, LAN, Internet, and the like.
In the embodiment of the present invention, the detection unit in the first electronic device may be a microphone or an airflow sensor; specifically, when the detection unit in the first electronic device is a microphone, the environment data detected by the microphone is audio data; when the detection unit in the first electronic device is an airflow sensor, the environmental data detected by the airflow sensor is used as airflow data.
In the embodiment of the invention, the environment data indicates that the first electronic device is in the air flow motion at the spatial position, and in practical application, a user blows air, and a microphone detects sound generated by the air blowing, namely audio data. Alternatively, the user blows air to an airflow sensor in the first electronic device, and the airflow sensor detects an airflow generated by the blowing air.
Step 502: and judging whether the environmental data meet a first condition or not to obtain a judgment result.
When the environment data is audio data detected by a microphone, step 502 is: judging whether the audio data is matched with preset standard audio data or not to obtain a matching result; specifically, first, the audio data is filtered to filter out noise; then, extracting characteristic points from the audio data, wherein the characteristic points indicate the characteristics of the audio data, and the sound generated by blowing has specific characteristic points; and finally, comparing and matching the characteristic points with the characteristic points of the standard audio data, and if the matching is successful, indicating that the audio data detected by the microphone is generated due to blowing.
When the environmental data is the airflow data detected by the airflow sensor, step 502 is: judging whether the flow direction and the flow of the airflow data are matched with standard airflow data or not to obtain a matching result; here, the standard airflow data is airflow data generated by the first electronic device due to the blowing of the user, and when the airflow data detected by the airflow sensor matches the standard airflow data, it can be determined that the airflow data is generated due to the blowing of the user.
Step 503: and when the judgment result shows that the environmental data meet the first condition, analyzing the environmental data to obtain the flow direction parameter of the airflow motion shown by the environmental data.
Here, the environmental data satisfies the first condition, i.e., the environmental data is generated by a user blowing air.
In an embodiment of the invention, the parameters characterizing the movement of the gas flow at least comprise: flow direction parameters, flow parameters, and flow rate parameters. The flow direction parameter indicates a direction of the air flow movement, and in practical application, a user can blow air to the detection unit of the first electronic device in different directions. The detection unit of the first electronic device analyzes the detected environment data to obtain the flow direction parameter.
Step 504: and detecting position parameters of the N pieces of second electronic equipment by using the sensing units on the supporting surface, wherein the position parameters indicate the positions of the second electronic equipment relative to the supporting surface.
In an embodiment of the present invention, the N second electronic devices are in contact with the first electronic device, and the N second electronic devices are disposed on a supporting surface of the first electronic device, in a specific implementation, the supporting surface of the first electronic device may be a touch display screen with a touch display function, and the touch display screen may acquire position parameters of the N second electronic devices through a Near Field Communication (NFC) technology, or may determine the position parameters of the N second electronic devices through a capacitance/electric Field induction of the N second electronic devices.
Step 505: and analyzing the environmental data to obtain a mapping position of the airflow generation position relative to the supporting surface.
When the environment data is audio data detected by the microphone array, step 505 is: analyzing the audio data to obtain a plurality of subdata of the audio data, wherein each subdata is detected by one microphone in the microphone array; the position of the air flow generation, i.e. the position of the sound-generating source, can be localized by a plurality of microphones of the microphone array.
When the environmental data is the airflow data detected by the airflow sensor, step 505 is: and analyzing the airflow data to obtain the airflow generation position of the airflow data.
Embodiments of the present invention refer to the position of the airflow-generating location relative to the support surface as the mapped location.
Step 506: and determining a position parameter meeting a third condition according to the mapping position and the flow direction parameter of the environment data.
In the embodiment of the present invention, the position parameter of the second electronic device indicates a position of the second electronic device relative to the supporting surface of the first electronic device, and therefore, the position parameter of the second electronic device can be represented by a vector having a direction and a magnitude. Similarly, the flow direction parameter of the environment data characterizes the direction and the flow rate of the air flow movement of the environment data, and the mapping position is the mapping position of the air flow generating position relative to the supporting surface, so that a vector with the direction and the size, which is called a reference vector, can be determined based on the mapping position and the flow direction parameter. Based on this, the third condition in the above scheme may be: an included angle between the vector of the second electronic device and the reference vector is less than or equal to a preset threshold, for example, 30 degrees. The third condition in the above scheme may also be: the difference between the absolute value of the vector of the second electronic device and the absolute value of the reference vector is less than or equal to a preset threshold. The third condition in the above scheme may be that the above two conditions are satisfied simultaneously.
Step 507: determining M second electronic devices corresponding to the location parameters satisfying the third condition from the N second electronic devices, and generating a first instruction.
Here, M is a positive integer equal to or less than N.
In the embodiment of the present invention, M second electronic devices are disposed on the supporting surface of the first electronic device, and referring to fig. 14, 5 second electronic devices are A, B, C, D, E respectively, and the positions of the 5 second electronic devices relative to the supporting surface are different, and according to the mapping position of the airflow generation position relative to the supporting surface and the airflow direction, the second electronic device that satisfies the condition, that is, E and B in fig. 5, can be determined.
In the above solution, the generated first instruction is used to send the first file stored in the storage unit to the M second electronic devices, see step 508 as follows.
Step 508: and responding to the first instruction, and sending the first file stored in the storage unit to the M second electronic devices.
In the above technical solution of the embodiment of the present invention, the detection unit in the first electronic device detects environmental data of a spatial position where the first electronic device is located, that is, data related to the air flow movement, and when the detected environmental data meets a first condition, it indicates that a user blows air, and the first electronic device determines M second electronic devices from the N second electronic devices according to the flow direction parameter of the air flow movement and the mapping position of the air flow generation position with respect to the supporting surface, and sends the first file stored in the storage unit to the M second electronic devices. So, the user only needs through the operation of blowing, alright send first file to the M two electronic equipment to, under some scenes, for example when the user beats the keyboard through both hands and type, the user need not to touch first electronic equipment, only need through the operation of blowing alright send first file to M two electronic equipment, operation mode simple accurate, and increased the interest of operation, promoted user's experience.
Fig. 6 is a schematic flowchart of a data transmission method according to a sixth embodiment of the present invention, where the data transmission method in this example is applied to a first electronic device, where the first electronic device includes a detection unit, a storage unit capable of storing at least a first file, and a communication unit, and the first electronic device is capable of communicating with N second electronic devices through the communication unit, where N is an integer greater than 1; the first electronic device is provided with a supporting surface which can support the N second electronic devices; the supporting surface is provided with an induction unit; the supporting surface is also provided with a display unit, and the display unit displays at least one file identifier; as shown in fig. 6, the data transmission method includes the following steps:
step 601: and detecting environmental data by using the detection unit, wherein the environmental data indicate that airflow movement exists at the spatial position of the first electronic device.
In the embodiment of the invention, the first electronic device and the second electronic device can be realized through electronic devices such as a mobile phone, a tablet computer and an all-in-one machine.
In the embodiment of the present invention, the first file may be a data file with any format, such as a picture file, an audio file, a video file, and the like.
In the embodiment of the present invention, the first electronic device may be interconnected with the second electronic device by using the communication unit, and further communicate with the second electronic device through a network, such as bluetooth, WIFI, LAN, Internet, and the like.
In the embodiment of the present invention, the detection unit in the first electronic device may be a microphone or an airflow sensor; specifically, when the detection unit in the first electronic device is a microphone, the environment data detected by the microphone is audio data; when the detection unit in the first electronic device is an airflow sensor, the environmental data detected by the airflow sensor is used as airflow data.
In the embodiment of the invention, the environment data indicates that the first electronic device is in the air flow motion at the spatial position, and in practical application, a user blows air, and a microphone detects sound generated by the air blowing, namely audio data. Alternatively, the user blows air to an airflow sensor in the first electronic device, and the airflow sensor detects an airflow generated by the blowing air.
Step 602: and judging whether the environmental data meet a first condition or not to obtain a judgment result.
When the environment data is audio data detected by a microphone, step 602 is: judging whether the audio data is matched with preset standard audio data or not to obtain a matching result; specifically, first, the audio data is filtered to filter out noise; then, extracting characteristic points from the audio data, wherein the characteristic points indicate the characteristics of the audio data, and the sound generated by blowing has specific characteristic points; and finally, comparing and matching the characteristic points with the characteristic points of the standard audio data, and if the matching is successful, indicating that the audio data detected by the microphone is generated due to blowing.
When the environmental data is the airflow data detected by the airflow sensor, step 602 is: judging whether the flow direction and the flow of the airflow data are matched with standard airflow data or not to obtain a matching result; here, the standard airflow data is airflow data generated by the first electronic device due to the blowing of the user, and when the airflow data detected by the airflow sensor matches the standard airflow data, it can be determined that the airflow data is generated due to the blowing of the user.
Step 603: and when the judgment result shows that the environmental data meet the first condition, analyzing the environmental data to obtain the flow direction parameter of the airflow motion shown by the environmental data.
Here, the environmental data satisfies the first condition, i.e., the environmental data is generated by a user blowing air.
In an embodiment of the invention, the parameters characterizing the movement of the gas flow at least comprise: flow direction parameters, flow parameters, and flow rate parameters. The flow direction parameter indicates a direction of the air flow movement, and in practical application, a user can blow air to the detection unit of the first electronic device in different directions. The detection unit of the first electronic device analyzes the detected environment data to obtain the flow direction parameter.
Step 604: and detecting position parameters of the N pieces of second electronic equipment by using the sensing units on the supporting surface, wherein the position parameters indicate the positions of the second electronic equipment relative to the supporting surface.
In the embodiment of the present invention, the N second electronic devices are in contact with the first electronic device, and the N second electronic devices are disposed on the supporting surface of the first electronic device, in a specific implementation, the supporting surface of the first electronic device may be a touch display screen with a touch display function, and the touch display screen may acquire the position parameters of the N second electronic devices through an NFC technology, or sense the N second electronic devices through a capacitor/electric field, so as to determine the position parameters of the N second electronic devices.
Step 605: and analyzing the environmental data to obtain a mapping position of the airflow generation position relative to the supporting surface.
When the environment data is audio data detected by a microphone array, step 605 is: analyzing the audio data to obtain a plurality of subdata of the audio data, wherein each subdata is detected by one microphone in the microphone array; the position of the air flow generation, i.e. the position of the sound-generating source, can be localized by a plurality of microphones of the microphone array.
When the environmental data is the airflow data detected by the airflow sensor, step 605 is: and analyzing the airflow data to obtain the airflow generation position of the airflow data.
Embodiments of the present invention refer to the position of the airflow-generating location relative to the support surface as the mapped location.
Step 606: and determining a position parameter meeting a third condition according to the mapping position and the flow direction parameter of the environment data.
In the embodiment of the present invention, the position parameter of the second electronic device indicates a position of the second electronic device relative to the supporting surface of the first electronic device, and therefore, the position parameter of the second electronic device can be represented by a vector having a direction and a magnitude. Similarly, the flow direction parameter of the environment data characterizes the direction and the flow rate of the air flow movement of the environment data, and the mapping position is the mapping position of the air flow generating position relative to the supporting surface, so that a vector with the direction and the size, which is called a reference vector, can be determined based on the mapping position and the flow direction parameter. Based on this, the third condition in the above scheme may be: an included angle between the vector of the second electronic device and the reference vector is less than or equal to a preset threshold, for example, 30 degrees. The third condition in the above scheme may also be: the difference between the absolute value of the vector of the second electronic device and the absolute value of the reference vector is less than or equal to a preset threshold. The third condition in the above scheme may be that the above two conditions are satisfied simultaneously.
Step 607: determining M second electronic devices corresponding to the location parameters satisfying the third condition from the N second electronic devices.
Here, M is a positive integer equal to or less than N.
In the embodiment of the present invention, M second electronic devices are disposed on the supporting surface of the first electronic device, and referring to fig. 14, 5 second electronic devices are A, B, C, D, E respectively, and the positions of the 5 second electronic devices relative to the supporting surface are different, and according to the mapping position of the airflow generation position relative to the supporting surface and the airflow direction, the second electronic device that satisfies the condition, that is, E and B in fig. 5, can be determined.
In the above solution, the generated first instruction is used to send the first file stored in the storage unit to the M second electronic devices, see step 608 as follows.
Step 608: and determining the file identification meeting a fourth condition according to the mapping position of the airflow generation position relative to the supporting surface.
In the embodiment of the invention, the file identification displayed on the display unit corresponds to the file.
Here, the fourth condition may be, but is not limited to, the following condition:
the distance between the position of the file identifier and the mapping position is shortest; or,
the distance between the position of the file identifier and the mapping position is less than or equal to a threshold value; or,
the position of the file identifier is in the direction of the flow direction parameter, and the distance between the position of the file identifier and the mapping position is shortest; or,
the positions of the file identifications are all the file identifications in the direction of the flow direction parameter.
Step 609: and determining the file corresponding to the file identifier meeting the fourth condition as a first file, and generating a first instruction.
Step 610: and responding to the first instruction, and sending the first file stored in the storage unit to the M second electronic devices.
In the technical scheme of the embodiment of the invention, a detection unit in first electronic equipment detects environmental data of a space position where the first electronic equipment is located, namely data related to airflow movement, when the detected environmental data meets a first condition, it is indicated that a user blows air, the first electronic equipment determines M second electronic equipment from N second electronic equipment according to a flow direction parameter of the airflow movement and a mapping position of an airflow generation position relative to a supporting surface, the first electronic equipment determines a file identifier meeting the condition according to the flow direction parameter of the airflow movement, and then determines a first file; and the M second electronic devices send the first files stored in the storage unit, and in some scenes, for example, when a user clicks a keyboard through two hands to type, the user does not need to touch the first electronic devices, and can send the first files to the M second electronic devices only through blowing operation.
Fig. 7 is a schematic structural composition diagram of an electronic device according to a first embodiment of the present invention, and as shown in fig. 7, the electronic device includes: a detection unit 71, a storage unit 72 capable of storing at least a first file, and a communication unit 73, wherein the electronic device is capable of communicating with a second electronic device through the communication unit 73; the electronic device further includes: a judging unit 74, a generating unit 75, and a responding unit 76; wherein,
the detection unit 71 is configured to detect environmental data, where the environmental data indicates that there is airflow movement at a spatial location of the electronic device;
the judging unit 74 is configured to judge whether the environment data meets a first condition, so as to obtain a judgment result;
the generating unit 75 is configured to generate a first instruction when the determination result indicates that the environment data satisfies the first condition;
the responding unit 76 is configured to send the first file stored in the storage unit 72 to the second electronic device in response to the first instruction.
Those skilled in the art will appreciate that the functions implemented by the units in the electronic device shown in fig. 7 can be understood by referring to the related description of the data transmission method.
Fig. 8 is a schematic structural composition diagram of an electronic device according to a second embodiment of the present invention, and as shown in fig. 8, the electronic device includes: the electronic device comprises a detection unit 81, a storage unit 82 capable of storing at least a first file, and a communication unit 83, wherein the electronic device can communicate with a second electronic device through the communication unit 83; the electronic device further includes: a judging unit 84, a generating unit 85, and a responding unit 86; wherein,
the detecting unit 81 is configured to detect environmental data, where the environmental data indicates that there is airflow movement at a spatial location of the electronic device;
the judging unit 84 is configured to judge whether the environment data meets a first condition, so as to obtain a judgment result;
the generating unit 85 is configured to generate a first instruction when the determination result indicates that the environment data satisfies the first condition;
the responding unit 86 is configured to send the first file stored in the storage unit 82 to the second electronic device in response to the first instruction.
Preferably, the electronic device further includes: an acquisition unit 87, a recording unit 88; wherein,
the obtaining unit 87 is configured to obtain a first operation, the first operation is used for determining the first file from the plurality of files stored in the storage unit 82, and the first operation lasts from time T1 to time T2;
the recording unit 88 is configured to record a current time as a time T3 when the determination result indicates that the environment data satisfies the first condition;
accordingly, the generating unit 85 is further configured to generate the first instruction when the time T3 is later than or equal to the time T1 and earlier than or equal to the time T2.
Those skilled in the art will understand that the functions implemented by the units in the electronic device shown in fig. 8 can be understood by referring to the related description of the data transmission method.
Fig. 9 is a schematic structural composition diagram of an electronic device according to a third embodiment of the present invention, and as shown in fig. 9, the electronic device includes: the electronic device comprises a detection unit 91, a storage unit 92 capable of storing at least a first file, and a communication unit 93, wherein the electronic device can communicate with a second electronic device through the communication unit 93; the electronic device further includes: a judging unit 94, a generating unit 95, and a responding unit 96; wherein,
the detection unit 91 is configured to detect environmental data, where the environmental data indicates that there is airflow movement at a spatial location of the electronic device;
the judging unit 94 is configured to judge whether the environment data meets a first condition, so as to obtain a judgment result;
the generating unit 95 is configured to generate a first instruction when the determination result indicates that the environment data satisfies the first condition;
the response unit 96 is configured to send the first file stored in the storage unit 92 to the second electronic device in response to the first instruction.
Preferably, the first electronic device is capable of communicating with N second electronic devices through the communication unit 93, where N is an integer greater than 1, and the electronic device further includes: an analysis unit 97, a first determination unit 98; wherein,
the analyzing unit 97 is configured to analyze the environment data to obtain a flow direction parameter of the airflow motion indicated by the environment data;
the first determining unit 98 is configured to determine M second electronic devices from the N second electronic devices according to a flow parameter of the environment data, where M is a positive integer less than or equal to N;
correspondingly, the responding unit 96 is further configured to send the first file stored in the storage unit to the M second electronic devices in response to the first instruction.
Those skilled in the art will understand that the functions implemented by the units in the electronic device shown in fig. 9 can be understood by referring to the related description of the data transmission method.
Fig. 10 is a schematic structural composition diagram of an electronic device according to a fourth embodiment of the present invention, and as shown in fig. 10, the electronic device includes: the electronic equipment comprises a detection unit 11, a storage unit 12 and a communication unit 13, wherein the storage unit 12 can at least store a first file, and the electronic equipment can communicate with second electronic equipment through the communication unit 13; the electronic device further includes: a judging unit 14, a generating unit 15, and a responding unit 16; wherein,
the detection unit 11 is configured to detect environmental data, where the environmental data indicates that there is airflow movement at a spatial location of the electronic device;
the judging unit 14 is configured to judge whether the environment data meets a first condition, and obtain a judgment result;
the generating unit 15 is configured to generate a first instruction when the determination result indicates that the environment data satisfies the first condition;
the response unit 16 is configured to send the first file stored in the storage unit 12 to the second electronic device in response to the first instruction.
Preferably, the first electronic device is capable of communicating with N second electronic devices through the communication unit 13, where N is an integer greater than 1, and the electronic device further includes: an analysis unit 17 and a first determination unit 18; wherein,
the analyzing unit 17 is configured to analyze the environment data to obtain a flow direction parameter of the airflow motion indicated by the environment data;
the first determining unit 18 is configured to determine, according to the flow direction parameter of the environment data, M second electronic devices from the N second electronic devices, where M is a positive integer less than or equal to N;
correspondingly, the responding unit 16 is further configured to send the first file stored in the storage unit to the M second electronic devices in response to the first instruction.
Preferably, the first determination unit 18 includes: an acquisition subunit 181, a first determination subunit 182, a second determination subunit 183; wherein,
the acquiring subunit 181 is configured to acquire location parameters of the N second electronic devices, where the location parameters indicate locations of the second electronic devices relative to the electronic devices;
the first determining subunit 182 is configured to determine, according to the flow direction parameter of the environment data, a location parameter that meets a second condition;
the second determining subunit 183 is configured to determine, according to the mapping relationship between the N second electronic devices and the location parameter, M second electronic devices corresponding to the location parameter meeting the second condition from the N second electronic devices.
Those skilled in the art will understand that the implementation functions of each unit and its sub-units in the electronic device shown in fig. 10 can be understood by referring to the related description of the foregoing data transmission method.
Fig. 11 is a schematic structural composition diagram of an electronic device according to a fifth embodiment of the present invention, and as shown in fig. 11, the electronic device includes: the electronic equipment comprises a detection unit 21, a storage unit 22 and a communication unit 23, wherein at least a first file can be stored in the storage unit 22, and the electronic equipment can communicate with second electronic equipment through the communication unit 23; the electronic device further includes: a judging unit 24, a generating unit 25, and a responding unit 26; wherein,
the detection unit 21 is configured to detect environmental data, where the environmental data indicates that there is airflow movement at a spatial location of the electronic device;
the judging unit 24 is configured to judge whether the environment data meets a first condition, so as to obtain a judgment result;
the generating unit 25 is configured to generate a first instruction when the determination result indicates that the environment data satisfies the first condition;
the response unit 26 is configured to send the first file stored in the storage unit 22 to the second electronic device in response to the first instruction.
Preferably, the first electronic device is capable of communicating with N second electronic devices through the communication unit 23, where N is an integer greater than 1, and the electronic device further includes: an analysis unit 27 and a first determination unit 28; wherein,
the analyzing unit 27 is configured to analyze the environment data to obtain a flow direction parameter of the airflow motion indicated by the environment data;
the first determining unit 28 is configured to determine, according to the flow parameter of the environment data, M second electronic devices from the N second electronic devices, where M is a positive integer less than or equal to N;
correspondingly, the responding unit 26 is further configured to send the first file stored in the storage unit to the M second electronic devices in response to the first instruction.
Preferably, the electronic device has a support surface capable of supporting the N second electronic devices; the first determination unit 28 includes: an induction subunit 281, an analysis subunit 282, a third determination subunit 283, and a fourth determination subunit 284; the sensor subunit 281 is arranged on the supporting surface; wherein,
the sensing subunit 281 is configured to detect position parameters of the N second electronic devices, where the position parameters indicate positions of the second electronic devices relative to the supporting surface;
the analyzing subunit 282 is configured to analyze the environment data to obtain a mapping position of the airflow generation position relative to the supporting surface;
the third determining subunit 283 is configured to determine, according to the mapping position and the flow direction parameter of the environmental data, a position parameter that meets a third condition;
the fourth determining subunit 284 is configured to determine, from the N second electronic devices, M second electronic devices corresponding to the location parameters that satisfy the third condition.
Those skilled in the art will understand that the implementation functions of each unit and its sub-units in the electronic device shown in fig. 11 can be understood by referring to the related description of the foregoing data transmission method.
Fig. 12 is a schematic structural composition diagram of an electronic device according to a sixth embodiment of the present invention, and as shown in fig. 12, the electronic device includes: the electronic equipment comprises a detection unit 31, a storage unit 32 and a communication unit 33, wherein the storage unit 32 can store at least a first file, and the electronic equipment can communicate with second electronic equipment through the communication unit 33; the electronic device further includes: a judging unit 34, a generating unit 35, and a responding unit 36; wherein,
the detection unit 31 is configured to detect environmental data, where the environmental data indicates that there is airflow movement at a spatial location of the electronic device;
the judging unit 34 is configured to judge whether the environment data meets a first condition, and obtain a judgment result;
the generating unit 35 is configured to generate a first instruction when the determination result indicates that the environment data satisfies the first condition;
the response unit 36 is configured to send the first file stored in the storage unit 32 to the second electronic device in response to the first instruction.
Preferably, the first electronic device is capable of communicating with N second electronic devices through the communication unit 33, where N is an integer greater than 1, and the electronic device further includes: an analysis unit 37 and a first determination unit 38; wherein,
the analyzing unit 37 is configured to analyze the environment data to obtain a flow direction parameter of the airflow motion indicated by the environment data;
the first determining unit 38 is configured to determine, according to the flow parameter of the environment data, M second electronic devices from the N second electronic devices, where M is a positive integer less than or equal to N;
correspondingly, the responding unit 36 is further configured to send the first file stored in the storage unit to the M second electronic devices in response to the first instruction.
Preferably, the electronic device has a support surface capable of supporting the N second electronic devices; the first determination unit 38 includes: a sensing subunit 381, an analyzing subunit 382, a third determining subunit 383, and a fourth determining subunit 384; the inductor unit 381 is arranged on the supporting surface; wherein,
the sensor subunit 381 is configured to detect position parameters of the N second electronic devices, where the position parameters indicate positions of the second electronic devices relative to the supporting surface;
the analyzing subunit 382 is configured to analyze the environment data to obtain a mapping position of the airflow generation position relative to the supporting surface;
the third determining subunit 383 is configured to determine, according to the mapping position and the flow direction parameter of the environmental data, a position parameter that meets a third condition;
the fourth determining subunit 384 is configured to determine, from the N second electronic devices, M second electronic devices corresponding to the location parameters that satisfy the third condition.
Preferably, the electronic device further includes: a display unit 39, a second determination unit 310, a third determination unit 311; the display unit 39 is arranged on the supporting surface, and the display unit 39 displays at least one file identifier; wherein,
the second determining unit 310 is configured to determine a file identifier meeting a fourth condition according to a mapping position of the airflow generating position relative to the supporting surface;
the third determining unit 311 is configured to determine, as the first file, the file corresponding to the file identifier meeting the fourth condition.
Those skilled in the art will understand that the implementation functions of each unit and its sub-units in the electronic device shown in fig. 12 can be understood by referring to the related description of the foregoing data transmission method.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (12)

1. A data transmission method is applied to first electronic equipment, wherein the first electronic equipment comprises a detection unit, a storage unit and a communication unit, the storage unit at least can store a first file, and the first electronic equipment can communicate with second electronic equipment through the communication unit; characterized in that the method comprises:
detecting environmental data by using the detection unit, wherein the environmental data indicate that airflow movement exists at a spatial position where the first electronic device is located;
judging whether the environmental data meet a first condition or not to obtain a judgment result;
when the judgment result shows that the environment data meet the first condition, generating a first instruction;
and responding to the first instruction, and sending the first file stored in the storage unit to the second electronic equipment.
2. The data transmission method of claim 1, further comprising:
obtaining a first operation for determining the first file from a plurality of files stored by the storage unit, the first operation lasting from time T1 to time T2;
when the judgment result shows that the environment data meet the first condition, recording the current time as T3 time;
when the time T3 is later than or equal to the time T1 and earlier than or equal to the time T2, the first instruction is generated.
3. The data transmission method according to claim 1, wherein the first electronic device is capable of communicating with N second electronic devices through the communication unit, where N is an integer greater than 1, the method further comprising:
analyzing the environmental data to obtain flow direction parameters of the air flow motion indicated by the environmental data;
determining M second electronic devices from the N second electronic devices according to the flow direction parameters of the environment data, wherein M is a positive integer less than or equal to N;
correspondingly, the sending the first file stored in the storage unit to the second electronic device is: and sending the first file stored in the storage unit to the M second electronic devices.
4. The data transmission method according to claim 3, wherein the determining M second electronic devices from the N second electronic devices according to the flow direction parameter of the environment data comprises:
acquiring position parameters of the N pieces of second electronic equipment, wherein the position parameters indicate the positions of the second electronic equipment relative to the first electronic equipment;
determining a position parameter meeting a second condition according to the flow direction parameter of the environment data;
and determining M second electronic devices corresponding to the position parameters meeting the second condition from the N second electronic devices according to the mapping relation between the N second electronic devices and the position parameters.
5. The data transmission method according to claim 3, wherein the first electronic device has a support surface capable of supporting the N second electronic devices; the supporting surface is provided with an induction unit;
determining M second electronic devices from the N second electronic devices according to the flow direction parameter of the environment data, including:
detecting position parameters of the N pieces of second electronic equipment by using a sensing unit on the supporting surface, wherein the position parameters indicate the positions of the second electronic equipment relative to the supporting surface;
analyzing the environmental data to obtain a mapping position of the airflow generation position relative to the supporting surface;
determining a position parameter meeting a third condition according to the mapping position and the flow direction parameter of the environment data;
determining M second electronic devices corresponding to the location parameters satisfying the third condition from the N second electronic devices.
6. The data transmission method according to claim 5, wherein a display unit is further provided on the supporting surface, the display unit displaying at least one file identifier; the method further comprises the following steps:
determining a file identifier meeting a fourth condition according to the mapping position of the airflow generation position relative to the supporting surface;
and determining the file corresponding to the file identifier meeting the fourth condition as the first file.
7. An electronic device, characterized in that the electronic device comprises: the electronic equipment comprises a detection unit, a storage unit and a communication unit, wherein the storage unit can at least store a first file, and the electronic equipment can communicate with second electronic equipment through the communication unit; the electronic device further includes: the device comprises a judging unit, a generating unit and a responding unit; wherein,
the detection unit is used for detecting environmental data, and the environmental data indicate that airflow movement exists at the spatial position of the electronic equipment;
the judging unit is used for judging whether the environment data meet a first condition or not to obtain a judgment result;
the generating unit is used for generating a first instruction when the judgment result shows that the environment data meets the first condition;
the response unit is configured to send the first file stored in the storage unit to the second electronic device in response to the first instruction.
8. The electronic device of claim 7, further comprising: an acquisition unit and a recording unit; wherein,
the obtaining unit is used for obtaining a first operation, the first operation is used for determining the first file from a plurality of files stored in the storage unit, and the first operation lasts from the time T1 to the time T2;
the recording unit is configured to record a current time as a time T3 when the determination result indicates that the environment data satisfies the first condition;
correspondingly, the generating unit is further configured to generate the first instruction when the time T3 is later than or equal to the time T1 and earlier than or equal to the time T2.
9. The electronic device according to claim 7, wherein the first electronic device is capable of communicating with N second electronic devices through the communication unit, where N is an integer greater than 1, the electronic device further comprising: an analysis unit and a first determination unit; wherein,
the analysis unit is used for analyzing the environmental data to obtain flow direction parameters of the air flow motion indicated by the environmental data;
the first determining unit is configured to determine M second electronic devices from the N second electronic devices according to a flow parameter of the environment data, where M is a positive integer less than or equal to N;
correspondingly, the response unit is further configured to send the first file stored in the storage unit to the M second electronic devices in response to the first instruction.
10. The electronic device according to claim 9, wherein the first determination unit includes: the method comprises the steps of obtaining a subunit, a first determining subunit and a second determining subunit; wherein,
the acquiring subunit is configured to acquire location parameters of the N second electronic devices, where the location parameters indicate locations of the second electronic devices relative to the electronic devices;
the first determining subunit is configured to determine, according to the flow direction parameter of the environment data, a location parameter that meets a second condition;
the second determining subunit is configured to determine, according to the mapping relationship between the N second electronic devices and the location parameter, M second electronic devices corresponding to the location parameter that satisfies the second condition from the N second electronic devices.
11. The electronic device of claim 9, wherein the electronic device has a support surface capable of supporting the N second electronic devices; the first determination unit includes: the device comprises an induction subunit, an analysis subunit, a third determination subunit and a fourth determination subunit; the inductor sub-unit is arranged on the supporting surface; wherein,
the sensor subunit is configured to detect position parameters of the N second electronic devices, where the position parameters indicate positions of the second electronic devices relative to the supporting surface;
the analysis subunit is used for analyzing the environment data to obtain a mapping position of the airflow generation position relative to the supporting surface;
the third determining subunit is configured to determine, according to the mapping position and the flow direction parameter of the environmental data, a position parameter that meets a third condition;
the fourth determining subunit is configured to determine, from the N second electronic devices, M second electronic devices corresponding to the location parameter that satisfies the third condition.
12. The electronic device of claim 11, further comprising: the display unit, the second determination unit and the third determination unit; the display unit is arranged on the supporting surface and displays at least one file identifier; wherein,
the second determining unit is used for determining a file identifier meeting a fourth condition according to the mapping position of the airflow generating position relative to the supporting surface;
and the third determining unit is configured to determine a file corresponding to the file identifier meeting the fourth condition as the first file.
CN201410061020.XA 2014-02-21 2014-02-21 A kind of data transmission method and electronic equipment Active CN104866209B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410061020.XA CN104866209B (en) 2014-02-21 2014-02-21 A kind of data transmission method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410061020.XA CN104866209B (en) 2014-02-21 2014-02-21 A kind of data transmission method and electronic equipment

Publications (2)

Publication Number Publication Date
CN104866209A true CN104866209A (en) 2015-08-26
CN104866209B CN104866209B (en) 2018-12-14

Family

ID=53912075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410061020.XA Active CN104866209B (en) 2014-02-21 2014-02-21 A kind of data transmission method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104866209B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700677A (en) * 2015-12-29 2016-06-22 努比亚技术有限公司 Mobile terminal and control method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101968709A (en) * 2010-09-17 2011-02-09 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and airflow induction based operation method and system thereof
CN102662461A (en) * 2012-03-07 2012-09-12 友达光电股份有限公司 Electronic device based on MEMS technology
CN103458025A (en) * 2013-08-30 2013-12-18 广东明创软件科技有限公司 File sharing method and system based on geographical location
US20140004908A1 (en) * 2012-06-27 2014-01-02 Lg Electronics Inc. Mobile terminal and controlling method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101968709A (en) * 2010-09-17 2011-02-09 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and airflow induction based operation method and system thereof
CN102662461A (en) * 2012-03-07 2012-09-12 友达光电股份有限公司 Electronic device based on MEMS technology
US20140004908A1 (en) * 2012-06-27 2014-01-02 Lg Electronics Inc. Mobile terminal and controlling method thereof
CN103458025A (en) * 2013-08-30 2013-12-18 广东明创软件科技有限公司 File sharing method and system based on geographical location

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700677A (en) * 2015-12-29 2016-06-22 努比亚技术有限公司 Mobile terminal and control method thereof

Also Published As

Publication number Publication date
CN104866209B (en) 2018-12-14

Similar Documents

Publication Publication Date Title
CN110582078B (en) Bluetooth pairing method and device, storage medium and electronic equipment
KR102447438B1 (en) Alarm device and method for informing location of objects thereof
KR102051418B1 (en) User interface controlling device and method for selecting object in image and image input device
CN108710456B (en) Application icon processing method and device and mobile terminal
CN108022274B (en) Image processing method, image processing device, computer equipment and computer readable storage medium
CN108021642B (en) Application program recommendation method and device, mobile terminal and storage medium
US10451648B2 (en) Sensor control switch
KR101618783B1 (en) A mobile device, a method for controlling the mobile device, and a control system having the mobile device
CN108769299B (en) Screen control method and device and mobile terminal
CN104503888A (en) Warning method and device
CN109104521B (en) Method and device for correcting approaching state, mobile terminal and storage medium
CN108287655A (en) A kind of interface display method, interface display apparatus and mobile terminal
CN108958634A (en) Express delivery information acquisition method, device, mobile terminal and storage medium
KR102186815B1 (en) Method, apparatus and recovering medium for clipping of contents
US20150002417A1 (en) Method of processing user input and apparatus using the same
WO2016095641A1 (en) Data interaction method and system, and mobile terminal
CN108646967A (en) Display changeover method, device, mobile terminal and storage medium
CN107908329B (en) Application icon management method and mobile terminal
CN107741826B (en) Browsing history information calling method and device and mobile terminal
KR101632220B1 (en) A mobile device, a method for controlling the mobile device, and a control system having the mobile device
US20160134719A1 (en) Methods and systems for displaying graphic representations in a user interface
CN104866209B (en) A kind of data transmission method and electronic equipment
CN106155614B (en) Operation information transmission method and electronic equipment
CN109085944B (en) Data processing method and device and mobile terminal
CN109922380B (en) Video playing method and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant