CN106572162A - File sharing method and device based on Bluetooth, and electronic equipment - Google Patents
File sharing method and device based on Bluetooth, and electronic equipment Download PDFInfo
- Publication number
- CN106572162A CN106572162A CN201610942039.4A CN201610942039A CN106572162A CN 106572162 A CN106572162 A CN 106572162A CN 201610942039 A CN201610942039 A CN 201610942039A CN 106572162 A CN106572162 A CN 106572162A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- file
- instruction
- shared
- sharing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a file sharing method and device based on Bluetooth, and electronic equipment, and belongs to the technical field of Bluetooth communication. The method comprises the steps: sharing a selected file in a Bluetooth mode; selecting file receiving equipment; transmitting a file sharing instruction to the receiving equipment; receiving a sharing confirming instruction from the receiving equipment; and transmitting the selected file to the receiving equipment. According to the scheme of the invention, the method can greatly simplify the operation of receiving and transmitting sides.
Description
Technical field
The present invention relates to technical field of bluetooth communication, it is more particularly to a kind of based on the file sharing method of bluetooth, device and
Electronic equipment.
Background technology
With the development of computer technology and Internet technology, the file-sharing, data transfer and information between many equipment
The technologies such as interaction are also widely used, and user can between different devices realize various files, data and information
It is shared.
At present, mobile terminal such as smart mobile phone all standard configuration bluetooths, its application scenarios are also more, and small documents are shared and compared
It is convenient.By taking current android system as an example, sharing model approximately as:Receiving-transmitting sides all first open bluetooth, send equipment elder generation
The file to be sent is selected, then selects to receive transmission after object in bluetooth equipment list, receiving device will be arrived first in notice
The heart confirms that hereafter can eject reception prompting frame, after reaffirming, ability end of transmission realizes sharing files, this file
Shared model is complex, is not convenient to use.
The content of the invention
The present invention provides a kind of based on the file sharing method of bluetooth, device and electronic equipment, to solve using existing indigo plant
The mode of operation of tooth Techno-sharing file is complex, the technical problem being not convenient to use.
According to an aspect of the present invention, a kind of file sharing method based on bluetooth, including:Bluetooth approach is selected to share
Select files;The receiving device of selecting file;File-sharing instruction is sent to receiving device;Receive from receiving device and confirm to share
Instruction;Transmission will be selected files to receiving device.
Wherein, the receiving device of the selecting file is further included:Obtain locally available bluetooth equipment list;Institute
State and take in list the receiving device.
Wherein, the receiving device of the selecting file is further included:Bluetooth recipient devices near search;Searching
Bluetooth recipient devices in choose the receiving device.
Wherein, it is described to further include to receiving device transmission file-sharing instruction:
The file-sharing comprising safety verification information is generated based on the receiving device chosen to instruct;
The file-sharing instruction is sent to the receiving device so that the receiving device confirms that this file-sharing is
The equipment of safety is initiated.
Wherein, described transmission to receiving device also include before file-sharing instruction:The local bluetooth state of detection;If inspection
Bluetooth closing is measured, then opens bluetooth.
Wherein, described reception from receiving device confirms that shared instruction includes:
Start timing after the file-sharing instruction is sent, wait from receiving device and receive confirmation shared instruction or refusal
Shared instruction;After the confirmation shared instruction or the refusal shared instruction are received in preset time period, accordingly start or take
Disappear the transmission for selecting files;When the confirmation shared instruction or the refusal shared instruction are not received in preset time period, then
It is secondary to send the file-sharing instruction.
Wherein, the transmission that will select files also includes to receiving device:
Obtain shared front local bluetooth state;Local bluetooth connection state after detection is shared;According to local before sharing
Bluetooth state and it is shared after local bluetooth connection state local bluetooth state is set.
Wherein, the step of setting transmission equipment bluetooth state is further included:
If local bluetooth state is unlatching before shared, or is connected to other bluetooth equipments after sharing, then will be local blue
Dental phenomenon is set to bluetooth unlatching;
If local bluetooth state is to close before shared, and is not attached to other bluetooth equipments after sharing, then will be local
Bluetooth state is set to bluetooth closing.
According to another aspect of the present invention, a kind of file sharing device based on bluetooth, described device includes:
Shared selecting module, for selecting, bluetooth approach is shared to select files;
Equipment chooses module, for the receiving device of selecting file;
Instruction sending module, for sending file-sharing instruction to receiving device;
Confirmation command module, for receiving from receiving device shared instruction is confirmed;
File sending module, sends to receiving device for selecting files.
Wherein, the equipment chooses module, for obtaining locally available bluetooth equipment list, chooses in the list
The receiving device.
Wherein, the equipment chooses module, for searching for neighbouring Bluetooth recipient devices, sets in the Bluetooth receptions for searching
The receiving device is chosen for middle.
Wherein, the instruction sending module includes:
Instruction generates submodule, generates the file-sharing comprising safety verification information based on the receiving device chosen and refers to
Order;
Instruction sending submodule, sends the file-sharing instruction so that the receiving device is true to the receiving device
It is that safe equipment is initiated to recognize this file-sharing.
Wherein, a kind of file sharing device based on bluetooth also includes:Bluetooth opening module, it is local for detecting
Bluetooth state, if detecting bluetooth closing, opens bluetooth.
Wherein, the confirmation command module, for starting timing after the file-sharing instruction is sent, waits from reception
Equipment is received and confirms shared instruction or refusal shared instruction;The confirmation shared instruction is received in preset time period or described is refused
Absolutely after shared instruction, the transmission that the file sending module starts or cancellation selects files is controlled;Do not receive in preset time period
During to the confirmation shared instruction or the refusal shared instruction, the control instruction sending module sends again the file and is total to
Enjoy instruction.
Wherein, a kind of file sharing device based on bluetooth also includes:Bluetooth recovery module, for obtain it is shared before
Local bluetooth state, local bluetooth connection state after detection is shared, according to bluetooth state local before shared and after sharing
Local bluetooth connection state arranges local bluetooth state.
Wherein, the bluetooth recovery module also includes:
Bluetooth setting submodule, if bluetooth state local before shared is unlatching, or is connected to other bluetooths after sharing
Equipment, then be set to local bluetooth state bluetooth and open;If local bluetooth state is to close before shared, and after sharing not
Other bluetooth equipments are connected to, then local bluetooth state are set to into bluetooth and are closed.
According to the another aspect of the application, a kind of electronic equipment is also provided, including:
One or more processors;And,
The memory being connected with the processor communication, wherein,
The memory storage have can by the instruction of the computing device, the instruction by the computing device, with
The processor is set to realize method as above.
The present invention based on the file sharing method of Bluetooth technology, device and electronic equipment, when sending equipment choice bluetooth
When the mode of sharing transmits file, send the backstage self-starting bluetooth of equipment and scan surrounding devices, only need to send equipment choice and connect
Receiving object can start file transmission, and receiving device is directly ejected and receives prompting frame so that receiving device need to only confirm one
Secondary to start to receive file, this file sharing modes significantly simplify the operation of transceiver, and simpler and easy
With.
Description of the drawings
Fig. 1 shows first embodiment of the invention method flow diagram;
Fig. 2 shows second embodiment of the invention structure drawing of device;
Fig. 3 shows third embodiment of the invention method flow diagram;
Fig. 4 shows four embodiment of the invention system construction drawing;
Fig. 5 shows another embodiment system structure chart of the invention;
Fig. 6 shows another embodiment electronic devices structure schematic diagram of the invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention of greater clarity, with reference to specific embodiment and join
According to accompanying drawing, the present invention is described in more detail.It should be understood that these descriptions are simply exemplary, and it is not intended to limit this
Bright scope.Additionally, in the following description, the description to known features and technology is eliminated, to avoid unnecessarily obscuring this
The concept of invention.
Embodiment one
As shown in figure 1, in the embodiment of the present invention, a kind of file sharing method based on bluetooth includes:
Step S1, selects bluetooth approach to share and selects files;
Step S2, the receiving device of selecting file;
Step S3, to receiving device file-sharing instruction is sent;
Step S4, receives from receiving device and confirms shared instruction;
Step S5, the transmission that will select files is to receiving device.
In the embodiment of the present invention, it is the terminal devices such as mobile phone, computer to send equipment, receiving device.
In the present embodiment, select bluetooth approach to share and select files specifically, user selects that file is direct by bluetooth
The option shared, the system for triggering transmission equipment obtains file.
In the present embodiment, step S2 is further included:Obtain locally available bluetooth equipment list;Text is chosen in lists
The receiving device of part.Wherein, to pre-build, bluetooth equipment list interface saves at least one can be connected for bluetooth equipment list
Bluetooth equipment information, by selecting the attachable bluetooth equipment, it is possible to achieve this terminal device and the attachable indigo plant
Tooth equipment connects.
Or, step S2 is further included:Bluetooth recipient devices near search;In the Bluetooth recipient devices for searching
The receiving device of selecting file.Wherein, the Bluetooth recipient devices near searching for, can realize having obtained surrounding by prior art
The information of the bluetooth equipment that Jing is opened.In the present embodiment, user selects to need to carry out file-sharing by bluetooth equipment list
Receiving device, can be one, or multiple.
Wherein, step S3 is further included:The file comprising safety verification information is generated based on the receiving device chosen to be total to
Enjoy instruction;File-sharing instruction is sent to receiving device so that receiving device confirms that this file-sharing is that safe equipment is sent out
Rise.Wherein, by the step, it is ensured that receiving device can receive safe file.
As one preferred embodiment of the invention, also include before step S3:The local bluetooth state of detection;If inspection
Bluetooth closing is measured, then opens bluetooth.
Used as one preferred embodiment of the invention, step S4 includes:Start after the file-sharing instruction is sent
Timing, waits from receiving device and receives confirmation shared instruction or refusal shared instruction;The confirmation is received in preset time period
After shared instruction or the refusal shared instruction, the transmission that corresponding startup or cancellation select files;Do not receive in preset time period
During to the confirmation shared instruction or the refusal shared instruction, the file-sharing instruction is sent again.The present embodiment passes through
Receiving device confirms to receive the file transmission of file or rejection file to realize transmission equipment and receiving device, user
Only need to through once selecting to can be carried out file reception.
As one preferred embodiment of the invention, also include after step S5:Obtain shared front local bluetooth shape
State;Local bluetooth connection state after detection is shared;According to bluetooth state local before shared and it is shared after transmission equipment indigo plant
Tooth connection status arranges local bluetooth state.Wherein, the step of arranging local bluetooth state further includes:If before shared originally
The bluetooth state on ground is unlatching, or is connected to other bluetooth equipments after sharing, then local bluetooth state is set to into bluetooth and is opened;
If local bluetooth state is to close before shared, and is not attached to other bluetooth equipments after sharing, then by local bluetooth state
It is set to bluetooth closing.In the present embodiment, the switch of bluetooth is set according to state of the bluetooth before and after file transmission, it is not necessary to
User come actively close bluetooth or open bluetooth, improve the convenience that user uses.
In a specific embodiment, certain file is shared with mobile phone B by such as mobile phone A by Bluetooth technology, then mobile phone A
User first shares the file to be shared in mobile phone A, i.e. file manager interface of the mobile phone A user in mobile phone A using bluetooth mode
Select file to be shared and shared with bluetooth mode, then mobile phone A can automatically switch to bluetooth equipment list interface, for mobile phone
Party A-subscriber's select file receives object, and finally after mobile phone A user select file receives object mobile phone B, mobile phone A will be to be sent
File is sent to mobile phone B.Consequently, it is possible to simplify the operation of mobile phone A user and mobile phone B user.
Embodiment two
As shown in Fig. 2 being based on the same inventive concept of the methods described of embodiment one, in the embodiment of the present invention, one kind is based on indigo plant
The file sharing device of tooth, described device includes:
Shared selecting module 101, for selecting, bluetooth approach is shared to select files;
Equipment chooses module 102, for the receiving device of selecting file;
Instruction sending module 103, for sending file-sharing instruction to receiving device;
Confirmation command module 104, for receiving from receiving device shared instruction is confirmed;
File sending module 105, sends to receiving device for selecting files.
In the embodiment of the present invention, receiving device is the terminal devices such as mobile phone, computer.
In the present embodiment, select bluetooth approach to share and select files specifically, user selects that file is direct by bluetooth
The option shared, the system for triggering transmission equipment obtains file.
As one preferred embodiment, the equipment chooses module 102, for obtaining locally available bluetooth equipment
List, chooses the receiving device in the list.Wherein, bluetooth equipment list is to pre-build, bluetooth equipment list circle
Face saves the information of at least one attachable bluetooth equipment, by selecting the attachable bluetooth equipment, it is possible to achieve this
Terminal device is connected with the attachable bluetooth equipment.
As one preferred embodiment, the equipment chooses module 102, sets for the Bluetooth receptions near searching for
It is standby, the receiving device is chosen in the Bluetooth recipient devices for searching.Wherein, the Bluetooth recipient devices near searching for, pass through
Prior art can be realized obtaining the information of the bluetooth equipment that surrounding has been switched on.In the present embodiment, user passes through bluetooth equipment
List selects to need to carry out the receiving device of file-sharing, can be one, or multiple.
As one preferred embodiment, instruction sending module 103 includes:Instruction generates submodule 1031, based on choosing
The receiving device for taking generates the file-sharing comprising safety verification information and instructs;Instruction sending submodule 1032, to described
Receiving device sends the file-sharing instruction so that the receiving device confirms that this file-sharing is that safe equipment is sent out
Rise.Wherein, by the step, it is ensured that receiving device can receive safe file.
In the present embodiment, a kind of file sharing device based on bluetooth also includes:Bluetooth opening module 106, is used for
The local bluetooth state of detection, if detecting bluetooth closing, opens bluetooth.
In the present embodiment, the confirmation command module 104, for starting timing after the file-sharing instruction is sent,
Wait from receiving device receiving and confirm shared instruction or refusal shared instruction;The shared finger of the confirmation is received in preset time period
After order or the refusal shared instruction, control the file sending module 105 and start or cancel the transmission that selects files;Default
When the confirmation shared instruction or the refusal shared instruction are not received in the time period, the instruction sending module 103 is controlled again
It is secondary to send the file-sharing instruction.The present embodiment confirms to receive file or rejection file by receiving device, comes real
Now send equipment to send with the file of receiving device, user is only needed to through once selecting to can be carried out file reception.
In the present embodiment, a kind of file sharing device based on bluetooth also includes:Bluetooth recovery module 107, is used for
Bluetooth state local before sharing is obtained, local bluetooth connection state after detection is shared, according to bluetooth shape local before sharing
State and shared rear local bluetooth connection state arrange local bluetooth state.
Wherein, the bluetooth recovery module 107 also includes:
Bluetooth setting submodule 1071, if bluetooth state local before shared is unlatching, or is connected to other after sharing
Bluetooth equipment, then be set to local bluetooth state bluetooth and open;If local bluetooth state is to close before shared, and shared
After be not attached to other bluetooth equipments, then by local bluetooth state be set to bluetooth close.In the present embodiment, recovered by bluetooth
Module 107, according to state of the bluetooth before and after file transmission the switch of bluetooth is arranged, it is not necessary to which user is actively closing bluetooth
Or bluetooth is opened, improve the convenience that user uses.
In a specific embodiment, certain file is shared with mobile phone B by such as mobile phone A by Bluetooth technology, then mobile phone A
User first shares the file to be shared in mobile phone A, i.e. file manager interface of the mobile phone A user in mobile phone A using bluetooth mode
Select file to be shared and shared with bluetooth mode, then mobile phone A can automatically switch to bluetooth equipment list interface, for mobile phone
Party A-subscriber's select file receives object, and finally after mobile phone A user select file receives object mobile phone B, mobile phone A will be to be sent
File is sent to mobile phone B.Consequently, it is possible to simplify the operation of mobile phone A user and mobile phone B user.
Embodiment three
As shown in figure 3, in the embodiment of the present invention, a kind of file sharing method based on bluetooth, including:
Step S100, transmission equipment sends to receiving device and refers to comprising the file-sharing for sending equipment safety confirmation
Order;
Step S200, receiving device receives file-sharing instruction, and true according to transmission equipment safety confirmation therein
It is safe transmission equipment to recognize transmission equipment;
Step S300, receiving device selects to confirm to receive file or rejection file according to user, and to the equipment of transmission
Send and confirm shared instruction or refusal shared instruction;
Step S400, transmission equipment is received to be sent to receiving device after confirmation shared instruction and selected files.
In the present embodiment, it is the terminal devices such as mobile phone, computer to send equipment, receiving device.
In the step s 100, send equipment to send comprising the file-sharing for sending equipment safety confirmation to receiving device
Instruction, by the step, it is ensured that receiving device can receive safe file.Wherein, step S100 is further included:Base
Generate comprising the file-sharing instruction for sending equipment safety confirmation in the receiving device chosen;File is sent to receiving device
Shared instruction so that receiving device confirms that transmission equipment is safe transmission equipment.
As one preferred embodiment of the invention, also include before step S100:The bluetooth shape of detection transmission equipment
State;If detecting bluetooth closing, bluetooth is opened.
As one preferred embodiment of the invention, also include after step S400:Obtain shared front transmission equipment
Bluetooth state;The bluetooth connection state of equipment is sent after detection is shared;According to the bluetooth state of transmission equipment before shared and share
The bluetooth connection state for sending equipment afterwards arranges transmission equipment bluetooth state.Wherein, the step of transmission equipment bluetooth state is set
Further include:If the bluetooth state of transmission equipment is unlatching before sharing, or transmission equipment is connected to other bluetooths after sharing
Equipment, then be set to transmission equipment bluetooth and open;If the bluetooth state of transmission equipment is to close before shared, and sends out after sharing
Send equipment to be not attached to other bluetooth equipments, then transmission equipment is set to into bluetooth and is closed.In the present embodiment, according to bluetooth in text
Part send before and after state arranging the switch of bluetooth, it is not necessary to user is improve actively closing bluetooth or open bluetooth
The convenience that user uses.
In a specific embodiment, if the bluetooth default conditions of terminal device A are to close, and after file end of transmission,
The bluetooth of terminal device A is in not-connected status, for example, the bluetooth of terminal device A do not connect bluetooth earphone, Baffle Box of Bluetooth or
Person's blue tooth vehicular etc., then after Successful transmissions file, the bluetooth state of terminal device A is recovered to closed mode.
If the bluetooth default conditions of terminal device A are to close, and after file end of transmission, the bluetooth of terminal device A is in
Connection status, for example, the bluetooth of terminal device A has connected bluetooth earphone, Baffle Box of Bluetooth or blue tooth vehicular etc., then terminal device
The bluetooth state of terminal device A is remained opening by A after Successful transmissions file.
If the bluetooth default conditions of terminal device A are to open, regardless of whether having connected bluetooth earphone, Baffle Box of Bluetooth or indigo plant
Dental alveolus load etc., then the bluetooth state of terminal device A is remained opening by terminal device A after Successful transmissions file.
By the present embodiment method, can be changed according to the state of the bluetooth to terminal device that needs of user, energy
Enough improve Consumer's Experience.
Example IV
As shown in figure 4, being based on the same inventive concept of the methods described of embodiment three, in the embodiment of the present invention, one kind is based on indigo plant
The shared file system of tooth, including:
Transmission equipment 10, for sending comprising the file-sharing instruction for sending equipment safety confirmation to receiving device;
With
Receiving device 20, for receiving file-sharing instruction, and confirms according to transmission equipment safety confirmation therein
Transmission equipment is safe transmission equipment.
By sending the file-sharing instruction between equipment 10 and receiving device 20, file-sharing instruction contains safety really
Recognize information, it is ensured that receiving device can receive safe file.
Wherein, receiving device 20 selects to confirm to receive file or rejection file according to user, and sends out to the equipment of transmission
Send confirmation shared instruction or refusal shared instruction;Transmission equipment 10 is received to be sent to receiving device after confirmation shared instruction and selected
File.
As one preferred embodiment of the invention, as shown in figure 5, transmission equipment 10 is further included:
First sharing files unit 11, for selecting the file shared and the mode shared.
First Bluetooth processing unit 12, is included for selecting Bluetooth recipient devices, and being generated based on the receiving device chosen
Send the file-sharing instruction of equipment safety confirmation.
First bluetooth module 13, for forming bluetooth equipment list, based on bluetooth approach send file-sharing instruction and/or
File.First bluetooth module 13 sends file-sharing instruction and/or file as communication module by bluetooth approach, it is ensured that text
The security of part transmission.
In preferred embodiment, when the mode that the select file of the first sharing files unit 11 is shared is bluetooth, first is blue
Tooth processing unit 12 obtains the bluetooth equipment list of transmission equipment, the in lists reception of selecting file from the first bluetooth module 13
Equipment.
In preferred embodiment, the first bluetooth module 13 also searches for neighbouring Bluetooth recipient devices, and by the indigo plant for searching
Tooth receiving device is deposited in bluetooth equipment list.Bluetooth recipient devices near search, can realize obtaining by prior art
The information of the bluetooth equipment having been switched on around taking.
In preferred embodiment, the first Bluetooth processing unit 12 detects the first bluetooth module before file-sharing instruction is sent
13 bluetooth state, when bluetooth module closing is detected, opens bluetooth module.
In preferred embodiment, the first Bluetooth processing unit 12 also carries out operations described below after file is sent:Obtain shared
The bluetooth state of front transmission equipment;The bluetooth connection state of equipment is sent after detection is shared;According to the indigo plant of transmission equipment before sharing
Dental phenomenon and it is shared after send the bluetooth connection state of equipment the bluetooth state of the first bluetooth module 13 be set.Wherein, first is blue
Tooth processing unit 12 arranges the bluetooth state of the first bluetooth module 13 by following manner:If the bluetooth of transmission equipment before shared
State is unlatching, or transmission equipment is connected to other bluetooth equipments after sharing, then the first bluetooth module 13 is set to into bluetooth and is opened
Open;If the bluetooth state of transmission equipment is to close before sharing, and transmission equipment is not attached to other bluetooth equipments after sharing, then
First bluetooth module 13 is set to into bluetooth to close.
As one preferred embodiment of the invention, as shown in figure 5, receiving device 20 includes:
Second sharing files unit 21, for when file-sharing instruction is received, being selected to confirm to receive text according to user
Part or rejection file, and generate confirmation shared instruction or refusal shared instruction;
Second Bluetooth processing unit 22, for the transmission equipment safety confirmation letter in the file-sharing instruction for receiving
Breath, confirms that transmission equipment is safe transmission equipment;
Second bluetooth module 23, for returning based on bluetooth approach shared instruction or refusal shared instruction are confirmed, and/or are connect
Message in-coming part is transmitted.
As shown in figure 5, transmission equipment and receiving device may be located at same intelligent terminal, i.e., same intelligent terminal both can be with
File is sent as the equipment of transmission to other intelligent terminal, it is also possible to receive the file of other intelligent terminal as accepting device.
In a specific embodiment, certain file is shared with mobile phone B by such as mobile phone A by Bluetooth technology, then mobile phone A
Transmitting element mobile phone A user using bluetooth mode share in mobile phone A after file is shared, i.e. mobile phone A user is in mobile phone A
File manager interface select file to be shared and shared with bluetooth mode, the transmitting element of mobile phone A can be automatically switched to
The bluetooth equipment list interface of the mobile phone A, for mobile phone A user select file object is received, and is connect in mobile phone A user's select file
After receiving object mobile phone B, file to be sent is sent to mobile phone B, received by the receiving unit of mobile phone B.Consequently, it is possible to simplify
Mobile phone A user and the operation of mobile phone B user.
So, when transmission equipment choice bluetooth sharing mode transmits file, the backstage self-starting bluetooth of equipment is sent simultaneously
Scanning surrounding devices, it is only necessary to which user's choosing receives object can start file transmission, and receiving device directly ejects acceptance and carries
Show frame so that receiving device starts to receive file by only need to confirming once, and this file sharing modes significantly simplify receipts
The operation of both sides is sent out, and it is simpler and easy-to-use.
As above, the shared file system based on bluetooth of the invention, can simplify operating procedure, more fast.
Embodiment five
As shown in fig. 6, the same inventive concept of said method is based on, and in the embodiment of the present invention, a kind of electronic equipment, including:
One or more processors;And, the memory being connected with the processor communication, wherein, the memory storage has can quilt
The instruction of the computing device, the instruction is by the computing device, so that the processor can be realized as mentioned above
Method.
With reference to Fig. 6, Fig. 6 is a kind of electronics of the file sharing method based on bluetooth of execution that the embodiment of the present application one is provided
The hardware architecture diagram of equipment, as shown in fig. 6, the equipment includes:One or more processors 601 and memory 620, figure
In 6 by taking a processor 610 as an example.
Performing a kind of electronic equipment of the file sharing method based on bluetooth can also include:Input unit 630 and output
Device 640.
Processor 601, memory 620, input unit 630 and output device 640 can be connected by bus or other modes
Connect, in Fig. 6 by way of being connected bus as a example by.
It will be understood by those skilled in the art that the structure of the electronic equipment illustrated in Fig. 6 is not constituted to present invention enforcement
The restriction of example, it both can be busbar network, or hub-and-spoke configuration, can also include than illustrating more or less of portion
Part, or some parts are combined, or different part arrangements.
Processor 601 can be made up of integrated circuit (IntegratedCircuit, abbreviation IC), for example can be by single
The IC of encapsulation is constituted, it is also possible to be made up of the encapsulation IC of many identical functions of connection or difference in functionality.For example, process
Device 501 can only include central processing unit (CentralProcessingUnit, abbreviation CPU), or CPU, data signal
Processor (digitalsignalprocessor, abbreviation DSP), graphic process unit (GraphicProcessingUnit, abbreviation
GPU) and various control chips combination.In embodiments of the present invention, CPU can be single arithmetic core, it is also possible to including many
Arithmetic core.
Memory 620 can be used to storing non-transient software program, non-as a kind of non-transient computer readable storage medium storing program for executing
Transient computer class configuration processor and module.Processor 610 is stored in the non-transient software journey of memory 620 by operation
Sequence, instruction and module, the various function application and data processing so as to execute server, that is, realize said method embodiment
Obtain locally available bluetooth equipment list.
Memory 620 can include storing program area and storage data field, wherein, storing program area can store operation system
Application program required for system, at least one function;In embodiments of the present invention, operating system can be android system,
IOS system or Windows operating system etc..Storage data field can store the use institute of the processing meanss according to list items operation
Data of establishment etc..Additionally, memory 620 can include high-speed random access memory, non-transient memory can also be included,
For example, at least one disk memory, flush memory device or other non-transient solid-state memories.In certain embodiments,
Memory 620 is optional including relative to the remotely located memory of processor 610, and these remote memories can be connected by network
It is connected to the processing meanss of list items operation.The embodiment of above-mentioned network includes but is not limited to internet, intranet, local
Net, mobile radio communication and combinations thereof.
Input unit 640 can receives input numeral or character information, and produce and the processing meanss of list operation
The key signals input that user is arranged and function control is relevant.Input unit can include touch-screen, keyboard etc., it is also possible to include
Wireline interface, wave point etc..Option that user realizes selecting directly sharing file by bluetooth by input unit 640,
The system of triggering transmission equipment obtains file, selection to be needed to carry out the receiving device of file-sharing.
Output device 640 may include the equipment such as display screen, loudspeaker, it is also possible to including wireline interface, wave point etc..
One or more of modules are stored in the memory 620, when by one or more of processors 610
During execution, the step of perform the file sharing method based on bluetooth in any of the above-described embodiment of the method.
The method that the executable the embodiment of the present application of the said goods is provided, possesses the corresponding functional module of execution method and has
Beneficial effect.Ins and outs of detailed description in the present embodiment, not can be found in the method that the embodiment of the present application is provided.
Electronic equipment can for smart mobile phone (such as Android phone, iOS mobile phones), panel computer, palm PC and
Mobile internet device MobileInternetDevices, MID), PAD etc..
In the embodiment of the present invention, a kind of computer program, the computer program is non-transient including being stored in
Calculation procedure on computer-readable recording medium, the computer program includes programmed instruction, when described program instruction is counted
When calculation machine is performed, the computer is set to perform the method in above-described embodiment.
User can touch control operation be transmitted request, or user passes through whipping by being input on an electronic device
Electronic equipment is transmitted request, and the embodiment of the present invention is not construed as limiting.Wherein, when user is by being input on an electronic device touch-control
When operation sends request, electronic equipment can obtain the touch parameter of touch control operation, and the touch parameter that gets of detection with it is pre-
If for characterize send request touch parameter whether match, if matching, by the touch control operation be considered as send request behaviour
Make, otherwise, the touch control operation is considered as into invalid operation.When input request is carried out by whipping electronic equipment, electronic equipment can
To obtain the whipping parameter of whipping operation, and the whipping parameter for getting is sent into the whipping asked ginseng with default for characterizing
Whether number matches, if matching, the whipping operation is considered as the operation for sending request, otherwise the whipping operation is considered as into invalid behaviour
Make.Further, it is possible to preset in the electronic device for characterizing the touch parameter for sending ID authentication request, wherein, for table
Levy send ID authentication request touch parameter can be user set as needed, or electronic equipment according to
The history setting record at family is set, and can also be that electronic equipment is set according to the history touch control operation of user, this
Bright embodiment is not construed as limiting.
It is contemplated that protection is a kind of based on the file sharing method of bluetooth, device and electronic equipment, when the choosing of the equipment of transmission
When selecting bluetooth sharing mode and transmitting file, the backstage self-starting bluetooth for sending equipment simultaneously scans surrounding devices, only need to send equipment
Select to start file transmission by receiving object, and receiving device is directly ejected and receives prompting frame so that and receiving device is only needed
Confirm once to start to receive file, this file sharing modes significantly simplify the operation of receiving-transmitting sides, and simpler
It is single and easy-to-use.
It will be appreciated by those skilled in the art that realizing that all or part of step in above-described embodiment method can be by
Program is completed to instruct the hardware of correlation, and the program storage is in a storage medium, including some instructions are used so that one
Individual equipment (can be single-chip microcomputer, chip etc.) or processor (processor) perform the whole of each embodiment method of the application
Or part steps.And aforesaid storage medium includes:USB flash disk, portable hard drive, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
It should be appreciated that the above-mentioned specific embodiment of the present invention is used only for exemplary illustration or explains the present invention's
Principle, and be not construed as limiting the invention.Therefore, that what is done in the case of without departing from the spirit and scope of the present invention is any
Modification, equivalent, improvement etc., should be included within the scope of the present invention.Additionally, claims purport of the present invention
In the whole changes covered in the equivalents for falling into scope and border or this scope and border and repair
Change example.
Claims (17)
1. a kind of file sharing method based on bluetooth, including:
Select bluetooth approach to share to select files;
The receiving device of selecting file;
File-sharing instruction is sent to receiving device;
Receive from receiving device and confirm shared instruction;
Transmission will be selected files to receiving device.
2. method according to claim 1, the receiving device of the selecting file is further included:
Obtain locally available bluetooth equipment list;
The receiving device is chosen in the list.
3. method according to claim 1, the receiving device of the selecting file is further included:
Bluetooth recipient devices near search;
The receiving device is chosen in the Bluetooth recipient devices for searching.
4. method according to claim 1, wherein, it is described to send file-sharing instruction to receiving device and further include:
The file-sharing comprising safety verification information is generated based on the receiving device chosen to instruct;
The file-sharing instruction is sent to the receiving device so that the receiving device confirms this file-sharing for safety
Equipment initiate.
5. method according to claim 1, wherein, described transmission to receiving device also include before file-sharing instruction:
The local bluetooth state of detection;
If detecting bluetooth closing, bluetooth is opened.
6. method according to claim 1, wherein, described reception from receiving device confirms that shared instruction includes:
Start timing after the file-sharing instruction is sent, wait from receiving device reception and confirm that shared instruction or refusal are shared
Instruction;
It is corresponding to start or cancel selected after the confirmation shared instruction or the refusal shared instruction are received in preset time period
The transmission of file;
When the confirmation shared instruction or the refusal shared instruction are not received in preset time period, the file is sent again
Shared instruction.
7. method according to claim 1, wherein, the transmission that will select files also includes to receiving device:
Obtain shared front local bluetooth state;
Local bluetooth connection state after detection is shared;
Local bluetooth state is arranged according to bluetooth state and shared rear local bluetooth connection state local before sharing.
8. the step of method according to claim 7, setting local bluetooth state, further includes:
If local bluetooth state is unlatching before shared, or is connected to other bluetooth equipments after sharing, then by local bluetooth shape
State is set to bluetooth unlatching;
If local bluetooth state is to close before shared, and is not attached to other bluetooth equipments after sharing, then by local bluetooth
State is set to bluetooth closing.
9. a kind of file sharing device based on bluetooth, it is characterised in that described device includes:
Shared selecting module, for selecting, bluetooth approach is shared to select files;
Equipment chooses module, for the receiving device of selecting file;
Instruction sending module, for sending file-sharing instruction to receiving device;
Confirmation command module, for receiving from receiving device shared instruction is confirmed;
File sending module, sends to receiving device for selecting files.
10. file sharing device according to claim 9, wherein, the equipment chooses module, locally available for obtaining
Bluetooth equipment list, the receiving device is chosen in the list.
11. file sharing devices according to claim 9, wherein, the equipment chooses module, for searching for neighbouring indigo plant
Tooth receiving device, chooses the receiving device in the Bluetooth recipient devices for searching.
12. file sharing devices according to claim 9, wherein, the instruction sending module includes:
Instruction generates submodule, generates the file-sharing comprising safety verification information based on the receiving device chosen and instructs;
Instruction sending submodule, sends the file-sharing instruction so that the receiving device confirms this to the receiving device
Secondary file-sharing is that safe equipment is initiated.
13. file sharing devices according to claim 9, also including bluetooth opening module, for detecting local bluetooth
State, if detecting bluetooth closing, opens bluetooth.
14. file sharing devices according to claim 9, wherein, the confirmation command module, for sending the text
Start timing after part shared instruction, wait from receiving device and receive confirmation shared instruction or refusal shared instruction;In Preset Time
After the confirmation shared instruction or the refusal shared instruction are received in section, control the file sending module and start or cancel choosing
Determine the transmission of file;When the confirmation shared instruction or the refusal shared instruction are not received in preset time period, institute is controlled
State instruction sending module and send the file-sharing instruction again.
15. file sharing devices according to claim 9, also include:Bluetooth recovery module, it is shared front local for obtaining
Bluetooth state, local bluetooth connection state after detection is shared, according to bluetooth state local before shared and it is shared after locally
Bluetooth connection state arrange local bluetooth state.
16. file sharing devices according to claim 15, the bluetooth recovery module also includes:
Bluetooth setting submodule, if bluetooth state local before shared is unlatching, or is connected to other bluetooth equipments after sharing,
Then local bluetooth state is set to into bluetooth to open;If local bluetooth state is to close before shared, and is not connected with after sharing
To other bluetooth equipments, then local bluetooth state is set to into bluetooth and is closed.
17. a kind of electronic equipment, including:
One or more processors;And,
The memory being connected with the processor communication, wherein,
The memory storage has can be by the instruction of the computing device, and the instruction is by the computing device, so that institute
State the method that processor can be realized as any one of claim 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610942039.4A CN106572162A (en) | 2016-10-25 | 2016-10-25 | File sharing method and device based on Bluetooth, and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610942039.4A CN106572162A (en) | 2016-10-25 | 2016-10-25 | File sharing method and device based on Bluetooth, and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106572162A true CN106572162A (en) | 2017-04-19 |
Family
ID=58536416
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610942039.4A Pending CN106572162A (en) | 2016-10-25 | 2016-10-25 | File sharing method and device based on Bluetooth, and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106572162A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2226993A2 (en) * | 2009-03-06 | 2010-09-08 | Sony Ericsson Mobile Communications AB | Communication terminal, transmission method, and transmission system |
CN102984393A (en) * | 2012-12-12 | 2013-03-20 | 深圳市中兴移动通信有限公司 | Method for file transmission between mobile terminals and mobile terminal |
CN103220019A (en) * | 2013-04-28 | 2013-07-24 | 上海斐讯数据通信技术有限公司 | Implementation method of bluetooth data transmission and mobile terminal |
CN103490800A (en) * | 2013-09-25 | 2014-01-01 | 深圳市欧珀通信软件有限公司 | Method and device for transmitting files through Bluetooth |
CN105245612A (en) * | 2015-10-27 | 2016-01-13 | 惠州Tcl移动通信有限公司 | File transmission method and system of terminal |
CN105262790A (en) * | 2015-09-08 | 2016-01-20 | 捷开通讯科技(上海)有限公司 | File transmission method for mobile terminal |
-
2016
- 2016-10-25 CN CN201610942039.4A patent/CN106572162A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2226993A2 (en) * | 2009-03-06 | 2010-09-08 | Sony Ericsson Mobile Communications AB | Communication terminal, transmission method, and transmission system |
CN102984393A (en) * | 2012-12-12 | 2013-03-20 | 深圳市中兴移动通信有限公司 | Method for file transmission between mobile terminals and mobile terminal |
CN103220019A (en) * | 2013-04-28 | 2013-07-24 | 上海斐讯数据通信技术有限公司 | Implementation method of bluetooth data transmission and mobile terminal |
CN103490800A (en) * | 2013-09-25 | 2014-01-01 | 深圳市欧珀通信软件有限公司 | Method and device for transmitting files through Bluetooth |
CN105262790A (en) * | 2015-09-08 | 2016-01-20 | 捷开通讯科技(上海)有限公司 | File transmission method for mobile terminal |
CN105245612A (en) * | 2015-10-27 | 2016-01-13 | 惠州Tcl移动通信有限公司 | File transmission method and system of terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6997343B2 (en) | How to quickly open an application or application function, and a terminal | |
CN104579658B (en) | A kind of auth method and device | |
CN104901805B (en) | A kind of identification authentication methods, devices and systems | |
JP7332087B2 (en) | Systems and methods for signing transactions using air-gapped private keys | |
CN104967593B (en) | A kind of auth method, device and system | |
TW201423627A (en) | Electronic device and method for controlling payment function of input means | |
CN107743086A (en) | A kind of message treatment method and system, message is sent and reception device | |
CN106952089A (en) | A kind of startup method, device and the mobile terminal at payment interface | |
CN107483213A (en) | A kind of method of safety certification, relevant apparatus and system | |
CN108475304B (en) | Method and device for associating application program and biological characteristics and mobile terminal | |
CN102469213B (en) | Mobile communication device and method | |
ES2329052T3 (en) | TREATMENT OF DATA SENSITIVE TO THE CONTEXT. | |
CN105100449B (en) | A kind of picture sharing method and mobile terminal | |
CN108781234A (en) | Function control method and terminal | |
EP2927834A1 (en) | Information processing apparatus, information processing method, and recording medium | |
CN106716429A (en) | Monitoring method and device, and electronic equipment | |
CN107369017A (en) | Quick payment implementation method and Related product | |
CN106557327A (en) | Payment interface call method and mobile terminal | |
CN110941821A (en) | Data processing method, device and storage medium | |
CN108513716A (en) | The method and apparatus for establishing connection | |
CN105848151A (en) | WiFi access point equipment, WiFi access authentication control method and WiFi access authentication control device | |
CN107679410A (en) | Possess the mobile terminal and Related product of certain privacy protection function | |
CN108196762A (en) | A kind of terminal control method, terminal and computer readable storage medium | |
CN105701386A (en) | Security certification method and device | |
CN106203143A (en) | Method, device and the mobile terminal of a kind of application program locking |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170419 |