CN111385781B - File sharing method, smart watch, storage medium and electronic device - Google Patents
File sharing method, smart watch, storage medium and electronic device Download PDFInfo
- Publication number
- CN111385781B CN111385781B CN202010145416.8A CN202010145416A CN111385781B CN 111385781 B CN111385781 B CN 111385781B CN 202010145416 A CN202010145416 A CN 202010145416A CN 111385781 B CN111385781 B CN 111385781B
- Authority
- CN
- China
- Prior art keywords
- nfc
- module
- bluetooth
- bluetooth connection
- slave
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000004913 activation Effects 0.000 claims abstract description 61
- 230000009471 action Effects 0.000 claims abstract description 26
- 230000003213 activating effect Effects 0.000 claims abstract description 9
- 238000004590 computer program Methods 0.000 claims description 17
- 230000000977 initiatory effect Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 10
- 238000005516 engineering process Methods 0.000 abstract description 2
- 230000005540 biological transmission Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 230000033001 locomotion Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 2
- 238000005034 decoration Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 210000000707 wrist Anatomy 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 210000005069 ears Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/176—Support for shared access to files; File sharing support
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention provides a file sharing method, a smart watch, a storage medium and electronic equipment, wherein the method comprises the following steps: activating an NFC module when a user executes preset operation through main equipment, wherein the preset operation is a preset action detected through a sensor; sending an NFC activation signal to slave equipment within a preset range, wherein the NFC activation signal comprises Bluetooth connection information of the Bluetooth module; receiving a Bluetooth connection request sent by the slave device based on the NFC activation signal, and establishing Bluetooth connection with the slave device; and executing corresponding operation through the Bluetooth connection. The invention greatly simplifies the Bluetooth connection process by using the NFC technology, and then transmits files through Bluetooth to execute corresponding operation.
Description
Technical Field
The invention relates to the field of intelligent terminals, in particular to a file sharing method, an intelligent watch, a storage medium and electronic equipment.
Background
The camera of intelligence wrist-watch is the link of connecting between child and the nature, can shoot various interesting photos or videos through the intelligence wrist-watch that has the camera today. Children tend to enjoy sharing interesting things.
In addition, a plurality of apps with voice functions are added to the smart watch, such as educational apps like Himalayan FM and ancient poetry in primary schools, and children can use the apps more when studying or staying at home on holidays. However, the external playing device of the watch is far inferior to the sound box in terms of tone quality, sound intensity and the like, so that the external playing device is very suitable for playing the voice in the app through the sound box, and ears of children feel comfortable.
The intelligent watch can be connected with other intelligent terminals through the Bluetooth, but generally needs a user to independently start the Bluetooth, particularly when the user selects to share files, but does not start the Bluetooth before, the user also needs to jump an interface to start the Bluetooth and then returns to share the files or play audio files, and the operation is complex.
Disclosure of Invention
The invention aims to provide a file sharing method, an intelligent watch, a storage medium and electronic equipment, which can greatly simplify a Bluetooth connection process by using an NFC technology, and then transmit files through Bluetooth to execute corresponding operations.
The technical scheme provided by the invention is as follows:
the invention provides a file sharing method, which is applied to a main device, wherein the main device is an intelligent terminal comprising an NFC module and a Bluetooth module, and the method comprises the following steps:
activating an NFC module when a user executes preset operation through main equipment, wherein the preset operation is a preset action detected through a sensor;
sending an NFC activation signal to slave equipment within a preset range, wherein the NFC activation signal comprises Bluetooth connection information of the Bluetooth module;
receiving a Bluetooth connection request sent by the slave device based on the NFC activation signal, and establishing Bluetooth connection with the slave device;
corresponding operations are performed through the bluetooth connection.
Further, the executing of the corresponding operation through the bluetooth connection specifically includes:
and when the preset operation corresponds to the step of clicking to share the target file, sharing the target file to the slave equipment through Bluetooth connection.
Further, after the sending the object file to the slave device through the bluetooth connection, the method includes:
prompting to continue sharing other files;
when the user selects information display to stop sharing the file, sending an NFC signal to the slave equipment, and closing an NFC module and a Bluetooth module by the slave equipment according to the NFC signal;
and closing the NFC module and the Bluetooth module of the mobile terminal.
Further, the performing corresponding operations through the bluetooth connection further includes:
and when the preset operation corresponds to the external target file, the slave equipment is connected through the Bluetooth to play the target file.
The invention also provides a file sharing method, which is applied to slave equipment, wherein the slave equipment is an intelligent terminal comprising an NFC module and a Bluetooth module, and the method comprises the following steps:
receiving an NFC activation signal sent by a master device, wherein the NFC activation signal comprises Bluetooth connection information of a Bluetooth module of the master device;
activating an NFC module of the mobile terminal according to the NFC activation signal, and simultaneously starting a Bluetooth module of the mobile terminal;
initiating a Bluetooth connection request to the main equipment according to the Bluetooth connection information;
and receiving an object file or playing the object file after establishing Bluetooth connection with the main equipment based on the Bluetooth connection request.
Further, after establishing a bluetooth connection with the master device based on the bluetooth connection request, receiving an object file or playing the object file includes:
receiving an NFC signal sent by the master device;
and closing the NFC module and the Bluetooth module of the mobile terminal according to the NFC signal.
The invention also provides an intelligent watch which comprises an NFC module and a Bluetooth module, wherein the NFC module is connected with the Bluetooth module;
the NFC module is activated when a user executes preset operation, and the preset operation is a preset action detected by the sensor;
the NFC module sends an NFC activation signal to slave equipment within a preset range, wherein the NFC activation signal comprises Bluetooth connection information of the Bluetooth module;
the Bluetooth module receives a Bluetooth connection request sent by the slave device based on the NFC activation signal and establishes Bluetooth connection with the slave device;
and the execution module executes corresponding operation through Bluetooth connection.
Further, the method also comprises the following steps:
the processing module is used for sending an NFC signal to the slave equipment when the execution module stops executing corresponding operation, and the slave equipment closes the NFC module and the Bluetooth module according to the NFC signal;
and the processing module closes the NFC module and the Bluetooth module of the processing module.
The invention also provides a storage medium having stored thereon a computer program which, when executed by a processor, implements any of the methods described above.
The invention also provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program running on the processor, and the processor implements any one of the methods described above when executing the computer program.
The file sharing method, the intelligent watch, the storage medium and the electronic device provided by the invention can bring at least one of the following beneficial effects:
1. according to the method and the device, when the user selects to share the target file, the NFC module is directly associated and activated, then the Bluetooth connection is established to carry out file sharing transmission, the user does not need to click to establish the Bluetooth connection additionally, and the operation is simple, convenient and fast.
2. According to the method and the device, when the user does not need to continue sharing, the NFC module and the Bluetooth module of the master device are automatically closed, the NFC module and the Bluetooth module of the slave device can be closed at the same time, the phenomenon that the NFC module and the Bluetooth module are forgotten to be closed after the user uses the device is avoided, the NFC module and the Bluetooth module are always started, electric quantity is wasted, and standby time is shortened.
Drawings
The above features, technical features, advantages and implementations of a file sharing method, a smart watch, a storage medium and an electronic device will be further described in the following detailed description of preferred embodiments in conjunction with the accompanying drawings.
FIG. 1 is a flow chart of one embodiment of a file sharing method of the present invention;
FIG. 2 is a flowchart of another embodiment of a file sharing method according to the present invention;
FIG. 3 is a flowchart of one embodiment of a file sharing method of the present invention;
FIG. 4 is a flowchart of another embodiment of a file sharing method according to the present invention;
FIG. 5 is a schematic block diagram of one embodiment of a smart watch of the present invention;
fig. 6 is a schematic diagram illustrating an embodiment of file sharing between a master device and a slave device according to the present invention.
The reference numbers indicate:
100 intelligent watch
110 processing module
120NFC module
130 Bluetooth module
140 execution module
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically depicted, or only one of them is labeled. In this document, "a" means not only "only one of this but also a case of" more than one ".
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
In particular implementations, the terminal devices described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, family computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments the terminal device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a terminal device that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal device may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal device supports various applications, such as one or more of the following: a drawing application, a presentation application, a network creation application, a word processing application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a digital video camera application, a Web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal device may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
In addition, in the description of the present application, the terms "first," "second," and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, without inventive effort, other drawings and embodiments can be derived from them.
An embodiment of the present invention, as shown in fig. 1, is a file sharing method applied to a host device, where the host device is an intelligent terminal including an NFC module and a bluetooth module,
a file sharing method is applied between two or more intelligent devices, one of the intelligent devices is a master device for sharing a file, the other intelligent devices for receiving the file shared by the master device are slave devices, the master device and the slave devices both comprise an NFC module and a Bluetooth module, the NFC module and the Bluetooth module are connected, and when the NFC module is activated, the corresponding Bluetooth module is automatically started.
The control information between the master device and the slave device is transferred by the NFC module, for example, the master device activates or deactivates the NFC module of the slave device, and the bluetooth module serves as a channel for data transmission between the master device and the slave device.
The file sharing method comprises the following steps:
s1100, when a user executes preset operation through the main device, activating the NFC module, wherein the preset operation is a preset action detected through the sensor.
Specifically, the main device is an intelligent wearable device similar to a smart watch, and when a user performs a preset operation through the main device, the NFC module of the main device is activated. The preset operation is a preset action detected by the sensor.
A mechanism similar to a nine-axis sensor is arranged in the main device, the actions of a user, such as wrist turning, transverse moving, touch-touch and the like, are recognized, and if the actions of the user are consistent with the preset actions, the NFC module is activated. The preset action can be set according to the use habit of the user, for example, a touch-and-dash action is set as the preset action.
S1200, sending an NFC activation signal to a slave device within a preset range, wherein the NFC activation signal comprises Bluetooth connection information of the Bluetooth module.
Specifically, the master device sends the NFC activation signal to the slave device within a preset range, and the preset range is determined according to the NFC communication range of the NFC module. In addition, the selection of the slave devices may be determined according to the distance between the master device and each of the smart devices, for example, the smart device closest to the master device is selected as the slave device, or all the smart devices having a distance value from the master device within a preset range are selected as the slave devices, or the distance values from the master device are arranged from small to large, and the preceding preset number of smart devices are selected as the slave devices.
The NFC activation signal comprises Bluetooth connection information of a Bluetooth module of the master device and also comprises an NFC electromagnetic signal, the NFC electromagnetic signal in the NFC activation signal can directly activate the NFC module of the slave device which receives the NFC activation signal, after the NFC module of the slave device is activated, the Bluetooth connection information of the Bluetooth module of the master device contained in the NFC activation signal is read and sent to the Bluetooth module of the slave device, and the Bluetooth module of the slave device sends a Bluetooth connection request to the Bluetooth module of the master device according to the Bluetooth connection information.
S1300 receives the bluetooth connection request sent by the slave device based on the NFC activation signal, and establishes a bluetooth connection with the slave device.
Specifically, the bluetooth module of the master device receives a bluetooth connection request sent by the slave device based on the NFC activation signal, and directly establishes a bluetooth connection with the bluetooth module of the slave device after verifying that the bluetooth connection request matches the information of the master device.
And S1400, executing the corresponding operation of the preset operation through Bluetooth connection.
Specifically, after the bluetooth connection is established, data transmission may be performed between the master device and the slave device, and an operation corresponding to the preset operation is executed. And if the preset operation is to play audio, playing the audio file selected in the master equipment through the slave equipment.
In this embodiment, associate NFC module and bluetooth module, after the user activates the NFC module through predetermineeing the operation, accomplish bluetooth module's connection through the NFC module, need not the manual bluetooth module of opening of user, convenient operation is swift.
Preferably, in another embodiment of the present invention, the S1400 performs the operation corresponding to the preset operation through bluetooth connection, and further includes: s1420, when the preset operation corresponds to the target file being played, connecting the slave device through Bluetooth to play the target file.
Specifically, when the preset operation corresponds to the play-out of the target file, the slave device plays the target file through the bluetooth connection. At this moment, the slave units are intelligent sound boxes and other units, and the audio playing effect is better. The preset operation corresponds to the playing out of the target file, and a certain preset action is set for a user and corresponds to the playing out of the target file. And after the Bluetooth connection is established according to the Bluetooth connection process, selecting the target file to be played.
In this embodiment, when the user uses the smart watch to connect the smart sound box, a series of conventional complex operations such as bluetooth opening, searching, connecting, pairing and the like are not required, and the user only needs to realize bluetooth intercommunication in one step, thereby improving user experience.
Another embodiment of the present invention is a preferable embodiment of the above-mentioned embodiment, as shown in fig. 2, including:
s1100, when a user executes preset operation through the main device, activating the NFC module, wherein the preset operation is a preset action detected through the sensor.
S1200, sending an NFC activation signal to a slave device within a preset range, wherein the NFC activation signal comprises Bluetooth connection information of the Bluetooth module.
S1300 receives a bluetooth connection request sent by the slave device based on the NFC activation signal, and establishes a bluetooth connection with the slave device.
S1400, performing, through bluetooth connection, the operation corresponding to the preset operation specifically includes:
and S1410, when the preset operation corresponds to the target file sharing by clicking, sharing the target file to the slave device through Bluetooth connection.
Specifically, when the preset operation corresponds to the sharing of the target file by clicking, the master device shares the target file to the slave device through the bluetooth connection. The preset operation corresponds to the sharing of the target file by clicking, the user may set a certain preset action corresponding to the sharing of the target file, or the user may click the target file to be shared, after the sharing is selected, the NFC module of the host device is directly activated, and then the subsequent sharing is completed according to the above process.
S1500 prompts to continue sharing other files.
Specifically, after the master device shares the target file with the slave device, the master device displays a prompt box to prompt the user to continue to share other files, and obtains user selection information of the user for the prompt box. The mode of acquiring the user selection information may be to acquire a user voice instruction through a voice device and then convert the user voice instruction into the user selection information, or may be to directly acquire the user selection information input by the user through a touch display screen of the main device.
S1600, when the user selects information display to stop sharing the file, sending an NFC signal to the slave device, and closing the NFC module and the Bluetooth module by the slave device according to the NFC signal.
S1700 turns off its NFC module and bluetooth module.
Specifically, if the user needs to continue to share the file with the slave device, the user selects the information to continue to select the file to be shared. And if the user selects the information to stop sharing the file, the NFC module of the master device sends an NFC signal to the NFC module of the slave device, and the slave device closes the NFC module and the Bluetooth module according to the NFC signal and stops receiving the file. And meanwhile, the main equipment also closes the NFC module and the Bluetooth module of the main equipment.
In this embodiment, when the user does not need to continue to share, the NFC module and the bluetooth module of the master device are automatically turned off, and the NFC module and the bluetooth module of the slave device can be turned off at the same time, thereby avoiding forgetting to turn off the NFC module and the bluetooth module after use, resulting in the wasted power consumption of the NFC module and the bluetooth module being turned on all the time, and reducing the standby time.
An embodiment of the present invention, as shown in fig. 3, is a file sharing method applied to a slave device, where the slave device is an intelligent terminal including an NFC module and a bluetooth module, and includes:
the file sharing method is applied between two or more intelligent devices, one of the intelligent devices shares a file as a master device, the other intelligent devices receiving the file shared by the master device are slave devices, the master device and the slave devices both comprise an NFC module and a Bluetooth module, the NFC module and the Bluetooth module are connected, and when the NFC module is activated, the corresponding Bluetooth module is automatically started.
The control information between the master device and the slave device is transferred by the NFC module, for example, the master device activates or deactivates the NFC module of the slave device, and the bluetooth module serves as a channel for data transmission between the master device and the slave device.
S2100 receives an NFC activation signal sent by a host device, where the NFC activation signal includes bluetooth connection information of a bluetooth module of the host device.
Specifically, the main device is an intelligent wearable device similar to a smart watch, and when a user executes a preset operation through the main device, the NFC module of the main device is activated. Wherein the preset operation is a preset action detected by a sensor.
And the master device sends the NFC activation signal to the slave device within a preset range, and the preset range is determined according to the NFC communication range of the NFC module. In addition, the selection of the slave devices may be determined according to the distance between the master device and each of the smart devices, for example, the smart device closest to the master device is selected as the slave device, or all the smart devices having a distance value from the master device within a preset range are selected as the slave devices, or the distance values from the master device are arranged from small to large, and the preceding preset number of smart devices are selected as the slave devices.
S2200 activating the NFC module according to the NFC activation signal, and simultaneously starting the Bluetooth module.
Specifically, the NFC activation signal includes bluetooth connection information of a bluetooth module of the master device, the NFC activation signal may directly activate an NFC module of the slave device that receives the NFC activation signal, after the NFC module of the slave device is activated, the bluetooth connection information of the bluetooth module of the master device included in the NFC activation signal is read and sent to the bluetooth module of the slave device itself, and the bluetooth module of the slave device sends a bluetooth connection request to the bluetooth module of the master device according to the bluetooth connection information.
S2300, initiating a Bluetooth connection request to the master device according to the Bluetooth connection information.
Specifically, the bluetooth module of the master device receives a bluetooth connection request sent by the slave device based on the NFC activation signal, and directly establishes a bluetooth connection with the bluetooth module of the slave device after verifying that the bluetooth connection request matches the information of the master device.
S2400 establishes a bluetooth connection with the host device based on the bluetooth connection request, and then receives a target file or plays the target file.
Specifically, after the bluetooth connection is established, data transmission may be performed between the master device and the slave device, and an operation corresponding to the preset operation is executed. And if the preset operation is to play audio, playing the audio file selected in the master equipment through the slave equipment.
In this embodiment, associate NFC module and bluetooth module, after the user activates the NFC module through predetermineeing the operation, accomplish bluetooth module's connection through the NFC module, need not the manual bluetooth module of opening of user, convenient operation is swift. When the user uses the intelligent watch to connect the intelligent sound box, a series of complex operations such as conventional Bluetooth opening, searching, connecting and pairing are not needed, the user can realize Bluetooth intercommunication only by one step, and the user experience is improved.
Another embodiment of the present invention is a preferable embodiment of the above-mentioned embodiment, as shown in fig. 4, including:
s2100 receives an NFC activation signal sent by a host device, where the NFC activation signal includes bluetooth connection information of a bluetooth module of the host device.
S2200 activates the NFC module according to the NFC activation signal, and simultaneously starts the bluetooth module.
S2300, a Bluetooth connection request is initiated to the main device according to the Bluetooth connection information.
S2400 establishes a bluetooth connection with the host device based on the bluetooth connection request, and then receives a target file or plays the target file.
S2500 receives an NFC signal sent by the master device.
S2600 closes the NFC module and the Bluetooth module of the user according to the NFC signal.
Specifically, after the master device shares the target file with the slave device, the master device displays a prompt box to prompt the user to continue to share other files, and obtains user selection information of the user for the prompt box, and if the user needs to continue to share the file with the slave device, the user selection information continues to select the file to be shared. And if the user selects the information to stop sharing the file, the NFC module of the master device sends an NFC signal to the NFC module of the slave device, and the slave device closes the NFC module and the Bluetooth module according to the NFC signal and stops receiving the file. And meanwhile, the main equipment also closes the NFC module and the Bluetooth module of the main equipment.
In this embodiment, when the user does not need to continue to share, the NFC module and the bluetooth module of the master device are automatically turned off, and the NFC module and the bluetooth module of the slave device can be turned off at the same time, so that the situation that the NFC module and the bluetooth module are forgotten to be turned off after use is avoided, the NFC module and the bluetooth module are always turned on to waste electric quantity, and the standby time is reduced.
In an embodiment of the present invention, as shown in fig. 5, a smart watch 100 includes an NFC module 120 and a bluetooth module 130, where the NFC module 120 and the bluetooth module 130 are connected;
a smart watch includes an NFC module 120 and a Bluetooth module 130, the NFC module 120 and the Bluetooth module 130 being connected. The smart watch is a master device for sharing files, the rest slave devices for receiving the files shared by the master device comprise the NFC module 120 and the Bluetooth module 130, the NFC module 120 and the Bluetooth module 130 are connected, and when the NFC module 120 is activated, the corresponding Bluetooth module 130 is automatically started.
Control information between the master device and the slave device is transferred by the NFC module 120, for example, the master device activates or deactivates the NFC module 120 of the slave device, and the bluetooth module 130 serves as a channel for data transmission between the master device and the slave device.
The processing module 110 activates the NFC module 120 when the user performs a preset operation, which is a preset action detected by the sensor.
Specifically, the host device is a smart wearable device similar to a smart watch, and when a user performs a preset operation through the host device, the NFC module 120 of the host device is activated. The preset operation is a preset action detected by the sensor.
A mechanism similar to a nine-axis sensor is provided in the host device to recognize a user's motion, such as a wrist-flipping, a lateral movement, a bump-in-bump, etc., and to activate the NFC module 120 if the user's motion matches a preset motion. The preset action can be set according to the use habit of the user, for example, a touch-and-dash action is set as the preset action.
The NFC module 120 sends an NFC activation signal to a slave device within a preset range, where the NFC activation signal includes bluetooth connection information of the bluetooth module 130;
the bluetooth module 130 receives a bluetooth connection request sent by the slave device based on the NFC activation signal, and establishes a bluetooth connection with the slave device.
Specifically, the master device sends the NFC activation signal to the slave device within the preset range, and the preset range is determined according to the NFC communication range of the NFC module 120. In addition, the selection of the slave device may be determined according to the distance between the master device and each smart device, for example, the smart device closest to the master device is selected as the slave device, or all the smart devices having a distance value from the master device within a preset range are selected as the slave devices, or the distance values from the master device are arranged from small to large, and the preceding preset number of smart devices are selected as the slave devices.
And the execution module 140 executes the operation corresponding to the preset operation through the bluetooth connection.
Specifically, after the bluetooth connection is established, data transmission may be performed between the master device and the slave device, and an operation corresponding to the preset operation is executed. And if the preset operation is to play audio, playing the audio file selected in the master equipment through the slave equipment.
And when the preset operation corresponds to clicking the sharing target file, the master device shares the target file to the slave device through Bluetooth connection. The preset operation corresponds to the sharing of the target file by clicking, the user may set a certain preset action corresponding to the sharing of the target file, or the user may click the target file to be shared, after the sharing is selected, the NFC module 120 of the host device is directly activated, and then the subsequent sharing is completed according to the above-mentioned process.
And when the preset operation corresponds to the target file being played, the slave device plays the target file through the Bluetooth connection. At the moment, the slave equipment is equipment such as an intelligent sound box, and the audio playing effect is better. The preset operation corresponds to the playing out of the target file, and a certain preset action is set for a user and corresponds to the playing out of the target file. And after the Bluetooth connection is established according to the Bluetooth connection process, selecting the target file to be played.
The processing module 110, when the executing module 140 stops executing the corresponding operation, sends an NFC signal to the slave device, and the slave device turns off the NFC module 120 and the bluetooth module 130 according to the NFC signal;
the processing module 110 turns off its NFC module 120 and bluetooth module 130.
Specifically, after the master device shares the target file with the slave device, the master device displays a prompt box to prompt the user to continue to share other files, and obtains user selection information of the user for the prompt box, and if the user needs to continue to share the file with the slave device, the user selection information continues to select the file to be shared. If the user selects that the information is to stop sharing the file, the NFC module 120 of the master device sends an NFC signal to the NFC module 120 of the slave device, and the slave device closes the NFC module 120 and the bluetooth module 130 according to the NFC signal to stop receiving the file. And the host device also turns off its NFC module 120 and bluetooth module 130.
In this embodiment, the NFC module 120 and the bluetooth module 130 are associated, and after the user activates the NFC module 120 through a preset operation, the connection of the bluetooth module 130 is completed through the NFC module 120, and the user does not need to manually open the bluetooth module 130, which is convenient and fast to operate.
When the user selects to share the target file, the NFC module 120 is directly associated and activated, then the Bluetooth connection is established to carry out file sharing transmission, the user does not need to click to establish the Bluetooth connection additionally, and the operation is simple, convenient and quick.
When the user uses the intelligent watch to connect the intelligent sound box, a series of complex operations such as conventional Bluetooth opening, searching, connecting and pairing are not needed, the user only needs one step to realize Bluetooth intercommunication, and user experience is improved.
In an embodiment of the present invention, as shown in fig. 6, a process of file sharing is performed between a master device and a slave device, where the master device and the slave device are both smart terminals, such as a smart watch, a mobile phone, a tablet, and the like, which include an NFC module and a bluetooth module at the same time, and the NFC module and the bluetooth module are associated with each other, and when the NFC module is activated, the bluetooth module is also activated.
The method comprises the following specific steps:
1. NFC modules and Bluetooth modules of the master device and the slave device are in initial dormant states and are not started;
2. when a user wants to share a target file in the master device to the slave device in the process of using the master device, one or more target files to be shared are selected, sharing is clicked, and at the moment, an NFC module of the master device is activated and started;
3. the NFC module of the main device is connected with the Bluetooth module, bluetooth connection information of the Bluetooth module is stored in the NFC module, therefore, the NFC module generates an NFC activation signal, and the NFC activation signal contains the Bluetooth connection information of the Bluetooth module of the main device. In addition, after the NFC module is activated, the bluetooth connection information of the bluetooth module of the associated host device is read and then encoded into the NFC activation signal;
4. the user contacts the master device with the slave device, and the master device and the slave device are located in a distance where the NFC modules can respond to each other;
5. the master device sends an NFC activation signal to the slave device;
6. receiving an NFC activation signal from the slave equipment, activating an NFC module, and starting a Bluetooth module of the slave equipment;
7. the NFC module of the slave device identifies Bluetooth connection information of the Bluetooth module of the master device in the NFC activation signal and sends the Bluetooth connection information to the Bluetooth module of the slave device;
8. the Bluetooth module of the slave device sends a Bluetooth connection request to the master device according to the Bluetooth connection information of the Bluetooth module of the master device;
9. the Bluetooth module of the master device receives a Bluetooth connection request sent by the Bluetooth module of the slave device, and after the request passes, the Bluetooth module of the master device and the slave device establish Bluetooth connection;
10. the master device transmits one or more target files selected by a user to the slave device through the Bluetooth connection;
11. the Bluetooth module of the slave device receives the target file transmitted by the master device, the sharing is completed, and the NFC module of the slave device sends a feedback signal to the NFC module of the master device;
12. after the NFC module of the main device receives the feedback signal, the main device jumps out of a prompt box to prompt whether to continue to share other files or not;
13. if the user clicks to select other files needing to be continuously shared, the user continuously selects the files to be transmitted, and the files are connected with the slave equipment through Bluetooth and are sent by the master equipment;
14. if the user clicks and selects that other files do not need to be shared continuously, the NFC module of the master device sends an NFC signal to the NFC module of the slave device;
15. the master device closes the NFC module and the Bluetooth module of the master device, and the master device is disconnected from the Bluetooth of the slave device;
16. and after the NFC of the slave device receives the NFC signal sent by the NFC module of the master device, closing the own NFC module and the Bluetooth module.
According to the method, the device and the system, the file sharing process is carried out between the master device and the slave device, when a user clicks to share, the NFC module of the device is automatically activated, then the Bluetooth module is started through the connection relation between the NFC module and the Bluetooth module, the Bluetooth connection is established between the master device and the slave device, the Bluetooth connection steps are simplified, and the operation is simpler and more convenient.
According to one embodiment of the invention, the smart watch and the smart loudspeaker box are connected through Bluetooth to realize the audio playing process, wherein the smart watch and the smart loudspeaker box are smart terminals simultaneously comprising an NFC module and a Bluetooth module, the NFC module and the Bluetooth module are mutually associated, and when the NFC module is activated, the Bluetooth module is started.
The method comprises the following specific steps:
1. when the intelligent watch of the user performs a touch-touch action close to the intelligent sound box, calculation is performed through a nine-axis sensor and a motion detection algorithm;
2. when the fact that the user performs wrist turning, transverse moving and touch-touch actions is judged, an NFC module of the smart watch is automatically activated;
3. the smart watch sends an NFC activation signal to an NFC module of the smart sound box through the NFC module, wherein the NFC activation signal comprises Bluetooth connection information of a Bluetooth module of the smart watch read by the NFC module of the smart watch, such as signals of information of Bluetooth ID, MAC address and the like, and also comprises an NFC electromagnetic signal;
4. the NFC module of the intelligent sound box receives the NFC activation signal, the NFC module of the intelligent sound box is activated through the NFC activation signal in the NFC activation signal, and the NFC module is connected with the Bluetooth module and is started at the same time;
5. the NFC module of the intelligent sound box reads Bluetooth connection information of a Bluetooth module of the intelligent watch in the NFC activation signal and sends a Bluetooth connection request to the Bluetooth module of the intelligent watch;
6. the Bluetooth module of the intelligent watch receives the Bluetooth connection request, and Bluetooth connection is completed;
7. the intelligent sound box replaces the intelligent watch loudspeaker to continuously play audio.
The advantage of this scheme is that, when the user uses wrist-watch connection bluetooth speaker, do not need conventional a series of complicated operations such as open the bluetooth, search for, connect, pair, the user only need one step just can realize bluetooth intercommunication, promotes user experience.
An embodiment of the invention provides a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out all or part of the method steps of the first embodiment.
All or part of the flow of the method according to the embodiments of the present invention may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying said computer program code, a recording medium, a usb-disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read-only memory (ROM), a Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
An embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program running on the processor, and the processor executes the computer program to implement all or part of the method steps of the first embodiment.
The processor may be a Central Processing Unit (CPU), other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like which is the control center for the computer device and which connects the various parts of the overall computer device using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the computer apparatus by executing or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid state storage device.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (10)
1. The utility model provides a file sharing method, is applied to the master device, the master device is intelligent terminal including NFC module and bluetooth module, its characterized in that includes:
activating an NFC module when a user executes preset operation through main equipment, wherein the preset operation is a preset action detected through a sensor;
sending an NFC activation signal to slave equipment within a preset range, wherein the NFC activation signal comprises Bluetooth connection information of the Bluetooth module;
receiving a Bluetooth connection request sent by the slave device based on the NFC activation signal, and establishing Bluetooth connection with the slave device;
and executing the corresponding operation of the preset operation through Bluetooth connection.
2. The file sharing method according to claim 1, wherein the executing of the operation corresponding to the preset operation through bluetooth connection specifically includes:
and when the preset operation corresponds to the step of clicking to share the target file, sharing the target file to the slave equipment through Bluetooth connection.
3. The file sharing method according to claim 2, wherein sharing the target file to the slave device via a bluetooth connection comprises:
prompting to continue sharing other files;
when the user selects information display to stop sharing the file, sending an NFC signal to the slave equipment, and closing an NFC module and a Bluetooth module by the slave equipment according to the NFC signal;
and closing the NFC module and the Bluetooth module of the mobile terminal.
4. The file sharing method according to claim 1, wherein the executing of the operation corresponding to the preset operation through bluetooth connection further comprises:
and when the preset operation corresponds to the external target file, the slave equipment is connected through the Bluetooth to play the target file.
5. A file sharing method is applied to slave equipment, wherein the slave equipment is an intelligent terminal comprising an NFC module and a Bluetooth module, and the file sharing method is characterized by comprising the following steps:
receiving an NFC activation signal sent by a master device, wherein the NFC activation signal comprises Bluetooth connection information of a Bluetooth module of the master device;
activating an NFC module of the mobile terminal according to the NFC activation signal, and simultaneously starting a Bluetooth module of the mobile terminal;
initiating a Bluetooth connection request to the main equipment according to the Bluetooth connection information;
and receiving an object file or playing the object file after establishing Bluetooth connection with the main equipment based on the Bluetooth connection request.
6. The method according to claim 5, wherein, after establishing a bluetooth connection with the host device based on the bluetooth connection request, receiving an object file or playing the object file comprises:
receiving an NFC signal sent by the master device;
and closing the NFC module and the Bluetooth module of the mobile terminal according to the NFC signal.
7. The intelligent watch is characterized by comprising an NFC module and a Bluetooth module, wherein the NFC module is connected with the Bluetooth module;
the NFC module is activated when a user executes preset operation, and the preset operation is a preset action detected by the sensor;
the NFC module sends an NFC activation signal to slave equipment within a preset range, wherein the NFC activation signal comprises Bluetooth connection information of the Bluetooth module;
the Bluetooth module receives a Bluetooth connection request sent by the slave device based on the NFC activation signal and establishes Bluetooth connection with the slave device;
and the execution module executes the corresponding operation of the preset operation through Bluetooth connection.
8. The smart watch of claim 7, further comprising:
the processing module sends an NFC signal to the slave device when the execution module stops executing corresponding operation, and the slave device closes the NFC module and the Bluetooth module according to the NFC signal;
and the processing module closes the NFC module and the Bluetooth module of the processing module.
9. A storage medium having a computer program stored thereon, characterized in that: the computer program, when executed by a processor, implements the method of any one of claims 1 to 4.
10. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program that runs on the processor, characterized in that: the processor, when executing the computer program, implements the method of any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010145416.8A CN111385781B (en) | 2020-03-03 | 2020-03-03 | File sharing method, smart watch, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010145416.8A CN111385781B (en) | 2020-03-03 | 2020-03-03 | File sharing method, smart watch, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111385781A CN111385781A (en) | 2020-07-07 |
CN111385781B true CN111385781B (en) | 2023-02-24 |
Family
ID=71218603
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010145416.8A Active CN111385781B (en) | 2020-03-03 | 2020-03-03 | File sharing method, smart watch, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111385781B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114830700A (en) * | 2020-12-25 | 2022-07-29 | 深圳市大疆创新科技有限公司 | Control method and device of electronic equipment |
CN113377325B (en) * | 2021-05-27 | 2024-05-28 | 深圳市亚昱科技有限公司 | Bluetooth sound box and control method thereof |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101344763B1 (en) * | 2012-05-14 | 2013-12-24 | (주)케이스마텍 | File sharing method between mobile terminals using near field communication |
CN104105053A (en) * | 2014-07-14 | 2014-10-15 | 康佳集团股份有限公司 | Method and system for achieving file sharing through NFC technology and Bluetooth technology |
CN104967971B (en) * | 2015-06-26 | 2018-04-27 | 飞天诚信科技股份有限公司 | A kind of method for realizing the automatic Hui Lian of bluetooth under android system |
CN105430594A (en) * | 2015-10-23 | 2016-03-23 | 中国联合网络通信集团有限公司 | Set top box and file-sharing system |
EP3462803B1 (en) * | 2016-06-30 | 2023-07-26 | Huawei Technologies Co., Ltd. | Method for managing bluetooth connection and master bluetooth device |
CN110784858B (en) * | 2019-10-10 | 2023-05-09 | RealMe重庆移动通信有限公司 | Bluetooth device control method and device, electronic device and storage medium |
-
2020
- 2020-03-03 CN CN202010145416.8A patent/CN111385781B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111385781A (en) | 2020-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110543289B (en) | Method for controlling volume and electronic equipment | |
CN109559763B (en) | Real-time digital audio signal sound mixing method and device | |
US10904482B2 (en) | Method and apparatus for generating video file, and storage medium | |
JP6174543B2 (en) | Doll control method and interactive doll operation method by application, and apparatus for doll control and operation | |
US20220229546A1 (en) | Electronic device and method for operating avata video service in the same | |
CN110213504B (en) | Video processing method, information sending method and related equipment | |
CN115729511A (en) | Audio playing method and electronic equipment | |
KR102527178B1 (en) | Voice control command generation method and terminal | |
CN111385781B (en) | File sharing method, smart watch, storage medium and electronic device | |
CN105335198B (en) | Font adding method and device | |
WO2022135527A1 (en) | Video recording method and electronic device | |
CN106201417A (en) | Adjust the method for screen display brightness, device and mobile terminal | |
CN109614470B (en) | Method and device for processing answer information, terminal and readable storage medium | |
US20130117670A1 (en) | System and method for creating recordings associated with electronic publication | |
WO2022095465A1 (en) | Information display method and apparatus | |
WO2022053062A1 (en) | Method and terminal for managing iot device | |
US20120052933A1 (en) | Multifunctional gaming platform | |
KR20140031035A (en) | Mobile terminal and control method thereof | |
WO2022028241A1 (en) | Preview cover generation method and electronic device | |
US20200341720A1 (en) | Electronic device and method of controlling thereof | |
KR20220016544A (en) | Electronic device for supporting audio sharing | |
WO2018010319A1 (en) | Method and apparatus for displaying application function | |
CN112445393A (en) | Data processing method, device, equipment and machine readable medium | |
WO2024037480A1 (en) | Interaction method and apparatus, electronic device, and storage medium | |
CN112188362B (en) | Playing method, device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |