CN116017739A - Channel determination method and device - Google Patents

Channel determination method and device Download PDF

Info

Publication number
CN116017739A
CN116017739A CN202211623206.0A CN202211623206A CN116017739A CN 116017739 A CN116017739 A CN 116017739A CN 202211623206 A CN202211623206 A CN 202211623206A CN 116017739 A CN116017739 A CN 116017739A
Authority
CN
China
Prior art keywords
channel
identifier
slave
target
occupation table
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
CN202211623206.0A
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.)
Vatti Co Ltd
Original Assignee
Vatti 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 Vatti Co Ltd filed Critical Vatti Co Ltd
Priority to CN202211623206.0A priority Critical patent/CN116017739A/en
Publication of CN116017739A publication Critical patent/CN116017739A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a channel determining method and device, and relates to the technical field of intelligent household appliances. The method comprises the following steps: transmitting a channel application request message of a broadcast type in a first channel; the channel application request message carries a channel occupation table, and the channel occupation table comprises the corresponding relation between a channel identifier and a device identifier; after the waiting time of the first channel reaches the preset waiting time of the channel, switching to a second channel, receiving a channel application response message which is sent by the first slave and carries the equipment identifier corresponding to the first slave in the second channel, and updating a channel occupation table according to the channel identifier of the second channel and the equipment identifier of the first slave; the channel identification of the second channel is equal to the channel identification of the first channel plus 1; and switching to a third channel after the waiting time of the second channel reaches the waiting time of the channel until the last channel is finished. By adopting the method and the device, communication failure caused by co-channel interference can be avoided.

Description

Channel determination method and device
Technical Field
The application relates to the technical field of intelligent household appliances, in particular to a channel determining method and device.
Background
At present, in a kitchen electric linkage system, kitchen appliances can be networked through wireless communication, so that information interaction is realized, and the wireless communication modes can be RF (Radio Frequency), bluetooth, wi-Fi and the like. When the kitchen appliance performs wireless communication, a certain communication frequency point needs to be determined as a network channel, for example, when an RF mode is adopted, a certain communication frequency point can be selected as the network channel within the national unlicensed ISM (Industrial Scientific Medical, industrial, scientific and medical) open frequency range 433.05-434.79 MHZ.
However, if two or more devices simultaneously transmit information using the same communication frequency point, the same frequency interference problem occurs, resulting in failure of the communication caused by failure of the transmitted information to be received normally.
Disclosure of Invention
Based on this, it is necessary to provide a method and an apparatus for determining a channel in order to solve the above technical problems.
In a first aspect, a method for determining a channel is provided, where the method is applied to a host, and the method includes:
transmitting a channel application request message of a broadcast type in a first channel; the channel application request message carries a channel occupation table, and the channel occupation table comprises the corresponding relation between a channel identifier and a device identifier;
After the waiting time of the first channel reaches the preset waiting time of the channel, switching to a second channel, receiving a channel application response message which is sent by a first slave and carries a device identifier corresponding to the first slave in the second channel, and updating the channel occupation table according to the channel identifier of the second channel and the device identifier of the first slave; the channel identification of the second channel is equal to the channel identification of the first channel plus 1;
and switching to a third channel after the waiting time of the second channel reaches the waiting time of the channel until the last channel is finished.
As an optional implementation manner, the updating the channel occupation table according to the channel identifier of the second channel and the device identifier of the first slave includes:
inquiring a target equipment identifier corresponding to the channel identifier of the second channel in the channel occupation table according to the channel identifier of the second channel;
if the target equipment identifier is not queried, adding the corresponding relation between the channel identifier of the second channel and the equipment identifier of the first slave in the channel occupation table;
if the target equipment identifier is inquired, judging whether the target equipment identifier is consistent with the equipment identifier of the first slave;
And if the target equipment identifier is inconsistent with the equipment identifier of the first slave, maintaining the corresponding relation between the channel identifier of the second channel and the target equipment identifier in the channel occupation table.
As an alternative embodiment, the method further comprises:
if the channel application response message sent by the second slave machine to which the target equipment identifier belongs is not received in the second channel, adding 1 to the number of disconnection times corresponding to the target equipment identifier;
and if the number of the disconnection times is larger than a preset threshold value of the number of the disconnection times, deleting the corresponding relation between the channel identifier of the second channel and the target equipment identifier in the channel occupation table.
As an alternative embodiment, the method further comprises:
and if the target equipment identifier is consistent with the equipment identifier of the first slave, resetting the number of disconnection times corresponding to the target equipment identifier.
In a second aspect, a method for determining a channel is provided, where the method is applied to a slave, and the method includes:
receiving a channel application request message of a broadcast type sent by a host in a first channel; the channel application request message carries a channel occupation table, and the channel occupation table comprises the corresponding relation between a channel identifier and a device identifier;
Inquiring a channel identifier of a target channel corresponding to the local equipment identifier in the channel occupation table;
if the channel identification of the target channel corresponding to the local equipment identification is not queried, randomly selecting one idle channel from idle channels as the target channel; the idle channel is a channel in which the corresponding relation between the channel identifier and the equipment identifier does not exist in the channel occupation table;
determining a delay sending duration according to the channel identification of the target channel and a preset channel waiting duration;
after waiting for the time delay sending duration, sending a channel application response message of a unicast type to the host in the target channel; the channel application response message carries the local equipment identifier, and the local equipment identifier is used for updating the channel occupation table by the host.
As an alternative embodiment, the method further comprises:
and if the channel identifier of the target channel corresponding to the local equipment identifier is queried, executing the step of determining the delay sending duration according to the channel identifier of the target channel and the preset channel waiting duration.
As an optional implementation manner, the formula for determining the delay sending duration according to the channel identifier of the target channel and the preset channel waiting duration is as follows:
T=k*t
Wherein T represents a delay transmission duration, k represents a channel identifier of a target channel, and T represents a preset channel waiting duration.
In a third aspect, there is provided a channel determining apparatus, the apparatus being applied to a host, the apparatus comprising:
the broadcasting module is used for sending a channel application request message of a broadcasting type in the first channel; the channel application request message carries a channel occupation table, and the channel occupation table comprises the corresponding relation between a channel identifier and a device identifier;
the updating module is used for switching to a second channel after the waiting time of the first channel reaches the preset waiting time of the channel, receiving a channel application response message which is sent by a first slave and carries a device identifier corresponding to the first slave in the second channel, and updating the channel occupation table according to the channel identifier of the second channel and the device identifier of the first slave; the channel identification of the second channel is equal to the channel identification of the first channel plus 1;
and the switching module is used for switching to a third channel until the last channel is finished after the waiting time of the second channel reaches the waiting time of the channel.
As an alternative embodiment, the updating module is specifically configured to:
inquiring a target equipment identifier corresponding to the channel identifier of the second channel in the channel occupation table according to the channel identifier of the second channel;
if the target equipment identifier is not queried, adding the corresponding relation between the channel identifier of the second channel and the equipment identifier of the first slave in the channel occupation table;
if the target equipment identifier is inquired, judging whether the target equipment identifier is consistent with the equipment identifier of the first slave;
and if the target equipment identifier is inconsistent with the equipment identifier of the first slave, maintaining the corresponding relation between the channel identifier of the second channel and the target equipment identifier in the channel occupation table.
As an alternative embodiment, the device further comprises:
the judging module is used for adding 1 to the number of disconnection times corresponding to the target equipment identifier if the channel application response message sent by the second slave machine to which the target equipment identifier belongs is not received in the second channel;
and the deleting module is used for deleting the corresponding relation between the channel identifier of the second channel and the target equipment identifier in the channel occupation table if the number of the unconnected times is larger than a preset threshold value of the number of the unconnected times.
As an alternative embodiment, the device further comprises:
and the zero clearing module is used for clearing the number of the disconnection times corresponding to the target equipment identifier if the target equipment identifier is consistent with the equipment identifier of the first slave.
In a fourth aspect, there is provided a channel determining apparatus, the apparatus being applied to a slave, the apparatus comprising:
the receiving module is used for receiving a channel application request message of a broadcast type sent by the host in a first channel; the channel application request message carries a channel occupation table, and the channel occupation table comprises the corresponding relation between a channel identifier and a device identifier;
the inquiring module is used for inquiring the channel identification of the target channel corresponding to the local equipment identification in the channel occupation table;
the first determining module is used for randomly selecting one idle channel from idle channels as the target channel if the channel identification of the target channel corresponding to the local equipment identification is not queried; the idle channel is a channel in which the corresponding relation between the channel identifier and the equipment identifier does not exist in the channel occupation table;
the second determining module is used for determining a delay sending duration according to the channel identifier of the target channel and a preset channel waiting duration;
The sending module is used for sending a channel application response message of a unicast type to the host in the target channel after waiting for the time delay sending duration; the channel application response message carries the local equipment identifier, and the local equipment identifier is used for updating the channel occupation table by the host.
As an alternative embodiment, the device further comprises:
and the third determining module is used for executing the second determining module if the channel identification of the target channel corresponding to the local equipment identification is queried.
In a fifth aspect, there is provided a kitchen electrical linkage system comprising a master machine applying the method of determining a channel according to the first aspect and at least one slave machine applying the method of determining a channel according to the second aspect.
In a sixth aspect, a computer device is provided, comprising a memory and a processor, the memory having stored thereon a computer program executable on the processor, the processor implementing the method steps according to the first aspect when the computer program is executed.
In a seventh aspect, a computer device is provided, comprising a memory and a processor, the memory having stored thereon a computer program executable on the processor, the processor implementing the method steps according to the second aspect when the computer program is executed.
In an eighth aspect, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the method steps according to the first aspect.
In a ninth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method steps as described in the second aspect.
The application provides a method and a device for determining a channel, and the technical scheme provided by the embodiment of the application at least brings the following beneficial effects: first, the host transmits a broadcast type channel application request message in a first channel. The channel application request message carries a channel occupation table, and the channel occupation table comprises a corresponding relation between a channel identifier and a device identifier. After receiving a broadcast type channel application request message sent by a host in a first channel, a slave queries a channel occupation table for a channel identifier of a target channel corresponding to a local device identifier, if the channel identifier of the target channel corresponding to the local device identifier is not queried, randomly selecting an idle channel from idle channels as the target channel, and determining delay sending duration according to the channel identifier of the target channel. After waiting for the time length of time delay transmission, the slave transmits a channel application response message of unicast type to the host in the target channel. The channel application response message carries the local equipment identifier. After the waiting time of the first channel reaches the preset waiting time of the channel, the host switches to a second channel with the channel identifier added with 1, receives a channel application response message which is sent by the first slave and carries the device identifier corresponding to the first slave in the second channel, and updates the channel occupation table according to the channel identifier of the second channel and the device identifier of the first slave. After the waiting time of the second channel reaches the waiting time of the channel, the host switches to a third channel with the channel identifier added with 1, receives the channel application response message and updates the channel occupation table, and so on until the last channel is ended. Through the method, after each slave receives the channel application request message sent by the host, the corresponding target channel can be selected according to the channel occupation table to send the channel application response message to the host in a time-sharing manner, so that the host can sequentially receive the channel application response message sent by the slave by switching channels according to the sequence of the channel identifiers from small to large, and the channel occupation table is updated according to the channel identifiers and the equipment identifiers of the slaves, thereby avoiding communication failure caused by common-frequency interference.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a kitchen electric linkage system according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a multi-channel allocation timing sequence according to an embodiment of the present application;
fig. 3 is a flowchart of a method for determining a channel according to an embodiment of the present application;
fig. 4 is a flowchart of another method for determining a channel according to an embodiment of the present application;
fig. 5 is a flowchart of an example of a method for determining a channel according to an embodiment of the present application;
fig. 6 is a flowchart of an example of another channel determining method provided in an embodiment of the present application;
fig. 7 is an interaction diagram of an example of a master machine and a slave machine in a kitchen electric linkage system according to an embodiment of the present application;
Fig. 8 is a schematic structural diagram of a channel determining apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another channel determining apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The method for determining the channel can be applied to a kitchen electric linkage system, wherein the kitchen electric linkage system comprises 1 master machine and at least 1 slave machine, and networking can be performed between the master machine and the slave machines in a wireless communication mode. Fig. 1 is a schematic structural diagram of a kitchen electric linkage system according to an embodiment of the present application, and as shown in fig. 1, the kitchen electric linkage system includes a master 110, a slave 121, a slave 122 and a slave 123. Preferably, the master and the slave are kitchen appliances. For example, the host machine can be a kitchen ventilator, and the slave machine can be kitchen appliances which can generate lampblack in the use process of kitchen ranges, steaming ovens, electric rice cookers, electric frying pans, electromagnetic ovens and the like. The master 110 and the slave 121, and the slave 122 and the slave 123 in the kitchen electric linkage system can communicate with each other through a wireless communication network, and the wireless communication network can be generally divided into a plurality of channels according to frequency bands. Fig. 2 is a schematic diagram of a multi-channel allocation timing sequence provided in the embodiment of the present application, and as shown in fig. 2, a wireless communication network of the kitchen electric linkage system is divided into n+1 channels (i.e., channels 0 to N). In the prior art, after the slave is on line, one channel is randomly selected from the n+1 channels to communicate with the host. When the channels selected by the slaves are the same channel, channel collision between the slaves is caused, and communication between the slaves and the master is affected.
The following describes a channel determining method provided in the embodiments of the present application in detail with reference to specific embodiments, and first describes a channel determining method applied to a host. Fig. 3 is a flowchart of a method for determining a channel according to an embodiment of the present application, where, as shown in fig. 3, specific steps are as follows:
step 301, a channel application request message of a broadcast type is sent in a first channel. The channel application request message carries a channel occupation table, and the channel occupation table comprises a corresponding relation between a channel identifier and a device identifier.
In implementation, in order to prevent the problem that in the prior art, after the slave is on line, one channel is randomly selected from the n+1 channels as a channel for communicating with the master, and the slave collides with other channels. In the application, after the slave is on line, the first channel in the n+1 channels waits for the host to initiate channel selection. Wherein the first channel may be channel 0. When the host needs to initiate channel selection, a broadcast type channel application request message may be sent in the first channel. The channel application request message carries a channel occupation table, the channel occupation table comprises a corresponding relation between a channel identifier and a device identifier, and the device identifier is a local device identifier stored by the slave machine and is used for uniquely identifying the slave machine in a set of kitchen electric linkage system. After each slave in the communication network receives the broadcast type channel application request message sent by the host, the delay sending duration and the occupied target channel of the channel application response message can be determined according to the channel occupation table. The delay sending time is used for ensuring that the host polls the target channel when the slave sends the channel application response message on the target channel, and further ensuring that the host can receive the channel application response message sent by the slave on the target channel. The slave determines the delay sending duration of the channel application response message and the specific processing procedure of the occupied target channel according to the channel occupation table, which will be described in detail later, and will not be repeated here.
Table 1 is an example of a channel occupation table provided in the embodiments of the present application, and as shown in table 1, since the first channel (i.e. the channel with the channel identifier of 0) is the channel occupied by the host for sending the broadcast type message, the channel occupation table is not shown. Wherein, the device identifier of the slave corresponding to the channel with the channel identifier of 1 is 22; the device identification of the slave corresponding to the channel with the channel identification of 4 is 44; the device identifier of the slave corresponding to the channel with the channel identifier of 6 is 33; channels with channel identifications 2, 3, 5 and 7 have no device identification of the corresponding slave, i.e. have not been occupied by the slave.
Channel identification 1 2 3 4 5 6 7
Device identification 22 - - 44 - 33 -
Preferably, in order to enhance the anti-interference capability of the communication network, the host continuously transmits channel application request messages of the broadcast type for 3 times in the first channel, so as to ensure that each slave can receive the messages.
Step 302, after the waiting time of the first channel reaches the preset waiting time of the channel, switching to a second channel, receiving a channel application response message carrying a device identifier corresponding to the first slave machine and sent by the first slave machine in the second channel, and updating a channel occupation table according to the channel identifier of the second channel and the device identifier of the first slave machine. Wherein the channel identification of the second channel is equal to the channel identification of the first channel plus 1.
In implementation, after each of the n+1 channels waits for a preset channel waiting time period (denoted as t), the host switches to the next channel, that is, as shown in fig. 2, the host is in channel 0 during a time period from 0 to t, in channel 1 during a time period from t to 2t, in channel 2 during a time period from 2t to 3t, and so on. Therefore, after the waiting time of the first channel (channel identifier is 0) reaches the preset waiting time of the channel, the host switches to the second channel (channel identifier is 1), receives a channel application response message which is sent by the first slave and carries the device identifier corresponding to the first slave in the second channel, and updates the channel occupation table according to the channel identifier of the second channel and the device identifier of the first slave. The operation of updating the channel occupancy table may be to add a corresponding relationship between the channel identifier of the second channel and the device identifier of the first slave, delete a corresponding relationship between the channel identifier of the second channel and the device identifier, modify a corresponding relationship between the channel identifier of the second channel and the device identifier, and so on.
Further, the processing procedure of updating the channel occupation table by the host according to the channel identifier of the second channel and the device identifier of the first slave is as follows:
Step one, according to the channel identification of the second channel, inquiring the target equipment identification corresponding to the channel identification of the second channel in the channel occupation table.
In implementation, the host queries a target device identifier corresponding to the channel identifier of the second channel in the channel occupation table according to the channel identifier of the second channel. If the corresponding relation between the channel identifier of the second channel and the device identifier exists in the channel occupation table, the host can inquire the target device identifier corresponding to the channel identifier of the second channel in the channel occupation table, otherwise, the host cannot inquire the target device identifier. For example, in the channel occupancy table shown in table 1, the host may query 22 for the target device identifier corresponding to the channel identifier 1 of the second channel.
And step two, if the target equipment identifier is not queried, adding the corresponding relation between the channel identifier of the second channel and the equipment identifier of the first slave in the channel occupation table.
In the implementation, if the target device identifier corresponding to the channel identifier of the second channel is not queried, it is indicated that the second channel is not occupied by any slave in the channel occupancy table, and the target channel for sending the channel application response message is selected by the first slave. At this time, the host adds the correspondence between the channel identifier of the second channel and the device identifier of the first slave in the channel occupation table, which indicates that the second channel is already occupied by the first slave.
And step three, if the target equipment identification is queried, judging whether the target equipment identification is consistent with the equipment identification of the first slave.
In an implementation, if the number of slaves that do not occupy channels in the channel occupancy table exceeds 2, different slaves may select the same idle channel from the idle channels as the target channel, in which case the host updates the channel occupancy table according to the device identifier carried in the channel application response message sent by the first received slave, for a specific procedure, see description of step two. Because the corresponding relation between the channel identifier of the second channel and the device identifier is increased in the channel occupation table, the channel application response message sent by the slave which receives other selected second channels as the target channels in the second channel needs to be discarded, so if the host queries the target device identifier, whether the target device identifier is consistent with the device identifier of the first slave needs to be judged. If the target equipment identifier is consistent with the equipment identifier of the first slave, the first slave is an occupied equipment of the second channel, the host can process the channel application response message sent by the first slave, and the corresponding relation between the channel identifier of the second channel and the target equipment identifier is kept unchanged in the channel occupancy table.
And step four, if the target equipment identifier is inconsistent with the equipment identifier of the first slave, maintaining the corresponding relation between the channel identifier of the second channel and the target equipment identifier in the channel occupation table.
In the implementation, if the target equipment identifier is inconsistent with the equipment identifier of the first slave, which indicates that the first slave is not an occupied equipment of the second channel, the host keeps the corresponding relation between the channel identifier of the second channel and the target equipment identifier unchanged in the channel occupancy table, and discards the channel application response message sent by the first slave.
As an alternative implementation manner, in order to avoid resource waste caused by the fact that the secondary machine which is not used for a long time or has been removed occupies channels in the channel occupancy table, the processing procedure of the primary machine further includes:
step one, if the channel application response message sent by the second slave machine to which the target equipment identifier belongs is not received in the second channel, adding 1 to the number of the disconnection times corresponding to the target equipment identifier.
In the implementation, the host may update the number of times of disconnection of each device identifier in the channel occupancy table, and if the channel application response message sent by the second slave to which the target device identifier belongs is not received in the second channel, which indicates that the second slave corresponding to the target device identifier is disconnected in the communication period, the host adds 1 to the number of times of disconnection corresponding to the target device identifier.
Further, the number of times of disconnection corresponding to the target device identifier is the number of times of continuous disconnection of the slave corresponding to the target device identifier, and the processing procedure of the host further comprises: and if the target equipment identifier is consistent with the equipment identifier of the first slave, resetting the number of the disconnection times corresponding to the target equipment identifier.
And step two, if the number of the disconnection times is larger than a preset threshold value of the number of the disconnection times, deleting the corresponding relation between the channel identifier of the second channel and the target equipment identifier in the channel occupation table.
In the implementation, if the host determines that the number of times of disconnection corresponding to the target device identifier is greater than the preset threshold value of the number of times of disconnection, which indicates that the number of times of continuous disconnection of the slave corresponding to the target device identifier is greater, the slave may not be used or has been removed for a long time, the host deletes the corresponding relationship between the channel identifier of the second channel and the target device identifier in the channel occupancy table, so that the second channel may be occupied by other slaves. The threshold value of the number of times of disconnection can be set empirically by engineering personnel and stored in the computer equipment in advance. Preferably, the threshold number of unconnected times is 5.
Step 303, switching to the third channel after the waiting time of the second channel reaches the waiting time of the channel until the last channel is finished.
In the implementation, after the waiting time of the second channel (channel identifier is 1) reaches the channel waiting time, the host switches to a third channel (channel identifier is 2) to receive the channel application response message sent by the slave and update the channel occupation table, and so on, after the waiting time of each channel reaches the channel waiting time, switches to the next channel (channel identifier is added with 1), receives the channel application response message and updates the channel occupation table until the last channel is finished. In this way, each slave (equipment identifiers are respectively 22, 33 and 44) in the communication network occupies one channel according to the channel occupation table, the host transmits channel application response messages to the host in a time sharing manner according to the channel identifiers of the occupied channels, and the host switches the channels according to the sequence of the channel identifiers from small to large, sequentially receives the channel application response messages transmitted by each slave and updates the channel occupation table, so that the common-frequency interference problem does not exist in the communication network, channel blockage is avoided, and the anti-interference performance of the kitchen and electric linkage system is improved.
The following describes a method for determining a channel applied to a slave, and fig. 4 is a flowchart of another method for determining a channel according to an embodiment of the present application, and as shown in fig. 4, specific steps are as follows:
Step 401, receiving a broadcast type channel application request message sent by a host in a first channel. The channel application request message carries a channel occupation table, and the channel occupation table comprises a corresponding relation between a channel identifier and a device identifier.
In an implementation, after the slave accesses the communication network, the slave switches to the first channel by default to receive the broadcast type message sent by the host. After the host sends the channel application request message of the broadcast type in the first channel, the slave can receive the channel application request message of the broadcast type sent by the host in the first channel. The channel application request message carries a channel occupation table, where the channel occupation table includes a correspondence between a channel identifier and a device identifier, and description of the channel occupation table in step 201 is omitted herein.
Step 402, in the channel occupation table, inquiring the channel identification of the target channel corresponding to the local device identification.
In implementation, after the slave receives the channel application request message of the broadcast type sent by the host in the first channel, the slave needs to send a channel application response message to the host. In order to determine the time for transmitting the channel application response message and the occupied target channel, the slave firstly queries the channel identifier of the target channel corresponding to the local equipment identifier in the channel occupancy table.
Step 403, if the channel identifier of the target channel corresponding to the local device identifier is not queried, randomly selecting one idle channel from the idle channels as the target channel. Wherein, the idle channel is a channel in which the corresponding relation between the channel identifier and the equipment identifier does not exist in the channel occupation table.
In the implementation, if the slave does not inquire the channel identifier of the target channel corresponding to the local equipment identifier, it is indicated that the slave does not have the occupied target channel in the channel occupation table, so that the slave randomly selects an idle channel from the idle channels to be used as the target channel for transmitting the channel application response message. Wherein, the idle channel is a channel in which the corresponding relation between the channel identifier and the equipment identifier does not exist in the channel occupation table. For example, in the channel occupancy table shown in table 1, channels with channel identifications 2, 3, 5, and 7 have no corresponding slave device identifications, so channel 2, channel 3, channel 5, and channel 7 are idle channels. For the slave with the local device identifier 55, the channel identifier of the target channel corresponding to the device identifier 55 is not queried in the channel occupation table shown in table 1, so that the idle channel 2 is randomly selected from idle channels (i.e. channel 2, channel 3, channel 5 and channel 7) to be used as the target channel for sending the channel application response message.
As an alternative embodiment, the processing of the slave further includes: if the channel identification of the target channel to which the local device identification corresponds is queried, step 404 is performed.
In implementation, if the slave device queries the channel occupancy table for the channel identifier of the target channel corresponding to the local device identifier, it indicates that the slave device has an occupied target channel in the channel occupancy table, and step 404 may be directly performed. For example, the local device identifier of the slave is 22, and the channel identifier of the target channel corresponding to the device identifier 22 is 1 in the channel occupation table shown in table 1.
Step 404, determining a delay sending duration according to the channel identifier of the target channel and the preset channel waiting duration.
In the implementation, only when the host and the slave are simultaneously in the same channel, the host can successfully receive the response message sent by the slave, so that in order to ensure the synchronization of the host and the slave, the slave can determine the delay sending duration corresponding to the target channel according to the channel identification of the target channel and the preset channel waiting duration. Preferably, according to the channel identifier of the target channel and the preset channel waiting duration, the formula for determining the delay sending duration is as follows:
T=k*t
Wherein T represents a delay transmission duration, k represents a channel identifier of a target channel, and T represents a preset channel waiting duration. For example, if the channel identifier of the target channel corresponding to the slave with the local device identifier of 55 is 2, the delay transmission duration corresponding to the slave is 2t; and if the channel identifier of the target channel corresponding to the slave with the local equipment identifier of 22 is 1, the delay transmission duration corresponding to the slave is t.
Step 405, after waiting for the time delay transmission duration, transmitting a unicast type channel application response message to the host in the target channel. The channel application response message carries a local device identifier, and the local device identifier is used for updating the channel occupation table by the host.
In the implementation, after waiting for the delay sending time, the slave sends a unicast type channel application response message to the host in the target channel. The channel application response message carries a local device identifier, and the local device identifier is used for updating the channel occupation table by the host. In the embodiment of the application, for the slave a that has occupied a channel in the channel occupancy table, other slaves will not select the channel occupied by the slave a as the target channel; for the slave B and the slave C which do not occupy channels in the channel occupation table, the probability of selecting the same idle channel as a target channel is low under the condition that the number of idle channels is large, even if the slave B and the slave C select the same idle channel as the target channel, one slave can successfully occupy the idle channel, and the slave which fails to occupy the idle channel can reselect the target channel according to the updated channel occupation table after receiving a broadcast type channel application request message sent by the host next time. Finally, the embodiment of the application can realize the ideal state that each slave in the kitchen electric linkage network occupies one channel in the channel occupation table, thereby avoiding the same-frequency interference problem caused by simultaneously transmitting the channel application response message by two or more slaves in the same channel.
It should be noted that, in the kitchen electric linkage system in the prior art, a certain fixed communication frequency point is generally selected as a network channel, however, in an actual application scenario, the communication frequency point adopted by external devices such as a wireless ammeter water meter system, an interphone and the like of a building during communication may be the same as the communication frequency point selected by the communication network of the kitchen electric linkage system, and at this time, the wireless communication signal of the external device and the wireless communication of the kitchen electric linkage system will cause the same-frequency interference. The multi-channel concurrent design in the embodiment of the application can enable the slave to randomly select the idle channel as the target channel, so that the possibility that the kitchen electric linkage system is interfered by external equipment during communication is greatly reduced.
Fig. 5 is a flowchart of an example of a channel determining method provided in the embodiment of the present application, and as shown in fig. 5, a processing procedure of the slave machine is as follows:
step 501, power on.
Step 502, switching to a first channel, and receiving a broadcast type channel application request message sent by a host. The channel application request message carries a channel occupation table, and the channel occupation table comprises a corresponding relation between a channel identifier and a device identifier.
In step 503, in the channel occupancy table, it is queried whether the local device occupies the target channel in the channel occupancy table.
If so, step 505 is performed, otherwise step 504 is performed.
In step 504, one idle channel is randomly selected from the idle channels as a target channel.
Step 505, determining a waiting time delay sending duration according to the channel identifier of the target channel, after the waiting time delay sending duration, sending a channel application response message of a unicast type to the host in the target channel, and then executing step 502.
Fig. 6 is a flowchart of an example of another channel determining method provided in the embodiment of the present application, and as shown in fig. 6, a processing procedure of a host is as follows:
step 601, start-up.
Step 602, switch to the first channel (i.e. channel 0), and continuously transmit 3 broadcast type channel application request messages. The channel application request message carries a channel occupation table.
Step 603, determining whether the waiting duration reaches a preset channel waiting duration.
If yes, step 604 is performed, otherwise step 603 is continued.
Step 604 switches to a channel with channel id plus 1.
Step 605, receiving a channel application response message sent by the first slave and carrying a device identifier corresponding to the first slave, and updating a channel occupation table according to the channel identifier of the second channel and the device identifier of the first slave.
Step 606, it is determined whether the waiting duration reaches a preset channel waiting duration.
If so, step 607 is performed, otherwise step 605 is performed.
In step 607, it is determined whether the channel identifier of the current channel is N.
If so, step 602 is performed, otherwise step 604 is performed.
For easy understanding, fig. 7 is an interaction diagram of an example of a master machine and a slave machine in a kitchen electric linkage system provided in an embodiment of the present application, and as shown in fig. 7, the processing procedure of the master machine and the slave machine is as follows:
in step 701a, the host is powered on.
In step 701b, the slave 1 is powered on.
In step 701c, the slave 2 is powered on.
In step 701d, the slave 3 is powered on.
Step 702, the host switches to channel 0 and sends a channel application request message of broadcast type. The channel application request message carries a channel occupation table.
In step 703a, the slave 1 (device identifier 22) receives the channel application request message sent by the host on channel 0, and queries that the channel identifier of the target channel corresponding to the device identifier 22 is 1 in the channel occupancy table.
In step 703b, the slave 2 (device identifier 44) receives the channel application request message sent by the host on channel 0, and queries that the channel identifier of the target channel corresponding to the device identifier 44 is 4 in the channel occupancy table.
In step 703c, the slave 3 (device identifier 55) receives the channel application request message sent by the host on channel 0, does not query the channel identifier of the target channel corresponding to the device identifier 55 in the channel occupation table, and randomly selects the idle channel 2 as the target channel in the idle channels.
In step 704a, the slave 1 determines the delay transmission duration to be t according to the channel identifier 1 of the target channel and the preset channel waiting duration t.
In step 704b, the slave 2 determines that the delay transmission duration is 4t according to the channel identifier 4 of the target channel and the preset channel waiting duration t.
In step 704c, the slave 3 determines that the delay transmission duration is 2t according to the channel identifier 2 of the target channel and the preset channel waiting duration t.
In step 705a, after waiting for the delay transmission duration t, the slave 1 transmits a unicast type channel application response message to the host in the channel 1. The channel application response message carries the local device identifier 22.
Step 705b, after waiting for the delay transmission duration 2t, the slave 3 transmits a unicast type channel application response message to the host in the channel 2. The channel application response message carries the local device identifier 55.
Step 705c, after waiting for the delay transmission duration 4t, the slave 2 transmits a unicast type channel application response message to the host in the channel 4. The channel application response message carries the local device identifier 44.
Step 706a, after the waiting duration reaches the preset channel waiting duration t, the host switches to a channel (i.e. channel 1) with a channel identifier added with 1, and receives a channel application response message sent by the slave 1 and carrying a device identifier corresponding to the slave 1; according to the channel identification of the channel 1 and the equipment identification of the slave 1, the target equipment identification of the channel 1 is inquired in the channel occupation table to be consistent with the equipment identification of the slave 1, and the corresponding relation between the channel identification of the channel 1 and the target equipment identification is kept unchanged in the channel occupation table by the host.
Step 706b, after the waiting duration reaches the preset channel waiting duration t, the host switches to a channel (i.e. channel 2) with a channel identifier added with 1, and receives a channel application response message sent by the slave 3 and carrying a device identifier corresponding to the slave 3; according to the channel identification of the channel 2 and the equipment identification of the slave 3, the target equipment identification of the channel 2 is not inquired in the channel occupation table, and the corresponding relation between the channel identification of the channel 2 and the equipment identification of the slave 3 is added in the channel occupation table by the host.
Step 706c, after the waiting duration reaches the preset channel waiting duration t, the host switches to the channel with the channel identifier added with 1 (i.e. channel 3), and does not receive the channel application response message, and the host does not query the target device identifier of channel 3 in the channel occupation table, and does not need to update the channel occupation table.
Step 706d, after the waiting duration reaches the preset channel waiting duration t, the host switches to the channel (i.e. channel 4) with the channel identifier added with 1, and receives the channel application response message sent by the slave 2 and carrying the device identifier corresponding to the slave 2; according to the channel identification of the channel 4 and the equipment identification of the slave 2, the target equipment identification of the channel 4 is inquired in the channel occupation table to be consistent with the equipment identification of the slave 2, and the corresponding relation between the channel identification of the channel 4 and the target equipment identification is kept unchanged in the channel occupation table by the host.
The embodiment of the application provides a method for determining a channel, firstly, a host sends a channel application request message of a broadcast type in a first channel. The channel application request message carries a channel occupation table, and the channel occupation table comprises a corresponding relation between a channel identifier and a device identifier. After receiving a broadcast type channel application request message sent by a host in a first channel, a slave queries a channel occupation table for a channel identifier of a target channel corresponding to a local device identifier, if the channel identifier of the target channel corresponding to the local device identifier is not queried, randomly selecting an idle channel from idle channels as the target channel, and determining delay sending duration according to the channel identifier of the target channel. After waiting for the time length of time delay transmission, the slave transmits a channel application response message of unicast type to the host in the target channel. The channel application response message carries the local equipment identifier. After the waiting time of the first channel reaches the preset waiting time of the channel, the host switches to a second channel with the channel identifier added with 1, receives a channel application response message which is sent by the first slave and carries the device identifier corresponding to the first slave in the second channel, and updates the channel occupation table according to the channel identifier of the second channel and the device identifier of the first slave. After the waiting time of the second channel reaches the waiting time of the channel, the host switches to a third channel with the channel identifier added with 1, receives the channel application response message and updates the channel occupation table, and so on until the last channel is ended. Through the method, after each slave receives the channel application request message sent by the host, the corresponding target channel can be selected according to the channel occupation table to send the channel application response message to the host in a time-sharing manner, so that the host can sequentially receive the channel application response message sent by the slave by switching channels according to the sequence of the channel identifiers from small to large, and the channel occupation table is updated according to the channel identifiers and the equipment identifiers of the slaves, thereby avoiding communication failure caused by common-frequency interference.
It should be understood that, although the steps in the flowcharts of fig. 3 to 7 are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps of fig. 3-7 may include steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with other steps or at least a portion of the steps or stages in other steps.
It should be understood that the same/similar parts of the embodiments of the method described above in this specification may be referred to each other, and each embodiment focuses on differences from other embodiments, and references to descriptions of other method embodiments are only needed.
The embodiment of the application also provides a device for determining a channel, as shown in fig. 8, the device is applied to a host, and the device comprises:
A broadcasting module 810, configured to send a channel application request message of a broadcast type in a first channel; the channel application request message carries a channel occupation table, and the channel occupation table comprises the corresponding relation between a channel identifier and a device identifier;
the updating module 820 is configured to switch to a second channel after the waiting duration of the first channel reaches a preset waiting duration of the channel, receive, in the second channel, a channel application response message sent by the first slave and carrying a device identifier corresponding to the first slave, and update a channel occupation table according to the channel identifier of the second channel and the device identifier of the first slave; the channel identification of the second channel is equal to the channel identification of the first channel plus 1;
a switching module 830, configured to switch to the third channel after the waiting duration of the second channel reaches the channel waiting duration, until the last channel ends; the channel identification of the third channel is equal to the channel identification of the second channel plus 1.
As an alternative embodiment, the updating module is specifically configured to:
inquiring a target equipment identifier corresponding to the channel identifier of the second channel in the channel occupation table according to the channel identifier of the second channel;
if the target equipment identifier is not queried, adding the corresponding relation between the channel identifier of the second channel and the equipment identifier of the first slave in the channel occupation table;
If the target equipment identifier is inquired, judging whether the target equipment identifier is consistent with the equipment identifier of the first slave;
if the target equipment identifier is inconsistent with the equipment identifier of the first slave, maintaining the corresponding relation between the channel identifier of the second channel and the target equipment identifier in the channel occupation table.
As an alternative embodiment, the device further comprises:
the judging module is used for adding 1 to the number of the disconnection times corresponding to the target equipment identifier if the channel application response message sent by the second slave machine to which the target equipment identifier belongs is not received in the second channel;
and the deleting module is used for deleting the corresponding relation between the channel identifier of the second channel and the target equipment identifier in the channel occupation table if the number of the unconnected times is larger than a preset threshold value of the number of the unconnected times.
As an alternative embodiment, the device further comprises:
and the zero clearing module is used for clearing the number of the disconnection times corresponding to the target equipment identifier if the target equipment identifier is consistent with the equipment identifier of the first slave.
The embodiment of the application also provides another channel determining device, as shown in fig. 9, which is applied to a slave, and includes:
a receiving module 910, configured to receive, in a first channel, a channel application request packet of a broadcast type sent by a host; the channel application request message carries a channel occupation table, and the channel occupation table comprises the corresponding relation between a channel identifier and a device identifier;
A query module 920, configured to query, in the channel occupancy table, a channel identifier of a target channel corresponding to the local device identifier;
a first determining module 930, configured to randomly select, if the channel identifier of the target channel corresponding to the local device identifier is not queried, one idle channel from among the idle channels as the target channel; the idle channel is a channel in which the corresponding relation between the channel identifier and the equipment identifier does not exist in the channel occupation table;
a second determining module 940, configured to determine a delay sending duration according to the channel identifier of the target channel and a preset channel waiting duration;
a sending module 950, configured to send a unicast type channel application response message to the host in the target channel after waiting for the delay sending duration; the channel application response message carries a local device identifier, and the local device identifier is used for updating the channel occupation table by the host.
As an alternative embodiment, the device further comprises:
and the third determining module is used for executing the second determining module if the channel identification of the target channel corresponding to the local equipment identification is queried.
The embodiment of the application provides a channel determining device, firstly, a host sends a channel application request message of a broadcast type in a first channel. The channel application request message carries a channel occupation table, and the channel occupation table comprises a corresponding relation between a channel identifier and a device identifier. After receiving a broadcast type channel application request message sent by a host in a first channel, a slave queries a channel occupation table for a channel identifier of a target channel corresponding to a local device identifier, if the channel identifier of the target channel corresponding to the local device identifier is not queried, randomly selecting an idle channel from idle channels as the target channel, and determining delay sending duration according to the channel identifier of the target channel. After waiting for the time length of time delay transmission, the slave transmits a channel application response message of unicast type to the host in the target channel. The channel application response message carries the local equipment identifier. After the waiting time of the first channel reaches the preset waiting time of the channel, the host switches to a second channel with the channel identifier added with 1, receives a channel application response message which is sent by the first slave and carries the device identifier corresponding to the first slave in the second channel, and updates the channel occupation table according to the channel identifier of the second channel and the device identifier of the first slave. After the waiting time of the second channel reaches the waiting time of the channel, the host switches to a third channel with the channel identifier added with 1, receives the channel application response message and updates the channel occupation table, and so on until the last channel is ended. Through the method, after each slave receives the channel application request message sent by the host, the corresponding target channel can be selected according to the channel occupation table to send the channel application response message to the host in a time-sharing manner, so that the host can sequentially receive the channel application response message sent by the slave by switching channels according to the sequence of the channel identifiers from small to large, and the channel occupation table is updated according to the channel identifiers and the equipment identifiers of the slaves, thereby avoiding communication failure caused by common-frequency interference.
The specific definition of the channel determining device may be referred to the definition of the channel determining method hereinabove, and will not be described herein. The respective modules in the above-described channel determination means may be implemented in whole or in part by software, hardware, and a combination 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.
In one embodiment, a computer device is provided, as shown in fig. 10, comprising a memory and a processor, the memory storing a computer program executable on the processor, the processor implementing the method steps of determining the channel as described above when executing the computer program.
In one embodiment, a computer readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the method of determining a channel as 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 is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
It should be noted that, user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method of determining a channel, the method being applied to a host, the method comprising:
transmitting a channel application request message of a broadcast type in a first channel; the channel application request message carries a channel occupation table, and the channel occupation table comprises the corresponding relation between a channel identifier and a device identifier;
after the waiting time of the first channel reaches the preset waiting time of the channel, switching to a second channel, receiving a channel application response message which is sent by a first slave and carries a device identifier corresponding to the first slave in the second channel, and updating the channel occupation table according to the channel identifier of the second channel and the device identifier of the first slave; the channel identification of the second channel is equal to the channel identification of the first channel plus 1;
and switching to a third channel after the waiting time of the second channel reaches the waiting time of the channel until the last channel is finished.
2. The method of claim 1, wherein updating the channel occupancy table based on the channel identification of the second channel and the device identification of the first slave comprises:
Inquiring a target equipment identifier corresponding to the channel identifier of the second channel in the channel occupation table according to the channel identifier of the second channel;
if the target equipment identifier is not queried, adding the corresponding relation between the channel identifier of the second channel and the equipment identifier of the first slave in the channel occupation table;
if the target equipment identifier is queried, maintaining the corresponding relation between the channel identifier of the second channel and the target equipment identifier in the channel occupation table.
3. The method according to claim 2, wherein the method further comprises:
if a channel application response message sent by a second slave machine to which the target equipment identifier belongs is not received in the second channel, the target equipment identifier is determined to be in a disconnection state, and the disconnection times corresponding to the target equipment identifier are increased by 1;
otherwise, clearing the number of the disconnection times corresponding to the target equipment identifier.
4. A method according to claim 3, characterized in that the method further comprises:
and if the number of the disconnection times is larger than a preset threshold value of the number of the disconnection times, deleting the corresponding relation between the channel identifier of the second channel and the target equipment identifier in the channel occupation table.
5. A method of determining a channel, the method being applied to a slave, the method comprising:
receiving a channel application request message of a broadcast type sent by a host in a first channel; the channel application request message carries a channel occupation table, and the channel occupation table comprises the corresponding relation between a channel identifier and a device identifier;
inquiring a channel identifier of a target channel corresponding to the local equipment identifier in the channel occupation table;
if the channel identification of the target channel corresponding to the local equipment identification is not queried, randomly selecting one idle channel from idle channels as the target channel; the idle channel is a channel in which the corresponding relation between the channel identifier and the equipment identifier does not exist in the channel occupation table;
determining a delay sending duration according to the channel identification of the target channel and a preset channel waiting duration;
after waiting for the time delay sending duration, sending a channel application response message of a unicast type to the host in the target channel; the channel application response message carries the local equipment identifier, and the local equipment identifier is used for updating the channel occupation table by the host.
6. The method of claim 5, wherein the method further comprises:
and if the channel identifier of the target channel corresponding to the local equipment identifier is queried, executing the step of determining the delay sending duration according to the channel identifier of the target channel and the preset channel waiting duration.
7. The method according to claim 5 or 6, wherein the formula for determining the delay transmission duration according to the channel identifier of the target channel and the preset channel waiting duration is:
T=k*t
wherein T represents a delay transmission duration, k represents a channel identifier of a target channel, and T represents a preset channel waiting duration.
8. A channel determining apparatus, the apparatus being applied to a host, the apparatus comprising:
the broadcasting module is used for sending a channel application request message of a broadcasting type in the first channel; the channel application request message carries a channel occupation table, and the channel occupation table comprises the corresponding relation between a channel identifier and a device identifier;
the updating module is used for switching to a second channel after the waiting time of the first channel reaches the preset waiting time of the channel, receiving a channel application response message which is sent by a first slave and carries a device identifier corresponding to the first slave in the second channel, and updating the channel occupation table according to the channel identifier of the second channel and the device identifier of the first slave; the channel identification of the second channel is equal to the channel identification of the first channel plus 1;
And the switching module is used for switching to a third channel until the last channel is finished after the waiting time of the second channel reaches the waiting time of the channel.
9. A channel determining apparatus, the apparatus being applied to a slave, the apparatus comprising:
the receiving module is used for receiving a channel application request message of a broadcast type sent by the host in a first channel; the channel application request message carries a channel occupation table, and the channel occupation table comprises the corresponding relation between a channel identifier and a device identifier;
the inquiring module is used for inquiring the channel identification of the target channel corresponding to the local equipment identification in the channel occupation table;
the first determining module is used for randomly selecting one idle channel from idle channels as the target channel if the channel identification of the target channel corresponding to the local equipment identification is not queried; the idle channel is a channel in which the corresponding relation between the channel identifier and the equipment identifier does not exist in the channel occupation table;
the second determining module is used for determining a delay sending duration according to the channel identifier of the target channel and a preset channel waiting duration;
The sending module is used for sending a channel application response message of a unicast type to the host in the target channel after waiting for the time delay sending duration; the channel application response message carries the local equipment identifier, and the local equipment identifier is used for updating the channel occupation table by the host.
10. A kitchen electrical linkage system comprising a master machine applying the method of determining a channel as claimed in claims 1 to 4 and at least one slave machine applying the method of determining a channel as claimed in claims 5 to 7.
CN202211623206.0A 2022-12-16 2022-12-16 Channel determination method and device Pending CN116017739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211623206.0A CN116017739A (en) 2022-12-16 2022-12-16 Channel determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211623206.0A CN116017739A (en) 2022-12-16 2022-12-16 Channel determination method and device

Publications (1)

Publication Number Publication Date
CN116017739A true CN116017739A (en) 2023-04-25

Family

ID=86018472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211623206.0A Pending CN116017739A (en) 2022-12-16 2022-12-16 Channel determination method and device

Country Status (1)

Country Link
CN (1) CN116017739A (en)

Similar Documents

Publication Publication Date Title
CN107466090B (en) Access point, wireless terminal, storage medium and method for communicating in available channels using pointer signals
JP6810737B2 (en) Distribution of system access information in wireless communication systems
KR102221395B1 (en) Method and apparatus for performining a communication in a wireless communication system
CN111510922B (en) Wireless network access control method, device and system
CN104703281A (en) Channel distributing method, channel distributing device and Wireless Local Area Network system
EP2436203A1 (en) Method for communicating channel operation information within a wireless communication system
US9781633B2 (en) Frequency agility for an ISM band home area network
CN108307479B (en) Communication module, network distribution method and device thereof, storage medium, equipment and terminal
CN111314185B (en) Ad hoc network method, ad hoc network response method, controlled equipment and gateway
JP6374386B2 (en) Network search with touch link option
CN106385695B (en) Method and device for sending detection response frame
US9008090B2 (en) Communication apparatus and communication method
CN110662197A (en) Parameter configuration method, device, communication equipment and storage medium
US20150181619A1 (en) Device, method and system for wireless communication on a channel selected from an available-channel list
CN108134986B (en) Message transmission method and device
CN108983627B (en) Household appliance and data sharing method and device thereof, and computer readable storage medium
CN116017739A (en) Channel determination method and device
CN111093291B (en) TDMA ad hoc network, construction method thereof, node and storage medium
CN107027126B (en) Data communication method and system, terminal equipment and control equipment
CN108495299B (en) Method and device for receiving service information and multimode terminal
CN112888063A (en) Remote terminal network access method, system, electronic device and storage medium
CN106888482B (en) Terminal, LTE-U base station and communication method thereof
CN114945202B (en) Channel switching method and device for low-voltage area micropower wireless communication network
CN113747598B (en) Communication method, terminal, host and smoke collecting and exhausting machine system
CN105407484A (en) Broadcast information processing method, device and system based on intelligent terminal system

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