CN112583933A - Parameter operation method, device, equipment and storage medium - Google Patents

Parameter operation method, device, equipment and storage medium Download PDF

Info

Publication number
CN112583933A
CN112583933A CN202011572460.3A CN202011572460A CN112583933A CN 112583933 A CN112583933 A CN 112583933A CN 202011572460 A CN202011572460 A CN 202011572460A CN 112583933 A CN112583933 A CN 112583933A
Authority
CN
China
Prior art keywords
parameter
message middleware
preset
parameter information
preset message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011572460.3A
Other languages
Chinese (zh)
Other versions
CN112583933B (en
Inventor
周明明
周辉
刘洋
鲁飞
甘灿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gaoxin Modern Intelligent System Co ltd
Original Assignee
Gaoxin Modern Intelligent System Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gaoxin Modern Intelligent System Co ltd filed Critical Gaoxin Modern Intelligent System Co ltd
Priority to CN202011572460.3A priority Critical patent/CN112583933B/en
Publication of CN112583933A publication Critical patent/CN112583933A/en
Application granted granted Critical
Publication of CN112583933B publication Critical patent/CN112583933B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to the technical field of automatic ticket selling and checking, and discloses a parameter management method, a device, equipment and a storage medium, wherein the method comprises the following steps: obtaining theme information, determining theme service according to the theme information, and starting a parameter management module; the theme service is sent to a preset message middleware and preset parameter information is fed back; acquiring preset parameter information fed back by the preset message middleware through the parameter management module, and analyzing the preset parameter information to acquire target parameter information; and operating the target parameter information. The invention manages the parameter information in the current equipment by the preset message middleware, and obtains the currently required target parameter from a remote end according to the preset message middleware when the parameter information is changed, so that the current parameter can keep the remote parameter consistent.

Description

Parameter operation method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of automatic ticket selling and checking, in particular to a parameter operation method, a parameter operation device, parameter operation equipment and a parameter operation storage medium.
Background
In the current rail transit industry, along with gradual expansion of a wire network, parameters of a line ticketing system of an automatic ticketing machine also need to be updated gradually, at present, in the automatic ticketing system, an implementation personnel needs to configure individualized parameters of equipment in an initial equipment deployment process, a management mode that a parameter file is issued to take effect is adopted in a system operation process, and meanwhile, the equipment operation parameters can be modified locally and manually, but the individualized operation parameters of the equipment need to be configured one by one, errors are easy to occur due to large quantity and complex parameter values in the parameter configuration process, subsequent system operation abnormity and reason troubleshooting cost are high, the local parameters can be modified manually, the problem that the parameters are consistent with server parameters cannot be ensured, so that the parameters of different equipment are different, and the management of the equipment operation is not facilitated.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a parameter operation method, a parameter operation device, equipment and a storage medium, and aims to solve the technical problem that the equipment parameter information deployment effectiveness cannot be improved.
In order to achieve the above object, the present invention provides a parameter operation method, which comprises the following steps:
obtaining theme information, determining theme service according to the theme information, and starting a parameter management module;
sending the theme service to a preset message middleware to enable the preset message middleware to obtain preset parameter information fed back by a remote server according to the theme service;
acquiring preset parameter information fed back by the preset message middleware through the parameter management module, and analyzing the preset parameter information to acquire target parameter information;
and operating the target parameter information.
Optionally, before sending the theme service to the preset message middleware, the method further includes:
acquiring a service address and a subject name of preset message middleware;
and performing network configuration according to the service address and the subject name so as to realize the connection with the preset message middleware.
Optionally, before the obtaining, by the parameter management module, the preset parameter information fed back by the preset message middleware, the method further includes:
initializing the parameter management module to obtain the initialized parameter management module;
judging whether the initialized parameter management module is successfully connected with the preset message middleware or not;
and when the initialized parameter management module is successfully connected with the preset message middleware, executing the step of acquiring the preset parameter information fed back by the preset message middleware through the parameter management module.
Optionally, the sending the theme service to a preset message middleware to enable the preset message middleware to obtain preset parameter information fed back by a remote server according to the theme service includes:
and sending the theme service to a preset message middleware to enable the preset message middleware to perform theme service matching to obtain a target theme service, obtaining release parameter information corresponding to the target theme service according to the target theme service, and using the release parameter information as preset parameter information fed back by a remote server.
Optionally, before the obtaining, by the parameter management module, the preset parameter information fed back by the preset message middleware and analyzing the preset parameter information, the method further includes:
judging whether the current network state and the connection state of the preset message middleware are abnormal or not;
if the previous network state or the connection state with the preset message middleware is abnormal, acquiring prestored parameter information of the parameter management module;
and operating the pre-stored parameter information.
Optionally, before acquiring the pre-stored parameter information of the parameter management module if the previous network state or the connection state with the preset message middleware is abnormal, the method further includes:
acquiring a communication mechanism of a preset message middleware through the parameter management module;
acquiring historical parameter information fed back by the preset message middleware according to a communication mechanism of the preset message middleware;
and storing the historical parameter information to obtain the pre-stored parameter information.
Optionally, after the running the target parameter information, the method further includes:
if an equipment parameter change request is received, sending the equipment parameter change request to the preset message middleware through the initial parameter management module so that the preset message middleware can issue corresponding parameters;
and reading the corresponding parameters in real time through the initial parameter management module to obtain corresponding target parameters, and operating the corresponding target parameters.
In addition, in order to achieve the above object, the present invention further provides a parameter operating apparatus, including:
the acquisition module is used for acquiring the theme information, determining the theme service according to the theme information and starting the parameter management module;
the feedback module is used for sending the theme service to a preset message middleware so that the preset message middleware can obtain preset parameter information fed back by a remote server according to the theme service and start a parameter management module;
the analysis module is used for acquiring preset parameter information fed back by the preset message middleware through the parameter management module and analyzing the preset parameter information to acquire target parameter information;
and the operation module is used for operating the target parameter information.
In addition, in order to achieve the above object, the present invention further provides a parameter operation device, including: a memory, a processor and a parameter execution program stored on the memory and executable on the processor, the parameter execution program being configured to implement the steps of the parameter execution method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium having a parameter running program stored thereon, wherein the parameter running program, when executed by a processor, implements the steps of the parameter running method as described above.
According to the parameter operation method, the theme information is obtained, the theme service is determined according to the theme information, and the parameter management module is started; sending the theme service to a preset message middleware to enable the preset message middleware to obtain preset parameter information fed back by a remote server according to the theme service; acquiring preset parameter information fed back by the preset message middleware through the parameter management module, and analyzing the preset parameter information to acquire target parameter information; and operating the target parameter information. The invention manages the parameter information in the current equipment by the preset message middleware, and obtains the current required target parameter from the remote end according to the preset message middleware when the parameter information is changed, so that the current parameter can keep the remote parameters consistent, and the aim of improving the equipment parameter information deployment effectiveness is fulfilled.
Drawings
FIG. 1 is a schematic structural diagram of a parameter operation device of a hardware operation environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a parameter operation method of the present invention;
FIG. 3 is a schematic flow chart of a second embodiment of a parameter operation method of the present invention;
FIG. 4 is a timing flow diagram of one embodiment of a method of operating parameters of the present invention;
FIG. 5 is a deployment structure diagram of an embodiment of the parameter operation method of the present invention;
FIG. 6 is a schematic flow chart of a third embodiment of a method for operating parameters in accordance with the present invention;
fig. 7 is a functional block diagram of a parameter operation apparatus according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a parameter operation device of a hardware operation environment according to an embodiment of the present invention.
As shown in fig. 1, the parameter operation apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in FIG. 1 does not constitute a limitation of a parametric apparatus, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a parameter execution program.
In the parameter operation apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the parameter running device of the present invention may be disposed in the parameter running device, and the parameter running device calls the parameter running program stored in the memory 1005 through the processor 1001 and executes the parameter running method provided in the embodiment of the present invention.
Based on the hardware structure, the embodiment of the parameter operation method is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the parameter operation method of the present invention.
In a first embodiment, the method of operating parameters comprises the steps of:
step S10, obtaining the theme information, determining the theme service according to the theme information, and starting the parameter management module.
It should be noted that the execution main body of the embodiment may be a parameter operation device, and may also be other devices that can achieve the same or similar functions.
It should be understood that the theme information refers to information for implementing operation of track traffic automatic ticket selling and checking parameters, and the corresponding theme service may be determined through the theme information, for example, the acquired theme information is required to be ticketed, at this time, it is determined that the theme service required to be executed by the parameter operation device is ticketed according to the ticketed theme information, the theme services corresponding to different theme information are different, and after the theme service is confirmed, the parameter operation device is connected with a preset message middleware so as to send the theme service to other devices.
It can be understood that the theme service refers to a service that needs to perform a service according to the theme information after determining the theme information, and the service may provide a theme that is consistent with the preset message middleware and subscribed by the parameter running device during initialization, so as to obtain a corresponding theme service, and when parameters in the preset message middleware change, the parameter running device may run according to the changed parameters.
It should be understood that the parameter management module refers to a module for managing all parameters in the parameter operation device, the parameter management module is mainly used for operations such as adding, deleting, modifying, querying and the like of the parameters, after the theme service is sent to the preset message middleware, the preset message middleware matches the corresponding theme service according to the sent theme, feeds back preset parameter information according to the successfully matched theme service, and at this time, the parameter management module is started so as to manage the fed back preset parameter information, and the preset parameter information refers to parameter information required by the parameter management module during operation.
In specific implementation, the parameter operation device acquires the theme information, determines the theme service according to the theme information, and starts the parameter management module.
Step S20, sending the theme service to a preset message middleware, so that the preset message middleware obtains preset parameter information fed back by a remote server according to the theme service.
It should be understood that the preset message middleware refers to a supporting software system for providing synchronous or asynchronous and reliable message transmission for an application system in a network environment based on a queue and message transfer technology, the preset message middleware utilizes an efficient and reliable message transfer mechanism for platform-independent data communication and performs integration of a distributed system based on data communication, and can extend communication between processes in the distributed environment by providing a message transfer and message queuing model, the preset message middleware is suitable for a distributed environment requiring reliable data transmission, and in a system adopting the message middleware mechanism, different objects activate events of each other by transferring messages to complete corresponding operations. The sender sends the message to the message server, and the message server stores the message in a plurality of queues and forwards the message to the receiver when appropriate. Message middleware, which is often used to mask features between various platforms and protocols, enables collaboration between applications, provides synchronous and asynchronous connections between clients and servers, and can deliver or store-and-forward messages at any time. The preset message middleware has different functions and thus has a plurality of types, for example, Kafka message middleware, ActiveMQ message middleware, RabbitMQ message middleware, rocktmq message middleware, and the like, and the preset message middleware is used as a mode for a device side to communicate with a server side.
It can be understood that the remote server refers to a device that provides a remote service for a current automatic fare collection device, and the server needs to respond to and process a service request, and has a capability of undertaking and guaranteeing the service, and the server includes a processor, a hard disk, a memory, a system bus, and the like, and needs to provide a highly reliable service, so that the server has high requirements on processing capability, stability, reliability, security, expandability, manageability, and the like.
In specific implementation, the parameter operation device sends the theme service to a preset message middleware, so that the preset message middleware obtains preset parameter information fed back by a remote server according to the theme service.
Step S30, obtaining the preset parameter information fed back by the preset message middleware through the parameter running module, and analyzing the preset parameter information to obtain the target parameter information.
It should be understood that, the parsing of the preset parameter information refers to changing the preset parameter information into a storage format of a database in the parameter management module, storing the preset parameter information by using the database, and after the storage is completed, persistent management can be performed on the parameter information, the database in the parameter management module can be divided into different categories, such as network data, hierarchical databases, and relational databases, different databases are linked and organized according to different data structures, and storage formats of data in different databases are also different, for example, a key value storage database is similar to a hash table used in a traditional language, and a database can be added, inquired, or deleted by a key, because a primary key is used for access, higher performance and extensibility can be obtained, the key value database mainly uses one hash table, there is a specific key and a pointer in this table to a specific data.
In specific implementation, the parameter operation device obtains preset parameter information fed back by the preset message middleware through the parameter management module, and analyzes the preset parameter information to obtain target parameter information.
And step S40, operating the target parameter information.
It should be understood that the operating target parameter information refers to that after the target parameter information is obtained, the device software reads the parameter information stored in the parameter management module through a data interface, and the read parameter information is the target parameter information.
In a specific implementation, the parameter operation device operates the target parameter information.
In the embodiment, the theme information is acquired, the theme service is determined according to the theme information, and a parameter management module is started; sending the theme service to a preset message middleware to enable the preset message middleware to obtain preset parameter information fed back by a remote server according to the theme service; acquiring preset parameter information fed back by the preset message middleware through the parameter management module, and analyzing the preset parameter information to acquire target parameter information; and operating the target parameter information. The invention manages the parameter information in the current equipment by the preset message middleware, and obtains the current required target parameter from the remote end according to the preset message middleware when the parameter information is changed, so that the current parameter can keep the remote parameters consistent, and the aim of improving the equipment parameter information deployment effectiveness is fulfilled.
In an embodiment, as shown in fig. 3, a second embodiment of the parameter operation method of the present invention is proposed based on the first embodiment, and before the step S20, the method includes:
step S101, acquiring a service address and a subject name of the preset message middleware.
It can be understood that the service address of the preset message middleware refers to a connection address between the parameter running device and the preset message middleware, a corresponding receiving interface is created on the parameter running device through the acquired service address of the preset message middleware for establishing a connection between the parameter running device and the preset message middleware, the topic name refers to a topic service confirmed according to the topic information, corresponding parameter information can be obtained in the preset message middleware according to the topic name, and the parameter information is stored in a database in the parameter management module.
In specific implementation, the parameter operation device acquires a service address and a subject name of the preset message middleware.
And step S102, performing network configuration according to the service address and the subject name to realize the connection with the preset message middleware.
It is to be understood that the network configuration refers to connecting the service address and the topic name by using a script management tool, and the script management tool can perform automatic network configuration on the parameter operation device and the preset message middleware, and the script management tool can perform server network configuration from any terminal, once a server appears on the network configuration, the script management tool can process the rest of the network configuration process, change the configuration to an installation update package, and after performing network configuration according to the service address and the topic name, it is required to verify whether the connection between the parameter operation device and the preset message middleware is successful.
In specific implementation, the parameter operation device performs network configuration according to the service address and the subject name to realize connection with the preset message middleware.
Referring to fig. 4, the specific process shown in fig. 4 is a timing flow chart of an embodiment of a parameter operation method of the present invention, where the specific process includes configuring a topic name and a message middleware service address that are consistent with a preset message middleware device number on device software, and starting a parameter management module, where the parameter management module subscribes to a related topic, matches services in the preset message middleware according to the topic, obtains parameter information fed back by the preset message middleware from a remote server according to a matching result, where the preset message middleware issues the parameter information related to the device software after obtaining the parameter information fed back by the remote server, and the parameter management module receives the parameter information from the topic, parses the received parameter information, and stores the parsed parameter information in a database after parsing is completed, and the equipment software reads the parameter information stored in the database, acquires target parameter information and operates the target parameter information.
Referring to fig. 5, the fig. 5 is a deployment structure diagram of an embodiment of a parameter operation method of the present invention, where the specific structure includes a device, a control center and a preset message middleware, the control center refers to a control module in a remote server, where a main service includes a parameter control service and a preset message middleware communication service, the preset message middleware is used to connect the device and the remote server, so that the device and the remote server can interact, the preset message middleware may be a module installed on the device, a module independent of the remote server and the device, or a module installed on the remote server, which is not limited in this embodiment, and main services of the device include a preset message middleware communication service and a parameter database management service, the pre-set message middleware communication service and the parameter database management service are used when software in the device obtains target parameter information.
In this embodiment, a service address and a subject name of a preset message middleware are obtained, and network configuration is performed according to the service address and the subject name, so as to implement connection with the preset message middleware. The service address and the subject name which are consistent with the preset message middleware are configured on the parameter operation equipment, so that the parameter operation equipment can be connected with the preset message middleware more quickly, and the connection efficiency is improved.
In an embodiment, as shown in fig. 6, a third embodiment of the parameter operation method of the present invention is proposed based on the first embodiment, and the step S30 includes:
step S301, judging whether the connection state between the current network state and the preset message middleware is abnormal or not.
It can be understood that the determining whether the current network state and the connection state of the preset message middleware are abnormal refers to whether the parameter management module can obtain the parameter information issued by the preset message middleware, or can perform a test through a test instruction, for example, obtaining a preset test instruction in the parameter running device, sending the preset test instruction to the preset message middleware, determining whether the preset message middleware receives the preset test instruction, if the preset message middleware receives the preset test instruction, it represents that the connection state with the preset message middleware is in a normal condition, if the preset message middleware receives the preset test instruction, it represents that the connection state with the preset message middleware is in an abnormal condition, where the preset test instruction may be a test program, or may be a piece of test code.
In specific implementation, the parameter operation device determines whether the connection state between the current network state and the preset message middleware is abnormal.
Step S302, if the previous network status or the connection status with the preset message middleware is abnormal, obtaining the pre-stored parameter information of the parameter management module.
Further, in order to improve the running rationality of the device, before the pre-stored parameter information of the parameter management module is acquired, a communication mechanism of a preset message middleware needs to be acquired through the parameter management module; acquiring historical parameter information fed back by the preset message middleware according to a communication mechanism of the preset message middleware; and storing the historical parameter information to obtain the pre-stored parameter information.
It can be understood that the pre-stored parameter information refers to initial parameter information of the parameter operation device, and the acquired initial parameter information is before initializing the parameter management module, so that when the parameter operation device fails to acquire the parameters again, the situation that the parameter operation device cannot normally work due to lack of corresponding parameters does not occur, thereby realizing controllability of the parameter version.
It should be understood that the communication mechanism refers to a semaphore obtained through operation in an operating system, a shared memory and a message queue, the semaphore is a facility used in a multi-thread environment and can be used to ensure that two or more key code segments are not called concurrently, each thread contains at least one semaphore, the shared memory refers to a memory that is applied for a process a to write to the shared memory, other processes can obtain information transmitted by the process a by reading the content in the shared memory, the message queue refers to a message queue created, the process a writes to the queue, and the process B obtains information transmitted by the process a by reading the content in the queue.
In a specific implementation, if a previous network state or a connection state with the preset message middleware is abnormal, the parameter running device acquires pre-stored parameter information of the parameter management module.
Step S303, operating the pre-stored parameter information.
Furthermore, in order to improve the rationality of equipment operation, the equipment is operated according to the parameters, after the preset prestored parameter information is stored, if an equipment parameter change request is received, the equipment parameter change request is sent to the preset message middleware through the initial parameter management module, so that the preset message middleware issues corresponding parameters, and the corresponding parameters are read in real time through the initial parameter management module to obtain corresponding target parameters and operate the corresponding target parameters.
It can be understood that the operating of the pre-stored parameter information means that after the parameter information issued by the preset message middleware cannot be obtained, the device software reads the pre-stored parameter information in the parameter management module through a data interface, and the read parameter information is the target parameter information.
In a specific implementation, the parameter operation device operates the pre-stored parameter information.
In this embodiment, whether the current network state is abnormal or not and the connection state of the preset message middleware are judged, the communication mechanism of the preset message middleware is acquired through the parameter management module, the historical parameter information fed back by the preset message middleware is acquired according to the communication mechanism of the preset message middleware, and the historical parameter information is stored to acquire the pre-stored parameter information and operate the pre-stored parameter information. Through judge with whether preset message middleware appears the network connection anomaly, confirm whether can follow and preset the parameter information that message middleware issued, with when presetting message middleware and appearing the network connection anomaly, it is right history parameter information is saved to obtain the parameter information of prestoring, and the operation prestoring parameter information can not appear owing to lack the condition that corresponding parameter can not normally work, makes automatic fare collection equipment can be in the state of normal operating always, thereby has improved the rationality of equipment operation.
In addition, an embodiment of the present invention further provides a storage medium, where a parameter running program is stored on the storage medium, and the parameter running program, when executed by a processor, implements the steps of the parameter running method described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
In addition, referring to fig. 7, an embodiment of the present invention further provides a parameter operating apparatus, where the parameter operating apparatus includes:
the obtaining module 10 is configured to obtain the theme information, determine the theme service according to the theme information, and start the parameter management module.
It should be understood that the theme information refers to information for realizing management of track traffic automatic ticket selling and checking parameters, and the corresponding theme service can be determined through the theme information, for example, the acquired theme information is required to be ticketed, at this time, it is required to determine that the theme service required to be executed by the parameter running device is ticketed according to the ticketed theme information, the theme services corresponding to different theme information are different, and after the theme service is confirmed, the parameter running device is connected with a preset message middleware so as to send the theme service to other devices.
It can be understood that the theme service refers to a service that needs to perform a service according to the theme information after determining the theme information, and the service may provide a theme that is consistent with the preset message middleware and subscribed by the parameter running device during initialization, so as to obtain a corresponding theme service, and when parameters in the preset message middleware change, the parameter running device may run according to the changed parameters.
It should be understood that the parameter management module refers to a module for managing all parameters in the parameter operation device, the parameter management module is mainly used for operations such as adding, deleting, modifying, querying and the like of the parameters, after the theme service is sent to the preset message middleware, the preset message middleware matches the corresponding theme service according to the sent theme, feeds back preset parameter information according to the successfully matched theme service, and at this time, the parameter management module is started so as to manage the fed back preset parameter information, and the preset parameter information refers to parameter information required by the parameter management module during operation.
In specific implementation, the parameter operation device acquires the theme information, determines the theme service according to the theme information, and starts the parameter management module.
The feedback module 20 is configured to send the theme service to a preset message middleware, so that the preset message middleware obtains preset parameter information fed back by a remote server according to the theme service.
It should be understood that the preset message middleware refers to a supporting software system for providing synchronous or asynchronous and reliable message transmission for an application system in a network environment based on a queue and message transfer technology, the preset message middleware utilizes an efficient and reliable message transfer mechanism for platform-independent data communication and performs integration of a distributed system based on data communication, and can extend communication between processes in the distributed environment by providing a message transfer and message queuing model, the preset message middleware is suitable for a distributed environment requiring reliable data transmission, and in a system adopting the message middleware mechanism, different objects activate events of each other by transferring messages to complete corresponding operations. The sender sends the message to the message server, and the message server stores the message in a plurality of queues and forwards the message to the receiver when appropriate. Message middleware, which is often used to mask features between various platforms and protocols, enables collaboration between applications, provides synchronous and asynchronous connections between clients and servers, and can deliver or store-and-forward messages at any time. The preset message middleware has different functions and thus has a plurality of types, for example, Kafka message middleware, ActiveMQ message middleware, RabbitMQ message middleware, rocktmq message middleware, and the like, and the preset message middleware is used as a mode for a device side to communicate with a server side.
It can be understood that the remote server refers to a device that provides a remote service for a current automatic fare collection device, and the server needs to respond to and process a service request, and has a capability of undertaking and guaranteeing the service, and the server includes a processor, a hard disk, a memory, a system bus, and the like, and needs to provide a highly reliable service, so that the server has high requirements on processing capability, stability, reliability, security, expandability, manageability, and the like.
In specific implementation, the parameter operation device sends the theme service to a preset message middleware, so that the preset message middleware obtains preset parameter information fed back by a remote server according to the theme service.
The analysis module 30 is configured to obtain the preset parameter information fed back by the preset message middleware through the parameter management module, and analyze the preset parameter information to obtain target parameter information.
It should be understood that, the parsing of the preset parameter information refers to changing the preset parameter information into a storage format of a database in the parameter management module, storing the preset parameter information by using the database, and after the storage is completed, persistent management can be performed on the parameter information, the database in the parameter management module can be divided into different categories, such as network data, hierarchical databases, and relational databases, different databases are linked and organized according to different data structures, and storage formats of data in different databases are also different, for example, a key value storage database is similar to a hash table used in a traditional language, and a database can be added, inquired, or deleted by a key, because a primary key is used for access, higher performance and extensibility can be obtained, the key value database mainly uses one hash table, there is a specific key and a pointer in this table to a specific data.
In specific implementation, the parameter operation device obtains preset parameter information fed back by the preset message middleware through the parameter management module, and analyzes the preset parameter information to obtain target parameter information.
And the operation module 40 is used for operating the target parameter information.
It should be understood that the operating target parameter information refers to that after the target parameter information is obtained, the device software reads data stored in the parameter management module through a data interface, and the read parameter information is the target parameter information.
In a specific implementation, the parameter operation device operates the target parameter information.
In the embodiment, the theme information is acquired, the theme service is determined according to the theme information, and a parameter management module is started; sending the theme service to a preset message middleware to enable the preset message middleware to obtain preset parameter information fed back by a remote server according to the theme service; acquiring preset parameter information fed back by the preset message middleware through the parameter management module, and analyzing the preset parameter information to acquire target parameter information; and operating the target parameter information. The invention manages the parameter information in the current equipment by the preset message middleware, and obtains the current required target parameter from the remote end according to the preset message middleware when the parameter information is changed, so that the current parameter can keep the remote parameters consistent, and the aim of improving the equipment parameter information deployment effectiveness is fulfilled.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the parameter operation method provided in any embodiment of the present invention, and are not described herein again.
In an embodiment, the feedback module 20 is further configured to obtain a service address and a topic name of a preset message middleware; and performing network configuration according to the service address and the subject name so as to realize the connection with the preset message middleware.
In an embodiment, the feedback module 20 is further configured to send the theme service to a preset message middleware, so that the preset message middleware performs theme service matching to obtain a target theme service, obtain, according to the target theme service, release parameter information corresponding to the target theme service, and use the release parameter information as preset parameter information fed back by a remote server.
In an embodiment, the parsing module 30 is further configured to initialize the parameter management module, and obtain the initialized parameter management module; judging whether the initialized parameter management module is successfully connected with the preset message middleware or not; and when the initialized parameter management module is successfully connected with the preset message middleware, executing the step of acquiring the preset parameter information fed back by the preset message middleware through the parameter management module.
In an embodiment, the parsing module 30 is further configured to determine whether a connection state between the current network state and the preset message middleware is abnormal; if the previous network state or the connection state with the preset message middleware is abnormal, acquiring prestored parameter information of the parameter management module; and operating the pre-stored parameter information.
In an embodiment, the parsing module 30 is further configured to obtain a communication mechanism of a preset message middleware through the parameter management module; acquiring historical parameter information fed back by the preset message middleware according to a communication mechanism of the preset message middleware; and storing the historical parameter information to obtain the pre-stored parameter information.
In an embodiment, the running module 40 is further configured to, if an equipment parameter change request is received, send the equipment parameter change request to the preset message middleware through the initial parameter management module, so that the preset message middleware issues a corresponding parameter; and reading the corresponding parameters in real time through the initial parameter management module to obtain corresponding target parameters, and operating the corresponding target parameters.
Other embodiments or implementations of the parametric apparatus of the present invention may refer to the above embodiments of the method, and are not intended to be exhaustive.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. 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 system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method of operating parameters, the method comprising the steps of:
obtaining theme information, determining theme service according to the theme information, and starting a parameter management module;
sending the theme service to a preset message middleware to enable the preset message middleware to obtain preset parameter information fed back by a remote server according to the theme service;
acquiring preset parameter information fed back by the preset message middleware through the parameter management module, and analyzing the preset parameter information to acquire target parameter information;
and operating the target parameter information.
2. The parameter operation method according to claim 1, wherein before sending the theme service to the preset message middleware, further comprising:
acquiring a service address and a subject name of preset message middleware;
and performing network configuration according to the service address and the subject name so as to realize the connection with the preset message middleware.
3. The parameter operation method according to claim 1, wherein before the obtaining, by the parameter management module, the preset parameter information fed back by the preset message middleware, the method further comprises:
initializing the parameter management module to obtain the initialized parameter management module;
judging whether the initialized parameter management module is successfully connected with the preset message middleware or not;
and when the initialized parameter management module is successfully connected with the preset message middleware, executing the step of acquiring the preset parameter information fed back by the preset message middleware through the parameter management module.
4. The parameter operation method according to claim 1, wherein the sending the theme service to a preset message middleware so that the preset message middleware obtains preset parameter information fed back by a remote server according to the theme service includes:
and sending the theme service to a preset message middleware to enable the preset message middleware to perform theme service matching to obtain a target theme service, obtaining release parameter information corresponding to the target theme service according to the target theme service, and using the release parameter information as preset parameter information fed back by a remote server.
5. The parameter operation method according to claim 1, wherein before the obtaining, by the parameter management module, the preset parameter information fed back by the preset message middleware and analyzing the preset parameter information, the method further comprises:
judging whether the current network state and the connection state of the preset message middleware are abnormal or not;
if the previous network state or the connection state with the preset message middleware is abnormal, acquiring prestored parameter information of the parameter management module;
and operating the pre-stored parameter information.
6. The parameter operation method according to claim 5, wherein before acquiring the pre-stored parameter information of the parameter management module if the previous network status or the connection status with the preset message middleware is abnormal, the method further comprises:
acquiring a communication mechanism of a preset message middleware through the parameter management module;
acquiring historical parameter information fed back by the preset message middleware according to a communication mechanism of the preset message middleware;
and storing the historical parameter information to obtain the pre-stored parameter information.
7. The parameter operation method according to any one of claims 1 to 6, further comprising, after the operating the target parameter information:
if an equipment parameter change request is received, sending the equipment parameter change request to the preset message middleware through the initial parameter management module so that the preset message middleware can issue corresponding parameters;
and reading the corresponding parameters in real time through the initial parameter management module to obtain corresponding target parameters, and operating the corresponding target parameters.
8. A parametric operation apparatus, comprising:
the acquisition module is used for acquiring the theme information, determining the theme service according to the theme information and starting the parameter management module;
the feedback module is used for sending the theme service to a preset message middleware so that the preset message middleware can obtain preset parameter information fed back by a remote server according to the theme service and start a parameter management module;
the analysis module is used for acquiring preset parameter information fed back by the preset message middleware through the parameter management module and analyzing the preset parameter information to acquire target parameter information;
and the operation module is used for operating the target parameter information.
9. A parameter operation apparatus, characterized in that the parameter operation apparatus comprises: memory, a processor and a parameter execution program stored on the memory and executable on the processor, the parameter execution program being configured with steps to implement a parameter execution method according to any of claims 1 to 7.
10. A storage medium, characterized in that the storage medium has stored thereon a parameter execution program which, when executed by a processor, implements the steps of the parameter execution method according to any one of claims 1 to 7.
CN202011572460.3A 2020-12-25 2020-12-25 Parameter operation method, device, equipment and storage medium Active CN112583933B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011572460.3A CN112583933B (en) 2020-12-25 2020-12-25 Parameter operation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011572460.3A CN112583933B (en) 2020-12-25 2020-12-25 Parameter operation method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112583933A true CN112583933A (en) 2021-03-30
CN112583933B CN112583933B (en) 2023-02-24

Family

ID=75139990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011572460.3A Active CN112583933B (en) 2020-12-25 2020-12-25 Parameter operation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112583933B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933439A (en) * 2019-02-21 2019-06-25 深圳市珍爱捷云信息技术有限公司 Method for message transmission, device, computer equipment and storage medium
CN110086636A (en) * 2019-04-17 2019-08-02 平安科技(深圳)有限公司 A kind of message distributing method based on mqtt, server and storage medium
CN110858850A (en) * 2018-08-23 2020-03-03 比亚迪股份有限公司 Comprehensive network management method, device and system for rail transit system
CN110958150A (en) * 2019-12-10 2020-04-03 深圳前海环融联易信息科技服务有限公司 Management method and device for dynamic service configuration

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110858850A (en) * 2018-08-23 2020-03-03 比亚迪股份有限公司 Comprehensive network management method, device and system for rail transit system
CN109933439A (en) * 2019-02-21 2019-06-25 深圳市珍爱捷云信息技术有限公司 Method for message transmission, device, computer equipment and storage medium
CN110086636A (en) * 2019-04-17 2019-08-02 平安科技(深圳)有限公司 A kind of message distributing method based on mqtt, server and storage medium
WO2020211344A1 (en) * 2019-04-17 2020-10-22 平安科技(深圳)有限公司 Mqtt-based message distribution method, server, apparatus, and storage medium
CN110958150A (en) * 2019-12-10 2020-04-03 深圳前海环融联易信息科技服务有限公司 Management method and device for dynamic service configuration

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李小智等: "基于消息中间件的航班信息显示系统的设计与实现", 《计算机系统应用》 *
雷宝龙等: "基于发布订阅模式的消息转发服务设计", 《江苏科技信息》 *

Also Published As

Publication number Publication date
CN112583933B (en) 2023-02-24

Similar Documents

Publication Publication Date Title
US20130332524A1 (en) Data service on a mobile device
CN107241315B (en) Access method and device of bank gateway interface and computer readable storage medium
CN101160563A (en) Method and system for hosting and executing a component application
US20140266613A1 (en) Radio frequency identification system
CN113835911B (en) Intranet penetration agent method, system, host and computer readable storage medium
CN111752587A (en) Batch processing method and device of small programs, electronic equipment and readable storage medium
CN111984440A (en) Method, system and storage medium for Celery online management and automatic task execution
CN106713507B (en) Management method and management system for batch cloud terminal equipment
CN112087475B (en) Message pushing method and device for cloud platform component application and message server
US20070038699A1 (en) Method and device arrangement for managing a user application/device management server/client device environment
CN112583933B (en) Parameter operation method, device, equipment and storage medium
JP4516594B2 (en) Message transmission control method, message transmission control device, and message transmission control program
CN116938958A (en) API information synchronization method, device, system and computer readable storage medium
US20080178182A1 (en) Work state returning apparatus, work state returning method, and computer product
CN113645260A (en) Service retry method, device, storage medium and electronic equipment
CN106713464B (en) service management method and device of enterprise service bus
CN112671844B (en) Equipment registration method and system
WO2018217866A1 (en) System and method for allowing cloud communication for non-cloud enabled printers and other devices
JP5158153B2 (en) Module update program
CN111858100A (en) BMC message transmission method and related device
KR100578029B1 (en) Interface architecture of subscriber information management system for mobile network system
US11799982B2 (en) Message push method, apparatus, device and medium
CN117472617B (en) Message processing method and device, electronic equipment and readable storage medium
US20080256178A1 (en) Method and Apparatus for Providing Software by Functional Units in a Software Streaming System
CN118055093B (en) FTTR gateway equipment communication method, equipment and medium based on GDBus module

Legal Events

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