CN103107831B - Data two-way transmission method based on 2.4G one-way wireless communication protocol - Google Patents

Data two-way transmission method based on 2.4G one-way wireless communication protocol Download PDF

Info

Publication number
CN103107831B
CN103107831B CN201110356479.9A CN201110356479A CN103107831B CN 103107831 B CN103107831 B CN 103107831B CN 201110356479 A CN201110356479 A CN 201110356479A CN 103107831 B CN103107831 B CN 103107831B
Authority
CN
China
Prior art keywords
data
machine
main frame
way
wireless communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110356479.9A
Other languages
Chinese (zh)
Other versions
CN103107831A (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.)
Institute of Acoustics CAS
Original Assignee
Institute of Acoustics CAS
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 Institute of Acoustics CAS filed Critical Institute of Acoustics CAS
Priority to CN201110356479.9A priority Critical patent/CN103107831B/en
Publication of CN103107831A publication Critical patent/CN103107831A/en
Application granted granted Critical
Publication of CN103107831B publication Critical patent/CN103107831B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

The invention relates to the field of wireless communication, discloses a data two-way transmission method based on a 2.4G one-way wireless communication protocol, provides a method which is capable of enabling data to be transmitted on two way and a working process for the 2.4G wireless communication protocol which only supports one-way data transmission and can be applicable to short-distance communication between wireless equipment which needs to exchange data, and the communication distance can reach a hundred meters or a thousand meters. The method comprises the following steps: Step 1. A subordinate computer obtains whether a main computer sends data to the subordinate computer, if the fact that the main computer sends data to the subordinate computer is confirmed, a next step starts; Step 2. The data are carried when the main computer sends response signals to the subordinate computer, and when the subordinate computer needs a lot of data, by a plurality of contact between the subordinate computer and the main computer, enough data information is obtained. The data two-way transmission method based on the 2.4G one-way wireless communication protocol provides the method which is capable of enabling the data to be transmitted on two way and the working process for the 2.4G wireless communication protocol which only supports the one-way data transmission.

Description

A kind of data double-way transmission method based on 2.4G one-way wireless communication agreement
Technical field
The present invention relates to wireless communication field, propose a kind of data double-way transmission method based on 2.4G one-way wireless communication agreement.
Background technology
Many from the 2.4G wireless communication protocol of machine at single host, generally become a wireless star network with multiple from mechanism by a main frame, main frame is defined as receiver, is defined as transmitter from machine, every platform communicates from machine with main frame the channel of specific frequency range, and does not overlap each other between frequency band.Main frame ceaselessly can detect no signal on the different channels, if Host Detection is to a certain signal sent from machine, and the signal that main frame will receive on this channel immediately, and from machine, response is made to this.
2.4G wireless communication protocol generally all supports automatic frequency-hopping and synchronous, asynchronous transceiver mode, these features are all conducive to maintaining main frame and from the communication between machine, but main frame and from the reception of machine and send role fixing after, cause the unicity (except main frame is to the response signal from machine) of data transfer direction, so for main frame with from the larger wireless communication system of machine data exchange capacity, the use of agreement receives certain restriction.
At present in the wireless communication protocol of existing 2.4G frequency band, some agreement only supports the cordless communication network of single-receiver and multi-transmitter, the Gazell Link Layer agreement of such as Nordic Semiconductor company.In these protocols, data can be sent to main frame from machine, and main frame is owing to being set to receiver, so can not send from the data required for machine to from machine, unless host work state is changed into from machine, change main frame into from machine operating state simultaneously, if but data transfer direction often changes, the obvious inefficiency of this method, and main frame and be difficult to reach synchronous from the State Transferring of machine, most important be exactly state frequently change can increase power consumption, this is very unfavorable to the application scenarios of low-power consumption.Especially, time larger from the data volume of machine needs, main frame cannot meet the requirement from machine, and this just causes the inconvenience to some application scenario.The present invention, on the basis of 2.4G multi-band wireless communications agreement specified data one-way transmission, proposes a kind of method of supported data transmitted in both directions.
For 2.4G wireless communication protocol, there is large quantifier elimination to it both at home and abroad, especially NordicSemiconductor company.Nordic Semiconductor company proposes single host and many from the 2.4G wireless communication protocol between machine, its agreement specifies main frame and can not change from machine the operating state sending or receive communication process, and namely the transmission direction of transmitter and receiver is fixed-direction.The present invention on this basis, adds main frame and from the transmitted in both directions function of machine to data, improves communication efficiency and the utilance to channel, and larger data amount main frame can transmitted and respectively need from machine.
Known to the author, for the content that the present invention proposes, domesticly there is no correlative study, the present invention mainly based on the 2.4G wireless communication protocol only supporting one direction transfer of data, and increases data double-way transmission method on this basis.
Summary of the invention
The object of the invention is to, adopt the slave of 2.4G wireless communication protocol only to support the problem of one direction transfer of data for overcoming prior art, thus a kind of data double-way transmission method based on 2.4G one-way wireless communication agreement is provided.
For achieving the above object, the invention provides a kind of data double-way transmission method based on 2.4G one-way wireless communication agreement, the method is for the treatment of the problem of the main frame and some transfer of data Two-ways between machine that adopt 2.4G wireless communication protocol, be applied to the two-way communication between hundred meters to the more short-range wireless device of km, described method comprises following steps:
Step 1, whether have data will to it send, if when confirming that host data sends to this from machine, enter lower step if obtaining main frame from machine.
Step 2, host computer its carry described data to the response signal sent from machine, when described from machine need data volume larger time, by described from machine repeatedly with main-machine communication, obtain enough data messages.
In technique scheme, described step 1 comprises following sub-step further:
Step 1-1, often T, MCU initiate a weaken rock to described from machine at regular intervals, make to send " inquiry " command word to main frame from machine, detect the state of main frame; Wherein, the state of main frame comprises " waiting to be sent " and " free time ".
Step 1-2, if main frame returns " waiting to be sent " state, then send " preparation is got " order from machine, notice main frame gets out data.
Wherein, described command word comprises: " inquiry ", " preparation is got " and " starting to get ".
Described step 2 comprises following sub-step further:
Step 2-1, order that described main frame returns " being ready for sending ", send " get " order from machine, so far main frame starts to send the first response signal and data.
Step 2-2, after receiving the data of main frame transmission, returns the second response signal from machine.
Wherein, described first response signal is the confirmation signal that main frame returns to from machine, and described second response signal is the confirmation signal returning to main frame from machine.
Compared with prior art technical advantage of the present invention is:
By above step, 2.4G one-way wireless communication agreement is extended to two-way communication, better can improve channel utilization.Under 2.4G one-way wireless communication agreement, once send inevitable with this time returning (main frame returns ACK), so when becoming two-way wireless communication from one-way wireless communication, transmitting-receiving process can not increase the burden any time, namely can not increase time delay.Because original 2.4G one-way wireless communication agreement only supports one-way data transfer, when so becoming two-way wireless communication from one-way wireless communication, channel utilization adds one times, and can switch data transmission direction frequently, so just, greatly improve communication efficiency and the utilization rate to channel, and larger data amount main frame can transmitted and respectively need from machine.
Accompanying drawing explanation
Fig. 1 is the data double-way transmission method flow chart of 2.4G wireless communication protocol of the present invention;
Fig. 2 is the wireless transmission/receiver module flow chart of the present invention from machine;
Fig. 3 is the wireless receiving/sending module flow chart of main frame of the present invention;
Fig. 4 is each module sketch of hardware platform of the embodiment of the present invention;
Fig. 5 is the USB Dongle sketch of embodiment;
Fig. 6 is wireless data analyzing device sketch.
Embodiment
For verifying the validity of the inventive method, the author has done a set of hardware platform, and the method that the author proposes is applied in this hardware platform.
The invention provides a kind of data double-way transmission method based on 2.4G one-way wireless communication agreement is based on the 2.4G wireless communication protocol of one direction transfer of data, is primarily characterized in that the data double-way transmission method between wireless transmission/receiver module 2 (being positioned at from machine) and wireless receiving/sending module 3 (being positioned on main frame) in Fig. 1.
Transfer of data between the wireless transmission/receiver module 2 of prior art and wireless receiving/sending module 3 is based on the 2.4G wireless communication protocol of one direction transfer of data, namely wireless module transmission and receive can only be all unidirectional.
The present invention on this basis, adds the method for big data quantity transmitted in both directions, with Extended Protocol on the basis of 2.4G one-way wireless communication agreement, increases data double-way transfer function, and provides the work schedule of data double-way transmission.
On the one hand, the present invention is with on the basis of 2.4G one-way wireless communication agreement, and Extended Protocol, makes data double-way transmit.2.4G wireless communication protocol according to the one direction transfer of data of prior art specifies, transmitter sends data, and can not change its operating state to receiver; Receiver receives data, and can not change its operating state to transmitter.
The present invention, in the 2.4G radio communication of stationary transmitter and receiver, increases the method that transmitter and receiver can both be transmitted and receive data, i.e. the data double-way transmission of transmitter and receiver.After transmitter sends bag data to receiver, receiver can return a bar response information and notify to receive from machine data.This " response " is called as ACK (Acknowledgment).Utilize receiver to return the process of ACK, the data obtained from machine needs from main frame can be added in ACK, complete the bidirectional transmit-receive of data.Similar send to receiver with transmitter after, it is the same that receiver will return to transmitter ACK, and transmitter, after receiving the data of sending from receiver, also will return an ACK to receiver, represent that data receive.Wherein utilize receiver to return to the response mechanism of transmitter, and add the response mechanism that transmitter returns to receiver, realize the data double-way transmission between Receiver And Transmitter.
On the other hand, after data double-way transmission work schedule provided by the invention refers to the method adding data double-way transmission on the basis of the 2.4G wireless communication protocol of one direction transfer of data, the work schedule of the transfer of data in Fig. 1 between wireless transmission/receiver module 2 and wireless receiving/sending module 3.
Upper computer software module 1 is concrete application software, can design according to the actual requirements.Its main task sends data to wireless transmission/receiver module 2 or the data that return of process wireless transmission/receiver module 2; Wireless transmission/receiver module 2 is intermediaries of Wireless Data Transmission, generally be connected with PC with the form of USB or serial ports, its main task is that the data of upper computer software module 1 being sent are transferred to wireless receiving/sending module 3 by wireless transmission form or the data that wireless receiving/sending module 3 sends are transferred to upper computer software module 1; Wireless receiving/sending module 3 is also the intermediary of Wireless Data Transmission, it is a kind of flush bonding module being used for resolution data, its main task receives data that wireless transmission/receiver module 2 sends and resolves, then by the data that the data after parsing send to terminal equipment 4 or receiving terminal apparatus 4 to send, wireless transmission/receiver module 2 is then sent the data to; Terminal equipment 4 is terminals of transfer of data, Primary Transmit no longer downwards after transfer of data to terminal equipment 4, and its main task receives data that wireless receiving/sending module 3 sends or data are returned to wireless receiving/sending module 3.The workflow of above wireless transmission/receiver module 2 and wireless receiving/sending module 3 defines the major part of data double-way transmission work schedule.
Detail can referring to Fig. 2 and Fig. 3.
Fig. 4 is hardware platform modules sketch for this reason.For the present invention, in Fig. 4, PC upper computer software corresponds to upper computer software module 1 in Fig. 1, USB Dongle corresponds to wireless transmission/receiver module 2, and wireless data analyzing device corresponds to wireless receiving/sending module 3, and terminal equipment corresponds to terminal equipment module 4.Data double-way transmission method of the present invention is applied between USB Dongle and wireless data analyzing device, the wireless transmission/receiver module 2 namely in Fig. 1 and between wireless receiving/sending module 3.
In above-mentioned relation, 4 modules form the wireless transceiver system of complete set jointly, and core methed of the present invention occurs between USB Dongle and wireless data analyzing device.PC upper computer software and terminal equipment module are the necessary modules of this wireless transceiver system of composition, but core of the present invention does not occur between which.
In Fig. 4, USB Dongle is a kind of wireless device be connected with PC by USB interface, is integrated with main control MCU, wireless chip and PCB built-in aerial in USB Dongle.PC upper computer software sends data to USBDongle, and then data are sent by antenna by USB Dongle, or the data received are returned to PC upper computer software by USB Dongle.Main control MCU, wireless chip and PCB built-in aerial is integrated with in wireless data analyzing device.Wireless data analyzing device receives the data of sending from USB Dongle, then sends the data to terminal equipment, or receives the result returned from terminal equipment, then data is sent by antenna.USBDongle and wireless data analyzing device are respectively from machine and main frame.In USB Dongle and wireless data analyzing device, use same main control chip and wireless chip, and use same antenna.The main control chip used in practice is stm32f103rbt6, is supported by 8MHz external clock.Wireless chip uses nfr24l01+, is supported by 16MHz external clock.Main control chip is connected by SPI interface with wireless chip, and all works under 3.3V power supply.Antenna use characteristic impedance be 50 Ω PCB embed micro-strip antenna.Wireless data analyzing device and terminal equipment according to actual conditions option interface, can use I2C interface in the hardware platform of the author.This hardware platform is applied to exploitation and the making of the wireless allotment box of domestic artificial cochlea by the author, as the deployment device of speech processor in domestic artificial cochlea.In actual use, PC upper computer software uses the Nore sound software of Hangzhou Nore Kanggong department, and terminal equipment is the speech processor part of domestic artificial cochlea.Fig. 5 and Fig. 6 is the sketch of USBDongle and wireless data analyzing device.
In a word, the present embodiment sends data or process reception data by upper computer software module 1 transmission; Send data by wireless transmission/receiver module 2 or receive data; Received by wireless receiving/sending module 3 or send data; The data or return data that receive are processed by terminal equipment 4.Whole wireless system, at the enterprising Serial Communication in basis of 2.4G one-way wireless communication agreement, utilizes wireless receiver to return the mechanism of response signal to transmitting set, adds efficient communication data in response signal, realize two-way communication.And give 2.4G one-way wireless communication agreement on this basis after expansion, the two-way communication workflow of wireless system.
It should be noted last that, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted.Although with reference to embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, modify to technical scheme of the present invention or equivalent replacement, do not depart from the spirit and scope of technical solution of the present invention, it all should be encompassed in the middle of right of the present invention.

Claims (6)

1. the data double-way transmission method based on 2.4G one-way wireless communication agreement, the method is for the treatment of adopting the single host of 2.4G wireless communication protocol and many problems from the transfer of data Two-way between machine, be applied to the two-way communication between hundred meters of wireless devices to km, described method comprises following steps:
Step 1, whether have data will to it send, if confirm that host data is when sending to this from machine, enter lower step if obtaining main frame from machine;
Step 2, host computer its carry described data to the response signal sent from machine, when described from machine need data volume larger time, by described from machine repeatedly with main-machine communication, obtain data message.
2. the data double-way transmission method based on 2.4G one-way wireless communication agreement according to claim 1, it is characterized in that, described step 1 comprises following sub-step further:
Step 1-1, often T, MCU initiate a weaken rock to described from machine at regular intervals, make to send " inquiry " command word to main frame from machine, detect the state of main frame; Wherein, the state of main frame comprises " waiting to be sent " and " free time ";
Step 1-2, if main frame returns " waiting to be sent " state, then send " preparation is got " order from machine, notice main frame gets out data;
Wherein, described command word comprises: " inquiry ", " preparation is got " and " starting to get ".
3. the data double-way transmission method based on 2.4G one-way wireless communication agreement according to claim 2, it is characterized in that, when described to send data from machine to main frame time, described main frame is in and receives the state of data, and after receiving data, this main frame sends response message to from machine.
4. the data double-way transmission method based on 2.4G one-way wireless communication agreement according to claim 2, is characterized in that, when the state of described main frame is " free time ", does not do any reaction from machine.
5. the data double-way transmission method based on 2.4G one-way wireless communication agreement according to claim 2, it is characterized in that, described step 2 comprises following sub-step further:
Step 2-1, order that described main frame returns " being ready for sending ", send " get " order from machine, so far main frame starts to send the first response signal and data;
Step 2-2, after receiving the data of main frame transmission, returns the second response signal from machine;
Wherein, described first response signal is the confirmation signal that main frame returns to from machine, and described second response signal is the confirmation signal returning to main frame from machine.
6. the data double-way transmission method based on 2.4G one-way wireless communication agreement according to claim 1, is characterized in that, describedly comprises wireless receiving module and sending module respectively from machine and main frame.
CN201110356479.9A 2011-11-11 2011-11-11 Data two-way transmission method based on 2.4G one-way wireless communication protocol Active CN103107831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110356479.9A CN103107831B (en) 2011-11-11 2011-11-11 Data two-way transmission method based on 2.4G one-way wireless communication protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110356479.9A CN103107831B (en) 2011-11-11 2011-11-11 Data two-way transmission method based on 2.4G one-way wireless communication protocol

Publications (2)

Publication Number Publication Date
CN103107831A CN103107831A (en) 2013-05-15
CN103107831B true CN103107831B (en) 2015-03-18

Family

ID=48315430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110356479.9A Active CN103107831B (en) 2011-11-11 2011-11-11 Data two-way transmission method based on 2.4G one-way wireless communication protocol

Country Status (1)

Country Link
CN (1) CN103107831B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109015656A (en) * 2018-09-07 2018-12-18 东南大学 Communication of Muti-robot System system based on 2.4G radio frequency chip
CN109405949A (en) * 2018-09-28 2019-03-01 芯海科技(深圳)股份有限公司 A kind of communication means based on 2.4G two-way communication intelligent broadcast scale
CN111342945B (en) * 2020-02-19 2022-09-27 广东乐心医疗电子股份有限公司 Master-slave communication method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050017295A (en) * 2003-08-12 2005-02-22 엘지전자 주식회사 Method for wireless data communication in portable electronic device
CN200959627Y (en) * 2006-08-14 2007-10-10 深圳市索科特智能设备有限公司 Two-way long-range air-conditioner controller of telephone
CN201004673Y (en) * 2007-02-06 2008-01-09 深圳市沃尔钛科技有限公司 A remote central control device for home electrical appliance based on phone
CN201307891Y (en) * 2008-11-21 2009-09-09 陈源波 Bidirectional wireless controller of camera with audio-visual and monitoring function
CN101833286A (en) * 2009-03-13 2010-09-15 王俊锋 Intelligent home controller
CN101931719A (en) * 2010-08-13 2010-12-29 东莞怡信磁碟有限公司 Mobile phone capable of carrying out bidirectional monitoring with sub phones thereof and monitoring method thereof
JP2011076535A (en) * 2009-10-01 2011-04-14 Toshiba Corp Information processor and transmission method for capture image
JP2011186781A (en) * 2010-03-09 2011-09-22 Sony Corp Communication apparatus, communication method, and communication system
CN102214317A (en) * 2011-05-24 2011-10-12 刘健哲 Intelligent card combining NFC (Near Field Communication) and 2.4G double frequency band communication and double frequency band communication system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100691419B1 (en) * 2001-02-09 2007-03-09 삼성전자주식회사 Wireless communication apparatus, the method thereof and wireless communication system employing the same
CN101582706A (en) * 2008-05-14 2009-11-18 上海慧翰信息技术有限公司 Method for downloading data through bluetooth module

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050017295A (en) * 2003-08-12 2005-02-22 엘지전자 주식회사 Method for wireless data communication in portable electronic device
CN200959627Y (en) * 2006-08-14 2007-10-10 深圳市索科特智能设备有限公司 Two-way long-range air-conditioner controller of telephone
CN201004673Y (en) * 2007-02-06 2008-01-09 深圳市沃尔钛科技有限公司 A remote central control device for home electrical appliance based on phone
CN201307891Y (en) * 2008-11-21 2009-09-09 陈源波 Bidirectional wireless controller of camera with audio-visual and monitoring function
CN101833286A (en) * 2009-03-13 2010-09-15 王俊锋 Intelligent home controller
JP2011076535A (en) * 2009-10-01 2011-04-14 Toshiba Corp Information processor and transmission method for capture image
JP2011186781A (en) * 2010-03-09 2011-09-22 Sony Corp Communication apparatus, communication method, and communication system
CN101931719A (en) * 2010-08-13 2010-12-29 东莞怡信磁碟有限公司 Mobile phone capable of carrying out bidirectional monitoring with sub phones thereof and monitoring method thereof
CN102214317A (en) * 2011-05-24 2011-10-12 刘健哲 Intelligent card combining NFC (Near Field Communication) and 2.4G double frequency band communication and double frequency band communication system

Also Published As

Publication number Publication date
CN103107831A (en) 2013-05-15

Similar Documents

Publication Publication Date Title
CN110089040B (en) Data transmission method and sending end equipment
CN100379306C (en) Interface device for connecting dominant base and RRU
WO2009028673A1 (en) Mobile communication system, wireless communication method, core network, mobile terminal apparatus and program
CN101119133A (en) 2.4GHz frequency hopping technique based one-to-many fast synchronization method
CN103259607A (en) Clock synchronization method and clock synchronization device
CN103107831B (en) Data two-way transmission method based on 2.4G one-way wireless communication protocol
RU2012103313A (en) RADIO COMMUNICATION SYSTEM
CN108288994B (en) Take big dipper multi-card communication location pronunciation equipment of WIFI function
US8170054B2 (en) Software control of half duplex radio data transceivers
CN111917849A (en) Internet of things transmission method based on Zigbee and NB-IoT fusion networking
CN102110070A (en) Implementation method for improving transmission efficiency of serial peripheral interface
CN217522832U (en) UWB-based low-delay lossless digital audio transmission unit, system and electronic equipment
WO2022170976A1 (en) Data transmission method and communication apparatus
CN217216925U (en) Gateway and communication system
CN210093253U (en) System for fusing PLC control system and control system of DALI protocol
KR20090033476A (en) Coexistance device communication
CN101686083A (en) Data optical receiver
CN211018828U (en) Multifunctional wireless repeater
CN207603633U (en) Electric safety system Internet of Things data wireless transport module
CN101667066B (en) Synchronous wireless transmission system and synchronous wireless transmission method
CN105634566A (en) Scalable distributed antenna system and processing method
SG153852A1 (en) Mobile station, wireless access network apparatus, mobile communication system and communication method
CN103840933A (en) Method and switch for achieving clock synchronization
WO2014008869A1 (en) Access device and system, and data sending method
CN103067957B (en) A kind of wireless system for transmitting data and its implementation being applied to point-to-point environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant