CN113259877A - Wireless ad hoc network advertisement synchronization method and system - Google Patents

Wireless ad hoc network advertisement synchronization method and system Download PDF

Info

Publication number
CN113259877A
CN113259877A CN202110750556.2A CN202110750556A CN113259877A CN 113259877 A CN113259877 A CN 113259877A CN 202110750556 A CN202110750556 A CN 202110750556A CN 113259877 A CN113259877 A CN 113259877A
Authority
CN
China
Prior art keywords
play
slave
node
playing
networking
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.)
Pending
Application number
CN202110750556.2A
Other languages
Chinese (zh)
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.)
Wuhan Weitai Technology Development Co ltd
Original Assignee
Wuhan Weitai Technology Development 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 Wuhan Weitai Technology Development Co ltd filed Critical Wuhan Weitai Technology Development Co ltd
Priority to CN202110750556.2A priority Critical patent/CN113259877A/en
Publication of CN113259877A publication Critical patent/CN113259877A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/20Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
    • H04W4/23Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel for mobile advertising
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Abstract

The embodiment of the invention provides a method and a system for synchronizing wireless ad hoc network advertisements, wherein a node data structure is established in a wireless ad hoc network mode, an unoccupied radio frequency channel in a radio frequency channel is selected as a working channel through a play host in the node data structure, so that all players transmit data in the working channel, the timeliness of the data is ensured, simultaneously, a play task is sent to all players or a designated player by the play host in a direct transmission or forwarding mode, the switching time of play materials is short, and the cost of system components is low. Compared with the prior art, the wireless ad hoc network advertisement synchronization scheme adopted by the invention has lower cost and better timeliness.

Description

Wireless ad hoc network advertisement synchronization method and system
Technical Field
The embodiment of the invention relates to the technical field of electronic communication and computer software, in particular to a method and a system for synchronizing advertisements of a wireless ad hoc network.
Background
With the continuous development and application of advertisement machine technology, the advertisement machine gradually moves into office buildings and communities, and the acquisition of advertisement information through the advertisement machine becomes an essential part of people's life. In actual needs, a plurality of advertisement machines which require playing can realize synchronous playing.
The method for realizing the synchronous playing of the multimedia advertising player in the market at present mainly comprises two types of hardware realization and software realization: 1) the hardware implementation is that the output signal of the playing box of the advertising player is divided into a plurality of display screens by hardware for display, namely a plurality of displays simultaneously display the signal output by one playing box, thereby achieving the synchronous effect, but the construction difficulty is large in certain scenes (such as office buildings) and the cost is high; 2) the software realizes the method adopted in the market at present: when one starts playing, the message is sent to other equipment immediately, the realization is simpler, but the flexibility is not good, and the mode easily introduces interference signals to cause the display effect of the display screen to be influenced. And the method for synchronously playing the advertisements by the advertisement player according to the time labels has the advantages that the synchronous playing depends on the local time of each advertisement player terminal, and the synchronous effect is not good due to the reasons of delay of received messages, inconsistent loading time, asynchronous local time and the like.
Disclosure of Invention
The embodiment of the invention provides a wireless ad hoc network advertisement synchronization method and system, and solves the problems that in the prior art, an advertisement machine carries out advertisement synchronization playing according to a time tag, the synchronization playing depends on the local time of each advertisement machine terminal, and the synchronization effect is not good due to the reasons of delay of received messages, inconsistent loading time, asynchronous local time and the like.
In a first aspect, an embodiment of the present invention provides a wireless ad hoc network advertisement synchronization method, including:
step S1, carrying out wireless networking of the player based on the node data structure in the networking command;
step S2, selecting unoccupied radio frequency channels in the selectable radio frequency channels as working channels based on a carrier monitoring method, so that all players in the node data structure work in the working channels;
and step S3, the play master in the node data structure receives the play task and sends the play task to the play slave in the node data structure in a broadcast mode.
Preferably, the step S1 specifically includes:
step S11, the playing master receives a networking instruction, the networking instruction carries slave node information, and the slave node information comprises the ID of the playing slave needing to join in the networking;
step S12, determining the IDs of all the playing slave machines, and judging whether the IDs of the playing slave machines exist in the node data structure; if yes, the process proceeds to step S13, and if not, the process proceeds to step S14;
step S13, judging whether the corresponding playing slave machine is in the working channel, if so, directly networking, and returning a networking success message to the playing master machine; if not, go to step S14;
step S14, sending a networking command corresponding to the playing slave machine under the public channel, if receiving the returned networking data corresponding to the playing slave machine, adding the information corresponding to the playing slave machine into the node data structure for networking, and returning a networking success message to the playing master machine; and if the networking request is sent for multiple times within the preset time and the networking data returned by the corresponding playing slave machine is not received, sending networking timeout information to the playing master machine.
Preferably, the method further comprises:
step S4, sending a play task to a designated target play slave machine, judging whether the ID of the target play slave machine is in a node data structure, if so, configuring the communication address of a play master machine as the receiving address of the target play slave machine, sending the play task to the target play slave machine, and receiving the data feedback of the target play slave machine; writing the state of the target playing slave machine into a node data structure;
and inquiring the playing state of any playing slave machine.
Preferably, in step S11, before the playback host receives the networking instruction, the method further includes:
constructing a node data structure based on the distance between the play host and each play slave by taking the play host as a master node and the play slave as slave nodes;
taking the main node as a primary node, and taking a slave node in the transmission range of the main node as a secondary node; taking the slave nodes which are out of the transmission range of the master node and are positioned in the range of the secondary nodes as tertiary nodes, and constructing a node data structure according to the rule; in the adjacent two levels of nodes, the slave nodes in the lower level nodes select the slave node closest to the upper level node as the forwarding node.
Preferably, in step S3, after the playback host in the node data structure receives the playback task, the method further includes:
and determining the task priority and the task timer of the playing task, and determining the playing time of the playing task based on the task priority and the task timer.
Preferably, the method further comprises the following steps:
and adding or deleting data of the playing slave.
In a second aspect, an embodiment of the present invention provides a wireless ad hoc network advertisement synchronization system, including:
the system comprises a play master machine and a plurality of play slave machines; the playing master machine and each playing slave machine are wirelessly networked;
the play host is used for selecting an unoccupied radio frequency channel in the selectable radio frequency channels as a working channel by a carrier monitoring method, and sending an instruction to enable each play slave to work in the working channel;
the play slave is used for receiving the play task of the play master and carrying out synchronous play.
Preferably, the playing host and the playing slave comprise a data transceiver module, a radio frequency module and a temperature and humidity sensor;
the data transceiver module is used for interacting with the uplink player data;
the radio frequency module is used for performing radio frequency data interaction, radio frequency networking and node management;
the temperature and humidity sensor is used for detecting the temperature and humidity of the corresponding player.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the wireless ad hoc network advertisement synchronization method according to the embodiment of the first aspect of the present invention.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the wireless ad hoc network advertisement synchronization method according to an embodiment of the first aspect of the present invention.
According to the method and the system for synchronizing the wireless ad hoc network advertisements, a node data structure is established in a wireless ad hoc network mode, an unoccupied radio frequency channel in the radio frequency channel is selected as a working channel through a play host in the node data structure, so that all players transmit data in the working channel, the timeliness of the data is guaranteed, meanwhile, a play task is sent to all players or designated players by the play host in a direct transmission or forwarding mode, the switching time of play materials is short, and the cost of system components is low.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flow chart of a wireless ad hoc network advertisement synchronization method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an ad hoc network structure provided in an embodiment of the present invention;
fig. 3 is a schematic flow chart of an ad hoc network according to an embodiment of the present invention;
fig. 4 is a flowchart of processing uplink data of an Android player according to an embodiment of the present invention;
fig. 5 is a flowchart of a carrier sense discretionary channel provided in an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating ad hoc network instruction forwarding according to an embodiment of the present invention;
fig. 7 is a flow chart of radio frequency data synchronization provided by the embodiment of the present invention;
fig. 8 is a flowchart illustrating fixed-point transmission of rf data according to an embodiment of the present invention;
FIG. 9 is a flow chart of status query provided by an embodiment of the present invention;
fig. 10 is a program architecture diagram of a play master and a play slave according to an embodiment of the present invention;
fig. 11 is a task interaction state diagram of a wireless ad hoc network advertisement synchronization system according to an embodiment of the present invention;
fig. 12 is a flowchart illustrating a task of radio frequency networking performed by the system according to the embodiment of the present invention;
fig. 13 is a flowchart illustrating an rf data processing task performed by the system according to an embodiment of the present invention;
fig. 14 is a task flow of uplink data of the system and the Android player according to the embodiment of the present invention;
fig. 15 is a flowchart of a node state processing task performed by the system according to the embodiment of the present invention;
fig. 16 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The following description and description will proceed with reference being made to various embodiments.
Fig. 1 provides a method for synchronizing ad hoc network advertisements, according to an embodiment of the present invention, including:
step S1, carrying out wireless networking of the player based on the node data structure in the networking command;
specifically, as shown in fig. 2, during the synchronous advertisement playing, at least one player is required to be used as a playing master machine to issue and switch playing tasks, and the rest are used as playing slave machines; in the present embodiment, as one of the embodiments, 1 play master and a plurality of play slaves are provided, as shown in fig. 3; step S1 specifically includes:
step S11, the playing master receives a networking instruction, the networking instruction carries slave node information, and the slave node information comprises the ID of the playing slave needing to join in the networking;
before the play host receives the networking instruction, the method further comprises the following steps of configuring the node type and the node ID:
constructing a node data structure based on the distance between the play host and each play slave by taking the play host as a master node and the play slave as slave nodes;
taking the main node as a primary node, and taking a slave node in the transmission range of the main node as a secondary node; taking the slave nodes which are out of the transmission range of the master node and are positioned in the range of the secondary nodes as tertiary nodes, and constructing a node data structure according to the rule; in the adjacent two-level nodes, the slave node closest to the upper node in the lower node is selected as a forwarding node;
as shown in fig. 4, in this embodiment, after an Uplink instruction is issued, a command word is determined based on an ID, where the networking command word is used to execute a networking process, the synchronization command word is used to execute a state synchronization process, the state query command word is used to query a slave node state, and the node configuration command word is used to configure a node state, such as a root state.
As shown in fig. 5, the slave nodes below the master node are configured, and addition of slave nodes cannot be controlled due to distance; based on the characteristics of the node data structure, the adjacent slave nodes can be set as routing forwarding nodes, and the nodes perform data forwarding; after receiving the data, the routing node forwards the data. The master node can receive data from the remote slave nodes and the master node can also receive data from the remote nodes.
Step S12, determining the IDs of all the playing slave machines, and judging whether the IDs of the playing slave machines exist in the node data structure; if yes, the process proceeds to step S13, and if not, the process proceeds to step S14;
step S13, judging whether the corresponding playing slave machine is in the working channel, if so, directly networking, and returning a networking success message to the playing master machine; if not, the step S14 is executed, and the timeout record of the slave is cleared;
step S14, sending a networking command corresponding to the playing slave machine under the public channel, if receiving the returned networking data corresponding to the playing slave machine, adding the information corresponding to the playing slave machine into a node data structure, networking, starting the state polling and state detection of the slave node, and returning a networking success message to the playing master machine; if the networking request is sent for multiple times within the preset time and the networking data returned by the corresponding playing slave machine is not received, sending networking timeout information to the playing master machine; the playing slave machine is subjected to overtime detection, the networking request of the playing slave machine is issued again after the playing slave machine is overtime for a period of time, and if the playing slave machine is overtime again, networking overtime information is returned to the upper computer.
Step S2, selecting unoccupied radio frequency channels in the selectable radio frequency channels as working channels based on a carrier monitoring method, so that all players in the node data structure work in the working channels;
as shown in fig. 6, to meet the requirement of large-scale deployment, interference cannot be generated between two networks, and a mode of monitoring a self-selected channel by using a carrier is used to monitor whether a carrier signal sent by another station exists on the channel before sending a broadcast material, and if so, the channel is switched to find an unoccupied channel as a working channel, so that all players work on the channel. In actual test, the host computer is electrified to monitor carrier waves for 6-8 seconds, and then an idle channel can be selected.
And step S3, the play master in the node data structure receives the play task and sends the play task to the play slave in the node data structure in a broadcast mode.
Specifically, a player of a play host issues a task to a host node; secondly, the master node sends a playing task to the slave node in a radio frequency mode; and the slave node receives the broadcast and then sends the broadcast task to the corresponding player of the slave player. Thus, the synchronization of the play tasks is maintained.
As shown in fig. 7, when performing a broadcast synchronization task, it is necessary for each broadcast slave to compare the corresponding broadcast master ID to confirm that the corresponding broadcast master configures a communication address as a broadcast address under the same networking, issues the broadcast address to the broadcast slave (child node) therebelow, waits for data feedback of the child node, receives the data feedback of the child node, reads status data of each child node from the circular buffer, and writes the status data of the child node into the node data structure.
Specifically, after the play host in the node data structure receives the play task, the method further includes:
and determining the task priority and the task timer of the playing task, and determining the playing time of the playing task based on the task priority and the task timer.
Step S4, sending a play task to a designated target play slave machine, judging whether the ID of the target play slave machine is in a node data structure, if so, configuring the communication address of a play master machine as the receiving address of the target play slave machine, sending the play task to the target play slave machine, and receiving the data feedback of the target play slave machine; writing the state of the target playing slave machine into a node data structure;
as shown in fig. 8, a node configuration instruction is received, where the instruction includes a host ID corresponding to a target play slave, and the host ID needs to be compared to determine whether the play slave is in a node data structure, if so, a communication address of the play host is configured as a receiving address of the play slave, and the instruction is issued to the child node separately; and waiting for the data feedback of the child node, and writing the state of the playing slave into the node data structure after receiving the data feedback of the child node.
And inquiring the playing state of any playing slave machine. As shown in fig. 9, a status query instruction is received, where the instruction includes a host ID corresponding to the playing slave, the host ID is compared to determine whether the playing slave is in the node data structure, and if so, the communication address of the playing master is configured as the receiving address of the playing slave, and the instruction is issued to the child node separately; and waiting for the data feedback of the child node, and writing the state of the playing slave into the node data structure after receiving the data feedback of the child node. Preferably, the method further comprises: and adding or deleting data of the playing slave.
Table 1 shows an actual measurement comparison between the radio frequency networking scheme adopted in the present invention and a conventional wireless technical scheme, where the conventional wireless technical scheme includes a Zigbee scheme and a Lora scheme.
TABLE 1
Figure 867729DEST_PATH_IMAGE001
Referring to the content in table 1, it can be seen from the actual measurement comparison between the radio frequency networking scheme adopted in the present invention and the conventional wireless technology scheme that the radio frequency networking scheme adopted in the present invention has practicality and lower cost compared with the conventional wireless technology.
In an embodiment, an embodiment of the present invention further provides a wireless ad hoc network advertisement synchronization system, based on the wireless ad hoc network advertisement synchronization method in the foregoing embodiments, including:
the system comprises a play master machine and a plurality of play slave machines; the playing master machine and each playing slave machine are wirelessly networked;
the play host is used for selecting an unoccupied radio frequency channel in the selectable radio frequency channels as a working channel by a carrier monitoring method, and sending an instruction to enable each play slave to work in the working channel;
the play slave is used for receiving the play task of the play master and carrying out synchronous play.
Preferably, the playing host and the playing slave comprise a data transceiver module, a radio frequency module and a temperature and humidity sensor;
the data transceiver module is used for interacting with the uplink player data;
the radio frequency module is used for performing radio frequency data interaction, radio frequency networking and node management;
the temperature and humidity sensor is used for detecting the temperature and humidity of the corresponding player.
As shown in fig. 10, the system of this embodiment includes a driver encapsulation (HAL layer), an interface encapsulation (Module layer), a task memory allocation, a task time slice allocation (Target layer), and a data interaction (Target layer) between modules;
the master node and the slave nodes in the embodiment operate on the MCU of 32MHz Cortex-M0, so that the hardware cost is very low; a set of software needs to be constructed: and a program structure for multitask time-sharing processing.
The UART interface of the driving layer is communicated with the Android host, the SPI interface is communicated with the radio frequency module, the I2C interface is communicated with the clock chip, and the I2C interface is communicated with the temperature and humidity sensor chip.
Fig. 11 is a task interaction state diagram of a wireless ad hoc network advertisement synchronization system according to an embodiment of the present invention. In the ad synchronization system for the wireless ad hoc network provided by the embodiment of the present invention, the master node task and the slave node task include:
and (3) main node tasks:
1. wireless networking tasks (radio networking and control); as shown in fig. 12, when initializing, allocating task processing cache, defining task processing priority, and allocating task processing software timer;
2. a carrier monitoring channel selection task; after initialization is completed, monitoring radio frequency air channels at regular time, recording unoccupied channels as optional channels, selecting one of the optional channels as a working channel, and informing a slave node below the working channel to work under the channel; meanwhile, the operation of adding/deleting the slave nodes can be carried out;
3. inquiring a management task from the node; as shown in fig. 15, including initialization, finding a slave node in the node data structure and updating the node state of the slave node;
4. and interacting a task with commands and data of the Android player. As shown in fig. 13 and 14, the data interaction task includes a radio frequency data processing task and an uplink data task; the method mainly comprises the steps that an Android player issues a wireless control command, command processing, data pushing and slave node state replying, the player issues an adding node instruction, data pushing, the player issues a synchronous playing instruction, radio frequency data task processing, the player issues a node state inquiring instruction, a node state processing task and the like;
slave node tasks include (much the same as master nodes): 1. wireless networking tasks (radio networking and control); 2. interacting tasks with main node commands and data; 3. and interacting a task with commands and data of the Android player.
At present, the method for realizing the synchronous playing of the multimedia advertisement player in the market mainly adopts the following three modes:
1, synchronizing the local area network;
2, synchronizing the servers;
3, HDMI distributor is synchronized.
Referring to the following table 2, taking a station a as an example, the ad synchronization scheme of the wireless ad hoc network of the present invention is compared with three schemes of the prior art in terms of timeliness and cost:
TABLE 2
Figure 444204DEST_PATH_IMAGE002
The wireless ad hoc network advertisement synchronization scheme of the invention and the three schemes of the prior art are as follows: the server synchronization scheme in the prior art cannot meet the synchronization timeliness. Whereas the prior art HDMI distributor synchronization scheme is too costly. In addition, the most local area network synchronization schemes are used at present, so that the cost is high, and the construction time is long.
Compared with the prior art, the wireless ad hoc network advertisement synchronization scheme provided by the invention is the optimal solution at present in terms of cost and timeliness.
In an embodiment, fig. 16 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 16, the electronic device may include: a processor (processor)810, a communication Interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication Interface 820 and the memory 830 communicate with each other via the communication bus 840. Processor 810 may invoke logic instructions in memory 830 to perform the steps of the wireless ad hoc network advertisement synchronization method as described in the various embodiments above. Examples include: step S1, carrying out wireless networking of the player based on the node data structure in the networking command; step S2, selecting unoccupied radio frequency channels in the selectable radio frequency channels as working channels based on a carrier monitoring method, so that all players in the node data structure work in the working channels; and step S3, the play master in the node data structure receives the play task and sends the play task to the play slave in the node data structure in a broadcast mode.
In one embodiment, the present invention further provides a non-transitory computer-readable storage medium storing a computer program, where the computer program includes at least one code, and the at least one code is executable by a master control device to control the master control device to implement the steps of the wireless ad hoc network advertisement synchronization method according to the embodiments. Examples include: step S1, based on the node data structure in the networking command, the player wirelessly networks; step S2, selecting unoccupied radio frequency channels in the selectable radio frequency channels as working channels based on a carrier monitoring method, so that all players in the node data structure work in the working channels; and step S3, the play master in the node data structure receives the play task and sends the play task to the play slave in the node data structure in a broadcast mode.
In an embodiment, an embodiment of the present invention further provides a computer program, which is used to implement the foregoing method embodiment when the computer program is executed by the main control device.
The program may be stored in whole or in part on a storage medium packaged with the processor, or in part or in whole on a memory not packaged with the processor.
Based on the same technical concept, the embodiment of the present application further provides a processor, and the processor is configured to implement the above method embodiment. The processor may be a chip.
In summary, according to the method and system for synchronizing ad hoc network advertisements provided by the embodiments of the present invention, a node data structure is established in a wireless ad hoc network manner, and an unoccupied radio frequency channel in the radio frequency channels is selected as a working channel by a play host in the node data structure, so that all players transmit data in the working channel, thereby ensuring timeliness of the data.
The embodiments of the present invention can be arbitrarily combined to achieve different technical effects.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions described in accordance with the present application are generated, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid state disk), among others.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A wireless ad hoc network advertisement synchronization method is characterized by comprising the following steps:
step S1, carrying out wireless networking of the player based on the node data structure in the networking command;
step S2, selecting unoccupied radio frequency channels in the selectable radio frequency channels as working channels based on a carrier monitoring method, so that all players in the node data structure work in the working channels;
and step S3, the play master in the node data structure receives the play task and sends the play task to the play slave in the node data structure in a broadcast mode.
2. The wireless ad hoc network advertisement synchronization method according to claim 1, wherein the step S1 specifically comprises:
step S11, the playing master receives a networking instruction, the networking instruction carries slave node information, and the slave node information comprises the ID of the playing slave needing to join in the networking;
step S12, determining the IDs of all the playing slave machines, and judging whether the IDs of the playing slave machines exist in the node data structure; if yes, the process proceeds to step S13, and if not, the process proceeds to step S14;
step S13, judging whether the corresponding playing slave machine is in the working channel, if so, directly networking, and returning a networking success message to the playing master machine; if not, go to step S14;
step S14, sending a networking command corresponding to the playing slave machine under the public channel, if receiving the returned networking data corresponding to the playing slave machine, adding the information corresponding to the playing slave machine into the node data structure for networking, and returning a networking success message to the playing master machine; and if the networking request is sent for multiple times within the preset time and the networking data returned by the corresponding playing slave machine is not received, sending networking timeout information to the playing master machine.
3. The wireless ad hoc network advertisement synchronization method according to claim 1, further comprising:
step S4, sending a play task to a designated target play slave machine, judging whether the ID of the target play slave machine is in a node data structure, if so, configuring the communication address of a play master machine as the receiving address of the target play slave machine, sending the play task to the target play slave machine, and receiving the data feedback of the target play slave machine; writing the state of the target playing slave machine into a node data structure;
and inquiring the playing state of any playing slave machine.
4. The method for synchronizing ad hoc network advertisements according to claim 2, wherein in step S11, before the play host receives the networking command, the method further comprises:
constructing a node data structure based on the distance between the play host and each play slave by taking the play host as a master node and the play slave as slave nodes;
taking the main node as a primary node, and taking a slave node in the transmission range of the main node as a secondary node; taking the slave nodes which are out of the transmission range of the master node and are positioned in the range of the secondary nodes as tertiary nodes, and constructing a node data structure according to the rule; in the adjacent two levels of nodes, the slave nodes in the lower level nodes select the slave node closest to the upper level node as the forwarding node.
5. The method for synchronizing ad hoc network advertisements according to claim 1, wherein in step S3, after the broadcast host in the node data structure receives the broadcast task, the method further comprises:
and determining the task priority and the task timer of the playing task, and determining the playing time of the playing task based on the task priority and the task timer.
6. The wireless ad hoc network advertisement synchronization method according to claim 2, further comprising:
and adding or deleting the data of the playing slave, and deleting the corresponding slave node in the node network.
7. A wireless ad hoc network advertisement synchronization system is characterized by comprising a play host and a plurality of play slaves; the playing master machine and each playing slave machine are wirelessly networked;
the play host is used for selecting an unoccupied radio frequency channel in the selectable radio frequency channels as a working channel by a carrier monitoring method, and sending an instruction to enable each play slave to work in the working channel;
the play slave is used for receiving the play task of the play master and carrying out synchronous play.
8. The wireless ad hoc network advertisement synchronization system according to claim 7, wherein the play master machine and the play slave machine each comprise a data transceiver module, a radio frequency module and a temperature and humidity sensor;
the data transceiver module is used for interacting with the uplink player data;
the radio frequency module is used for performing radio frequency data interaction, radio frequency networking and node management;
the temperature and humidity sensor is used for detecting the temperature and humidity of the corresponding player.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of the wireless ad-hoc network advertisement synchronization method according to any one of claims 1 to 6.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the wireless ad-hoc network advertisement synchronization method according to any one of claims 1 to 6.
CN202110750556.2A 2021-07-02 2021-07-02 Wireless ad hoc network advertisement synchronization method and system Pending CN113259877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110750556.2A CN113259877A (en) 2021-07-02 2021-07-02 Wireless ad hoc network advertisement synchronization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110750556.2A CN113259877A (en) 2021-07-02 2021-07-02 Wireless ad hoc network advertisement synchronization method and system

Publications (1)

Publication Number Publication Date
CN113259877A true CN113259877A (en) 2021-08-13

Family

ID=77190488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110750556.2A Pending CN113259877A (en) 2021-07-02 2021-07-02 Wireless ad hoc network advertisement synchronization method and system

Country Status (1)

Country Link
CN (1) CN113259877A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891501A (en) * 2021-11-04 2022-01-04 重庆星联云科科技发展有限公司 Intelligent ad hoc network method applied to wireless valve control system
CN114666886A (en) * 2022-02-21 2022-06-24 北京交通大学 Ad hoc network synchronization method and system based on double radio frequencies
CN115277732A (en) * 2022-07-27 2022-11-01 中航电测仪器股份有限公司 Embedded multi-device data synchronization method, system, device and method

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090217316A1 (en) * 2008-02-22 2009-08-27 Binita Gupta Systems and Methods for Advertising Insertion Notification in a Real-Time Streaming Media Service
CN103532844A (en) * 2013-09-27 2014-01-22 南京日新科技有限公司 Micro-power wireless networking and communication method, master node and system
CN104219495A (en) * 2014-08-20 2014-12-17 上海控创信息技术有限公司 Visual multi-sensor integrated terminal
CN104299632A (en) * 2014-09-23 2015-01-21 广东欧珀移动通信有限公司 Audio synchronization method and device and corresponding systems
CN104640127A (en) * 2014-12-30 2015-05-20 南昌市科陆智能电网科技有限公司 Method and system for identifying node affiliation of wireless self-organized network
CN104980498A (en) * 2015-05-28 2015-10-14 浙江工业大学 Advertising information pushing and sharing system based on mobile ad hoc network
CN105636231A (en) * 2014-11-05 2016-06-01 电信科学技术研究院 Signal channel monitoring method and device
CN108712743A (en) * 2018-04-24 2018-10-26 普联技术有限公司 The method and system of management equipment group's wireless networking
CN109219144A (en) * 2018-11-09 2019-01-15 北京通广龙电子科技有限公司 The method of Wireless Ad-hoc Network distributed resource allocation
CN110022562A (en) * 2019-04-11 2019-07-16 池州学院 A kind of distributed channel distribution control method for mobile ad-hoc network
CN110049451A (en) * 2019-04-03 2019-07-23 北京工业大学 A kind of methods, devices and systems of the mobile ad hoc network information back towards field
CN110958477A (en) * 2018-09-26 2020-04-03 株式会社理光 Synchronous control method and device for media data playing and computer readable medium
CN111050413A (en) * 2019-12-23 2020-04-21 电子科技大学 Unmanned aerial vehicle CSMA access method based on adaptive adjustment strategy

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090217316A1 (en) * 2008-02-22 2009-08-27 Binita Gupta Systems and Methods for Advertising Insertion Notification in a Real-Time Streaming Media Service
CN103532844A (en) * 2013-09-27 2014-01-22 南京日新科技有限公司 Micro-power wireless networking and communication method, master node and system
CN104219495A (en) * 2014-08-20 2014-12-17 上海控创信息技术有限公司 Visual multi-sensor integrated terminal
CN104299632A (en) * 2014-09-23 2015-01-21 广东欧珀移动通信有限公司 Audio synchronization method and device and corresponding systems
CN105636231A (en) * 2014-11-05 2016-06-01 电信科学技术研究院 Signal channel monitoring method and device
CN104640127A (en) * 2014-12-30 2015-05-20 南昌市科陆智能电网科技有限公司 Method and system for identifying node affiliation of wireless self-organized network
CN104980498A (en) * 2015-05-28 2015-10-14 浙江工业大学 Advertising information pushing and sharing system based on mobile ad hoc network
CN108712743A (en) * 2018-04-24 2018-10-26 普联技术有限公司 The method and system of management equipment group's wireless networking
CN110958477A (en) * 2018-09-26 2020-04-03 株式会社理光 Synchronous control method and device for media data playing and computer readable medium
CN109219144A (en) * 2018-11-09 2019-01-15 北京通广龙电子科技有限公司 The method of Wireless Ad-hoc Network distributed resource allocation
CN110049451A (en) * 2019-04-03 2019-07-23 北京工业大学 A kind of methods, devices and systems of the mobile ad hoc network information back towards field
CN110022562A (en) * 2019-04-11 2019-07-16 池州学院 A kind of distributed channel distribution control method for mobile ad-hoc network
CN111050413A (en) * 2019-12-23 2020-04-21 电子科技大学 Unmanned aerial vehicle CSMA access method based on adaptive adjustment strategy

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891501A (en) * 2021-11-04 2022-01-04 重庆星联云科科技发展有限公司 Intelligent ad hoc network method applied to wireless valve control system
CN114666886A (en) * 2022-02-21 2022-06-24 北京交通大学 Ad hoc network synchronization method and system based on double radio frequencies
CN114666886B (en) * 2022-02-21 2024-03-15 北京交通大学 Ad hoc network synchronization method and system based on double radio frequencies
CN115277732A (en) * 2022-07-27 2022-11-01 中航电测仪器股份有限公司 Embedded multi-device data synchronization method, system, device and method

Similar Documents

Publication Publication Date Title
CN113259877A (en) Wireless ad hoc network advertisement synchronization method and system
EP2695327B1 (en) Systems and methods for implementing multicasting using personal area network (pan) wireless technology
EP2503840B1 (en) Wireless communication device for determining a master unit and corresponding wireless communication method, program, and wireless communication system
JP5917408B2 (en) Configurable connector for system level communication
KR100885444B1 (en) Method for controlling the output of devices in the network
US8964638B2 (en) Wireless communication device, wireless communication system, program, and wireless communication method
US20140016039A1 (en) Electronic unit, communication system and method, information processing terminal and method, and information processing apparatus and method
JP4166466B2 (en) Wireless communication system and wireless communication method, wireless communication apparatus and control method thereof, and computer program
JP2001306428A (en) Network apparatus, network system, communication method, and recording medium
CN109845222A (en) General projection service
US20040258006A1 (en) Apparatus and method for communicating between devices without a piconet coordinator in a piconet
CN111263206B (en) Synchronous playing method and device of multimedia information, storage medium and mobile terminal
WO2023273468A1 (en) Communication method, apparatus and system
CN104753969A (en) Method and device for synchronizing clipboard content information
CN109067882A (en) data sharing method and related product
EP3698604B1 (en) Electronic apparatus and control method thereof
JP2004064665A (en) Data transfer device, transmitting device, receiving device, and method for controlling them
CN109361743B (en) Data synchronization method and device, electronic equipment and storage medium
KR101241911B1 (en) Method for performing communications and device thereof in a wireless network
JP2003179905A (en) Communication control system, communication control apparatus and method, information-processing apparatus and method, recording medium, and program
US20140173116A1 (en) Apparatus and method for sharing resource between terminals
JP2001246812A (en) Method and apparatus for processing information and storage medium
JP2003084872A (en) Information processing unit, its control method 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210813