CN117319946A - Wireless communication method, system, device and storage medium - Google Patents

Wireless communication method, system, device and storage medium Download PDF

Info

Publication number
CN117319946A
CN117319946A CN202311106527.8A CN202311106527A CN117319946A CN 117319946 A CN117319946 A CN 117319946A CN 202311106527 A CN202311106527 A CN 202311106527A CN 117319946 A CN117319946 A CN 117319946A
Authority
CN
China
Prior art keywords
data
equipment
wireless communication
target instruction
returns
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311106527.8A
Other languages
Chinese (zh)
Other versions
CN117319946B (en
Inventor
刘文军
贺幸
罗辉辉
江纬
张望
叶立平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Akusense Technology Co Ltd
Original Assignee
Shenzhen Akusense Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Akusense Technology Co Ltd filed Critical Shenzhen Akusense Technology Co Ltd
Priority to CN202311106527.8A priority Critical patent/CN117319946B/en
Priority claimed from CN202311106527.8A external-priority patent/CN117319946B/en
Publication of CN117319946A publication Critical patent/CN117319946A/en
Application granted granted Critical
Publication of CN117319946B publication Critical patent/CN117319946B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a wireless communication method, a system, equipment and a storage medium, wherein the method comprises the following steps: the main equipment broadcasts and sends a target instruction to the first equipment according to a preset period, so that the first equipment returns first data according to the target instruction; the master device receives the first data, and broadcasts and sends the second data to a second device, so that the second device returns corresponding third data according to the second data, and the second data is obtained according to the first data. According to the invention, the target instruction is sent to the first equipment and the second equipment in a broadcast mode instead of being respectively and independently sent to the first equipment and the second equipment, so that the time for sending the target instruction can be saved.

Description

Wireless communication method, system, device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a wireless communication method, system, device, and storage medium.
Background
At present, a traditional 485 communication mode and a wireless communication mode are generally used for collecting and displaying pressure signals of storage bins such as a mixing station, a cement station and the like, and the traditional 485 communication mode is generally one master mode and multiple slaves mode, and is connected through twisted pair wires to perform half duplex communication; the wireless communication mode saves the wiring of 485 signal lines, adopts a master mode and a plurality of slave modes, and basically has the software protocol compatible with all 485 communication modes, and performs half-duplex communication by one question and one answer.
However, in an industrial control environment, on-site mechanical noise, electrical noise, wireless interference, absorption and reflection of radio waves by various metal cans and the like, in the environment, network blocking, network delay and network storm may be generated by wireless signals, so that the communication efficiency is far lower than 485 communication; in addition, the bin of the mixing plant has an idle period and is not fully operated, thereby resulting in lower communication efficiency of the mixing bin.
Disclosure of Invention
The invention provides a wireless communication method, a system, equipment and a storage medium, and mainly aims to improve the working efficiency of a target feeding system.
In a first aspect, an embodiment of the present invention provides a wireless communication method, which is applied to a target feeding system, where the target feeding system includes a master device and a plurality of slave devices, where the slave devices include a first device and a second device, and the method includes:
the main equipment broadcasts and sends a target instruction to the first equipment according to a preset period, so that the first equipment returns first data according to the target instruction;
the master device receives the first data, and broadcasts and sends the second data to a second device, so that the second device returns corresponding third data according to the second data, and the second data is obtained according to the first data.
Further, the target feeding system further comprises a plurality of bins, each slave device monitors one bin respectively, and the second data broadcast is sent to the second device, and the target feeding system further comprises:
and the main equipment receives the first data returned in the current period of the first equipment, compares the first data returned in the current period of the first equipment with the first data returned in the previous period, and judges that the bin corresponding to the first equipment is in a working state if the first data and the first data are unequal.
Further, the broadcasting the second data to a second device includes:
and the master device broadcasts and transmits the second data to second devices corresponding to the storage bins in the working state.
Further, the first device returns first data according to the target instruction, including:
the first equipment determines a first return sequence according to the address size;
and the first equipment returns the first data according to the first return sequence in turn according to the target instruction.
Further, the first device returns the first data according to the first return sequence in turn according to the target instruction, including:
acquiring the position of the first equipment in the first return sequence, and acquiring the waiting time corresponding to the first equipment according to the position and the preset interval time;
and sending the first data according to the waiting time.
Further, the preset period is determined according to the number of the bins and the idle condition of the bins.
Further, the second device returns corresponding third data according to the second data, including:
the second equipment determines a second return sequence according to the address size;
and the second equipment returns the third data according to the second return sequence in turn according to the second data.
In a second aspect, an embodiment of the present invention provides a wireless communication system, which is applied to a target feeding system, where the target feeding system includes a master device and a plurality of slave devices, where the slave devices include a first device and a second device, and includes:
the first module is used for broadcasting and sending a target instruction to the first equipment by the main equipment according to a preset period so that the first equipment returns first data according to the target instruction;
and the second module is used for receiving the first data by the main equipment, broadcasting and sending the second data to the second equipment so that the second equipment returns corresponding third data according to the second data, and the second data is obtained according to the first data.
In a third aspect, an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the above wireless communication method when the processor executes the computer program.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium storing a computer program which, when executed by a processor, implements the steps of the above-described wireless communication method.
The invention provides a wireless communication method, a system, equipment and a storage medium, wherein the method is applied to a target feeding system, and when a main equipment sends a target instruction to first equipment, the target instruction is sent to each first equipment in a broadcasting mode instead of being respectively and independently sent to each first equipment; also, when the second data is transmitted to the second devices, the target instruction is transmitted to each second device by broadcasting instead of being separately transmitted to each second device, so that the time for transmitting the second data can be saved.
Drawings
Fig. 1 is a flowchart of a wireless communication method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a wireless communication system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In order to better understand the solution of the present application, the following description will make clear and complete descriptions of the technical solution of the embodiment of the present application with reference to the accompanying drawings in the embodiment of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In the embodiment of the application, at least one refers to one or more; plural means two or more. In the description of the present application, the words "first," "second," "third," and the like are used solely for the purpose of distinguishing between descriptions and not necessarily for the purpose of indicating or implying a relative importance or order. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, the terms "comprising," "including," "having," and variations thereof herein mean "including but not limited to," unless expressly specified otherwise.
Fig. 1 is a flowchart of a wireless communication method provided by an embodiment of the present invention, where, as shown in fig. 1, the method is applied to a target feeding system, where the target feeding system includes a master device and a plurality of slave devices, and the slave devices include a first device and a second device, and includes:
the wireless communication method in the embodiment is applied to a target feeding system, the target feeding system comprises a master device and a plurality of slave devices, the master device and the slave devices can communicate with each other, and after the master device sends a related instruction to the slave devices, the slave devices return corresponding data according to the received instruction. In this embodiment, each slave device includes a first device and a second device, where the first device and the second device monitor different data in the same bin.
S110, the main equipment broadcasts and sends a target instruction to the first equipment according to a preset period, so that the first equipment returns first data according to the target instruction;
the main device broadcasts and sends the target instruction to the first devices according to a preset period, wherein the first devices can be all the first devices in the target feeding system or part of the first devices in the target feeding system, and the first devices can be determined according to actual conditions.
And after receiving the target instruction, the first device returns the first data to the main device according to the target instruction.
And S120, the main equipment receives the first data, and broadcasts and transmits the second data to second equipment, so that the second equipment returns corresponding third data according to the second data, and the second data is obtained according to the first data.
After receiving the first data returned by the first device, the master device obtains second data after transforming according to the first data, and then broadcasts and sends the second data to the second devices, where the second devices may be all second devices in the target feeding system or may be a part of second devices in the target feeding system, and specifically may be determined according to actual conditions. And the second equipment returns corresponding third data after receiving the second data, and the main equipment receives the corresponding third data.
The wireless communication method is applied to a target feeding system, and when a main device sends a target instruction to first devices, the target instruction is sent to each first device in a broadcasting mode instead of being respectively and independently sent to each first device; also, when the second data is transmitted to the second devices, the target instruction is transmitted to each second device by broadcasting instead of being separately transmitted to each second device, so that the time for transmitting the second data can be saved.
In some embodiments, the first device returns first data according to the target instruction, including:
the first equipment determines a first return sequence according to the address size;
and the first equipment returns the first data according to the first return sequence in turn according to the target instruction.
When the first device receives the target instruction and returns the first data to the main device, the first device returns the first data sequentially because the first device has a plurality of first devices and the main device can only receive one data at a time. Specifically, according to the addresses of the first equipment, arranging the addresses in a sequence from small to large to obtain a first return sequence; the first device then returns the first data to the target instruction in turn in the first return order.
As one embodiment, the first device returns the first data according to the target instruction in the first return order, including:
acquiring the position of the first equipment in the first return sequence, and acquiring the waiting time corresponding to the first equipment according to the position and the preset interval time;
and sending the first data according to the waiting time.
Specifically, in this embodiment, the position of the first device in the first return sequence is obtained first, then, according to the position and a preset time interval, the waiting time corresponding to the first device is obtained, and when the first data is returned, the first device waits for the waiting time and returns the first data.
For example, if the location of the first device in the first return sequence is 1, indicating that the first device is first, then the first device receives the target instruction and then, immediately Ma Fanhui the first data; if the position of the first device in the first return sequence is 3, it indicates that there are two devices before the first device that need to send the first data, and the first device needs to wait for the first two devices before sending the first data before the first device finishes sending the first data, so the waiting time of the first device is 2×a preset time interval.
It should be noted that, in this embodiment, the preset time interval is the time required for the first device to send to the master device, and may be specifically determined according to an actual situation, which is not specifically limited in this embodiment.
For example, in a production line of the target feeding system, the production line comprises 1 master device and 2 slave devices, wherein the 2 slave devices comprise a first device B1, a second device D1, a first device B2 and a second device D2, the first device B1 and the second device D1 are mainly used for monitoring related data of a bin number 1 (bin 1 for short), and the first device B2 and the second device D2 are mainly used for monitoring related data of a bin number 2 (bin 2 for short). The first equipment B1 mainly collects sensor pressure data of the No. 1 bin, the first equipment B2 mainly collects sensor pressure data of the No. 2 bin, the second equipment D1 is used for displaying weight data of the No. 1 bin, the second equipment D2 is used for displaying weight data of the No. 2 bin, addresses of the first equipment B1 and the first equipment B2 are respectively 1 and 2, therefore, the first return sequence is that of the first equipment B1, the first equipment B2, addresses of the second equipment D1 and the second equipment D2 are respectively 3 and 4, and the preset time interval is 1 second.
In the implementation process, the wireless communication method is as follows:
(1) The main equipment broadcasts and sends a query instruction of the pressure value to B1 and B2, namely the target instruction is the query instruction;
(2) B1 receives the target instruction, immediately responds, returns a pressure value 1 to the main equipment, and if the target instruction is not received by the B1, the main equipment exits after overtime for 1 second, wherein the pressure value 1 is the first data corresponding to the B1;
(3) After B2 and B1 receive the target instruction at the same time, after waiting for B1 to answer (after waiting for 1 second to answer), returning a pressure value 2 to the main equipment, wherein the pressure value 2 is the first data corresponding to B2;
(4) After receiving the pressure value 1 and the pressure value 2, the main equipment converts the pressure value 1 into a weight value 1, converts the pressure value 2 into a weight value 2, stores the weight value 1 and the weight value 2 in temporary data, and broadcasts and sends the temporary data to D1 and D2, wherein the temporary data is second data;
(5) D1, immediately replying after receiving the second data, returning the third data to the main equipment, and if D1 does not receive the second data, exiting after overtime for 1 second;
(6) D2 and D1 simultaneously receive the second data, wait for D1 to answer (wait for 1 second to answer), and send corresponding third data to the master device.
As can be seen from the above steps, taking this example as a reference, in the case where each transmission takes 1 second, the working period in the embodiment of the present invention is 6 seconds, and the period of the wireless communication method provided in the embodiment of the present invention is t=n+m, where n represents the total number of the first device and the second device, and m represents the type of the device included in the slave device, such as when the first device and the second device are included, the type is 2.
In the conventional wireless communication method, the communication process is as follows:
(1) The main equipment sends a query command of the pressure value to B1;
(2) B1, responding after receiving the inquiry command, and if not, exiting after overtime for 1 second;
(3) The main equipment sends a query command of the pressure value to B2;
(4) B2, responding after receiving the inquiry command, and if the inquiry command is not received, exiting after overtime for 1 second;
(5) The main equipment sends weight data to D1;
(6) D1, after receiving the weight data, responding, if not, and after overtime for 1 second, exiting;
(7) The main equipment sends weight data to D2;
(8) D2 receives the weight data and responds, if not, the user exits after timeout for 1 second.
As can be seen from the above steps, the conventional method takes 8 seconds for one period of operation, and the communication period of the conventional method is t=n×2,2 means that it takes 2 seconds to answer two steps one by one.
Comparing the wireless communication method and the traditional communication method provided by the embodiment of the invention, the more the number of slave devices is, namely, the larger n is, the higher the improved efficiency is, and the time can be reduced by half when the efficiency which is nearly doubled is improved; when n=20, the conventional method requires 20×2=40 seconds, and in the embodiment of the present invention, 20+2=22 seconds is required.
In some embodiments, the target feeding system further includes a plurality of bins, each slave device monitors one bin, and the broadcasting the second data to the second device further includes:
and the main equipment receives the first data returned in the current period of the first equipment, compares the first data returned in the current period of the first equipment with the first data returned in the previous period, and judges that the bin corresponding to the first equipment is in a working state if the first data and the first data are unequal.
Through data statistics analysis, each bin in the actual target feeding system does not work all the time, but a period of idle time is reserved in the middle of feeding or discharging, and feeding and discharging are not performed in the idle time, so that the efficiency of the wireless communication method can be further improved if the signal transmission of the period of time is reduced.
In the embodiment of the invention, as the main equipment sends the target instruction to the first equipment according to the preset period, for the current period, the main equipment receives the first data returned by the first equipment and compares the first data of the current period with the first data of the previous period, if the first data of the current period is not equal to the first data of the previous period, the storage bin corresponding to the first equipment is in a working state, namely the storage bin is subjected to feeding or discharging operation; if the first data of the current period is equal to the first data of the previous period, which indicates that the bin corresponding to the first device does not work in the period of time, the data of the corresponding second device cannot be changed, and the data does not need to be sent to the second device which does not change.
As an embodiment, the broadcasting the second data to the second device includes:
and the master device broadcasts and transmits the second data to second devices corresponding to the storage bins in the working state.
In the embodiment of the invention, the main equipment transmits the second data to the second equipment corresponding to the bin in the working state in a broadcasting way, and does not transmit the second data to all the second equipment, but only transmits the second data to the second equipment corresponding to the bin in the working state, so that invalid signal transmission can be reduced, and the communication efficiency is further improved.
Illustratively, the second device returns corresponding third data according to the second data, including:
the second equipment determines a second return sequence according to the address size;
and the second equipment returns the third data according to the second return sequence in turn according to the second data.
In the embodiment of the invention, the position of the second device in the second return sequence is obtained, then the waiting time corresponding to the second device is obtained according to the position and the preset time interval, and then when the third data is returned, the second device waits for the waiting time and returns the third data.
For example, if the second device's location in the second return sequence is 1, indicating that the first device is first, then the second device receives the second data and then, upon receipt, stands for Ma Fanhui third data; if the position of the second device in the second return sequence is 3, it indicates that there are two devices before the second device that need to send the third data, and the second device needs to wait for the first two devices to send the third data before the second device finishes sending the third data, so that the waiting time of the second device is 2×a preset time interval.
For example, in a production line of the target feeding system, the production line comprises 1 master device and 2 slave devices, wherein the 2 slave devices comprise a first device B1, a second device D1, a first device B2 and a second device D2, the first device B1 and the second device D1 are mainly used for monitoring related data of a bin number 1 (bin 1 for short), and the first device B2 and the second device D2 are mainly used for monitoring related data of a bin number 2 (bin 2 for short). The first equipment B1 mainly collects sensor pressure data of the No. 1 bin, the first equipment B2 mainly collects sensor pressure data of the No. 2 bin, the second equipment D1 is used for displaying weight data of the No. 1 bin, the second equipment D2 is used for displaying weight data of the No. 2 bin, addresses of the first equipment B1 and the first equipment B2 are 1 and 2 respectively, therefore, the first return sequence is that of the first equipment B1 and the first equipment B2, addresses of the second equipment D1 and the second equipment D2 are 3 and 4 respectively, and therefore, the second return sequence is that of the first equipment D1 and the first equipment D2, and the preset time interval is 1 second. The wireless communication method comprises the following steps:
(1) In the last period, the main equipment broadcasts and sends target instructions to B1 and B2 so as to inquire the pressure values of the blanking bin 1 and the blanking bin 2 in the last period;
(2) B1 responds immediately after receiving the target instruction because the address of B1 is 1, if not, the user exits after overtime for 1 second;
(3) B2 receives the target instruction almost simultaneously with B1, but waits 1 second (or waits for B1 to finish responding) and then responds to the pressure value because the address is 2;
(4) The main equipment calculates the pressure value of B1 and the pressure value of B2 into weight, stores the converted weight into temporary data, and broadcasts and sends the temporary data to D1 and D2;
(5) D1 is 1 in its own address, so D1 responds immediately after receiving, if not, it exits after timeout for 1 second;
(6) D2 receives almost simultaneously with the device D1, but waits 1 second (or waits for D1 to finish) because the address itself is 2, and then responds to the pressure value;
(7) In the current period, the main equipment broadcasts and sends target instructions to B1 and B2 so as to inquire the pressure values of the bin 1 and the bin 2 in the current period;
(8) B1 responds immediately after receiving because the address of B1 is 1, if not, the user exits after overtime for 1 second;
(9) B2 receives the target instruction almost simultaneously with B1, but waits 1 second (or waits for B1 to finish responding) and then responds to the pressure value because the address is 2;
(10) The main device calculates the pressure values of B1 and B2 into weights (completed in ms), the weight of B1 calculated by the main device is checked with the weight value temporarily stored last time, and according to the assumption that the No. 1 bin does not work, namely the weight is basically equal to the weight value last time, so that D1 does not need to update the weight and the data last time is kept, the weight of B2 calculated by the main device A is different from the weight temporarily stored last time, the main device A unicasts a command to the device D2, and the D2 is required to respond immediately.
(11) D2 receives the instant command and immediately responds to the pressure value.
As can be seen, in the case that the preset time interval is 1 second, the average period of the wireless communication method in the embodiment of the invention is 5.5 seconds.
In addition, when a single bin is calculated, and the single bin is 50% idle, a preset cycle calculation formula is: t= (2 x (n+2) -1)/2, n represents the number of slave devices, and when n=4, t=5.5 seconds. When a single bin is in an idle condition of 33.33%, the preset cycle calculation formula is: t= (3 (n+2) -1)/3, n represents the number of slave devices, when n=4, t=5.67 seconds.
When two bins are arranged, and under the condition that the two bins are 50% idle, the preset cycle calculation formula is as follows: t= (2 x (n+2) -2)/2, n represents the number of slave devices, and when n=4, t=5 seconds. When two bins are arranged and the two bins are 33.33% idle, the preset cycle calculation formula is as follows: t= (3 (n+2) -2)/3, n represents the number of slave devices, when n=4, t=5.33 seconds.
Therefore, as can be seen through comparison, in the embodiment of the invention, by comparing the first data of the current period with the first data of the previous period, and judging that the bin does not work under the condition that the first data and the first data are equal, when the main equipment sends the second data, the main equipment only sends the second data to the second equipment corresponding to the bin in the working state, so that the wireless communication efficiency can be improved.
Fig. 2 is a schematic structural diagram of a wireless communication system according to an embodiment of the present invention, as shown in fig. 2, where the wireless communication system is applied to a target feeding system, and the target feeding system includes a master device and a plurality of slave devices, and the slave devices include a first device and a second device, and include a first module 210 and a second module 220, where:
the first module 210 is configured to broadcast a target instruction to the first device by the master device according to a preset period, so that the first device returns first data according to the target instruction;
the second module 220 is configured to receive the first data by the master device, broadcast the second data to a second device, so that the second device returns corresponding third data according to the second data, where the second data is obtained according to the first data.
The embodiment is a system embodiment corresponding to the above method, and the specific implementation process is the same as that of the above method embodiment, and the details refer to the above method embodiment, and the system embodiment is not limited in particular.
The various modules in the wireless communication system described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Fig. 3 is a schematic structural diagram of a computer device, which may be a server, and an internal structure diagram of the computer device may be as shown in fig. 3, where the computer device includes a processor, a memory, a network interface, and a database connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a computer storage medium, an internal memory. The computer storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the computer storage media. The database of the computer device is used for storing data, such as target instructions, first data and second data, generated or acquired in the process of executing the wireless communication method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a wireless communication method.
In one embodiment, a computer device is provided that includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the wireless communication method of the above embodiments when the computer program is executed. In the alternative, the processor, when executing the computer program, performs the functions of the modules/units in this embodiment of the wireless communication system.
In one embodiment, a computer storage medium is provided, and a computer program is stored on the computer storage medium, where the computer program is executed by a processor to implement the steps of the wireless communication method in the above embodiment. Alternatively, the computer program, when executed by a processor, performs the functions of the modules/units in this embodiment of the wireless communication system described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (10)

1. The wireless communication method is applied to a target feeding system, the target feeding system comprises a master device and a plurality of slave devices, and the slave devices comprise a first device and a second device, and the wireless communication method is characterized by comprising the following steps:
the main equipment broadcasts and sends a target instruction to the first equipment according to a preset period, so that the first equipment returns first data according to the target instruction;
the master device receives the first data, and broadcasts and sends the second data to a second device, so that the second device returns corresponding third data according to the second data, and the second data is obtained according to the first data.
2. The method of claim 1, wherein the target loading system further comprises a plurality of bins, each slave device monitoring a respective one of the bins, the broadcasting the second data to the second device further comprising:
and the main equipment receives the first data returned in the current period of the first equipment, compares the first data returned in the current period of the first equipment with the first data returned in the previous period, and judges that the bin corresponding to the first equipment is in a working state if the first data and the first data are unequal.
3. The method of wireless communication of claim 2, wherein the broadcasting the second data to the second device comprises:
and the master device broadcasts and transmits the second data to second devices corresponding to the storage bins in the working state.
4. The method of claim 1, wherein the first device returning the first data according to the target instruction comprises:
the first equipment determines a first return sequence according to the address size;
and the first equipment returns the first data according to the first return sequence in turn according to the target instruction.
5. The method according to claim 4, wherein the first device returns the first data sequentially according to the target instruction in the first return order, comprising:
acquiring the position of the first equipment in the first return sequence, and acquiring the waiting time corresponding to the first equipment according to the position and the preset interval time;
and sending the first data according to the waiting time.
6. The wireless communication method according to any one of claims 1 to 5, wherein the preset period is determined according to the number of bins and the idle condition of the bins.
7. The method according to any one of claims 1 to 6, wherein the second device returns corresponding third data according to the second data, comprising:
the second equipment determines a second return sequence according to the address size;
and the second equipment returns the third data according to the second return sequence in turn according to the second data.
8. The utility model provides a wireless communication system is applied to target feeding system, target feeding system includes master device and a plurality of slave device, slave device includes first equipment and second equipment, characterized in that includes:
the first module is used for broadcasting and sending a target instruction to the first equipment by the main equipment according to a preset period so that the first equipment returns first data according to the target instruction;
and the second module is used for receiving the first data by the main equipment, broadcasting and sending the second data to the second equipment so that the second equipment returns corresponding third data according to the second data, and the second data is obtained according to the first data.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the wireless communication method according to any of claims 1 to 7 when the computer program is executed.
10. A computer storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the wireless communication method according to any one of claims 1 to 7.
CN202311106527.8A 2023-08-30 Wireless communication method, system, device and storage medium Active CN117319946B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311106527.8A CN117319946B (en) 2023-08-30 Wireless communication method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311106527.8A CN117319946B (en) 2023-08-30 Wireless communication method, system, device and storage medium

Publications (2)

Publication Number Publication Date
CN117319946A true CN117319946A (en) 2023-12-29
CN117319946B CN117319946B (en) 2024-07-05

Family

ID=

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111541771A (en) * 2020-04-24 2020-08-14 杭州慧田科技有限公司 Internet of things communication method, device and system and computer readable storage medium
WO2021244168A1 (en) * 2020-06-04 2021-12-09 深圳云天励飞技术股份有限公司 System on chip, data transmission method, and broadcast modules
CN114979974A (en) * 2022-04-13 2022-08-30 深圳市智岩科技有限公司 Wireless control method, device and equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111541771A (en) * 2020-04-24 2020-08-14 杭州慧田科技有限公司 Internet of things communication method, device and system and computer readable storage medium
WO2021244168A1 (en) * 2020-06-04 2021-12-09 深圳云天励飞技术股份有限公司 System on chip, data transmission method, and broadcast modules
CN114979974A (en) * 2022-04-13 2022-08-30 深圳市智岩科技有限公司 Wireless control method, device and equipment

Similar Documents

Publication Publication Date Title
CN101626581B (en) Method, device and system for scanning equipment in electrically adjustable antenna interface
CN107580085B (en) Networking method of Internet of things
CN113114430B (en) Method for determining receiving state of data frame and communication device
CN104010378A (en) Wireless local area network access method, access point and wireless local area network system
JP3414244B2 (en) Communication control method and transmission device
CN113838275B (en) Bluetooth batch pairing method, display device and readable storage medium
CN111586581A (en) Automatic matching method and device between wireless charging devices and storage medium
JP6661677B2 (en) Wireless communication system, control circuit and control method
CN112491675A (en) Data communication method, device, equipment and computer readable storage medium
CN117319946B (en) Wireless communication method, system, device and storage medium
CN115474107A (en) Intelligent electric energy meter communication method and device, equipment and storage medium
CN117319946A (en) Wireless communication method, system, device and storage medium
CN114422288A (en) Communication system based on Modbus protocol
CN112448845B (en) Internet of things network distribution method based on IGRS standard, intelligent terminal and storage medium
CN105657734A (en) Wireless intelligent roaming method, system and device
CN111405534A (en) Information transmission method, first terminal and computer storage medium
CN111417112A (en) Distributed OTA gateway networking and terminal access method and OTA upgrading system
CN115622834A (en) Bus communication control method, device, equipment and storage medium
CN115426393A (en) Method and device for realizing wireless control information interaction
US11638317B2 (en) Electronic apparatus and method
CN109981433B (en) RS485 active data transmission method of aperiodic bus arbitration mechanism
CN113645577A (en) Wireless communication method, device, equipment and readable storage medium
CN110430548B (en) Data reissue method, device, collector and storage medium
CN113543286A (en) Receiving chain opening state switching method and first multi-link equipment
CN114448799B (en) Remote upgrading method, device, main control board, household electrical appliance and storage medium

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
GR01 Patent grant