Device description file updating method and apparatus, storage medium, and electronic device
Send a request to the device description file server through the wireless communication interface to obtain online and local file lists, determine and download the latest version of the device description file, solve the problem of inconvenient communication device updates, and provide a convenient update method.
Patent Information
- Application Number
- CN202210945548.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-08
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2042-08-08
AI Technical Summary
In the prior art, updating a device description file of a communication device requires connecting to a PC and using the manufacturer's matching software, which causes inconvenience to users.
Send a file update request to the device description file server through the wireless communication interface, obtain the online file list and the local file list, determine the device description file that needs to be updated based on the information of the two, and download the latest version of the file from the server for update.
It enables device description file updates on the PC without the need for additional software or cables, improving the convenience and efficiency of the update process.
Smart Images

Figure CN115113903B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of file update technology, and in particular to a device description file updating method and apparatus, a storage medium, and an electronic device. Background Art
[0002] Industrial sites have many different types of instruments and meters from different manufacturers. Instrument and meter manufacturers use device description languages to generate device description files for specified protocols. Communication devices need to load the device description files of the instruments to communicate with them.
[0003] When the device description file of an instrument is updated, the communication device needs to update the device description file or load the new device description file before it can communicate correctly with the instrument. Currently, the communication device updates the device description file by using the manufacturer's PC software, connecting the communication device and PC via a cable, and then downloading the latest device description file to update. This update method brings great inconvenience to the user. Summary of the Invention
[0004] In view of this, the present invention provides a device description file updating method and apparatus, a storage medium and an electronic device. In the process of updating the device description file, there is no need to install additional software or use a cable to connect to the PC. The device description file is updated through wireless communication, providing users with a very convenient update method.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0006] A device description file updating method, comprising:
[0007] Sending a file update request to a preset device description file server via a preset wireless communication interface;
[0008] Obtaining an online file list fed back by the device description file server based on the field device information in the file update request, wherein the online file list includes first file information of the latest version of the device description file of each industrial device corresponding to the field device information;
[0009] Acquire a local file list, wherein the local file list includes second file information of a local device description file of each of the industrial devices;
[0010] Determining industrial equipment that needs to be updated based on the first file information and the second file information of each of the industrial equipment;
[0011] The latest version of the device description file of each industrial device that needs to be updated is downloaded from the device description file server to update the device description file of each industrial device that needs to be updated.
[0012] In the above method, optionally, the process in which the device description file server feeds back an online file list based on the on-site device information in the file update request includes:
[0013] The device description file server parses the file update request to obtain on-site device information;
[0014] For each device identifier in the field device information, determining the latest version of the device description file corresponding to the device identifier in a preset database, and obtaining version description information of the device description file;
[0015] The version description information of each device description file is used as the first file information to generate an online file list, and the online file list is fed back.
[0016] Optionally, the method of determining the industrial equipment that needs to be updated based on the first file information and the second file information of each industrial equipment includes:
[0017] For each of the industrial devices, it is determined whether the first file information and the second file information of the industrial device match; when the first file information and the second file information of the industrial device do not match, the industrial device is determined to be an industrial device that needs to be updated.
[0018] Optionally, the method of downloading the latest version of the device description file of each industrial device that needs to be updated from the device description file server includes:
[0019] Determining, based on the first file information of each industrial device that needs to be updated, each device description indicator of each industrial device that needs to be updated;
[0020] For each device description indicator of each industrial equipment that needs to be updated, the data interface corresponding to the device description indicator of the device description file server is called to obtain the device data of the industrial equipment that needs to be updated in the device description indicator, and the latest version of the device description file of the industrial equipment that needs to be updated is composed based on each of the device data.
[0021] The above method may optionally further include:
[0022] When the first file information and the second file information of the industrial device match, the industrial device is determined to be an industrial device that does not need to be updated.
[0023] A device description file updating apparatus, comprising:
[0024] A sending unit, configured to send a file update request to a preset device description file server via a preset wireless communication interface;
[0025] a first acquiring unit, configured to acquire an online file list fed back by the device description file server based on the field device information in the file update request, wherein the online file list includes first file information of the latest version of the device description file of each industrial device corresponding to the field device information;
[0026] A second acquiring unit is configured to acquire a local file list, wherein the local file list includes second file information of a local device description file of each of the industrial devices;
[0027] A determining unit, configured to determine industrial equipment that needs to be updated based on the first file information and the second file information of each of the industrial equipment;
[0028] The updating unit is used to download the latest version of the device description file of each industrial device that needs to be updated from the device description file server, so as to update the device description file of each industrial device that needs to be updated.
[0029] The above device may optionally further include:
[0030] A parsing unit, configured for the device description file server to parse the file update request and obtain on-site device information;
[0031] a third acquiring unit, configured to determine, for each device identifier in the field device information, in a preset database, a latest version of a device description file corresponding to the device identifier, and acquire version description information of the device description file;
[0032] The generating unit is configured to use the version description information of each device description file as the first file information, generate an online file list, and feed back the online file list.
[0033] In the above device, optionally, the determining unit includes:
[0034] The judging subunit is configured to judge, for each of the industrial devices, whether the first file information and the second file information of the industrial device match; and when the first file information and the second file information of the industrial device do not match, determine the industrial device as an industrial device that needs to be updated.
[0035] In the above device, optionally, the updating unit includes:
[0036] A first determining subunit, configured to determine, based on the first file information of each industrial device that needs to be updated, each device description indicator of each industrial device that needs to be updated;
[0037] A calling sub-unit is used to call the data interface corresponding to the device description indicator of each industrial device that needs to be updated on the device description file server, obtain the device data of the industrial device that needs to be updated in the device description indicator, and compose the latest version of the device description file of the industrial device that needs to be updated based on each of the device data.
[0038] The above device may optionally further include:
[0039] The second determining subunit is configured to determine the industrial device as an industrial device that does not need to be updated when the first file information and the second file information of the industrial device match.
[0040] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the device description file updating method as described above.
[0041] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to execute the device description file updating method described above by one or more processors.
[0042] Compared with the prior art, the present invention has the following advantages:
[0043] The present invention provides a device description file update method and apparatus, a storage medium, and an electronic device. The method includes sending a file update request via a wireless communication interface; obtaining an online file list containing first file information of the latest version of the device description file for each industrial device corresponding to the field device information in the file update request; obtaining a local file list containing second file information of the device description file for each industrial device; determining the industrial device requiring update based on the first and second file information of each industrial device; and downloading the latest version of the device description file for each industrial device requiring update from a device description file server to update the device description file for each industrial device requiring update. The method utilizes wireless technology to update the device description file, eliminating the need for additional software or cables to connect to a PC, making the file update process more convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0045] Figure 1 A method flow chart of a device description file updating method provided by an embodiment of the present invention;
[0046] Figure 2 A flow chart of a method for a device description file server to feed back an online file based on field device information in a file update request provided by an embodiment of the present invention;
[0047] Figure 3 A flow chart of a method for determining whether industrial equipment is industrial equipment that needs to be updated provided in an embodiment of the present invention;
[0048] Figure 4 A flowchart of a method for downloading the latest version of a device description file for each industrial device that needs to be updated from a device description file server provided in an embodiment of the present invention;
[0049] Figure 5 A diagram illustrating a scenario of a method for updating a device description file according to an embodiment of the present invention;
[0050] Figure 6 A schematic structural diagram of a device description file updating apparatus provided by an embodiment of the present invention;
[0051] Figure 7 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0053] In this application, the terms "comprises," "comprising," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0054] Explanation of terms:
[0055] Device Description File: A device description file is a binary file that contains an electronic description of the device parameters and functions required for a host application to communicate with an instrument. This file is created by the instrument manufacturer and registered with the official foundation. For example, a device description file that supports the HART protocol is called a HART DD file.
[0056] Handheld operator / communicator: A handheld device that communicates with different instruments from different manufacturers by parsing device description files.
[0057] Industrial sites use many different types of instruments from different manufacturers. To facilitate parameter reading, configuration, and diagnosis of different types of instruments from different manufacturers using the same equipment, instruments generally support common protocols, such as the Hart protocol and the FF protocol.
[0058] Instrument manufacturers use device description languages (DDLs) to generate device description files for specific protocols. Handheld communicators and other devices must load these DDLs to communicate with the instrument. For example, a device description file for the HART protocol is referred to as a DD file. DD files must be updated after certification by the HART Foundation. New instruments also require new DD files. Therefore, handheld communicators often need to update or load new DD files to properly communicate with the instrument.
[0059] Currently, many handheld operators need to update DD files by using the manufacturer's PC software, and the handheld operator and PC need to be connected with a cable, which is extremely inconvenient for users.
[0060] The application of the present invention can solve the problem of inconvenience in updating device description files of communication devices.
[0061] The present invention can be used in a wide variety of general-purpose or specialized computing environments or configurations. For example, personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, and distributed computing environments including any of the above. The present invention can be implemented in industrial field communication devices, preferably handheld devices or communicators.
[0062] Reference Figure 1 , is a flow chart of a method for updating a device description file provided by an embodiment of the present invention, and is specifically described as follows:
[0063] S101: Send a file update request to a preset device description file server via a preset wireless communication interface.
[0064] The present invention can be applied to communication devices, specifically handheld devices or communicators. The communication device is pre-configured with an interface for wireless communication with a device description file server. The interface can be called a wireless communication interface.
[0065] The device description file server provides a device description file download service for communication devices. Preferably, the device description file server stores multiple device description files. The device description file server converts the device description files downloaded from the foundation into its own format suitable for network transmission, and stores each type of information in the device description file, such as parameters, methods, etc., in a database table file. Preferably, the device description file server provides a corresponding download interface for each type of data.
[0066] When the user's communication device has a file update requirement, the communication device is used to send a file update request to the device description file server. Preferably, the file update request includes but is not limited to user information, communication device information, and device information of the industrial site where the communication device is located. Preferably, the device information of the industrial site includes but is not limited to information of each industrial device used in the industrial site.
[0067] S102: Obtain an online file list fed back by the device description file server based on the field device information in the file update request, where the online file list includes first file information of the latest version of the device description file of each industrial device corresponding to the field device information.
[0068] The device description file server contains the latest version of the device description files for different types of industrial devices from each manufacturer.
[0069] After receiving the file update request, the device description file server generates an online file list according to the field device information in the file update request, and sends the generated online file list to the communication device.
[0070] Preferably, the first file information of the latest version of the device description file of each industrial device corresponding to the field device information is contained in the online file list, and preferably, the first file information of the latest version of the device description file of the industrial device not corresponding to the field device information can also be contained in the online file list. The first file information contains the description of the data type contained in the device description file, such as the version description of the type of menu information, the download interface description, and the like, and the version description of the type of alarm information, the download interface description, and the like.
[0071] It should be noted that the first file information also contains the manufacturer name and manufacturer number thereof, and the like, and the subsequent user can retrieve the device description file according to the manufacturer name and manufacturer number.
[0072] S103, obtaining a local file list, the local file list containing second file information of the device description file of each industrial device in the local.
[0073] It should be noted that the local file list contains the second file information of the device description file of each industrial device in the industrial field where the communication device is located, and preferably, the second file information contains the version information of each type of data in the device description file in the local and the like. It should be noted that there is a special case that the communication device does not contain the device description file of the industrial device, at this time, the content of the second file information of the industrial device is empty, at this time, the industrial device can be a newly added device in the industrial field.
[0074] S104, determining the industrial device to be updated based on the first file information and the second file information of each industrial device.
[0075] It should be noted that the industrial device here is each industrial device in the industrial field where the communication device is located.
[0076] S105, downloading the latest version of the device description file of each industrial device to be updated from the device description file server, so as to update the device description file of each industrial device to be updated.
[0077] It should be noted that the latest version of the device description file of the industrial device to be updated downloaded from the device description file server is a file recognizable by the communication device, and does not need to be format-converted and processed, and can be directly used after downloading. Preferably, after downloading the device description file, the device description file of the industrial device to be updated in the communication device can be updated according to the downloaded device description file.
[0078] The present invention provides a device description file update method, which includes sending a file update request to a device description file server via a wireless communication interface; obtaining an online file list fed back by the device description file server based on field device information in the file update request, wherein the online file list includes first file information of the latest version of the device description file of each industrial device corresponding to the field device information; obtaining a local file list, wherein the local file list includes second file information of the local device description file of each industrial device; determining the industrial device that needs to be updated based on the first file information and the second file information of each industrial device; and downloading the latest version of the device description file of each industrial device that needs to be updated from the device description file server to update the device description file of each industrial device that needs to be updated. The present invention implements device description file updates through wireless technology, without the need for additional software or the use of cables to connect to a PC, providing users with a more convenient method for updating device description files.
[0079] Reference Figure 2 , which is a flow chart of a method for a device description file server to feed back an online file based on the on-site device information in a file update request according to an embodiment of the present invention, and is specifically described as follows:
[0080] S201: The device description file server parses the file update request to obtain on-site device information.
[0081] The field device information includes the device identification of each industrial device in the industrial field where the communication device is located.
[0082] S202: For each device identification in the field device information, determine the latest version of the device description file corresponding to the device identification in a preset database, and obtain version description information of the device description file.
[0083] Preferably, the device identification may consist of the name of the manufacturer to which the industrial device belongs and the device number of the manufacturer.
[0084] Preferably, the industrial equipment may be an instrument or meter that realizes different functions.
[0085] The version description information of the device description file includes but is not limited to the device identifier and the latest version information of the device description file of the industrial device.
[0086] S203: Use the version description information of each device description file as the first file information, generate an online file list, and feed back the online file list.
[0087] When determining the industrial equipment that needs to be updated based on the first file information and the second file information of each industrial equipment, it is possible to determine whether the industrial equipment is the industrial equipment that needs to be updated one by one, thereby determining the industrial equipment that needs to be updated. Figure 3 , which is a flow chart of a method for determining whether an industrial device is an industrial device that needs to be updated provided by an embodiment of the present invention, and is specifically described as follows:
[0088] S301. For each industrial device, determine whether the first file information and the second file information of the industrial device match. When the first file information and the second file information of the industrial device do not match, execute S302; when the first file information and the second file information of the industrial device match, execute S303.
[0089] The first file information and the second file information of the industrial equipment are compared to determine whether the first file information and the second file information of the industrial equipment match. Preferably, when the first file information and the second file information of the industrial equipment are consistent, the first file information and the second file information of the industrial equipment match; when the first file information and the second file information of the industrial equipment are inconsistent, the first file information and the second file information of the industrial equipment do not match.
[0090] S302: Determine the industrial equipment as industrial equipment that needs to be updated.
[0091] S303: Determine the industrial equipment as industrial equipment that does not need to be updated.
[0092] It should be noted that when the first file information and the second file information of the industrial equipment are consistent, it means that the local device description file of the industrial equipment is the latest version of the file, and no update is required at this time; when the first file information and the second file information of the industrial equipment are inconsistent, it means that the local device description file of the industrial equipment is not the latest version of the file, and an update is required at this time.
[0093] Reference Figure 4 , which is a flow chart of a method for downloading the latest version of the device description file of each industrial device that needs to be updated from the device description file server provided by an embodiment of the present invention, is specifically described as follows:
[0094] S401: Determine each device description indicator of each industrial device that needs to be updated based on first file information of each industrial device that needs to be updated.
[0095] It should be noted that the device description file of an industrial device contains multiple types of data, and each type of data corresponds to a device description indicator.
[0096] Exemplarily, each device description indicator includes but is not limited to menu information, parameter information, method information, and alarm information.
[0097] Preferably, the first file information includes data version information and download interface information of each device description indicator.
[0098] S402. For each device description indicator of each industrial device that needs to be updated, call the data interface corresponding to the device description indicator of the device description file server to obtain the device data of the industrial device that needs to be updated in the device description indicator, and compose the latest version of the device description file of the industrial device that needs to be updated based on the respective device data.
[0099] It should be noted that the data interface here is a download interface. Different device description indicators correspond to different download interfaces. Using different interfaces to download different data can avoid data confusion.
[0100] Preferably, the device data of each device description indicator included in the first file information may be downloaded, or the device data of some device description indicators may be downloaded, thereby reducing the amount of data downloaded and speeding up the updating of the device description file.
[0101] Reference Figure 5 , which is a scenario example diagram of the device description file updating method provided by an embodiment of the present invention, is specifically described as follows:
[0102] As shown in the figure, the scenario consists of two parts: the device description file server and the handheld operator / communicator.
[0103] The device description file server provides a device description file download service. This service converts device description files downloaded from the foundation into its own format suitable for network transmission, stores various types of information in the device description file, such as parameters and methods, in database tables, and provides download interfaces for various data types.
[0104] The handheld operator / communicator has a wireless communication interface. The handheld operator first obtains the online list from the device description file server and then loads the local list of device description files. The user selects a device description file that does not exist locally to download. The handheld operator / communicator downloads each type of data of the specified device description file respectively, converts the downloaded data and stores it in the local database.
[0105] It should be noted that the communication method between the device description file server and the handheld operator / communicator is wireless communication.
[0106] In order to make it easier for users to find whether a device description file for a specified instrument already exists, the present invention also provides a search function by the manufacturer name and manufacturer number of the device description file. Compared with the traditional method of locating by initials, this greatly improves the user experience.
[0107] It should be noted that the device description file server provided by the present invention provides functions such as description file conversion, storage, and download. The handheld operator / communicator has a wireless communication interface, which allows users to select certain devices for differential download and update by downloading the online device description file list and the local description file list.
[0108] The device description file server of the present invention converts the device description file into a format suitable for transmission over a wireless network, and stores various types of data in the device description file in the device description file in the device description file server. The device description file server provides various data download functions. The handheld operator / communicator of the present invention has a wireless communication interface. The user searches to see whether a specified device description file exists in the local database. If not, the user can click to download and update the specified device description file. The download process is also classified. This solves the inconvenience of the traditional method of updating the device description file by installing specific software on a PC and connecting the handheld operator via a data cable. At the same time, by converting various types of data in the device description file into its own format and downloading them via differential mode, it solves the instability problem that may exist in the wireless network, thereby improving reliability.
[0109] The device description file update solution provided by the present invention does not require additional software installation or connection to a PC via a data cable, providing great convenience for users to update device description files. Using the present invention, when an operator is communicating with instruments on site and does not have the corresponding device description file, they can download it immediately without having to return to the machine with the specified software installed to perform the operation. This allows updates to be made at any time, significantly saving time. Furthermore, the present invention converts and decomposes the device description file to suit network transmission, facilitating differential transmission at low network speeds and improving stability and reliability.
[0110] and Figure 1 Corresponding to the method shown in FIG, the present invention provides a device description file updating device, which is used to support Figure 1 In a specific implementation of the method shown, the device can be set in a communication device.
[0111] Reference Figure 6 , is a structural diagram of a device description file updating apparatus provided by the present invention, and is specifically described as follows:
[0112] The sending unit 601 is used to send a file update request to a preset device description file server via a preset wireless communication interface;
[0113] A first acquiring unit 602 is configured to acquire an online file list fed back by the device description file server based on the field device information in the file update request, wherein the online file list includes first file information of the latest version of the device description file of each industrial device corresponding to the field device information;
[0114] A second acquiring unit 603 is configured to acquire a local file list, wherein the local file list includes second file information of a local device description file of each of the industrial devices;
[0115] A determining unit 604 is configured to determine an industrial device that needs to be updated based on the first file information and the second file information of each industrial device;
[0116] The updating unit 605 is configured to download the latest version of the device description file of each industrial device that needs to be updated from the device description file server, so as to update the device description file of each industrial device that needs to be updated.
[0117] The present invention provides a device description file updating device, which sends a file update request to a device description file server via a wireless communication interface; obtains an online file list fed back by the device description file server based on field device information in the file update request, wherein the online file list includes first file information of the latest version of the device description file of each industrial device corresponding to the field device information; obtains a local file list, wherein the local file list includes second file information of the local device description file of each industrial device; determines the industrial device that needs to be updated based on the first file information and the second file information of each industrial device; and downloads the latest version of the device description file of each industrial device that needs to be updated from the device description file server to update the device description file of each industrial device that needs to be updated. The present invention implements device description file updates through wireless technology, without the need for additional software or the use of cables to connect to a PC, providing users with a more convenient way to update device description files.
[0118] In another embodiment provided by the present invention, the device further comprises:
[0119] A parsing unit, configured for the device description file server to parse the file update request and obtain on-site device information;
[0120] a third acquiring unit, configured to determine, for each device identifier in the field device information, in a preset database, a latest version of a device description file corresponding to the device identifier, and acquire version description information of the device description file;
[0121] The generating unit is configured to use the version description information of each device description file as the first file information, generate an online file list, and feed back the online file list.
[0122] In another embodiment provided by the present invention, the determining unit 604 of the apparatus includes:
[0123] The judging subunit is configured to judge, for each of the industrial devices, whether the first file information and the second file information of the industrial device match; and when the first file information and the second file information of the industrial device do not match, determine the industrial device as an industrial device that needs to be updated.
[0124] In another embodiment provided by the present invention, the updating unit 605 of the device includes:
[0125] A first determining subunit, configured to determine, based on the first file information of each industrial device that needs to be updated, each device description indicator of each industrial device that needs to be updated;
[0126] A calling sub-unit is used to call the data interface corresponding to the device description indicator of each industrial device that needs to be updated on the device description file server, obtain the device data of the industrial device that needs to be updated in the device description indicator, and compose the latest version of the device description file of the industrial device that needs to be updated based on each of the device data.
[0127] In another embodiment provided by the present invention, the device further comprises:
[0128] The second determining subunit is configured to determine the industrial device as an industrial device that does not need to be updated when the first file information and the second file information of the industrial device match.
[0129] An embodiment of the present invention further provides a storage medium, which includes stored instructions. When the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned device description file updating method.
[0130] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Figure 7 As shown, it specifically includes a memory 701 and one or more instructions 702, wherein the one or more instructions 702 are stored in the memory 701 and are configured to be executed by one or more processors 703 to execute the one or more instructions 702 to perform the above-mentioned device description file updating method.
[0131] The specific implementation processes and derivative methods of the above embodiments are all within the protection scope of the present invention.
[0132] Each embodiment in this specification is described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple. For relevant parts, refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without expending creative work.
[0133] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0134] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not limited to the embodiments shown herein but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A device description file updating method, characterized in that: Applicable to communication equipment, the method includes: Sending a file update request to a preset device description file server via a preset wireless communication interface; Obtaining an online file list fed back by the device description file server based on the field device information in the file update request, wherein the online file list includes first file information of the latest version of the device description file of each industrial device corresponding to the field device information; the first file information of the device description file includes description information of the data type included in the device description file; and the description information includes a version description; Obtaining a local file list, wherein the local file list includes second file information of a local device description file of each industrial device; the second file information includes local version information of each type of data in the device description file; Determining industrial equipment that needs to be updated based on the first file information and the second file information of each of the industrial equipment; The latest version of the device description file of each industrial device that needs to be updated is downloaded from the device description file server to update the device description file of each industrial device that needs to be updated.
2. The method according to claim 1, characterized in that The process of the device description file server feeding back an online file list based on the field device information in the file update request includes: The device description file server parses the file update request to obtain on-site device information; For each device identifier in the field device information, determining the latest version of the device description file corresponding to the device identifier in a preset database, and obtaining version description information of the device description file; The version description information of each device description file is used as the first file information to generate an online file list, and the online file list is fed back.
3. The method according to claim 1, characterized in that The determining of the industrial equipment that needs to be updated based on the first file information and the second file information of each of the industrial equipment includes: For each of the industrial devices, it is determined whether the first file information and the second file information of the industrial device match; when the first file information and the second file information of the industrial device do not match, the industrial device is determined to be an industrial device that needs to be updated.
4. The method according to claim 1, wherein The downloading of the latest version of the device description file of each industrial device that needs to be updated from the device description file server includes: Determining, based on the first file information of each industrial device that needs to be updated, each device description indicator of each industrial device that needs to be updated; For each device description indicator of each industrial equipment that needs to be updated, the data interface corresponding to the device description indicator of the device description file server is called to obtain the device data of the industrial equipment that needs to be updated in the device description indicator, and the latest version of the device description file of the industrial equipment that needs to be updated is composed based on each of the device data.
5. The method according to claim 3, characterized in that Also includes: When the first file information and the second file information of the industrial device match, the industrial device is determined to be an industrial device that does not need to be updated.
6. A device description file updating device, characterized in that: Applicable to communication equipment, the device comprises: A sending unit, configured to send a file update request to a preset device description file server via a preset wireless communication interface; a first acquiring unit, configured to acquire an online file list fed back by the device description file server based on the field device information in the file update request, wherein the online file list includes first file information of the latest version of the device description file of each industrial device corresponding to the field device information; the first file information of the device description file includes description information of a data type included in the device description file; and the description information includes a version description; A second acquiring unit is configured to acquire a local file list, wherein the local file list includes second file information of a local device description file of each industrial device; the second file information includes local version information of each type of data in the device description file; A determining unit, configured to determine industrial equipment that needs to be updated based on the first file information and the second file information of each of the industrial equipment; The updating unit is used to download the latest version of the device description file of each industrial device that needs to be updated from the device description file server, so as to update the device description file of each industrial device that needs to be updated.
7. The device according to claim 6, characterized in that Also includes: A parsing unit, configured for the device description file server to parse the file update request and obtain on-site device information; a third acquiring unit, configured to determine, for each device identifier in the field device information, in a preset database, a latest version of a device description file corresponding to the device identifier, and acquire version description information of the device description file; The generating unit is configured to use the version description information of each device description file as the first file information, generate an online file list, and feed back the online file list.
8. The device according to claim 6, characterized in that The determining unit includes: The judging subunit is configured to judge, for each of the industrial devices, whether the first file information and the second file information of the industrial device match; and when the first file information and the second file information of the industrial device do not match, determine the industrial device as an industrial device that needs to be updated.
9. A storage medium, characterized in that: The storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the device description file updating method according to any one of claims 1 to 5.
10. An electronic device, characterized in that: The device comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to execute the device description file updating method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and system for updating equipment application software
CN112486531A
Over-the-air(OTA) upgrading method, device and readable storage medium
CN113225729A
Field maintenance tool with improved device description communication and storage
CN1550944A