CN104735715B - Wireless Multi-Channel communication device and multi channel real-time communication method - Google Patents
Wireless Multi-Channel communication device and multi channel real-time communication method Download PDFInfo
- Publication number
- CN104735715B CN104735715B CN201510075436.1A CN201510075436A CN104735715B CN 104735715 B CN104735715 B CN 104735715B CN 201510075436 A CN201510075436 A CN 201510075436A CN 104735715 B CN104735715 B CN 104735715B
- Authority
- CN
- China
- Prior art keywords
- data
- channel
- unit
- wireless
- wireless channel
- 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.)
- Expired - Fee Related
Links
- 238000004891 communication Methods 0.000 title claims abstract description 86
- 238000000034 method Methods 0.000 title claims abstract description 22
- 230000005540 biological transmission Effects 0.000 claims description 28
- 238000005070 sampling Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 7
- 230000001934 delay Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001568 sexual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W74/00—Wireless channel access
- H04W74/08—Non-scheduled access, e.g. ALOHA
- H04W74/0833—Random access procedures, e.g. with 4-step access
- H04W74/0841—Random access procedures, e.g. with 4-step access with collision treatment
- H04W74/085—Random access procedures, e.g. with 4-step access with collision treatment collision avoidance
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
本发明公开了一种无线多信道通信装置及多信道的实时通信方法,其装置包括:接收单元,用于在设定的无线信道上接收数据;发送单元,用于在指定的无线信道上发送数据;中央协调处理单元,分别与多个接收单元和发送单元电连接,用于实时获取多个接收单元接收的数据,当需要发射数据时,根据当前各无线信道的状态指定发送单元使用的空闲无线信道,并将在此空闲无线信道上需要发送的数据传输给发送单元。本发明的装置及方法,可以同时监测多个信道状况,根据有效接收和连续采样获得准确的信道忙闲区分阈值,并且可通过接收自身发射的数据包判断是否产生碰撞或失真,具有极高的实时性,能够避免因信道冲突造成的通信延迟。
The invention discloses a wireless multi-channel communication device and a multi-channel real-time communication method. The device includes: a receiving unit for receiving data on a set wireless channel; a sending unit for sending data on a designated wireless channel Data; the central coordination processing unit is electrically connected with multiple receiving units and sending units respectively, and is used to obtain the data received by multiple receiving units in real time. wireless channel, and transmit the data to be sent on this idle wireless channel to the sending unit. The device and method of the present invention can monitor multiple channel conditions at the same time, obtain accurate channel busy-idle thresholds based on effective reception and continuous sampling, and can judge whether collision or distortion occurs by receiving data packets transmitted by itself, with extremely high Real-time performance can avoid communication delay caused by channel conflict.
Description
技术领域technical field
本发明涉及无线通信技术领域,特别是指一种无线多信道通信装置及多信道的实时通信方法。The invention relates to the technical field of wireless communication, in particular to a wireless multi-channel communication device and a multi-channel real-time communication method.
背景技术Background technique
目前,无线通信网络中的通信设备大多数是针对单一信道进行数据的收发,而无线通信网络中各通信节点间存在信道使用权的竞争问题,即在同一个频段工作的收发机,如果出现两个及以上同时发送无线信号时,会因信号的相互干涉而造成通信被破坏。已经有多种信道竞争协议来解决该问题,但本质都是按序对需要同时发送无线信号的节点进行先后组织,会导致某些节点的通信延迟。在需要实时无线通信的场合,这种延迟无法忍受,比如在高速公路上行驶的汽车之间,通过车载无线系统进行通信,需要通过无线信号进行行车信息的交互,从而为司机提供更多安全保障,这种情况下的无线通信冲突导致的几百毫秒延迟都有可能造成车辆间的事故发生。为此需要一种保障无线收发机在任意时刻都能发送数据的机制,这种机制能很好地实现无线终端危急情况发生时的及时通信,满足有高实时要求的无线网络产品需求。At present, most of the communication devices in the wireless communication network transmit and receive data for a single channel, and there is a competition for channel use rights among the communication nodes in the wireless communication network. When two or more wireless signals are sent at the same time, the communication will be destroyed due to the mutual interference of the signals. There have been a variety of channel competition protocols to solve this problem, but the essence is to organize the nodes that need to send wireless signals at the same time sequentially, which will cause communication delays for some nodes. In situations where real-time wireless communication is required, this delay is unbearable, such as communication between cars driving on the highway through a vehicle-mounted wireless system, and the interaction of driving information through wireless signals is required to provide drivers with more safety guarantees In this case, the delay of hundreds of milliseconds caused by wireless communication conflicts may cause accidents between vehicles. Therefore, a mechanism is needed to ensure that the wireless transceiver can send data at any time. This mechanism can well realize the timely communication of the wireless terminal when a critical situation occurs, and meet the needs of wireless network products with high real-time requirements.
发明内容Contents of the invention
有鉴于此,本发明的目的在于提出一种无线多信道通信装置及多信道的实时通信方法,能够同时监听多个信道状况并选择信道发送数据。In view of this, the object of the present invention is to provide a wireless multi-channel communication device and a multi-channel real-time communication method, which can simultaneously monitor the status of multiple channels and select a channel to send data.
基于上述目的本发明提供一种无线多信道通信装置,包括:接收单元,用于在设定的无线信道上接收数据;发送单元,用于在指定的无线信道上发送数据;中央协调处理单元,分别与多个所述接收单元和所述发送单元电连接,用于实时获取多个所述接收单元接收的数据,当需要发射数据时,根据当前各无线信道的状态指定所述发送单元使用的空闲无线信道,并将在此空闲无线信道上需要发送的数据传输给所述发送单元。Based on the above purpose, the present invention provides a wireless multi-channel communication device, including: a receiving unit, used to receive data on a set wireless channel; a sending unit, used to send data on a designated wireless channel; a central coordination processing unit, Respectively electrically connected to a plurality of the receiving units and the sending unit, for real-time acquisition of data received by the receiving units, when data needs to be transmitted, according to the current status of each wireless channel, specify the wireless channel used by the sending unit An idle wireless channel, and transmit the data to be sent on the idle wireless channel to the sending unit.
根据本发明的一个实施例,进一步的,在所述中央协调处理单元与每个接收单元之间都设置地址选择单元;所述地址选择单元通过地址总线和数据总线与所述中央协调处理单元连接,所述地址选择单元通过数据总线与对应的接收单元连接;其中,所述接收单元按地址统一编排,通过地址号相区分;所述中央协调处理单元通过串行通信总线与所述发送单元连接。According to an embodiment of the present invention, further, an address selection unit is set between the central coordination processing unit and each receiving unit; the address selection unit is connected to the central coordination processing unit through an address bus and a data bus , the address selection unit is connected to the corresponding receiving unit through a data bus; wherein, the receiving unit is uniformly arranged according to the address and distinguished by address numbers; the central coordination processing unit is connected to the sending unit through a serial communication bus .
根据本发明的一个实施例,进一步的,多个所述接收单元所设定的无线信道都不相同,每个所述接收单元都监听对应的无线信道,实时获取无线信道的接收信号强度指示RSSI值,并发送到数据端口;所述中央协调处理单元循环选通所述接收单元,通过数据总线获取所述RSSI值。According to an embodiment of the present invention, further, the wireless channels set by the multiple receiving units are different, and each receiving unit monitors the corresponding wireless channel, and obtains the received signal strength indicator (RSSI) of the wireless channel in real time value, and send it to the data port; the central coordination processing unit circularly selects the receiving unit, and obtains the RSSI value through the data bus.
根据本发明的一个实施例,进一步的,每个所述接收单元都通过独立的状态线与所述中央协调处理单元连接;当接收到数据包时,所述接收单元获取当前无线信道的RSSI值,并通过所述状态线向所述中央协调处理单元发送触发信号,将所述数据包和所述当前无线信道的RSSI值发送到数据端口;其中,所述触发信号包括:低电平信号;当所述中央协调处理单元接收到所述触发信号时,确定所述触发信号对应的接收单元,通过数据总线从此接收单元获取所述数据包和所述当前无线信道的RSSI值。According to an embodiment of the present invention, further, each of the receiving units is connected to the central coordination processing unit through an independent status line; when receiving a data packet, the receiving unit obtains the RSSI value of the current wireless channel , and send a trigger signal to the central coordination processing unit through the status line, and send the data packet and the RSSI value of the current wireless channel to a data port; wherein the trigger signal includes: a low level signal; When the central coordination processing unit receives the trigger signal, it determines the receiving unit corresponding to the trigger signal, and obtains the data packet and the RSSI value of the current wireless channel from the receiving unit through a data bus.
根据本发明的一个实施例,进一步的,所述中央协调处理单元根据获取的RSSI值判断无线信道是否处于空闲或忙碌状态;当发送数据时,所述中央协调处理单元选取空闲的无线信道、并设定所述发送单元工作在此空闲的无线信道,将需要发送的数据通过串行通信总线传输给所述发送单元。According to an embodiment of the present invention, further, the central coordination processing unit judges whether the wireless channel is idle or busy according to the obtained RSSI value; when sending data, the central coordination processing unit selects an idle wireless channel, and The sending unit is set to work on the idle wireless channel, and the data to be sent is transmitted to the sending unit through the serial communication bus.
根据本发明的一个实施例,进一步的,在数据被所述发送单元通过所述空闲的信道发送后,工作在与所述空闲的信道相同的无线信道的所述接收单元接收到此被发送的数据;所述中央协调处理单元判断所述接收单元接收到的被发送的数据是否与原始发送的数据相同,如果是,则判断发送数据成功。According to an embodiment of the present invention, further, after the data is sent by the sending unit through the idle channel, the receiving unit working on the same wireless channel as the idle channel receives the sent data data: the central coordination processing unit determines whether the transmitted data received by the receiving unit is the same as the original transmitted data, and if so, determines that the transmitted data is successful.
一种多信道的实时通信方法,包括:多个接收单元在设定的无线信道上接收数据,实时获取多个接收单元接收的数据;当需要发射数据时,根据当前各无线信道的状态指定发送单元使用的空闲无线信道,并将在此空闲无线信道上需要发送的数据传输给发送单元;所述发送单元在指定的无线信道上发送数据。A multi-channel real-time communication method, comprising: multiple receiving units receive data on set wireless channels, and obtain the data received by the multiple receiving units in real time; The idle wireless channel used by the unit, and transmits the data to be sent on the idle wireless channel to the sending unit; the sending unit sends data on the designated wireless channel.
根据本发明的一个实施例,进一步的,所述接收单元按地址统一编排,通过地址号相区分;多个所述接收单元所设定的无线信道都不相同,每个所述接收单元都监听对应的无线信道,实时获取无线信道的接收信号强度指示 RSSI值,并发送到数据端口;循环选通所述接收单元,通过数据总线获取所述RSSI值。According to an embodiment of the present invention, further, the receiving units are uniformly arranged according to addresses, and are distinguished by address numbers; the wireless channels set by multiple receiving units are different, and each receiving unit monitors Corresponding to the wireless channel, obtain the RSSI value of the received signal strength indicator of the wireless channel in real time, and send it to the data port; cyclically select the receiving unit, and obtain the RSSI value through the data bus.
根据本发明的一个实施例,进一步的,当接收到数据包时,所述接收单元获取当前无线信道的RSSI值,并通过状态线发送触发信号,将所述数据包和所述当前无线信道的RSSI值发送到数据端口;其中,所述触发信号包括:低电平信号;当接收到所述触发信号时,确定所述触发信号对应的接收单元,通过数据总线从此接收单元获取所述数据包和所述当前无线信道的RSSI 值。According to an embodiment of the present invention, further, when receiving a data packet, the receiving unit obtains the RSSI value of the current wireless channel, and sends a trigger signal through the status line, and combines the data packet and the RSSI value of the current wireless channel The RSSI value is sent to the data port; wherein the trigger signal includes: a low-level signal; when the trigger signal is received, the receiving unit corresponding to the trigger signal is determined, and the data packet is obtained from the receiving unit through the data bus and the RSSI value of the current wireless channel.
根据本发明的一个实施例,进一步的,根据获取的RSSI值判断无线信道是否处于空闲或忙碌状态;当发送数据时,选取空闲的无线信道、并设定所述发送单元工作在此空闲的无线信道,将需要发送的数据通过串行通信总线传输给所述发送单元;在数据被所述发送单元通过所述空闲的信道发送后,工作在与所述空闲的信道相同的无线信道的所述接收单元接收到此被发送的数据;所述中央协调处理单元判断所述接收单元接收到的被发送的数据是否与原始发送的数据相同,如果是,则判断发送数据成功。According to an embodiment of the present invention, further, judge whether the wireless channel is idle or busy according to the obtained RSSI value; when sending data, select an idle wireless channel, and set the sending unit to work on the idle wireless channel channel, and transmit the data to be sent to the sending unit through the serial communication bus; after the data is sent by the sending unit through the idle channel, the wireless channel working on the same wireless channel as the idle channel The receiving unit receives the sent data; the central coordination processing unit judges whether the sent data received by the receiving unit is the same as the original sent data, and if so, judges that the data sending is successful.
从上面所述可以看出,本发明的无线多信道通信装置及多信道的实时通信方法,多个接收单元可以同时接收不同无线信道上的数据,并在发送数据时实时选择合适信道进行数据的发送,实现可靠的无线通信。能够同时监测多个信道状况,根据有效接收和连续采样获得准确的信道忙闲区分阈值,并且可通过接收自身发射的数据包判断是否产生碰撞或失真,具有极高的实时性,能够避免因信道冲突造成的通信延迟。As can be seen from the above, in the wireless multi-channel communication device and the multi-channel real-time communication method of the present invention, multiple receiving units can receive data on different wireless channels at the same time, and select an appropriate channel for data transmission in real time when sending data. sent for reliable wireless communication. It can monitor multiple channel conditions at the same time, obtain accurate channel busy-idle thresholds based on effective reception and continuous sampling, and can judge whether collisions or distortions occur by receiving data packets transmitted by itself. Communication delays caused by collisions.
附图说明Description of drawings
图1为本发明的无线多信道通信装置的一个实施例的示意图;Fig. 1 is a schematic diagram of an embodiment of the wireless multi-channel communication device of the present invention;
图2为本发明的无线多信道通信装置的另一个实施例的示意图;2 is a schematic diagram of another embodiment of the wireless multi-channel communication device of the present invention;
图3为由本发明的无线多信道通信装置组成网络的示意图;Fig. 3 is a schematic diagram of a network composed of wireless multi-channel communication devices of the present invention;
图4为本发明的多信道的实时通信方法的一个实施例的流程图。FIG. 4 is a flowchart of an embodiment of the multi-channel real-time communication method of the present invention.
图5为本发明的多信道的实时通信方法的一个实施例的接收数据的工作流程图;Fig. 5 is the working flowchart of receiving data of an embodiment of the multi-channel real-time communication method of the present invention;
图6为本发明的多信道的实时通信方法的一个实施例的对接收数据进行处理的工作流程图;Fig. 6 is a working flow chart of processing received data in an embodiment of the multi-channel real-time communication method of the present invention;
图7为本发明的多信道的实时通信方法的一个实施例的检验发送数据的工作流程图。FIG. 7 is a flow chart of checking and sending data in an embodiment of the multi-channel real-time communication method of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below in conjunction with specific embodiments and with reference to the accompanying drawings.
图1为本发明的无线多信道通信装置的一个实施例的示意图,如图1所示,接收单元12、13、14在设定的无线信道上接收数据。发送单元15在指定的无线信道上发送数据。中央协调处理单元11分别与多个接收单元12、 13、14和发送单元 15电连接,实时获取多个接收单元12、13、14接收的数据,当需要发射数据时,根据当前各无线信道的状态指定发送单元15使用的空闲无线信道,并将在此空闲无线信道上需要发送的数据传输给发送单元。FIG. 1 is a schematic diagram of an embodiment of a wireless multi-channel communication device of the present invention. As shown in FIG. 1 , receiving units 12, 13, 14 receive data on a set wireless channel. The sending unit 15 sends data on a designated wireless channel. The central coordination processing unit 11 is electrically connected with a plurality of receiving units 12, 13, 14 and sending unit 15 respectively, and obtains the data received by a plurality of receiving units 12, 13, 14 in real time. The state specifies the idle wireless channel used by the sending unit 15, and transmits the data to be sent on the idle wireless channel to the sending unit.
本发明的无线多信道通信装置,多个接收单元可以同时接收不同无线信道上的数据,并在发送数据时实时选择合适信道进行数据的发送,实现实时可靠的无线通信。信道具有一定的频率带宽,多个无线信道可以通过工作的无线频率进行划分,或者,不同的接收单元可以采用不同的协议,例如wifi, 蓝牙,CDMA等。In the wireless multi-channel communication device of the present invention, a plurality of receiving units can receive data on different wireless channels at the same time, and select an appropriate channel for data transmission in real time when sending data, thereby realizing real-time and reliable wireless communication. The channel has a certain frequency bandwidth, and multiple wireless channels can be divided by the working wireless frequency, or different receiving units can use different protocols, such as wifi, bluetooth, CDMA, etc.
图2为本发明的无线多信道通信装置的另一个实施例的示意图,如图2 所示,在中央协调处理单元(或中央协调处理器)21与每个接收单元(或接收机)1、2…n之间都设置地址选择单元1、2…n。地址选择单元1、2…n通过地址总线和数据总线与中央协调处理单元21连接,地址选择单元1、2…n 通过数据总线与对应的接收单元1、2…n连接。接收单元1、2…n按地址统一编排,通过地址号相区分。中央协调处理单元21通过串行通信总线与发射单元(或发送机)23连接。Fig. 2 is the schematic diagram of another embodiment of wireless multi-channel communication device of the present invention, as shown in Fig. 2, in central coordination processing unit (or central coordination processor) 21 and each receiving unit (or receiver) 1, Address selection units 1, 2...n are set between 2...n. The address selection units 1, 2...n are connected to the central coordination processing unit 21 through the address bus and the data bus, and the address selection units 1, 2...n are connected to the corresponding receiving units 1, 2...n through the data bus. Receiving units 1, 2...n are uniformly arranged according to addresses, and are distinguished by address numbers. The central coordination processing unit 21 is connected with the transmitting unit (or transmitter) 23 through a serial communication bus.
多个接收单元1、2…n可以工作在不同的通信信道,按地址统一编排,都通过地址总线、数据总线和状态线与中央协调处理单元21连接。中央协调处理单元21通过接收单元1、2…n侦测各信道的状态,进而控制发射单元 23工作于指定信道并进行实时可靠通信。A plurality of receiving units 1, 2...n can work in different communication channels, are uniformly arranged according to addresses, and are all connected to the central coordination processing unit 21 through an address bus, a data bus and a status line. The central coordination processing unit 21 detects the status of each channel through the receiving units 1, 2...n, and then controls the transmitting unit 23 to work on the designated channel and perform real-time reliable communication.
多个接收单元1、2…n所设定的无线信道都不相同,每个接收单元都监听对应的无线信道,实时获取无线信道的接收信号强度指示RSSI值,并发送到数据端口。中央协调处理单元循环选通接收单元,通过数据总线获取RSSI 值。The wireless channels set by multiple receiving units 1, 2...n are different, and each receiving unit monitors the corresponding wireless channel, obtains the received signal strength indicator RSSI value of the wireless channel in real time, and sends it to the data port. The central coordinating processing unit circularly selects the receiving unit and obtains the RSSI value through the data bus.
在一个实施例中,接收单元1由微处理器和无线通信单元电路组成,微处理器具有两个数据端口,一个用于存放接收到的通信内容,一个用于存放所处信道的信号强度数值,两个数据端口都具有数据缓存能力,并和中央协调处理机的数据总线相连。In one embodiment, the receiving unit 1 is composed of a microprocessor and a wireless communication unit circuit. The microprocessor has two data ports, one is used to store the received communication content, and the other is used to store the signal strength value of the channel in which it is located. , both data ports have data cache capability and are connected to the data bus of the central coordinating processor.
每个接收单元1、2…n都通过独立的状态线与中央协调处理单元21连接。当接收到数据包时,接收单元获取当前无线信道的RSSI值,并通过状态线向中央协调处理单元发送触发信号,将数据包和当前无线信道的RSSI值发送到数据端口。触发信号包括:低电平信号等。当中央协调处理单元21接收到触发信号时,确定触发信号对应的接收单元,通过数据总线从此接收单元获取数据包和当前无线信道的RSSI值。Each receiving unit 1, 2...n is connected to the central coordination processing unit 21 through an independent status line. When receiving the data packet, the receiving unit obtains the RSSI value of the current wireless channel, and sends a trigger signal to the central coordination processing unit through the status line, and sends the data packet and the RSSI value of the current wireless channel to the data port. Trigger signals include: low-level signals, etc. When the central coordination processing unit 21 receives the trigger signal, it determines the receiving unit corresponding to the trigger signal, and obtains the data packet and the RSSI value of the current wireless channel from the receiving unit through the data bus.
在一个实施例中,中央协调处理单元21通过接收单元1、2…n侦测各信道状态,是由接收单元1、2…n主动发起的。每个接收单元的微处理器都一直通过无线通信单元电路获得所在信道的信号强度值,并放在信号强度数据端口,同时判断是否收到无线数据,若收到则通过改变状态信号线电平的方式告知中央协调处理单元21,然后由中央协调处理单元21选通该接收单元,获得通信内容和信道强度。In one embodiment, the central coordination processing unit 21 detects the channel states through the receiving units 1, 2...n, which is initiated by the receiving units 1, 2...n. The microprocessor of each receiving unit always obtains the signal strength value of the channel through the wireless communication unit circuit, and puts it in the signal strength data port, and at the same time judges whether the wireless data is received, and if so, changes the state signal line level Inform the central coordinating processing unit 21 by means of the method, and then the central coordinating processing unit 21 gates the receiving unit to obtain the communication content and channel strength.
发射单元23的工作信道实时变化,由中央协调处理单元21根据当前所有信道的空闲和忙碌状态来选择的。中央协调处理单元21针对每个通信接收机采集的信号强度有两个样本数据,一组样本存放该信道没有通信事件(即接收数据)发生时的信号强度,一组样本存放通信事件(即接收数据)发生时的信号强度。中央协调处理单元21根据一定时间内的两组样本数值不断更新信道忙碌或空闲的信号强度划分阈值。The working channel of the transmitting unit 23 changes in real time, and is selected by the central coordination processing unit 21 according to the current idle and busy states of all channels. The central coordination processing unit 21 has two sample data for the signal strength collected by each communication receiver, one group of samples stores the signal strength when the channel does not have a communication event (i.e. receiving data), and one group of samples stores the communication event (i.e. receiving data). data) signal strength at the time of occurrence. The central coordination processing unit 21 constantly updates the signal strength division thresholds of busy or idle channels according to two groups of sample values within a certain period of time.
本发明的无线多信道通信装置,能同时监测多个信道状况,具有并行通信处理能力,根据有效接收和连续采样获得准确的信道忙闲区分阈值,且通过自身接收机可判断信道冲突情况,具有极高的实时性。The wireless multi-channel communication device of the present invention can monitor multiple channel conditions at the same time, has parallel communication processing capabilities, can obtain accurate channel busy-idle thresholds according to effective reception and continuous sampling, and can judge channel conflicts through its own receiver, and has Extremely high real-time performance.
在一个实施例中,当发送数据时,中央协调处理单元21选取空闲的无线信道、并设定发射单元23工作在此空闲的无线信道,将需要发送的数据通过串行通信总线传输给发射单元23。In one embodiment, when sending data, the central coordination processing unit 21 selects an idle wireless channel, and sets the transmitting unit 23 to work in this idle wireless channel, and transmits the data to be sent to the transmitting unit through the serial communication bus twenty three.
在数据被发射单元23通过空闲的信道发送后,工作在与空闲的信道相同的无线信道的接收单元1接收到此被发送的数据。中央协调处理单元21判断接收单元1接收到的被发送的数据是否与原始发送的数据相同,如果是,则判断发送数据成功。After the data is transmitted by the transmitting unit 23 through the idle channel, the receiving unit 1 working on the same wireless channel as the idle channel receives the transmitted data. The central coordination processing unit 21 determines whether the transmitted data received by the receiving unit 1 is the same as the original transmitted data, and if so, determines that the transmitted data is successful.
本发明的无线多信道通信装置的通信可靠性,是通过接收单元能否收到装置自身发射的数据包来判断的。通过发射单元发出的无线信号,若被处于同一工作信道的接收单元收到,并且数据内容和发射内容完全一致,则说明发射过程无错误产生,数据通信成功,否则认为信道产生碰撞或信号失真,需要重新发送。The communication reliability of the wireless multi-channel communication device of the present invention is judged by whether the receiving unit can receive the data packets transmitted by the device itself. If the wireless signal sent by the transmitting unit is received by the receiving unit in the same working channel, and the data content is exactly the same as the transmission content, it means that there is no error in the transmission process and the data communication is successful. Otherwise, it is considered that the channel has collided or the signal is distorted. Need to resend.
本发明的无线多信道通信装置,可判断自身发射的数据包是否产生碰撞或失真,支持同一无线网络内较多数量的无线终端同时工作,特别适合于汽车之间数据并发量大且对通信实时性要求特别高的场合。The wireless multi-channel communication device of the present invention can judge whether the data packets transmitted by itself collide or be distorted, and support a large number of wireless terminals in the same wireless network to work at the same time, and is especially suitable for vehicles with a large amount of concurrent data and real-time communication occasions where sexual demands are particularly high.
如图3为由本发明的无线多信道通信装置组成的车载无线网络,无线多信道通信装置31、32分别设置在不同的汽车上。系统中的装置之间可在其它无线信道上同时进行信息传递,实现同一无线电覆盖范围内,任意两个通信节点间的同时通信,并行工作且相互独立。Fig. 3 is a vehicle-mounted wireless network composed of wireless multi-channel communication devices of the present invention, and wireless multi-channel communication devices 31 and 32 are respectively arranged on different cars. Devices in the system can simultaneously transmit information on other wireless channels, realizing simultaneous communication between any two communication nodes within the same radio coverage area, working in parallel and independently of each other.
在一个实施例中,本发明的无线多信道通信装置带有中央协调处理单元 21、若干个相同的通信接收机22、若干个地址选择单元29和一个无线通信发射单元23,各接收单元22工作在不同的无线信道上。In one embodiment, the wireless multi-channel communication device of the present invention has a central coordination processing unit 21, several identical communication receivers 22, several address selection units 29 and a wireless communication transmitting unit 23, and each receiving unit 22 works on different wireless channels.
各接收单元22通过状态线26独立地与中央协调处理单元21连通,状态线受接收单元22控制,平时为高电平。各接收单元22上电之后进行设备的初始化,根据自身程序设定工作在相应无线信道,处于接收状态,实时采样当前信道的接收信号强度RSSI的数值并放置到数据总线24上,同时判断是否有完整的数据包到来,当接收单元22接收到其它同类型的无线多信道通信装置的相应无线信道发来的完整数据信号时,将状态线26电平拉低。Each receiving unit 22 is independently connected to the central coordination processing unit 21 through a status line 26, and the status line is controlled by the receiving unit 22 and is usually at a high level. After each receiving unit 22 is powered on, the device is initialized, and it is set to work in the corresponding wireless channel according to its own program, and is in the receiving state. The value of the received signal strength RSSI of the current channel is sampled in real time and placed on the data bus 24. At the same time, it is judged whether there is When a complete data packet arrives, the receiving unit 22 pulls the level of the status line 26 low when it receives a complete data signal from the corresponding wireless channel of other wireless multi-channel communication devices of the same type.
中央协调处理单元21循环选通各路通信接收机,并获取各接收单元上实时感应到的无线信道上的信号强度值。同时,状态线26上出现的低电平能触发中央协调处理单元21进入中断状态,中央协调处理器21进入由该种情况引发的中断后,会判断哪路接收单元引起的中断,并读取接收单元上接收到的完整的数据信号和当前无线信道的信号强度值,作为下次判断信道忙的依据之一。The central coordination processing unit 21 cyclically selects various communication receivers, and obtains the signal strength value on the wireless channel sensed by each receiving unit in real time. Simultaneously, the low level that occurs on the status line 26 can trigger the central coordinating processing unit 21 to enter the interrupt state, and after the central coordinating processor 21 enters the interrupt caused by this kind of situation, it can judge which path receiving unit causes the interrupt, and reads The complete data signal received by the receiving unit and the signal strength value of the current wireless channel are used as one of the basis for judging that the channel is busy next time.
当需要发射数据时,中央协调处理单元21通过判断当前时刻各信道的忙闲情况,选择一空闲信道,设定发射单元23工作在该空闲信道,并将需要发送的内容通过串行通信总线传输给发射单元23,立即发送。数据发射完毕,对应发射信道的接收单元n30收到发射单元23已发送的数据内容,并引起状态线26的低电平,触发中断,由中央协调处理单元21判断是否发射成功。When needing to transmit data, the central coordination processing unit 21 selects an idle channel by judging the busyness and idleness of each channel at the current moment, sets the transmitting unit 23 to work in the idle channel, and transmits the content to be sent through the serial communication bus To the transmitting unit 23, send immediately. After the data transmission is completed, the receiving unit n30 corresponding to the transmission channel receives the data content sent by the transmitting unit 23, and causes the low level of the status line 26 to trigger an interrupt, and the central coordination processing unit 21 judges whether the transmission is successful.
图4为本发明的多信道的实时通信方法的一个实施例的流程图。如图4 所示:FIG. 4 is a flowchart of an embodiment of the multi-channel real-time communication method of the present invention. As shown in Figure 4:
步骤301,多个接收单元在设定的无线信道上接收数据。In step 301, multiple receiving units receive data on a set wireless channel.
步骤302,实时获取多个接收单元接收的数据;当需要发射数据时,根据当前各无线信道的状态指定发送单元使用的空闲无线信道,并将在此空闲无线信道上需要发送的数据传输给发送单元。Step 302, obtain the data received by multiple receiving units in real time; when the data needs to be transmitted, specify the idle wireless channel used by the transmitting unit according to the current status of each wireless channel, and transmit the data to be sent on this idle wireless channel to the transmitting unit unit.
步骤303,发送单元在指定的无线信道上发送数据。Step 303, the sending unit sends data on the designated wireless channel.
接收单元按地址统一编排,通过地址号相区分。多个接收单元所设定的无线信道都不相同,每个接收单元都监听对应的无线信道,实时获取无线信道的接收信号强度指示RSSI值,并发送到数据端口;循环选通接收单元,通过数据总线获取RSSI值。The receiving units are uniformly arranged according to the address and distinguished by the address number. The wireless channels set by multiple receiving units are different, each receiving unit monitors the corresponding wireless channel, obtains the RSSI value of the received signal strength indicator of the wireless channel in real time, and sends it to the data port; the receiving unit is cyclically selected, through The data bus gets the RSSI value.
图5为本发明的多信道的实时通信方法的一个实施例的接收数据的工作流程图;如图5所示:Fig. 5 is the working flow diagram of receiving data of an embodiment of the multi-channel real-time communication method of the present invention; As shown in Fig. 5:
步骤401,设置接收单元的无线通信电路为接收装置。Step 401, setting the wireless communication circuit of the receiving unit as the receiving device.
步骤402,实时获取无线信道的接收信号强度指示RSSI值,并发送到数据端口。Step 402, acquire the received signal strength indicator RSSI value of the wireless channel in real time, and send it to the data port.
步骤403,判断是否收到数据包,如果是则进入步骤404,如果否,返回步骤402。Step 403, judge whether the data packet is received, if yes, go to step 404, if not, go back to step 402.
步骤404,设置状态线数值为M。Step 404, set the value of the status line to M.
步骤405,当接收到数据包时,接收单元获取当前无线信道的RSSI值,并通过状态线发送触发信号,将数据包的M字节和当前无线信道的RSSI值发送到数据端口;触发信号包括:低电平信号等。Step 405, when receiving the data packet, the receiving unit obtains the RSSI value of the current wireless channel, and sends a trigger signal through the status line, and sends the M byte of the data packet and the RSSI value of the current wireless channel to the data port; the trigger signal includes : Low level signal, etc.
步骤406、407、408,将接收的数据包传输完毕。In steps 406, 407, 408, the received data packets are transmitted.
当接收到触发信号时,确定触发信号对应的接收单元,通过数据总线从此接收单元获取数据包和当前无线信道的RSSI值。When the trigger signal is received, the receiving unit corresponding to the trigger signal is determined, and the data packet and the RSSI value of the current wireless channel are obtained from the receiving unit through the data bus.
图6为本发明的多信道的实时通信方法的一个实施例的对接收数据进行处理的工作流程图,如图6所示:Fig. 6 is the working flowchart of processing the received data of an embodiment of the multi-channel real-time communication method of the present invention, as shown in Fig. 6:
步骤501,状态线上出现的低电平能触发进入中断1状态。In step 501, the low level on the status line can trigger the interrupt 1 state.
步骤502,进入由该种情况引发的中断后,判断哪路接收单元引起的中断。Step 502, after entering the interruption caused by this situation, determine which receiving unit caused the interruption.
步骤503、504、505,选通该接收机;读取状态总线和数据总线,从接收单元上接收到的完整的数据信号和当前无线信道的信号强度值并存储,作为下次判断信道忙的依据之一。Steps 503, 504, 505, select the receiver; read the status bus and the data bus, and store the complete data signal received from the receiving unit and the signal strength value of the current wireless channel as the next time to judge that the channel is busy One of the basis.
步骤506,更新无线信道的RSSI阈值。Step 506, update the RSSI threshold of the wireless channel.
图7为本发明的多信道的实时通信方法的一个实施例的检验发送数据的工作流程图;如图7所示:Fig. 7 is the working flow diagram of the check sending data of an embodiment of the multi-channel real-time communication method of the present invention; As shown in Fig. 7:
步骤601,需要进行发送数据,进入中断2状态。In step 601, it is necessary to send data and enter the interrupt 2 state.
步骤602,603,根据获取的RSSI值判断无线信道是否处于空闲或忙碌状态;当发送数据时,选取空闲的无线信道、并设定发送单元工作在此空闲的无线信道,将需要发送的数据通过串行通信总线传输给发送单元。Steps 602 and 603, judge whether the wireless channel is idle or busy according to the obtained RSSI value; when sending data, select an idle wireless channel, and set the sending unit to work on this idle wireless channel, and pass the data to be sent through The serial communication bus transmits to the sending unit.
步骤604,发送数据。Step 604, send data.
步骤605,在数据被发送单元通过空闲的信道发送后,工作在与空闲的信道相同的无线信道的接收单元接收到此被发送的数据。中央协调处理单元判断接收单元接收到的被发送的数据是否与原始发送的数据相同,如果是,则判断发送数据成功。Step 605, after the data is sent by the sending unit through the idle channel, the receiving unit working on the same wireless channel as the idle channel receives the sent data. The central coordination processing unit judges whether the sent data received by the receiving unit is the same as the original sent data, and if so, judges that the data sending is successful.
上述实施例提供的无线多信道通信装置及多信道的实时通信方法,多个接收单元可以同时接收不同无线信道上的数据,并在发送数据时实时选择合适信道进行数据的发送,实现可靠的无线通信。能同时监测多个信道状况,根据有效接收和连续采样获得准确的信道忙闲区分阈值,并且可通过接收自身发射的数据包判断是否产生碰撞或失真,具有极高的实时性,能够避免因信道冲突造成的通信延迟。In the wireless multi-channel communication device and multi-channel real-time communication method provided by the above-mentioned embodiments, multiple receiving units can simultaneously receive data on different wireless channels, and select an appropriate channel for data transmission in real time when sending data, so as to realize reliable wireless communication. communication. It can monitor multiple channel conditions at the same time, obtain accurate channel busy-idle thresholds based on effective reception and continuous sampling, and can judge whether collisions or distortions occur by receiving data packets transmitted by itself. Communication delays caused by collisions.
所属领域的普通技术人员应当理解:以上所述仅为本发明的具体实施例而已,并不用于限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。Those of ordinary skill in the art should understand that: the above descriptions are only specific embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present invention etc., should be included within the protection scope of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510075436.1A CN104735715B (en) | 2015-02-12 | 2015-02-12 | Wireless Multi-Channel communication device and multi channel real-time communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510075436.1A CN104735715B (en) | 2015-02-12 | 2015-02-12 | Wireless Multi-Channel communication device and multi channel real-time communication method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104735715A CN104735715A (en) | 2015-06-24 |
CN104735715B true CN104735715B (en) | 2018-08-03 |
Family
ID=53459052
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510075436.1A Expired - Fee Related CN104735715B (en) | 2015-02-12 | 2015-02-12 | Wireless Multi-Channel communication device and multi channel real-time communication method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104735715B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106391481B (en) * | 2016-08-31 | 2019-07-12 | 上海万琛电子商务有限公司 | A kind of detection collision method |
CN111653078B (en) * | 2020-05-28 | 2024-02-06 | 北京萨达智能技术有限公司 | Tower crane anti-collision data receiving and transmitting device and method based on wireless data transmission |
CN117771460B (en) * | 2024-02-27 | 2024-05-03 | 中国人民解放军东部战区总医院 | Remote monitoring method and system for portable hemodialysis equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101123608A (en) * | 2007-09-10 | 2008-02-13 | 北京航空航天大学 | Wireless network card with adjustable full-band full-duplex transmission power and its implementation method |
CN101809890A (en) * | 2007-09-25 | 2010-08-18 | 京瓷株式会社 | Radio communication device and radio communication method |
CN102118824A (en) * | 2011-01-14 | 2011-07-06 | 利尔达科技有限公司 | Radio communication anti-collision method based on received signal strength indicator (RSSI) |
CN103209431A (en) * | 2012-01-11 | 2013-07-17 | 中国科学院沈阳自动化研究所 | Wireless multi-channel data transceiver |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4348843B2 (en) * | 2000-07-19 | 2009-10-21 | ソニー株式会社 | Diversity antenna device |
US9819080B2 (en) * | 2012-05-21 | 2017-11-14 | Qualcomm Incorporated | Methods and systems for antenna switching based on uplink metrics |
-
2015
- 2015-02-12 CN CN201510075436.1A patent/CN104735715B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101123608A (en) * | 2007-09-10 | 2008-02-13 | 北京航空航天大学 | Wireless network card with adjustable full-band full-duplex transmission power and its implementation method |
CN101809890A (en) * | 2007-09-25 | 2010-08-18 | 京瓷株式会社 | Radio communication device and radio communication method |
CN102118824A (en) * | 2011-01-14 | 2011-07-06 | 利尔达科技有限公司 | Radio communication anti-collision method based on received signal strength indicator (RSSI) |
CN103209431A (en) * | 2012-01-11 | 2013-07-17 | 中国科学院沈阳自动化研究所 | Wireless multi-channel data transceiver |
Non-Patent Citations (2)
Title |
---|
Approaching Reliable Realtime Communications A Novel system design and implementation for roadway safety oriented vehicular communications;K.Xing et.al;《INFOCOM,2013 Proceedings IEEE》;20130725;全文 * |
TechReport:Approaching Reliable Reatime Communications? A Systematic Design and Implementation for Roadway Satety Critical Vehicular Communications;K.Xing et.al;《http://staff/ustc.edu.cn/ kxing/Publications/TechReport/tianbo.pdf》;20121231;正文第III-V节 * |
Also Published As
Publication number | Publication date |
---|---|
CN104735715A (en) | 2015-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4152828A1 (en) | Method for establishing a relay bearer and communication apparatus | |
KR101816567B1 (en) | Method and apparatus of interference avoidance based on multi transmission and reception | |
CA2434642A1 (en) | Wireless communication networks for providing remote monitoring of devices | |
US9445455B2 (en) | Communication apparatus and communication method | |
CN104735715B (en) | Wireless Multi-Channel communication device and multi channel real-time communication method | |
CN103684580B (en) | The method of Remote Radio Unit and reporting links fault thereof, wireless communication system | |
US11723086B2 (en) | Human machine interface for mission critical wireless communication link nodes | |
CN107612577A (en) | A kind of channel selecting system, method and electronic equipment | |
CN112351448A (en) | WIFI function test method and system and electronic equipment | |
CN102624436A (en) | WLAN communication device and implementation method of WLAN | |
CN104980522A (en) | Vehicle-mounted data transmission apparatus and method | |
CN113141672B (en) | Link configuration method, device, system and storage medium in multi-link system | |
CN105164946A (en) | System and method for testing radio frequency multiple-input multiple-output data packet transceiver while forcing fewer data streams | |
CN108668372A (en) | A kind of uplink transmission method and device | |
CN106488478B (en) | Vehicle terminal, road side equipment and communication method thereof | |
WO2019118059A1 (en) | Method for delaying signal transmissions from a device under test (dut) by transmitting congestive communication channel signals | |
CN101873168A (en) | Method and device for transmitting service data | |
CN117459966A (en) | Dual-mode communication method, system and medium based on multiple channels and electronic equipment | |
FI3668256T3 (en) | Signaling transmission method and apparatus, base station, and terminal | |
CN116647829A (en) | Communication link configuration method, device, equipment, system and storage medium | |
KR100568135B1 (en) | Communication method of CSM / CR | |
CN113133044A (en) | Site, access point and method for measuring interference | |
US20240397495A1 (en) | Method for controlling a wireless communication circuit and wireless communication circuit | |
CN104539388A (en) | Data transmission method, data receiving method, data transmission device and data receiving device | |
CN220067419U (en) | Wireless communication circuit |
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: 20180803 |