CN103475650A - Data processing method and device based on wireless communication protocol - Google Patents

Data processing method and device based on wireless communication protocol Download PDF

Info

Publication number
CN103475650A
CN103475650A CN2013103892788A CN201310389278A CN103475650A CN 103475650 A CN103475650 A CN 103475650A CN 2013103892788 A CN2013103892788 A CN 2013103892788A CN 201310389278 A CN201310389278 A CN 201310389278A CN 103475650 A CN103475650 A CN 103475650A
Authority
CN
China
Prior art keywords
message
virtual usb
usb interface
wireless
interface identifier
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
CN2013103892788A
Other languages
Chinese (zh)
Other versions
CN103475650B (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201310389278.8A priority Critical patent/CN103475650B/en
Publication of CN103475650A publication Critical patent/CN103475650A/en
Application granted granted Critical
Publication of CN103475650B publication Critical patent/CN103475650B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a data processing method and device based on a wireless communication protocol. The actual USB (Universal Serial Bus) connection is realized in a software way, the source of a received message is recognized through a virtual USB interface identifier, a receiving terminal can recognize the source of the message according to the virtual USB interface identifier in the message after decoding the received communication message, and then, corresponding operations can be carried out according to the source of the message.

Description

Data processing method based on wireless communication protocol and device
Technical field
The present invention relates to wireless communication technology field, relate in particular to a kind of data processing method and device based on wireless communication protocol.
Background technology
Along with scientific and technological development, the application of wireless network in people's life is more and more extensive, and a plurality of equipment that are connected with intelligent television all can communicate by wireless network and television set.The signal of a plurality of equipment that receive due to television set receives by wireless communication module, can't judge exactly the source of the wireless signal received, thereby can not be processed signal exactly.
Summary of the invention
Main purpose of the present invention is to provide a kind of data processing method and device based on wireless communication protocol, makes the wireless data ground processing to receiving more accurate.
The present invention proposes a kind of data processing method based on wireless communication protocol, comprising:
While detecting wireless message, trigger the USB module;
According to the described wireless message of described self-defined wireless network communication protocol decoding, obtain virtual USB interface identifier and message data in decoded wireless message after triggering successfully;
According to virtual USB interface identifier and message data, correspondingly operate.
Preferably, the method also comprises:
While detecting wireless message, obtain the device identification in wireless message;
Judge according to described device identification the standard radio Network Communication agreement whether described wireless message is supported;
If the standard radio Network Communication agreement that described wireless message is not supported, trigger the USB module.
Preferably, describedly judge that whether described wireless network communication protocol be also to comprise after the step of standard wireless protocol:
If the standard radio Network Communication agreement that described wireless message is supported, according to the described wireless message of described standard radio Network Communication protocol-decoding;
According to decoded result, correspondingly operate.
Preferably, also comprise before obtaining the step of the device identification in wireless message:
Described the second terminal is kept at the described wireless message received in buffer memory, and described wireless message comprises the self-defined wireless network protocol of equipment interconnection, the self-defined wireless network data protocol of equipment interconnection, virtual USB control bag, virtual USB packet and virtual USB respond packet.
Preferably, described the second terminal is decoded to the wireless message received according to self-defined wireless network communication protocol, with the virtual USB interface identifier in the wireless message that obtains reception and/or the step of message data, comprises:
The virtual USB of preserving in described the second decoding terminals buffer memory is controlled bag and virtual USB packet, obtains the first virtual USB interface identifier of described first terminal, and the corresponding message data of the first virtual USB interface identifier of described first terminal;
The virtual USB respond packet of preserving in described the second decoding terminals buffer memory, obtain the second virtual USB interface identifier in the USB respond packet of described first terminal;
Described the second terminal is compared described the first virtual USB interface identifier and the second virtual USB interface identifier;
If described the first virtual USB interface identifier is identical with the second virtual USB interface identifier, described the second terminal using described the first virtual USB interface identifier and the corresponding message data of described the first virtual USB interface identifier virtual USB interface identifier and the message data in wireless message.
The present invention also proposes a kind of data processing equipment based on wireless communication protocol, comprising:
Acquisition module, when detecting wireless message, trigger the USB module;
Decoder module, for after triggering successfully according to the described wireless message of described self-defined wireless network communication protocol decoding, obtain virtual USB interface identifier and message data in decoded wireless message;
Control module, for correspondingly operating according to virtual USB interface identifier and message data.
Preferably, described acquisition module also when detecting wireless message, obtains the device identification in wireless message; This device also comprises judge module, for the standard radio Network Communication agreement that judges according to described device identification whether described wireless message is supported; If the standard radio Network Communication agreement that described trigger module is not also supported for described wireless message, trigger the USB module.
Preferably, if described decoding unit is decoded to the wireless message received according to described standard wireless protocol also for the corresponding standard radio Network Communication of described device identification agreement; Described control unit is also for correspondingly operating according to decoded result.
Preferably, also comprise memory module, for the described wireless data signal received is kept to buffer memory, described wireless message comprises the self-defined wireless network protocol of equipment interconnection, the self-defined wireless network data protocol of equipment interconnection, virtual USB control bag, virtual USB packet and virtual USB respond packet.
Preferably, described decoder module comprises:
Decoding unit, the virtual USB of preserving of decoding respectively in buffer memory is controlled bag and virtual USB packet, obtain the first virtual USB interface identifier of described first terminal, and the corresponding message data of the first virtual USB interface identifier of described first terminal, and the virtual USB respond packet of preserving in the decoding buffer memory, obtain the second virtual USB interface identifier in the USB respond packet of described first terminal
Comparing unit, for comparing described the first virtual USB interface identifier and the second virtual USB interface identifier;
Determining unit, if described the first virtual USB interface identifier is identical with the second virtual USB interface identifier, virtual USB interface identifier and the message data in wireless message using described the first virtual USB interface identifier and the corresponding message data of described the first virtual USB interface identifier.
The data processing method based on wireless communication protocol and device that the present invention proposes, the mode that actual USB is connected by software realizes, identify the source of the message received by the virtual USB interface identifier, after the communication message that receiving terminal can receive in decoding, identify the source of message according to the virtual USB interface identifier in guarantor's message, correspondingly operate according to the source of message.
The accompanying drawing explanation
Fig. 1 is the schematic flow sheet that the present invention is based on data processing method first embodiment of wireless communication protocol;
Fig. 2 is the schematic flow sheet of the second embodiment that the present invention is based on the data processing method of wireless communication protocol;
Fig. 3 is the schematic flow sheet of the 3rd embodiment that the present invention is based on the data processing method of wireless communication protocol;
Fig. 4 is the schematic flow sheet of the 4th embodiment that the present invention is based on the data processing method of wireless communication protocol;
Fig. 5 be in Fig. 1-Fig. 4 according to the described wireless message of described self-defined wireless network communication protocol decoding, obtain the idiographic flow schematic diagram of the step of virtual USB interface identifier in decoded wireless message and message data;
Fig. 6 is the structural representation of the first embodiment that the present invention is based on the data processing equipment of wireless communication protocol;
Fig. 7 is the structural representation of the second embodiment that the present invention is based on the data processing equipment of wireless communication protocol;
Fig. 8 is the structural representation of the 3rd embodiment that the present invention is based on the data processing equipment of wireless communication protocol;
The structural representation that Fig. 9 is the decoder module in Fig. 6, Fig. 7 and Fig. 8.
The realization of the object of the invention, functional characteristics and advantage, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Below in conjunction with drawings and the specific embodiments, with regard to technical scheme of the present invention, be described further.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
With reference to Fig. 1, Fig. 1 is the schematic flow sheet that the present invention is based on data processing method first embodiment of wireless communication protocol.
The data processing method based on wireless communication protocol that the present embodiment proposes comprises:
Step S10, the wireless message that first terminal sends is detected and received to the second terminal, sends the virtual USB interface identifier of the first terminal type of described wireless message in described wireless message with expression;
Step S20, described the second terminal is decoded to the wireless message received according to self-defined wireless network communication protocol, with virtual USB interface identifier and the message data in the wireless message that obtains reception;
Transmitting terminal was encoded according to agreement correspondingly to data before sending data, and the virtual USB interface identifier of transmitting terminal is coded in communication message, for example 0X0F represents the virtual remote control interface, 0X0D represents the virtual audio interface, 0X0C represents the virtual microphone interface, and 0X0B represents virtual earphone interface.In present embodiment, this virtual USB interface identifier is used for identifying the source of message data, with the source according to message data, message data is processed, for example, when USB is designated the microphone interface sign, the control command that the voice data that broadcasting receives or response receive, when perhaps USB is designated the virtual remote control interface identifier, the control command that response receives.
Step S30, judge whether described message data shines upon with described control command;
Step S40, if described message data and control command mapping, described the second terminal is obtained the mapping relations of corresponding message data and control command according to the virtual USB interface identifier, control command corresponding to message data that response is obtained;
Step S50, if message data does not shine upon with control command, described the second terminal is according to default virtual USB interface identifier and the mapping relations of data manipulation type, and to the message data that obtains, according to the virtual USB interface obtained, corresponding data manipulation type is operated.
Message data and control command mapping refer to, this message data corresponds to a control command, because remote controller and microphone all can be to the terminal sending controling instructions, the message data that different terminals sends is different from the mapping relations of control command, for example remote controller is by the key assignments information and control command mappings in message data, and microphone is by the voice data and the control command mapping that receive, need to determine according to the USB interface sign source (as message data derives from remote controller or microphone) of message data, and call the mapping relations of corresponding message data and control command according to definite source, the message data received with response, if message data does not shine upon with control command, according to default virtual USB interface identifier and the mapping relations of data manipulation type, to the message data that obtains, according to the virtual USB interface obtained, corresponding data manipulation type is operated, for example according to the virtual USB interface identifier, determine that this message data derives from microphone, because this message data does not shine upon with control command, corresponding action type is for playing this message data, perhaps according to the virtual USB interface identifier, determine that this message data derives from sound equipment, in message data, comprise request msg (as pairing request), respond this request msg.
Receiving terminal is when receiving the wireless message of transmitting terminal transmission, send interrupt instruction to CPU, CPU sends interrupt instruction to the USB module when receiving this interrupt instruction, the search USB port, when receiving the reception instruction of USB module feedback, call after self-defined wireless network module is decoded to the message received and get USB device sign and message data, according to USB device sign and message data, correspondingly operate, message data may shine upon with control command, key value as the transmission of remote control end, can respond the corresponding control command of this key value, message data may be also only the transmission data, mapping relations with the data manipulation type according to USB device sign, to the message data that obtains, according to the virtual USB interface obtained, corresponding data manipulation type is operated, this voice data can be play and/or preserve to the voice data that for example this message data is the microphone transmission.
For example, receiving terminal is television set, decode message in USB device be identified as 0X0F and represent the virtual remote control interface, corresponding message data is key value 0X10, the corresponding volume of 0X10 increases instruction, increases the volume of receiving terminal; Perhaps USB device is identified as 0X0C and represents microphone interface, and message data is voice data accordingly, plays and/or store this voice data; Perhaps USB device is identified as 0X0D and represents the sound equipment interface, and message data corresponds to pairing request, responds this pairing request, according to self-defined wireless network communication protocol this response data of encoding, and sends to sound equipment by wireless network.
The data processing method based on wireless communication protocol that the present embodiment proposes, the mode that actual USB is connected by software realizes, identify the source of the message received by the virtual USB interface identifier, after the communication message that receiving terminal can receive in decoding, identify the source of message according to the virtual USB interface identifier in guarantor's message, correspondingly operate according to the source of message.
With reference to Fig. 2, Fig. 2 is the schematic flow sheet of the second embodiment that the present invention is based on the data processing method of wireless communication protocol.
The present invention is based on the second embodiment of the data processing method of wireless communication protocol based on the first embodiment proposition, in the present embodiment, also comprise after step S10:
Step S60, the second terminal is obtained the device identification in wireless message;
Step S70, the second terminal judges according to described device identification whether described wireless message supports standard radio Network Communication agreement;
If described wireless message is not supported standard radio Network Communication agreement, perform step S20, the second terminal is decoded to the wireless message received according to self-defined wireless network communication protocol, with virtual USB interface identifier and/or the message data in the wireless message that obtains reception.
The type identification that device identification in the present embodiment is the wireless communication protocol supported of first terminal, for example the corresponding device identification of 2.4GHZ wireless network communication protocol is that the corresponding device identification of 1,5GHZ wireless network communication protocol is 2.
Can in the second terminal, preserve a plurality of wireless network communication protocol, can and dissimilar first terminal between communicate, the frequency difference of the wireless message that dissimilar equipment sends, for example the frequency of the supported wireless message of television set is 2.4GHZ and 5GHZ, at remote controller during to the television set sending controling instruction, first this control command is encoded according to the wireless network communication protocol of 2.4GHZ, during coding, device identification is 1, represent that this equipment is 2.4GHZ wireless network communication protocol by wireless communication protocol that supported, message signals after coding is carried out to frequency modulation, by the frequency adjustment of message signals to 2.4GHZ, and be sent to television set, after television set receives this high frequency message signals, first by this high frequency message signals frequency modulation tremendously low frequency signal, then obtain the device identification in this message signals, if device identification is 1, calling self-defining 2.4GHZ wireless network communication protocol is decoded, if device identification is 2, calling standard radio Network Communication agreement is decoded, standard radio Network Communication agreement institute respective signal frequency is 5GHZ.
With reference to Fig. 3, Fig. 3 is the schematic flow sheet of the 3rd embodiment that the present invention is based on the data processing method of wireless communication protocol.
The present invention is based on the 3rd embodiment of the data processing method of wireless communication protocol based on the second embodiment proposition, also comprise after step S70 in the present embodiment:
Step S80, if described wireless message is supported standard radio Network Communication agreement, described the second terminal is according to the described wireless message of described standard radio Network Communication protocol-decoding;
Step S90, described the second terminal correspondingly operates according to decoded result.
If this is wireless, message is supported standard radio Network Communication agreement, call standard radio Network Communication agreement the message received is decoded, correspondingly operate according to decoded result, the key value that for example remote controller sends is 0X10, the corresponding volume of 0X10 increases instruction, increases the volume of television set.
With reference to Fig. 4, Fig. 4 is the schematic flow sheet of the 4th embodiment that the present invention is based on the data processing method of wireless communication protocol.
The present invention is based on the 4th embodiment of the data processing method of wireless communication protocol based on the 3rd embodiment proposition, in the present embodiment, also comprise before step S60:
Step S100, described the second terminal is kept at the described wireless message received in buffer memory, and described wireless message comprises the self-defined wireless network protocol of equipment interconnection, the self-defined wireless network data protocol of equipment interconnection, virtual USB control bag, virtual USB packet and virtual USB respond packet.
Comprise device identification in the self-defined wireless network protocol of equipment interconnection, can dock the device identification that self-defined wireless network protocol gets first terminal by decoding device, the type identification that comprises instruction in message in the self-defined wireless network data protocol of equipment interconnection, for example ask reading command corresponding be designated 1, response instruction be designated 2 etc., virtual USB is controlled the virtual USB interface identifier that comprises first terminal in bag, to determine the identity of first terminal, for example virtual remote control device interface is corresponding is designated 0x00, the virtual USB packet comprises the data that first terminal transmits, key assignments information for example, comprise the virtual USB interface identifier in the virtual USB respond packet, for the identity of first terminal is reaffirmed.
Because the data volume of the wireless message received is larger, can first wireless message be kept to buffer memory before the wireless message to receiving is decoded in, if occur in the process of decoding, the wireless message of decoding error in can transferring buffer memory re-starts decoding, and not there will be the situation of message dropping when decoding error, need transmitting terminal to resend message, after receiving terminal responds this message success received, delete the message data of preserving in buffer memory.
With reference to Fig. 5, Fig. 5 be in Fig. 1-Fig. 4 according to the described wireless message of described self-defined wireless network communication protocol decoding, obtain the idiographic flow schematic diagram of the step of virtual USB interface identifier in decoded wireless message and message data.
In third embodiment of the invention, step S20 comprises:
Step S21, described the second terminal virtual USB of preserving of decoding respectively in buffer memory is controlled bag and virtual USB packet, obtain the first virtual USB interface identifier of first terminal, and described virtual the first USB interface identifies corresponding message data;
Step S22, the virtual USB respond packet of preserving in described the second decoding terminals buffer memory, obtain the second virtual USB interface identifier of first terminal;
Step S23, described the first virtual USB interface identifier and the second virtual USB interface identifier that described the second terminal comparison gets;
Step S24, if described the first virtual USB interface identifier is identical with the second virtual USB interface identifier, described the second terminal using described the first virtual USB interface identifier and the corresponding message data of described the first virtual USB interface identifier virtual USB interface identifier and the message data in wireless message.
Virtual USB interface identifier in the virtual responsive bag, for the identity of first terminal is verified again, respond this wireless message if be proved to be successful, if described message data and control command mapping, described the second terminal, according to default message data and the mapping relations of control command, responds control command corresponding to message data of obtaining; If message data with control command mapping, described the second terminal is according to default virtual USB interface identifier and the mapping relations of data manipulation type, to the message data that obtains, according to the virtual USB interface obtained, corresponding data manipulation type is operated.Make between first terminal and the second terminal communicate by letter safer.
With reference to Fig. 6, Fig. 6 is the structural representation of the first embodiment that the present invention is based on the data processing equipment of wireless communication protocol.
The data processing equipment based on wireless communication protocol that the present embodiment proposes comprises:
Detecting module 10, the wireless message sent for detecting and receive first terminal, in described wireless message with the virtual USB interface identifier of the first terminal type that mean to send described wireless message;
Decoder module 20, for according to self-defined wireless network communication protocol, the wireless message received being decoded, with virtual USB interface identifier and/or the message data in the wireless message that obtains reception;
Transmitting terminal was encoded according to agreement correspondingly to data before sending data, and the virtual USB interface identifier of transmitting terminal is coded in communication message, for example 0X0F represents the virtual remote control interface, 0X0D represents the virtual audio interface, 0X0C represents the virtual microphone interface, and 0X0B represents virtual earphone interface.
In present embodiment, this virtual USB interface identifier is used for identifying the source of message data, with the source according to message data, message data is processed, for example, when USB is designated the microphone interface sign, the control command that the voice data that broadcasting receives or response receive, when perhaps USB is designated the virtual remote control interface identifier, the control command that response receives.
Control module 30, if for message data and control command mapping, according to default message data and the mapping relations of control command, control command corresponding to message data that response is obtained, if and message data does not shine upon with control command, according to default virtual USB interface identifier and the mapping relations of data manipulation type, to the message data that obtains, according to the virtual USB interface obtained, corresponding data manipulation type is operated.
Message data and control command mapping refer to, this message data corresponds to a control command, because remote controller and microphone all can be to the terminal sending controling instructions, the message data that different terminals sends is different from the mapping relations of control command, for example remote controller is by the key assignments information and control command mappings in message data, and microphone is by the voice data and the control command mapping that receive, need to determine according to the USB interface sign source (as message data derives from remote controller or microphone) of message data, and call the mapping relations of corresponding message data and control command according to definite source, the message data received with response, if message data does not shine upon with control command, according to default virtual USB interface identifier and the mapping relations of data manipulation type, to the message data that obtains, according to the virtual USB interface obtained, corresponding data manipulation type is operated, for example according to the virtual USB interface identifier, determine that this message data derives from microphone, because this message data does not shine upon with control command, corresponding action type is for playing this message data, perhaps according to the virtual USB interface identifier, determine that this message data derives from sound equipment, in message data, comprise request msg (as pairing request), respond this request msg.
Receiving terminal is when receiving the wireless message of transmitting terminal transmission, send interrupt instruction to CPU, CPU sends interrupt instruction to the USB module when receiving this interrupt instruction, the search USB port, when receiving the reception instruction of USB module feedback, call after self-defined wireless network module is decoded to the message received and get USB device sign and message data, according to USB device sign and message data, correspondingly operate, message data may shine upon with control command, key value as the transmission of remote control end, can respond the corresponding control command of this key value, message data may be also only the transmission data, mapping relations with the data manipulation type according to USB device sign, to the message data that obtains, according to the virtual USB interface obtained, corresponding data manipulation type is operated, this voice data can be play and/or preserve to the voice data that for example this message data is the microphone transmission.
For example, receiving terminal is television set, decode message in USB device be identified as 0X0F and represent the virtual remote control interface, corresponding message data is key value 0X10, the corresponding volume of 0X10 increases instruction, increases the volume of receiving terminal; Perhaps USB device is identified as 0X0C and represents microphone interface, and message data is voice data accordingly, plays and/or store this voice data; Perhaps USB device is identified as 0X0D and represents the sound equipment interface, and message data corresponds to pairing request, responds this pairing request, according to self-defined wireless network communication protocol this response data of encoding, and sends to sound equipment by wireless network.
The data processing equipment based on wireless communication protocol that the present embodiment proposes, the mode that actual USB is connected by software realizes, identify the source of the message received by the virtual USB interface identifier, after the communication message that receiving terminal can receive in decoding, identify the source of message according to the virtual USB interface identifier in guarantor's message, correspondingly operate according to the source of message.
With reference to Fig. 7, Fig. 7 is the structural representation of the second embodiment that the present invention is based on the data processing equipment of wireless communication protocol.
The present invention is based on the second embodiment of the data processing equipment of wireless communication protocol based on the first embodiment proposition, also comprise in the present embodiment acquisition module 40 and judge module 50, the device identification of described acquisition module for obtaining the wireless message received, described judge module, for the standard radio Network Communication agreement that judges according to described device identification whether described wireless message is supported; Described decoder module 20 is also for according to self-defined wireless network communication protocol, the wireless message received being decoded, with virtual USB interface identifier and/or the message data in the wireless message that obtains reception.
Can in the second terminal, preserve a plurality of wireless network communication protocol, can and dissimilar first terminal between communicate, the frequency difference of the wireless message that dissimilar equipment sends, for example the frequency of the supported wireless message of television set is 2.4GHZ and 5GHZ, at remote controller during to the television set sending controling instruction, first this control command is encoded according to the wireless network communication protocol of 2.4GHZ, during coding, device identification is 1, represent that this equipment is 2.4GHZ wireless network communication protocol by wireless communication protocol that supported, message signals after coding is carried out to frequency modulation, by the frequency adjustment of message signals to 2.4GHZ, and be sent to television set, after television set receives this high frequency message signals, first by this high frequency message signals frequency modulation tremendously low frequency signal, then obtain the device identification in this message signals, if device identification is 1, calling self-defining 2.4GHZ wireless network communication protocol is decoded, if device identification is 2, calling standard radio Network Communication agreement is decoded, standard radio Network Communication agreement institute respective signal frequency is 5GHZ.
In the above-described embodiments, if described decoder module 20 is decoded to the wireless message received according to described standard wireless protocol also for the corresponding standard radio Network Communication of described device identification agreement; Described control module 30 is also for correspondingly operating according to decoded result.
If this is wireless, message is supported standard radio Network Communication agreement, call standard radio Network Communication agreement the message received is decoded, correspondingly operate according to decoded result, the key value that for example remote controller sends is 0X10, the corresponding volume of 0X10 increases instruction, increases the volume of television set.
With reference to Fig. 8, Fig. 8 is the structural representation of the 3rd embodiment that the present invention is based on the data processing equipment of wireless communication protocol.
The present invention is based on the 3rd embodiment of the data processing equipment of wireless communication protocol based on the second embodiment proposition, in the present embodiment, also comprise memory module 60, for the described wireless data signal received is kept to buffer memory, described wireless message comprises the self-defined wireless network protocol of equipment interconnection, the self-defined wireless network data protocol of equipment interconnection, virtual USB control bag, virtual USB packet and virtual USB respond packet.
Comprise device identification in the self-defined wireless network protocol of equipment interconnection, can dock the device identification that self-defined wireless network protocol gets first terminal by decoding device, the type identification that comprises instruction in message in the self-defined wireless network data protocol of equipment interconnection, for example ask reading command corresponding be designated 1, response instruction be designated 2 etc., virtual USB is controlled the virtual USB interface identifier that comprises first terminal in bag, to determine the identity of first terminal, for example virtual remote control device interface is corresponding is designated 0x00, the virtual USB packet comprises the data that first terminal transmits, key assignments information for example, comprise the virtual USB interface identifier in the virtual USB respond packet, for the identity of first terminal is reaffirmed.
Because the data volume of the wireless message received is larger, can first wireless message be kept to buffer memory before the wireless message to receiving is decoded in, if occur in the process of decoding, the wireless message of decoding error in can transferring buffer memory re-starts decoding, and not there will be the situation of message dropping when decoding error, need transmitting terminal to resend message, after receiving terminal responds this message success received, delete the message data of preserving in buffer memory.
With reference to Fig. 9, the structural representation that Fig. 9 is the decoder module in Fig. 6, Fig. 7 and Fig. 8.
In the first embodiment to the three embodiment, decoder module 20 comprises:
Decoding unit 21, the virtual USB of preserving of decoding respectively in buffer memory is controlled bag and virtual USB packet, obtain the first virtual USB interface identifier of described first terminal, and the corresponding message data of the first virtual USB interface identifier of described first terminal, and the virtual USB respond packet of preserving in the decoding buffer memory, obtain the second virtual USB interface identifier in the USB respond packet of described first terminal
Comparing unit 22, for comparing described the first virtual USB interface identifier and the second virtual USB interface identifier;
Determining unit 23, if described the first virtual USB interface identifier is identical with the second virtual USB interface identifier, virtual USB interface identifier and the message data in wireless message using described the first virtual USB interface identifier and the corresponding message data of described the first virtual USB interface identifier.
Virtual USB interface identifier in the virtual responsive bag, for the identity of first terminal is verified again, respond this wireless message if be proved to be successful, if described message data and control command mapping, described the second terminal, according to default message data and the mapping relations of control command, responds control command corresponding to message data of obtaining; If message data with control command mapping, described the second terminal is according to default virtual USB interface identifier and the mapping relations of data manipulation type, to the message data that obtains, according to the virtual USB interface obtained, corresponding data manipulation type is operated.Make between first terminal and the second terminal communicate by letter safer.
The foregoing is only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure transformation that utilizes specification of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in scope of patent protection of the present invention.

Claims (10)

1. the data processing method based on wireless communication protocol, is characterized in that, comprising:
The wireless message that first terminal sends is detected and received to the second terminal, sends the virtual USB interface identifier of the first terminal type of described wireless message in described wireless message with expression;
Described the second terminal is decoded to the wireless message received according to self-defined wireless network communication protocol, with virtual USB interface identifier and/or the message data in the wireless message that obtains reception;
If message data and control command mapping, described the second terminal, according to default message data and the mapping relations of control command, responds control command corresponding to message data of obtaining;
If message data with control command mapping, described the second terminal is according to default virtual USB interface identifier and the mapping relations of data manipulation type, to the message data that obtains, according to the virtual USB interface obtained, corresponding data manipulation type is operated.
2. method according to claim 1, is characterized in that, described the second terminal also comprises after detecting and receive the step of the wireless message that first terminal sends:
Described the second terminal is obtained the device identification in wireless message;
Described the second terminal judges according to described device identification whether described wireless message supports standard radio Network Communication agreement;
If described wireless message is not supported standard radio Network Communication agreement, described the second terminal is decoded to the wireless message received according to self-defined wireless network communication protocol.
3. method according to claim 2, is characterized in that, describedly judges that whether described wireless network communication protocol be also to comprise after the step of standard wireless protocol:
If described wireless message is supported standard radio Network Communication agreement, described the second terminal is according to the described wireless message of described standard radio Network Communication protocol-decoding;
Described the second terminal correspondingly operates according to decoded result.
4. method according to claim 2, is characterized in that, the step of obtaining the device identification in wireless message also comprises before:
Described the second terminal is kept at the described wireless message received in buffer memory, and described wireless message comprises the self-defined wireless network protocol of equipment interconnection, the self-defined wireless network data protocol of equipment interconnection, virtual USB control bag, virtual USB packet and virtual USB respond packet.
5. method according to claim 4, it is characterized in that, described the second terminal is decoded to the wireless message received according to self-defined wireless network communication protocol, with the virtual USB interface identifier in the wireless message that obtains reception and/or the step of message data, comprises:
The virtual USB of preserving in described the second decoding terminals buffer memory is controlled bag and virtual USB packet, obtains the first virtual USB interface identifier of described first terminal, and the corresponding message data of the first virtual USB interface identifier of described first terminal;
The virtual USB respond packet of preserving in described the second decoding terminals buffer memory, obtain the second virtual USB interface identifier in the USB respond packet of described first terminal;
Described the second terminal is compared described the first virtual USB interface identifier and the second virtual USB interface identifier;
If described the first virtual USB interface identifier is identical with the second virtual USB interface identifier, described the second terminal using described the first virtual USB interface identifier and the corresponding message data of described the first virtual USB interface identifier virtual USB interface identifier and the message data in wireless message.
6. the data processing equipment based on wireless communication protocol, is characterized in that, comprising:
Detecting module, for detecting and receive wireless message, send the virtual USB interface identifier of described wireless message one end type with expression in described wireless message;
Decoder module, for according to self-defined wireless network communication protocol, the wireless message received being decoded, with virtual USB interface identifier and/or the message data in the wireless message that obtains reception;
Control module, if for message data and control command mapping, according to default message data and the mapping relations of control command, control command corresponding to message data that response is obtained, if and message data does not shine upon with control command, according to default virtual USB interface identifier and the mapping relations of data manipulation type, to the message data that obtains, according to the virtual USB interface obtained, corresponding data manipulation type is operated.
7. device according to claim 6, it is characterized in that, this device also comprises acquisition module and judge module, the device identification of described acquisition module for obtaining the wireless message received, described judge module, for the standard radio Network Communication agreement that judges according to described device identification whether described wireless message is supported; Described decoder module is also for according to self-defined wireless network communication protocol, the wireless message received being decoded, with virtual USB interface identifier and/or the message data in the wireless message that obtains reception.
8. device according to claim 7, is characterized in that, if described decoder module is decoded to the wireless message received according to described standard wireless protocol also for the corresponding standard radio Network Communication of described device identification agreement; Described control module is also for correspondingly operating according to decoded result.
9. device according to claim 6, it is characterized in that, also comprise memory module, for the described wireless data signal received is kept to buffer memory, described wireless message comprises the self-defined wireless network protocol of equipment interconnection, the self-defined wireless network data protocol of equipment interconnection, virtual USB control bag, virtual USB packet and virtual USB respond packet.
10. device according to claim 9, is characterized in that, described decoder module comprises:
Decoding unit, the virtual USB of preserving of decoding respectively in buffer memory is controlled bag and virtual USB packet, obtain the first virtual USB interface identifier of described first terminal, and the corresponding message data of the first virtual USB interface identifier of described first terminal, and the virtual USB respond packet of preserving in the decoding buffer memory, obtain the second virtual USB interface identifier in the USB respond packet of described first terminal
Comparing unit, for comparing described the first virtual USB interface identifier and the second virtual USB interface identifier;
Determining unit, if described the first virtual USB interface identifier is identical with the second virtual USB interface identifier, virtual USB interface identifier and the message data in wireless message using described the first virtual USB interface identifier and the corresponding message data of described the first virtual USB interface identifier.
CN201310389278.8A 2013-08-30 2013-08-30 Data processing method and device based on wireless communication protocol Expired - Fee Related CN103475650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310389278.8A CN103475650B (en) 2013-08-30 2013-08-30 Data processing method and device based on wireless communication protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310389278.8A CN103475650B (en) 2013-08-30 2013-08-30 Data processing method and device based on wireless communication protocol

Publications (2)

Publication Number Publication Date
CN103475650A true CN103475650A (en) 2013-12-25
CN103475650B CN103475650B (en) 2018-01-30

Family

ID=49800346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310389278.8A Expired - Fee Related CN103475650B (en) 2013-08-30 2013-08-30 Data processing method and device based on wireless communication protocol

Country Status (1)

Country Link
CN (1) CN103475650B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341777A (en) * 2016-08-11 2017-01-18 深圳创维-Rgb电子有限公司 USB virtual device creation method, device and system
CN113098842A (en) * 2021-03-02 2021-07-09 深圳市智莱科技股份有限公司 Data transmission method based on docking debugging system, docking debugging system and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030192061A1 (en) * 2002-04-03 2003-10-09 Seung Hwangbo Set-top box system and method for viewing digital broadcast
CN101060617A (en) * 2007-05-22 2007-10-24 华为技术有限公司 A video-on-demand control method, customer terminal equipment and switching control device
CN101166228A (en) * 2006-10-16 2008-04-23 深圳Tcl新技术有限公司 A method for TV set multi-remote controller collaborative control
CN101319586A (en) * 2008-07-24 2008-12-10 中兴通讯股份有限公司 System and method for remotely controlling automobile controlling lock by Bluetooth mobile phone
US20110159959A1 (en) * 2009-12-24 2011-06-30 Sony Computer Entertainment Inc. Wireless Device Pairing Methods
CN102136184A (en) * 2010-07-26 2011-07-27 华为终端有限公司 Method for pairing controlled equipment and remote control and controlled equipment
CN102523264A (en) * 2011-12-06 2012-06-27 北京航空航天大学 USB (Universal Serial Bus) equipment remote sharing method and system for virtual machine
CN102651703A (en) * 2011-02-25 2012-08-29 中国移动通信集团公司 Family network control method, system and device
CN102801800A (en) * 2012-08-03 2012-11-28 中国联合网络通信集团有限公司 Method and system for performing resource sharing processing among plurality of wireless terminals

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030192061A1 (en) * 2002-04-03 2003-10-09 Seung Hwangbo Set-top box system and method for viewing digital broadcast
CN101166228A (en) * 2006-10-16 2008-04-23 深圳Tcl新技术有限公司 A method for TV set multi-remote controller collaborative control
CN101060617A (en) * 2007-05-22 2007-10-24 华为技术有限公司 A video-on-demand control method, customer terminal equipment and switching control device
CN101319586A (en) * 2008-07-24 2008-12-10 中兴通讯股份有限公司 System and method for remotely controlling automobile controlling lock by Bluetooth mobile phone
US20110159959A1 (en) * 2009-12-24 2011-06-30 Sony Computer Entertainment Inc. Wireless Device Pairing Methods
CN102136184A (en) * 2010-07-26 2011-07-27 华为终端有限公司 Method for pairing controlled equipment and remote control and controlled equipment
CN102651703A (en) * 2011-02-25 2012-08-29 中国移动通信集团公司 Family network control method, system and device
CN102523264A (en) * 2011-12-06 2012-06-27 北京航空航天大学 USB (Universal Serial Bus) equipment remote sharing method and system for virtual machine
CN102801800A (en) * 2012-08-03 2012-11-28 中国联合网络通信集团有限公司 Method and system for performing resource sharing processing among plurality of wireless terminals

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341777A (en) * 2016-08-11 2017-01-18 深圳创维-Rgb电子有限公司 USB virtual device creation method, device and system
CN106341777B (en) * 2016-08-11 2019-04-02 深圳创维-Rgb电子有限公司 USB virtual unit creation method, equipment and system
CN113098842A (en) * 2021-03-02 2021-07-09 深圳市智莱科技股份有限公司 Data transmission method based on docking debugging system, docking debugging system and medium

Also Published As

Publication number Publication date
CN103475650B (en) 2018-01-30

Similar Documents

Publication Publication Date Title
CN110753330B (en) Bluetooth pairing method and Bluetooth headset
CN103686674A (en) Network access method, intelligent terminal and WiFi access equipment
CN111225414B (en) Multimode communication device, communication method thereof and multimode communication system
CN108124510B (en) Wireless pairing system and pairing method
CN103560836A (en) Sound wave wireless communication method and device
CN106487454B (en) Sound wave configuration method and configuration system of Internet of things intelligent equipment
CN103337144B (en) Wireless network-based intelligent remote control method and wireless network-based terminal
US20160316338A1 (en) Device Control Method and Device
CN103812536A (en) Bluetooth equipment connecting method and Bluetooth equipment
CN103220428A (en) Audio signal data communication method for cell phone
CN103442283A (en) Remote control method and device based on wireless connected role switching
CN103686338A (en) A method for processing audio data, an apparatus thereof and a television set
CN108235830B (en) Wireless pairing system and pairing method
CN106470458A (en) The method and apparatus being controlled in WiFi network
WO2007129253A1 (en) Emergency call system using nfc technology
CN102594893A (en) Remote compelled method and system for mobile terminal equipment and computer
CN113970171A (en) Method for starting distribution network mode of air conditioner and control terminal
CN105451368A (en) Communication method and apparatus
JP7031308B2 (en) Information processing equipment, communication systems, information processing methods and programs
CN105517111A (en) Methods and apparatuses for connecting devices with network
CN103475650A (en) Data processing method and device based on wireless communication protocol
WO2019144726A1 (en) Data transmission method, audio device, and smart terminal
WO2013182079A1 (en) Short message transcoding method and device
CN107483299A (en) Internet of things access method and device
WO2010025744A1 (en) Method and apparatus for indicating wireless connectivity options

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180130