Multi-thread-based data simulator embedded device
Through the multi-threaded data simulator embedded device, combined with the PS and PL processing mechanisms, the problems of high cost and poor scalability of existing data simulators are solved, and a highly flexible and scalable data simulator with precise flow control and temperature alarm functions is realized.
Patent Information
- Application Number
- CN202510708410.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-29
- Publication Date
- 2025-09-23
AI Technical Summary
Existing data simulators have the problems of high cost and poor scalability. In particular, data traffic generators have difficulty meeting personalized business needs when generating data streams that conform to network protocols and packet formats.
A multi-threaded data simulator embedded device is used, combined with the PS and PL joint processing mechanism, to design a monitoring processing unit, data generation unit, data sending control unit and temperature monitoring alarm unit to achieve personalized business data generation and precise traffic control.
It implements a highly flexible and scalable data simulator with precise flow control and intuitive temperature alarm mechanism to meet personalized business needs.
Smart Images

Figure CN120692173A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a multi-threaded data simulator embedded device. Background Art
[0002] Existing data simulators that can serve as signal sources primarily include data generators and data traffic generators. Data generators are used to generate various types of digital or analog signals, but they typically do not address network protocols or packet structures. Data traffic generators, while capable of generating data streams that conform to network protocols and packet formats, suffer from high costs and poor scalability. Therefore, a data simulator that is both affordable and supports both personalized service data generation and service data traffic control is ideal for practical engineering applications. Summary of the Invention
[0003] In view of the current situation, the present invention provides a multi-threaded data simulator embedded device. The present invention is highly comprehensive, flexible, and scalable. It adopts a PS and PL joint processing mechanism to achieve personalized business data generation and precise flow control mechanism.
[0004] The technical solution adopted in the present invention is:
[0005] A multi-threaded data simulator embedded device includes a monitoring processing unit 1, a data generating unit 2, a data sending control unit 3 and a temperature monitoring alarm unit 4;
[0006] The monitoring processing unit 1 includes an independent thread, which receives control information and query information from the monitoring through the gigabit network port. The control information includes multiple setting parameters: service type, information format, data packet length, sample size, designated sending network port, sending mode, sending rate, and start and stop sending. The query information is a query instruction for querying the currently used parameters; the monitoring processing unit 1 is used to process the monitoring control information, send the service type, information format and data packet length setting parameters therein to the data generation unit 2, and send the sample size, designated sending network port, sending mode, sending rate, and start and stop sending setting parameters to the data sending control unit 3; it is also used to generate the parameters currently used by the statistical data generation unit 2 and the data sending control unit 3 based on the query information, and report them to the monitoring;
[0007] The data generation unit 2 includes an independent thread for generating a specified type of service data according to the service type, information format and data packet length setting item parameters issued by the monitoring processing unit 1, and sending the service data to the data sending control unit 3;
[0008] The data transmission control unit 3 includes three independent threads, which are used to send the service data generated by the data generation unit 2 from the designated transmission network port of the monitoring processing unit 1 to the channel in the form of a stable service data stream according to the sample size, transmission mode, transmission rate, and start and stop transmission setting parameters issued by the monitoring processing unit 1;
[0009] The temperature monitoring and alarm unit 4 includes an independent thread for real-time monitoring of the temperature of the entire device and triggering an alarm when the temperature is abnormal.
[0010] Furthermore, the monitoring processing unit 1 includes a setting item processing module 5 and a query item processing module 6;
[0011] The setting item processing module 5 is used to verify the legitimacy of the control information issued by the monitoring, issue an alarm prompt for abnormal situations, and send the service type, information format and data packet length setting item parameters therein to the data generation unit 2 after verification. The service types include integrated services, collaborative services, navigation services, trace services and special format services; and send the sample size, designated sending network port, sending mode, sending rate and start and stop sending setting item parameters to the data transmission control unit 3;
[0012] The query item processing module 6 is used to verify the legitimacy of the query information issued by the monitoring, issue alarm prompts for abnormal situations, extract parameter query content from the verified query information, and report the parameters currently used by the data generation unit 2 and the data sending control unit 3 to the monitoring processing unit 1.
[0013] Furthermore, the data generation unit 2 includes a comprehensive service generation module 7, a collaborative service generation module 8, a navigation service generation module 9, a trace service generation module 10 and a special format service generation module 11;
[0014] According to the service types in the setting parameter items parsed by the monitoring processing unit 1, the comprehensive service generation module 7, the collaborative service generation module 8, the navigation service generation module 9, the trace service generation module 10 and the special format service generation module 11 respectively generate comprehensive services, collaborative services, navigation services, trace services and special format services according to the information format and data packet length in the setting parameter items, and send the service data to the data sending control unit 3.
[0015] Furthermore, the data transmission control unit 3 includes a transmission frame number statistics module 12, a rate control monitoring module 13 and a timing module 14, each including an independent thread;
[0016] The sending frame number statistics module 12 is used to receive the sample amount and the setting item parameters of the designated sending network port sent by the monitoring processing unit 1, count the number of service data flow frames sent to the channel through the designated network port, and stop sending data frames when the set sample amount is reached;
[0017] The rate control monitoring module 13 is used to receive the sending mode, sending rate and start sending and stop sending setting item parameters sent by the monitoring processing unit 1. When the start sending and stop sending setting item parameters are in the start sending state, the business data stream is started to be sent to the channel from the designated network port according to the sending mode parsed by the monitoring processing unit 1, and the clock is obtained from the timing module 14 to control the sending rate of the business data stream according to the sending rate parameters.
[0018] Furthermore, the monitoring processing unit 1 and the data generating unit 2 are developed on the PS side, and the data sending control unit 3 and the temperature monitoring alarm unit 4 adopt a joint development mode of the PS and PL sides.
[0019] Furthermore, the temperature monitoring alarm unit 4 includes a temperature query module 15 and an alarm control module 16; both the temperature query module 15 and the alarm control module 16 adopt a joint development mode of the PS and PL ends;
[0020] The temperature query module 15 on the PL side is used to obtain the device temperature and report it to the temperature query module 15 on the PS side. The temperature query module 15 on the PS side sends the temperature to the alarm control module 16 on the PS side;
[0021] The alarm control module 16 on the PS side determines whether the temperature is abnormal. When an abnormal temperature is detected, the alarm control module 16 on the PS side sends a temperature abnormality trigger instruction to control the alarm control module 16 on the PL side to drive the LED to flash and alarm, thereby realizing a visual alarm feedback mechanism when the temperature is abnormal.
[0022] The advantages of the present invention compared to the prior art are:
[0023] (1) Compared with conventional data simulators, the present invention has the advantages of high flexibility and strong scalability through the design of the monitoring processing unit and the data generation unit, and can meet the personalized sending requirements.
[0024] (2) The present invention adopts a PL and PS joint processing mechanism to achieve precise flow control. The generated service data flow control accuracy is high and the rate jitter is small.
[0025] (3) The present invention realizes real-time monitoring of the board temperature through the temperature monitoring alarm unit, and provides visual and intuitive alarms when the temperature is abnormal, which has the advantages of being intuitive, efficient and highly safe. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a system block diagram of the present invention.
[0027] Figure 2 It is a module structure diagram of the monitoring processing unit 1 of the present invention.
[0028] Figure 3 It is a module structure diagram of the data generation unit 2 of the present invention.
[0029] Figure 4 It is a module structure diagram of the data sending control unit 3 of the present invention.
[0030] Figure 5 It is a module structure diagram of the temperature monitoring alarm unit 4 of the present invention. DETAILED DESCRIPTION
[0031] The present invention will be further described with reference to the accompanying drawings and specific embodiments:
[0032] Figure 1 1 is a system block diagram of the present invention, a multi-threaded data simulator embedded device includes a monitoring processing unit 1, a data generating unit 2, a data sending control unit 3 and a temperature monitoring alarm unit 4.
[0033] The monitoring processing unit 1 includes an independent thread that receives control information and query information from the monitoring system via the gigabit network port. The control information includes various setting parameters such as service type, information format, data packet length, sample size, designated sending network port, sending mode, sending rate, start sending, and stop sending. The query information is a query instruction for querying the parameters currently used by the data generation unit 2 and the data transmission control unit 3. The monitoring processing unit 1 is used to process the monitoring control information, sending the service type, information format, and data packet length setting parameters therein to the data generation unit 2, and sending the sample size, designated sending network port, sending mode, sending rate, and start sending and stop sending setting parameters to the data transmission control unit 3. The monitoring processing unit 1 is also used to calculate the parameters currently used by the data generation unit 2 and the data transmission control unit 3 based on the query information and report it to the monitoring system.
[0034] The data generation unit 2 includes an independent thread for generating business data of a specified type according to the setting parameters such as business type, information format, data packet length, etc. issued by the monitoring processing unit 1, and sending the business data to the data sending control unit 3.
[0035] The data sending control unit 3 includes three independent threads, which are used to send the business data generated by the data generation unit 2 from the sending network port specified by the monitoring processing unit 1 to the channel in the form of a stable business data stream based on the sample size, sending mode, sending rate and start sending and stop sending setting item parameters issued by the monitoring processing unit 1.
[0036] The temperature monitoring and alarm unit 4 includes an independent thread for real-time monitoring of the temperature of the entire device and triggering an alarm when the temperature is abnormal.
[0037] Figure 2 This is a block diagram of the monitoring processing unit 1 of the present invention. This unit includes a setup item processing module 5 and a query item processing module 6. Because the processing system (PS) offers advantages over programmable logic (PL) in sending, receiving, and parsing UDP packets, such as high flexibility, ease of debugging, and a rich protocol stack, monitoring processing unit 1 was developed on the PS side.
[0038] The setting item processing module 5 is used to verify the legitimacy of the control information issued by the monitoring, and to issue an alarm for abnormal situations. After the verification is passed, the service type, information format and data packet length setting item parameters are sent to the data generation unit 2, and the sample size, designated sending network port, sending mode, sending rate and start sending and stop sending setting item parameters are sent to the data sending control unit 3; the query item processing module 6 is used to verify the legitimacy of the query information issued by the monitoring, and to issue an alarm for abnormal situations, and to extract the parameter query content from the query information that has passed the verification, and report the parameters currently used by the data generation unit 2 and the data sending control unit 3 to the monitoring processing unit 1.
[0039] Figure 3 The data generation unit 2 of the present invention comprises a comprehensive service generation module 7, a collaborative service generation module 8, a navigation service generation module 9, a point trace service generation module 10 and a special format service generation module 11. The data generation unit 2 is also developed on the PS side.
[0040] The data generation unit 2 receives the control information from the monitoring processing unit 1, and the service types include integrated service, collaborative service, navigation service, trace service and special format service; the corresponding service generation module generates service data of the specified type based on the setting item parameters, and sends it to the data sending control unit 3; for example, when the service type in the control information received from the monitoring processing unit 1 is integrated service, the integrated service generation module 7 generates service data of the specified type based on the setting item parameters, and sends it to the data sending control unit 3.
[0041] The information formats supported by the comprehensive service generation module 7 and the collaborative service generation module 8 include: all "0" data, all "1" data, "0" and "1" alternating data, PN code data, etc.; the navigation service generation module 9 supports the definition of longitude and latitude coordinates, altitude, heading, speed and selection of sending network ports, etc.; the point trace service generation module 10 supports the definition of the distance, azimuth, pitch angle, moving direction, moving speed and other contents of multiple nodes; the special format service generation module 11 supports the generation of specified content service data suitable for maritime communications according to needs.
[0042] Figure 4 The figure is a module structure diagram of the data transmission control unit 3 of the present invention. The data transmission control unit 3 includes a rate control monitoring module 13, a transmission frame number statistics module 12, and a timing module 14. The transmission frame number statistics module 12, the rate control monitoring module 13, and the timing module 14 each include an independent thread. Based on the advantage of PL having high timing accuracy, the timing module 14 of the present invention is developed on the PL side. When the timing module counts the full timing period Δt, the PS side receives a trigger signal, and the rate control monitoring module 13 accumulates the amount of data to be sent within the timing period Δt. Therefore, the data transmission control unit 3 adopts a PS and PL joint development model.
[0043] The sending frame number statistics module 12 is used to receive the sample size and the setting item parameters of the designated sending network port sent by the monitoring processing unit 1, and to count the number of service data stream frames sent to the channel through the designated network port. When the set sample size is reached, the designated network port stops sending data frames. The rate control monitoring module 13 is used to receive the sending mode, sending rate, and the setting item parameters for starting and stopping sending sent by the monitoring processing unit 1. When the setting item parameters for starting and stopping sending are in the start sending state, the service data stream is started to be sent from the designated network port to the channel according to the sending mode parsed by the monitoring processing unit 1, and the clock is obtained from the timing module 14. The expected cumulative amount of sent data is calculated based on the sending rate issued by the monitoring processing unit 1, and the flow compensation algorithm is executed in the continuous data transmission cycle to control the sending rate of the service data stream according to the sending rate parameters.
[0044] Figure 5This is a module structure diagram of the temperature monitoring and alarm unit 4 of the present invention. The temperature monitoring and alarm unit 4 includes a temperature query module 15 and an alarm control module 16. Both the temperature query module 15 and the alarm control module 16 are jointly developed on the PS and PL sides. The temperature query module 15 on the PL side is used to obtain the device temperature and report it to the temperature query module 15 on the PS side. The temperature query module 15 on the PS side then sends the temperature to the alarm control module 16 on the PS side. The alarm control module 16 on the PS side determines whether the temperature is abnormal. If an abnormal temperature is detected, the PS side alarm control module 16 sends a temperature abnormality trigger instruction, which controls the alarm control module 16 on the PL side to drive the LED to flash and alarm, thus implementing a visual alarm feedback mechanism for abnormal temperatures.
[0045] The present invention briefly works as follows:
[0046] A multi-threaded data simulator embedded device consists of a monitoring processing unit, a data generation unit, a data transmission control unit, and a temperature monitoring and alarm unit. The monitoring processing unit includes an independent thread that receives control and query information from the monitoring unit via a gigabit network port. It processes the monitoring control information, provides setting parameters and query instructions to the data generation unit and the data transmission control unit, and processes parameter reports from the data generation unit and the data transmission control unit. The data generation unit includes an independent thread for generating specified types of service data based on the setting parameters issued by the monitoring processing unit. This service data is transmitted by the data transmission control unit. The data transmission control unit includes three independent threads for transmitting the service data generated by the data generation unit through the network port and transmission mode specified by the monitoring processing unit, and for generating a stable service data stream based on the data transmission rate and time interval issued by the monitoring processing unit. The temperature monitoring and alarm unit includes an independent thread for real-time monitoring of board temperature and triggering an alarm when the temperature is abnormal. This invention is highly comprehensive, flexible, and scalable. It utilizes a combined PS and PL processing mechanism to achieve personalized service data generation and precise flow control.
Claims
1. A multi-threaded data simulator embedded device, characterized in that: It comprises a monitoring processing unit (1), a data generating unit (2), a data sending control unit (3) and a temperature monitoring alarm unit (4); The monitoring processing unit (1) includes an independent thread, which receives control information and query information from the monitoring through the gigabit network port, wherein the control information includes multiple setting parameters: business type, information format, data packet length, sample size, designated sending network port, sending mode, sending rate, and start and stop sending, and the query information is a query instruction for querying the currently used parameters; the monitoring processing unit (1) is used to process the monitoring control information, send the business type, information format and data packet length setting parameters therein to the data generating unit (2), and send the sample size, designated sending network port, sending mode, sending rate, and start and stop sending setting parameters to the data sending control unit (3); and is also used to generate the parameters currently used by the statistical data generating unit (2) and the data sending control unit (3) according to the query information, and report them to the monitoring; The data generating unit (2) includes an independent thread for generating business data of a specified type according to the business type, information format and data packet length setting item parameters issued by the monitoring processing unit (1), and sending the business data to the data sending control unit (3); The data transmission control unit (3) includes three independent threads, which are used to send the service data generated by the data generation unit (2) from the designated transmission network port of the monitoring processing unit (1) to the channel in the form of a stable service data stream according to the sample size, transmission mode, transmission rate and start transmission and stop transmission setting item parameters issued by the monitoring processing unit (1); The temperature monitoring alarm unit (4) includes an independent thread for real-time monitoring of the temperature of the entire device and triggering an alarm when the temperature is abnormal.
2. A multi-threaded data simulator embedded device according to claim 1, characterized in that: The monitoring processing unit (1) includes a setting item processing module (5) and a query item processing module (6); The setting item processing module (5) is used to verify the legitimacy of the control information issued by the monitoring, issue an alarm prompt for abnormal situations, and send the service type, information format and data packet length setting item parameters therein to the data generation unit (2) after the verification is passed, wherein the service types include integrated services, collaborative services, navigation services, trace services and special format services; and send the sample size, designated sending network port, sending mode, sending rate and start and stop sending setting item parameters to the data sending control unit (3); The query item processing module (6) is used to verify the legitimacy of the query information sent by the monitoring system, issue an alarm for abnormal situations, extract parameter query content from the query information that has passed the verification, and report the parameters currently used by the data generation unit (2) and the data transmission control unit (3) to the monitoring processing unit (1).
3. A multi-threaded data simulator embedded device according to claim 1, characterized in that: The data generation unit (2) includes a comprehensive service generation module (7), a collaborative service generation module (8), a navigation service generation module (9), a trace service generation module (10) and a special format service generation module (11); According to the service types in the setting parameter items analyzed by the monitoring processing unit (1), the integrated service generation module (7), the collaborative service generation module (8), the navigation service generation module (9), the trace service generation module (10) and the special format service generation module (11) respectively generate integrated services, collaborative services, navigation services, trace services and special format services according to the information formats and data packet lengths in the setting parameter items, and send the service data to the data transmission control unit (3).
4. The multi-threaded data simulator embedded device according to claim 1, characterized in that: The data transmission control unit (3) includes a transmission frame number statistics module (12), a rate control monitoring module (13) and a timing module (14), each including an independent thread; The frame transmission statistics module (12) is used to receive the sample amount and the setting item parameters of the designated transmission network port sent by the monitoring processing unit (1), and to count the number of service data flow frames sent to the channel through the designated network port. When the set sample amount is reached, the designated network port stops sending data frames. The rate control monitoring module (13) is used to receive the sending mode, sending rate and start sending and stop sending setting item parameters sent by the monitoring processing unit (1); when the start sending and stop sending setting item parameters are in the start sending state, the service data stream is started to be sent to the channel from the designated network port according to the sending mode parsed by the monitoring processing unit (1), and the clock is obtained from the timing module (14), and the sending rate of the service data stream is controlled according to the sending rate parameters.
5. The multi-threaded data simulator embedded device according to claim 1, characterized in that: The monitoring processing unit (1) and the data generating unit (2) are developed on the PS side, and the data sending control unit (3) and the temperature monitoring alarm unit (4) adopt a joint development mode of the PS and PL sides.
6. The multi-threaded data simulator embedded device according to claim 5, characterized in that: The temperature monitoring alarm unit (4) includes a temperature query module (15) and an alarm control module (16); the temperature query module (15) and the alarm control module (16) both adopt a PS and PL joint development mode; The temperature query module (15) at the PL end is used to obtain the device temperature and report it to the temperature query module (15) at the PS end. The temperature query module (15) at the PS end sends the temperature to the alarm control module (16) at the PS end. The alarm control module (16) at the PS end determines whether the temperature is abnormal. When an abnormal temperature is detected, the alarm control module (16) at the PS end sends a temperature abnormality trigger instruction to control the alarm control module (16) at the PL end to drive the LED to flash and alarm, thereby realizing a visual alarm feedback mechanism when the temperature is abnormal.