CN106603112B - Method for wireless multi-machine communication and device for implementing the method - Google Patents

Method for wireless multi-machine communication and device for implementing the method Download PDF

Info

Publication number
CN106603112B
CN106603112B CN201611000423.9A CN201611000423A CN106603112B CN 106603112 B CN106603112 B CN 106603112B CN 201611000423 A CN201611000423 A CN 201611000423A CN 106603112 B CN106603112 B CN 106603112B
Authority
CN
China
Prior art keywords
address
data
receivers
transmitter
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
CN201611000423.9A
Other languages
Chinese (zh)
Other versions
CN106603112A (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.)
Shanghai Zhengda Electrical Appliance Group Co., Ltd.
Original Assignee
Shanghai Zhenda Complete Sets Of Electrical 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 Shanghai Zhenda Complete Sets Of Electrical Co ltd filed Critical Shanghai Zhenda Complete Sets Of Electrical Co ltd
Priority to CN201611000423.9A priority Critical patent/CN106603112B/en
Publication of CN106603112A publication Critical patent/CN106603112A/en
Application granted granted Critical
Publication of CN106603112B publication Critical patent/CN106603112B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention relates to a method for wireless multi-machine communication and a device for realizing the method, which can improve the communication efficiency. The method includes the steps of a main transmitter performing a wireless transmission command; collecting voltage, current, temperature, humidity and GPIO data in a data buffer area by a plurality of receivers; the method also comprises the step that the transmitter loads the address of the receiver to be communicated; after receiving the sending command information of the transmitter, the receivers judge whether the channel and the address are the same, and if the channel and the address are the same, the receivers execute the data in the packed buffer area for communication; if not, continuing to carry out the step of data acquisition; the receivers with the same address execute the step of wirelessly transmitting the command. Because only two devices of main sending and main receiving are in communication each time, and other devices in receiving state do not respond to the receiving command because of different addresses, the receiver is prevented from repeatedly responding to the receiving command, the communication efficiency is ensured, and the reliability and the high efficiency are achieved.

Description

Method for wireless multi-machine communication and device for implementing the method
Technical Field
The invention relates to a method for wireless multi-machine communication and a device for realizing the method.
Background
2.4G is an open ISM frequency band, and many wireless devices such as WIFI, a wireless mouse, a remote control toy and the like communicate on the frequency band, but for reliable communication, a transmitter and a receiver must be in the same frequency band and the same communication address, and the basis of wireless communication is the same communication frequency band and the same communication address.
When a pair of multiple devices communicate wirelessly, the existing method is based on the fact that the devices operate on the same frequency channel and the same address, and since the devices are not in a transmitting state but in a receiving state, any data command transmitted from a transmitter is responded by other receivers in the receiving state, and then the receivers determine whether to continue the process through the data command. If the transmitter continuously transmits data, the receivers in the receiving state are always in the receiving response state, and other things cannot be done, so that the working efficiency of the receivers is greatly reduced. This is a disadvantage of the existing one-to-many device wireless communication methods.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method for wireless multi-machine communication and a device for realizing the method, which can improve the communication efficiency.
The invention relates to a wireless multi-machine communication method, which comprises the following steps:
a step in which the main transmitter executes a wireless transmission command;
collecting voltage, current, temperature, humidity and GPIO data in a data buffer area by a plurality of receivers;
the method is characterized by further comprising the following steps:
the transmitter loads the address of the receiver to be communicated;
after receiving the sending command information of the transmitter, the receivers judge whether the channel and the address are the same, and if the channel and the address are the same, the receivers execute the data in the packed buffer area for communication; if not, continuing to acquire data;
the receivers having the same address execute the wireless transmission command.
The device for realizing wireless multi-machine communication comprises a main transmitter and a plurality of receivers; the transmitter includes:
means for executing a wireless transmit command; the plurality of receivers includes:
a device for collecting voltage, current, temperature, humidity and GPIO data in the data buffer area;
the method is characterized in that: the transmitter also comprises a device for loading the address of the receiver to be communicated;
the plurality of receivers further comprises: after receiving the sending command information of the transmitter, judging whether the channel and the address are the same, if so, executing the data of the packed buffer area for communication; if not, continuing to acquire data;
the device is positioned on a receiver to be communicated and used for executing the wireless transmission command;
the address of the receiver to be communicated is 5 byte address.
As the transmitter loads the address of the receiver to be sought; after receiving the transmission command information of the transmitter, the receiver judges whether the channel and the address are the same, if the channel and the address are the same, the packed buffer data is executed for communication, and if the channel and the address are not the same, the data acquisition is continued, so that only two devices are mainly transmitted and mainly received in each communication, and other devices in a receiving state do not respond to the receiving command because the addresses are different, thereby avoiding the receiver from repeatedly responding to the receiving command, ensuring the communication efficiency and achieving the reliable and high efficiency.
Drawings
Fig. 1 is a flow chart of the operation of the transmitter of the present invention.
Fig. 2 is a flow chart of the operation of the receiver of the present invention.
Detailed Description
The present invention will now be described in further detail with reference to the accompanying drawings and examples.
In order to better adapt to multiple devices, multiple frequency points can be divided in the ISM section, so that each device works in different frequency channels, and interference can be avoided; even if the communication device works in the same frequency channel, one communication address is different, so that the communication between the devices cannot be mistaken. If frequency hopping is adopted in one-to-many mode, namely, each receiver has one frequency point, the frequency band of the ISM band is not too many, and the data rate 2M is one frequency point, so that 128 frequency channels are obtained. This is not preferable because if the number of devices to communicate is greater than 128, there is a phenomenon that the frequency points overlap. Only one communication address can be made available.
The method of the present invention is illustrated by taking NRF24LE1 chip as an example, NRF24LE1 operates in ISM band, wherein the communication channel is divided into 128 channels at data 2M rate, the communication address is 3-5 bytes, and the present document takes 5 byte address as an example (5 bytes can be any 5 symbols on the keyboard). For example, setting the address of the first device to 0, 0 after { a, B, C, 0, 0} is a number, the next 2 bytes can be made variable, the next 2 bytes of each address are different, so there can be 0-65535 devices, if it is not enough to change the address by 3 bytes.
The address of each device is unique, so that the host address is set as the address of the device to be found when the device is found in the communication (the sender and the receiver must have the same address, or else cannot receive a response signal, i.e. do not know whether the communication is successful or not), and the host address is set as the original local address or the address of the receiver to be communicated next after the communication is successful. Therefore, only two devices of main sending and main receiving are used for each communication because the communication addresses are different, and other devices in the receiving state do not respond to the receiving command because the addresses are different, so that the communication efficiency is ensured. Therefore, the receiver is prevented from repeatedly responding to the receiving command, and the reliability and the high efficiency are achieved.
In particular, reference is made to fig. 1, which is a flow chart of the operation of the transmitter of the present invention. The method comprises the following steps:
step A1, setting the address of the receiver;
step A2, executing wireless transmission command;
step A3, waiting for the receiver to answer the data within a specified time; if the response data is correct, returning to step a4, if timeout or data error occurs, returning to step 2 until the number of retransmissions is greater than the specified value;
step a4, load the next device address, go back to step 1 until the receiver address is used up.
Referring to fig. 2, it is a flow chart of the operation of the receiving and transmitting machine of the present invention. The method comprises the following steps:
step B1, waiting for the transmitter to send a command, and performing data acquisition, including voltage acquisition, current acquisition, temperature acquisition, humidity acquisition and GPIO acquisition; after receiving the sending command information of the transmitter, judging whether the channel addresses are the same, if so, executing the data of the packing buffer area, and if not, continuing to acquire the data;
step B2, execute the wireless transmission command, and then go back to step B1.
Although the present invention has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (3)

1. A method of wireless multi-machine communication, comprising:
a step in which the main transmitter executes a wireless transmission command;
collecting voltage, current, temperature, humidity and GPIO data in a data buffer area by a plurality of receivers;
the method is characterized by further comprising the following steps:
the transmitter loads the address of a receiver to be communicated, wherein the address of the receiver to be communicated is a 5-byte address, 2 bytes behind the address are variable, and different and unique communication addresses are formed among all devices by changing bytes of the device address under the same frequency channel;
under the same equipment address, a transmitter waits for the data of a receiver in a specified time and specified sending times, and after receiving sending command information of the transmitter, the receivers judge whether a channel and an address are the same or not, and if so, the receivers execute the data of a packed buffer area for communication; if not, continuing to acquire data;
the receivers having the same address execute the wireless transmission command.
2. A device for realizing wireless multi-machine communication comprises a main transmitter and a plurality of receivers; the transmitter includes:
means for executing a wireless transmit command; the plurality of receivers includes:
a device for collecting voltage, current, temperature, humidity and GPIO data in the data buffer area;
the method is characterized in that: the transmitter also comprises a device for loading the address of the receiver to be communicated;
the plurality of receivers further comprises: after receiving the sending command information of the transmitter, judging whether the channel and the address are the same, if so, executing the data of the packed buffer area for communication; if not, continuing to acquire data;
also included is a means for executing the wireless transmit command at the receiver to be communicated.
3. The apparatus for implementing wireless multi-machine communication as claimed in claim 2, wherein: the address of the receiver to be communicated is 5 byte address.
CN201611000423.9A 2016-11-14 2016-11-14 Method for wireless multi-machine communication and device for implementing the method Active CN106603112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611000423.9A CN106603112B (en) 2016-11-14 2016-11-14 Method for wireless multi-machine communication and device for implementing the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611000423.9A CN106603112B (en) 2016-11-14 2016-11-14 Method for wireless multi-machine communication and device for implementing the method

Publications (2)

Publication Number Publication Date
CN106603112A CN106603112A (en) 2017-04-26
CN106603112B true CN106603112B (en) 2021-03-23

Family

ID=58591288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611000423.9A Active CN106603112B (en) 2016-11-14 2016-11-14 Method for wireless multi-machine communication and device for implementing the method

Country Status (1)

Country Link
CN (1) CN106603112B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006197248A (en) * 2005-01-13 2006-07-27 Sony Corp Radio communication system, data transmitting device, and radio communication method
CN102055611B (en) * 2010-12-02 2013-04-17 电子科技大学 Low-power wireless data acquisition system
CN102665292B (en) * 2012-04-17 2014-10-22 南京拓诺传感网络科技有限公司 Sensor node device for wireless sensor network and operation method of sensor node device
CN204856862U (en) * 2015-07-10 2015-12-09 江西飞尚科技有限公司 Wireless monitoring devices based on GSM SMS

Also Published As

Publication number Publication date
CN106603112A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
US9332559B2 (en) Method and channel selector for selecting an operation channel, and wireless network connecting apparatus including the channel selector
WO2020024756A1 (en) Communication method and apparatus
CN102714890A (en) Method and apparatus for providing machine-to-machine communication in a wireless network
CN113114430B (en) Method for determining receiving state of data frame and communication device
WO2021068209A1 (en) Methods for sending and receiving data, apparatus, terminal, and storage medium
CN112868200A (en) Apparatus for transmission of control messages for a forwarding interface
CN111132377B (en) Data transmission method and system for terminal and earphone
KR20190103179A (en) Method for transmitting RLC layer status report control PDUs and related devices
CN105100000B (en) Interface conversion device and network system
CN105530076A (en) Data packet dropout retransmission optimizing method
CN107484214B (en) Internet of things access point frequency point selection method and device
WO2016172818A1 (en) Response message transmission method and network device
CN106603112B (en) Method for wireless multi-machine communication and device for implementing the method
CN105162553A (en) Signaling indication method and system of transmission block type
CN105207752A (en) Signal transmitting and detecting method and device
CN107579804B (en) Method and system for filtering repeated data
CN105263153A (en) Method of intelligent detection on communication link quality of wireless module
CN105262815B (en) Radio transmitting method and system based on radio frequency
US10887746B2 (en) Method, apparatus and system of configuring wireless network node
CN106487493A (en) Full duplex receiving terminal network equipment and its full-duplex data transmission method
CN107770246B (en) Internet of things control method and device based on Bluetooth and power line carrier
KR20210123636A (en) Electronic device for changing radio frequency based on identifying of hidden interference and operating method thereof
CN103517242B (en) Radio frequency switching device and RF communication system
WO2019096074A1 (en) Communication method and device
CN113904929B (en) Function configuration method for telemetry signal transmitter

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20181224

Address after: Room 503, Building 19, 60 Huihui Road, Minhang District, Shanghai 200000

Applicant after: Shanghai Zhengda Electrical Appliance Group Co., Ltd.

Address before: Room WA1025, 1st floor, 1755 Hongmei South Road, Minhang District, Shanghai, 200237

Applicant before: Meaning (Shanghai) Electric Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant