CN116546667A - Control method and device of sensor system, computer equipment and storage medium - Google Patents

Control method and device of sensor system, computer equipment and storage medium Download PDF

Info

Publication number
CN116546667A
CN116546667A CN202310386854.7A CN202310386854A CN116546667A CN 116546667 A CN116546667 A CN 116546667A CN 202310386854 A CN202310386854 A CN 202310386854A CN 116546667 A CN116546667 A CN 116546667A
Authority
CN
China
Prior art keywords
sensor
sensors
target
group
working
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
CN202310386854.7A
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.)
Shenzhen Kaihong Digital Industry Development Co Ltd
Original Assignee
Shenzhen Kaihong Digital Industry Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Kaihong Digital Industry Development Co Ltd filed Critical Shenzhen Kaihong Digital Industry Development Co Ltd
Priority to CN202310386854.7A priority Critical patent/CN116546667A/en
Publication of CN116546667A publication Critical patent/CN116546667A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • 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 control method, a control device, computer equipment, a system and a storage medium of a sensor system, and relates to the technical field of computers. The control method comprises the following steps: acquiring types of a plurality of sensors, and grouping sensor clusters according to the types of the sensors to obtain a plurality of sensor groups; acquiring the working requirements of the sensor, and determining the working mode of a sensor group according to the working requirements of the sensor; if the working mode of the sensor group is a center mode, determining a target sensor corresponding to the sensor group; the method comprises the steps that sensors in a control sensor group collect environment data, so that a target sensor sends the environment data to a server through a distributed soft bus; and if the working mode of the sensor group is a centerless mode, controlling the sensors in the sensor group to acquire environment data, and sending the environment data to the server through the distributed soft bus. The application aims to improve the communication quality of the sensor system and improve the working efficiency of the sensor system.

Description

Control method and device of sensor system, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a control method of a sensor system, a control device of the sensor system, a computer device, a sensor system, and a storage medium.
Background
The existing distributed sensor system mainly comprises a sensor and a small computer, wherein the sensor acquires surrounding measurement targets, and the small computer collects measurement data acquired by the sensor and transmits the measurement data back to a data center. The process is mainly transmitted to the background through the communication function of the distributed sensor.
When the heterogeneous degree of the sensor system is complex, for example, two or more sensors are used for detecting one area, the sensor system is difficult to divide work service and simultaneously difficult to communicate with a server well, so that the distributed sensor system can transmit redundant and redundant data back to the background, and the problem of poor communication quality exists.
Disclosure of Invention
The application provides a control method of a sensor system, a control device of the sensor system, computer equipment, the sensor system and a storage medium, and aims to improve the communication quality of the sensor system when the heterogeneous degree of the sensor system is complex, simplify the service logic of the sensor system and improve the working efficiency of the sensor system.
In a first aspect, the present application provides a control method of a sensor system, where the sensor system includes a sensor cluster, and is connected to a server through a distributed soft bus, and is used to control a sensor in the sensor cluster to work, where the sensor cluster includes a plurality of sensors, and the plurality of sensors are connected through the distributed soft bus to form the sensor cluster; the control method comprises the following steps:
acquiring types of the plurality of sensors, and grouping the sensor clusters according to the types of the sensors to obtain a plurality of sensor groups;
acquiring the working requirement of the sensor, and determining the working mode of the sensor group according to the working requirement of the sensor;
if the working mode of the sensor group is a center mode, determining a target sensor corresponding to the sensor group;
controlling sensors in the sensor group to acquire environment data, and sending the environment data acquired by each sensor to the target sensor through the distributed soft bus, so that the target sensor sends the environment data to the server through the distributed soft bus;
And if the working mode of the sensor group is a centerless mode, controlling the sensors in the sensor group to acquire environment data, and sending the environment data to the server through a distributed soft bus.
In a second aspect, the present application provides a control device of a sensor system, where the sensor system includes a sensor cluster, and is connected to a server through a distributed soft bus, and is used to control a sensor in the sensor cluster to work, where the sensor cluster includes a plurality of sensors, and the plurality of sensors are connected through the distributed soft bus to form the sensor cluster; the control device includes:
the working group generation module is used for acquiring the types of the plurality of sensors, and carrying out group division on the sensor clusters according to the types of the sensors to obtain a plurality of sensor groups;
the working mode determining module is used for obtaining the working requirement of the sensor and determining the working mode of the sensor group according to the working requirement of the sensor;
the target sensor determining module is used for determining a target sensor corresponding to the sensor group if the working mode of the sensor group is a center mode;
The first data acquisition module is used for controlling the sensors in the sensor group to acquire environment data and transmitting the environment data acquired by each sensor to the target sensor through the distributed soft bus, so that the target sensor transmits the environment data to the server through the distributed soft bus.
And the second data acquisition module is used for controlling the sensors in the sensor group to acquire environment data and transmitting the environment data to the server through the distributed soft bus if the working mode of the sensor group is a centerless mode.
In a third aspect, the present application provides a computer device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program and implement the control method of the sensor system as described above when the computer program is executed.
In a fourth aspect, the present application provides a sensor system comprising a computer device as described above, a sensor cluster and a motherboard, the computer device and the sensor cluster being disposed on the motherboard.
In a fifth aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement a method of controlling a sensor system as described above.
The application provides a control method of a sensor system, a control device of the sensor system, computer equipment, the sensor system and a storage medium, wherein a sensor cluster is divided into a plurality of sensor groups according to the type of a sensor; determining the working mode of the sensor group according to the working requirement of the sensor; if the working mode of the sensor group is a center mode, determining a target sensor corresponding to the sensor group; the sensor in the sensor group is controlled to collect environmental data, and the collected environmental data is sent to the server through the distributed soft bus by the target sensor; and if the working mode of the sensor group is a centerless mode, controlling the sensors in the sensor group to acquire environment data, and sending the environment data to the server through the distributed soft bus. Therefore, when the heterogeneous degree of the sensor system is complex, signal transmission can be performed through the distributed soft bus, so that the communication quality of the sensor system is improved, the service logic of the sensor system is simplified by dividing the working group, and the working efficiency of the sensor system is improved.
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 technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of a control method of a sensor system provided in an embodiment of the present application;
fig. 2 is a schematic view of a scenario in which a sensor system interacts with a server according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating steps of a method for controlling a sensor system according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of interaction between a sensor system and a server according to an embodiment of the present disclosure;
fig. 5 is a schematic view of a scenario in which a sensor cluster includes a plurality of sensor groups according to an embodiment of the present application;
fig. 6 is a schematic view of a scenario in which a sensor group includes an object sensor according to an embodiment of the present application;
FIG. 7 is a schematic block diagram of a control device of a sensor system according to an embodiment of the present disclosure;
FIG. 8 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present application;
FIG. 9 is a schematic block diagram of a sensor system provided in an embodiment of the present application;
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.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. For example, the first callback function and the second callback function are merely for distinguishing different callback functions, and the sequence of the callback functions is not limited. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
In the field of distributed sensors, it is a relatively common design direction to present a specific distributed sensor system design based on a specific scenario. The design of a distributed sensor system according to a specific scenario is a very cumbersome and time-consuming process. Currently, there is no very common, universal distributed sensor system template on the market that provides an "out-of-box" solution.
When the heterogeneous degree of the sensor system is complex, for example, two or more sensors are used for detecting one area, the sensor system is difficult to divide work service and simultaneously difficult to communicate with a server well, so that the distributed sensor system can transmit redundant and redundant data back to the background, and the problem of poor communication quality exists. Current distributed sensor systems have communication and data fusion functions (reject redundant data), but are not universal and communication, data fusion and business capabilities are still not robust enough.
Referring to fig. 1, fig. 1 is a schematic application scenario diagram of a control method of a sensor system according to an embodiment of the present application. An application scenario of the control method of the sensor system will be described below with reference to fig. 1.
As shown in fig. 1, the control method of the sensor system is applied to the sensor system or the computer equipment. According to the control method of the sensor system, the distributed soft bus is established among the plurality of sensors, the flexible selection of the sensor system to the sensors and the efficient transmission of data among the devices are realized through the distributed soft bus, and then seamless switching among the sensors is realized. The operation flow of configuring the sensor system among different devices is simplified, the efficient circulation of data among a plurality of sensors is realized, and the experience of a user is improved.
The communication connection between the sensors 11 and 11 may be a wired connection or a wireless connection, and may be, for example, a connection by Wi-Fi, bluetooth, ethernet, 3G communication, 4G communication, 5G communication, or the like. The sensors 11 and 11 may be independent of each other, may be disposed at different spatial positions, or may be integrated in the same device. The distributed soft bus is based on the soft and hard coordination of Ethernet, WIFI and Bluetooth, provides the functions of discovery and connection between devices, and re-manages the ad hoc network and topological relation between the devices after the devices are discovered and connected with each other, so that the distributed services such as device virtualization, cross-device service call, multi-screen coordination, file sharing and the like can be completed among all scene devices based on the distributed soft bus.
As shown in fig. 2, the control method of the sensor system provided in the embodiment of the present application may be applied to an application environment as shown in fig. 2. The application environment includes a sensor system 110 and a server 120, wherein computer devices in the sensor system 110 can communicate with the server 120 via a distributed soft bus. Specifically, the sensor system 110 acquires types of a plurality of sensors, and groups sensor clusters according to the types of the sensors to obtain a plurality of sensor groups; acquiring the working requirements of the sensor, and determining the working mode of a sensor group according to the working requirements of the sensor; if the working mode of the sensor group is a center mode, determining a target sensor corresponding to the sensor group; the sensors in the control sensor group collect environmental data and send the environmental data collected by each sensor to the target sensor through the distributed soft bus, so that the sensors send the environmental data to the server 120 through the distributed soft bus; and if the working mode of the sensor group is a centerless mode, controlling the sensors in the sensor group to acquire environment data and sending the environment data to the server 120 through the distributed soft bus. The server 120 may be an independent server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms. The sensor system 110 may include, but is not limited to, a smart phone, tablet, notebook, desktop, smart box, smart watch, etc. The sensor system and the server may be directly or indirectly connected by wired or wireless communication, and the present application is not limited herein.
Referring to fig. 3, fig. 3 is a flow chart of a control method of a sensor system according to an embodiment of the present application. The control method of the sensor system can be applied to the sensor system.
As shown in fig. 4, the sensor system includes a sensor cluster, and is connected with a server (background/cloud) through a distributed soft bus, so as to control the sensors in the sensor cluster to work, where the sensor cluster includes a plurality of sensors, and the plurality of sensors are connected through the distributed soft bus to form the sensor cluster.
The sensors can comprise various types of sensors, such as temperature sensors, humidity sensors and the like, and the sensors are connected through a distributed soft bus to form a sensor cluster.
As shown in fig. 3, the control method of the sensor system includes steps S101 to S105.
S101, acquiring types of the plurality of sensors, and grouping the sensor clusters according to the types of the sensors to obtain a plurality of sensor groups.
The type of the sensor can be determined by the type of data collected by the sensor, and can comprise a temperature sensor, a humidity sensor, an ultraviolet sensor, a volume sensor and the like. The sensor cluster may be composed of a plurality of sensors, may include the same type of sensor, and may include different types of sensors. The sensor groups may be composed of the same type of sensor, it being noted that the sensor types in different sensor groups are different.
In some embodiments, acquiring equipment information of the sensor, and analyzing the equipment information to obtain an equipment model of the sensor and an acquired data type; and determining the type of the sensor according to the equipment model of the sensor and the type of the acquired data. The type corresponding to each sensor can be accurately determined according to the equipment information.
The device information of the sensor may include information such as a device code, a device model, and the like. The equipment model of the sensor is a production model corresponding to each manufacturer and is used for determining the type of data acquired by the sensor.
By way of example, the type of the sensor can be determined to be a temperature sensor by acquiring the device information, such as the device code, of the sensor and analyzing the device information to obtain the device model of the sensor and the type of the data acquired by the sensor as temperature data.
It should be noted that, the type of each sensor may be determined by acquiring the device information of each sensor; if the sensor is used or registered with the server, the type of sensor may also be obtained directly from the server.
In some embodiments, in the sensor cluster, determining whether there are multiple sensors of the same type; if the types of a plurality of sensors in the sensor cluster are the same, the plurality of sensors with the same type are used as a sensor group; if the types of sensors in the sensor cluster are different from the types of the other sensors, the sensor with the different type from the other sensors is used as a sensor group. The sensor group can thus be divided accurately according to the type of sensor.
Specifically, the sensor clusters may be grouped according to the types of the sensors, so that the sensors of the same type are divided into one sensor group, and a plurality of sensor groups are obtained.
For example, if there are a plurality of sensors a and a plurality of sensors B in the sensor cluster, and the types of the sensors a are the same, and the types of the sensors B are the same, the plurality of sensors a are taken as one sensor group, and the plurality of sensors B are taken as one sensor group.
For example, if there is only one sensor a in the sensor cluster, this sensor a is taken as a sensor group.
As shown in fig. 5, the sensor cluster includes a plurality of types of sensors, such as including sensor a, sensor B, sensor C, and sensor D, for example. The sensor clusters may be grouped according to the type of sensor, so that the same type of sensor is divided into one sensor group, i.e. a first sensor group comprises sensor a, a second sensor group comprises sensor B, a third sensor group comprises sensor C, and a fourth sensor group comprises sensor D, thereby obtaining a plurality of sensor groups.
The cloud background can divide each sensor into a logical working space instead of a physical working space. Such as: when a plurality of different types of sensors (a light sensor, a temperature sensor and a humidity sensor) exist in one sensor cluster and are scattered in different spaces, the background can divide the different types of sensors into different sensor groups, so that data fusion and background data processing can be more convenient during data transmission.
It should be noted that, different sensor groups are isolated from each other in communication, so that power loss caused by communication can be reduced, and data fusion can be faster, and the like.
S102, acquiring the working requirements of the sensor, and determining the working mode of the sensor group according to the working requirements of the sensor.
The operating requirements of the sensor can be used, among other things, to select a device for data processing in order to determine the operating mode of the sensor group. The modes of operation of the sensor group may include a centered mode and a non-centered mode.
For example, if the user wishes to have data processing in the cloud/background, a no-center mode may be selected, and if the user wishes to have data in the sensor system, a center mode may be selected.
In some embodiments, acquiring a device state of the sensor and determining an operating condition supported by the sensor based on the device state; and determining the working requirement of the sensor according to the working condition supported by the sensor. The operating requirements of the sensor can thus be determined accurately from the device state of the sensor.
The device state comprises signal intensity, residual electric quantity, the number of devices in a preset range and the like, and the working conditions supported by the sensor are the best data processing conditions and the best data transmission conditions which can be achieved by the sensor. Because the center mode is to select one sensor from the sensor clusters to process data and transmit data, the sensors meeting the data processing conditions and the data transmission conditions are needed to be arranged in the sensor clusters, so that the sensor system can work in the center mode.
Specifically, the working condition supported by the sensor may be determined according to the device state of the sensor, for example, including signal strength, residual electric quantity, and the number of devices in a preset range, and if it is determined that the working condition supported by the sensor meets the working condition corresponding to the center mode, the working requirement of the sensor may be the center mode; if the working condition supported by the sensor is determined not to meet the working condition corresponding to the center mode, the working requirement of the sensor can be a centerless mode.
It should be noted that, by detecting all the sensors in the sensor cluster, the working conditions supported by all the sensors in the sensor cluster can be determined, and if it is determined that the working conditions supported by at least one sensor in the sensor cluster meet the working conditions corresponding to the center mode, the working requirements of the sensors can be the center mode; if it is determined that the working conditions supported by all the sensors in the sensor cluster do not meet the working conditions corresponding to the center mode, the working requirements of the sensors can be the centerless mode.
For example, the device state of one sensor of the sensor cluster can be determined, for example, the signal intensity is-100 dbm, the residual electric quantity is 30% and the number of devices in a preset range is 3, if the working condition corresponding to the central mode is that the signal intensity is higher than-95 dbm, the residual electric quantity is higher than 20% and the number of devices in the preset range is smaller than 4; therefore, the working condition supported by the sensor can be determined to meet the working condition corresponding to the center mode, and the working requirement of the sensor can be the center mode.
For example, the number of devices in the preset range may be 3 according to the device state of the sensor, for example, the signal intensity is-90 dbm, the residual electric quantity is 30%, and if the working condition corresponding to the center mode is that the signal intensity is higher than-95 dbm, the residual electric quantity is higher than 20%, and the number of devices in the preset range is less than 4; therefore, the working condition supported by the sensor can be determined to not meet the working condition corresponding to the center mode, and the working requirement of the sensor can be the non-center mode.
If any one of the device states of the sensor does not satisfy the operating condition corresponding to the center mode, it may be considered that the operating condition supported by the sensor does not satisfy the operating condition corresponding to the center mode.
And S103, if the working mode of the sensor group is a center mode, determining a target sensor corresponding to the sensor group.
The target sensor may be a main sensor in the sensor group, and is used for data communication and data processing.
In some embodiments, a device state of the sensor is obtained; an object sensor is determined from the set of sensors based on the device status of the sensors. The target sensor can thus be determined accurately from the corresponding sensor group as a function of the device state of the sensor.
The device status may include signal strength, remaining power, and the number of devices within a preset range. The signal strength can represent the communication capacity of the sensor, the residual electric quantity can represent the cruising ability of the sensor, and the number of devices in a preset range can represent the anti-interference capacity of the sensor. The preset range may be within a certain range, and the preset range may be a circle with a certain point as a center and a certain length as a radius, or may be a square with a certain point as a center and a certain length as a length, which is not particularly limited herein.
Specifically, the communication capability of the sensor may be determined from the signal strength of the sensor; the cruising ability of the sensor can be determined according to the residual electric quantity of the sensor; the anti-interference capability of the sensor can be determined according to the number of the devices in a preset range; and determining the target sensor from the corresponding sensor group according to the communication capacity, the cruising ability and the anti-jamming capacity of the sensor.
In some embodiments, determining a signal strength, a remaining power, and a number of devices within a preset range of the sensor; determining the equipment performance of the sensor according to the signal intensity, the residual electric quantity and the equipment quantity in a preset range of the sensor; an object sensor is determined from the set of sensors based on the device performance of the sensor. The target sensor can thus be determined accurately from the sensor group by determining the device properties of the sensor.
The device performance of the sensor can comprise communication capacity, cruising capacity, anti-interference capacity and the like of the sensor, and the device performance of the sensor is comprehensively determined according to the communication capacity, cruising capacity and anti-interference capacity of the sensor.
Specifically, corresponding weight ratios may be configured for the communication capability, the cruising capability, the anti-interference capability, and the like of the sensor, so as to determine the device performance of the sensor, and select one or several sensors with the best device performance as the target sensor.
For example, if the score of the communication capability of the sensor a is 80 points, the weight ratio is 50%, the score of the cruising ability is 70 points, the weight ratio is 30%, the score of the anti-interference capability is 80 points, and the weight ratio is 20%, it may be determined that the score of the device performance of the sensor a is 76 points; if the score of the communication capacity of the sensor B is 90 points, the weight proportion is 50 percent, the score of the cruising ability is 60 points, the weight proportion is 30 percent, the score of the anti-interference capacity is 90 points, and the weight proportion is 20 percent, the score of the equipment performance of the sensor B can be determined to be 81 points; it may be determined that the target sensor is sensor B.
For example, if the score of the communication capability of the sensor a is 80 points, the weight ratio is 50%, the score of the cruising ability is 70 points, the weight ratio is 30%, the score of the anti-interference capability is 80 points, and the weight ratio is 20%, it may be determined that the score of the device performance of the sensor a is 76 points; if the score of the communication capacity of the sensor B is 90 points, the weight proportion is 50 percent, the score of the cruising ability is 60 points, the weight proportion is 30 percent, the score of the anti-interference capacity is 90 points, and the weight proportion is 20 percent, the score of the equipment performance of the sensor B can be determined to be 81 points; if the score of the communication capacity of the sensor C is 95 points, the weight proportion is 50 percent, the score of the cruising ability is 70 points, the weight proportion is 30 percent, the score of the anti-interference capacity is 70 points, and the weight proportion is 20 percent, the score of the equipment performance of the sensor C can be determined to be 82.5 points; the target sensors may be determined to be sensor B and sensor C.
As shown in fig. 6, when the sensor group is operated in the center mode, the sensor group may select one or more master devices as target sensors (master devices) of the sensor group, such as the sensor corresponding to the gray portion in fig. 6, and the remaining sensors are slave devices. In this mode, the sensor group communicates with the cloud back-office via the target sensor. The monitoring data collected from the sensors is sent to the target sensor, which processes the received data, such as data fusion: and eliminating redundant monitoring data sent by a plurality of slave devices. And the target sensor transmits the processed data to the cloud background. The cloud background sends an instruction to the sensor group through the target sensor.
It should be noted that, each sensor group may correspond to different working modes, for example, the working mode of the sensor group corresponding to the temperature sensor may be a center mode, and the working mode of the sensor group corresponding to the humidity sensor may be a no-center mode.
In some embodiments, after determining the target sensor corresponding to the sensor group, the target sensor is controlled to send broadcast information to the other sensors in the sensor group, where the broadcast information includes identity information and address information of the target sensor. The remaining sensors in the sensor group can thereby be made to determine the target sensor.
The identity information of the target sensor can be the ID information of the target sensor, and the identity information is used for enabling the slave server of the sensor group to determine the identity of the target sensor; the address information of the target sensor may be a communication address of the target sensor for enabling the slave server of the sensor group to determine the address of the target sensor.
Specifically, after the target sensor is selected and determined, the target sensor broadcasts a message to the sensor group, indicating that the sensor group is the identity of the sensor group, and simultaneously broadcasts the address of the target sensor to the slave server, so that the slave server can send the collected environmental data to the target sensor according to the address of the target sensor.
S104, controlling the sensors in the sensor group to collect environment data, and sending the environment data collected by each sensor to the target sensor through the distributed soft bus, so that the target sensor sends the environment data to the server through the distributed soft bus.
The object sensor is the sensor with the best equipment performance, so that in the center mode, the object sensor can collect the environmental data collected from the sensor in the sensor group, and the object sensor sends the collected environmental data to the server through the distributed soft bus. The environmental data may include temperature data, humidity data, and the like.
In some embodiments, after the environmental data collected by each sensor is sent to the target sensor through the distributed soft bus, the environmental data is subjected to data fusion by the target sensor to obtain target environmental data, so that the target sensor sends the target environmental data to the server through the distributed soft bus. Therefore, the target sensor can be utilized to carry out preliminary screening on the environmental data, multiple repeated environmental data are prevented from being sent to the server, the utilization rate of the target sensor is improved, and the operation burden of the server is reduced.
The target environment data is environment data after data fusion, and redundant monitoring data sent by a plurality of slave devices can be removed.
Specifically, the environmental data are subjected to data screening through the target sensor, so that the environmental data of the same type are screened, the environmental data of the same type are subjected to data fusion, and the target environmental data are obtained, so that the target sensor sends the target environmental data to the server through the distributed soft bus.
The target sensor receives temperature data of the sensor a for the area a and also receives temperature data of the sensor b for the area a, and both the sensor a and the sensor b collect temperature data of the area a at this time, so that data fusion can be performed on temperature data of the sensor a for the area a and temperature data of the sensor b for the area a, for example, by taking an average value, a median value, and the like, so as to obtain target environment data.
The target sensor stores the environmental data in the history data list after receiving the environmental data sent from the sensor, compares the received environmental data with the history data list after receiving other environmental data sent from the sensor next time, discards the same part, and reports only different parts, thereby cycling.
And S105, controlling the sensors in the sensor group to acquire environment data and transmitting the environment data to the server through a distributed soft bus if the working mode of the sensor group is a centerless mode.
In particular, each sensor is equally positioned when the sensor group is operating in a centerless mode. The sensor group and the cloud background can be used for bearing the communication role through the sensor with the best communication quality. In the mode, data fusion is not performed, and the environment data acquired by the original is transmitted to the cloud background through the distributed soft bus. Each sensor can also directly communicate with the cloud background through the distributed soft bus, so that the sensor with the best communication quality can also directly communicate with the cloud background without passing through the sensor with the best communication quality.
The application provides a control method of a sensor system, which divides a sensor cluster into a plurality of sensor groups according to the type of a sensor; determining the working mode of the sensor group according to the working requirement of the sensor; if the working mode of the sensor group is a center mode, determining a target sensor corresponding to the sensor group; the sensor in the sensor group is controlled to collect environmental data, and the collected environmental data is sent to the server through the distributed soft bus by the target sensor; and if the working mode of the sensor group is a centerless mode, controlling the sensors in the sensor group to acquire environment data, and sending the environment data to the server through the distributed soft bus. Therefore, when the heterogeneous degree of the sensor system is complex, signal transmission can be performed through the distributed soft bus and the unique sensor structure design, so that the communication quality of the sensor system is improved, the service logic of the sensor system is simplified through dividing the working group, and the working efficiency of the sensor system is improved.
Illustratively, the sensors in the sensor cluster are populated KaihongOS, kaihongOs to serve the task of scheduling the sensors and processing the data. The instructions sent by the background/cloud can be processed, so that the sensor works according to the instructions.
As shown in fig. 7, the control device 200 of the sensor system includes: a work group generation module 201, a work mode determination module 202, a target sensor determination module 203, a first data acquisition module 204, and a second data acquisition module 205.
The working group generating module 201 is configured to obtain types of the plurality of sensors, and perform group division on the sensor cluster according to the types of the sensors to obtain a plurality of sensor groups;
the working mode determining module 202 is configured to obtain a working requirement of the sensor, and determine a working mode of the sensor group according to the working requirement of the sensor;
the target sensor determining module 203 is configured to determine a target sensor corresponding to the sensor group if the working mode of the sensor group is a center mode;
the first data acquisition module 204 is configured to control the sensors in the sensor group to acquire environmental data, and send the environmental data acquired by each sensor to the target sensor through the distributed soft bus, so that the target sensor sends the environmental data to the server through the distributed soft bus.
And the second data acquisition module 205 is configured to control the sensors in the sensor group to acquire environmental data and send the environmental data to the server through a distributed soft bus if the working mode of the sensor group is a centerless mode.
In some embodiments, the working group generating module 201 is further configured to obtain device information of the sensor, and parse the device information to obtain a device model of the sensor and an acquired data type; and determining the type of the sensor according to the equipment model of the sensor and the type of the acquired data.
In some embodiments, the working group generating module 201 is further configured to determine, in the sensor cluster, whether a plurality of sensors are of a same type; if the types of a plurality of sensors in the sensor cluster are the same, the plurality of sensors with the same type are used as a sensor group; if the types of sensors in the sensor cluster are different from the types of the other sensors, the sensor with the different type from the other sensors is used as a sensor group.
In some embodiments, the operation mode determining module 202 is further configured to obtain a device state of the sensor, and determine an operation condition supported by the sensor according to the device state; and determining the working requirement of the sensor according to the working condition supported by the sensor.
In some embodiments, the target sensor determination module 203 is further configured to obtain a device state of the sensor; an object sensor is determined from the set of sensors based on the device status of the sensors.
In some embodiments, the target sensor determining module 203 is further configured to determine a signal strength, a remaining power, and a number of devices within a preset range of the sensor; determining the equipment performance of the sensor according to the signal intensity, the residual electric quantity and the equipment quantity in a preset range of the sensor; an object sensor is determined from the set of sensors based on the device performance of the sensor.
In some embodiments, the information broadcasting module 206 is configured to control the target sensor to send broadcasting information to the remaining sensors in the sensor group, where the broadcasting information includes identity information and address information of the target sensor.
In some embodiments, the first data acquisition module 204 is further configured to perform data fusion on the environmental data through the target sensor to obtain target environmental data, so that the target sensor sends the target environmental data to the server through a distributed soft bus.
It should be noted that, for convenience and brevity of description, specific working processes of the above-described apparatus and each module, unit may refer to corresponding processes in the foregoing method embodiments, which are not repeated herein.
The methods and apparatus of the present application are operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
By way of example, the methods, apparatus described above may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 8.
Referring to fig. 8, fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present application. As shown in fig. 8, the computer device 300 includes one or more processors 301 and a memory 302, the processors 301 and the memory 302 being connected by a bus, such as an I2C (Inter-integrated Circuit) bus.
Wherein the one or more processors 301, working individually or together, are adapted to perform the steps of the control method of the sensor system provided by the above-described embodiments.
Specifically, the processor 301 may be a Micro-controller Unit (MCU), a central processing Unit (Central Processing Unit, CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
Specifically, the Memory 302 may be a Flash chip, a Read-Only Memory (ROM) disk, an optical disk, a U-disk, a removable hard disk, or the like.
The processor 301 is configured to execute a computer program stored in the memory 302, and when executing the computer program, implement the steps of the control method of the sensor system provided in the above embodiment.
The processor 301 is for example configured to run a computer program stored in the memory 302 and to implement the following steps when said computer program is executed:
acquiring types of the plurality of sensors, and grouping the sensor clusters according to the types of the sensors to obtain a plurality of sensor groups; acquiring the working requirement of the sensor, and determining the working mode of the sensor group according to the working requirement of the sensor; if the working mode of the sensor group is a center mode, determining a target sensor corresponding to the sensor group; controlling sensors in the sensor group to acquire environment data, and sending the environment data acquired by each sensor to the target sensor through the distributed soft bus, so that the target sensor sends the environment data to the server through the distributed soft bus; and if the working mode of the sensor group is a centerless mode, controlling the sensors in the sensor group to acquire environment data, and sending the environment data to the server through a distributed soft bus. In some embodiments, the first terminal device invokes an interface of the second terminal device through the distributed soft bus to obtain a file handle of the second terminal device; and based on the file handle of the second terminal equipment, the first terminal equipment sends the audio and video information to the second terminal equipment through the distributed soft bus.
In some embodiments, acquiring equipment information of the sensor, and analyzing the equipment information to obtain an equipment model of the sensor and an acquired data type; and determining the type of the sensor according to the equipment model of the sensor and the type of the acquired data.
In some embodiments, in the sensor cluster, determining whether there are multiple sensors of the same type; if the types of a plurality of sensors in the sensor cluster are the same, the plurality of sensors with the same type are used as a sensor group; if the types of sensors in the sensor cluster are different from the types of the other sensors, the sensor with the different type from the other sensors is used as a sensor group.
In some embodiments, acquiring a device state of the sensor and determining an operating condition supported by the sensor based on the device state; and determining the working requirement of the sensor according to the working condition supported by the sensor.
In some embodiments, a device state of the sensor is obtained; an object sensor is determined from the set of sensors based on the device status of the sensors.
In some embodiments, determining a signal strength, a remaining power, and a number of devices within a preset range of the sensor; determining the equipment performance of the sensor according to the signal intensity, the residual electric quantity and the equipment quantity in a preset range of the sensor; an object sensor is determined from the set of sensors based on the device performance of the sensor.
In some embodiments, the target sensor is controlled to transmit broadcast information to the remaining sensors in the set of sensors, the broadcast information including identity information and address information of the target sensor.
In some embodiments, the target sensor performs data fusion on the environmental data to obtain target environmental data, so that the target sensor sends the target environmental data to the server through a distributed soft bus.
As shown in fig. 9, the embodiment of the application further provides a sensor system, where the sensor system includes a computer device, a sensor cluster, and a motherboard, where the computer device and the sensor cluster are disposed on the motherboard.
Specifically, the whole sensor structure is divided into three major parts of a main board, computer equipment and a sensor. Both the computer and the sensor may be mounted on the motherboard. The method can install specific computer models and sensor types according to specific requirements, and can rapidly meet different scene requirements.
The sensor system provided by the application adapts to most of general scenes, and other adaptation functions do not need to be added additionally. When adapting to a specific scene, only the type of the sensor needs to be considered. Such as temperature sensors, humidity sensors, etc., the specific sensor may be installed.
The present application also provides a computer readable storage medium storing a computer program, which when executed by a processor, causes the processor to implement the steps of the control method of the sensor system provided in the foregoing embodiment.
The computer readable storage medium may be an internal storage unit of the remote controller or the electronic device according to any one of the foregoing embodiments, for example, a hard disk or a memory of the terminal device. The computer readable storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. The control method of the sensor system is characterized in that the sensor system comprises a sensor cluster and is connected with a server through a distributed soft bus and used for controlling the sensors in the sensor cluster to work, the sensor cluster comprises a plurality of sensors, and the plurality of sensors are connected through the distributed soft bus to form the sensor cluster; the control method comprises the following steps:
acquiring types of the plurality of sensors, and grouping the sensor clusters according to the types of the sensors to obtain a plurality of sensor groups;
acquiring the working requirement of the sensor, and determining the working mode of the sensor group according to the working requirement of the sensor;
if the working mode of the sensor group is a center mode, determining a target sensor corresponding to the sensor group;
controlling sensors in the sensor group to acquire environment data, and sending the environment data acquired by each sensor to the target sensor through the distributed soft bus, so that the target sensor sends the environment data to the server through the distributed soft bus;
and if the working mode of the sensor group is a centerless mode, controlling the sensors in the sensor group to acquire environment data, and sending the environment data to the server through a distributed soft bus.
2. The control method according to claim 1, characterized in that the acquiring the types of the plurality of sensors includes:
acquiring equipment information of the sensor, and analyzing the equipment information to obtain the equipment model of the sensor and the acquired data type;
and determining the type of the sensor according to the equipment model of the sensor and the type of the acquired data.
3. The control method according to claim 1, wherein the grouping the sensor clusters according to the sensor types to obtain a plurality of sensor groups includes:
determining, in the sensor cluster, whether a plurality of sensors are of the same type;
if the types of a plurality of sensors in the sensor cluster are the same, the plurality of sensors with the same type are used as a sensor group;
if the types of sensors in the sensor cluster are different from the types of the other sensors, the sensor with the different type from the other sensors is used as a sensor group.
4. The control method according to claim 1, wherein the acquiring the operation requirement of the sensor includes:
Acquiring the equipment state of the sensor, and determining the working conditions supported by the sensor according to the equipment state;
and determining the working requirement of the sensor according to the working condition supported by the sensor.
5. The control method according to claim 1, wherein the determining the target sensor to which the sensor group corresponds includes:
acquiring the equipment state of the sensor;
an object sensor is determined from the set of sensors based on the device status of the sensors.
6. The control method according to claim 5, wherein the device state includes a signal strength, a remaining power, and a number of devices within a preset range, the determining the target sensor from the sensor group based on a preset target sensor determination algorithm according to the device state of the sensor, includes:
determining the signal intensity, the residual electric quantity and the equipment quantity in a preset range of the sensor;
determining the equipment performance of the sensor according to the signal intensity, the residual electric quantity and the equipment quantity in a preset range of the sensor;
an object sensor is determined from the set of sensors based on the device performance of the sensor.
7. The control method according to claim 1, wherein after the target sensor corresponding to the sensor group is determined, the method further comprises:
and controlling the target sensor to send broadcast information to the rest sensors in the sensor group, wherein the broadcast information comprises the identity information and the address information of the target sensor.
8. The control method according to claim 1, wherein after the environmental data collected by each of the sensors is transmitted to the target sensor through the distributed soft bus, the method further comprises:
and carrying out data fusion on the environment data through the target sensor to obtain target environment data, so that the target sensor sends the target environment data to the server through a distributed soft bus.
9. The control device of the sensor system is characterized in that the sensor system comprises a sensor cluster and is connected with a server through a distributed soft bus and used for controlling the sensors in the sensor cluster to work, and the sensor cluster comprises a plurality of sensors which are connected through the distributed soft bus to form the sensor cluster; the control device includes:
The working group generation module is used for acquiring the types of the plurality of sensors, and carrying out group division on the sensor clusters according to the types of the sensors to obtain a plurality of sensor groups;
the working mode determining module is used for obtaining the working requirement of the sensor and determining the working mode of the sensor group according to the working requirement of the sensor;
the target sensor determining module is used for determining a target sensor corresponding to the sensor group if the working mode of the sensor group is a center mode;
the first data acquisition module is used for controlling the sensors in the sensor group to acquire environment data and transmitting the environment data acquired by each sensor to the target sensor through the distributed soft bus, so that the target sensor transmits the environment data to the server through the distributed soft bus.
And the second data acquisition module is used for controlling the sensors in the sensor group to acquire environment data and transmitting the environment data to the server through the distributed soft bus if the working mode of the sensor group is a centerless mode.
10. A computer device, the computer device comprising a memory and a processor;
The memory is used for storing a computer program;
the processor being adapted to execute the computer program and to carry out the method of controlling a sensor system according to any one of claims 1 to 8 when the computer program is executed.
11. A sensor system comprising the computer device of claim 10, a sensor cluster, and a motherboard, the computer device and the sensor cluster being disposed on the motherboard.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to implement the control method of the sensor system according to any one of claims 1 to 8.
CN202310386854.7A 2023-03-31 2023-03-31 Control method and device of sensor system, computer equipment and storage medium Pending CN116546667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310386854.7A CN116546667A (en) 2023-03-31 2023-03-31 Control method and device of sensor system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310386854.7A CN116546667A (en) 2023-03-31 2023-03-31 Control method and device of sensor system, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116546667A true CN116546667A (en) 2023-08-04

Family

ID=87449718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310386854.7A Pending CN116546667A (en) 2023-03-31 2023-03-31 Control method and device of sensor system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116546667A (en)

Similar Documents

Publication Publication Date Title
CN112799789B (en) Node cluster management method, device, equipment and storage medium
CN111800443B (en) Data processing system and method, device and electronic equipment
US9313119B2 (en) Network routing based on resource availability
CN111459665A (en) Distributed edge computing system and distributed edge computing method
CN102855216A (en) Improvent for performance of multiprocessor computer system
CN111212106A (en) Edge computing task processing and scheduling method and device in industrial internet environment
US20240152395A1 (en) Resource scheduling method and apparatus, and computing node
CN111858050B (en) Server cluster hybrid deployment method, cluster management node and related system
CN111338745B (en) Deployment method and device of virtual machine and intelligent device
CN110912967A (en) Service node scheduling method, device, equipment and storage medium
CN114710571A (en) Data packet processing system
US10520929B2 (en) Techniques for implementing universal commands in a welding or cutting system
CN111309488B (en) Method and system for sharing computing resources of unmanned aerial vehicle cluster and computer storage medium
CN116546667A (en) Control method and device of sensor system, computer equipment and storage medium
CN111465079A (en) Method for connecting wireless terminal with multiple base stations based on power Internet of things
US10104571B1 (en) System for distributing data using a designated device
CN111556043B (en) Message processing method, device, system, equipment and readable storage medium
CN110209475B (en) Data acquisition method and device
CN113806064A (en) Job scheduling method, device and system and job dispatching device
US10177929B1 (en) System for distributing data to multiple devices
US20200110628A1 (en) Container and Virtual Machine and Software Instance Scheduler in Cloud Radio Access Network
CN116483573B (en) Computing resource scheduling method and device in response to task to be processed
CN117707797B (en) Task scheduling method and device based on distributed cloud platform and related equipment
CN112261091B (en) Signaling routing method, device, server and computer readable storage medium based on bypass service cluster
CN102902598B (en) A kind of resources measurement preprocess method combined with job scheduling 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