CN114285692A - Communication control system, identity determination method, allocation method and device - Google Patents

Communication control system, identity determination method, allocation method and device Download PDF

Info

Publication number
CN114285692A
CN114285692A CN202111583415.2A CN202111583415A CN114285692A CN 114285692 A CN114285692 A CN 114285692A CN 202111583415 A CN202111583415 A CN 202111583415A CN 114285692 A CN114285692 A CN 114285692A
Authority
CN
China
Prior art keywords
identity
sub
equipment
switch
bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111583415.2A
Other languages
Chinese (zh)
Other versions
CN114285692B (en
Inventor
邓海波
李洪权
雷先峰
罗青松
王坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xaircraft Technology Co Ltd
Original Assignee
Guangzhou Xaircraft Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xaircraft Technology Co Ltd filed Critical Guangzhou Xaircraft Technology Co Ltd
Priority to CN202111583415.2A priority Critical patent/CN114285692B/en
Publication of CN114285692A publication Critical patent/CN114285692A/en
Application granted granted Critical
Publication of CN114285692B publication Critical patent/CN114285692B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application provides a communication control system, an identity determination method, an allocation method and equipment, and belongs to the technical field of bus control. The system comprises: a master device and a plurality of child devices; the main control equipment is connected with each sub-equipment through a bus; each sub-device comprises: a controller and a switch assembly; the controller is connected with the switch assembly and used for controlling the switch assembly to be disconnected when the sub-equipment is powered on for the first time and sending an identity request signal to the main control equipment through the bus; the switch components of each sub-device are sequentially connected in series; the master control equipment receives the identity request signal through the bus and sends the identity of the sub-equipment to the sub-equipment through the bus. The method and the device can improve the efficiency and the accuracy of configuring the identity.

Description

Communication control system, identity determination method, allocation method and device
Technical Field
The present application relates to the field of bus control technologies, and in particular, to a communication control system, an identity determination method, an assignment method, and a device.
Background
In order to implement unified management control among multiple sub-devices, it is generally required to configure a corresponding ID (Identity) for each sub-device associated with the main control device, and indicate a corresponding actual address location of each sub-device by using the ID.
In the prior art, in the process of identity configuration, configuration is usually performed manually. Specifically, each ID and the actual address location corresponding to the ID are manually entered in the master device by a maintenance person.
However, when the number of the sub-devices is large, manual configuration may cause time and labor consuming and configuration errors to occur easily, resulting in inefficient configuration of the ID.
Disclosure of Invention
The application aims to provide a communication control system, an identity determination method, an allocation method and equipment, which can improve the efficiency and accuracy of identity configuration.
The embodiment of the application is realized as follows:
in one aspect of the embodiments of the present application, a communication control system is provided, including: a master device and a plurality of child devices;
the main control equipment is connected with each sub-equipment through a bus, and the bus is used for communication connection between the main control equipment and the sub-equipment;
each sub-device comprises: a controller and a switch assembly;
the controller is respectively connected with the switch assembly and the bus, and is used for controlling the switch assembly to be disconnected when the sub-equipment is powered on for the first time and sending an identity request signal to the main control equipment through the bus;
the switch components of each sub-device are sequentially connected in series;
the master control equipment receives the identity request signal through the bus and sends the identity of the sub-equipment to the sub-equipment through the bus.
Optionally, the switch assembly comprises: a switch and a drive unit;
the switch is connected with the driving unit, and the driving unit is connected with the controller;
the controller is used for sending a level signal to the driving unit when the sub-equipment is powered on for the first time;
the driving unit is used for controlling the switch to be disconnected according to the level signal.
Optionally, the switch is an analog switch or a normally closed relay.
Optionally, the identity of the sub-device is associated with one or more plots.
In another aspect of the embodiments of the present application, there is provided an identity determining method of a communication control system, where the method is applied to a controller in a sub-device, and the method includes:
when the sub-equipment is powered on for the first time, the control switch assembly is disconnected, and an identity request signal is sent to the main control equipment;
and receiving and storing the identity identifier sent by the master control equipment.
Optionally, when the sub-device is powered on for the first time, controlling the switch assembly to be turned off includes:
when the sub-device is powered on for the first time, a level signal is sent to the driving unit, so that the driving unit controls the switch to be switched off based on the level signal.
Optionally, when the sub-device is powered on for the first time and before the control switch assembly is turned off, the method further includes:
when the sub-equipment is powered on, judging whether the identity of the sub-equipment is an initial identity or not;
and if so, determining that the sub-equipment is powered on for the first time.
In another aspect of the embodiments of the present application, an identity allocation method for a communication control system is provided, where the method is applied to a master control device, and the method includes:
receiving a current identity request signal sent by target sub-equipment;
generating an identity for the target sub-device based on the identity request signal and the currently allocated identity;
and sending the identity to the target sub-equipment.
Optionally, generating an identity for the target sub-device based on the identity request signal and the currently assigned identity, including:
and based on the identity request signal, adding one to the currently allocated identity to obtain the identity of the target sub-equipment.
Optionally, after adding one to the currently allocated identity based on the identity request signal to obtain the identity of the target sub-device, the method further includes:
and taking the identity of the target sub-device as a new currently allocated identity.
Optionally, the method further comprises:
and establishing and storing the association relationship between the target sub-equipment and the target parcel according to the identity of the target sub-equipment and the identity of each parcel.
In another aspect of the embodiments of the present application, an identity determination apparatus of a communication control system is provided, where the apparatus includes: the device comprises a control module and a receiving module;
the control module is used for controlling the switch assembly to be disconnected when the sub-equipment is powered on for the first time and sending an identity request signal to the main control equipment;
and the receiving module is used for receiving and storing the identity identifier sent by the main control equipment.
Optionally, the control module is specifically configured to send a level signal to the driving unit when the sub-device is powered on for the first time, so that the driving unit controls the switch to be turned off based on the level signal.
Optionally, the control module is further configured to determine whether the identity of the sub-device is an initial identity when the sub-device is powered on; and if so, determining that the sub-equipment is powered on for the first time.
In another aspect of the embodiments of the present application, an identity allocation method for a communication control system is provided, where the apparatus includes: the device comprises a collection module, a determination module and a sending module;
the collection module is used for receiving a current identity request signal sent by the target sub-equipment;
the determining module is used for generating an identity identifier for the target sub-equipment based on the identity request signal and the currently allocated identity identifier;
and the sending module is used for sending the identity to the target sub-equipment.
Optionally, the determining module is specifically configured to add one to the currently assigned identity based on the identity request signal to obtain the identity of the target sub-device.
And the determining module is also used for taking the identity of the target sub-device as a new currently allocated identity.
In another aspect of the embodiments of the present application, an internet of things device is provided, including: the first processor executes the computer program to realize the steps of the identity determination method of the communication control system.
In another aspect of the embodiments of the present application, a master control device is provided, including: the second processor executes the computer program to realize the steps of the identity allocation method of the communication control system.
In another aspect of the embodiments of the present application, a computer-readable storage medium is provided, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the identity determination method of the communication control system and the identity allocation method of the communication control system.
The beneficial effects of the embodiment of the application include:
in the communication control system, the identity determination method, the allocation method and the device provided by the embodiment of the application, the main control device is connected with each sub-device through a bus; each sub-device comprises: a controller and a switch assembly; the controller is respectively connected with the switch assembly and the bus, and is used for controlling the switch assembly to be disconnected when the sub-equipment is powered on for the first time and sending an identity request signal to the main control equipment through the bus; the switch components of each sub-device are sequentially connected in series; the master control equipment receives the identity request signal through the bus and sends the identity of the sub-equipment to the sub-equipment through the bus. The bus is sequentially connected with the switch assemblies of the sub-devices in series, so that the corresponding identity can be sequentially determined for each sub-device when the sub-devices are powered on for the first time, the identity corresponding to each sub-device can be recorded on the main control device, and accordingly, the efficiency and accuracy of identity configuration can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a first schematic structural diagram of a communication control system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a communication control system according to an embodiment of the present application;
fig. 3 is a schematic flowchart of an identity determination method of a communication control system according to an embodiment of the present application;
fig. 4 is a flowchart illustrating an identity assignment method of a communication control system according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an identity determination device of a communication control system according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an identity allocating apparatus of a communication control system according to an embodiment of the present application;
fig. 7 is a first schematic structural diagram of an internet of things device provided in the embodiment of the present application;
fig. 8 is a schematic structural diagram of a second main control device according to an embodiment of the present application.
Icon: 100-a master control device; 200-a sub-device; 210-a controller; 220-a switch assembly; 221-a switch; 222-a drive unit; 223-a pull-down resistor; 300-a bus; 610-a control module; 620-a receiving module; 710-a collection module; 720-a determination module; 730-a sending module; 810-a first memory; 820-a first processor; 910-a second memory; 920-second processor.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. 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 application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it is noted that the terms "first", "second", "third", and the like are used merely for distinguishing between descriptions and are not intended to indicate or imply relative importance.
The specific structural relationship of the communication control system in the embodiment of the present application and the included devices are specifically explained below.
Fig. 1 is a schematic structural diagram of a communication control system according to an embodiment of the present application, and referring to fig. 1, the communication control system includes: a master device 100 and a plurality of child devices 200; the main control device 100 is connected with each sub-device 200 through a bus, and the bus is used for communication connection between the main control device 100 and the sub-devices 200; each child device 200 includes: a controller 210 and a switch assembly 220; the controller 210 is respectively connected to the switch component 220 and the bus 300, and is configured to control the switch component 220 to be disconnected when the child device 200 is powered on for the first time, and send an identity request signal to the master control device 100 through the bus 300; the switch assemblies 220 of the sub-devices 200 are sequentially connected in series; the master device 100 receives the identity request signal through the bus 300 and transmits the identity of the child device to the child device 200 through the bus 300.
Optionally, the communication control system may specifically be a system that controls a plurality of sub-devices through the main control device, and may specifically be applied to the field of irrigation, for example, each sub-device may be controlled by one main control device in a bus manner, and each sub-device may specifically be an irrigation device and the like correspondingly disposed in a field in a certain area.
The communication control system in the irrigation field shown above is only an example, and may be applied to any scene meeting the control condition in the actual production life, and is not limited thereto.
Optionally, the master control device 100 may specifically be any type of computer device, such as: a computer, a tablet computer, a mobile phone, a dedicated electronic device, etc., which are not specifically limited herein; the sub-device 200 may be any electronic device controlled by the main control device 100, and may also be a computer, a tablet computer, a mobile phone, a special sub-device (such as an automatic irrigation device), and the like.
Alternatively, the bus 300 may specifically be any type of working bus, such as: RS485 bus, CAN (Controller Area Network) bus, etc., and is not particularly limited herein. The master device 100 and each of the child devices 200 are connected by a bus, and the bus 300 is used for communication connection between the master device 100 and the child devices 200.
Alternatively, the bus 300 may be a power bus in power carrier communication, that is, the power supply and the communication are the same set of bus, and the power supply is cut off while the communication is cut off.
It should be noted that the method of the present application is intended to cut off the power supply, which corresponds to phase change cut-off communication.
Optionally, the controller body 210 in the sub-device 200 may be an MCU (micro controller Unit), and the switch component 220 may be a switch for controlling connection to be turned off, and the switch component is kept in a normally closed state in an initial state, so that when one of the sub-devices is abnormal, access to the bus of the other sub-devices is not affected. When the controller 210 is powered on, if it is detected as being powered on for the first time, the switch assembly 220 may be controlled to be disconnected.
It should be noted that, because the switch elements 220 of the sub-devices 200 are sequentially connected in series on the bus, when one of the switch elements 220 is turned off, the communication between the sub-device at the later stage and the main control device is disconnected.
When identity authentication is performed, the specific authentication process is as follows:
in the process of performing the identity authentication of the first power-on of the sub-devices, because the switch components 220 of the sub-devices 200 are in a serial relationship, when each sub-device 200 is authenticated, the sub-devices 200 are sequentially authenticated, when the first sub-device 200 is authenticated, the main control device 100 communicates with the first sub-device 200 through the communication bus 300, the controller 210 determines whether the identity of the main control device is an initial identity, if the initial identity is the first sub-device, it can be determined that the sub-device is powered on for the first time, the switch components 220 can be controlled to be turned off, after the switch components 220 are turned off, due to the serial relationship, the communication between the other sub-devices and the main control device 100 is turned off, the controller 210 of the first sub-device can send an identity request signal to the main control device 100 through the bus, the main control device 100 determines the identity of the sub-device based on the identity request signal and the currently assigned identity, for example: the initial identity of the sub-device is "0", the identity determined after the first sub-device is authenticated is "1", after the authentication is completed, the main control device may send the identity to the controller 210 of the corresponding sub-device, and the controller of the sub-device may store the identity as a new identity (replacing the initial identity).
When the second sub-device 200 is authenticated, since the identity of the first sub-device is not the initial identity, the controller 210 determines that the first sub-device is not powered on for the first time, and the switch component 220 is not turned off; the second sub-device 200 repeatedly performs the foregoing identity authentication process, and during the authentication process of the main control device 100, the identity of the sub-device may be determined based on the identity request signal and the currently assigned identity, for example, the identity of the second sub-device may be determined to be "2" (different from the initial identity and the authenticated identity, specifically, the setting may be performed according to a digital increment or decrement according to an actual requirement, which is not limited herein). Accordingly, the master device may send the identity to the controller 210 of the corresponding sub-device, and the controller of the sub-device may store the identity as a new identity (instead of the original identity).
The authentication process is repeated to sequentially implement the authentication of each sub-device, and the process is the same as the above process, which is not repeated herein.
In a communication control system provided in an embodiment of the present application, a master control device is connected to each of sub-devices through a bus, and the bus is used for communication connection between the master control device and the sub-devices; each sub-device comprises: a controller and a switch assembly; the controller is respectively connected with the switch assembly and the bus, and is used for controlling the switch assembly to be disconnected when the sub-equipment is powered on for the first time and sending an identity request signal to the main control equipment through the bus; the switch components of each sub-device are sequentially connected in series; the master control equipment receives the identity request signal through the bus and sends the identity of the sub-equipment to the sub-equipment through the bus. The bus is sequentially connected with the switch assemblies of the sub-devices in series, so that the corresponding identity can be sequentially determined for each sub-device when the sub-devices are powered on for the first time, the identity corresponding to each sub-device can be recorded on the main control device, and accordingly, the efficiency and accuracy of identity configuration can be improved.
The following specifically explains a specific structural relationship of the switch assembly in the communication control system provided in the embodiment of the present application.
Fig. 2 is a schematic structural diagram of a communication control system according to an embodiment of the present application, and referring to fig. 2, a switch element 220 includes: a switch 221 and a driving unit 222; the switch 221 is connected with the driving unit 222, and the driving unit 222 is connected with the controller 210; the controller 210 is configured to send a level signal to the driving unit 222 when the sub-device 200 is powered on for the first time; the driving unit 222 is used for controlling the switch 221 to disconnect according to the level signal.
Optionally, the switch 221 is an analog switch or a normally closed relay, the driving unit 222 may be specifically connected to an input/output port of the controller 210, the controller 210 may output a high/low level signal, and when the output level signal is a high level signal, the driving unit 222 may be operated to open the switch 221.
Optionally, the switch assembly 220 may further include: one end of the pull-down resistor 223 is connected to the driving unit 222, and the other end of the pull-down resistor is grounded, specifically, the pull-down resistor may be a 10K Ω resistor, when the controller 210 is not powered, the driving unit 222 may be pulled down, so that the driving unit 222 controls the switch 221 to be kept closed, wherein the switch 221 is an analog switch or a normally closed relay, and when the switch 221 is a normally closed relay, if a sub-device of a certain node is damaged, the switch 221 may still be kept in a closed state, so that communication of a rear-stage sub-device is prevented from being cut off.
Optionally, the identity of the sub-device is associated with one or more plots.
Taking field irrigation as an example, in a field irrigation system, there may be a plurality of plots, each sub-device is used for irrigating one or more of the plots, and each plot may be provided with a plot identifier.
For example: an identifier can be set for each land, and the identifier of each land and the identity of the corresponding sub-equipment for irrigation are associated.
By utilizing the incidence relation, the information and the like of the sub-equipment associated with each region can be obtained in time
For example, each sub-device is associated with a parcel, the parcel is identified as "parcel 1", "parcel 2" … … "parcel N"; the identities of the kid devices are "ID 1", "ID 2" … … "IDN". Then "parcel 1" may be associated with "ID 1," parcel 2 "may be associated with" ID2, "parcel N" may be associated with "IDN.
The above is only one possible example, and not intended to be limiting.
The following specifically explains a specific implementation procedure of the identity determination method of the communication control system provided in the embodiment of the present application.
Fig. 3 is a flowchart illustrating an identity determination method of a communication control system according to an embodiment of the present application, please refer to fig. 3, where the method is applied to a controller in a sub-device, and the method includes:
s410: when the sub-equipment is powered on for the first time, the control switch assembly is disconnected, and an identity request signal is sent to the main control equipment.
S420: and receiving and storing the identity identifier sent by the master control equipment.
Optionally, the specific implementation process of S410-S420 is specifically described in the foregoing explanation of the system, and is not described herein again.
In the identity determination method of the communication control system provided by the embodiment of the application, when the sub-device is powered on for the first time, the switch component is controlled to be switched off, an identity request signal is sent to the main control device, and the identity identifier sent by the main control device is received and stored. The switch assemblies of the sub-devices can be sequentially connected in series through the bus, so that the corresponding identification can be sequentially determined for each sub-device when the sub-devices are powered on for the first time, the identification corresponding to each sub-device can be recorded on the main control device, and accordingly timeliness and accuracy of identification determination for each sub-device can be improved.
Optionally, when the sub-device is powered on for the first time, controlling the switch assembly to be turned off includes: when the sub-device is powered on for the first time, a level signal is sent to the driving unit, so that the driving unit controls the switch to be switched off based on the level signal.
Optionally, when the sub-device is powered on for the first time and before the control switch assembly is turned off, the method further includes: when the sub-equipment is powered on, judging whether the identity of the sub-equipment is an initial identity or not; and if so, determining that the sub-equipment is powered on for the first time.
Optionally, before the control switch works, it may be determined whether the current power-on is the initial power-on, since the controller may update according to the identity sent by the main control device after the initial power-on, the identity of the current sub-device may be detected during power-on, and if the current identity is the initial identity, the sub-device is determined to be the initial power-on; if the identity is not the initial identity, it can be determined that the sub-device has been powered on, and a subsequent identity determination process is not required.
The following specifically explains a specific implementation procedure of the identity assignment method of the communication control system provided in the embodiment of the present application.
Fig. 4 is a flowchart illustrating an identity allocation method of a communication control system according to an embodiment of the present application, please refer to fig. 4, where the method is applied to a master control device, and the method includes:
s510: and receiving a current identity request signal sent by the target sub-device.
S520: and generating the identity for the target sub-equipment based on the identity request signal and the currently allocated identity.
S530: and sending the identity to the target sub-equipment.
Optionally, the specific implementation process of S510-S530 is specifically described in the foregoing explanation of the system, and is not described herein again.
Optionally, generating an identity for the target sub-device based on the identity request signal and the currently assigned identity, including: and based on the identity request signal, adding one to the currently allocated identity to obtain the identity of the target sub-equipment.
For example, an initial identity may be set to "0", and if the currently allocated identities are 0, the identity of the child device from which the identity request signal originates may be determined to be "1" based on the identity request signal; accordingly, if there are 10 currently assigned ids, the id of the source sub-device of the id request signal may be determined to be "11" based on the id request signal.
Optionally, the foregoing allocation manner is only an example, and in an actual implementation process, a determination order of each identity may be set according to an actual requirement, for example: increasing, decreasing, or other permutation order, etc., without limitation.
Optionally, after adding one to the currently allocated identity based on the identity request signal to obtain the identity of the target sub-device, the method further includes: and taking the identity of the target sub-device as a new currently allocated identity.
Optionally, after each id of one sub-device is determined, the currently allocated id stored in the master device may be updated, for example: after the sub-device with the identity identifier of "2" is determined, the currently allocated identity identifier may be updated to "2", and when the identity identifier of the next sub-device is determined, one may be added directly on the basis of the updated currently allocated identity identifier to complete the determination process.
In the identity allocation method of the communication control system provided by the embodiment of the application, a current identity request signal sent by a target sub-device can be received; generating an identity for the target sub-device based on the identity request signal and the currently allocated identity; and sending the identity to the target sub-equipment. The switch assemblies of the sub-devices can be sequentially connected in series through the bus, so that the corresponding identification can be sequentially determined for each sub-device when the sub-devices are powered on for the first time, the identification corresponding to each sub-device can be recorded on the main control device, and accordingly timeliness and accuracy of identification determination for each sub-device can be improved.
Optionally, the method further comprises: and establishing and storing the association relationship between the target sub-equipment and the target parcel according to the identity of the target sub-equipment and the identity of each parcel.
In the process of allocating the identity of the sub-device by the main control device, the association relationship between the target sub-device and the target parcel can be established.
For example: in a farmland irrigation system, each sub-device corresponds to one or more target plots, the sub-device is used for carrying out irrigation and other work on the corresponding target plots, and after an identity is distributed to a first sub-device, the plot identification of the target plot corresponding to the first sub-device can be determined, so that the plot identification of the target plot corresponding to the identity of each sub-device can be determined, and the corresponding incidence relation is established and stored.
The main control device (or other electronic devices connected to the main control device) may determine the target parcel corresponding to each sub-device based on the association relationship, and when the user queries information of the sub-device based on the main control device, the main control device may provide information of the target parcel corresponding to each sub-device, where the information of the target parcel may be pre-stored in the main control device, and may be called and acquired after determining a parcel identifier of the target parcel.
Optionally, the main control device may be in communication connection with a mobile terminal, where the mobile terminal may be a mobile phone or other electronic devices, an application program may be set in the mobile terminal, and a user may operate the application program, for example: the mobile terminal can respond to the query of the user to the target sub-device, and can acquire the identity of the target sub-device and the parcel information of the target parcel corresponding to the target sub-device through the main control device.
In practical applications, based on the association relationship pre-stored in the main control device, the target parcel may also be queried through the mobile terminal, so as to determine the target sub-device corresponding to the target parcel, and the like, which is not limited herein.
According to the identity distribution method of the communication control system, the incidence relation between the target sub-equipment and the target plot can be established and stored based on the identity of the target sub-equipment and the identity of each plot, so that a user can conveniently obtain the information of each sub-equipment and the information of the plot corresponding to each sub-equipment in time, and the working efficiency of the farmland irrigation system is improved.
The following describes apparatuses, devices, storage media, and the like corresponding to the method for determining an identity of a communication control system and the method for allocating an identity of a communication control system provided in the present application, and specific implementation procedures and technical effects thereof are referred to above and will not be described again below.
Fig. 5 is a schematic structural diagram of an identity determination apparatus of a communication control system according to an embodiment of the present application, please refer to fig. 5, where the apparatus includes: a control module 610, a receiving module 620;
the control module 610 is configured to control the switch assembly to be turned off when the sub-device is powered on for the first time, and send an identity request signal to the main control device;
and the receiving module 620 is configured to receive and store the identity identifier sent by the master control device.
Optionally, the control module 610 is specifically configured to send a level signal to the driving unit when the sub-device is powered on for the first time, so that the driving unit controls the switch to be turned off based on the level signal.
Optionally, the control module 610 is further configured to determine, when the sub device is powered on, whether the identity of the sub device is an initial identity; and if so, determining that the sub-equipment is powered on for the first time.
Fig. 6 is a schematic structural diagram of an identity allocating apparatus of a communication control system according to an embodiment of the present application, please refer to fig. 6, where the apparatus includes: a collection module 710, a determination module 720, a sending module 730;
a collecting module 710, configured to receive a current identity request signal sent by a target child device;
a determining module 720, configured to generate an identity for the target sub-device based on the identity request signal and the currently allocated identity;
a sending module 730, configured to send the identity to the target sub-device.
Optionally, the determining module 720 is specifically configured to add one to the currently assigned identity based on the identity request signal to obtain the identity of the target sub-device.
The determining module 720 is further configured to use the identity of the target sub-device as the new currently allocated identity.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 7 is a first structural schematic diagram of an internet of things device provided in an embodiment of the present application, please refer to fig. 7, the internet of things device includes: the first memory 810 and the first processor 820, wherein the first memory 810 stores a computer program operable on the first processor 820, and the first processor 820 executes the computer program to implement the steps of the identity determination method of the communication control system.
Alternatively, the internet of things device shown in fig. 7 may specifically be any one of the foregoing sub-devices.
Fig. 8 is a schematic structural diagram of a second main control device according to an embodiment of the present application, please refer to fig. 8, where the second main control device includes: a second memory 910 and a second processor 920, wherein the second memory 910 stores a computer program operable on the second processor 920, and the second processor 920 executes the computer program to implement the steps of the identity assigning method of the communication control system.
In another aspect of the embodiments of the present application, a computer-readable storage medium is further provided, where the storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the identity determination method of the communication control system and the identity allocation method of the communication control system.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (15)

1. A communication control system, comprising: a master device and a plurality of child devices;
the main control equipment is connected with each sub-equipment through a bus, and the bus is used for communication connection between the main control equipment and the sub-equipment;
each of the sub-devices includes: a controller and a switch assembly;
the controller is respectively connected with the switch assembly and the bus, and is used for controlling the switch assembly to be disconnected when the sub-equipment is powered on for the first time and sending an identity request signal to the main control equipment through the bus;
the switch components of each sub-device are sequentially connected in series;
and the master control equipment receives the identity request signal through the bus and sends the identity of the sub-equipment to the sub-equipment through the bus.
2. The system of claim 1, wherein the switch assembly comprises: a switch and a drive unit;
the switch is connected with the driving unit, and the driving unit is connected with the controller;
the controller is used for sending a level signal to the driving unit when the sub-equipment is powered on for the first time;
the driving unit is used for controlling the switch to be disconnected according to the level signal.
3. The system of claim 2, wherein the switch is an analog switch or a normally closed relay.
4. A system according to any of claims 1-3, wherein the identity of each sub-device is associated with one or more respective plots.
5. An identity determination method of a communication control system, wherein the method is applied to a controller in a sub-device according to any one of claims 1 to 4, and the method comprises:
when the sub-equipment is powered on for the first time, the control switch assembly is disconnected, and an identity request signal is sent to the main control equipment;
and receiving and storing the identity identifier sent by the master control equipment.
6. The method of claim 5, wherein controlling the switching assembly to open upon initial power-up of the kid device comprises:
when the sub-device is powered on for the first time, a level signal is sent to a driving unit, so that the driving unit controls a switch to be switched off based on the level signal.
7. The method of claim 5, wherein prior to controlling the switch assembly to open upon initial power-up of the kid device, the method further comprises:
when the sub-equipment is powered on, judging whether the identity of the sub-equipment is an initial identity or not;
and if so, determining that the sub-equipment is powered on for the first time.
8. The method of claim 5, wherein the identity of the child device is associated with one or more places.
9. An identity distribution method of a communication control system, wherein the method is applied to the master control device according to any one of claims 1 to 4, and the method comprises the following steps:
receiving a current identity request signal sent by target sub-equipment;
generating an identity for the target sub-device based on the identity request signal and the currently assigned identity;
and sending the identity to the target sub-equipment.
10. The method of claim 9, wherein generating an identity for the target sub-device based on the identity request signal and a currently assigned identity comprises:
and adding one to the currently allocated identity based on the identity request signal to obtain the identity of the target sub-device.
11. The method of claim 10, wherein after the step of adding one to the currently assigned id to obtain the id of the target sub-device based on the id request signal, further comprises:
and taking the identity of the target sub-equipment as a new currently allocated identity.
12. The method of claim 10, wherein the method further comprises:
and establishing and storing the association relationship between the target sub-equipment and the target parcel according to the identity of the target sub-equipment and the identity of each parcel.
13. An internet of things device, comprising: a first memory in which a computer program is stored, the computer program being executable on the first processor, the first processor implementing the steps of the method of any of the preceding claims 5 to 8 when executing the computer program.
14. A master device, comprising: a second memory in which a computer program is stored, the computer program being executable on the second processor, and a second processor, the second processor implementing the steps of the method according to any of the preceding claims 9 to 12 when executing the computer program.
15. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any one of claims 5 to 8 and/or 9 to 12.
CN202111583415.2A 2021-12-22 2021-12-22 Communication control system, identity determination method, distribution method and equipment Active CN114285692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111583415.2A CN114285692B (en) 2021-12-22 2021-12-22 Communication control system, identity determination method, distribution method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111583415.2A CN114285692B (en) 2021-12-22 2021-12-22 Communication control system, identity determination method, distribution method and equipment

Publications (2)

Publication Number Publication Date
CN114285692A true CN114285692A (en) 2022-04-05
CN114285692B CN114285692B (en) 2023-09-01

Family

ID=80873974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111583415.2A Active CN114285692B (en) 2021-12-22 2021-12-22 Communication control system, identity determination method, distribution method and equipment

Country Status (1)

Country Link
CN (1) CN114285692B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174522A (en) * 2022-07-05 2022-10-11 易事特储能科技有限公司 Electronic equipment ID configuration method, device, equipment and readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102862487A (en) * 2011-07-05 2013-01-09 北汽福田汽车股份有限公司 Battery control system of car
US20130091380A1 (en) * 2011-10-07 2013-04-11 International Business Machines Corporation Dynamically Reconfiguring A Primary Processor Identity Within A Multi-Processor Socket Server
CN105940661A (en) * 2014-02-03 2016-09-14 高通股份有限公司 Device identification generation in electronic devices to allow external control of device identification for bus communications identification, and related systems and methods
CN106482080A (en) * 2016-12-29 2017-03-08 广州视声智能股份有限公司 A kind of relay client/server system
WO2018112942A1 (en) * 2016-12-23 2018-06-28 深圳前海达闼云端智能科技有限公司 Device authentication method, apparatus, electronic device and slave device
CN208126373U (en) * 2018-05-07 2018-11-20 广州视源电子科技股份有限公司 A kind of the detection response circuit and iic bus system of IIC failure
US20200169466A1 (en) * 2018-11-23 2020-05-28 Samsung Sdi Co., Ltd. Slave module and number assignment system including the same
CN111586204A (en) * 2020-05-12 2020-08-25 广州极飞科技有限公司 Communication address allocation method, communication system, master device and slave device
CN113395198A (en) * 2021-06-16 2021-09-14 广州极飞科技股份有限公司 Networking method and device of equipment and data transmission system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102862487A (en) * 2011-07-05 2013-01-09 北汽福田汽车股份有限公司 Battery control system of car
US20130091380A1 (en) * 2011-10-07 2013-04-11 International Business Machines Corporation Dynamically Reconfiguring A Primary Processor Identity Within A Multi-Processor Socket Server
CN105940661A (en) * 2014-02-03 2016-09-14 高通股份有限公司 Device identification generation in electronic devices to allow external control of device identification for bus communications identification, and related systems and methods
WO2018112942A1 (en) * 2016-12-23 2018-06-28 深圳前海达闼云端智能科技有限公司 Device authentication method, apparatus, electronic device and slave device
CN106482080A (en) * 2016-12-29 2017-03-08 广州视声智能股份有限公司 A kind of relay client/server system
CN208126373U (en) * 2018-05-07 2018-11-20 广州视源电子科技股份有限公司 A kind of the detection response circuit and iic bus system of IIC failure
US20200169466A1 (en) * 2018-11-23 2020-05-28 Samsung Sdi Co., Ltd. Slave module and number assignment system including the same
CN111586204A (en) * 2020-05-12 2020-08-25 广州极飞科技有限公司 Communication address allocation method, communication system, master device and slave device
CN113395198A (en) * 2021-06-16 2021-09-14 广州极飞科技股份有限公司 Networking method and device of equipment and data transmission system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174522A (en) * 2022-07-05 2022-10-11 易事特储能科技有限公司 Electronic equipment ID configuration method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN114285692B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
CN112073471B (en) Control method and device of equipment, storage medium and electronic device
CN111885144B (en) Equipment binding method and device
CN113133086B (en) Intelligent device network distribution method and device, electronic device and storage medium
CN104426927B (en) A kind of intercommunication terminal parameter setting method and system
CN111130962B (en) Automatic configuration method, equipment, system and storage medium for switch
EP4274190A1 (en) Smart device control method and apparatus, electronic device, and computer readable medium
CN104683195A (en) Configuration method of equipment to be configured in intelligent household system
CN112083972B (en) BMC system configuration method, device, equipment and readable storage medium
CN114285692A (en) Communication control system, identity determination method, allocation method and device
CN110113232A (en) Apparatus control method, device, system, electronic equipment and storage medium
CN114374602A (en) Master control equipment configuration method and device, cloud server and storage medium
CN109274561B (en) Method and device for determining gateway role
CN113436631B (en) Voice information processing method and system and device for voice information processing
CN114461294A (en) Method for quickly constructing application service, computer device and storage medium
CN114697150A (en) Command issuing method and device, storage medium and electronic device
CN110851186B (en) Network equipment restarting method and device, electronic equipment and readable storage medium
CN111683372A (en) Processing method and device of attribute information, processor and terminal
CN110324217A (en) Control method, device, electronic equipment and the storage medium of equipment triggering
CN109542841A (en) The method and terminal device of data snapshot are created in cluster
CN104703250A (en) Method for configuring PANID (personal area network identifier) on ZigBee terminal
CN107807619A (en) Intelligent home control system and its method of work based on virtual server module
CN109446027B (en) Scene triggering method and device based on bus system
CN108196962B (en) Method and device for realizing calling of interfaces of different versions
CN108206784B (en) Network topology generation method and device for smart home
CN109542492A (en) A kind of method, system and the equipment of FPGA board online updating

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant