Visual data packet specification configuration method, device and equipment

CN120378300APending Publication Date: 2025-07-25ZHEJIANG SUPCON INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510730116.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-03
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

In the prior art, the control instructions of the PA/PIS system require manual parsing of protocol documents and writing code, resulting in a long development cycle and error-prone manner. The protocol differences between different lines or equipment suppliers lead to repeated development of adaptation codes for each new manufacturer, which is inefficient in delivery.

Method used

A visual packet specification configuration method is provided. The target protocol document is input through the visual register editing page, and the target information system's initial packet specification configuration file is generated for the bus protocol, and the initial field configuration information of each address interval is displayed. The status and control field information are determined based on this information, and the target packet specification configuration file is finally generated.

Benefits of technology

There is no need for operators to write data packet specification configuration files manually, reduce configuration errors, improve the efficiency of generating data packet specification configuration files, and simplify the packet configuration process of PA/PIS systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120378300A_ABST
    Figure CN120378300A_ABST
Patent Text Reader

Abstract

The invention provides a visual data packet specification configuration method, device and equipment, and relates to the technical field of data packet processing, and the method comprises the steps: displaying a visual register editing page of a target information system for a bus protocol in a target site; according to a target protocol document which is input through the visual register editing page and aims at the target information system, generating an initial data packet specification configuration file, displaying initial field configuration information corresponding to each address interval, and determining state field information and control field information of each function in the target information system; generating a target data packet specification configuration file of the target information system for the bus protocol according to the state field information and the control field information of each function; therefore, the vehicle control system of the target station generates the target binary data packet based on the input control data for the target information system, and transmits the target binary data packet to the target information system by adopting the bus protocol, so that the efficiency of generating the data packet specification configuration file is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data packet processing, and in particular, to a method, device, and equipment for visualizing data packet specification configuration. Background Art

[0002] With the rapid development of urban rail transit, the Public Address (PA) system and Passenger Information System (PIS) widely deployed in subway stations have become key facilities for passenger services. The PA system broadcasts voice information to passengers through loudspeakers, and the PIS system provides graphic guidance through display screens. Both need to be docked with the central control system through communication protocols to achieve instruction issuance.

[0003] However, there are the following significant problems in practical applications: The control instructions of the PA / PIS system need to be constructed as binary data packets, and their formats strictly follow the protocol specifications defined by the manufacturer, involving bit-level operations. At the same time, developers need to manually parse the protocol documents and write code to implement the mapping logic from parameters to bit positions, resulting in a long development cycle and being error-prone. In addition, due to significant protocol differences between different lines or equipment suppliers (such as different field positions and data type definitions), it is necessary to repeatedly develop and adapt the code for each new vendor docking, resulting in low delivery efficiency. Summary of the Invention

[0004] The purpose of the present invention is to provide a method, device, and equipment for visualizing data packet specification configuration for the deficiencies in the above-mentioned prior art, so as to more conveniently configure the registers of the bus protocol in a visual manner, and then generate a target data packet specification configuration file, without the need for operators to manually write the data packet specification configuration file, reduce the situation of data packet configuration errors, and improve the efficiency of generating the data packet specification configuration file.

[0005] To achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows: In a first aspect, the embodiments of the present application provide a method for visualizing data packet specification configuration, and the method includes: Display a visual register editing page for a target information system in a target site for a bus protocol; the target information system is a broadcast system or a passenger information system; Generate an initial data packet specification configuration file for the target information system for the bus protocol according to the target protocol document input through the visual register editing page, and display the initial field configuration information corresponding to each address range on the visual register editing page; Determine the status field information of each function and the control field information of each function in the target information system according to the initial field configuration information corresponding to each address range; Generate a target data packet specification configuration file for the target information system for the bus protocol according to the status field information of each function and the control field information of each function; wherein, the target data packet specification configuration file is used to enable the vehicle control system of the target site to generate a target binary data packet based on the input control data for the target information system and transmit it to the target information system using the bus protocol.

[0006] In an alternative embodiment, the displaying the initial field configuration information corresponding to each address range on the visual register editing page includes: Display a parameter configuration area corresponding to each address range on the visual register editing page, and display the initial field configuration information in the parameter configuration area corresponding to each address range; The determining the status field information of each function and the control field information of each function in the target information system according to the initial field configuration information corresponding to each address range includes: Update the initial field configuration information corresponding to each address range according to the configuration update operation input through the parameter configuration area corresponding to each address range to obtain the target field configuration information of each address range; Determine the status field information of each function and the control field information of each function in the target information system according to the target field configuration information of each address range.

[0007] In an alternative embodiment, the generating an initial data packet specification configuration file for the bus protocol according to the target protocol document for the target information system input through the visual register editing page includes: Parse the target protocol document to obtain the text content of the target protocol document; Generate a target prompt word for the bus protocol according to a preset prompt word template, a preset specification configuration file format, and the text content of the target protocol document; Process the target prompt word using a preset large language model to obtain the initial data packet specification configuration file for the bus protocol.

[0008] In an alternative embodiment, before generating the target data packet specification configuration file for the target information system for the bus protocol, the method further includes: According to the target field configuration information of each address range, in the structure display area of the visual register editing page, the field names, field descriptions, field positions of each address range, and the field distribution views of each address range are displayed in real time, where the field distribution views of each address range are used to indicate the configuration distribution of each byte in each address range.

[0009] In an alternative embodiment, before generating the target packet specification configuration file of the target information system for the bus protocol, the method further includes: Traverse the target field configuration information of each address range to determine the mapping positions of each target field in the target information system in the register; Determine whether there is an overlap in the mapping positions of each target field in the register; If there is an overlap, output a first prompt message.

[0010] In an alternative embodiment, before generating the target packet specification configuration file of the target information system for the bus protocol, the method further includes: Traverse the target field configuration information of each address range to determine the configuration lengths of each target field in the target information system; Determine whether the configuration lengths of the preset fixed-length fields in each target field meet the constraint conditions of the preset lengths of the preset fixed-length fields; If not, output a second prompt message.

[0011] In an alternative embodiment, if the target information system is the broadcast system, the status field information of each function includes: field information of the pre-recorded broadcast function, field information of the monitored broadcast function, field information of the line broadcast, field information of the microphone broadcast, field information of the text-to-speech broadcast, and the control field information of each function includes: field information of the repeated broadcast times, field information of the operator, field information of the broadcast information, field information of the broadcast line area, field information of the text information; Alternatively, if the target information system is the passenger information system, the status field information of each function includes: field information of the screen-off and screen-on function, field information of the emergency release function, and the control field information of each function includes: field information of the release content, field information of the release area.

[0012] In an alternative embodiment, the method further includes: Use the vehicle control system to obtain the input control data for the target information system; Use the vehicle control system to parse the packet planning configuration file of the target information system to obtain the packet mapping rules of the target information system; Using the data packet mapping rule, convert the control data into the target binary data packet of the target information system, and transmit it to the target information system using the bus protocol.

[0013] In a second aspect, an embodiment of the present application further provides a visual data packet specification configuration device, which includes: A display module, configured to display a visual register editing page for a target information system in a target site for a bus protocol; the target information system is a broadcast system or a passenger information system; A generation module, configured to generate an initial data packet specification configuration file for the target information system for the bus protocol according to a target protocol document for the target information system input through the visual register editing page, and display initial field configuration information corresponding to each address range on the visual register editing page; A determination module, configured to determine status field information of each function and control field information of each function in the target information system according to the initial field configuration information corresponding to each address range; The generation module is further configured to generate a target data packet specification configuration file for the target information system for the bus protocol according to the status field information of each function and the control field information of each function; wherein, the target data packet specification configuration file is used to enable the vehicle control system of the target site to generate a target binary data packet based on the input control data for the target information system, and transmit it to the target information system using the bus protocol.

[0014] In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores program instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus, and the processor executes the program instructions to perform the steps of the visual data packet specification configuration method according to any one of the first aspects.

[0015] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it performs the steps of the visual data packet specification configuration method according to any one of the first aspects.

[0016] The beneficial effects of the present application are: An embodiment of the present application provides a method, device, and equipment for visualizing data packet specification configuration. The method includes: displaying a visual register editing page for a target information system in a target site for a bus protocol; the target information system is a broadcast system or a passenger information system; generating an initial data packet specification configuration file for the target information system for the bus protocol according to the target protocol document input through the visual register editing page, and displaying the initial field configuration information corresponding to each address range on the visual register editing page; determining the status field information and control field information of each function in the target information system according to the initial field configuration information corresponding to each address range; generating a target data packet specification configuration file for the target information system for the bus protocol according to the status field information and control field information of each function; wherein, the target data packet specification configuration file is used to enable the vehicle control system of the target site to generate a target binary data packet based on the input control data for the target information system and transmit it to the target information system using the bus protocol. The method of the present application inputs the target protocol document in a visual manner, automatically generates an initial data packet specification configuration file, and displays the initial field configuration information corresponding to each address range, and then generates a target data packet specification configuration file, without the need for an operator to manually write the data packet specification configuration file, reducing the situation of data packet configuration errors and improving the efficiency of generating the data packet specification configuration file. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.

[0018] Figure 1 FIG. 9 is one of the flow diagrams of a method for visualizing data packet specification configuration provided by an embodiment of the present application; Figure 2 FIG. 12 is another flow diagram of a method for visualizing data packet specification configuration provided by an embodiment of the present application; Figure 3 FIG. 15 is a schematic diagram of a visual register editing page provided by an embodiment of the present application; Figure 4 FIG. 18 is a third flow diagram of a method for visualizing data packet specification configuration provided by an embodiment of the present application; Figure 5 FIG. 21 is a schematic diagram of another visual register editing page provided by an embodiment of the present application; Figure 6It is the fourth flowchart diagram of a visual data packet specification configuration method provided by an embodiment of the present application; Figure 7 It is the fifth flowchart diagram of a visual data packet specification configuration method provided by an embodiment of the present application; Figure 8 It is the sixth flowchart diagram of a visual data packet specification configuration method provided by an embodiment of the present application; Figure 9 It is the functional module diagram of a visual data packet specification configuration device provided by an embodiment of the present application; Figure 10 It is the schematic diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0019] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention.

[0020] Therefore, the detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application claimed, but merely represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts fall within the scope of protection of the present application.

[0021] In the description of the present application, it should be noted that if terms such as "upper", "lower", etc. indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship when the product of this application is normally placed, it is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation to the present application.

[0022] In addition, terms such as "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of the present invention described here can be implemented in an order different from those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0023] It should be noted that, without conflict, the features in the embodiments of the present application can be combined with each other.

[0024] In order to more efficiently generate the target binary data packet corresponding to the target information system, the embodiments of the present application provide a visual data packet specification configuration method. By inputting the target protocol document for the target information system on the visual register editing page, an initial data packet specification configuration file for the target information system for the bus protocol can be generated, and the initial field configuration information corresponding to each address range is displayed on the visual register editing page. Then, the status field information and control field information of each function are determined according to the initial field configuration information corresponding to each address range. Finally, a target data packet specification configuration file for the target information system for the bus protocol is generated, eliminating the need for operators to manually write the data packet specification configuration file, reducing the occurrence of configuration errors, and improving the efficiency of generating the data packet specification configuration file.

[0025] The visual data packet specification configuration method provided by the embodiments of the present application is explained in detail by specific examples in combination with the accompanying drawings as follows. The visual data packet specification configuration method provided by the embodiments of the present application can be implemented by an electronic device pre-installed with a preset visual data packet specification configuration algorithm or detection software by running the algorithm or software. The electronic device can be, for example, a server or a terminal, and the terminal can be a user computer. Figure 1 One of the flow diagrams of a visual data packet specification configuration method provided by the embodiments of the present application; as Figure 1 shown, the method includes: S101. Display a visual register editing page for the target information system for the bus protocol in the target site.

[0026] In this embodiment, the target site can be a transportation rail site such as a subway platform or a bus hub. Among them, the target information system is a broadcast system or a passenger information system. The broadcast system, i.e., the PA system, includes a control host device and a plurality of broadcast speakers distributed in the target site. The operators of the target site can set parameters such as broadcast content, broadcast area, and repetition times through the operation interface of the vehicle control system and play the broadcast, which is mainly used to play voice information such as announcements and prompts to the passengers in the target site; the passenger information system, i.e., the PIS system, includes a control host device and a plurality of display screens distributed in the target site. The operators of the target site can set parameters such as display content and display area through the operation interface of the vehicle control system and control the display content on the corresponding screen, and can also perform operations such as turning off and turning on the screen, which is mainly used to display train timetables, station information, emergency announcements, etc. to the passengers in the target site.

[0027] The bus protocol, namely the serial communication protocol (Modbus), is a set of rules and standards for data transmission between different devices, which stipulates data formats, transmission rates, electrical characteristics, etc. The visual register editing page is a graphical user interface where users can intuitively configure the registers of data packets on the visual register editing page without writing complex code. Additionally, this visual register editing page is specifically designed for a specific bus protocol, facilitating users to configure the registers of data packets of the bus protocol.

[0028] S102. Generate an initial data packet specification configuration file for the target information system for the bus protocol based on the target protocol document input through the visual register editing page, and display the initial field configuration information corresponding to each address range on the visual register editing page.

[0029] S103. Determine the status field information and control field information of each function in the target information system based on the initial field configuration information corresponding to each address range.

[0030] Specifically, display a protocol document input interface for the target information system on the visual register editing page. Respond to the input operation of the target protocol document on the protocol document input interface, generate an initial data packet specification configuration file for the bus protocol, and jump to display the initial field configuration information corresponding to each address range.

[0031] In the bus protocol, registers are divided into different address ranges, and each address range corresponds to a specific data field. The initial field configuration information corresponding to each address range displayed on the visual register editing page defines the data meaning and format represented by each address range. By analyzing the initial field configuration information of the register address ranges, the status field information and control field information corresponding to each function can be determined.

[0032] Optionally, if the target information system is a broadcast system, the status field information of each function includes: field information of the pre-recorded broadcast function, field information of the monitored broadcast function, field information of the line broadcast, field information of the microphone broadcast, field information of the text-to-speech broadcast; and the control field information of each function includes: field information of the repeated broadcast times, field information of the operator, field information of the broadcast message, field information of the broadcast line area, field information of the text message.

[0033] Or, if the target information system is a passenger information system, the status field information of each function includes: field information of the screen-off and screen-on function, field information of the emergency release function; and the control field information of each function includes: field information of the released content, field information of the release area.

[0034] S104. Generate a target data packet specification configuration file for the target information system for the bus protocol according to the status field information and control field information of each function.

[0035] Among them, the target data packet specification configuration file is used to enable the vehicle control system of the target site to generate a target binary data packet based on the input control data for the target information system and transmit it to the target information system using the bus protocol.

[0036] Specifically, after determining the status field information and control field information of each function in the target information system according to the initial field configuration information corresponding to each address range, generate a target data packet specification configuration file for the target information system for the bus protocol according to the status field information and control field information of each function. The target data packet specification configuration file stipulates information such as the structure of the data packet, the meaning and length of each field, and is a file describing the data transmission format between the target information system and the vehicle control system.

[0037] The vehicle control system is responsible for controlling and managing the target information system, generating a target binary data packet corresponding to the target data packet specification configuration file according to the input control data for the target information system, and transmitting the generated target binary data packet using the specified bus protocol to send the data in the target binary data packet to the target information system, thereby realizing the control of the target information system.

[0038] In summary, the embodiment of the present application provides a method for visualizing packet specification configuration. The method includes: displaying a visual register editing page for a target information system in a target site for a bus protocol; the target information system is a broadcast system or a passenger information system; generating an initial packet specification configuration file for the target information system for the bus protocol according to the target protocol document for the target information system input through the visual register editing page, and displaying the initial field configuration information corresponding to each address range on the visual register editing page, and then determining the status field information and control field information of each function in the target information system according to the initial field configuration information corresponding to each address range; generating a target packet specification configuration file for the target information system for the bus protocol according to the status field information and control field information of each function; wherein, the target packet specification configuration file is used to enable the vehicle control system of the target site to generate a target binary packet based on the input control data for the target information system and transmit it to the target information system using the bus protocol. In the method of the present application, the target protocol document is input in a visual manner, the initial packet specification configuration file is automatically generated, and the initial field configuration information corresponding to each address range is displayed, and then the target packet specification configuration file is generated, without the need for an operator to manually write the packet specification configuration file, reducing the situation of packet configuration errors and improving the efficiency of generating the packet specification configuration file.

[0039] The embodiment of the present application also provides a possible implementation manner of the method for visualizing packet specification configuration. Figure 2 This is the second flow diagram of the method for visualizing packet specification configuration provided by the embodiment of the present application. Figure 3 This is a schematic diagram of the visual register editing page provided by the embodiment of the present application. As Figure 2 shown, displaying the initial field configuration information corresponding to each address range on the visual register editing page includes: S201. Display the parameter configuration area corresponding to each address range on the visual register editing page, and display the initial field configuration information in the parameter configuration area corresponding to each address range.

[0040] In this embodiment, the packet message formats in the target protocol documents corresponding to different information systems are different. The following provides a packet message format corresponding to the broadcast system, as shown in Table 1: Table 1 Packet Message Format Corresponding to the Broadcast System

[0041] Among them, the data packet messages corresponding to the broadcast system are divided into multiple fields, and each field stores specific service information. Therefore, the generated data packet specification configuration file corresponding to the broadcast system needs to store information such as the size, offset, data type, and optional values of each field in the address space.

[0042] It should be noted that for different target sites, the division of fields, the positions of fields, and the contents of fields in the data packet messages corresponding to the broadcast system are different. Therefore, in the traditional method, operators need to write a customized data packet specification configuration file for the data packet message format of the target information system, which is prone to errors during the writing configuration process and affects the generation efficiency. In this embodiment, however, operators can intuitively configure the initial field configuration information in each address range of the registers of the bus protocol on the visual register editing page without writing complex code.

[0043] In response to the input operation on the target protocol document on the visual register editing page, an initial data packet specification configuration file is generated, and a parameter configuration area corresponding to each address range is displayed on the visual register editing page, and the initial field configuration information is displayed in the parameter configuration area corresponding to each address range. Specifically, the parameter description name and the parameter configuration input box are displayed in the parameter configuration area, and the initial field configuration information is displayed in the parameter configuration input box. As Figure 3 shown, register mapping 1 and register mapping 2 are displayed in the parameter configuration area, and the parameter description names of each register include: register address, bit offset, bit length, data type, field name, and field description.

[0044] Among them, the initial field configuration information of each address range includes: the field position, field size, field name, data type, and field description corresponding to each address range.

[0045] Continue to refer to Figure 3 . The initial field configuration information displayed in register mapping 1 includes: the field position is: bytes 6 - 7 of register 601, the field size is: 2, the field name is: preset, the data type is: Boolean, and the field description is: prerecorded broadcast.

[0046] Correspondingly, the content of the initial data packet specification configuration file generated for register mapping 1 is as follows: { "registerAddress": 601, "bitOffset": 6, "bitLength": 2, "dataType": "enum", "fieldName": "preset", "fieldDescription": "Pre-recorded broadcast", "enumValues": {"value": 1, "description": "0x01 Turn on pre-recorded broadcast"} {"value": 2, "description": "0x10 Turn off pre-recorded broadcast"} } The initial field configuration information displayed in register mapping 2 includes: field position: bytes 0 - 15 of register 602, field size: 16, field name: repeatCount, data type: Int16, and field description: number of repetitions.

[0047] Correspondingly, the content for register mapping 2 in the generated initial data packet specification configuration file is as follows: { "registerAddress": 602, "bitOffset": 0, "bitLength": 16, "dataType": "int16", "fieldName": "repeatCount", "fieldDescription": "Number of repetitions" } Among them, the three fields of registerAddress, bitOffset, and bitLength illustrate the position and size of the field in the data packet, the dataType field illustrates the data type of the field, and the data types include: boolean: boolean value, occupying one bit; enum: enumerated value, and the corresponding enumValues field lists all optional values; int16: 16-bit integer, representing a numerical value, used to represent the number of times, digital identifiers, etc.; bitVector: bit vector, 0 or 1 of each bit indicates selected or unselected, and the vectorValues field represents the definition of each bit, used for area selection function; string: string type data, such as tts text information. fieldName and fieldDescription explain the business meaning of the field.

[0048] ​Based on the above initial field configuration information corresponding to each address range, determine the status field information and control field information of each function in the target information system, including: S202. Update the initial field configuration information corresponding to each address range according to the configuration update operation input through the parameter configuration area corresponding to each address range, to obtain the target field configuration information of each address range.

[0049] S203. Determine the status field information and control field information of each function in the target information system according to the target field configuration information of each address range.

[0050] Specifically, if there is field configuration information that needs to be adjusted in the displayed initial field configuration information, the field configuration information that needs to be adjusted can be updated in the parameter configuration area to obtain the updated field configuration information, that is, the target field configuration information of each address range.

[0051] Determine the status field information and control field information of each function in the target information system according to the target field configuration information of each address range. For example, when the address range corresponding to the pre-recorded broadcast is configured and updated in register mapping 1, it is determined that the status field information in the broadcast system includes the field information of the pre-recorded broadcast function; when the address range corresponding to the number of repetitions is configured and updated in register mapping 2, it is determined that the control field information in the broadcast system includes the field information of the number of repeated broadcasts.

[0052] In the method provided by the embodiments of the present application, a parameter configuration area corresponding to each address range is displayed on the visual register editing page, and the initial field configuration information is displayed in the parameter configuration area corresponding to each address range; the initial field configuration information corresponding to each address range is updated according to the configuration update operation input through the parameter configuration area corresponding to each address range to obtain the target field configuration information of each address range; the status field information and control field information of each function in the target information system are determined according to the target field configuration information of each address range, so that an operator can conveniently configure and update each address range of the bus protocol register on the visual register editing page without writing complex code.

[0053] The embodiments of the present application also provide a possible implementation manner of a visual data packet specification configuration method. Figure 4 This is the third flow chart of the visual data packet specification configuration method provided by the embodiments of the present application. As Figure 4 shown, generate an initial data packet specification configuration file for the bus protocol according to the target protocol document for the target information system input through the visual register editing page, including: S301. Parse the target protocol document to obtain the text content of the target protocol document.

[0054] S302. Generate a target prompt for the bus protocol according to the preset prompt template, the preset specification configuration file format, and the text content of the target protocol document.

[0055] S303. Process the target prompt using a preset large language model to obtain an initial data packet specification configuration file for the bus protocol.

[0056] In this embodiment, in the visual register editing page, by uploading the target protocol document, for example, dragging a PDF / Word file to the specified area, the parsing process is triggered. The system background automatically calls the document parsing engine to convert the unstructured target protocol document into processable text data.

[0057] The preset prompt template and the preset specification configuration file format are pre-configured by the user according to different target information systems. Therefore, based on the type of the target information system, the corresponding preset prompt template and the preset specification configuration file format are automatically loaded, and a query instruction is generated in combination with the parsed text content, so that a target prompt for the bus protocol can be generated.

[0058] Send the generated target prompt to the preset large language model. The preset large language model generates and returns an initial data packet specification configuration file according to the target prompt, and then automatically displays the initial field configuration information of each address range on the visual editing page.

[0059] For example, the preset prompt template can be: This is the content of the provided target protocol document: {document}; This is the format description of the specification configuration file: {schema}. Read the chapter on the data packet format in the document and output a correct specification file according to the format description. The output content must be in the correct json format and does not need to contain other content. Specifically, replace the {document} placeholder with the preprocessed target protocol document, and replace the {schema} placeholder with the json format description of the specification configuration file to obtain the constructed target prompt. Then call the preset large language model interface to obtain the generated initial data packet specification configuration file.

[0060] In the method provided by the embodiment of the present application, the target protocol document is parsed to obtain the text content of the target protocol document; a target prompt for the bus protocol is generated according to the preset prompt template, the preset specification configuration file format, and the text content of the target protocol document; the target prompt is processed using a preset large language model to obtain an initial data packet specification configuration file for the bus protocol, which improves the generation efficiency of the data packet specification configuration file and reduces the manual workload.

[0061] The embodiments of the present application also provide a possible implementation of a method for visualizing packet specification configuration. Figure 5 As another schematic diagram of the visual register editing page provided by the embodiments of the present application, before generating the target packet specification configuration file for the bus protocol of the target information system, the method further includes: According to the target field configuration information of each address range, in the structure display area of the visual register editing page, the field names, field descriptions, field positions of each address range, and the field distribution views of each address range are displayed in real time, where the field distribution views of each address range are used to indicate the configuration distribution of each byte in each address range.

[0062] In this embodiment, the field names, field descriptions, field positions of each address range, and the field distribution views of each address range are displayed in real time in the structure display area of the visual register editing page, providing an intuitive visual feedback to the operator, visualizing the target field configuration information of each address range of the visual register editing page, and facilitating the operator to check, adjust, and modify the field configuration of each address range.

[0063] As Figure 5 shown, taking the parameter configuration of register mapping 1 and register mapping 2 as an example, in the structure display area, the field name of register mapping 1: preset, field description: pre-recorded broadcast, field position: 601, and the field distribution view of this field are displayed in real time. The field distribution view shows 16-bit bytes. Since the address range of this byte is 6-7, the 6-7 bytes are highlighted in the field distribution view, thus visually displaying the byte configuration distribution of this field.

[0064] In the structure display area, the field name of register mapping 2: repeatCount, field description: number of repetitions, field position: 602, and the field distribution view of this field are also displayed in real time. The field distribution view shows 16-bit bytes. Since the address range of this byte is 0-15, the 0-15 bytes are highlighted in the field distribution view, thus visually displaying the byte configuration distribution of this field.

[0065] In the method provided by the embodiment of the present application, before generating the packet specification configuration file of the target information system for the bus protocol, according to the target field configuration information of each address range, the field name, field description, field position of each address range, and the field distribution view of each address range are displayed in real time in the structure display area of the visual register editing page, wherein the field distribution view of each address range is used to indicate the configuration distribution of each byte in each address range, so that the operator can clearly see the actual structure presented by the target field configuration information of each address range input in the visual register editing page, which is convenient for the operator to check the accuracy and rationality of the parameter configuration.

[0066] The embodiment of the present application also provides a possible implementation manner of a visual packet specification configuration method. Figure 6 This is the fourth flowchart of the visual packet specification configuration method provided by the embodiment of the present application. As Figure 6 shown, before generating the target packet specification configuration file of the target information system for the bus protocol, the method further includes: S401. Traverse the target field configuration information of each address range to determine the mapping position of each target field in the register of the target information system.

[0067] S402. Determine whether there is an overlap in the mapping positions of the target fields in the register.

[0068] S403. If there is an overlap, output a first prompt message.

[0069] In this embodiment, the target field configuration information of each address range can be input in the parameter configuration area of the visual register editing page. The target field configuration information includes field position, field size, field name, data type, and field description, etc. The target field can be any field in the target information system. For example, in a broadcast system, the target field can be a field for prerecorded broadcasts, so as to determine the mapping position of the prerecorded broadcast field in the register. In the above example, it can be determined that the mapping position of the prerecorded broadcast field in the register is bytes 6-7 of register 601.

[0070] Determine whether there is an overlap in the mapped positions of the target fields in the register, that is, compare the mapped positions of the target fields in the register with the mapped positions of other fields in the register. If there is a field whose mapped position in the register is also the 6-7 bytes of register 601 or the 5-6 bytes of register 601, it is determined that there is an overlap in the mapped positions of the target fields in the register, and a first prompt message is output to inform the operator that there is a problem with the current configuration, which may affect the normal operation of the target information system, and remind the operator to adjust the configuration in time. The first prompt message can take various forms, such as popping up a dialog box, displaying a warning message on the page, etc., to ensure that the operator can notice and handle the problem in time.

[0071] In the method provided by the embodiment of the present application, by traversing the target field configuration information of each address range, the mapped positions of each target field in the target information system in the register are determined; it is determined whether there is an overlap in the mapped positions of each target field in the register; if there is an overlap, a first prompt message is output to check the mapped positions of the target fields in the register before generating the data packet specification configuration file, so as to avoid data conflicts and system failures caused by overlapping positions, and improve the stability and reliability of the target information system.

[0072] The embodiment of the present application also provides a possible implementation manner of a visual data packet specification configuration method. Figure 7 As shown in FIG. 5, which is a schematic flow chart of a visual data packet specification configuration method provided by an embodiment of the present application, before generating a target data packet specification configuration file of a target information system for a bus protocol, the method further includes: Figure 7 As shown in the figure, before generating a target data packet specification configuration file of a target information system for a bus protocol, the method further includes: S501. Traverse the target field configuration information of each address range to determine the configuration length of each target field in the target information system.

[0073] S502. Determine whether the configuration length of the preset fixed-length field in each target field meets the constraint condition of the preset length of the preset fixed-length field.

[0074] S503. If not, output a second prompt message.

[0075] In this embodiment, the target field configuration information of each address range can be input in the parameter configuration area of the visual register editing page. The target field configuration information includes field position, field size, field name, data type, and field description, etc. Similarly, the target field can be any field in the target information system. For example, in a broadcast system, the target field can be a field for pre-recorded broadcasts, and the configuration length of the pre-recorded broadcast field is determined.

[0076] In the target information system, a preset fixed-length field indicates that there is a preset fixed-length requirement. For example, some target information systems stipulate that the configured length of the prerecorded broadcast field must be 2.

[0077] Determine whether the configured length of the preset fixed-length field in each target field meets the constraint conditions of the preset length of the preset fixed-length field, that is, compare the configured length of each preset fixed-length field with its preset length to determine whether the configured length meets the preset length requirement. For example, if it is determined that the mapped position of the prerecorded broadcast field in the register is bytes 5-7 of register 601, the configured length is 3, while the preset length of the prerecorded broadcast field is 2, then it is determined that the constraint conditions of the preset length of the prerecorded broadcast field are not met. At this time, a second prompt message is output to inform the operator that the configured length of the prerecorded broadcast field does not meet the requirements, which may cause abnormalities in the target information system, and remind the operator to adjust the configuration in time. Similarly, the second prompt message can be presented in the form of a pop-up window, warning text displayed on the page, etc., to ensure that the operator can detect and handle the problem in time.

[0078] In the method provided by the embodiments of the present application, traverse the target field configuration information of each address interval to determine the configured length of each target field in the target information system; determine whether the configured length of the preset fixed-length field in each target field meets the constraint conditions of the preset length of the preset fixed-length field; if not, output a second prompt message, and before generating the data packet specification configuration file, check the configured length of the target field, especially for the preset fixed-length field, to ensure that its configured length meets the preset requirements, avoid target information system failures caused by length mismatches, and improve the stability and reliability of the target information system.

[0079] An embodiment of the present application also provides a possible implementation manner of a visual data packet specification configuration method. Figure 8 For the sixth flow diagram of the visual data packet specification configuration method provided by the embodiments of the present application, as Figure 8 shown, the method further includes: S601. Use the vehicle control system to obtain the input control data for the target information system.

[0080] S602. Use the vehicle control system to parse the data packet planning configuration file of the target information system to obtain the data packet mapping rule of the target information system.

[0081] S603. Use the data packet mapping rule to convert the control data into the target binary data packet of the target information system, and transmit it to the target information system using the bus protocol.

[0082] In this embodiment, the vehicle control system is responsible for managing and controlling the target information system, can receive various input signals, and generate corresponding control instructions according to the input signals. Among them, the control instructions are used to control the behavior of the target information system. For example, for the broadcast system, the control data may include setting the playback content, playback area, operator, and repeat playback times, etc.; for the passenger information system, the control data may include the published content, published area, etc.

[0083] The vehicle control system can receive the data packet planning configuration file of the target information system, and use the data packet constructor to parse the data packet planning configuration file to determine the mapping rules for mapping the control data into the target binary data packet. These rules define the specific positions in the data packet where each parameter in the control data should be placed, as well as how to encode and represent it.

[0084] Then, the vehicle control system is used to convert the obtained control data, fill it into the corresponding positions of the binary data packet according to the data packet mapping rules, and form the target binary data packet. Finally, the generated target binary data packet is sent to the target information system according to the specified bus protocol. The bus protocol stipulates the requirements for the transmission rate, electrical characteristics, data format, etc. of the data packet, ensuring that the data can be accurately and reliably transmitted to the target information system. After receiving the data packet, the target information system will perform corresponding operations according to the control data therein, thereby realizing the control of the target information system by the vehicle control system.

[0085] In the method provided in the embodiment of the present application, the vehicle control system is used to obtain the input control data for the target information system; the vehicle control system is used to parse the data packet planning configuration file of the target information system to obtain the data packet mapping rules of the target information system; the data packet mapping rules are used to convert the control data into the target binary data packet of the target information system, and the bus protocol is used to transmit it to the target information system, realizing the conversion of the control data, generating the target binary data packet, and transmitting the target binary data packet, and realizing the control of the target information system.

[0086] The following continues to explain the visualization data packet specification configuration device and electronic device provided in any of the above embodiments of the present application. The specific implementation process and the technical effects generated are the same as those in the corresponding method embodiments. For a brief description, for the parts not mentioned in this embodiment, reference can be made to the corresponding content in the method embodiments.

[0087] Figure 9 It is a schematic diagram of the functional modules of a visualization data packet specification configuration device provided in an embodiment of the present application. As Figure 9 shown, the visualization data packet specification configuration device 100 includes: A display module 110 for displaying a visual register editing page of a target information system in a target site for a bus protocol; the target information system is a broadcast system or a passenger information system; A generation module 120 for generating an initial data packet specification configuration file of the target information system for the bus protocol according to a target protocol document for the target information system input through the visual register editing page, and displaying initial field configuration information corresponding to each address range on the visual register editing page; A determination module 130 for determining status field information and control field information of each function in the target information system according to the initial field configuration information corresponding to each address range; The generation module 120 is further configured to generate a target data packet specification configuration file of the target information system for the bus protocol according to the status field information and control field information of each function; wherein, the target data packet specification configuration file is used to enable the vehicle control system of the target site to generate a target binary data packet based on the input control data for the target information system and transmit it to the target information system using the bus protocol.

[0088] Optionally, the visual data packet specification configuration device 100 further includes: an update module; The display module 110 is further configured to display a parameter configuration area corresponding to each address range on the visual register editing page, and display the initial field configuration information in the parameter configuration area corresponding to each address range; The update module is configured to update the initial field configuration information corresponding to each address range according to a configuration update operation input through the parameter configuration area corresponding to each address range to obtain target field configuration information corresponding to each address range; The determination module 130 is further configured to determine status field information and control field information of each function in the target information system according to the target field configuration information of each address range.

[0089] Optionally, the generation module 120 is further configured to parse the target protocol document to obtain the text content of the target protocol document; generate a target prompt for the bus protocol according to a preset prompt template, a preset specification configuration file format, and the text content of the target protocol document; and process the target prompt using a preset large language model to obtain an initial data packet specification configuration file for the bus protocol.

[0090] Optionally, the display module 110 is further configured to display the field name, field description, field position, and field distribution view of each address range in real time in the structure display area on the visual register editing page according to the target field configuration information of each address range, wherein the field distribution view of each address range is used to indicate the configuration distribution of each byte in each address range.

[0091] Optionally, the determination module 130 is further configured to traverse the target field configuration information of each address range, determine the mapping positions of each target field in the target information system in the register; determine whether there is an overlap in the mapping positions of each target field in the register; if there is an overlap, output a first prompt message.

[0092] Optionally, the determination module 130 is further configured to traverse the target field configuration information of each address range, determine the configuration lengths of each target field in the target information system; determine whether the configuration lengths of the preset fixed-length fields in each target field meet the constraint conditions of the preset lengths of the preset fixed-length fields; if not, output a second prompt message.

[0093] Optionally, if the target information system is a broadcast system, the status field information of each function includes: the field information of the pre-recorded broadcast function, the field information of the monitored broadcast function, the field information of the line broadcast, the field information of the microphone broadcast, the field information of the text-to-speech broadcast; and the control field information of each function includes: the field information of the repeated broadcast times, the field information of the operator, the field information of the broadcast information, the field information of the broadcast line area, the field information of the text information; or, if the target information system is a passenger information system, the status field information of each function includes: the field information of the screen-off and screen-on function, the field information of the emergency release function; and the control field information of each function includes: the field information of the release content, the field information of the release area.

[0094] Optionally, the device further includes: An acquisition module, further configured to acquire the input control data for the target information system by using the vehicle control system; An analysis module, configured to analyze the data packet planning configuration file of the target information system by using the vehicle control system to obtain the data packet mapping rule of the target information system; A conversion module, configured to convert the control data into a target binary data packet of the target information system by using the data packet mapping rule, and transmit it to the target information system by using the bus protocol.

[0095] The above device is used to execute the method provided in the foregoing embodiment, and its implementation principle and technical effects are similar, which will not be elaborated here.

[0096] The above-mentioned modules may be one or more integrated circuits configured to implement the above methods. For example: one or more Application Specific Integrated Circuits (ASICs), or, one or more microprocessors, or, one or more Field Programmable Gate Arrays (FPGAs), etc. Again, when a certain module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processors that can call program code. Again, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0097] Figure 10 FIG. is a schematic diagram of an electronic device provided by an embodiment of the present application. This electronic device can be used for visualizing data packet specification configuration. As Figure 10 shown, this electronic device includes: a processor 210, a storage medium 220, and a bus 230.

[0098] The storage medium 220 stores machine-readable instructions executable by the processor 210. When the electronic device runs, the processor 210 communicates with the storage medium 220 through the bus 230, and the processor 210 executes the machine-readable instructions to perform the steps of the above method embodiment. The specific implementation manners and technical effects are similar and will not be elaborated here.

[0099] Optionally, the present application also provides a storage medium 220, on which a computer program is stored. When the computer program is run by the processor, it executes the steps of the above method embodiment. The specific implementation manners and technical effects are similar and will not be elaborated here.

[0100] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the displayed or discussed couplings or direct couplings or communication connections to each other may be through some interfaces. The indirect couplings or communication connections of the devices or units may be in electrical, mechanical or other forms.

[0101] The unit described as a separation component may or may not be physically separated. The component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0102] In addition, each functional unit in various embodiments of the present invention can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a hardware plus software functional unit.

[0103] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit stored in a storage medium includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute some steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: USB flash drives, mobile hard disks, read-only memories (English: Read-Only Memory, abbreviated as: ROM), random access memories (English: Random Access Memory, abbreviated as: RAM), magnetic disks or optical disks and other various media that can store program codes.

[0104] The above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. A method for visualizing packet specification configuration, characterized in that, The method includes: Displaying a visual register editing page for a target information system in a target site for a bus protocol; the target information system being a broadcast system or a passenger information system; Generating an initial data packet specification configuration file for the target information system for the bus protocol according to a target protocol document for the target information system input through the visual register editing page, and displaying initial field configuration information corresponding to each address range on the visual register editing page; Determining status field information of each function and control field information of each function in the target information system according to the initial field configuration information corresponding to each address range; Generating a target data packet specification configuration file for the target information system for the bus protocol according to the status field information of each function and the control field information of each function; wherein, the target data packet specification configuration file is used to enable a vehicle control system of the target site to generate a target binary data packet based on input control data for the target information system and transmit it to the target information system using the bus protocol.

2. The method according to claim 1, wherein The displaying initial field configuration information corresponding to each address range on the visual register editing page includes: Displaying a parameter configuration area corresponding to each address range on the visual register editing page, and displaying initial field configuration information in the parameter configuration area corresponding to each address range; The determining status field information of each function and control field information of each function in the target information system according to the initial field configuration information corresponding to each address range includes: Updating the initial field configuration information corresponding to each address range according to a configuration update operation input through the parameter configuration area corresponding to each address range to obtain target field configuration information for each address range; Determining status field information of each function and control field information of each function in the target information system according to the target field configuration information for each address range.

3. The method according to claim 1, characterized in that The generating an initial data packet specification configuration file for the bus protocol according to a target protocol document for the target information system input through the visual register editing page includes: Parsing the target protocol document to obtain the text content of the target protocol document; Generating a target prompt for the bus protocol according to a preset prompt template, a preset specification configuration file format, and the text content of the target protocol document; Processing the target prompt using a preset large language model to obtain the initial data packet specification configuration file for the bus protocol.

4. The method according to claim 2, characterized in that, Before generating the target data packet specification configuration file for the target information system for the bus protocol, the method further includes: According to the target field configuration information of each address range, in the structure display area of the visual register editing page, the field names, field descriptions, field positions of each address range, and the field distribution views of each address range are displayed in real time, where the field distribution views of each address range are used to indicate the configuration distribution of each byte in each address range.

5. The method according to claim 1, characterized in that, Before generating the target packet specification configuration file of the target information system for the bus protocol, the method further includes: Traverse the target field configuration information of each address range to determine the mapping positions of each target field in the register in the target information system; Determine whether there is an overlap in the mapping positions of each target field in the register; If there is an overlap, output a first prompt message.

6. The method according to claim 1, wherein Before generating the target packet specification configuration file of the target information system for the bus protocol, the method further includes: Traverse the target field configuration information of each address range to determine the configuration lengths of each target field in the target information system; Determine whether the configuration lengths of the preset fixed-length fields in each target field meet the constraint conditions of the preset lengths of the preset fixed-length fields; If not, output a second prompt message.

7. The method according to claim 1, characterized in that If the target information system is the broadcast system, the status field information of each function includes: field information of the pre-recorded broadcast function, field information of the monitored broadcast function, field information of the line broadcast, field information of the microphone broadcast, field information of the text-to-speech broadcast, and the control field information of each function includes: field information of the repeated broadcast times, field information of the operator, field information of the broadcast information, field information of the broadcast line area, field information of the text information; or, If the target information system is the passenger information system, the status field information of each function includes: field information of the screen-off and screen-on function, field information of the emergency release function, and the control field information of each function includes: field information of the release content, field information of the release area.

8. The method according to claim 1, characterized in that, The method further includes: Use the vehicle control system to obtain the input control data for the target information system; Use the vehicle control system to parse the packet planning configuration file of the target information system to obtain the packet mapping rule of the target information system; Use the packet mapping rule to convert the control data into the target binary packet of the target information system and transmit it to the target information system using the bus protocol.

9. A visual data packet specification configuration device, characterized in that, The device includes: A display module for displaying a visual register editing page of the target information system for the bus protocol in the target site; the target information system is a broadcast system or a passenger information system; A generation module for generating an initial packet specification configuration file of the target information system for the bus protocol according to the target protocol document for the target information system input through the visual register editing page, and displaying the initial field configuration information corresponding to each address range on the visual register editing page; A determination module, configured to determine status field information and control field information of each function in the target information system according to the initial field configuration information corresponding to each address range; The generation module is further configured to generate a target data packet specification configuration file for the target information system for the bus protocol according to the status field information and the control field information of each function; wherein, the target data packet specification configuration file is used to enable the vehicle control system of the target station to generate a target binary data packet based on input control data for the target information system and transmit it to the target information system using the bus protocol.

10. An electronic device, characterized in that, Including: A processor, a storage medium, and a bus. The storage medium stores program instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus. The processor executes the program instructions to perform the steps of the visual data packet specification configuration method according to any one of claims 1 to 8.