Disclosure of Invention
The specification provides a control detection method, a control detection device and computer equipment for suspended matter content in sewage treatment, and aims to solve or partially solve the technical problems that an existing control detection method for sewage is low in detection accuracy and prone to detection omission.
In order to solve the technical problem, the embodiment of the specification discloses a method for controlling and detecting the content of suspended matters in sewage treatment, which is applied to current control equipment, and comprises the following steps:
when a detection device is switched from the current control device side to a target control device side, determining a time slice thread occupation state of a central processing unit of a current time slice thread of a signal acquisition protocol in the detection device at the target control device side and a first target control device for recording the current time slice thread of the signal acquisition protocol in the detection device at the target control device side;
when the time slice thread occupation state of the current time slice thread of the signal acquisition protocol in the detection device at the central processing unit of the target control device side is an overload state, the first target control device comprises at least one target control device, and the streaming data of the current time slice thread is transferred to the at least one target control device at the target device side; when the time slice thread occupation state of the current time slice thread of the signal acquisition protocol in the detection device in the central processing unit of the target control device side is an overload state and the target control device side comprises a plurality of target control devices, the first target control device is a second target control device in the target control devices, and the thread covered by the time slice resource of the second target control device exceeds the current time slice thread of the signal acquisition protocol in the detection device;
acquiring a first verification identifier allocated to a current time slice thread of a signal acquisition protocol in the detection equipment by the first target control equipment, sending the first verification identifier to a time slice thread management unit in central control equipment, and acquiring a second verification identifier allocated to the first target control equipment from the time slice thread management unit;
and sending the second verification identifier to the first target control device, so that an information transfer communication channel is established between the first target control device and the time slice thread management unit, wherein the information transfer communication channel is used for transmitting the current time slice thread of the signal acquisition protocol in the detection device.
In an optional manner, before the detecting device is switched from the current control device side to the target control device side, the method further includes:
receiving nonlinear signals which are collected by the detection equipment from sewage to be detected and used for representing the content of suspended matters in the sewage to be detected according to a set time interval, and caching the nonlinear signals in a stacking mode;
extracting first characteristic information of each buffered nonlinear signal;
converting the signal amplitude and the moment of each cached nonlinear signal into target data in a set format; wherein the set format is a binary format;
processing all target data obtained by conversion based on a preset matching stack, and determining local data of each target data in all the target data in the processing process based on the preset matching stack; extracting second characteristic information corresponding to each local data;
integrating the cached first characteristic information of each nonlinear signal and the cached second characteristic information corresponding to the local data of the target data corresponding to each nonlinear signal to obtain a speed-up permission list;
if the cached first characteristic information of each nonlinear signal is downlink characteristic information, matching the cached first characteristic information of each nonlinear signal with the speed-up permission list, and setting a label for the successfully matched first characteristic information according to an index identifier corresponding to the speed-up permission list;
in a data link layer of the matching stack, comparing a label of first feature information which is successfully matched with an index identifier of the speed-up permission list, and modifying the first feature information which is compared with the index identifier of the speed-up permission list and successfully matched with the speed-up permission list to obtain third feature information;
storing the third characteristic information, deleting the nonlinear signals cached corresponding to each piece of stored third characteristic information, and adding one to a set count value; the set time interval is inversely related to the rate of increase of the set count value.
In an optional manner, before the detecting device is switched from the current control device side to the target control device side, the method further includes:
determining an acquisition identifier corresponding to the target characteristic information included in the stored third characteristic information; acquiring a plurality of target feature vectors of target feature information and an aggregation component corresponding to each target feature vector from the stored third feature information according to the acquisition identifier;
respectively compressing the aggregation components of the target characteristic information to obtain a plurality of compressed packets; respectively marking a corresponding trace back offset for each compressed packet, and generating a compressed packet carrying the trace back offset; storing each compressed packet carrying the tracing offset into a tracing unit corresponding to a tracing database;
when a target nonlinear signal corresponding to target feature information of the stored third feature information in a set time period needs to be restored, searching each dimension expansion data of the target feature information corresponding to each aggregation component contained in the set time period based on information stored in the tracing database aiming at the target feature information of the stored third feature information;
and obtaining a target nonlinear signal corresponding to the target characteristic information of the stored third characteristic information in the set time period according to each dimension extending data of the target characteristic information in the set time period.
In an optional manner, the method further comprises:
acquiring a modification instruction for modifying the set time interval;
and modifying the set time interval according to the modification instruction.
In an alternative form, the causing of the first target control device to establish an information transfer communication channel with the time slice thread management unit includes:
causing the first target control device to send a communication request to the time slice thread management unit;
obtaining communication request authentication information from the first target control device; the communication request verification information is sent to the first target control device by the time slice thread management unit on a communication record detection resource corresponding to at least one communication request, the communication request verification information corresponding to different communication record detection resources is subjected to interleaving coding by adopting different scrambling code vectors, and the scrambling code vectors are obtained by the time slice thread management unit according to the communication request;
according to the communication request verification information, the first target control device is enabled to send an information transfer communication channel establishment request to the time slice thread management unit, wherein the information transfer communication channel establishment request is used for indicating at least one piece of association detection information of the communication request verification information;
obtaining feedback information from the first target control device; wherein the feedback information corresponds to the association detection information of the at least one piece of communication request verification information, and the feedback information is sent to the first target control device by the time slice thread management unit according to the information transfer communication channel establishment request;
determining verification coordinate values respectively corresponding to the communication request, the communication request verification information, the information transfer communication channel establishment request, the association detection information and the feedback information from a preset relational database; the verification coordinate value is a two-dimensional coordinate, the abscissa of the verification coordinate value represents the moment, and the ordinate of the verification coordinate value represents the amplitude;
fitting all the verification coordinate values obtained by determination to obtain a verification curve; judging whether the first target control device and the time slice thread management unit meet a time linearity condition or not according to the verification curve; and when the first target control equipment and the time slice thread management unit meet a time linearity condition, enabling the first target control equipment and the time slice thread management unit to establish an information transfer communication channel.
In an alternative mode, the determining whether the first target control device and the time slice thread management unit satisfy a time linearity condition according to the verification curve includes:
judging whether at least two target coordinate values exist in all the verification coordinate values; wherein the abscissa of the at least two target coordinate values is the same and the ordinate is different;
if so, judging that the first target control equipment and the time slice thread management unit do not meet a time linear condition;
otherwise, the first target control device and the time slice thread management unit are judged to meet a time linearity condition.
In an optional manner, the method further comprises:
judging whether the acceleration exceeds a set threshold value or not;
and if the speed increase exceeds the set threshold, stopping storing the third characteristic information and deleting the cached nonlinear signal.
The embodiment of the specification discloses a control detection device of suspended solid content in sewage treatment, is applied to current control equipment, the device includes:
the device comprises a determining module, a first target control device and a second target control device, wherein the determining module is used for determining the time slice thread occupation state of a central processing unit of a current time slice thread of a signal acquisition protocol in the detection device at the target control device side and the first target control device is used for recording the current time slice thread of the signal acquisition protocol in the detection device at the target control device side when the detection device is switched from the current control device side to a target control device side;
when the time slice thread occupation state of the current time slice thread of the signal acquisition protocol in the detection device at the central processing unit of the target control device side is an overload state, the first target control device comprises at least one target control device, and stream data of the current time slice thread is transferred to the at least one target control device at the target device side; when the time slice thread occupation state of the current time slice thread of the signal acquisition protocol in the detection device at the central processing unit of the target control device side is an unarmed state and the target control device side comprises a plurality of target control devices, the first target control device is a second target control device in the plurality of target control devices, and the thread covered by the time slice resource of the second target control device exceeds the current time slice thread of the signal acquisition protocol in the detection device;
a verification identifier obtaining module, configured to obtain a first verification identifier that is allocated by the first target control device to a current time slice thread of a signal acquisition protocol in the detection device, send the first verification identifier to a time slice thread management unit in a central control device, and obtain a second verification identifier that is allocated to the first target control device from the time slice thread management unit;
and the information transfer communication channel establishing module is used for sending the second verification identifier to the first target control device so as to establish an information transfer communication channel between the first target control device and the time slice thread management unit, wherein the information transfer communication channel is used for transmitting the current time slice thread of the signal acquisition protocol in the detection device.
The present specification discloses a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the above method.
The embodiment of the specification discloses a computer device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the method.
Through one or more technical schemes of this description, this description has following beneficial effect or advantage:
the method, the apparatus, and the computer device for controlling and detecting the content of suspended matter in sewage processing disclosed in the embodiments of the present specification can determine a time slice thread occupation state of a central processing unit of a current time slice thread of a signal acquisition protocol in a detection device on a target control device side and a first target control device on the target control device side for recording the current time slice thread when the detection device is switched from the current control device side to the target control device side, further determine the first target control device according to whether the time slice thread occupation state is an overload state, then determine a second verification identifier based on the obtained first verification identifier, enable the first target control device to establish an information transfer communication channel based on the second verification identifier and a time slice thread management unit, and thus, when a storage space of the control device on the current control device side is saturated, switch the detection device from the current control device side to the target control device side based on the current time slice thread, and switch the first target control device based on the current time slice thread, thereby ensuring that the detection device can continuously switch a detection signal acquisition on the current time slice thread, and thus ensuring the detection accuracy of the detection device.
The above description is only an outline of the technical means of the present specification, and the embodiments of the present specification are described below in order to make the technical means of the present specification more clearly understood, and to make the above and other objects, features, and advantages of the present specification more clearly understood.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The inventor has found through investigation and analysis that, because the detection of the content of suspended matters in sewage treatment needs to be continuously detected in real time, and in order to ensure the real-time performance of the detection result, the detection device and the control device for processing the signals acquired by the detection device are usually arranged nearby, but the storage space of the control device is limited, when the storage space of the original control device for storing the information corresponding to the signals acquired by the detection device is saturated, the original control device needs to be replaced by a new control device, but the common method for replacing the original control device does not consider the consistency of time slice threads among the detection device, the original control device and the new control device, and the detection of the content of suspended matters in sewage treatment by the detection device is continuous, which results in that the synchronization of the time slice threads among the detection device, the original control device and the new control device cannot be realized in the replacement process, thereby the missed detection of the signals occurs when the control device is switched, and the detection accuracy is seriously affected.
The above prior art solutions have shortcomings which are the results of practical and careful study of the inventor, and therefore, the discovery process of the above problems and the solutions proposed by the following embodiments of the present invention to the above problems should be the contribution of the inventor to the present invention in the course of the present invention.
In view of this, the embodiments of the present specification provide a method, an apparatus, and a computer device for controlling and detecting the content of suspended matters in sewage treatment, so as to solve or partially solve the technical problems that the existing control and detection method for sewage has low detection accuracy and is prone to detection omission.
In order to solve the technical problems, an embodiment of the present specification provides a method, an apparatus and a computer device for controlling and detecting the content of suspended solids in sewage treatment, which have the following general ideas:
when a detection device is switched from the current control device side to a target control device side, determining a time slice thread occupation state of a central processing unit of a current time slice thread of a signal acquisition protocol in the detection device at the target control device side and a first target control device used for recording the current time slice thread of the signal acquisition protocol in the detection device at the target control device side; when the time slice thread occupation state of the current time slice thread of the signal acquisition protocol in the detection device at the central processing unit of the target control device side is an overload state, the first target control device comprises at least one target control device, and the streaming data of the current time slice thread is transferred to the at least one target control device at the target device side; when the time slice thread occupation state of the current time slice thread of the signal acquisition protocol in the detection device at the central processing unit of the target control device side is an unarmed state and the target control device side comprises a plurality of target control devices, the first target control device is a second target control device in the plurality of target control devices, and the thread covered by the time slice resource of the second target control device exceeds the current time slice thread of the signal acquisition protocol in the detection device; acquiring a first verification identifier allocated to a current time slice thread of a signal acquisition protocol in the detection equipment by the first target control equipment, sending the first verification identifier to a time slice thread management unit in central control equipment, and acquiring a second verification identifier allocated to the first target control equipment from the time slice thread management unit; and sending the second verification identifier to the first target control device so as to establish an information transfer communication channel between the first target control device and the time slice thread management unit, wherein the information transfer communication channel is used for transmitting a current time slice thread of a signal acquisition protocol in the detection device.
Therefore, when the storage space of the control equipment on the current control equipment side is saturated, the detection equipment can be switched to the target control equipment side from the current control equipment side based on the current time slice thread, and the switching is performed based on the current time slice thread, so that the first target control equipment can acquire the current time slice thread in real time based on the information transfer communication channel and continuously acquire the signals acquired by the detection equipment on the basis of the current time slice thread, the signals acquired by the detection equipment can be transferred to the target control equipment side in a synchronous and complete time slice thread form when the detection equipment is switched to the target control equipment side from the current control equipment side, the missing detection of signals generated by switching the control equipment under the condition that the detection equipment continuously works is avoided, and the detection accuracy of the control detection method for sewage is ensured.
In order to better understand the technical solutions of the present invention, the following detailed descriptions of the technical solutions of the present invention are provided with the accompanying drawings and the specific embodiments, and it should be understood that the specific features in the embodiments and the examples of the present invention are the detailed descriptions of the technical solutions of the present invention, and are not limitations of the technical solutions of the present invention, and the technical features in the embodiments and the examples of the present invention may be combined with each other without conflict.
As an alternative embodiment, please refer to fig. 1, which is a flowchart of a method for controlling and detecting a content of suspended matters in sewage treatment provided in an embodiment of the present disclosure, the method is applied to a current control device, wherein the current control device is communicatively connected to a detection device and at least one target control device on a target control device side, and the method may include the following steps:
s21, when the detection equipment is switched from the current control equipment side to the target control equipment side, determining the time slice thread occupation state of the central processing unit of the current time slice thread of the signal acquisition protocol in the detection equipment at the target control equipment side and first target control equipment which is used for recording the current time slice thread of the signal acquisition protocol in the detection equipment at the target control equipment side.
S22, acquiring a first verification identifier distributed by the first target control device for a current time slice thread of a signal acquisition protocol in the detection device, sending the first verification identifier to a time slice thread management unit in the central control device, and acquiring a second verification identifier distributed for the first target control device from the time slice thread management unit.
And S23, sending the second verification identifier to the first target control device so as to establish an information transfer communication channel between the first target control device and the time slice thread management unit, wherein the information transfer communication channel is used for transmitting the current time slice thread of the signal acquisition protocol in the detection device.
In S21, when a time slice thread occupancy state of a central processing unit of a current time slice thread of a signal acquisition protocol in the detection device at the target control device side is an overload state, the first target control device is at least one target control device to which stream data of the current time slice thread is transferred at the target device side. When the time slice thread occupation state of the current time slice thread of the signal acquisition protocol in the detection device in the central processing unit of the target control device side is the non-overload state and the target control device side comprises a plurality of target control devices, the first target control device is a second target control device in the plurality of target control devices, and the thread covered by the time slice resource of the second target control device exceeds the current time slice thread of the signal acquisition protocol in the detection device.
Through S21-S23, when the storage space of the control device on the current control device side is saturated, the detection device can be switched from the current control device side to the target control device side based on the current time slice thread, and because the switching is performed based on the current time slice thread, the first target control device can acquire the current time slice thread in real time based on the information transfer communication channel and continuously acquire the signals acquired by the detection device on the basis of the current time slice thread, so that the signals acquired by the detection device can be transferred to the target control device side in a synchronous and complete time slice thread form when the detection device is switched from the current control device side to the target control device side, the missing detection of signals generated by switching the control device under the condition that the detection device continuously works is avoided, and the detection accuracy of the control detection method for sewage is ensured.
In addition, after acquiring the current time slice thread of the signal acquisition protocol in the detection device, the first target control device may acquire a corresponding acquisition signal from the current control device based on the current time slice thread, thereby implementing synchronous and continuous uninterrupted transfer of the acquisition signal.
In specific implementation, the detection device is disposed in the sewage to be treated, the current control device receives a nonlinear signal sent by the detection device and used for representing the content of suspended matters in the sewage to be treated, and due to more parameter indexes of the nonlinear signal, if the nonlinear signal is directly treated, the treatment delay may be caused: when the processing of the current nonlinear signal is not completed, if the detection device transmits the subsequent nonlinear signal, the nonlinear signal is likely to be blocked, thereby causing a problem of missing detection, and for this reason, in S21, before the detection device is switched from the current control device side to the target control device side, the following may be further included:
and S241, receiving nonlinear signals which are collected by the detection equipment from the sewage to be detected and used for representing the content of suspended matters in the sewage to be detected according to a set time interval, and caching the nonlinear signals in a stacking mode.
S242, extracting the first characteristic information of each of the buffered nonlinear signals.
S243, converting the signal amplitude and time of each buffered nonlinear signal into target data in a set format.
Wherein the set format is a binary format.
And S244, processing all the target data obtained by conversion based on a preset matching stack, determining local data of each target data in all the target data in the processing process based on the preset matching stack, and extracting second characteristic information corresponding to each local data.
And S245, integrating the cached first characteristic information of each nonlinear signal and the cached second characteristic information corresponding to the local data of the target data corresponding to each nonlinear signal to obtain an acceleration authority list.
S246, if the cached first feature information of each nonlinear signal is the downlink feature information, matching the cached first feature information of each nonlinear signal with the speed-up permission list, and setting a tag for the successfully matched first feature information according to the index identifier corresponding to the speed-up permission list.
And S247, in a data link layer of the matching stack, comparing the label of the first feature information successfully matched with the index identifier of the speed-up permission list, and modifying the first feature information which is compared with the index identifier of the speed-up permission list and successfully matched with the speed-up permission list to obtain third feature information.
S248, the third feature information is stored, the non-linear signal buffered corresponding to each stored third feature information is deleted, and the set count value is incremented by one.
In S248, the set time interval and the rate increase of the set count value are inversely correlated.
Through S241-S248, a plurality of nonlinear signals can be buffered, the first characteristic information of each buffered nonlinear signal is processed, the first characteristic information of each buffered nonlinear signal and the second characteristic information corresponding to the local data of the target data corresponding to each cached nonlinear signal are integrated to obtain an acceleration permission list, the first characteristic information is matched and compared based on the acceleration permission list, so that the first characteristic information meeting the condition is modified into third characteristic information, the third characteristic information is stored, the third characteristic information not only can represent the nonlinear signal corresponding to the first characteristic information, but also occupies a small storage space, so that the processing path of the nonlinear signal is effectively shortened, the processing load of the current control device is reduced, more third characteristic information can be stored on the premise of the limited storage space of the current control device, the storage efficiency is improved, in addition, since the set time interval is a count value positively correlated to the set caching, when the set count value represents a larger linear count value, the linear count value representing a larger linear count value can be stored, the linear signal processing efficiency is improved, and the non-linear signal processing efficiency can be maximized.
On the basis of S241-S248, the following contents are included:
s2491, determines whether or not the acceleration rate exceeds a set threshold.
And S2492, if the acceleration rate exceeds the set threshold, stopping storing the third characteristic information and deleting the cached nonlinear signal.
In a specific implementation, the set threshold may be set according to the throughput of the current control device, and is not limited herein.
In specific implementation, if the speed increase exceeds a set threshold, it is characterized that an abnormal condition occurs in the throughput process of the current control device, and if the storage of the third feature information and the deletion of the cached nonlinear signal are not suspended at this time, the third feature information stored in the current control device and the deleted nonlinear signal may be misplaced and confused, so that the subsequent throughput process is affected, and as time goes on, the number of the misplaced and confused third feature information and nonlinear signal will increase more and more, so that the maintenance cost of the later maintenance is increased. Through S2491-S2492, the storage of the third characteristic information and the deletion of the cached nonlinear signal can be stopped in time when the handling process of the current control device is abnormal, on one hand, the omission of signal acquisition can be avoided, and on the other hand, the subsequent maintenance cost can be effectively reduced.
On the basis of S241-S248, the third characteristic information is "compressed" for storage, so that the storage efficiency of the current control device can be improved, on this basis, if a complete (partial) nonlinear signal corresponding to the third characteristic information needs to be obtained, the third characteristic information needs to be restored, and for this reason, before the detection device is switched from the current control device side to the target control device side, the embodiments of the present specification may further include the following:
and S251, determining an acquisition identifier corresponding to the target feature information included in the stored third feature information, and acquiring a plurality of target feature vectors of the target feature information and an aggregation component corresponding to each target feature vector from the stored third feature information according to the acquisition identifier.
S252, respectively compressing the aggregation components of the target characteristic information to obtain a plurality of compressed packets; respectively marking the corresponding trace back offset for each compressed packet, and generating a compressed packet carrying the trace back offset; and storing each compressed packet carrying the tracing offset into a corresponding tracing unit of a tracing database.
And S253, when the target nonlinear signal corresponding to the target characteristic information of the stored third characteristic information in the set time period needs to be restored, searching each dimension expansion data of the target characteristic information corresponding to each aggregation component contained in the set time period based on the information stored in the tracing database aiming at the target characteristic information of the stored third characteristic information.
And S254, according to each dimension extending data of the target characteristic information in the set time period, obtaining the target nonlinear signal corresponding to the target characteristic information of the stored third characteristic information in the set time period.
Through S251-S254, the compressed packet carrying the trace back offset can be obtained according to the multiple target feature vectors of the target feature information and the aggregation component corresponding to each target feature vector, and the compressed packet carrying the trace back offset is stored in the trace back unit corresponding to the trace back database, when the target feature information in the set time period needs to be restored, each extended dimension data of the target feature information corresponding to each aggregation component included in the set time period can be searched based on the information stored in the trace back database for the target feature information of the stored third feature information, and the target nonlinear signal corresponding to the target feature information in the set time period can be determined according to each extended dimension data, so that the trace back of the target nonlinear signal of the target feature information can be realized, and the complete restoration of the target feature information stored in a 'compressed' form is ensured, and since a complete nonlinear signal does not need to be stored, the operation efficiency of the current control device is improved.
On the basis of S251-S254, the following contents can be included:
s255, a modification instruction for modifying the set period is acquired.
And S256, modifying the set time interval according to the modification instruction.
Through S255-S256, the set time period can be flexibly modified, so that the target nonlinear signal can be flexibly traced, and the flexibility of restoring the target nonlinear signal is improved.
In S23, an information transfer communication channel is established between the first target control device and the time slice thread management unit, which specifically includes the following contents:
s231, the first target control device is caused to transmit a communication request to the slice thread management unit.
S232, communication request authentication information is acquired from the first target control device.
S233, according to the communication request authentication information, causes the first target control apparatus to transmit an information transfer communication channel establishment request to the slot thread management unit.
And S234, acquiring feedback information from the first target control device.
And S235, determining verification coordinate values respectively corresponding to the communication request, the communication request verification information, the information transfer communication channel establishment request, the association detection information and the feedback information from a preset relational database.
S236, fitting all the verification coordinate values obtained by determination to obtain a verification curve; judging whether the first target control equipment and the time slice thread management unit meet a time linear condition or not according to the verification curve; and when the first target control device and the time slice thread management unit meet the time linearity condition, enabling an information transfer communication channel to be established between the first target control device and the time slice thread management unit.
In S232, the communication request verification information is sent to the first target control device by the time slice thread management unit on the communication record detection resource corresponding to the at least one communication request, the communication request verification information corresponding to different communication record detection resources is interleaved and encoded by using different scrambling code vectors, and the scrambling code vectors are obtained by the time slice thread management unit according to the communication request.
In S233, the information transfer communication channel establishment request is for association detection information indicating at least one communication request authentication information.
In S234, the feedback information corresponds to the association detection information of the at least one communication request authentication information, and the feedback information is sent to the first target control device by the time slice thread management unit according to the information transfer communication channel establishment request.
In S235, the verification coordinate value is a two-dimensional coordinate, the abscissa of the verification coordinate value represents the time, and the ordinate of the verification coordinate value represents the amplitude.
Through S231-S236, since the communication request authentication information is sent by the slice thread management unit to the first target control device on the communication record detection resource corresponding to the at least one communication request, the communication request authentication information corresponding to different communication record detection resources is interleaved and encoded by using different scrambling code vectors, the scrambling code vectors are obtained by the slice thread management unit according to the communication request, and the information transfer communication channel establishment request is used for indicating the association detection information of the at least one communication request authentication information, the feedback information corresponds to the association detection information of the at least one communication request authentication information, and the feedback information is sent by the slice thread management unit to the first target control device according to the information transfer communication channel establishment request, the communication security between the first target control device and the slice thread management unit can be ensured by the interleaving and encoding method, and the speed of establishing the information transfer communication channel is increased on the premise of ensuring the communication security.
In S236, according to the verification curve, it is determined whether the first target control device and the time slice thread management unit satisfy a time linearity condition, which specifically includes the following:
s2361, judge whether there are at least two target coordinate values in all verification coordinate values.
Wherein the abscissa of the coordinate value of at least two targets is the same and the ordinate is different.
S2362, if there are at least two target coordinate values, it is determined that the first target control device and the time slice thread management unit do not satisfy the time linearity condition.
S2363, if there are not at least two target coordinate values, it is determined that the first target control device and the time slice thread management unit satisfy the time linearity condition.
Through S2361-S2363, the reliability of the established information transfer communication channel and the consistency of the time slice thread can be ensured, and the mismatching of signal acquisition and time caused by the advance or delay of the signal acquisition time can be avoided, so that the detection accuracy is ensured, and the omission is avoided.
Based on the same inventive concept as the previous embodiment, as shown in fig. 2, the embodiment of this specification further provides a device 20 for controlling and detecting the content of suspended solids in sewage treatment, including:
a determining module 21, configured to determine, when a detection device is switched from the current control device side to a target control device side, a time slice thread occupation state of a central processing unit of a current time slice thread of a signal acquisition protocol in the detection device at the target control device side, and a first target control device at the target control device side, where the first target control device is used to record the current time slice thread of the signal acquisition protocol in the detection device;
when the time slice thread occupation state of the current time slice thread of the signal acquisition protocol in the detection device at the central processing unit of the target control device side is an overload state, the first target control device comprises at least one target control device, and stream data of the current time slice thread is transferred to the at least one target control device at the target device side; when the time slice thread occupation state of the current time slice thread of the signal acquisition protocol in the detection device at the central processing unit of the target control device side is an unarmed state and the target control device side comprises a plurality of target control devices, the first target control device is a second target control device in the plurality of target control devices, and the thread covered by the time slice resource of the second target control device exceeds the current time slice thread of the signal acquisition protocol in the detection device;
a verification identifier obtaining module 22, configured to obtain a first verification identifier that is allocated by the first target control device to a current time slice thread of a signal acquisition protocol in the detection device, send the first verification identifier to a time slice thread management unit in a central control device, and obtain a second verification identifier that is allocated to the first target control device from the time slice thread management unit;
an information transfer communication channel establishing module 23, configured to send the second verification identifier to the first target control device, so as to establish an information transfer communication channel between the first target control device and the time slice thread management unit, where the information transfer communication channel is used to transmit a current time slice thread of a signal acquisition protocol in the detection device.
In an alternative mode, the device 20 for controlling and detecting the content of suspended substances in sewage treatment further comprises a handling module 24 for:
receiving nonlinear signals which are collected by the detection equipment from sewage to be detected and used for representing the content of suspended matters in the sewage to be detected according to a set time interval, and caching the nonlinear signals in a stacking mode;
extracting first characteristic information of each buffered nonlinear signal;
converting the signal amplitude and the moment of each cached nonlinear signal into target data in a set format; wherein the set format is a binary format;
processing all target data obtained by conversion based on a preset matching stack, and determining local data of each target data in all the target data in the processing process based on the preset matching stack; extracting second characteristic information corresponding to each local data;
integrating the cached first characteristic information of each nonlinear signal and the cached second characteristic information corresponding to the local data of the target data corresponding to each nonlinear signal to obtain a speed-up permission list;
if the cached first characteristic information of each nonlinear signal is downlink characteristic information, matching the cached first characteristic information of each nonlinear signal with the speed-up permission list, and setting a label for the successfully matched first characteristic information according to an index identifier corresponding to the speed-up permission list;
in a data link layer of the matching stack, comparing a label of first feature information which is successfully matched with an index identifier of the speed-up permission list, and modifying the first feature information which is compared with the index identifier of the speed-up permission list and is successfully matched with the speed-up permission list to obtain third feature information;
storing the third characteristic information, deleting the nonlinear signals cached corresponding to each piece of stored third characteristic information, and adding one to a set count value; the set time interval is negatively correlated with the speed increase of the set count value.
In an alternative mode, the device 20 for controlling and detecting the content of suspended matters in sewage treatment further comprises a reduction module 25, configured to:
determining an acquisition identifier corresponding to the target characteristic information included in the stored third characteristic information; acquiring a plurality of target feature vectors of target feature information and an aggregation component corresponding to each target feature vector from the stored third feature information according to the acquisition identifier;
respectively compressing the aggregation components of the target characteristic information to obtain a plurality of compressed packets; marking a corresponding trace back offset for each compressed packet respectively, and generating a compressed packet carrying the trace back offset; storing each compressed packet carrying the tracing offset into a tracing unit corresponding to a tracing database;
when a target nonlinear signal corresponding to target feature information of the stored third feature information in a set time period needs to be restored, searching each dimension expansion data of the target feature information corresponding to each aggregation component contained in the set time period based on information stored in the tracing database aiming at the target feature information of the stored third feature information;
and acquiring a target nonlinear signal corresponding to the target characteristic information of the stored third characteristic information in a set time period according to each dimension expansion data of the target characteristic information in the set time period.
In an alternative mode, the device 20 for controlling and detecting the content of suspended substances in sewage treatment further comprises a modification module 26 for:
acquiring a modification instruction for modifying the set time interval;
and modifying the set time interval according to the modification instruction.
In an alternative manner, the information transfer communication channel establishing module 23 is configured to:
causing the first target control device to send a communication request to the time slice thread management unit;
obtaining communication request authentication information from the first target control device; the communication request verification information is sent to the first target control device by the time slice thread management unit on a communication record detection resource corresponding to at least one communication request, the communication request verification information corresponding to different communication record detection resources is subjected to interleaving coding by adopting different scrambling code vectors, and the scrambling code vectors are obtained by the time slice thread management unit according to the communication request;
according to the communication request verification information, the first target control device is enabled to send an information transfer communication channel establishment request to the time slice thread management unit, wherein the information transfer communication channel establishment request is used for indicating at least one piece of association detection information of the communication request verification information;
obtaining feedback information from the first target control device; wherein the feedback information corresponds to the association detection information of the at least one communication request authentication information, and the feedback information is sent to the first target control device by the time slice thread management unit according to the information transfer communication channel establishment request;
determining verification coordinate values respectively corresponding to the communication request, the communication request verification information, the information transfer communication channel establishment request, the association detection information and the feedback information from a preset relational database; the verification coordinate value is a two-dimensional coordinate, the abscissa of the verification coordinate value represents the time, and the ordinate of the verification coordinate value represents the amplitude;
fitting all the verification coordinate values obtained by determination to obtain a verification curve; judging whether the first target control device and the time slice thread management unit meet a time linearity condition or not according to the verification curve; and when the first target control device and the time slice thread management unit meet a time linearity condition, enabling an information transfer communication channel to be established between the first target control device and the time slice thread management unit.
In an alternative manner, the information transfer communication channel establishing module 23 is configured to:
judging whether at least two target coordinate values exist in all the verification coordinate values; wherein the abscissa of the at least two target coordinate values is the same and the ordinate is different;
if yes, judging that the first target control equipment and the time slice thread management unit do not meet a time linear condition;
otherwise, the first target control device and the time slice thread management unit are judged to meet a time linearity condition.
In an optional manner, the throughput module 24 is further configured to:
judging whether the acceleration exceeds a set threshold value or not;
and if the speed increase exceeds the set threshold, stopping storing the third characteristic information and deleting the cached nonlinear signal.
Based on the same inventive concept as in the foregoing embodiments, the present specification further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any one of the foregoing methods.
Based on the same inventive concept as in the previous embodiments, the embodiments of the present specification further provide a computer device 30, as shown in fig. 3, including a memory 304, a processor 302, and a computer program stored on the memory X304 and executable on the processor 302, wherein the processor 302 executes the computer program to implement the steps of any of the methods described above.
Wherein in fig. 3 a bus architecture (represented by bus 300), bus 300 may include any number of interconnected buses and bridges, bus 300 linking together various circuits including one or more processors, represented by processor 302, and memory, represented by memory 304. The bus 300 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 305 provides an interface between the bus 300 and the receiver 301 and transmitter 303. The receiver 301 and the transmitter 303 may be one and the same element, i.e. a transceiver, providing a unit for communicating with various other terminal devices over a transmission medium. The processor 302 is responsible for managing the bus 300 and general processing, and the memory 304 may be used for storing data used by the processor 302 in performing operations.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, this description is not intended to refer to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the present specification as described herein, and any descriptions of specific languages are provided above to disclose the best mode of use of the present specification.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the present description may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the specification, various features of the specification are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that is, the present specification as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this specification.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the description and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of this description may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of a gateway, proxy server, system in accordance with embodiments of the present description. The present description may also be embodied as an apparatus or device program (e.g., computer program and computer program product) for performing a portion or all of the methods described herein. Such programs implementing the description may be stored on a computer-readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website, or provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the specification, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The description may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.