A kind of method of data transfer, device and equipment
Technical field
The application is related to technical field of data transmission, more particularly to a kind of method of data transfer, a kind of data transfer
Device and a kind of equipment of data transfer.
Background technology
As VR (virtual reality, virtual reality) research tends to be ripe, VR technologies are increasingly widely applied
Into game, the wherein extensive use of VR handles and CardBoard and HDM equipment in 3D game allows Consumer's Experience to experience personally
The scene of game in its border, thus by users high praise and like.
At present, on the market in the VR handles of prevalence based on bluetooth VR handles, the former is carried out wirelessly using bluetooth mode
Data transfer, and the transmission delay of bluetooth causes game operation delay to cause user's dizziness between 16-40 milliseconds, in gaming
Sense.
For wanting speech control function being added to the user of VR handles, only cause to postpone using Bluetooth transmission
Height, result in can not be on the VR handles for realize Voice command while the problem of taking into account message transmission rate.
The content of the invention
In view of the above problems, it is proposed that the embodiment of the present application overcomes above mentioned problem or at least in part to provide one kind
The device and a kind of data transfer of a kind of method of the data transfer solved the above problems and a kind of corresponding data transfer
Equipment.
In order to solve the above problems, this application discloses a kind of method of data transfer, including:Detect user speech defeated
After entering, then whether the data-transmission mode for detecting VR handles is bluetooth mode;If detecting the data-transmission mode of VR handles not
It is bluetooth mode, then points out user to be switched to bluetooth mode;If the data-transmission mode for detecting VR handles is bluetooth mode,
Open the voice control function of the VR handles.
Alternatively, if the data-transmission mode for detecting VR handles is not bluetooth mode, user is pointed out to be switched to
The step of bluetooth mode, including:If the data-transmission mode for detecting VR handles is RF patterns, user is pointed out to pass through pattern
Change-over switch by the data-transmission mode of VR handles from the RF pattern switchings be bluetooth mode.
Alternatively, in the prompting user by mode conversion switch by the data-transmission mode of VR handles from the RF moulds
After the step of formula switches to bluetooth mode, in addition to:Receive the touch control operation on mode conversion switch;According to the touch-control
Operation, is bluetooth mode by RF pattern switchings, and shield the RF data-transformation facilities.
Alternatively, it is described that user speech input is detected in preset time period, then detect the data transfer mould of VR handles
The step of formula, including:The data that drainage pattern conversion sensor is sent;According to the data transmission characteristics, current VR hands are judged
The data-transmission mode that handle is used.
Alternatively, it is described detect user speech input after, then whether the data-transmission mode for detecting VR handles is blue
After the step of tooth pattern, in addition to:User speech input, and the data-transmission mode are not detected by preset time period
For bluetooth mode, then user is pointed out to switch the bluetooth mode to the RF patterns.
This application discloses a kind of device of data transfer, including:Data-transmission mode detection module, for detecting use
After the phonetic entry of family, then whether the data-transmission mode for detecting VR handles is bluetooth mode;Prompting switching bluetooth module, if for
The data-transmission mode for detecting VR handles is not bluetooth mode, then points out user to be switched to bluetooth mode;Voice command is opened
Module, if the data-transmission mode for detecting VR handles is bluetooth mode, opens the Voice command work(of the VR handles
Energy.
Alternatively, the prompting switching bluetooth module includes:Prompting switching bluetooth submodule, if for detecting VR handles
Data-transmission mode be RF patterns, then point out user by mode conversion switch by the data-transmission mode of VR handles from described
RF pattern switchings are bluetooth mode.
Alternatively, in addition to:Touch control operation receiving submodule, for receiving the touch control operation on mode conversion switch;
Bluetooth switching submodule, for being bluetooth mode by RF pattern switchings according to the touch control operation, and shields the RF data biography
Transmission function.
Alternatively, the data-transmission mode detection module, including:Data-acquisition submodule, for drainage pattern conversion
The data that sensor is sent;Judging submodule, for according to the data transmission characteristics, judging the data that current VR handles are used
Transmission mode.
Alternatively, in addition to:Prompting switching RF modules, for being not detected by user speech input in preset time period,
And the data-transmission mode is bluetooth mode, then user is pointed out to switch the bluetooth mode to the RF patterns.
The application also includes a kind of equipment of data transfer, including:For bluetooth transmission and RF transmission modes it
Between the mode conversion switch changed;The mode conversion switch includes the data transfer mould for being used to detect current mobile terminal connection
The patten transformation sensor of formula;The mode conversion switch is connected with nRF family chips and bluetooth module respectively;For entering
The nRF family chips of row RF data-transmission modes;Bluetooth module for carrying out Bluetooth data transfer.
The embodiment of the present application includes advantages below:
The embodiment of the present application, by detecting after user speech input, then whether the data-transmission mode of detection VR handles
For bluetooth mode;If the data-transmission mode for detecting VR handles is bluetooth mode, the Voice command of the VR handles is opened
Function;If the data-transmission mode for detecting VR handles is not bluetooth mode, user is pointed out to be switched to bluetooth mode.Solve
Only cause delay too high using Bluetooth transmission, or only using RF module transfers can not then realize the transmission of speech data, cause
Can not be on the VR handles for realize Voice command while the problem of taking into account message transmission rate, has reached for different application
The beneficial effect of environment compatible two kinds of data-transmission modes in same VR equipment.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of the embodiment of the method for data transfer that the embodiment of the present application is provided;
Fig. 2 is the step flow chart of the embodiment of the method for another data transfer that the embodiment of the present application is provided;
Fig. 3 is a kind of structured flowchart of the device embodiment for data transfer that the embodiment of the present application is provided;
Fig. 4 is a kind of structured flowchart of the equipment for data transfer that the embodiment of the present application is provided;
Fig. 5 is a kind of VR handles schematic diagram that the embodiment of the present application is provided.
Embodiment
It is below in conjunction with the accompanying drawings and specific real to enable above-mentioned purpose, the feature and advantage of the application more obvious understandable
Mode is applied to be described in further detail the application.
Embodiment one
Reference picture 1, shows a kind of step flow chart of the embodiment of the method for data transfer of the application, can specifically wrap
Include following steps:
Step 101, detect user speech input after, detection VR handles data-transmission mode whether be bluetooth mode.
In the embodiment of the present invention, it is mainly used for controlling game paddle so as to control the progress of game, everybody can pass through
VR game paddles play game, then wear VR glasses, can obtain game experiencing on the spot in person, wherein, VR handles are
Data exchange is carried out with game station by way of radio communication, and is added on VR handles after voice control function, is used
Family can be pressed switch to open Voice command pattern by handle, can say phonetic order to handle.Under normal circumstances, VR is being opened
After the power switch of handle, the small routine of a detection phonetic entry can be set, for detecting user in preset time period
Whether phonetic control command is sent, wherein, preset time period can according to demand be set by user, can also be by correlation technique people
Member presets, such as 0.5 second or 1 second.
Specifically, after the major function that realize voice control function and need to initially set up sound template storehouse is storage training
Optimality criterion speech characteristic vector, secondly, it is necessary to complete the functions such as signal condition and signal acquisition, it is by primary speech signal
Talk spurt sequence is converted into, therefore the module mainly includes the signal processings such as sound/electricity conversion, signal condition and sampling,
Also filtering interference signals, extraction speech characteristic vector, and the speech characteristic vector of extraction is quantized into received pronunciation Characteristic Vectors
Amount, therefore the module mainly includes the Speech processing process such as voice pretreatment, feature extraction, vector quantization, again, it is necessary to
Multi collect, the phonetic feature normal vector extracted are subjected to probability statistics, the best voice characteristic standard arrow of speaker is extracted
Amount, prevents from influenceing speech recognition effect because the factors such as speaker's mood, environment cause extraction characteristic parameter inaccurate, therefore should
Module mainly includes the processing procedures such as probability statistics, parameter evaluation, is realized with hidden Markov model (HMM model), last language
Sound prompt function is needed in sound manipulation function, is to point out user to carry out associative operation or illustrate to work as according to the result of speech recognition
The function of preceding completion, therefore the module is mainly including calling at the voices such as suggestion voice resource file, D/A conversions, signal amplification
Reason process, then will export corresponding control signal according to the result of speech recognition, realizes that user passes through voice control function control
Game function selection is carried out on game station processed.If so being detected by foregoing description after talk spurt signal, just further
The current VR handles of monitoring on data-transmission mode.
In actual applications, transmitting audio data can be realized by Bluetooth transmission protocol on the wireless device, because logical
It is data transfer mode that VR handles are currently mainly used to cross bluetooth and carry out wireless data handed down from ancient times, and in the embodiment of the present invention
The VR handles of Bluetooth transmission mode and RF transmission means are provided simultaneously with, because the general airborne data transmission speed of bluetooth is in 1-3
Million is per second, and application throughput is per second in 0.7-2.1 million, and compared to the transmittability of RF patterns, voice control function can only be in bluetooth
Realized under transmission mode.Specifically, when user carries out game control using VR handles, due to being the nothing of transmission in game manipulation
Line communication data needs low latency, high-speed, and the data transmitted are when being all small data, now compared to bluetooth transmission,
The transmission mode for loading nRF family chips is that more have advantage, as shown in table 1, bluetooth transmission and nRF transmission modes
Contrast:
Table 1
By the description of table 1, what can be apparent from sees, nRF data transfers in transmission rate, are passed in game paddle
Defeated distance, using easy degree, developed the demand that difficulty or ease all more conform to user and market, unique weak point is exactly to be
Ensure the high-speed and low latency of transmission data, for the limitation of the transmission packet size of nRF transmission modes, nRF data
Transmission mode is can not to transmit big data, such as voice data, so voice control function can not be realized.On the other hand, exist
Compatible aspect, current most VR equipment is all carried out data transmission by bluetooth, and without install nRF chips and
The game station of adapter, the equipment such as VR glasses, it is necessary to another configuration nRF adapters, so for itself logarithm of playing
According to the not high situation of transmission requirement, still it can be carried out data transmission when not configuring other annexes using bluetooth mode.So,
By the data transmission characteristics of foregoing description, it can detect that current VR handles enter line number using bluetooth mode or RF patterns
According to transmission.
If step 102, the data-transmission mode for detecting VR handles are not bluetooth modes, user is pointed out to be switched to bluetooth
Pattern.
In the embodiment of the present invention, when user is when using VR handles, if wanting the voice control function using VR handles, use
Bluetooth mode carries out data transmission more efficient, is carried so can now be shown on the VR interface displaying pictures being connected with VR handles
Show that frame carries out bluetooth mode switch prompting to user, or VR handles itself send prompt tone and cue lamp, point out user
Bluetooth mode is switched to, for pointing out the ways and means embodiment of the present invention of user not to be any limitation as.
If step 103, the data-transmission mode for detecting VR handles are bluetooth modes, the voice of the VR handles is opened
Control function.
In the embodiment of the present invention, if by the data transmission characteristics of foregoing description, it is determined that the data that current VR handles are used
Transmission mode is bluetooth mode, then opens the voice control function of VR handles, specifically, obtaining and recognizing the voice of user's input
Pulse signal is received pronunciation characteristic vector, and is matched with the speech characteristic vector in sound bank, and correspondence is performed after the match is successful
Voice control function.
In embodiments of the present invention, detect after user speech input, then whether the data-transmission mode of detection VR handles
For bluetooth mould, if the data-transmission mode for detecting VR handles is bluetooth mode, the Voice command work(of the VR handles is opened
Energy;If the data-transmission mode for detecting VR handles is not bluetooth mode, point out user to be switched to bluetooth mode, solve only
Cause delay too high using Bluetooth transmission, or only using RF module transfers can not then realize the transmission of speech data, result in
Can not be on the VR handles for realize Voice command while the problem of taking into account message transmission rate, with compatible two kinds of data simultaneously
The beneficial effect of transmission mode advantage.
Embodiment two
Reference picture 2, shows a kind of step flow chart of the embodiment of the method for data transfer of the application, can specifically wrap
Include following steps:
Step 201, detect user speech input after, drainage pattern conversion sensor send data.
In the embodiment of the present invention, detect after user speech input, the patten transformation sensor in mode conversion switch can
To obtain the feature that current bypass switchs the transmission data of connected data transmission path, for example using communication protocol,
Transmission rate etc..
Step 202, according to the data transmission characteristics, judge data-transmission mode that current VR handles use whether for indigo plant
Tooth pattern, if then performing step 206, otherwise performs step 203.
In the embodiment of the present invention, the patten transformation sensor in by mode conversion switch obtains current switch and connected
The feature of the transmission data connect, for example using communication protocol, transmission rate etc., by a series of data characteristics, can sentence
Disconnected currently used data-transmission mode.
Optionally, user speech input is not detected by preset time period, and the data-transmission mode is bluetooth mould
Formula, then point out user to switch the bluetooth mode to the RF patterns.
In the embodiment of the present invention, after the power switch of VR handles is opened, what user or person skilled were set obtains
Take in the period of voice signal, such as within 0.5 second or 1 second, be not detected by the talk spurt signal of user, then further
The current VR handles of basis data-transmission mode, if data-transmission mode be bluetooth mode, i.e., current data-transmission mode
And be not suitable for being transmitted using bluetooth, such as when user carries out game control, the data of the VR handles transmission detected
Frequency is very fast, and just explanation current data needs the low data-transmission mode of data transfer delay, then be just connected with VR handles
VR interface displaying pictures on display the prompt box RF pattern switching promptings are carried out to user, or VR handles itself send prompt tone
With cue lamp, user is pointed out to be switched to RF patterns, for pointing out the ways and means embodiment of the present invention of user not to be subject to
Limitation.
If step 203, detect VR handles data-transmission mode be RF patterns, point out user opened by patten transformation
Close by the data-transmission mode of VR handles from the RF pattern switchings be bluetooth mode.
In the embodiment of the present invention, by the mode conversion switch of the device on VR handles between bluetooth mode and RF patterns
Switching mutually, in actual applications, can possess the switch of bypass (bypass) function by device, by-pass switch is just in VR handles
It is to close your effect device not working by it, lets the signal go through, that is, a kind of effect device on-off mode, signal is directly from defeated
Incoming interface is directly output to output interface in the case of without effect device circuit.This connected mode can be the loss of signal
Drop to it is extremely low because this passed through in signal only extremely small resistance in effect device interface, circuit, the path of switch
It is anti-, and the function of being changed in two paths, and the one of path of UNICOM can be realized, another path is shut off,
So, load and possess after the switches of bypass functions in VR handles, what the circuit of switch was constituted respectively at Bluetooth communication modules
The signal transmission pathway of Bluetooth signal transmission path and nRF chips composition is attached, and is cut when user presses bypass switches
When changing bluetooth or RF patterns, data carry out the conversion of quick data transmission channel on the premise of the extremely low loss of signal.
Step 204, the touch control operation received on mode conversion switch.
In the embodiment of the present invention, after touch control operation of the user on mode conversion switch is received, i.e. bypass switches
Afterwards, current data-transmission mode is switched into another data-transmission mode.
Step 205, according to the touch control operation, be bluetooth mode by RF pattern switchings, and shield the RF data transfers
Function.
In the embodiment of the present invention, if current data-transmission mode is RF patterns, then patten transformation is opened according to user
Capable operation is put into, with change data transmission mode, by receiving pressing operation of the user on bypass switches, i.e. patten transformation
Switch, pressing is once converted to the relative another pattern of present data transmission pattern, so needing patten transformation sensor real
When collection transmission data, to determine current transmission mode, in order to avoid transcription error.
If step 206, the data-transmission mode for detecting VR handles are bluetooth modes, the voice of the VR handles is opened
Control function.
This step is identical with step 103, will not be described in detail herein.
In embodiments of the present invention, detect after user speech input, then whether the data-transmission mode of detection VR handles
For bluetooth mode, user speech input is not detected by preset time period, and the data-transmission mode is bluetooth mode, then
User is pointed out to switch the bluetooth mode to the RF patterns, if the data-transmission mode for detecting VR handles is RF patterns,
Point out user by mode conversion switch by the data-transmission mode of VR handles from the RF pattern switchings be bluetooth mode.Solution
Determined only causes delay too high using Bluetooth transmission, or only using RF module transfers can not then realize the transmission of speech data,
Result in can not be on the VR handles for realize Voice command while the problem of taking into account message transmission rate, with simultaneously compatible two kinds
The beneficial effect of data-transmission mode.
Embodiment three
Reference picture 3, shows a kind of structured flowchart of the device embodiment of data transfer of the application, can specifically include
Following module:
The device 300 of the data transfer, including:
Data-transmission mode detection module 301, for detecting after user speech input, then detects that the data of VR handles are passed
Whether defeated pattern is bluetooth mode;
Optionally, data-transmission mode detection module 301, including:
Data-acquisition submodule, the data sent for drainage pattern conversion sensor;
Judging submodule, for according to the data transmission characteristics, judging the data-transmission mode that current VR handles are used.
Prompting switching bluetooth module 302, if not being bluetooth mode for the data-transmission mode for detecting VR handles, is carried
Show that user is switched to bluetooth mode.
Optionally, prompting switching bluetooth module 302, including:
Prompting switching bluetooth submodule, if the data-transmission mode for detecting VR handles is RF patterns, points out to use
Family by mode conversion switch by the data-transmission mode of VR handles from the RF pattern switchings be bluetooth mode.
Voice command opening module 303, if the data-transmission mode for detecting VR handles is bluetooth mode, is opened
The voice control function of the VR handles;
Optionally, prompting switching bluetooth module 303, is specifically included:
Prompting switching bluetooth submodule, if the data-transmission mode for detecting VR handles is RF patterns, points out to use
Family by mode conversion switch by the data-transmission mode of VR handles from the RF pattern switchings be bluetooth mode.
Optionally, in addition to:
Touch control operation receiving submodule, for receiving the touch control operation on mode conversion switch;
Bluetooth switching submodule, for being bluetooth mode by RF pattern switchings according to the touch control operation, and is shielded described
RF data-transformation facilities.
Optionally, in addition to:
Prompting switching RF modules, for being not detected by user speech input, and the data transfer in preset time period
Pattern is bluetooth mode, then points out user to switch the bluetooth mode to the RF patterns.
In embodiments of the present invention, detect after user speech input, then whether the data-transmission mode of detection VR handles
For bluetooth mode, user speech input is not detected by preset time period, and the data-transmission mode is bluetooth mode, then
User is pointed out to switch the bluetooth mode to the RF patterns, if the data-transmission mode for detecting VR handles is RF patterns,
Point out user by mode conversion switch by the data-transmission mode of VR handles from the RF pattern switchings be bluetooth mode.Solve
Only cause delay too high using Bluetooth transmission, or only can not then realize the transmission of speech data using RF module transfers, lead
Having caused can not be on the VR handle for realize Voice command while the problem of taking into account message transmission rate, with compatible two kinds of numbers simultaneously
According to the beneficial effect of transmission mode.
Example IV
Reference picture 4, shows a kind of structured flowchart of the equipment of data transfer of the application, can specifically include following mould
Block:
For the mode conversion switch 401 changed between bluetooth transmission and RF transmission modes;The patten transformation
Switch includes being used to detect the patten transformation sensor 4011 of the data-transmission mode of current mobile terminal connection;The pattern turns
Switch 401 is changed respectively with nRF family chips 403 and bluetooth module 404 to be connected;
NRF family chips 403 for carrying out RF data-transmission modes;
Bluetooth module 404 for carrying out Bluetooth data transfer.
VR handles in Fig. 5 include 360 ° of rocking bars 501, bluetooth/RF mode switching keys 502, iSO/ Android switching keys
503rd, ESC return keys 504, direction controlling disk 505, mouse mode key 506, beginning button 507.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, and what each embodiment was stressed is all
With the difference of other embodiment, between each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present application can be provided as method, device or calculate
Machine program product.Therefore, the embodiment of the present application can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present application can use it is one or more wherein include computer can
With in the computer-usable storage medium (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
In a typical configuration, the computer equipment includes one or more processors (CPU), input/output
Interface, network interface and internal memory.Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
The form such as device (RAM) and/or Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is to calculate
The example of machine computer-readable recording medium.Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be with
Realize that information is stored by any method or technique.Information can be computer-readable instruction, data structure, the module of program or
Other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM
(SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only storage
(ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc are read-only
Memory (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic rigid disk storage or
Other magnetic storage apparatus or any other non-transmission medium, the information that can be accessed by a computing device available for storage.According to
Herein defines, and computer-readable medium does not include the computer readable media (transitory media) of non-standing, such as
The data-signal and carrier wave of modulation.
The embodiment of the present application is with reference to according to the method for the embodiment of the present application, terminal device (system) and computer program
The flow chart and/or block diagram of product is described.It should be understood that can be by computer program instructions implementation process figure and/or block diagram
In each flow and/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These can be provided
Computer program instructions are set to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to produce a machine so that held by the processor of computer or other programmable data processing terminal equipments
Capable instruction is produced for realizing in Fig. 1 Fig. 1 Fig. 1 Fig. 1 flows of flow chart 1 or multiple flows and/or Fig. 1 Fig. 1 of block diagram 1
The device for the function of being specified in Fig. 1 Fig. 1 square frames or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing terminal equipments
In the computer-readable memory worked in a specific way so that the instruction being stored in the computer-readable memory produces bag
The manufacture of command device is included, the command device is realized in Fig. 1 Fig. 1 Fig. 1 Fig. 1 flows of flow chart 1 or multiple flows and/or side
The function of being specified in Fig. 1 Fig. 1 Fig. 1 Fig. 1 square frames of block diagram 1 or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented processing, so that
The instruction performed on computer or other programmable terminal equipments is provided for realizing in Fig. 1 Fig. 1 Fig. 1 Fig. 1 flows of flow chart 1
Or specified in multiple flows and/or Fig. 1 Fig. 1 Fig. 1 Fig. 1 square frames of block diagram 1 or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present application, those skilled in the art once know base
This creative concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to
Including preferred embodiment and fall into having altered and changing for the embodiment of the present application scope.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between there is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or terminal device including a series of key elements are not only wrapped
Those key elements, but also other key elements including being not expressly set out are included, or also include being this process, method, article
Or the intrinsic key element of terminal device.In the absence of more restrictions, by wanting that sentence "including a ..." is limited
Element, it is not excluded that also there is other identical element in the process including the key element, method, article or terminal device.
Method above to a kind of data transfer provided herein and a kind of device of data transfer and a kind of number
According to the equipment of transmission, it is described in detail, specific case used herein is carried out to the principle and embodiment of the application
Illustrate, the explanation of above example is only intended to help and understands the present processes and its core concept;Simultaneously for ability
The those skilled in the art in domain, according to the thought of the application, will change in specific embodiments and applications,
In summary, this specification content should not be construed as the limitation to the application.