Disclosure of Invention
The application provides a special car control system parameter processing method and device, so that the method and device can be independent of an external computer, the cost is saved, the parameter processing is carried out in a single machine of the special car control system, independent management is not needed, the flow is initiated by an operation and control unit, the configuration and query processes are automatically completed, the risk of manual misoperation is avoided, and the safety and the efficiency of parameter processing of the special car control system are improved.
In a first aspect, the present application provides a method for processing parameters of a special-purpose vehicle control system, where the method is applied to a special-purpose vehicle control system, the special-purpose vehicle control system includes a control unit, a main control unit and a general unit, and the method includes:
the control unit responds to a starting instruction and sends the starting instruction to the main control unit;
the main control unit responds to the starting instruction and detects the running state of the universal unit to obtain a detection result;
if the detection result meets a preset condition, the main control unit performs parameter processing corresponding to the parameter processing instruction on the general unit according to the received parameter processing instruction to obtain a processing result;
and the main control unit sends the processing result to the control unit so that the control unit can display the processing result.
In a second aspect, the present application provides a special car control system parameter processing apparatus, the apparatus is applied to a special car control system, the special car control system includes a control unit, a main control unit and a general unit, the apparatus includes:
the starting unit is used for responding to a starting instruction by the control unit and sending the starting instruction to the main control unit;
the detection unit is used for responding to the starting instruction by the main control unit and detecting the running state of the universal unit to obtain a detection result;
the processing unit is used for processing the parameters corresponding to the parameter processing instruction on the general unit according to the received parameter processing instruction if the detection result meets the preset condition, so as to obtain a processing result;
and the sending unit is used for sending the processing result to the control unit by the main control unit so that the control unit can display the processing result.
In a third aspect, the present application provides a readable medium comprising executable instructions, which when executed by a processor of an electronic device, perform the method according to any of the first aspect.
In a fourth aspect, the present application provides an electronic device comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor performs the method according to any one of the first aspect.
According to the technical scheme, the application provides a special car control system parameter processing method, the method is applied to a special car control system, the special car control system comprises a control unit, a main control unit and a general unit, and the method comprises the following steps: the control unit responds to a starting instruction and sends the starting instruction to the main control unit; the main control unit responds to the starting instruction and detects the running state of the universal unit to obtain a detection result; if the detection result meets a preset condition, the main control unit performs parameter processing corresponding to the parameter processing instruction on the general unit according to the received parameter processing instruction to obtain a processing result; and the main control unit sends the processing result to the control unit so that the control unit can display the processing result. Therefore, the scheme provided by the application can be independent of an external computer, the cost is saved, the parameter processing is carried out in a single machine of the special car control system, independent management is not needed, the process is initiated by the control unit, the configuration and query processes are automatically completed, the risk of manual misoperation is avoided, and the safety and the efficiency of parameter processing of the special car control system are improved.
Further effects of the above-mentioned unconventional preferred modes will be described below in conjunction with specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following embodiments and accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The inventor finds that in the prior art, for parameter management of a control system, parameter backup is generally not performed at the present stage or manual parameter backup and parameter recovery are performed by selecting an external debugging computer mode. Once the controller is damaged and replaced, the system can normally work after system parameters need to be recovered, and the defects that the parameter backup is not carried out are as follows: firstly, the repair cost is high: the sensors need to be calibrated again, and the calibration of the sensors such as levelness and verticality depends on a special measuring instrument, so that the fault repairing cost is improved. Secondly, the efficiency is low: the control parameters need to be debugged again, which affects the recovery efficiency of the control system. The method depends on computer equipment outside the system to carry out parameter management, and the main defects are as follows: firstly, the cost is high: the backup and recovery of the control system parameters depend on special computer equipment, and the parameter backup and recovery can not be carried out under the condition of no special computer. Secondly, the safety is insufficient: the parameter backup and recovery depend on a technician to use a computer to perform manual operation, the correctness of the parameter backup and recovery completely depends on the technician, and when the parameters of the control system are excessive, the correctness of the parameter backup and recovery is difficult to ensure; thirdly, the efficiency is low: the technical personnel need to externally connect a tooling cable to backup and restore the parameters of the control system one by one through a special computer.
Therefore, the application provides a special car control system parameter processing method, which is applied to a special car control system, wherein the special car control system comprises a control unit, a main control unit and a general unit, and the method comprises the following steps: the control unit responds to a starting instruction and sends the starting instruction to the main control unit; the main control unit responds to the starting instruction and detects the running state of the universal unit to obtain a detection result; if the detection result meets a preset condition, the main control unit performs parameter processing corresponding to the parameter processing instruction on the general unit according to the received parameter processing instruction to obtain a processing result; and the main control unit sends the processing result to the control unit so that the control unit can display the processing result. Therefore, the scheme provided by the application can be independent of an external computer, the cost is saved, the parameter processing is carried out in a single machine of the special vehicle control system, independent management is not needed, the process is initiated by the control unit, the configuration and query processes are automatically completed, the risk of manual misoperation is avoided, and the safety and the efficiency of parameter processing of the special vehicle control system are improved.
Various non-limiting embodiments of the present application are described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a method for processing parameters of a special car control system in an embodiment of the present application is shown, where the method is applied to a special car control system, and as shown in fig. 2, the special car control system may include a control unit, a main control unit, and a general unit. In this embodiment, the method may include, for example, the steps of:
s101: and the control unit responds to a starting instruction and sends the starting instruction to the main control unit.
In this embodiment, as shown in fig. 2, the control unit may include an operation subunit (for example, a key or a touch screen) and a display controller. In this embodiment, after the control unit receives the start instruction, the control unit may send the start instruction to the main control unit in response to the start instruction.
As an example, as shown in fig. 3, the operation subunit detects a preset starting operation (such as a combination key, i.e., a combination input of multiple keys), generates the starting instruction, and sends the starting instruction to the display controller. It can be understood that the parameter backup and recovery process is initiated by a combination key of the operation subunit, and in order to avoid misoperation, a single key cannot initiate the process, and the operation unit can be a stand-alone device with keys or a touch screen and the like capable of performing human-computer interaction.
After the display controller receives the starting instruction, the display controller can respond to the starting instruction, enter a starting interface and send the starting instruction to the main control unit. It can be understood that after the display controller collects the starting instruction triggered by the combined key, the display controller can enter a parameter backup recovery display interface to represent that the process initiation is successful and prompt the next operation.
S102: and the main control unit responds to the starting instruction and detects the running state of the universal unit to obtain a detection result.
In this embodiment, the operation status of the general-purpose unit may include a node online status, a sensor online status, and a sensor range status of the general-purpose unit. Specifically, the main control unit may detect a node online state, a sensor online state, and a sensor range state of the general unit in response to the start instruction, and obtain a detection result. As shown in fig. 3, after entering the parameter backup or recovery mode, the main control subunit in the main control unit may determine whether the node online state, the sensor online state, and the sensor of the general control subunit (or a non-main control single machine) are within the range, so as to obtain the detection result.
S103: and if the detection result meets a preset condition, the main control unit performs parameter processing corresponding to the parameter processing instruction on the general unit according to the received parameter processing instruction to obtain a processing result.
The preset conditions are that the node online state of the general control subunit is normal online, the sensor online state is normal online, and the sensor is in a measuring range.
And if the detection result does not meet the preset condition, carrying out parameter backup failure prompt, namely displaying a parameter backup failure prompt interface by the display controller.
In this embodiment, the parameter processing instruction is a parameter backup instruction, the main control unit includes a main control subunit (i.e., main control software in fig. 2) and a main control ferroelectric (i.e., ferroelectric summarized by the main control unit in fig. 2), and the general unit includes a general control subunit (i.e., general software in fig. 2) and a general ferroelectric (i.e., general software in the general unit in fig. 2).
If the detection result meets the preset condition, the main control unit can perform parameter processing corresponding to the parameter processing instruction on the general unit according to the received parameter processing instruction to obtain a processing result.
Specifically, in an implementation manner, if the parameter processing instruction may be a parameter backup instruction, and if the detection result meets a preset condition, as shown in fig. 3, the main control unit (for example, a main control subunit in the main control unit) may read the parameter of the main control ferroelectric according to the received parameter backup instruction, and send the parameter of the main control ferroelectric to the general control subunit based on a preset communication protocol. The general control subunit may write the parameters of the master ferroelectric into the general ferroelectric, and send the write result to the master unit as a processing result (such as a backup success or failure). That is to say, if the parameter backup key is pressed, the main control unit inquires the parameters of the main control ferroelectrics one by one after acquiring the backup key pressing signal, and automatically initiates a parameter writing instruction to the general control subunit according to a communication protocol.
Specifically, in an implementation manner, the parameter processing instruction may be a parameter recovery instruction, and if the detection result meets a preset condition, the main control unit (for example, a main control subunit in the main control unit) performs, according to the received parameter processing instruction, parameter processing (i.e., parameter recovery) corresponding to the parameter recovery instruction on the general-purpose unit, to obtain a processing result. Specifically, as shown in fig. 3, if the detection result meets a preset condition, the main control unit recovers the instruction according to the received parameter, and the main control unit sends a parameter query instruction to the general control subunit based on a preset communication protocol; the general control subunit responds to the parameter query instruction, reads the parameters of the general ferroelectrics, and sends the parameters of the general ferroelectrics to the main control subunit; the master control subunit writes the parameters of the general ferroelectric into the master ferroelectric, and takes the written result as a processing result (such as recovery success or failure). That is, if the parameter recovery key is pressed, the main control unit collects the recovery key pressing signal, automatically initiates a parameter query instruction to the general control subunit according to the communication protocol, and writes the received parameter feedback into the main control ferroelectrics one by one.
S104: and the main control unit sends the processing result to the control unit so that the control unit can display the processing result.
In this embodiment, the main control unit may send the processing result to the control unit; for example, the main control subunit in the main control unit sends the processing result to the control unit.
And the display controller of the control unit can display a result page corresponding to the processing result according to the processing result. It can be understood that, after the display controller reads the processing result, the parameter backup and the parameter successful display can be performed. If the processing result is that the parameter backup/recovery is successful, the display controller can display a backup/recovery successful interface, and automatically quit the parameter backup/recovery flow after the backup/recovery successful interface keeps a preset time (for example, 3 seconds), and if the processing result is that the parameter backup/recovery fails, the display controller can stay at the parameter backup/recovery failed interface and needs to manually quit the flow and perform troubleshooting.
It can be seen from the above technical solutions that, the present application provides a method for processing parameters of a special car control system, where the method is applied to a special car control system, the special car control system includes a control unit, a main control unit and a general unit, and the method includes: the control unit responds to a starting instruction and sends the starting instruction to the main control unit; the main control unit responds to the starting instruction and detects the running state of the universal unit to obtain a detection result; if the detection result meets a preset condition, the main control unit performs parameter processing corresponding to the parameter processing instruction on the general unit according to the received parameter processing instruction to obtain a processing result; and the main control unit sends the processing result to the control unit so that the control unit can display the processing result. Therefore, the scheme provided by the application can be independent of an external computer, the cost is saved, the parameter processing is carried out in a single machine of the special car control system, independent management is not needed, the process is initiated by the control unit, the configuration and query processes are automatically completed, the risk of manual misoperation is avoided, and the safety and the efficiency of parameter processing of the special car control system are improved.
Fig. 4 shows a specific embodiment of a parameter processing device of the special vehicle control system according to the present application. The apparatus of this embodiment is a physical apparatus for executing the method of the above embodiment. The technical solution is essentially the same as that in the above embodiment, and the corresponding description in the above embodiment is also applicable to this embodiment. The device is applied to special car control system, special car control system includes control unit, main control unit and general unit, and the device includes in this embodiment:
the starting unit 401 is used for the control unit to respond to a starting instruction and send the starting instruction to the main control unit;
a detection unit 402, configured to, in response to the start instruction, the main control unit detects an operation state of the general unit, so as to obtain a detection result;
the processing unit 403 is configured to, if the detection result meets a preset condition, perform, by the main control unit, parameter processing corresponding to the parameter processing instruction on the general unit according to the received parameter processing instruction, so as to obtain a processing result;
a sending unit 404, configured to send the processing result to the control unit by the master control unit, so that the control unit displays the processing result.
Optionally, the control unit includes an operation subunit and a display controller, and the starting unit is specifically configured to:
the operation subunit detects a preset starting operation, generates the starting instruction, and sends the starting instruction to the display controller;
and the display controller responds to the starting instruction, enters a starting interface and sends the starting instruction to the main control unit.
Optionally, the detecting unit 402 is configured to:
and the main control unit responds to the starting instruction, and detects the node online state, the sensor online state and the sensor range state of the universal unit to obtain a detection result.
Optionally, the parameter processing instruction is a parameter backup instruction, the main control unit includes a main control subunit and a main control ferroelectric, and the general unit includes a general control subunit and a general ferroelectric;
the processing unit 403 is configured to:
if the detection result meets a preset condition, the main control unit reads the parameters of the main control ferroelectrics according to the received parameter backup instruction, and sends the parameters of the main control ferroelectrics to the general control subunit based on a preset communication protocol;
and the general control subunit writes the parameters of the master control ferroelectric into the general ferroelectric, and sends the written result as a processing result to the master control unit.
Optionally, the parameter processing instruction is a parameter recovery instruction, the main control unit includes a main control subunit and a main control ferroelectric, and the general unit includes a general control subunit and a general ferroelectric;
the processing unit 403 is configured to:
if the detection result meets a preset condition, the main control unit recovers the instruction according to the received parameter, and the main control unit sends a parameter query instruction to the general control subunit based on a preset communication protocol;
the general control subunit responds to the parameter query instruction, reads the parameters of the general ferroelectricity, and sends the parameters of the general ferroelectricity to the main control subunit;
and the main control subunit writes the parameters of the universal ferroelectric into the main control ferroelectric, and takes the written result as a processing result.
Optionally, the sending unit 404 is configured to:
the main control unit sends the processing result to the control unit;
and the display controller of the control unit displays a result page corresponding to the processing result according to the processing result.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. On the hardware level, the electronic device comprises a processor and optionally an internal bus, a network interface and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry standard architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry standard architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
And the memory is used for storing the execution instruction. In particular, a computer program that can be executed by executing instructions. The memory may include both memory and non-volatile storage and provides execution instructions and data to the processor.
In a possible implementation manner, the processor reads the corresponding execution instruction from the nonvolatile memory to the memory and then runs the corresponding execution instruction, and the corresponding execution instruction can also be obtained from other equipment, so as to form the special car control system parameter processing device on a logic level. The processor executes the execution instruction stored in the memory, so that the special vehicle control system parameter processing method provided by any embodiment of the application is realized through the executed execution instruction.
The method executed by the special vehicle control system parameter processing device according to the embodiment shown in fig. 1 of the present application may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in ram, flash, rom, prom, or eprom, registers, etc. as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and combines hardware thereof to complete the steps of the method.
The embodiment of the present application further provides a readable storage medium, where the readable storage medium stores an execution instruction, and when the stored execution instruction is executed by a processor of an electronic device, the electronic device can execute the special car control system parameter processing method provided in any embodiment of the present application, and is specifically configured to execute the special car control system parameter processing method.
The electronic device described in the foregoing embodiments may be a computer.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as a method or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.