CN111385781A - File sharing method, smart watch, storage medium and electronic device - Google Patents

File sharing method, smart watch, storage medium and electronic device Download PDF

Info

Publication number
CN111385781A
CN111385781A CN202010145416.8A CN202010145416A CN111385781A CN 111385781 A CN111385781 A CN 111385781A CN 202010145416 A CN202010145416 A CN 202010145416A CN 111385781 A CN111385781 A CN 111385781A
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.)
Granted
Application number
CN202010145416.8A
Other languages
Chinese (zh)
Other versions
CN111385781B (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.)
TCL China Star Optoelectronics Technology Co Ltd
Original Assignee
Shenzhen China Star Optoelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen China Star Optoelectronics Technology Co Ltd filed Critical Shenzhen China Star Optoelectronics Technology Co Ltd
Priority to CN202010145416.8A priority Critical patent/CN111385781B/en
Publication of CN111385781A publication Critical patent/CN111385781A/en
Application granted granted Critical
Publication of CN111385781B publication Critical patent/CN111385781B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The 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; corresponding operations are performed 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

File sharing method, smart watch, storage medium and electronic device
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 equipment of the watch is far inferior to the sound box in terms of tone quality, sound intensity and the like, so that the external equipment is very suitable for externally playing the voice in the app through the sound box, and the ears of a child 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, executing 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 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, performing corresponding operations through the bluetooth connection further includes:
and when the preset operation corresponds to the external playing of the target file, the slave equipment is connected through 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 the target file or playing the target file after establishing the 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 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.
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 flow chart of another embodiment of a file sharing method of the present invention;
FIG. 3 is a flow chart of one embodiment of a file sharing method of the present invention;
FIG. 4 is a flow chart of another embodiment of a file sharing method of the present invention;
FIG. 5 is a schematic diagram of a smart watch according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an embodiment of file sharing between a master device and a slave device according to the present invention.
The reference numbers illustrate:
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. However, it will be apparent 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, "one" means not only "only one" 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, other drawings and embodiments can be derived from them without inventive effort.
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,
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.
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. Wherein the preset operation is a preset action detected by a 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 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.
The NFC activation signal comprises Bluetooth connection information of a Bluetooth module of the master device, and simultaneously contains an NFC electromagnetic signal, the NFC electromagnetic signal in the NFC activation signal can directly activate an 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 a 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 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.
In this embodiment, when the user uses the smart watch to connect the smart sound box, a series of conventional complicated operations such as bluetooth opening, searching, connecting, pairing and the like are not required, and the user only needs one step to realize bluetooth intercommunication, 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 the bluetooth connection request sent by the slave device based on the NFC activation signal, and establishes a bluetooth connection with the slave device.
S1400 performs the operation corresponding to the preset operation through bluetooth connection, which 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.
And 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, 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.
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 the method 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 performs 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 devices 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 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.
S2200 activates the NFC module according to the NFC activation signal, and simultaneously starts the bluetooth module.
Specifically, the NFC activation signal includes bluetooth connection information of the bluetooth module of the master device, the NFC activation signal may directly activate the 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, a Bluetooth connection request is initiated to the main 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 a 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. Wherein the preset operation is a preset action detected by a 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 a 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 activated in a correlated manner, and then the bluetooth connection is established to perform file sharing transmission, so that the user does not need to click to establish the bluetooth connection, 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 can realize Bluetooth intercommunication only by one step, and the 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. the NFC modules and the Bluetooth modules of the master device and the slave device are in initial sleep 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 simultaneously started;
5. the NFC module of the intelligent sound box reads Bluetooth connection information of the 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 used by a processor to implement the steps of the embodiments of the method. 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 the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer memory, Read-only memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, 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, which includes 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 in 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 device by running or executing the computer programs and/or modules stored in the memory and invoking 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 playing of the target file, the slave equipment is connected through 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 the target file or playing the target file after establishing the Bluetooth connection with the main equipment based on the Bluetooth connection request.
6. The file sharing 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 an 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 smart 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 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.
CN202010145416.8A 2020-03-03 2020-03-03 File sharing method, smart watch, storage medium and electronic device Active CN111385781B (en)

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 true CN111385781A (en) 2020-07-07
CN111385781B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377325A (en) * 2021-05-27 2021-09-10 深圳市亚昱科技有限公司 Bluetooth sound box and control method thereof
WO2022134084A1 (en) * 2020-12-25 2022-06-30 深圳市大疆创新科技有限公司 Control method and apparatus for electronic devices

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130127158A (en) * 2012-05-14 2013-11-22 (주)케이스마텍 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
CN105430594A (en) * 2015-10-23 2016-03-23 中国联合网络通信集团有限公司 Set top box and file-sharing system
US20180103338A1 (en) * 2015-06-26 2018-04-12 Feitian Technologies Co., Ltd. Method for implementing bluetooth automatic return link in android system
US20190159271A1 (en) * 2016-06-30 2019-05-23 Huawei Technologies Co., Ltd. Bluetooth connection management method, master bluetooth device, and apparatus
CN110784858A (en) * 2019-10-10 2020-02-11 RealMe重庆移动通信有限公司 Bluetooth device control method and device, electronic device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130127158A (en) * 2012-05-14 2013-11-22 (주)케이스마텍 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
US20180103338A1 (en) * 2015-06-26 2018-04-12 Feitian Technologies Co., Ltd. Method for implementing bluetooth automatic return link in android system
CN105430594A (en) * 2015-10-23 2016-03-23 中国联合网络通信集团有限公司 Set top box and file-sharing system
US20190159271A1 (en) * 2016-06-30 2019-05-23 Huawei Technologies Co., Ltd. Bluetooth connection management method, master bluetooth device, and apparatus
CN110784858A (en) * 2019-10-10 2020-02-11 RealMe重庆移动通信有限公司 Bluetooth device control method and device, electronic device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022134084A1 (en) * 2020-12-25 2022-06-30 深圳市大疆创新科技有限公司 Control method and apparatus for electronic devices
CN113377325A (en) * 2021-05-27 2021-09-10 深圳市亚昱科技有限公司 Bluetooth sound box and control method thereof

Also Published As

Publication number Publication date
CN111385781B (en) 2023-02-24

Similar Documents

Publication Publication Date Title
US10904482B2 (en) Method and apparatus for generating video file, and storage medium
TWI592021B (en) Method, device, and terminal for generating video
CN110543289B (en) Method for controlling volume and electronic equipment
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
WO2018157812A1 (en) Method and apparatus for implementing video branch selection and playback
CN112863474A (en) Real-time digital audio signal sound mixing method and device
KR20140126140A (en) Mobile apparatus providing with changed-shortcut icon responding to status of mobile apparatus and control method thereof
US11233895B2 (en) Automatic wallpaper setting method, terminal device, and graphical user interface
KR102527178B1 (en) Voice control command generation method and terminal
CN111385781B (en) File sharing method, smart watch, storage medium and electronic device
US20150279371A1 (en) System and Method for Providing an Audio Interface for a Tablet Computer
US20130117670A1 (en) System and method for creating recordings associated with electronic publication
US20120052933A1 (en) Multifunctional gaming platform
WO2022095465A1 (en) Information display method and apparatus
KR20140031035A (en) Mobile terminal and control method thereof
WO2022135527A1 (en) Video recording method and electronic device
CN109614470B (en) Method and device for processing answer information, terminal and readable storage medium
US20180373490A1 (en) Volume processing method and device and storage medium
US11210056B2 (en) Electronic device and method of controlling thereof
CN105721904B (en) The method of the content output of display device and control display device
CN115729511A (en) Audio playing method and electronic equipment
CN106384586A (en) Method and device for reading text information
US20210343283A1 (en) Electronic device for sharing user-specific voice command and method for controlling same
WO2018010319A1 (en) Method and apparatus for displaying application function

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