CN116743826A - Portable control device control method and system - Google Patents

Portable control device control method and system Download PDF

Info

Publication number
CN116743826A
CN116743826A CN202310731177.8A CN202310731177A CN116743826A CN 116743826 A CN116743826 A CN 116743826A CN 202310731177 A CN202310731177 A CN 202310731177A CN 116743826 A CN116743826 A CN 116743826A
Authority
CN
China
Prior art keywords
fault
module
control
equipment
vehicle
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
CN202310731177.8A
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.)
Tianjin Jinhang Computing Technology Research Institute
Original Assignee
Tianjin Jinhang Computing Technology Research Institute
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 Tianjin Jinhang Computing Technology Research Institute filed Critical Tianjin Jinhang Computing Technology Research Institute
Priority to CN202310731177.8A priority Critical patent/CN116743826A/en
Publication of CN116743826A publication Critical patent/CN116743826A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application belongs to the technical field of manipulation under a linux system, and discloses a portable control device manipulation method and a portable control device manipulation system, wherein the method comprises the following steps: dividing a control system function module, and dividing the control system into a plurality of modules according to the control function of the vehicle-mounted equipment; realizing the functions of each module of the control system, carrying out modularized management on the control system according to the control flow of the vehicle-mounted equipment, and processing system events on a plurality of divided modules in parallel; and executing the control workflow of the whole vehicle-mounted equipment by the main flow control module carried on the vehicle-mounted equipment according to the working time sequence. The application can realize the problem of controlling the system under the linux system, and the method has been verified by the algorithm and has been subjected to experimental verification. The scheme can provide a system scheme based on module management for portable control, is convenient for a user to monitor the working state of the vehicle-mounted equipment, and simultaneously cooperates with each equipment to work so as to complete the overall function of vehicle control.

Description

Portable control device control method and system
Technical Field
The application belongs to the technical field of manipulation under a linux system, and particularly relates to a manipulation method and a manipulation system of portable control equipment.
Background
The vehicle-mounted equipment is widely applied to field experimental sites, can be used for carrying radio stations to receive remote information and can be used for carrying weapon equipment so as to complete the striking task. But the cooperative work between the in-vehicle devices requires a remote control for centralized control.
But the existing vehicle-mounted portable control equipment can not control other equipment in the vehicle, and can not realize remote control in a certain distance, so that the problem of inconvenient operation in the cockpit is solved, and the cooperative work effect of the equipment is poor.
Disclosure of Invention
In order to overcome the problems in the related art, the disclosed embodiments of the present application provide a method and a system for controlling a portable control device.
The technical scheme is as follows: the portable control device control method comprises the following steps:
s1, dividing and controlling functional modules of a system; dividing a control system into a plurality of modules according to the control function of the vehicle-mounted equipment; the plurality of modules includes:
the fault management module stores the fault labels and the fault descriptions in an XML file;
the network receiving module is used for receiving the data message of the vehicle-mounted internal equipment and finishing the control function and the software upgrading of the equipment;
the network sending module is used for sending the external message by the system;
the system dormancy function module is used for sending a device dormancy instruction, and the device enters a dormancy mode;
the function checking module is used for giving a module checking instruction to each device in the vehicle and displaying a checking result through a feedback state;
the device software upgrading module is used for upgrading the software of each device to the latest version;
the radio station management module is used for remotely receiving radio station data and processing the radio station data
A device power distribution module; the method comprises the steps that a network sending module sends a power-on message to each device, the device receives a command and then powers on and feeds back a power-on state message, and the power-on state of the device is displayed in real time after the device is controlled to receive the command;
s2, the control system controls a plurality of modules; according to the control flow of the vehicle-mounted equipment, carrying out modularized management on a control system, and processing system events on a plurality of divided modules;
and S3, carrying a main flow control module on the vehicle-mounted equipment, and executing the control work of the whole vehicle-mounted equipment according to the working time sequence.
In step S1, the fault management module includes XML file reading, storing a fault label and a fault description in an XML file, loading the file through an XML object, and circularly acquiring XML file data including a fault identifier, a fault name and a fault solution after acquiring an XML root node root; setting a mapping Map queue, setting a keyword as a fault identifier, and setting a key value as a fault name and a fault solution through a mapping method.
The fault solution is to display fault information through a fault display page, and display a fault serial number, a fault source, a fault identifier, a fault name, a fault time and a fault remark; and after the fault is generated, recording the file of the fault.
Further, the execution flow of the fault management module is as follows:
s201, dividing XML formats according to protocol content, designating a storage path of each fault XML, and completing configuration of a fault XML file; newly creating a MAP object and emptying to finish initializing a MAP queue; creating an XML object and loading an XML file;
s202, acquiring Root node Root by using a system function Root Element, circularly acquiring fault information and receiving fault data;
s203, performing fault coding on the fault identification, using the fault coding as fault identification matching fault information, and displaying fault data on a fault list page; transmitting the fault data to a fault record processing function in a signal slot mode;
s204, creating and reading a fault file locally, and carrying out mapping distinction by identifying content according to the fault content in the XML file to realize mapping of the fault content from the XML description file record; describing and loading corresponding fault contents, obtaining fault file entry contents, and inserting the fault contents into corresponding positions of the fault file in an item-by-item manner, wherein the inserted contents comprise: fault nodes, labels, identifiers, fault content and time data, and processing of fault files is realized; the failure time is provided by the system time; and recording the fault content in a local file, and carrying out popup prompt on the fault.
Further, the execution flow of the network receiving module is as follows:
s301, designating a port number and a communication address of a socket, setting a receiving buffer zone, and completing initializing a network socket;
s302, the binding network receives the processing signals and the slots;
s303, judging the frame head and the frame tail of the received data according to the protocol specification;
s304, checking and checking through a CRC algorithm;
s305, judging the message type of the function code according to the protocol specification, and judging the frame type according to the function code of the message;
s306, sending data and processing threads through a signal slot function mechanism.
Further, the execution flow of the network sending module is as follows:
s401, judging the type of the instruction issued by the user to the equipment, and packaging the instruction into different interfaces according to different types;
s402, establishing a retransmission queue; setting data, retransmission time, times and identifications of each retransmission by taking a QMAP object as a retransmission queue, and adding the data, the retransmission time, the times and the identifications into the queue through a system function insert;
s403, setting a retransmission mark to 1 when transmitting one frame of data each time;
s404, storing the frame sequence number and the frame content to be retransmitted into a queue;
s405, after receiving the response frame, the system deletes the content corresponding to the serial number;
s406, if no response frame is received, repeating for three times, and stopping transmitting the next frame if the response frame is not received after repeating for three times.
Further, the execution flow of the system sleep function module is as follows:
s501, sending a dormancy instruction through a network sending module;
s502, receiving a state message returned by the equipment;
s503, judging whether the dormancy is successful, if so, directly ending, otherwise, sending information to the fault module.
Further, the execution flow of the function checking module is as follows:
s601, sending a module checking instruction; the equipment working module is set to be in an inspection mode, the control mode is a local control mode, a state message fed back by equipment is waited to be received, and the inspection execution state of the equipment is periodically judged;
s602, displaying an initialization state; displaying the state in execution, and displaying the check success or failure state;
s603, sending an ending check instruction; setting the equipment working module as an inspection mode, setting a control mode as a local control mode, performing popup window processing on errors sent in the ending inspection, and sending the processed errors to the fault management module;
s604, initializing an inspection flow display interface after finishing inspection; the equipment working mode is set to be an inspection mode, and the control mode is a remote control mode.
Further, the execution flow of the device software upgrade module is as follows:
s701, selecting equipment to be upgraded;
s702, secondarily confirming device selection;
s703, reading an upgrade file which needs to be updated of the device software;
s704, displaying the upgrading progress in real time;
and S705, finally displaying the upgrading result to be successfully completed or failed.
Another object of the present application is to provide a portable control device manipulation system, implementing a portable control device manipulation method, the system comprising:
the control system functional module dividing unit is used for dividing the control system into a plurality of modules according to the control function of the vehicle-mounted equipment;
the function realizing unit of each module of the control system is used for carrying out modularized management on the control system according to the control flow of the vehicle-mounted equipment and realizing the processing of system events on a plurality of divided modules;
and the main flow control module is used for carrying the main flow control module on the vehicle-mounted equipment and executing the control work of the whole vehicle-mounted equipment according to the working time sequence. By combining all the technical schemes, the application has the advantages and positive effects that: under the application scene that the system is linux, the scheme of the control system under the linux system is designed and realized aiming at the characteristics of the vehicle-mounted portable equipment and combining with the characteristics of external control equipment. According to the application, under the condition that the system is linux, other vehicle-mounted equipment is remotely controlled, so that personnel in the cockpit can know the state of the vehicle-mounted equipment conveniently, and the cooperative working process of the vehicle-mounted equipment is completed.
The application divides the control system function module, according to the control function of the vehicle-mounted equipment, the system is divided into the following modules: the system comprises a fault management module, a network receiving module, a system dormancy function module, a module checking function, an equipment software upgrading module, a radio station management module, an equipment power distribution module and a main flow control module. The method comprises the steps of realizing the functional modules of the control system, realizing modularized management on the control system according to the control flow of the vehicle-mounted equipment, and processing system events by the modules in parallel. The system control function is realized based on the modules, and the working flow of the whole machine is realized by the main flow control module according to the working time sequence of the equipment. Through the steps, the control function of the vehicle-mounted equipment under the linux system can be realized. The comprehensive control flow of the vehicle-mounted equipment is realized by modularized management, meanwhile, the requirements of severe experimental sites are considered, and remote regulation and control are carried out, so that the control problem of users in military environments is greatly solved, the traffic communication time is better shortened, and the experimental cost is saved
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure;
fig. 1 is a flowchart of a method for controlling a portable control device according to an embodiment of the present application;
FIG. 2 is a flow chart of the fault management module according to an embodiment of the present application;
fig. 3 is a flowchart of a network receiving module according to an embodiment of the present application;
fig. 4 is a flowchart of sending an external message by a network sending module according to an embodiment of the present application;
FIG. 5 is a flowchart of a sleep mode execution by a system sleep function module according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a functional check module provided by an embodiment of the present application;
fig. 7 is an upgrade flowchart of a device software upgrade module according to an embodiment of the present application.
Detailed Description
In order that the above objects, features and advantages of the application will be readily understood, a more particular description of the application will be rendered by reference to the appended drawings. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. The application may be embodied in many other forms than described herein and similarly modified by those skilled in the art without departing from the spirit or scope of the application, which is therefore not limited to the specific embodiments disclosed below.
Embodiment 1, as shown in fig. 1, the method for controlling a portable control device according to the embodiment of the present application includes:
s1, dividing and controlling functional modules of a system; dividing a control system into a plurality of modules according to the control function of the vehicle-mounted equipment; the plurality of modules includes: the system comprises a fault management module, a network receiving module, a network sending module, a system dormancy function module, a function checking module, an equipment software upgrading module, a radio station management module and an equipment power distribution module;
s2, the control system controls a plurality of modules; according to the control flow of the vehicle-mounted equipment, carrying out modularized management on a control system, and processing system events on a plurality of divided modules;
the functions performed by the modules are, for example, as follows: in an embodiment of the present application, the fault management module: the method comprises the steps of reading an XML file, and storing fault labels and fault descriptions in the XML file. Loading a file through an XML object, and circularly acquiring XML file data after acquiring an XML root node root, wherein the XML file data comprises a fault identifier, a fault name and a fault solution; setting a mapping Map queue, setting a keyword as a fault identifier, and setting a key value as a fault name and a fault solution through a mapping method; and finally, displaying fault information through a fault display page, wherein the displayed contents comprise a fault serial number, a fault source, a fault identifier, a fault name, a fault time and a fault remark. And after the fault is generated, recording the file of the fault.
And S3, carrying a main flow control module on the vehicle-mounted equipment, and executing the control work of the whole vehicle-mounted equipment according to the working time sequence.
Further, as shown in fig. 2, the fault management module executes the following flow:
s201, dividing XML formats according to protocol content, designating a storage path of each fault XML, and completing configuration of a fault XML file;
creating a MAP object, and emptying the object to finish initializing a MAP queue; creating an XML object; loading an XML file;
s202, acquiring a root node root by using a system function RootElement; circularly acquiring fault information; receiving fault data;
s203, each fault identifier is provided with a corresponding fault code, and fault information is matched according to the fault code serving as the fault identifier;
displaying fault data on a fault list page; transmitting the fault data to a fault record processing function in a signal slot mode; the signal slot mode comprises the following steps: binding a corresponding slot processing function one semaphore at a time, wherein the whole processing function is to wait for receiving the semaphore, when the semaphore is sent out and the parameter is designated as fault data, and the fault recording processing function is executed as the slot function of the semaphore after the semaphore is sent out;
s204, locally creating a fault file, wherein the word name is year, month and day; reading a fault file, and carrying out mapping distinction according to the identification content of the fault content in the XML file to realize the mapping of the fault content from the XML description file record;
describing and loading corresponding fault contents; obtaining the item content of the fault file, carrying out item insertion on the fault content into the corresponding position of the fault file, wherein the inserted content comprises the following steps: fault nodes, labels, identifiers, fault content and time data, and processing of fault files is realized; the failure time is provided by the system time; recording the fault content in a local file;
and carrying out popup prompt on the fault.
In the embodiment of the application, the network receiving module: the data message of the vehicle-mounted internal equipment is received through the module, so that the control function and the software upgrading of the equipment are completed, and the execution flow of the network receiving module is shown in fig. 3:
s301, designating a port number and a communication address of a socket, setting a receiving buffer zone, and completing initializing a network socket;
s302, the binding network receives the processing signals and the slots;
s303, judging the frame head and the frame tail of the received data according to the protocol specification;
s304, checking and checking through a CRC algorithm;
s305, judging which message the function code belongs to according to the protocol specification so as to judge the frame type according to the function code of the message;
and S306, sending the data to other modules and processing threads through a signal slot function mechanism.
In the embodiment of the application, the network sending module: the module is mainly used for sending the external message by the system. The specific flow is shown in figure 4 of the drawings,
s401, judging the instruction issuing of a user to equipment according to the instruction type, and packaging the instruction issuing into different interfaces according to different types;
s402, a retransmission queue is established; a QMAP object is established as a retransmission queue, retransmission time, times and marks are set for data retransmitted each time, and the data are added into the queue through a system function insert;
s403, setting a retransmission mark to 1 when transmitting one frame of data each time;
s404, storing the frame sequence number and the frame content to be retransmitted into a queue;
s405, after receiving the response frame, the system deletes the content corresponding to the serial number; the deleting process comprises the following steps: mapping the message according to the sequence number by using a system function delete, and deleting the content in the queue;
s406, if no response frame is received, repeating for three times, and stopping transmitting the next frame if the response frame is not received after repeating for three times.
In the embodiment of the application, a system dormancy function module: when the user needs to sleep the device, a device sleep instruction is sent, the device enters a sleep mode, as shown in figure 5 in particular,
s501, sending a dormancy instruction through a network sending module;
s502, receiving a state message returned by the equipment;
s503, judging whether dormancy is successful according to the message content, if so, directly ending, otherwise, sending information to a fault module;
in an embodiment of the present application, the function checking module: and sending a module inspection instruction to each device in the vehicle, and displaying an inspection result through the fed-back state. As particularly shown in fig. 6;
s601, sending a module checking instruction; the equipment working module is set to be in an inspection mode, and the control mode is a local control mode; waiting for receiving a state message fed back by the equipment; periodically judging the checking execution state of the equipment according to the state message replied by the equipment;
s602, displaying an initialization state; displaying the state in execution; displaying the successful or failed state of the check;
s603, sending an ending check instruction; setting the equipment working module as an inspection mode, and setting a control mode as a local control mode; performing popup processing on errors sent in the ending inspection and sending the popup processing to a fault management module;
s604, initializing an inspection flow display interface after finishing inspection; the equipment working mode is set to be an inspection mode, and the control mode is a remote control mode.
In the embodiment of the application, the equipment software upgrading module: and upgrading the software of each device to the latest version. As particularly shown in fig. 7;
s701, selecting equipment to be upgraded;
s702, secondarily confirming device selection;
s703, reading an upgrade file which needs to be updated of the equipment software, and completely covering the equipment software into a new file;
s704, displaying the upgrading progress in real time, and according to the data length dividing process of the upgrading file, uploading how many bytes occupy the percentage of the whole file length;
and S705, finally displaying the upgrading result to be successfully completed or failed.
In the embodiment of the application, the station management module: the radio station data is received remotely, and is processed, and the specific flow is as follows: firstly, a user sets parameters of a radio station through interface operation, the radio station updates a state after receiving an instruction, and the control system processes and displays the radio station state and a working mode after receiving a radio station message.
In an embodiment of the application, the equipment power distribution module: the user operates the control system interface, selects the power-on equipment, sends a power-on message to each equipment through the network sending module, and feeds back a power-on state message after the equipment receives the instruction and displays the power-on state of the equipment in real time after receiving the instruction; the user can also perform one-key power-on or power-off functions on all devices in the vehicle through the shortcut key.
S3, realizing a system control function based on the module, and realizing the working flow of the whole machine according to the working time sequence of the equipment in the main flow program control module. The method comprises the following steps:
initializing each module resource;
waiting for receiving a power-on instruction issued by a user;
updating the working state of each vehicle-mounted device; modifying the state diagram according to the message content;
processing response messages of all the devices; if the response is needed, a confirmation message is replied, otherwise, the response is not replied;
processing timeout retransmission of each device; if the equipment state message or other messages are received in excess of the appointed time, retransmission is needed;
setting working modes of all the devices;
processing reset requirements of all devices;
issuing a module checking instruction to the equipment;
sending end check instructions to a device
Calling a timeout function to time each message;
receiving flow state information of each device;
processing the comprehensive equipment working time sequence aiming at each equipment flow step; calling corresponding processing functions according to the requirements of the equipment flow and the corresponding flow;
recording the error;
waiting for the user to give a power-down instruction.
Embodiment 2 of the present application provides a portable control device manipulation system, including:
the control system functional module dividing unit is used for dividing the control system into a plurality of modules according to the control function of the vehicle-mounted equipment;
the function realization unit of each module of the control system is used for carrying out modularized management on the control system according to the control flow of the vehicle-mounted equipment and processing system events on a plurality of divided modules in parallel;
the main flow control module is used for executing the control workflow of the whole vehicle-mounted equipment according to the working time sequence;
the radio station management module is used for remotely receiving radio station data and processing the radio station data;
and the equipment power distribution module is used for sending a power-on message to each equipment through the network sending module, powering up the equipment after receiving the instruction, feeding back the power-on state message, and controlling the equipment to display the power-on state of the equipment in real time after receiving the instruction.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
The content of the information interaction and the execution process between the devices/units and the like is based on the same conception as the method embodiment of the present application, and specific functions and technical effects brought by the content can be referred to in the method embodiment section, and will not be described herein.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. For specific working processes of the units and modules in the system, reference may be made to corresponding processes in the foregoing method embodiments.
Based on the technical solutions described in the embodiments of the present application, the following application examples may be further proposed.
According to an embodiment of the present application, there is also provided a computer apparatus including: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, which when executed by the processor performs the steps of any of the various method embodiments described above.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, performs the steps of the respective method embodiments described above.
The embodiment of the application also provides an information data processing terminal, which is used for providing a user input interface to implement the steps in the method embodiments when being implemented on an electronic device, and the information data processing terminal is not limited to a mobile phone, a computer and a switch.
The embodiment of the application also provides a server, which is used for realizing the steps in the method embodiments when being executed on the electronic device and providing a user input interface.
Embodiments of the present application also provide a computer program product which, when run on an electronic device, causes the electronic device to perform the steps of the method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc.
To further demonstrate the positive effects of the above embodiments, the present application was based on the above technical solutions to perform the following experiments.
By using the technical scheme, the method can realize the problem of controlling the system under the linux system by adopting the operation steps, and the method is verified by an algorithm and is subjected to experimental verification. The result shows that the scheme can provide a system scheme based on module management for portable control, is convenient for a user to monitor the working state of the vehicle-mounted equipment, and simultaneously cooperates with each equipment to work so as to complete the overall function of vehicle control.
While the application has been described with respect to what is presently considered to be the most practical and preferred embodiments, it is to be understood that the application is not limited to the disclosed embodiments, but on the contrary, is intended to cover various modifications, equivalents, and alternatives falling within the spirit and scope of the application.

Claims (10)

1. A method of operating a portable control device, the method comprising the steps of:
s1, dividing and controlling functional modules of a system; dividing a control system into a plurality of modules according to the control function of the vehicle-mounted equipment; the plurality of modules includes:
the fault management module stores the fault labels and the fault descriptions in an XML file;
the network receiving module is used for receiving the data message of the vehicle-mounted internal equipment and finishing the control function and the software upgrading of the equipment;
the network sending module is used for sending the external message by the system;
the system dormancy function module is used for sending a device dormancy instruction, and the device enters a dormancy mode;
the function checking module is used for giving a module checking instruction to each device in the vehicle and displaying a checking result through a feedback state;
the device software upgrading module is used for upgrading the software of each device to the latest version;
the radio station management module is used for remotely receiving radio station data and processing the radio station data;
a device power distribution module; the method comprises the steps that a network sending module sends a power-on message to each device, the device receives a command and then powers on and feeds back a power-on state message, and the power-on state of the device is displayed in real time after the device is controlled to receive the command;
s2, the control system controls a plurality of modules; according to the control flow of the vehicle-mounted equipment, carrying out modularized management on a control system, and processing system events on a plurality of divided modules;
and S3, carrying a main flow control module on the vehicle-mounted equipment, and executing the control work of the whole vehicle-mounted equipment according to the working time sequence.
2. The method according to claim 1, wherein in step S1, the fault management module includes XML file reading, storing a fault label and a fault description in an XML file, loading the file through an XML object, and circularly acquiring XML file data including a fault identifier, a fault name and a fault solution after acquiring an XML root node root; setting a mapping Map queue, setting a keyword as a fault identifier, and setting a key value as a fault name and a fault solution through a mapping method.
3. The method for controlling a portable control device according to claim 2, wherein the fault solution is to display fault information through a fault display page, and display a fault serial number, a fault source, a fault identifier, a fault name, a fault time and a fault remark; and after the fault is generated, recording the file of the fault.
4. The portable control device manipulation method according to claim 1, wherein the fault management module performs the following steps:
s201, dividing XML formats according to protocol content, designating a storage path of each fault XML, and completing configuration of a fault XML file; newly creating a MAP object and emptying to finish initializing a MAP queue; creating an XML object and loading an XML file;
s202, acquiring Root node Root by using a system function Root Element, circularly acquiring fault information and receiving fault data;
s203, performing fault coding on the fault identification, using the fault coding as fault identification matching fault information, and displaying fault data on a fault list page; transmitting the fault data to a fault record processing function in a signal slot mode;
s204, creating and reading a fault file locally, and carrying out mapping distinction by identifying content according to the fault content in the XML file to realize mapping of the fault content from the XML description file record; describing and loading corresponding fault contents, obtaining fault file entry contents, and inserting the fault contents into corresponding positions of the fault file in an item-by-item manner, wherein the inserted contents comprise: fault nodes, labels, identifiers, fault content and time data, and processing of fault files is realized; the failure time is provided by the system time; and recording the fault content in a local file, and carrying out popup prompt on the fault.
5. The portable control device manipulation method according to claim 1, wherein the execution flow of the network receiving module is as follows:
s301, designating a port number and a communication address of a socket, setting a receiving buffer zone, and completing initializing a network socket;
s302, the binding network receives the processing signals and the slots;
s303, judging the frame head and the frame tail of the received data according to the protocol specification;
s304, checking and checking through a CRC algorithm;
s305, judging the message type of the function code according to the protocol specification, and judging the frame type according to the function code of the message;
s306, sending data and processing threads through a signal slot function mechanism.
6. The portable control device manipulation method according to claim 1, wherein the execution flow of the network transmission module is as follows:
s401, judging the type of the instruction issued by the user to the equipment, and packaging the instruction into different interfaces according to different types;
s402, establishing a retransmission queue; setting data, retransmission time, times and identifications of each retransmission by taking a QMAP object as a retransmission queue, and adding the data, the retransmission time, the times and the identifications into the queue through a system function insert;
s403, setting a retransmission mark to 1 when transmitting one frame of data each time;
s404, storing the frame sequence number and the frame content to be retransmitted into a queue;
s405, after receiving the response frame, the system deletes the content corresponding to the serial number;
s406, if no response frame is received, repeating for three times, and stopping transmitting the next frame if the response frame is not received after repeating for three times.
7. The portable control device manipulation method according to claim 1, wherein the execution flow of the system sleep function module is as follows:
s501, sending a dormancy instruction through a network sending module;
s502, receiving a state message returned by the equipment;
s503, judging whether the dormancy is successful, if so, directly ending, otherwise, sending information to the fault module.
8. The portable control device manipulation method according to claim 1, wherein the execution flow of the function check module is as follows:
s601, sending a module checking instruction; the equipment working module is set to be in an inspection mode, the control mode is a local control mode, a state message fed back by equipment is waited to be received, and the inspection execution state of the equipment is periodically judged;
s602, displaying an initialization state; displaying the state in execution, and displaying the check success or failure state;
s603, sending an ending check instruction; setting the equipment working module as an inspection mode, setting a control mode as a local control mode, performing popup window processing on errors sent in the ending inspection, and sending the processed errors to the fault management module;
s604, initializing an inspection flow display interface after finishing inspection; the equipment working mode is set to be an inspection mode, and the control mode is a remote control mode.
9. The portable control device manipulation method according to claim 1, wherein the device software upgrade module is executed as follows:
s701, selecting equipment to be upgraded;
s702, secondarily confirming device selection;
s703, reading an upgrade file which needs to be updated of the device software;
s704, displaying the upgrading progress in real time;
and S705, finally displaying the upgrading result to be successfully completed or failed.
10. A portable control device handling system for implementing the portable control device handling method of any of claims 1-9, the system comprising:
the control system functional module dividing unit is used for dividing the control system into a plurality of modules according to the control function of the vehicle-mounted equipment;
the function realizing unit of each module of the control system is used for carrying out modularized management on the control system according to the control flow of the vehicle-mounted equipment and realizing the processing of system events on a plurality of divided modules;
and the main flow control module is used for carrying the main flow control module on the vehicle-mounted equipment and executing the control work of the whole vehicle-mounted equipment according to the working time sequence.
CN202310731177.8A 2023-06-20 2023-06-20 Portable control device control method and system Pending CN116743826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310731177.8A CN116743826A (en) 2023-06-20 2023-06-20 Portable control device control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310731177.8A CN116743826A (en) 2023-06-20 2023-06-20 Portable control device control method and system

Publications (1)

Publication Number Publication Date
CN116743826A true CN116743826A (en) 2023-09-12

Family

ID=87900813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310731177.8A Pending CN116743826A (en) 2023-06-20 2023-06-20 Portable control device control method and system

Country Status (1)

Country Link
CN (1) CN116743826A (en)

Similar Documents

Publication Publication Date Title
CN101610499A (en) The upgrade method of wireless data card and system
CN106850241A (en) A kind of vehicle-mounted OBD terminals and its remote upgrade method
JPH113224A (en) Program updating method for portable information terminal equipment
CN105740097A (en) Terminal radio-frequency parameter processing apparatus and method
US20240070026A1 (en) Method For Remote Upgrade and Rollback of Unmanned Aerial Vehicle (UAV) Software
CN108769241B (en) Operation method, device and system for remote control of heat pump unit
CN116382746A (en) Firmware upgrading method, device, equipment and medium
CN105631715A (en) Advertisement updating supervision method and device
US20030214665A1 (en) Information system for providing printing function, printing method and program
CN112486733B (en) System restoration method, device, terminal and storage medium
CN116743826A (en) Portable control device control method and system
CN111984287A (en) Equipment upgrading method and system
CN106254440A (en) The upgrade method of a kind of AP and device
CN117130697A (en) Method and device for fixing application on taskbar
CN103179016A (en) Method and system for updating multi-case terminal roaming configuration data and server
US7444430B2 (en) Terminal apparatus and control method thereof
CN111580857B (en) Equipment firmware online configuration method, device and system
CN114895933A (en) System upgrade method, network device, medium, and electronic device
CN103902323B (en) A kind of lung ventilator method for upgrading software and its system
CN113342385A (en) Software upgrading method and device and air conditioner control panel
CN113127029A (en) Firmware updating method and device, electronic equipment and storage medium
CN114670705B (en) Method and device for configuring sub-board of battery management system and electronic equipment
CN110264366A (en) Terminal device, information processing method and storage medium
EP4339871A1 (en) Internet of vehicles-based digital commodity processing method, apparatus, and medium
CN116108110B (en) Kafka message consumption compensation method, system and medium

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