CN116170307A - Communication simulation device configuration method and device, readable storage medium and electronic device - Google Patents

Communication simulation device configuration method and device, readable storage medium and electronic device Download PDF

Info

Publication number
CN116170307A
CN116170307A CN202310459201.7A CN202310459201A CN116170307A CN 116170307 A CN116170307 A CN 116170307A CN 202310459201 A CN202310459201 A CN 202310459201A CN 116170307 A CN116170307 A CN 116170307A
Authority
CN
China
Prior art keywords
communication
communication simulation
simulation equipment
basic
parameter
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
CN202310459201.7A
Other languages
Chinese (zh)
Other versions
CN116170307B (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.)
Jiangxi Lianchuang Precision Electromechanics Co ltd
Original Assignee
Jiangxi Lianchuang Precision Electromechanics 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 Jiangxi Lianchuang Precision Electromechanics Co ltd filed Critical Jiangxi Lianchuang Precision Electromechanics Co ltd
Priority to CN202310459201.7A priority Critical patent/CN116170307B/en
Publication of CN116170307A publication Critical patent/CN116170307A/en
Application granted granted Critical
Publication of CN116170307B publication Critical patent/CN116170307B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • H04L41/0856Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information by backing up or archiving configuration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a communication simulation equipment configuration method, a device, a readable storage medium and an electronic device, which are applied to a debugging computer, wherein the debugging computer is electrically connected with the communication simulation equipment, a basic parameter configuration component and a through pipe component are arranged in the debugging computer, and a basic parameter guiding component is arranged in the communication simulation equipment, and the method comprises the following steps: acquiring basic parameters and issuing the basic parameters; the method comprises the steps that a base parameter guiding component is utilized to receive a issued base parameter, and identity matching is carried out on the base parameter and communication simulation equipment according to the base parameter, so that after the identity matching is successful, the communication simulation equipment is configured; and the control through pipe component transmits corresponding communication networking parameters to the communication simulation equipment so as to carry out corresponding parameter configuration after the communication simulation equipment receives the communication networking parameters. The invention solves the problems that the efficiency is low and the quality of communication simulation equipment products cannot be ensured when parameter configuration is carried out in the prior art.

Description

Communication simulation device configuration method and device, readable storage medium and electronic device
Technical Field
The present invention relates to the field of device configuration technologies, and in particular, to a method and an apparatus for configuring a communication simulation device, a readable storage medium, and an electronic device.
Background
In the past, the configuration of the communication simulation equipment before delivery is roughly two methods, one is to manually set one by one parameter by manually comparing the interface of the delivery almanac, and the other is to access a debugging line to acquire the super user permission to update and replace the internal system file.
However, both of these methods have drawbacks, the first method requires a lot of labor to be familiar with the traffic of the communication simulation device and is prone to errors; the second method requires that installation and debugging personnel have higher software debugging skills, and the safety of the equipment is lower after the super user permission is opened. When large-scale communication simulation equipment of different types needs parameter configuration, the two methods cannot effectively solve the problem of low efficiency and cannot ensure the quality of the communication simulation equipment products.
Disclosure of Invention
In view of the above, the present invention aims to provide a method, an apparatus, a storage medium and a device for configuring a communication simulation device, which are aimed at solving the problems that the efficiency of the communication simulation device is low and the quality of the communication simulation device product cannot be guaranteed when the communication simulation device is configured with parameters in the prior art.
The embodiment of the invention is realized as follows:
the utility model provides a communication simulation equipment configuration method, is applied to among the debugging computer, debugging computer and communication simulation equipment electric connection, the debugging computer embeds basic parameter configuration subassembly and siphunculus subassembly, be equipped with basic parameter guide subassembly in the communication simulation equipment, the method includes:
acquiring basic parameters provided by the basic parameter configuration component, and issuing the basic parameters;
the base parameter guiding component is utilized to receive the issued base parameter, and identity matching is carried out on the base parameter and the communication simulation equipment according to the base parameter, so that after the identity matching is successful, the communication simulation equipment is configured according to the base parameter;
activating a mirror image system corresponding to the communication simulation equipment, restarting the communication simulation equipment, and sending a heartbeat message to the through pipe assembly according to the basic parameters and the mirror image system after restarting the communication simulation equipment;
and when the communication simulation equipment is determined to be fault-free according to the heartbeat message, controlling the through pipe component to send corresponding communication networking parameters to the communication simulation equipment so as to carry out corresponding parameter configuration after the communication simulation equipment receives the communication networking parameters.
Further, in the above communication simulation device configuration method, the step of obtaining the basic parameter provided by the basic parameter configuration component and issuing the basic parameter includes:
acquiring the basic parameters according to the parameter information received by the parameter configuration interface provided by the basic parameter configuration component; or (b)
The basic parameters are obtained by importing the pre-configured basic parameters according to the basic parameter configuration component;
and sending UDP broadcast packets to the corresponding communication ports according to the agreed communication content of the basic parameters so as to issue the basic parameters.
Further, in the above method for configuring a communication simulation device, the step of receiving the issued base parameter by using the base parameter guiding component and performing identity matching with the communication simulation device according to the base parameter includes:
establishing a UDP socket by using the basic parameter guiding component, and binding the communication port;
after receiving the data packet of the communication content of the basic parameter, analyzing the data packet, and comparing and judging with the identity of the communication simulation equipment to determine whether the identity of the communication simulation equipment is successfully matched.
Further, in the above method for configuring a communication simulation device, the basic parameter at least includes a device identity, a device type, an IP address, a mask address, a gateway address, a communication manner, and a communication port, and the step of activating a mirroring system corresponding to the communication simulation device and restarting the communication simulation device to send a heartbeat message to the through pipe component according to the basic parameter and the mirroring system after restarting the communication simulation device includes:
and sending a device restarting instruction to restart the communication simulation device, and sending a heartbeat message to the through pipe component according to the mirror image system, the IP address, the mask address, the gateway address, the communication mode and the communication port after the communication simulation device is restarted.
Further, the method for configuring a communication simulation device, wherein before the step of performing identity matching with the communication simulation device according to the basic parameter, further includes:
judging whether the basic parameters are parameter initialization communication data or not;
if yes, executing the step of carrying out identity matching with the communication simulation equipment according to the basic parameters;
if not, reusing the basic parameter guiding component to receive the issued basic parameters.
Further, the communication simulation device configuration method, wherein the step of determining that the communication simulation device has no fault according to the heartbeat message includes:
and acquiring the equipment state of the communication simulation equipment according to the heartbeat message, and determining whether the communication simulation equipment has faults according to the equipment state.
Further, the communication simulation device configuration method, wherein the method further comprises:
checking whether the communication simulation equipment is connected to the network;
when the communication simulation equipment is judged to be not connected to the network, the communication networking parameters are reused for carrying out corresponding parameter configuration on the communication simulation equipment;
and when judging that the communication simulation equipment is accessed to the network, exporting the communication networking parameters after reporting the communication networking parameters.
Another object of the present invention is to provide a configuration device of a communication simulation device, applied to a debug computer, where the debug computer is electrically connected to the communication simulation device, the debug computer is internally provided with a basic parameter configuration component and a through pipe component, and the communication simulation device is internally provided with a basic parameter guiding component, and the device includes:
the issuing module is used for acquiring the basic parameters provided by the basic parameter configuration component and issuing the basic parameters;
the matching module is used for receiving the issued basic parameters by utilizing the basic parameter guiding component, and carrying out identity matching with the communication simulation equipment according to the basic parameters so as to configure the communication simulation equipment according to the basic parameters after the identity matching is successful;
the activation module is used for activating the mirror image system corresponding to the communication simulation equipment and restarting the communication simulation equipment so as to send heartbeat information to the through pipe assembly according to the basic parameters and the mirror image system after restarting the communication simulation equipment;
and the configuration module is used for controlling the through pipe component to issue corresponding communication networking parameters to the communication simulation equipment when the communication simulation equipment is determined to be fault-free according to the heartbeat message, so as to carry out corresponding parameter configuration after the communication simulation equipment receives the communication networking parameters.
It is a further object of the present invention to provide a readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of any of the above.
It is a further object of the invention to provide an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, which processor implements the steps of the method described above when executing the program.
According to the invention, the basic parameters configured by the previous items are written or imported on the basic parameter configuration component, and the basic parameters are quickly adjusted according to the system requirements and issued. After the communication simulation equipment is restarted, installation and debugging personnel check the states of all the online equipment at the through pipe assembly, and the communication simulation equipment which is not online or has wrong basic parameter setting can be rapidly positioned. The installation and debugging personnel rapidly set communication networking parameters of various communication simulation equipment according to the requirements of clients, derive the communication networking parameters and basic parameters and back up, provide data basis for subsequent equipment joint debugging, do not need to install and debug personnel to have higher software debugging skills and consume a large amount of manpower familiar with communication simulation equipment services of the communication simulation equipment, improve the efficiency of communication simulation equipment configuration, ensure the quality of communication simulation equipment products, and solve the problems that the efficiency is low and the quality of the communication simulation equipment products cannot be ensured when the parameter configuration of the communication simulation equipment is carried out in the prior art.
Drawings
FIG. 1 is a sequence diagram of components in a communication simulation device configuration system according to an embodiment of the present invention;
FIG. 2 is a flowchart of a communication simulation device configuration method according to a first embodiment of the present invention;
FIG. 3 is a flow chart showing configuration and management of a communication simulation device in a communication simulation device configuration method according to a first embodiment of the present invention;
fig. 4 is a block diagram showing a configuration of a communication simulation apparatus according to a third embodiment of the present invention.
The invention will be further described in the following detailed description in conjunction with the above-described figures.
Detailed Description
In order that the invention may be readily understood, a more complete description of the invention will be rendered by reference to the appended drawings. Several embodiments of the invention are presented in the figures. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "mounted" on another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like are used herein for illustrative purposes only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
In the past, the configuration of the communication simulation equipment before delivery is roughly two methods, one is to manually set one by one parameter by manually comparing the interface of the delivery almanac, and the other is to access a debugging line to acquire the super user permission to update and replace the internal system file.
However, both of these methods have drawbacks, the first method requires a lot of labor to be familiar with the traffic of the communication simulation device and is prone to errors; the second method requires that installation and debugging personnel have higher software debugging skills, and the safety of the equipment is lower after the super user permission is opened. When large-scale communication simulation equipment of different types needs parameter configuration, the two methods cannot effectively solve the problem of low efficiency and cannot ensure the quality of the communication simulation equipment products.
The embodiment of the invention is to add three components based on the original communication simulation equipment system, wherein the first component is a basic parameter guiding component running on each communication simulation equipment, the second component is a through pipe component running on a debugging computer and used for configuring basic parameter configuration components of each communication simulation equipment, and the third component is a through pipe component running on the debugging computer and used for managing communication networking parameters of all communication simulation equipment. The basic parameter guiding component is embedded software, and the basic parameter configuration component and the through pipe component are desktop application software.
Referring to fig. 1, a sequence diagram of components in a communication simulation device configuration system according to an embodiment of the present invention is shown, and the following embodiments can be applied to the communication simulation device configuration system shown in fig. 1, where the communication simulation device configuration system includes various communication simulation devices, a basic parameter guiding component disposed in the various communication simulation devices, a basic parameter configuration component disposed in a debug computer, and a pipe component, where:
the basic parameter configuration component is used for providing parameter configuration interfaces such as equipment ID, equipment type, IP address, mask address, gateway address, communication mode, communication port and the like, importing the previously configured basic parameters, and sending UDP broadcast packets to the communication port (93401 port) according to the agreed basic parameter communication content; providing a function of deriving basic parameters.
The basic parameter guiding component is used for creating a UDP socket and binding 93401 ports; after receiving the basic parameter communication content data packet, analyzing the data packet, comparing and judging with the ID of the communication simulation equipment, if the data packet is equal, setting the IP address, the mask address, the gateway address, the communication mode, the communication port and activating the mirror image system of the corresponding communication simulation equipment type according to the information of the data packet; and issues a reboot device command. After restarting, the communication simulation equipment sends heartbeat messages to the pipe assembly according to the new communication simulation equipment mirror image system, the IP address, the mask address, the gateway address, the communication mode and the communication port.
The through pipe component provides for checking the state of the online communication simulation equipment (including basic parameters, communication networking parameters, networking information and the like); providing a man-machine interaction interface to set communication networking parameters of single, multiple or same type communication simulation equipment, such as working mode, channel number, receiving and transmitting frequency, work type, service type, etc. of a short-wave radio station, working mode, channel number, master station, table number, network number, etc. of an ultra-short-wave radio station, working frequency, working rate, power gear, receiving and transmitting mode, etc. of microwave relay; the communication networking parameters and the like can be issued according to the basic parameter information of the communication simulation equipment; networking parameter import and export functions are provided.
It should be noted that the architecture shown in fig. 1 does not constitute a limitation of the communication simulation device configuration system, and in other embodiments, the communication simulation device configuration system may include fewer or more components than shown, or may combine certain components, or may have a different arrangement of components.
How to improve efficiency in configuring the communication simulation device will be described in detail with reference to specific embodiments and drawings.
Example 1
Referring to fig. 2, a communication simulation device configuration method in a first embodiment of the present invention is applied to a debug computer, where the debug computer is electrically connected to a communication simulation device, the debug computer is internally provided with a basic parameter configuration component and a through pipe component, and the communication simulation device is internally provided with a basic parameter guiding component, and the method includes steps S10 to S13.
Step S10, obtaining the basic parameters provided by the basic parameter configuration component, and issuing the basic parameters.
In this embodiment, the communication simulation device at least includes a short-wave radio station of 0x00, an ultrashort-wave radio station of 0x01, a high-speed radio station of 0x02, a dual-band radio station of 0x03, a multiband radio station of 0x04, a handheld station of 0x05, a subscriber station of 0x06, a microwave relay of 0x07, a basic parameter initialization communication mode of UDP, and a communication content of the basic parameter at least includes a device ID, a device type, an IP address, a mask address, a gateway address, a communication mode, a communication port, and a communication port of 93401.
Specifically, the basic parameter configuration component is provided with a configuration interface of basic parameters and a basic parameter importing function, so that the basic parameters can be obtained by editing received parameter information according to the parameter configuration interface provided by the basic parameter configuration component, or the basic parameters which are pre-configured are imported to obtain the basic parameters, and finally, a UDP broadcast packet is sent to a corresponding communication port according to the communication content of the agreed basic parameters to issue the basic parameters.
And S11, receiving the issued basic parameters by utilizing the basic parameter guiding component, and carrying out identity matching with the communication simulation equipment according to the basic parameters so as to configure the communication simulation equipment according to the basic parameters after the successful identity matching.
Specifically, a UDP socket is created by using the basic parameter guiding component, the communication port is bound, after the basic parameter communication content data packet is received, the data packet is analyzed, the data packet is compared with the ID of the communication simulation equipment, if the data packet is equal to the ID of the communication simulation equipment, the IP address, the mask address, the gateway address, the communication mode and the communication port of the communication simulation equipment are set according to the information of the data packet, and the configuration of the basic parameter to the communication simulation equipment is realized.
And step S12, activating a mirror image system corresponding to the communication simulation equipment, restarting the communication simulation equipment, and sending a heartbeat message to the through pipe assembly according to the basic parameters and the mirror image system after restarting the communication simulation equipment.
Specifically, a device restarting instruction is issued to restart the communication simulation device, and after the communication simulation device is restarted, a heartbeat message is sent to the through pipe component according to the mirror image system, the IP address, the mask address, the gateway address, the communication mode and the communication port, so that whether communication between the communication simulation device and the debugging computer is normal or not and whether the current environment is suitable for data configuration or not can be determined according to the current heartbeat information.
And step S13, when the communication simulation equipment is determined to be fault-free according to the heartbeat message, controlling the through pipe component to issue corresponding communication networking parameters to the communication simulation equipment so as to carry out corresponding parameter configuration after the communication simulation equipment receives the communication networking parameters.
Wherein, the through pipe component provides for checking the state of the online communication simulation equipment (including basic parameters, communication networking parameters, networking information and the like); providing a man-machine interaction interface to set communication networking parameters of single, multiple or same type communication simulation equipment, such as working mode, channel number, receiving and transmitting frequency, work type, service type, etc. of a short-wave radio station, working mode, channel number, master station, table number, network number, etc. of an ultra-short-wave radio station, working frequency, working rate, power gear, receiving and transmitting mode, etc. of microwave relay; the communication networking parameters and the like can be issued according to the basic parameter information of the communication simulation equipment; and providing networking parameter import and export functions, and after receiving the notification networking parameters issued by the through pipe component, the communication simulation equipment performs parameter setting and performs data receipt.
The embodiment of the invention completes the parameter configuration and management of the communication simulation equipment through the cooperation of the three components. The installation and debugging personnel can rapidly set parameters such as corresponding equipment ID, equipment type, IP address, mask address, gateway address, communication mode, communication port and the like through the basic parameter configuration component to configure, and can check and manage the state of the online communication simulation equipment through the pipe component.
In summary, according to the communication simulation device configuration method in the above embodiment of the present invention, the base parameters configured by the previous items are written or imported on the base parameter configuration component, and on the basis of the base parameters, the base parameters are quickly adjusted according to the system requirements, and the base parameters are issued. After the communication simulation equipment is restarted, installation and debugging personnel check the states of all the online equipment at the through pipe assembly, and the communication simulation equipment which is not online or has wrong basic parameter setting can be rapidly positioned. The installation and debugging personnel rapidly set communication networking parameters of various communication simulation equipment according to the requirements of clients, derive the communication networking parameters and basic parameters and back up, provide data basis for subsequent equipment joint debugging, do not need to install and debug personnel to have higher software debugging skills and consume a large amount of manpower familiar with communication simulation equipment service, improve the efficiency of communication simulation equipment configuration, ensure the quality of communication simulation equipment products, and solve the problems that the efficiency is low and the quality of the communication simulation equipment products cannot be ensured when the parameter configuration of the communication simulation equipment is carried out in the prior art.
Example two
The present embodiment also proposes a communication simulation device configuration method, which is different from the communication simulation device configuration method in the first embodiment in that:
before the step of performing identity matching with the communication simulation equipment according to the basic parameters, the method further comprises the following steps:
judging whether the basic parameters are parameter initialization communication data or not;
if yes, executing the step of carrying out identity matching with the communication simulation equipment according to the basic parameters;
if not, reusing the basic parameter guiding component to receive the issued basic parameters.
And judging and confirming the communication data of the basic parameters so as to ensure the accuracy of the subsequent data packet identification and the identity identification.
The step of determining that the communication simulation equipment has no fault according to the heartbeat message comprises the following steps:
and acquiring the equipment state of the communication simulation equipment according to the heartbeat message, and determining whether the communication simulation equipment has faults according to the equipment state.
The state of the equipment can be checked online according to the heartbeat message, so that whether the equipment has faults or not can be judged.
Further, in some optional embodiments of the present invention, the method further comprises:
checking whether the communication simulation equipment is connected to the network;
when the communication simulation equipment is judged to be not connected to the network, the communication networking parameters are reused for carrying out corresponding parameter configuration on the communication simulation equipment;
and when judging that the communication simulation equipment is accessed to the network, exporting the communication networking parameters after reporting the communication networking parameters.
In practice, there may be a case that the communication networking parameters are not successfully configured after being issued, so that the communication networking parameters need to be reused to perform corresponding parameter configuration on the communication simulation device, and when the communication networking parameters are successfully configured after being issued, the communication networking parameters are exported after being reported to perform receipt.
In summary, according to the communication simulation device configuration method in the above embodiment of the present invention, the base parameters configured by the previous items are written or imported on the base parameter configuration component, and on the basis of the base parameters, the base parameters are quickly adjusted according to the system requirements, and the base parameters are issued. After the communication simulation equipment is restarted, installation and debugging personnel check the states of all the online equipment at the through pipe assembly, and the communication simulation equipment which is not online or has wrong basic parameter setting can be rapidly positioned. The installation and debugging personnel rapidly set communication networking parameters of various communication simulation equipment according to the requirements of clients, derive the communication networking parameters and basic parameters and back up, provide data basis for subsequent equipment joint debugging, do not need to install and debug personnel to have higher software debugging skills and consume a large amount of manpower familiar with communication simulation equipment service, improve the efficiency of communication simulation equipment configuration, ensure the quality of communication simulation equipment products, and solve the problems that the efficiency is low and the quality of the communication simulation equipment products cannot be ensured when the parameter configuration of the communication simulation equipment is carried out in the prior art.
In addition, in order to verify the feasibility of the scheme, by integrating the method, a training system developed for a certain communication training base realizes thirty types of communication simulation equipment configuration and management of more than one thousand stations (sets) including a short-wave radio station, an ultrashort-wave radio station, a high-speed radio station, a dual-band radio station, a multi-band radio station, a handheld station, a subscriber station, a central station, a vehicle-mounted station, a system type communication control, a guard type communication, a microwave relay, a scattering communication, a large communication control, a small communication control, a carrying box and the like. A communication simulation device configuration and management flow is shown in fig. 3.
Example III
Referring to fig. 4, a communication simulation device configuration apparatus according to a third embodiment of the present invention is applied to a debug computer, where the debug computer is electrically connected to a communication simulation device, the debug computer is internally provided with a basic parameter configuration component and a through pipe component, and the communication simulation device is internally provided with a basic parameter guiding component, and the apparatus includes:
the issuing module 100 is configured to obtain the basic parameters provided by the basic parameter configuration component, and issue the basic parameters;
the matching module 200 is configured to receive the issued basic parameter by using the basic parameter guiding component, and perform identity matching with the communication simulation device according to the basic parameter, so as to configure the communication simulation device according to the basic parameter after the identity matching is successful;
the activation module 300 is configured to activate a mirror system corresponding to the communication simulation device, and restart the communication simulation device, so that after the communication simulation device is restarted, a heartbeat message is sent to the through pipe assembly according to the basic parameter and the mirror system;
and the configuration module 400 is configured to control the through pipe component to issue corresponding communication networking parameters to the communication simulation equipment when the communication simulation equipment is determined to be fault-free according to the heartbeat message, so as to perform corresponding parameter configuration after the communication simulation equipment receives the communication networking parameters.
Further, the communication simulation device configuration apparatus is characterized in that the issuing module includes:
the first acquisition unit is used for acquiring the basic parameters according to the parameter information received by the parameter configuration interface provided by the basic parameter configuration component; or (b)
The second acquisition unit is used for acquiring the basic parameters according to the basic parameters which are imported and pre-configured by the basic parameter configuration component;
and the issuing unit is used for sending UDP broadcast packets to the corresponding communication ports according to the agreed communication content of the basic parameters so as to issue the basic parameters.
Further, the communication simulation device configuration apparatus described above, wherein the matching module includes:
the binding unit is used for creating a UDP socket by utilizing the basic parameter guiding component and binding the communication port;
and the analysis unit is used for analyzing the data packet after receiving the data packet of the communication content of the basic parameter, and comparing and judging the data packet with the identity of the communication simulation equipment so as to determine whether the identity of the communication simulation equipment is successfully matched.
Further, the above communication simulation device configuration apparatus, wherein the basic parameters at least include a device identity, a device type, an IP address, a mask address, a gateway address, a communication mode, and a communication port, and the activation module includes:
and the restarting unit is used for issuing a device restarting instruction to restart the communication simulation device, and sending a heartbeat message to the through pipe component according to the mirror image system, the IP address, the mask address, the gateway address, the communication mode and the communication port after the communication simulation device is restarted.
Further, the communication simulation device configuration apparatus further includes:
the judging module is used for judging whether the basic parameters are parameter initialization communication data or not;
if yes, executing the step of carrying out identity matching with the communication simulation equipment according to the basic parameters;
if not, reusing the basic parameter guiding component to receive the issued basic parameters.
Further, in some optional embodiments of the present invention, the configuration module further includes:
and the third evaluation unit is used for acquiring the equipment state of the communication simulation equipment according to the heartbeat message and determining whether the communication simulation equipment has faults according to the equipment state.
Further, the communication simulation device configuration apparatus further includes:
the checking module is used for checking whether the communication simulation equipment is connected to the network;
when the communication simulation equipment is judged to be not connected to the network, the communication networking parameters are reused for carrying out corresponding parameter configuration on the communication simulation equipment;
and when judging that the communication simulation equipment is accessed to the network, exporting the communication networking parameters after reporting the communication networking parameters.
The functions or operation steps implemented when the above modules are executed are substantially the same as those in the above method embodiments, and are not described herein again.
Example IV
In another aspect, the present invention provides a readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the method according to any one of the first to second embodiments.
Example five
In another aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the program to implement the steps of the method according to any one of the first to second embodiments.
The technical features of the above embodiments may be arbitrarily combined, and for brevity, all of the possible combinations of the technical features of the above embodiments are not described, however, they should be considered as the scope of the description of the present specification as long as there is no contradiction between the combinations of the technical features.
Those of skill in the art will appreciate that the logic and/or steps represented in the flow diagrams or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable storage medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable storage medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable storage medium may even be paper or other suitable medium upon which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (10)

1. The communication simulation equipment configuration method is characterized by being applied to a debugging computer, wherein the debugging computer is electrically connected with communication simulation equipment, a basic parameter configuration component and a through pipe component are arranged in the debugging computer, and a basic parameter guiding component is arranged in the communication simulation equipment, and the method comprises the following steps:
acquiring basic parameters provided by the basic parameter configuration component, and issuing the basic parameters;
the base parameter guiding component is utilized to receive the issued base parameter, and identity matching is carried out on the base parameter and the communication simulation equipment according to the base parameter, so that after the identity matching is successful, the communication simulation equipment is configured according to the base parameter;
activating a mirror image system corresponding to the communication simulation equipment, restarting the communication simulation equipment, and sending a heartbeat message to the through pipe assembly according to the basic parameters and the mirror image system after restarting the communication simulation equipment;
and when the communication simulation equipment is determined to be fault-free according to the heartbeat message, controlling the through pipe component to send corresponding communication networking parameters to the communication simulation equipment so as to carry out corresponding parameter configuration after the communication simulation equipment receives the communication networking parameters.
2. The method for configuring a communication simulation device according to claim 1, wherein the step of obtaining the basic parameters provided by the basic parameter configuration component and issuing the basic parameters comprises:
acquiring the basic parameters according to the parameter information received by the parameter configuration interface provided by the basic parameter configuration component; or (b)
The basic parameters are obtained by importing the pre-configured basic parameters according to the basic parameter configuration component;
and sending UDP broadcast packets to the corresponding communication ports according to the agreed communication content of the basic parameters so as to issue the basic parameters.
3. The communication simulation device configuration method according to claim 2, wherein the step of receiving the issued base parameter by the base parameter guidance component and performing identity matching with the communication simulation device according to the base parameter comprises:
establishing a UDP socket by using the basic parameter guiding component, and binding the communication port;
after receiving the data packet of the communication content of the basic parameter, analyzing the data packet, and comparing and judging with the identity of the communication simulation equipment to determine whether the identity of the communication simulation equipment is successfully matched.
4. The method for configuring a communication simulation device according to claim 1, wherein the basic parameters include at least a device identity, a device type, an IP address, a mask address, a gateway address, a communication mode, and a communication port, and the steps of activating a mirror system corresponding to the communication simulation device and restarting the communication simulation device, so as to send a heartbeat message to the through pipe assembly according to the basic parameters and the mirror system after restarting the communication simulation device include:
and sending a device restarting instruction to restart the communication simulation device, and sending a heartbeat message to the through pipe component according to the mirror image system, the IP address, the mask address, the gateway address, the communication mode and the communication port after the communication simulation device is restarted.
5. The communication simulation device configuration method according to claim 4, wherein the step of performing identity matching with the communication simulation device according to the basic parameter further comprises:
judging whether the basic parameters are parameter initialization communication data or not;
if yes, executing the step of carrying out identity matching with the communication simulation equipment according to the basic parameters;
if not, reusing the basic parameter guiding component to receive the issued basic parameters.
6. The communication simulation device configuration method according to claim 1, wherein the step of determining that the communication simulation device is free of faults from the heartbeat message includes:
and acquiring the equipment state of the communication simulation equipment according to the heartbeat message, and determining whether the communication simulation equipment has faults according to the equipment state.
7. The communication simulation device configuration method according to any one of claims 1 to 6, characterized in that the method further comprises:
checking whether the communication simulation equipment is connected to the network;
when the communication simulation equipment is judged to be not connected to the network, the communication networking parameters are reused for carrying out corresponding parameter configuration on the communication simulation equipment;
and when judging that the communication simulation equipment is accessed to the network, exporting the communication networking parameters after reporting the communication networking parameters.
8. The utility model provides a communication simulation equipment configuration device which characterized in that is applied to among the debugging computer, debugging computer and communication simulation equipment electric connection, the debugging computer embeds basic parameter configuration subassembly and siphunculus subassembly, be equipped with basic parameter guide subassembly in the communication simulation equipment, the device includes:
the issuing module is used for acquiring the basic parameters provided by the basic parameter configuration component and issuing the basic parameters;
the matching module is used for receiving the issued basic parameters by utilizing the basic parameter guiding component, and carrying out identity matching with the communication simulation equipment according to the basic parameters so as to configure the communication simulation equipment according to the basic parameters after the identity matching is successful;
the activation module is used for activating the mirror image system corresponding to the communication simulation equipment and restarting the communication simulation equipment so as to send heartbeat information to the through pipe assembly according to the basic parameters and the mirror image system after restarting the communication simulation equipment;
and the configuration module is used for controlling the through pipe component to issue corresponding communication networking parameters to the communication simulation equipment when the communication simulation equipment is determined to be fault-free according to the heartbeat message, so as to carry out corresponding parameter configuration after the communication simulation equipment receives the communication networking parameters.
9. A readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method according to any one of claims 1 to 7 when the program is executed.
CN202310459201.7A 2023-04-26 2023-04-26 Communication simulation device configuration method and device, readable storage medium and electronic device Active CN116170307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310459201.7A CN116170307B (en) 2023-04-26 2023-04-26 Communication simulation device configuration method and device, readable storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310459201.7A CN116170307B (en) 2023-04-26 2023-04-26 Communication simulation device configuration method and device, readable storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN116170307A true CN116170307A (en) 2023-05-26
CN116170307B CN116170307B (en) 2023-06-30

Family

ID=86414956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310459201.7A Active CN116170307B (en) 2023-04-26 2023-04-26 Communication simulation device configuration method and device, readable storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN116170307B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505238A (en) * 2009-03-06 2009-08-12 北京讯风光通信技术开发有限责任公司 Remote automatic debugging method and system for communication apparatus
WO2015117522A1 (en) * 2014-08-25 2015-08-13 中兴通讯股份有限公司 Parameter configuration data processing method and device, and parameter configuration method and device
CN111858364A (en) * 2020-07-24 2020-10-30 中国建设银行股份有限公司 Parameter configuration method, device and system of test terminal
CN112804099A (en) * 2021-01-07 2021-05-14 大连市共进科技有限公司 Parameter batch configuration method and device, computer equipment and readable storage medium
CN114936062A (en) * 2021-12-09 2022-08-23 腾讯科技(深圳)有限公司 Method, device, equipment, system and storage medium for automatically debugging equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505238A (en) * 2009-03-06 2009-08-12 北京讯风光通信技术开发有限责任公司 Remote automatic debugging method and system for communication apparatus
WO2015117522A1 (en) * 2014-08-25 2015-08-13 中兴通讯股份有限公司 Parameter configuration data processing method and device, and parameter configuration method and device
CN111858364A (en) * 2020-07-24 2020-10-30 中国建设银行股份有限公司 Parameter configuration method, device and system of test terminal
CN112804099A (en) * 2021-01-07 2021-05-14 大连市共进科技有限公司 Parameter batch configuration method and device, computer equipment and readable storage medium
CN114936062A (en) * 2021-12-09 2022-08-23 腾讯科技(深圳)有限公司 Method, device, equipment, system and storage medium for automatically debugging equipment

Also Published As

Publication number Publication date
CN116170307B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
CN112600716B (en) Equipment configuration method, configuration device and management equipment
CN110061871B (en) Base station opening method and device, computer storage medium and equipment
US10153957B2 (en) Fault diagnosis method, device, and fault diagnosis system
CN106844645B (en) Power communication equipment information inquiry system
CN100499510C (en) Method for positioning fault and service maintenance platform
CN106656562B (en) A kind of OLT batch issues the detection method and device of ONU configuration
CN107819611B (en) Client test method based on IEC61850 multi-server simulation
CN110224907A (en) A kind of updating system of vehicle-mounted ECU, method and terminal
CN109561382A (en) Home eNodeB parameter self-configuration method, system, storage medium and equipment
CN107241201B (en) Work order processing method and device
CN113312064A (en) Installation configuration method and device of physical machine and computer readable medium
CN110335003A (en) A kind of port resource management method and device
CN110601915A (en) Method and device for testing gateway device
CN106872879A (en) Hardware wireless debugging method, device, communication chip and electronic equipment
CN116170307B (en) Communication simulation device configuration method and device, readable storage medium and electronic device
CN104239217A (en) Method and system for testing railway signal software
CN111158943A (en) Fault diagnosis method and apparatus, storage medium, electronic device
CN110460474A (en) The configuration method and device of functions of the equipments, storage medium, electronic equipment
CN103997419A (en) Universal template configuration management method and apparatus compatible with multiple services
CN113993161B (en) Service test method, server, terminal device and storage medium
CN202652532U (en) Embedded information playing system and device based on short message service
CN106973403A (en) Method for parameter configuration, access network equipment and server
CN110703181A (en) Method for calibrating electric energy meters with different protocol types on same calibration platform body
CN112911629A (en) Network testing method and device and computer readable storage medium
CN215956393U (en) Test system and test equipment

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