WO2020132870A1 - File update method, file update apparatus and terminal device - Google Patents

File update method, file update apparatus and terminal device Download PDF

Info

Publication number
WO2020132870A1
WO2020132870A1 PCT/CN2018/123509 CN2018123509W WO2020132870A1 WO 2020132870 A1 WO2020132870 A1 WO 2020132870A1 CN 2018123509 W CN2018123509 W CN 2018123509W WO 2020132870 A1 WO2020132870 A1 WO 2020132870A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
configuration file
target
configuration
management system
Prior art date
Application number
PCT/CN2018/123509
Other languages
French (fr)
Chinese (zh)
Inventor
罗浩然
曹志豪
Original Assignee
深圳辰锐软件开发有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳辰锐软件开发有限公司 filed Critical 深圳辰锐软件开发有限公司
Priority to PCT/CN2018/123509 priority Critical patent/WO2020132870A1/en
Priority to CN201880002613.5A priority patent/CN109792460A/en
Publication of WO2020132870A1 publication Critical patent/WO2020132870A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • the present application belongs to the field of information processing technology, and particularly relates to a file update method, a file update device, a terminal device, and a computer-readable storage medium.
  • Public transportation such as buses or subways
  • a mode of travel that many people rely on.
  • line reconstruction or road construction the line of public transportation will change, resulting in the need to update the line configuration information of public transportation.
  • the public transportation vehicle-mounted system when the line configuration information of public transportation needs to be updated, the public transportation vehicle-mounted system often needs to re-download the complete configuration file, and because the complete configuration file required by the public transportation vehicle-mounted system often has many contents and large files, the public transportation When the vehicle-mounted system obtains a complete configuration file, the consumed traffic, acquisition time, and configuration time are often longer, resulting in a lower update efficiency of the configuration file.
  • the present application provides a file update method, a file update device, a terminal device, and a computer-readable storage medium, which can improve the configuration file update efficiency.
  • the first aspect of this application provides a file update method, including:
  • a first configuration file is obtained, and the first configuration file includes line configuration information of public transportation;
  • the second configuration file is a configuration file obtained by the user after modifying the line configuration information of the public transportation in the first configuration file;
  • the target file is sent to the public transportation vehicle-mounted system associated with the management system.
  • the second aspect of the present application provides a file update device, including:
  • a first obtaining module configured to obtain a first configuration file when the management system is in the target mode, the first configuration file containing line configuration information of public transportation;
  • a second obtaining module configured to obtain a second configuration file, wherein the second configuration file is a configuration file obtained by the user after modifying the line configuration information of public transportation in the first configuration file;
  • a processing module configured to obtain a target file according to the first configuration file and the second configuration file, where the target file contains line configuration information of the second configuration file that is different from the first configuration file;
  • the sending module is used to send the target file to the public transportation vehicle-mounted system associated with the management system.
  • a third aspect of the present application provides a terminal device.
  • the terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the computer program as described above.
  • the first step of the file update method is described above.
  • a fourth aspect of the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the file update method according to the first aspect described above are implemented.
  • a fifth aspect of the present application provides a computer program product.
  • the computer program product includes a computer program.
  • the steps of the file update method according to the first aspect described above are implemented.
  • the solution of the present application can obtain the target file according to the first configuration file and the second configuration file by acquiring the first configuration file and the second configuration file when the management system is in the target mode To the user’s modification of the first configuration file, and store the modification of the configuration file into the target file; and sending the target file to the public transportation vehicle-mounted system associated with the management system can be After the configuration file is modified, only the modified part is sent to the public transportation vehicle-mounted system.
  • the solution of this application after the user modifies the configuration file, only the modified part is sent by the management system to the public transportation vehicle-mounted system, which can greatly reduce the size of the file to be transmitted, thereby improving the update efficiency of the configuration file, and has a strong Practicality and ease of use.
  • FIG. 1 is a schematic diagram of an implementation process of a file update method provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of another implementation process of a file update method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of another implementation process of a file update method provided by an embodiment of the present application.
  • FIG. 4 is a structural block diagram of a file update device provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a terminal device provided by an embodiment of the present application.
  • the file update method in the embodiment of the present application includes:
  • step 101 when the management system is in the target mode, a first configuration file is obtained, and the first configuration file includes line configuration information of public transportation;
  • the file update method may be applied to a terminal device having the management system.
  • the management system may be a software system capable of performing specific management operations on public transportation.
  • the management system can be installed in devices such as servers, desktop computers, tablets, and even smartphones, and its specific use form can be set according to actual application scenarios.
  • the target mode may be set by a user, for example, it may be a mode indicating that the management system is in a specified use state or has a specified function. Exemplarily, it may be determined that the management system is in a target mode when a user inputs a specified instruction through a physical key, a virtual key, a mouse, or the like.
  • the public transport may be a bus, subway, railway, etc., which has a relatively fixed line.
  • the line configuration information of the public transportation may include various types of information.
  • the line configuration information of the public transportation may include line number information, line number information, voice information, station information, station radius, and public transportation speed limit Various configuration information such as value, information prompt mode, etc.
  • the first configuration file there may be multiple storage methods of the line configuration information.
  • the first configuration file may include one or more files.
  • different files may include different line configuration information.
  • a plurality of files may be saved in a designated folder, and a plurality of the first configuration files may be hierarchically saved in a plurality of hierarchical structures in the designated folder.
  • the first configuration file may be obtained in various ways.
  • the storage location of the first configuration file in the terminal device where the management system is located may be determined, and the first configuration file may be obtained through the storage location.
  • wireless transmission or wired transmission may also be used (such as Universal Serial Bus (Universal Serial Bus, USB, etc.) to obtain the first configuration file.
  • Universal Serial Bus Universal Serial Bus, USB, etc.
  • the obtaining the first configuration file includes:
  • the The first configuration file is parsed to obtain line configuration information of public transportation in the first configuration file.
  • the first configuration file may be parsed through a preset protocol, a preset check code, a preset identifier, and the like.
  • step 102 a second configuration file is obtained, where the second configuration file is a configuration file obtained after a user modifies the line configuration information of public transportation in the first configuration file;
  • the line configuration information in the first configuration file may be displayed on the terminal device where the management system is located. So that the user can modify the line configuration information in the first configuration file, and the second configuration file can be obtained according to the modified route configuration information.
  • the second configuration file may include one or more files, and the file type and file structure of the second configuration file may be the same as or similar to the first configuration file.
  • different files may include different line configuration information. For example, there may be a file for storing voice information, and a file including site information.
  • the second configuration file may also be obtained through wireless transmission or wired transmission, etc.
  • the user may not be on the terminal device where the management system is located. Modify the line configuration information described above.
  • the obtaining the second configuration file includes:
  • the confirmation information may be generated when the user clicks a preset confirmation button on the terminal device where the management system is located by using a mouse, touching the touch screen, or the like.
  • a target file is obtained according to the first configuration file and the second configuration file, and the target file includes line configuration information of the second configuration file that is different from the first configuration file;
  • the target file may be obtained by comparing the first configuration file and the second configuration file.
  • the file type and file structure of the target file may be the same as or similar to the file type and file structure of the first configuration file and the second configuration file, and may be all the same or partly the same, all similar or partly similar .
  • step 104 the target file is sent to a public transportation vehicle-mounted system associated with the management system.
  • the public transportation vehicle-mounted system may be a system applied to public transportation equipment.
  • the public transportation vehicle-mounted system may instruct to perform specific control, prompting and other operations on the public transportation where it is located.
  • the public transportation vehicle-mounted system and the management system may be connected to the same server and may communicate through wireless , Wired communication and other methods for information transmission, or can correspond to the associated login account, for example, the login account of the management system can be an administrator account, the account of the public transportation vehicle-mounted system can be the ordinary corresponding to the administrator User account, etc.
  • the method for sending the target file and the method for associating the public transportation vehicle-mounted system with the management system are not limited herein.
  • the public transportation vehicle-mounted system After sending the target file to the public transportation vehicle-mounted system, since the public transportation vehicle-mounted system already contains the first configuration file, the public transportation vehicle-mounted system according to the existing first configuration file and received Of the target file, the second configuration file can be obtained locally and configured according to the second configuration file. Therefore, each time the line configuration changes, the public transportation vehicle-mounted system can obtain the complete modified configuration file in combination with the original configuration file by acquiring the target file with a smaller size, without having to update The configuration file takes a long time and flow, which improves the operation efficiency of updating the configuration file.
  • the method further includes:
  • the log file may be a log file or a collection of files that record operation events of the management system.
  • the log file By generating the log file based on the first configuration file, the second configuration file, and the target file, changes in the configuration file can be recorded, so that the log file can be used to determine the location of the management system The case of the adopted configuration file.
  • the format of various files can be defined by the user themselves, or they can be universal
  • the file format and extension are not limited here.
  • the target file can be obtained according to the first configuration file and the second configuration file, In this way, the user’s modification of the first configuration file is obtained, and the modification of the configuration file is stored in the target file; and the target file is sent to the public transportation vehicle-mounted system associated with the management system. After the user modifies the configuration file, only the modified part is sent to the public transportation vehicle-mounted system.
  • the file update method in the embodiment of the present application includes:
  • step 201 after detecting the confirmation message that the mode of the management system is switched from the first mode to the second mode, the management system is restarted, and the restarted management system is in the second mode;
  • the first mode and the second mode may be set by a user, for example, may be a mode indicating that the management system is in a specified use state or has certain specified functions, respectively.
  • the confirmation information may be information obtained after detecting that the user clicks a preset confirmation button through a mouse, touch control, or the like.
  • the first mode of the management system may be preset as the standard mode, and the second mode is the difference mode.
  • the management system can obtain a default standard configuration file to configure the management system.
  • the line of the public transportation can be the default original line, or it can be configured from the previous time. No need to change the line; in the difference mode, the configuration file required to configure the management system needs to be modified according to the change of the line. Therefore, when the confirmation message that the mode of the management system is switched from the standard mode to the difference mode is detected, the management system may be restarted, and the restarted management system is in the difference mode.
  • the user can switch the mode of the management system through preset buttons, preset pull-down options, etc., and the management system can display a confirmation window after detecting the user's selection operation , So that the user can confirm whether to switch the mode of the management system from the first mode to the second mode through a key or an option in the confirmation window.
  • step 202 when the management system is restarted, it is determined that the management system is in the target mode
  • the management system after restarting, the management system is in the second mode.
  • step 203 when the management system is in the target mode, a first configuration file is obtained, and the first configuration file includes line configuration information of public transportation;
  • a second configuration file is obtained, where the second configuration file is a configuration file obtained by a user after modifying the line configuration information of public transportation in the first configuration file;
  • a target file is obtained according to the first configuration file and the second configuration file, and the target file includes line configuration information of the second configuration file that is different from the first configuration file;
  • step 206 the target file is sent to a public transportation vehicle-mounted system associated with the management system.
  • the above steps 203, 204, 205, and 206 are respectively the same as or similar to the above steps 101, 102, 103, and 104.
  • the above steps 101, 102, 103, and 104 Relevant descriptions will not be repeated here.
  • the method further includes:
  • the second configuration file is saved, and when it is detected that the management system is in the first mode, the management system is configured according to the second configuration file.
  • the management system since the modification of the line may last for a long time, the management system may need to use the second configuration file to configure the management system for a long time. Therefore, The second configuration file is saved in the second configuration file, and when it is detected that the management system is in the first mode, configuring the management system according to the second configuration file can enable the user to continue for a period of time Using the second configuration file for configuration avoids the operation of repeatedly modifying the configuration file and improves the user experience.
  • the mode of the management system can be reset by restarting, etc., so that the The management system is in the target mode to perform subsequent operations.
  • the way to determine the mode of the management system is relatively simple, and due to restarting and other operations, the management system is not in the target mode when it is in the target mode. Interference with data and other information of the management system described in
  • the line configuration information includes at least one of line information, voice information, site information, road section information, and service setting information.
  • the line information may include line and line frame information related to the line, such as line number, name, line default speed limit, station radius and other information.
  • the voice information may include information of one or more voice templates and the like.
  • the station information may include station information of each line and station-related information, such as station names, station codes, station locations (such as latitude and longitude, etc.) contained in the uplink and downlink lines, latitude and longitude, direction angle, and radius information of the inflection point And at least one of the information such as voice information corresponding to the site.
  • the road section information may include at least one of speed limit points, parking points, main stations, auxiliary stations, gas stations, maintenance stations, safety black spots, section speed limit values, line areas, line trajectories, etc. in each line section .
  • the service setting information may include at least one of service voice setting information, prompt voice setting information, advertisement setting information, and transmission setting information with other devices or users in public transportation.
  • the file update method in the embodiment of the present application includes:
  • step 301 when the management system is in the target mode, a first configuration file is obtained, and the first configuration file includes line configuration information of public transportation;
  • a second configuration file is obtained, where the second configuration file is a configuration file obtained by the user after modifying the line configuration information of public transportation in the first configuration file;
  • the above steps 301 and 302 are respectively the same as or similar to the above steps 101 and 102.
  • step 303 compare the line information, voice information, site information, and/or service setting information in the first configuration file with the second configuration file to obtain a comparison result
  • the comparison method may be determined according to the file structure and file type of the first configuration file and the second configuration file, for example, line information, voice information, site information, and/or service settings may be compared separately Information and get comparison results separately.
  • step 304 at least one target file is generated according to the comparison result, and the at least one target file is stored in a target folder, the target file includes the second configuration file relative to the first configuration File different line configuration information;
  • the storage manner in which the target file is stored in the target folder may be set by the user according to an actual application scenario.
  • at least one target file may be packaged to obtain the target folder according to a preset rule.
  • the storing the at least one target file to a target folder includes:
  • each of the target files is stored in a corresponding hierarchical structure in the target folder.
  • the target folder may include one or more hierarchical structures, and the hierarchical structure may be a tree structure.
  • the line configuration information includes line information, voice information, station information, road segment information, and service setting information. Therefore, the first-level hierarchy in the target folder may include lines corresponding to line information and voice, respectively.
  • the first-level folder or first-level file of information, site information, link information and service setting information, and each first-level folder also includes a second-level folder or second-level file, and so on . Therefore, according to the storage level of each of the target files, each of the target files can be stored in the corresponding hierarchical structure in the target folder.
  • the target folder and each hierarchical structure under the target folder may have a corresponding header structure
  • the header structure may include the version of the corresponding file or folder At least one of information, verification information, file size, level information, the number of the next level, etc.
  • each of the target files can be matched to the hierarchy of the corresponding target folder, and in the corresponding hierarchy To store the target file.
  • the targets By storing each of the target files in the corresponding hierarchical structure in the target folder according to the storage level of each of the target files, the targets can be hierarchically organized according to preset storage rules
  • the file is stored so that it can be processed in the public transportation vehicle-mounted system.
  • step 305 the target folder is sent to the public transportation vehicle-mounted system associated with the management system.
  • the public transportation vehicle-mounted system there may be multiple public transportation vehicle-mounted systems, and may be associated with the management system in various ways, for example, the public transportation vehicle-mounted system and the management system may be connected to the same server, Information transmission can be carried out through wireless communication, wired communication, etc., or can correspond to the associated login account.
  • the login account of the management system can be an administrator account
  • the account of the public transportation vehicle-mounted system can be the administrator The corresponding ordinary user account and so on.
  • the method for sending the target file and the method for associating the public transportation vehicle-mounted system with the management system are not limited herein.
  • the target folder may be transmitted in the form of a compressed package, or may be transmitted in other forms (such as a folder defined by the user).
  • the method further includes:
  • the target folder is identified, and the identification indicates that the target folder contains a target file.
  • the identifier may be set in the name of the target folder, the structure of the header, and the like.
  • the target folder may be identified in the head structure of the target folder, or a folder with a preset name may be agreed with the public transportation vehicle-mounted system in advance as the target folder.
  • the public transportation vehicle-mounted system and the management system can quickly identify the target folder.
  • the embodiments of the present application store each of the target files into the corresponding hierarchical structure in the target folder according to the storage level of each of the target files, according to the preset storage rules Storing the target file hierarchically can provide convenience for subsequent file processing.
  • storing the at least one target file in a target folder and transmitting it in the form of a target folder can simplify the transmission form and improve the efficiency of information transmission.
  • Embodiment 4 of the present application provides a file updating apparatus.
  • the above file updating apparatus may be integrated into a terminal device.
  • the file updating apparatus 400 in the embodiment of the present application includes:
  • the first obtaining module 401 is configured to obtain a first configuration file when the management system is in the target mode, the first configuration file containing line configuration information of public transportation;
  • the second obtaining module 402 is configured to obtain a second configuration file, where the second configuration file is a configuration file obtained by the user after modifying the line configuration information of public transportation in the first configuration file;
  • the processing module 403 is configured to obtain a target file according to the first configuration file and the second configuration file, where the target file includes line configuration information of the second configuration file that is different from the first configuration file;
  • the sending module 404 is used to send the target file to a public transportation vehicle-mounted system associated with the management system.
  • the file update device 400 further includes:
  • a restart module configured to detect the confirmation message that the mode of the management system is switched from the first mode to the second mode, restart the management system, and the restarted management system is in the second mode;
  • the determining module is configured to determine that the management system is in a target mode after the management system is restarted.
  • the file update device 400 further includes:
  • the saving module is used to save the second configuration file and configure the management system according to the second configuration file when it is detected that the management system is in the first mode.
  • the first obtaining module 401 specifically includes:
  • the opening unit is used for a parsing unit to obtain and parse the first configuration file to obtain line configuration information of public transportation in the first configuration file.
  • the line configuration information includes at least one of line information, voice information, site information, road section information, and service setting information;
  • processing module 403 specifically includes:
  • a comparison unit configured to compare the line information, voice information, site information, and/or service setting information in the first configuration file with the second configuration file to obtain a comparison result
  • a storage unit configured to generate at least one target file according to the comparison result, and store the at least one target file to a target folder;
  • the sending module 404 is specifically used to:
  • the storage unit specifically includes:
  • a determination subunit used to determine the storage level of each of the target files
  • the storage subunit is configured to store each of the target files in the corresponding hierarchical structure in the target folder according to the storage level of each of the target files.
  • the file update device 400 further includes:
  • the identification module is used to identify the target folder, and the identification indicates that the target folder contains a target file.
  • the second obtaining module specifically includes:
  • a modification unit configured to modify the line configuration information according to a user's modification operation on the line configuration information
  • the generating unit is configured to generate a second configuration file according to the modification after receiving the confirmation message that the modification is completed.
  • the file update device 400 further includes:
  • the generating module is configured to generate a log file according to the first configuration file, the second configuration file, and the target file.
  • the terminal device in the embodiment of the present application includes: a memory 501, one or more processors 502 (only one is shown in FIG. 5) and stored in the memory 501 A computer program that can be run on a processor.
  • the memory 501 is used to store software programs and modules.
  • the processor 502 executes various functional applications and data processing by running the software programs and units stored in the memory 501 to obtain resources corresponding to the preset events. Specifically, the processor 502 implements the following steps by running the above computer program stored in the memory 501:
  • a first configuration file is obtained, and the first configuration file includes line configuration information of public transportation;
  • the second configuration file is a configuration file obtained by the user after modifying the line configuration information of the public transportation in the first configuration file;
  • the target file is sent to the public transportation vehicle-mounted system associated with the management system.
  • determining whether the management system is in the target mode includes:
  • the processor 502 stores The above computer program of the memory 501 also implements the following steps:
  • the second configuration file is saved, and when it is detected that the management system is in the first mode, the management system is configured according to the second configuration file.
  • the acquiring the first configuration file includes:
  • the line configuration information includes at least one of line information, voice information, site information, road section information, and service setting information;
  • the obtaining the target file according to the first configuration file and the second configuration file includes:
  • sending the target file to the public transportation vehicle-mounted system associated with the management system includes:
  • the storing the at least one target file to the target folder includes:
  • each of the target files is stored in a corresponding hierarchical structure in the target folder.
  • the processor 502 runs the above-mentioned computer stored in the memory 501 by running The program also implements the following steps:
  • the target folder is identified, and the identification indicates that the target folder contains a target file.
  • the acquiring the second configuration file includes:
  • the processor 502 further implements the following steps when running the above-mentioned computer program stored in the memory 501:
  • the above terminal device may further include: one or more input devices 503 (only one is shown in FIG. 5) and one or more output devices 504 (only one is shown in FIG. 4 ).
  • the memory 501, the processor 502, the input device 503, and the output device 504 are connected through a bus 505.
  • the so-called processor 502 may be a central processing unit (Central Processing Unit (CPU), the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (Application Specific Integrated Circuit (ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the input device 503 may include a keyboard, a touchpad, a fingerprint sensor (for collecting user's fingerprint information and fingerprint direction information), a microphone, etc.
  • the output device 504 may include a display, a speaker, and the like.
  • the memory 501 may include a read-only memory and a random access memory, and provide instructions and data to the processor 502. Part or all of the memory 501 may also include non-volatile random access memory. For example, the memory 501 may also store device type information.
  • each functional unit and module is used as an example for illustration.
  • the above-mentioned functions may be allocated by different functional units
  • Module completion means that the internal structure of the above device is divided into different functional units or modules to complete all or part of the functions described above.
  • the functional units and modules in the embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may use hardware It can also be implemented in the form of software functional units.
  • the specific names of each functional unit and module are only for the purpose of distinguishing each other, and are not used to limit the protection scope of the present application.
  • the disclosed device and method may be implemented in other ways.
  • the system embodiments described above are only schematic.
  • the above-mentioned division of modules or units is only a division of logical functions.
  • there may be other divisions for example, multiple units or components may be combined Or it can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • 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 may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program.
  • the above computer program can be stored in a computer readable storage medium, and the computer program When executed by the processor, the steps of the foregoing method embodiments may be implemented.
  • the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code, executable file, or some intermediate form.
  • the above-mentioned computer-readable storage medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer-readable memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals and software distribution media, etc.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electrical carrier signals telecommunications signals and software distribution media, etc.
  • the content contained in the above computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in jurisdictions.
  • computer-readable storage The medium does not include electrical carrier signals and telecommunications signals.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed are a file update method, a file update apparatus, a terminal device and a computer-readable storage medium. The file update method comprises: when a management system is in a target module, acquiring a first configuration file, wherein the first configuration file includes line configuration information of public traffic; acquiring a second configuration file, wherein the second configuration file is a configuration file obtained after a user modifies the line configuration information of public traffic in the first configuration file; obtaining a target file according to the first configuration file and the second configuration file, wherein the target file includes line configuration information, different from that of the first configuration file, of the second configuration file; and sending the target file to a public traffic vehicle-mounted system associated with the management system. According to the solution of the present application, the update efficiency of a configuration file can be improved, thereby achieving relatively strong practicability and usability.

Description

一种文件更新方法、文件更新装置及终端设备File updating method, file updating device and terminal equipment 技术领域Technical field
本申请属于信息处理技术领域,尤其涉及一种文件更新方法、文件更新装置、终端设备及计算机可读存储介质。The present application belongs to the field of information processing technology, and particularly relates to a file update method, a file update device, a terminal device, and a computer-readable storage medium.
背景技术Background technique
公共交通(如公交车或者地铁等)是许多人所依赖的出行方式。而当出现线路改造或者路面施工等情况时,公共交通的线路会出现变动,导致公共交通的线路配置信息需要更新。Public transportation (such as buses or subways) is a mode of travel that many people rely on. When there is a situation such as line reconstruction or road construction, the line of public transportation will change, resulting in the need to update the line configuration information of public transportation.
技术问题technical problem
通常,公共交通的线路配置信息需要更新时,公共交通车载系统往往都需要重新下载完整的配置文件,而由于公共交通车载系统所需要的完整配置文件往往内容很多,文件较大,因此,公共交通车载系统获取完整的配置文件时,消耗的流量、获取时间以及配置时间往往较长,导致配置文件的更新效率较低。Generally, when the line configuration information of public transportation needs to be updated, the public transportation vehicle-mounted system often needs to re-download the complete configuration file, and because the complete configuration file required by the public transportation vehicle-mounted system often has many contents and large files, the public transportation When the vehicle-mounted system obtains a complete configuration file, the consumed traffic, acquisition time, and configuration time are often longer, resulting in a lower update efficiency of the configuration file.
技术解决方案Technical solution
有鉴于此,本申请提供一种文件更新方法、文件更新装置、终端设备及计算机可读存储介质,可提升配置文件的更新效率。In view of this, the present application provides a file update method, a file update device, a terminal device, and a computer-readable storage medium, which can improve the configuration file update efficiency.
本申请的第一方面提供了一种文件更新方法,包括:The first aspect of this application provides a file update method, including:
当管理系统处于目标模式时,获取第一配置文件,所述第一配置文件包含公共交通的线路配置信息;When the management system is in the target mode, a first configuration file is obtained, and the first configuration file includes line configuration information of public transportation;
获取第二配置文件,其中,所述第二配置文件为用户对所述第一配置文件中公共交通的线路配置信息进行修改后得到的配置文件;Obtaining a second configuration file, where the second configuration file is a configuration file obtained by the user after modifying the line configuration information of the public transportation in the first configuration file;
根据所述第一配置文件和所述第二配置文件获得目标文件,所述目标文件中包含所述第二配置文件相对于所述第一配置文件不同的线路配置信息;Obtaining a target file according to the first configuration file and the second configuration file, the target file containing line configuration information of the second configuration file different from the first configuration file;
将所述目标文件发送至与所述管理系统相关联的公共交通车载系统。The target file is sent to the public transportation vehicle-mounted system associated with the management system.
本申请的第二方面提供了一种文件更新装置,包括:The second aspect of the present application provides a file update device, including:
第一获取模块,用于当管理系统处于目标模式时,获取第一配置文件,所述第一配置文件包含公共交通的线路配置信息;A first obtaining module, configured to obtain a first configuration file when the management system is in the target mode, the first configuration file containing line configuration information of public transportation;
第二获取模块,用于获取第二配置文件,其中,所述第二配置文件为用户对所述第一配置文件中公共交通的线路配置信息进行修改后得到的配置文件;A second obtaining module, configured to obtain a second configuration file, wherein the second configuration file is a configuration file obtained by the user after modifying the line configuration information of public transportation in the first configuration file;
处理模块,用于根据所述第一配置文件和所述第二配置文件获得目标文件,所述目标文件中包含所述第二配置文件相对于所述第一配置文件不同的线路配置信息;A processing module, configured to obtain a target file according to the first configuration file and the second configuration file, where the target file contains line configuration information of the second configuration file that is different from the first configuration file;
发送模块,用于将所述目标文件发送至与所述管理系统相关联的公共交通车载系统。The sending module is used to send the target file to the public transportation vehicle-mounted system associated with the management system.
本申请的第三方面提供了一种终端设备,上述终端设备包括存储器、处理器以及存储在上述存储器中并可在上述处理器上运行的计算机程序,上述处理器执行上述计算机程序时实现如上述第一方面的文件更新方法的步骤。A third aspect of the present application provides a terminal device. The terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor executes the computer program as described above. The first step of the file update method.
本申请的第四方面提供了一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序被处理器执行时实现如上述第一方面的文件更新方法的步骤。A fourth aspect of the present application provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the file update method according to the first aspect described above are implemented.
本申请的第五方面提供了一种计算机程序产品,上述计算机程序产品包括计算机程序,上述计算机程序被一个或多个处理器执行时实现如上述第一方面的文件更新方法的步骤。A fifth aspect of the present application provides a computer program product. The computer program product includes a computer program. When the computer program is executed by one or more processors, the steps of the file update method according to the first aspect described above are implemented.
有益效果Beneficial effect
由上可见,本申请方案通过在管理系统处于目标模式时,获取第一配置文件,并获取第二配置文件,可以根据所述第一配置文件和所述第二配置文件获得目标文件,从而获取到用户对所述第一配置文件的修改情况,并且将配置文件的修改情况存储至目标文件中;而将所述目标文件发送至与所述管理系统相关联的公共交通车载系统,可以在用户对配置文件进行修改后,仅将修改的部分发送给公共交通车载系统。本申请方案在用户对配置文件进行修改后,仅将修改的部分由管理系统发送给公共交通车载系统,可以大大减小需要传输的文件的大小,从而提升配置文件的更新效率,具有较强的实用性和易用性。As can be seen from the above, the solution of the present application can obtain the target file according to the first configuration file and the second configuration file by acquiring the first configuration file and the second configuration file when the management system is in the target mode To the user’s modification of the first configuration file, and store the modification of the configuration file into the target file; and sending the target file to the public transportation vehicle-mounted system associated with the management system can be After the configuration file is modified, only the modified part is sent to the public transportation vehicle-mounted system. In the solution of this application, after the user modifies the configuration file, only the modified part is sent by the management system to the public transportation vehicle-mounted system, which can greatly reduce the size of the file to be transmitted, thereby improving the update efficiency of the configuration file, and has a strong Practicality and ease of use.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings used in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only for the application For some embodiments, those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.
图1是本申请实施例提供的文件更新方法的一种实现流程示意图;1 is a schematic diagram of an implementation process of a file update method provided by an embodiment of the present application;
图2是本申请实施例提供的文件更新方法的另一种实现流程示意图;2 is a schematic diagram of another implementation process of a file update method provided by an embodiment of the present application;
图3是本申请实施例提供的文件更新方法的又一种实现流程示意图;3 is a schematic diagram of another implementation process of a file update method provided by an embodiment of the present application;
图4是本申请实施例提供的文件更新装置的结构框图;4 is a structural block diagram of a file update device provided by an embodiment of the present application;
图5是本申请实施例提供的终端设备的示意图。FIG. 5 is a schematic diagram of a terminal device provided by an embodiment of the present application.
本发明的实施方式Embodiments of the invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structures and technologies are proposed to thoroughly understand the embodiments of the present application. However, those skilled in the art should understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details hindering the description of the present application.
为了说明本申请上述的技术方案,下面通过具体实施例来进行说明。In order to explain the above technical solutions of the present application, the following will be described with specific embodiments.
实施例1Example 1
下面对本申请实施例提供的一种文件更新方法进行描述,请参阅图1,本申请实施例中的文件更新方法包括:The following describes a file update method provided by an embodiment of the present application. Referring to FIG. 1, the file update method in the embodiment of the present application includes:
在步骤101中,当管理系统处于目标模式时,获取第一配置文件,所述第一配置文件包含公共交通的线路配置信息;In step 101, when the management system is in the target mode, a first configuration file is obtained, and the first configuration file includes line configuration information of public transportation;
本申请实施例中,所述文件更新方法可以应用于具有所述管理系统的终端设备。所述管理系统可以是能够对公共交通执行特定的管理操作的软件系统。所述管理系统可以安装于服务器、台式电脑、平板电脑甚至智能手机等设备中,其具体的使用形式可以根据实际应用场景进行设置。In the embodiment of the present application, the file update method may be applied to a terminal device having the management system. The management system may be a software system capable of performing specific management operations on public transportation. The management system can be installed in devices such as servers, desktop computers, tablets, and even smartphones, and its specific use form can be set according to actual application scenarios.
所述目标模式可以是用户设置的,如可以是指示所述管理系统处于指定的使用状态或者具有指定的功能的模式。示例性的,可以是当接收到用户通过实体按键、虚拟按键或者鼠标等方式输入指定的指令时,确定所述管理系统处于目标模式。The target mode may be set by a user, for example, it may be a mode indicating that the management system is in a specified use state or has a specified function. Exemplarily, it may be determined that the management system is in a target mode when a user inputs a specified instruction through a physical key, a virtual key, a mouse, or the like.
本申请实施例中,所述公共交通可以是公交车、地铁、铁路等等具有较为固定的线路的交通方式。所述公共交通的线路配置信息可以包括多种信息,例如,所述公共交通的线路配置信息可以包括线路个数信息、线路编号信息、语音信息、站点信息、以及报站半径、公共交通限速值、信息提示方式等等多种配置信息。所述第一配置文件中,所述线路配置信息的存储方式也可以有多种。所述第一配置文件可以包括一个或多个文件,所述第一配置文件包括多个文件时,不同的文件中可以包括不同的线路配置信息,例如,可以有保存语音信息的文件,还可以有包括站点信息的文件等。此外,多个文件可以保存至指定文件夹中,并且,所述指定文件夹中可以通过多个层级结构分层次地保存多个所述第一配置文件。In the embodiment of the present application, the public transport may be a bus, subway, railway, etc., which has a relatively fixed line. The line configuration information of the public transportation may include various types of information. For example, the line configuration information of the public transportation may include line number information, line number information, voice information, station information, station radius, and public transportation speed limit Various configuration information such as value, information prompt mode, etc. In the first configuration file, there may be multiple storage methods of the line configuration information. The first configuration file may include one or more files. When the first configuration file includes multiple files, different files may include different line configuration information. For example, there may be a file for storing voice information. There are files including site information, etc. In addition, a plurality of files may be saved in a designated folder, and a plurality of the first configuration files may be hierarchically saved in a plurality of hierarchical structures in the designated folder.
示例性的,本申请实施例中,可以通过多种方式获取所述第一配置文件。例如,可以确定所述第一配置文件在所述管理系统所在的终端设备中的存储位置,并通过所述存储位置获取到所述第一配置文件,此外,还可以通过无线传输或者有线传输(如通用串行总线(Universal Serial Bus,USB)接口等)获取所述第一配置文件。Exemplarily, in the embodiment of the present application, the first configuration file may be obtained in various ways. For example, the storage location of the first configuration file in the terminal device where the management system is located may be determined, and the first configuration file may be obtained through the storage location. In addition, wireless transmission or wired transmission may also be used ( Such as Universal Serial Bus (Universal Serial Bus, USB, etc.) to obtain the first configuration file.
可选的,所述获取第一配置文件包括:Optionally, the obtaining the first configuration file includes:
获得并解析所述第一配置文件,以获得所述第一配置文件中公共交通的线路配置信息。Obtaining and parsing the first configuration file to obtain line configuration information of public transportation in the first configuration file.
本申请实施例中,可以在通过所述第一配置文件在所述管理系统所在的终端设备中的存储位置,或者通过无线传输、有线传输等方式获取到所述第一配置文件后,对所述第一配置文件进行解析,从而获得所述第一配置文件中公共交通的线路配置信息。其中,示例性的,可以通过预设协议、预设校验码、预设标识等对所述第一配置文件进行解析。In the embodiment of the present application, after the first configuration file is stored in the terminal device where the management system is located, or after the first configuration file is obtained through wireless transmission or wired transmission, the The first configuration file is parsed to obtain line configuration information of public transportation in the first configuration file. Wherein, exemplarily, the first configuration file may be parsed through a preset protocol, a preset check code, a preset identifier, and the like.
在步骤102中,获取第二配置文件,其中,所述第二配置文件为用户对所述第一配置文件中公共交通的线路配置信息进行修改后得到的配置文件;In step 102, a second configuration file is obtained, where the second configuration file is a configuration file obtained after a user modifies the line configuration information of public transportation in the first configuration file;
本申请实施例中,在获取第一配置文件后,可以在所述管理系统所在的终端设备上显示所述第一配置文件中的线路配置信息。使得用户可以对所述第一配置文件中的线路配置信息进行修改,并且,根据修改后的路线配置信息可以获取到所述第二配置文件。所述第二配置文件可以包括一个或多个文件,并且所述第二配置文件的文件类型以及文件结构可以与第一配置文件相同或相似。所述第二配置文件包括多个文件时,不同的文件中可以包括不同的线路配置信息,例如,可以有保存语音信息的文件,还可以有包括站点信息的文件等。In the embodiment of the present application, after acquiring the first configuration file, the line configuration information in the first configuration file may be displayed on the terminal device where the management system is located. So that the user can modify the line configuration information in the first configuration file, and the second configuration file can be obtained according to the modified route configuration information. The second configuration file may include one or more files, and the file type and file structure of the second configuration file may be the same as or similar to the first configuration file. When the second configuration file includes multiple files, different files may include different line configuration information. For example, there may be a file for storing voice information, and a file including site information.
需要说明的是,本申请实施例中,所述第二配置文件也可以是通过无线传输或者有线传输等方式获取到的,此时,用户可以不是在所述管理系统所在的终端设备上对所述线路配置信息进行修改。It should be noted that, in the embodiment of the present application, the second configuration file may also be obtained through wireless transmission or wired transmission, etc. At this time, the user may not be on the terminal device where the management system is located. Modify the line configuration information described above.
可选的,所述获取第二配置文件包括:Optionally, the obtaining the second configuration file includes:
根据用户对所述线路配置信息的修改操作对所述线路配置信息进行修改;Modify the line configuration information according to the user's modification operation of the line configuration information;
在接收到修改完成的确认信息后,根据所述修改生成第二配置文件。After receiving the confirmation message that the modification is completed, a second configuration file is generated according to the modification.
示例性的,所述确认信息可以是检测到用户通过鼠标、在触控屏上进行触控等方式,点击所述管理系统所在的终端设备上的预设确认按键的操作时生成的。Exemplarily, the confirmation information may be generated when the user clicks a preset confirmation button on the terminal device where the management system is located by using a mouse, touching the touch screen, or the like.
在步骤103中,根据所述第一配置文件和所述第二配置文件获得目标文件,所述目标文件中包含所述第二配置文件相对于所述第一配置文件不同的线路配置信息;In step 103, a target file is obtained according to the first configuration file and the second configuration file, and the target file includes line configuration information of the second configuration file that is different from the first configuration file;
本申请实施例中,可以通过比对所述第一配置文件和所述第二配置文件来获得所述目标文件。并且,所述目标文件的文件类型以及文件结构可以与所述第一配置文件以及第二配置文件的文件类型以及文件结构相同或者相似,并且,可以是全部相同或者部分相同,全部相似或者部分相似。In the embodiment of the present application, the target file may be obtained by comparing the first configuration file and the second configuration file. Moreover, the file type and file structure of the target file may be the same as or similar to the file type and file structure of the first configuration file and the second configuration file, and may be all the same or partly the same, all similar or partly similar .
在步骤104中,将所述目标文件发送至与所述管理系统相关联的公共交通车载系统。In step 104, the target file is sent to a public transportation vehicle-mounted system associated with the management system.
本申请实施例中,所述公共交通车载系统可以是应用于公共交通的设备上的系统。所述公共交通车载系统可以指示对其所在的公共交通执行特定的控制、提示等操作。所述公共交通车载系统可以有一个或多个,并且可以通过多种方式与所述管理系统相关联,例如,所述公共交通车载系统和所述管理系统可以连接至同一服务器,可以通过无线通信、有线通信等方式进行信息传输,或者可以对应相关联的登录账号,如所述管理系统的登录账号可以是管理员账号,所述公共交通车载系统的账号可以是所述管理员所对应的普通用户账号等等。所述目标文件的发送方式以及所述公共交通车载系统与所述管理系统的关联方式在此不做限定。In the embodiments of the present application, the public transportation vehicle-mounted system may be a system applied to public transportation equipment. The public transportation vehicle-mounted system may instruct to perform specific control, prompting and other operations on the public transportation where it is located. There may be one or more public transportation vehicle-mounted systems, and it may be associated with the management system in various ways. For example, the public transportation vehicle-mounted system and the management system may be connected to the same server and may communicate through wireless , Wired communication and other methods for information transmission, or can correspond to the associated login account, for example, the login account of the management system can be an administrator account, the account of the public transportation vehicle-mounted system can be the ordinary corresponding to the administrator User account, etc. The method for sending the target file and the method for associating the public transportation vehicle-mounted system with the management system are not limited herein.
将所述目标文件发送至所述公共交通车载系统后,由于所述公共交通车载系统中,已经包含第一配置文件,因此,所述公共交通车载系统根据已有的第一配置文件和接收到的所述目标文件,可以在其本地获得所述第二配置文件,并根据所述第二配置文件来进行配置。因此,在每次线路配置出现更改时,所述公共交通车载系统通过获取大小较小的所述目标文件,即可结合原有的配置文件来获得完整的修改后的配置文件,而无需在更新配置文件的过程中耗费较长的时间和流量,从而提升了更新配置文件的操作效率。After sending the target file to the public transportation vehicle-mounted system, since the public transportation vehicle-mounted system already contains the first configuration file, the public transportation vehicle-mounted system according to the existing first configuration file and received Of the target file, the second configuration file can be obtained locally and configured according to the second configuration file. Therefore, each time the line configuration changes, the public transportation vehicle-mounted system can obtain the complete modified configuration file in combination with the original configuration file by acquiring the target file with a smaller size, without having to update The configuration file takes a long time and flow, which improves the operation efficiency of updating the configuration file.
可选的,在将所述目标文件发送至与所述管理系统相关联的公共交通车载系统之后,还包括:Optionally, after sending the target file to the public transportation vehicle-mounted system associated with the management system, the method further includes:
根据所述第一配置文件、所述第二配置文件和所述目标文件生成日志文件。Generate a log file according to the first configuration file, the second configuration file, and the target file.
本申请实施例中,所述日志文件可以是记录所述管理系统的操作事件的记录文件或文件集合。通过根据所述第一配置文件、所述第二配置文件和所述目标文件生成所述日志文件,可以记录所述配置文件的变更情况,从而可以在后续通过所述日志文件确定管理系统中所采用的配置文件的情况。In the embodiment of the present application, the log file may be a log file or a collection of files that record operation events of the management system. By generating the log file based on the first configuration file, the second configuration file, and the target file, changes in the configuration file can be recorded, so that the log file can be used to determine the location of the management system The case of the adopted configuration file.
需要说明的是,本申请实施例中,各种文件(如第一配置文件、第二配置文件等)以及文件夹的格式以及其对应的拓展名可以是用户自行定义的,也可以是采用通用的文件格式以及拓展名,在此不做限定。It should be noted that in the embodiment of the present application, the format of various files (such as the first configuration file, the second configuration file, etc.) and the folder and their corresponding extension names can be defined by the user themselves, or they can be universal The file format and extension are not limited here.
由上可见,本申请实施例中,在管理系统处于目标模式时,获取第一配置文件,并获取第二配置文件,可以根据所述第一配置文件和所述第二配置文件获得目标文件,从而获取到用户对所述第一配置文件的修改情况,并且将配置文件的修改情况存储至目标文件中;而将所述目标文件发送至与所述管理系统相关联的公共交通车载系统,可以在用户对配置文件进行修改后,仅将修改的部分发送给公共交通车载系统。现有技术中,每次配置文件被修改后,公共交通车载系统往往都需要重新下载完整的配置文件,而由于公共交通车载系统所需要的完整配置文件往往内容很多,文件较大,因此,公共交通车载系统获取完整的配置文件时,消耗的流量、获取时间以及配置时间往往较长,导致配置文件的更新效率较低。可见,本申请实施例在用户对配置文件进行修改后,仅将修改的部分由管理系统发送给公共交通车载系统,可以大大减小需要传输的文件的大小,从而提升配置文件的更新效率,具有较强的实用性和易用性。It can be seen from the above that in the embodiment of the present application, when the management system is in the target mode, the first configuration file is obtained, and the second configuration file is obtained, the target file can be obtained according to the first configuration file and the second configuration file, In this way, the user’s modification of the first configuration file is obtained, and the modification of the configuration file is stored in the target file; and the target file is sent to the public transportation vehicle-mounted system associated with the management system. After the user modifies the configuration file, only the modified part is sent to the public transportation vehicle-mounted system. In the prior art, every time the configuration file is modified, the public transportation vehicle-mounted system often needs to re-download the complete configuration file, and because the complete configuration file required by the public transportation vehicle-mounted system often has many contents and large files, the public When a traffic vehicle-mounted system obtains a complete configuration file, the consumed traffic, acquisition time, and configuration time are often longer, resulting in a lower update efficiency of the configuration file. It can be seen that in the embodiment of the present application, after the user modifies the configuration file, only the modified part is sent by the management system to the public transportation vehicle-mounted system, which can greatly reduce the size of the file to be transmitted, thereby improving the efficiency of updating the configuration file. Strong practicality and ease of use.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
实施例2Example 2
在上述实施例1的基础上,下面对本申请实施例提供的另一种文件更新方法进行描述,请参阅图2,本申请实施例中的文件更新方法包括:Based on the foregoing embodiment 1, the following describes another file update method provided by the embodiment of the present application. Please refer to FIG. 2. The file update method in the embodiment of the present application includes:
在步骤201中,检测到所述管理系统的模式由第一模式切换至第二模式的确认信息后,重新启动所述管理系统,重新启动后的所述管理系统处于所述第二模式;In step 201, after detecting the confirmation message that the mode of the management system is switched from the first mode to the second mode, the management system is restarted, and the restarted management system is in the second mode;
本申请实施例中,所述第一模式以及第二模式可以是用户设置的,如可以是分别指示所述管理系统处于某一指定的使用状态或者具有某些指定的功能的模式。示例性的,所述确认信息可以是检测到用户通过鼠标、触控等方式点击预设的确认按键的操作后得到的信息。In the embodiment of the present application, the first mode and the second mode may be set by a user, for example, may be a mode indicating that the management system is in a specified use state or has certain specified functions, respectively. Exemplarily, the confirmation information may be information obtained after detecting that the user clicks a preset confirmation button through a mouse, touch control, or the like.
示例性的,可以预先设置所述管理系统的第一模式为标准模式,第二模式为差异模式。其中,所述标准模式下,所述管理系统可以获取默认的标准配置文件对所述管理系统进行配置,此时,所述公共交通的线路可以是默认的原始线路,也可以是较前一次配置时无需更改的线路;所述差异模式下,配置所述管理系统所需的配置文件需要根据线路的变化来进行修改。因此,当检测到所述管理系统的模式由标准模式切换值差异模式的确认信息后,可以重新启动所述管理系统,并且,重新启动后的所述管理系统处于差异模式。并且,在实际应用中,用户可以通过预设的按键、预设的下拉选项等方式来切换所述管理系统的模式,并且,所述管理系统在检测到用户的选择操作后,可以显示确认窗口,以使得用户通过所述确认窗口中的按键或者选项来确认是否将所述管理系统的模式由第一模式切换至第二模式。Exemplarily, the first mode of the management system may be preset as the standard mode, and the second mode is the difference mode. In the standard mode, the management system can obtain a default standard configuration file to configure the management system. At this time, the line of the public transportation can be the default original line, or it can be configured from the previous time. No need to change the line; in the difference mode, the configuration file required to configure the management system needs to be modified according to the change of the line. Therefore, when the confirmation message that the mode of the management system is switched from the standard mode to the difference mode is detected, the management system may be restarted, and the restarted management system is in the difference mode. Moreover, in practical applications, the user can switch the mode of the management system through preset buttons, preset pull-down options, etc., and the management system can display a confirmation window after detecting the user's selection operation , So that the user can confirm whether to switch the mode of the management system from the first mode to the second mode through a key or an option in the confirmation window.
在步骤202中,当所述管理系统重新启动后,确定所述管理系统处于目标模式;In step 202, when the management system is restarted, it is determined that the management system is in the target mode;
本申请实施例中,所述管理系统重新启动后,处于第二模式。In the embodiment of the present application, after restarting, the management system is in the second mode.
在步骤203中,当管理系统处于目标模式时,获取第一配置文件,所述第一配置文件包含公共交通的线路配置信息;In step 203, when the management system is in the target mode, a first configuration file is obtained, and the first configuration file includes line configuration information of public transportation;
在步骤204中,获取第二配置文件,其中,所述第二配置文件为用户对所述第一配置文件中公共交通的线路配置信息进行修改后得到的配置文件;In step 204, a second configuration file is obtained, where the second configuration file is a configuration file obtained by a user after modifying the line configuration information of public transportation in the first configuration file;
在步骤205中,根据所述第一配置文件和所述第二配置文件获得目标文件,所述目标文件中包含所述第二配置文件相对于所述第一配置文件不同的线路配置信息;In step 205, a target file is obtained according to the first configuration file and the second configuration file, and the target file includes line configuration information of the second configuration file that is different from the first configuration file;
在步骤206中,将所述目标文件发送至与所述管理系统相关联的公共交通车载系统。In step 206, the target file is sent to a public transportation vehicle-mounted system associated with the management system.
在本申请实施例中,在本申请实施例中,上述步骤203、204、205、206分别与上述步骤101、102、103、104相同或相似,具体可参见上述步骤101、102、103、104的相关描述,在此不再赘述。In the embodiments of the present application, in the embodiments of the present application, the above steps 203, 204, 205, and 206 are respectively the same as or similar to the above steps 101, 102, 103, and 104. For details, see the above steps 101, 102, 103, and 104 Relevant descriptions will not be repeated here.
可选的,在根据所述第一配置文件和所述第二配置文件获得目标文件之后,还包括:Optionally, after obtaining the target file according to the first configuration file and the second configuration file, the method further includes:
保存所述第二配置文件,并在检测到所述管理系统处于第一模式时,根据所述第二配置文件对所述管理系统进行配置。The second configuration file is saved, and when it is detected that the management system is in the first mode, the management system is configured according to the second configuration file.
本申请实施例中,由于线路的修改可能会持续较长的时间,因此,所述管理系统可能需要在较长的时间内均采用所述第二配置文件来配置所述管理系统,因此,将所述第二配置文件保存于第二配置文件,且检测到所述管理系统处于第一模式时,根据所述第二配置文件对所述管理系统进行配置,可以使用户可以在一段时间内持续使用所述第二配置文件来进行配置,避免了对配置文件进行反复修改的操作,提升了用户体验。In the embodiment of the present application, since the modification of the line may last for a long time, the management system may need to use the second configuration file to configure the management system for a long time. Therefore, The second configuration file is saved in the second configuration file, and when it is detected that the management system is in the first mode, configuring the management system according to the second configuration file can enable the user to continue for a period of time Using the second configuration file for configuration avoids the operation of repeatedly modifying the configuration file and improves the user experience.
由上可见,通过本申请实施例,可以在检测到用户执行对所述管理系统进行模式切换的确认操作后,即可通过重启等方式对所述管理系统的模式进行重新设置,从而使所述管理系统处于目标模式,以执行后续的操作,本申请实施例中,确定所述管理系统的模式的方式较为简单,且由于重启等操作,所述管理系统处于目标模式时,不会受到之前模式中所述管理系统的数据等信息的干扰。It can be seen from the above that, according to the embodiment of the present application, after detecting that the user performs the confirmation operation of mode switching to the management system, the mode of the management system can be reset by restarting, etc., so that the The management system is in the target mode to perform subsequent operations. In the embodiments of the present application, the way to determine the mode of the management system is relatively simple, and due to restarting and other operations, the management system is not in the target mode when it is in the target mode. Interference with data and other information of the management system described in
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
实施例3Example 3
在上述实施例的基础上,下面对本申请实施例提供的又一种文件更新方法进行描述。所述文件更新方法中,所述线路配置信息包括线路信息、语音信息、站点信息、路段信息以及服务设置信息中至少一种。Based on the above embodiments, another file update method provided by the embodiments of the present application will be described below. In the file updating method, the line configuration information includes at least one of line information, voice information, site information, road section information, and service setting information.
其中,示例性的,所述线路信息可以包括线路和线路相关的线路框架信息,如线路编号、名称、线路默认限速、报站半径等信息。所述语音信息可以包括一个或多个语音模板的信息等。所述站点信息可以包括各个线路的站点以及站点相关的信息,如可以包括上行线路以及下行线路中包含的站点名称、站点编码、站点位置(如经纬度等)、拐点的经纬度、方向角、半径信息以及站点对应的语音信息等信息中至少一个。所述路段信息可以包括各个线路路段中的限速点、停车点、主站、副站、加油站、维修站、安全黑点、分段限速值、线路区域、线路轨迹等信息中至少一个。所述服务设置信息可以包括公共交通中的服务语音设置信息、提示语音设置信息、广告设置信息以及与其他设备或用户的传输设置信息等信息中至少一个。Exemplarily, the line information may include line and line frame information related to the line, such as line number, name, line default speed limit, station radius and other information. The voice information may include information of one or more voice templates and the like. The station information may include station information of each line and station-related information, such as station names, station codes, station locations (such as latitude and longitude, etc.) contained in the uplink and downlink lines, latitude and longitude, direction angle, and radius information of the inflection point And at least one of the information such as voice information corresponding to the site. The road section information may include at least one of speed limit points, parking points, main stations, auxiliary stations, gas stations, maintenance stations, safety black spots, section speed limit values, line areas, line trajectories, etc. in each line section . The service setting information may include at least one of service voice setting information, prompt voice setting information, advertisement setting information, and transmission setting information with other devices or users in public transportation.
相应的,请参阅图3,本申请实施例中的文件更新方法包括:Correspondingly, please refer to FIG. 3, the file update method in the embodiment of the present application includes:
在步骤301中,当管理系统处于目标模式时,获取第一配置文件,所述第一配置文件包含公共交通的线路配置信息;In step 301, when the management system is in the target mode, a first configuration file is obtained, and the first configuration file includes line configuration information of public transportation;
在步骤302中,获取第二配置文件,其中,所述第二配置文件为用户对所述第一配置文件中公共交通的线路配置信息进行修改后得到的配置文件;In step 302, a second configuration file is obtained, where the second configuration file is a configuration file obtained by the user after modifying the line configuration information of public transportation in the first configuration file;
在本申请实施例中,在本申请实施例中,上述步骤301、302分别与上述步骤101、102相同或相似,具体可参见上述步骤101、102的相关描述,在此不再赘述。In the embodiments of the present application, in the embodiments of the present application, the above steps 301 and 302 are respectively the same as or similar to the above steps 101 and 102. For details, reference may be made to the related description of the above steps 101 and 102, and details are not repeated herein.
在步骤303中,比对所述第一配置文件与所述第二配置文件中的线路信息、语音信息、站点信息和/或服务设置信息,获得比对结果;In step 303, compare the line information, voice information, site information, and/or service setting information in the first configuration file with the second configuration file to obtain a comparison result;
本申请实施例中,可以根据所述第一配置文件和第二配置文件的文件结构以及文件类型来确定比对方式,例如,可以分别比对线路信息、语音信息、站点信息和/或服务设置信息,并分别获得比对结果。In the embodiment of the present application, the comparison method may be determined according to the file structure and file type of the first configuration file and the second configuration file, for example, line information, voice information, site information, and/or service settings may be compared separately Information and get comparison results separately.
在步骤304中,根据所述比对结果生成至少一个目标文件,并将所述至少一个目标文件存储至目标文件夹,所述目标文件中包含所述第二配置文件相对于所述第一配置文件不同的线路配置信息;In step 304, at least one target file is generated according to the comparison result, and the at least one target file is stored in a target folder, the target file includes the second configuration file relative to the first configuration File different line configuration information;
本申请实施例中,所述目标文件存储至目标文件夹的存储方式可以是用户根据实际应用场景进行设置。例如,可以根据预设的规则将至少一个目标文件打包得到所述目标文件夹。In the embodiment of the present application, the storage manner in which the target file is stored in the target folder may be set by the user according to an actual application scenario. For example, at least one target file may be packaged to obtain the target folder according to a preset rule.
可选的,所述将所述至少一个目标文件存储至目标文件夹包括:Optionally, the storing the at least one target file to a target folder includes:
确定每一个所述目标文件的存储层级;Determine the storage level of each of the target files;
根据每一个所述目标文件的存储层级,分别将每一个所述目标文件存储至所述目标文件夹中所对应的层级结构中。According to the storage level of each of the target files, each of the target files is stored in a corresponding hierarchical structure in the target folder.
本申请实施例中,所述目标文件夹可以包括一个或多个层级结构,并且所述层级结构可以是树形结构。示例性的,所述线路配置信息包括线路信息、语音信息、站点信息、路段信息以及服务设置信息,因此,所述目标文件夹中的第一级层级结构中可以包括分别对应于线路信息、语音信息、站点信息、路段信息以及服务设置信息的第一级文件夹或者第一级文件,而每一个第一级文件夹下,还分别包括第二级文件夹或者第二级文件,以此类推。因此,根据每一个所述目标文件的存储层级,可以分别将每一个所述目标文件存储至所述目标文件夹中所对应的层级结构中。In the embodiment of the present application, the target folder may include one or more hierarchical structures, and the hierarchical structure may be a tree structure. Exemplarily, the line configuration information includes line information, voice information, station information, road segment information, and service setting information. Therefore, the first-level hierarchy in the target folder may include lines corresponding to line information and voice, respectively. The first-level folder or first-level file of information, site information, link information and service setting information, and each first-level folder also includes a second-level folder or second-level file, and so on . Therefore, according to the storage level of each of the target files, each of the target files can be stored in the corresponding hierarchical structure in the target folder.
此外,可选的,所述目标文件夹以及所述目标文件夹下的每一个层级结构均可以具有对应的头部结构,所述头部结构中可以包含其所对应的文件或文件夹的版本信息、校验信息、文件大小、层级信息、下一层级的个数等等信息的至少一种。根据所述目标文件夹的头部结构的信息以及所述目标文件的存储层级信息,可以将每一个所述目标文件匹配至对应的目标文件夹的层级结构中,并在对应的所述层级结构中对所述目标文件进行存储。In addition, optionally, the target folder and each hierarchical structure under the target folder may have a corresponding header structure, and the header structure may include the version of the corresponding file or folder At least one of information, verification information, file size, level information, the number of the next level, etc. According to the information of the header structure of the target folder and the storage hierarchy information of the target file, each of the target files can be matched to the hierarchy of the corresponding target folder, and in the corresponding hierarchy To store the target file.
通过根据每一个所述目标文件的存储层级,分别将每一个所述目标文件存储至所述目标文件夹中所对应的层级结构中,可以按照预设的存储规则,分层次地对所述目标文件进行存储,以便于后续在公共交通车载系统中进行处理。By storing each of the target files in the corresponding hierarchical structure in the target folder according to the storage level of each of the target files, the targets can be hierarchically organized according to preset storage rules The file is stored so that it can be processed in the public transportation vehicle-mounted system.
在步骤305中,将所述目标文件夹发送至与所述管理系统相关联的公共交通车载系统。In step 305, the target folder is sent to the public transportation vehicle-mounted system associated with the management system.
本申请实施例中,所述公共交通车载系统可以有多个,并且可以通过多种方式与所述管理系统相关联,例如,所述公共交通车载系统和所述管理系统可以连接至同一服务器,可以通过无线通信、有线通信等方式进行信息传输,或者可以对应相关联的登录账号,如所述管理系统的登录账号可以是管理员账号,所述公共交通车载系统的账号可以是所述管理员所对应的普通用户账号等等。所述目标文件的发送方式以及所述公共交通车载系统与所述管理系统的关联方式在此不做限定。示例性的,所述目标文件夹可以以压缩包的形式进行传输,也可以以其他形式(如用户自行定义的文件夹形式)来进行传输。In the embodiment of the present application, there may be multiple public transportation vehicle-mounted systems, and may be associated with the management system in various ways, for example, the public transportation vehicle-mounted system and the management system may be connected to the same server, Information transmission can be carried out through wireless communication, wired communication, etc., or can correspond to the associated login account. For example, the login account of the management system can be an administrator account, and the account of the public transportation vehicle-mounted system can be the administrator The corresponding ordinary user account and so on. The method for sending the target file and the method for associating the public transportation vehicle-mounted system with the management system are not limited herein. Exemplarily, the target folder may be transmitted in the form of a compressed package, or may be transmitted in other forms (such as a folder defined by the user).
可选的,在将所述至少一个目标文件存储至目标文件夹之后,还包括:Optionally, after storing the at least one target file in the target folder, the method further includes:
对所述目标文件夹进行标识,所述标识指示所述目标文件夹中包含目标文件。The target folder is identified, and the identification indicates that the target folder contains a target file.
本申请实施例中,所述标识可以设置于目标文件夹的名称、头部结构等位置。例如,可以在所述目标文件夹的头部结构对所述目标文件夹进行标识,或者,也可以预先与所述公共交通车载系统约定采用预设名称的文件夹为目标文件夹。In the embodiment of the present application, the identifier may be set in the name of the target folder, the structure of the header, and the like. For example, the target folder may be identified in the head structure of the target folder, or a folder with a preset name may be agreed with the public transportation vehicle-mounted system in advance as the target folder.
通过对所述目标文件进行标识,可以使公共交通车载系统以及管理系统可以快速识别所述目标文件夹。By identifying the target file, the public transportation vehicle-mounted system and the management system can quickly identify the target folder.
由上可见,本申请实施例通过根据每一个所述目标文件的存储层级,分别将每一个所述目标文件存储至所述目标文件夹中所对应的层级结构中,可以按照预设的存储规则,分层次地对所述目标文件进行存储,可以为后续的文件处理提供便利。同时,将所述至少一个目标文件存储在目标文件夹,并以目标文件夹的形式进行传输,可以简化传输形式,提升信息传输的效率。As can be seen from the above, the embodiments of the present application store each of the target files into the corresponding hierarchical structure in the target folder according to the storage level of each of the target files, according to the preset storage rules Storing the target file hierarchically can provide convenience for subsequent file processing. At the same time, storing the at least one target file in a target folder and transmitting it in the form of a target folder can simplify the transmission form and improve the efficiency of information transmission.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
实施例4Example 4
本申请实施例4提供了一种文件更新装置,上述文件更新装置可集成于终端设备中,如图4所示,本申请实施例中的文件更新装置400包括:Embodiment 4 of the present application provides a file updating apparatus. The above file updating apparatus may be integrated into a terminal device. As shown in FIG. 4, the file updating apparatus 400 in the embodiment of the present application includes:
第一获取模块401,用于当管理系统处于目标模式时,获取第一配置文件,所述第一配置文件包含公共交通的线路配置信息;The first obtaining module 401 is configured to obtain a first configuration file when the management system is in the target mode, the first configuration file containing line configuration information of public transportation;
第二获取模块402,用于获取第二配置文件,其中,所述第二配置文件为用户对所述第一配置文件中公共交通的线路配置信息进行修改后得到的配置文件;The second obtaining module 402 is configured to obtain a second configuration file, where the second configuration file is a configuration file obtained by the user after modifying the line configuration information of public transportation in the first configuration file;
处理模块403,用于根据所述第一配置文件和所述第二配置文件获得目标文件,所述目标文件中包含所述第二配置文件相对于所述第一配置文件不同的线路配置信息;The processing module 403 is configured to obtain a target file according to the first configuration file and the second configuration file, where the target file includes line configuration information of the second configuration file that is different from the first configuration file;
发送模块404,用于将所述目标文件发送至与所述管理系统相关联的公共交通车载系统。The sending module 404 is used to send the target file to a public transportation vehicle-mounted system associated with the management system.
可选的,所述文件更新装置400还包括:Optionally, the file update device 400 further includes:
重新启动模块,用于检测到所述管理系统的模式由第一模式切换至第二模式的确认信息后,重新启动所述管理系统,重新启动后的所述管理系统处于所述第二模式;A restart module, configured to detect the confirmation message that the mode of the management system is switched from the first mode to the second mode, restart the management system, and the restarted management system is in the second mode;
确定模块,用于当所述管理系统重新启动后,确定所述管理系统处于目标模式。The determining module is configured to determine that the management system is in a target mode after the management system is restarted.
可选的,所述文件更新装置400还包括:Optionally, the file update device 400 further includes:
保存模块,用于保存所述第二配置文件,并在检测到所述管理系统处于第一模式时,根据所述第二配置文件对所述管理系统进行配置。The saving module is used to save the second configuration file and configure the management system according to the second configuration file when it is detected that the management system is in the first mode.
可选的,所述第一获取模块401具体包括:Optionally, the first obtaining module 401 specifically includes:
打开单元,用于解析单元,用于获得并解析所述第一配置文件,以获得所述第一配置文件中公共交通的线路配置信息。The opening unit is used for a parsing unit to obtain and parse the first configuration file to obtain line configuration information of public transportation in the first configuration file.
可选的,所述线路配置信息包括线路信息、语音信息、站点信息、路段信息以及服务设置信息中至少一种;Optionally, the line configuration information includes at least one of line information, voice information, site information, road section information, and service setting information;
相应的,所述处理模块403具体包括:Correspondingly, the processing module 403 specifically includes:
比对单元,用于比对所述第一配置文件与所述第二配置文件中的线路信息、语音信息、站点信息和/或服务设置信息,获得比对结果;A comparison unit, configured to compare the line information, voice information, site information, and/or service setting information in the first configuration file with the second configuration file to obtain a comparison result;
存储单元,用于根据所述比对结果生成至少一个目标文件,并将所述至少一个目标文件存储至目标文件夹;A storage unit, configured to generate at least one target file according to the comparison result, and store the at least one target file to a target folder;
相应的,所述发送模块404具体用于:Correspondingly, the sending module 404 is specifically used to:
将所述目标文件夹发送至与所述管理系统相关联的公共交通车载系统。Send the target folder to the public transportation vehicle-mounted system associated with the management system.
可选的,所述存储单元具体包括:Optionally, the storage unit specifically includes:
确定子单元,用于确定每一个所述目标文件的存储层级;A determination subunit, used to determine the storage level of each of the target files;
存储子单元,用于根据每一个所述目标文件的存储层级,分别将每一个所述目标文件存储至所述目标文件夹中所对应的层级结构中。The storage subunit is configured to store each of the target files in the corresponding hierarchical structure in the target folder according to the storage level of each of the target files.
可选的,所述文件更新装置400还包括:Optionally, the file update device 400 further includes:
标识模块,用于对所述目标文件夹进行标识,所述标识指示所述目标文件夹中包含目标文件。The identification module is used to identify the target folder, and the identification indicates that the target folder contains a target file.
可选的,所述第二获取模块,具体包括:Optionally, the second obtaining module specifically includes:
修改单元,用于根据用户对所述线路配置信息的修改操作对所述线路配置信息进行修改;A modification unit, configured to modify the line configuration information according to a user's modification operation on the line configuration information;
生成单元,用于在接收到修改完成的确认信息后,根据所述修改生成第二配置文件。The generating unit is configured to generate a second configuration file according to the modification after receiving the confirmation message that the modification is completed.
可选的,所述文件更新装置400还包括:Optionally, the file update device 400 further includes:
生成模块,用于根据所述第一配置文件、所述第二配置文件和所述目标文件生成日志文件。The generating module is configured to generate a log file according to the first configuration file, the second configuration file, and the target file.
由上可见,本申请实施例在用户对配置文件进行修改后,仅将修改的部分由管理系统发送给公共交通车载系统,可以大大减小需要传输的文件的大小,从而提升配置文件的更新效率,具有较强的实用性和易用性。It can be seen from the above that in the embodiment of the present application, after the user modifies the configuration file, only the modified part is sent by the management system to the public transportation vehicle-mounted system, which can greatly reduce the size of the file to be transmitted, thereby improving the efficiency of updating the configuration file , With strong practicality and ease of use.
实施例5Example 5
本申请实施例提供了一种终端设备,请参阅图5,本申请实施例中的终端设备包括:存储器501,一个或多个处理器502(图5中仅示出一个)及存储在存储器501上并可在处理器上运行的计算机程序。其中:存储器501用于存储软件程序以及模块,处理器502通过运行存储在存储器501的软件程序以及单元,从而执行各种功能应用以及数据处理,以获取上述预设事件对应的资源。具体地,处理器502通过运行存储在存储器501的上述计算机程序时实现如下步骤:An embodiment of the present application provides a terminal device. Please refer to FIG. 5. The terminal device in the embodiment of the present application includes: a memory 501, one or more processors 502 (only one is shown in FIG. 5) and stored in the memory 501 A computer program that can be run on a processor. The memory 501 is used to store software programs and modules. The processor 502 executes various functional applications and data processing by running the software programs and units stored in the memory 501 to obtain resources corresponding to the preset events. Specifically, the processor 502 implements the following steps by running the above computer program stored in the memory 501:
当管理系统处于目标模式时,获取第一配置文件,所述第一配置文件包含公共交通的线路配置信息;When the management system is in the target mode, a first configuration file is obtained, and the first configuration file includes line configuration information of public transportation;
获取第二配置文件,其中,所述第二配置文件为用户对所述第一配置文件中公共交通的线路配置信息进行修改后得到的配置文件;Obtaining a second configuration file, where the second configuration file is a configuration file obtained by the user after modifying the line configuration information of the public transportation in the first configuration file;
根据所述第一配置文件和所述第二配置文件获得目标文件,所述目标文件中包含所述第二配置文件相对于所述第一配置文件不同的线路配置信息;Obtaining a target file according to the first configuration file and the second configuration file, the target file containing line configuration information of the second configuration file different from the first configuration file;
将所述目标文件发送至与所述管理系统相关联的公共交通车载系统。The target file is sent to the public transportation vehicle-mounted system associated with the management system.
假设上述为第一种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第二种可能的实施方式中,判断管理系统是否处于目标模式包括:Assuming that the above is the first possible implementation manner, in the second possible implementation manner provided as the basis of the first possible implementation manner, determining whether the management system is in the target mode includes:
检测到所述管理系统的模式由第一模式切换至第二模式的确认信息后,重新启动所述管理系统,重新启动后的所述管理系统处于所述第二模式;After detecting the confirmation message that the mode of the management system is switched from the first mode to the second mode, restart the management system, and the restarted management system is in the second mode;
当所述管理系统重新启动后,确定所述管理系统处于目标模式。When the management system is restarted, it is determined that the management system is in the target mode.
在上述第二种可能的实施方式作为基础而提供的第三种可能的实施方式中,在根据所述第一配置文件和所述第二配置文件获得目标文件之后,处理器502通过运行存储在存储器501的上述计算机程序时还实现如下步骤:In a third possible implementation manner provided as the basis of the above-mentioned second possible implementation manner, after obtaining the target file according to the first configuration file and the second configuration file, the processor 502 stores The above computer program of the memory 501 also implements the following steps:
保存所述第二配置文件,并在检测到所述管理系统处于第一模式时,根据所述第二配置文件对所述管理系统进行配置。The second configuration file is saved, and when it is detected that the management system is in the first mode, the management system is configured according to the second configuration file.
在上述第一种可能的实施方式作为基础而提供的第四种可能的实施方式中,所述获取第一配置文件包括:In a fourth possible implementation manner provided as the basis of the above first possible implementation manner, the acquiring the first configuration file includes:
获得并解析所述第一配置文件,以获得所述第一配置文件中公共交通的线路配置信息。Obtaining and parsing the first configuration file to obtain line configuration information of public transportation in the first configuration file.
在上述第一种可能的实施方式作为基础而提供的第五种可能的实施方式中,所述线路配置信息包括线路信息、语音信息、站点信息、路段信息以及服务设置信息中至少一种;In a fifth possible implementation manner provided as the basis of the above first possible implementation manner, the line configuration information includes at least one of line information, voice information, site information, road section information, and service setting information;
相应的,所述根据所述第一配置文件和所述第二配置文件获得目标文件包括:Correspondingly, the obtaining the target file according to the first configuration file and the second configuration file includes:
比对所述第一配置文件与所述第二配置文件中的线路信息、语音信息、站点信息和/或服务设置信息,获得比对结果;Compare the line information, voice information, site information, and/or service setting information in the first configuration file with the second configuration file to obtain a comparison result;
根据所述比对结果生成至少一个目标文件,并将所述至少一个目标文件存储至目标文件夹;Generating at least one target file according to the comparison result, and storing the at least one target file to a target folder;
相应的,将所述目标文件发送至与所述管理系统相关联的公共交通车载系统包括:Correspondingly, sending the target file to the public transportation vehicle-mounted system associated with the management system includes:
将所述目标文件夹发送至与所述管理系统相关联的公共交通车载系统。Send the target folder to the public transportation vehicle-mounted system associated with the management system.
在上述第五种可能的实施方式作为基础而提供的第六种可能的实施方式中,所述将所述至少一个目标文件存储至目标文件夹包括:In a sixth possible implementation manner provided as the basis of the above fifth possible implementation manner, the storing the at least one target file to the target folder includes:
确定每一个所述目标文件的存储层级;Determine the storage level of each of the target files;
根据每一个所述目标文件的存储层级,分别将每一个所述目标文件存储至所述目标文件夹中所对应的层级结构中。According to the storage level of each of the target files, each of the target files is stored in a corresponding hierarchical structure in the target folder.
在上述第五种可能的实施方式作为基础而提供的第七种可能的实施方式中,在将所述至少一个目标文件存储至目标文件夹之后,处理器502通过运行存储在存储器501的上述计算机程序时还实现如下步骤:In the seventh possible embodiment provided as the basis of the fifth possible embodiment above, after storing the at least one target file in the target folder, the processor 502 runs the above-mentioned computer stored in the memory 501 by running The program also implements the following steps:
对所述目标文件夹进行标识,所述标识指示所述目标文件夹中包含目标文件。The target folder is identified, and the identification indicates that the target folder contains a target file.
在上述第一种可能的实施方式作为基础而提供的第八种可能的实施方式中,所述获取第二配置文件包括:In an eighth possible implementation manner provided as the basis of the first possible implementation manner described above, the acquiring the second configuration file includes:
根据用户对所述线路配置信息的修改操作对所述线路配置信息进行修改;Modify the line configuration information according to the user's modification operation of the line configuration information;
在接收到修改完成的确认信息后,根据所述修改生成第二配置文件。After receiving the confirmation message that the modification is completed, a second configuration file is generated according to the modification.
在上述第一种可能的实施方式作为基础,或者上述第二种可能的实施方式作为基础,或者上述第三种可能的实施方式作为基础,或者上述第四种可能的实施方式作为基础,或者上述第五种可能的实施方式作为基础,或者上述第六种可能的实施方式作为基础,或者上述第七种可能的实施方式作为基础,或者上述第八种可能的实施方式作为基础而提供的第九种可能的实施方式中,在将所述目标文件发送至与所述管理系统相关联的公共交通车载系统之后,处理器502通过运行存储在存储器501的上述计算机程序时还实现如下步骤:Based on the first possible embodiment above, or based on the second possible embodiment above, or based on the third possible embodiment above, or based on the fourth possible embodiment above, or The fifth possible embodiment is used as a basis, or the sixth possible embodiment is used as a basis, or the seventh possible embodiment is used as a basis, or the eighth possible embodiment is provided as a basis. In a possible implementation manner, after sending the target file to a public transportation vehicle-mounted system associated with the management system, the processor 502 further implements the following steps when running the above-mentioned computer program stored in the memory 501:
根据所述第一配置文件、所述第二配置文件和所述目标文件生成日志文件。Generate a log file according to the first configuration file, the second configuration file, and the target file.
进一步,如图5所示,上述终端设备还可包括:一个或多个输入设备503(图5中仅示出一个)和一个或多个输出设备504(图4中仅示出一个)。存储器501、处理器502、输入设备503和输出设备504通过总线505连接。Further, as shown in FIG. 5, the above terminal device may further include: one or more input devices 503 (only one is shown in FIG. 5) and one or more output devices 504 (only one is shown in FIG. 4 ). The memory 501, the processor 502, the input device 503, and the output device 504 are connected through a bus 505.
应当理解,在本申请实施例中,所称处理器502可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiments of the present application, the so-called processor 502 may be a central processing unit (Central Processing Unit (CPU), the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (Application Specific Integrated Circuit (ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
输入设备503可以包括键盘、触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备504可以包括显示器、扬声器等。The input device 503 may include a keyboard, a touchpad, a fingerprint sensor (for collecting user's fingerprint information and fingerprint direction information), a microphone, etc., and the output device 504 may include a display, a speaker, and the like.
存储器501可以包括只读存储器和随机存取存储器,并向处理器502 提供指令和数据。存储器501的一部分或全部还可以包括非易失性随机存取存储器。例如,存储器501还可以存储设备类型的信息。The memory 501 may include a read-only memory and a random access memory, and provide instructions and data to the processor 502. Part or all of the memory 501 may also include non-volatile random access memory. For example, the memory 501 may also store device type information.
由上可见,本申请实施例在用户对配置文件进行修改后,仅将修改的部分由管理系统发送给公共交通车载系统,可以大大减小需要传输的文件的大小,从而提升配置文件的更新效率,具有较强的实用性和易用性。It can be seen from the above that in the embodiment of the present application, after the user modifies the configuration file, only the modified part is sent by the management system to the public transportation vehicle-mounted system, which can greatly reduce the size of the file to be transmitted, thereby improving the efficiency of updating the configuration file , With strong practicality and ease of use.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将上述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for convenience and conciseness of description, only the above-mentioned division of each functional unit and module is used as an example for illustration. In practical applications, the above-mentioned functions may be allocated by different functional units, Module completion means that the internal structure of the above device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit may use hardware It can also be implemented in the form of software functional units. In addition, the specific names of each functional unit and module are only for the purpose of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not detailed or recorded in an embodiment, you can refer to the related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者外部设备软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art may realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of external device software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,上述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the above-mentioned division of modules or units is only a division of logical functions. In actual implementation, there may be other divisions, for example, multiple units or components may be combined Or it can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。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 may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读存储介质可以包括:能够携带上述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机可读存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,上述计算机可读存储介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不包括是电载波信号和电信信号。If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program. The above computer program can be stored in a computer readable storage medium, and the computer program When executed by the processor, the steps of the foregoing method embodiments may be implemented. Wherein, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code, executable file, or some intermediate form. The above-mentioned computer-readable storage medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer-readable memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals and software distribution media, etc. It should be noted that the content contained in the above computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in jurisdictions. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage The medium does not include electrical carrier signals and telecommunications signals.
以上上述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they can still perform the foregoing embodiments The recorded technical solutions are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of this application, and should be included in this Within the scope of protection applied for.

Claims (20)

  1. 一种文件更新方法,其特征在于,包括:A file updating method is characterized by including:
    当管理系统处于目标模式时,获取第一配置文件,所述第一配置文件包含公共交通的线路配置信息;When the management system is in the target mode, a first configuration file is obtained, and the first configuration file includes line configuration information of public transportation;
    获取第二配置文件,其中,所述第二配置文件为用户对所述第一配置文件中公共交通的线路配置信息进行修改后得到的配置文件;Obtaining a second configuration file, where the second configuration file is a configuration file obtained by the user after modifying the line configuration information of the public transportation in the first configuration file;
    根据所述第一配置文件和所述第二配置文件获得目标文件,所述目标文件中包含所述第二配置文件相对于所述第一配置文件不同的线路配置信息;Obtaining a target file according to the first configuration file and the second configuration file, the target file containing line configuration information of the second configuration file different from the first configuration file;
    将所述目标文件发送至与所述管理系统相关联的公共交通车载系统。The target file is sent to the public transportation vehicle-mounted system associated with the management system.
  2. 如权利要求1所述的文件更新方法,其特征在于,判断管理系统是否处于目标模式包括:The file updating method according to claim 1, wherein determining whether the management system is in the target mode includes:
    检测到所述管理系统的模式由第一模式切换至第二模式的确认信息后,重新启动所述管理系统,重新启动后的所述管理系统处于所述第二模式;After detecting the confirmation message that the mode of the management system is switched from the first mode to the second mode, restart the management system, and the restarted management system is in the second mode;
    当所述管理系统重新启动后,确定所述管理系统处于目标模式。When the management system is restarted, it is determined that the management system is in the target mode.
  3. 如权利要求2所述的文件更新方法,其特征在于,在根据所述第一配置文件和所述第二配置文件获得目标文件之后,还包括:The file updating method according to claim 2, wherein after obtaining the target file according to the first configuration file and the second configuration file, the method further comprises:
    保存所述第二配置文件,并在检测到所述管理系统处于第一模式时,根据所述第二配置文件对所述管理系统进行配置。The second configuration file is saved, and when it is detected that the management system is in the first mode, the management system is configured according to the second configuration file.
  4. 如权利要求1所述的文件更新方法,其特征在于,所述获取第一配置文件包括:The file updating method according to claim 1, wherein the acquiring the first configuration file comprises:
    获得并解析所述第一配置文件,以获得所述第一配置文件中公共交通的线路配置信息。Obtaining and parsing the first configuration file to obtain line configuration information of public transportation in the first configuration file.
  5. 如权利要求1所述的文件更新方法,其特征在于,所述线路配置信息包括线路信息、语音信息、站点信息、路段信息以及服务设置信息中至少一种;The file update method according to claim 1, wherein the line configuration information includes at least one of line information, voice information, site information, road section information, and service setting information;
    相应的,所述根据所述第一配置文件和所述第二配置文件获得目标文件包括:Correspondingly, the obtaining the target file according to the first configuration file and the second configuration file includes:
    比对所述第一配置文件与所述第二配置文件中的线路信息、语音信息、站点信息和/或服务设置信息,获得比对结果;Compare the line information, voice information, site information, and/or service setting information in the first configuration file with the second configuration file to obtain a comparison result;
    根据所述比对结果生成至少一个目标文件,并将所述至少一个目标文件存储至目标文件夹;Generating at least one target file according to the comparison result, and storing the at least one target file to a target folder;
    相应的,将所述目标文件发送至与所述管理系统相关联的公共交通车载系统包括:Correspondingly, sending the target file to the public transportation vehicle-mounted system associated with the management system includes:
    将所述目标文件夹发送至与所述管理系统相关联的公共交通车载系统。Send the target folder to the public transportation vehicle-mounted system associated with the management system.
  6. 如权利要求5所述的文件更新方法,其特征在于,所述将所述至少一个目标文件存储至目标文件夹包括:The file updating method of claim 5, wherein the storing the at least one target file to a target folder comprises:
    确定每一个所述目标文件的存储层级;Determine the storage level of each of the target files;
    根据每一个所述目标文件的存储层级,分别将每一个所述目标文件存储至所述目标文件夹中所对应的层级结构中。According to the storage level of each of the target files, each of the target files is stored in a corresponding hierarchical structure in the target folder.
  7. 如权利要求5所述的文件更新方法,其特征在于,在将所述至少一个目标文件存储至目标文件夹之后,还包括:The file updating method of claim 5, after storing the at least one target file in a target folder, further comprising:
    对所述目标文件夹进行标识,所述标识指示所述目标文件夹中包含目标文件。The target folder is identified, and the identification indicates that the target folder contains a target file.
  8. 如权利要求1所述的文件更新方法,其特征在于,所述获取第二配置文件包括:The file update method according to claim 1, wherein the obtaining the second configuration file comprises:
    根据用户对所述线路配置信息的修改操作对所述线路配置信息进行修改;Modify the line configuration information according to the user's modification operation of the line configuration information;
    在接收到修改完成的确认信息后,根据所述修改生成第二配置文件。After receiving the confirmation message that the modification is completed, a second configuration file is generated according to the modification.
  9. 如权利要求1至8任意一项所述的文件更新方法,其特征在于,在将所述目标文件发送至与所述管理系统相关联的公共交通车载系统之后,还包括:The file update method according to any one of claims 1 to 8, wherein after the target file is sent to a public transportation vehicle-mounted system associated with the management system, the method further includes:
    根据所述第一配置文件、所述第二配置文件和所述目标文件生成日志文件。Generate a log file according to the first configuration file, the second configuration file, and the target file.
  10. 一种文件更新装置,其特征在于,包括:A file updating device is characterized by comprising:
    第一获取模块,用于当管理系统处于目标模式时,获取第一配置文件,所述第一配置文件包含公共交通的线路配置信息;A first obtaining module, configured to obtain a first configuration file when the management system is in the target mode, the first configuration file containing line configuration information of public transportation;
    第二获取模块,用于获取第二配置文件,其中,所述第二配置文件为用户对所述第一配置文件中公共交通的线路配置信息进行修改后得到的配置文件;A second obtaining module, configured to obtain a second configuration file, wherein the second configuration file is a configuration file obtained by the user after modifying the line configuration information of public transportation in the first configuration file;
    处理模块,用于根据所述第一配置文件和所述第二配置文件获得目标文件,所述目标文件中包含所述第二配置文件相对于所述第一配置文件不同的线路配置信息;A processing module, configured to obtain a target file according to the first configuration file and the second configuration file, where the target file contains line configuration information of the second configuration file that is different from the first configuration file;
    发送模块,用于将所述目标文件发送至与所述管理系统相关联的公共交通车载系统。The sending module is used to send the target file to the public transportation vehicle-mounted system associated with the management system.
  11. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如下步骤:A terminal device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that, when the processor executes the computer program, the following steps are implemented:
    当管理系统处于目标模式时,获取第一配置文件,所述第一配置文件包含公共交通的线路配置信息;When the management system is in the target mode, a first configuration file is obtained, and the first configuration file includes line configuration information of public transportation;
    获取第二配置文件,其中,所述第二配置文件为用户对所述第一配置文件中公共交通的线路配置信息进行修改后得到的配置文件;Obtaining a second configuration file, where the second configuration file is a configuration file obtained by the user after modifying the line configuration information of the public transportation in the first configuration file;
    根据所述第一配置文件和所述第二配置文件获得目标文件,所述目标文件中包含所述第二配置文件相对于所述第一配置文件不同的线路配置信息;Obtaining a target file according to the first configuration file and the second configuration file, the target file containing line configuration information of the second configuration file different from the first configuration file;
    将所述目标文件发送至与所述管理系统相关联的公共交通车载系统。The target file is sent to the public transportation vehicle-mounted system associated with the management system.
  12. 如权利要求11所述的终端设备,其特征在于,所述处理器执行所述计算机程序时,判断管理系统是否处于目标模式包括:The terminal device according to claim 11, wherein when the processor executes the computer program, determining whether the management system is in the target mode includes:
    检测到所述管理系统的模式由第一模式切换至第二模式的确认信息后,重新启动所述管理系统,重新启动后的所述管理系统处于所述第二模式;After detecting the confirmation message that the mode of the management system is switched from the first mode to the second mode, restart the management system, and the restarted management system is in the second mode;
    当所述管理系统重新启动后,确定所述管理系统处于目标模式。When the management system is restarted, it is determined that the management system is in the target mode.
  13. 如权利要求12所述的终端设备,其特征在于,在根据所述第一配置文件和所述第二配置文件获得目标文件之后,所述处理器执行所述计算机程序时还实现如下步骤:The terminal device according to claim 12, wherein after obtaining the target file according to the first configuration file and the second configuration file, the processor further implements the following steps when executing the computer program:
    保存所述第二配置文件,并在检测到所述管理系统处于第一模式时,根据所述第二配置文件对所述管理系统进行配置。The second configuration file is saved, and when it is detected that the management system is in the first mode, the management system is configured according to the second configuration file.
  14. 如权利要求11所述的终端设备,其特征在于,所述处理器执行所述计算机程序时,所述获取第一配置文件包括:The terminal device according to claim 11, wherein when the processor executes the computer program, the acquiring the first configuration file includes:
    获得并解析所述第一配置文件,以获得所述第一配置文件中公共交通的线路配置信息。Obtaining and parsing the first configuration file to obtain line configuration information of public transportation in the first configuration file.
  15. 如权利要求11所述的终端设备,其特征在于,所述线路配置信息包括线路信息、语音信息、站点信息、路段信息以及服务设置信息中至少一种;The terminal device according to claim 11, wherein the line configuration information includes at least one of line information, voice information, site information, road section information, and service setting information;
    相应的,所述处理器执行所述计算机程序时,所述根据所述第一配置文件和所述第二配置文件获得目标文件包括:Correspondingly, when the processor executes the computer program, the obtaining the target file according to the first configuration file and the second configuration file includes:
    比对所述第一配置文件与所述第二配置文件中的线路信息、语音信息、站点信息和/或服务设置信息,获得比对结果;Compare the line information, voice information, site information, and/or service setting information in the first configuration file with the second configuration file to obtain a comparison result;
    根据所述比对结果生成至少一个目标文件,并将所述至少一个目标文件存储至目标文件夹;Generating at least one target file according to the comparison result, and storing the at least one target file to a target folder;
    相应的,将所述目标文件发送至与所述管理系统相关联的公共交通车载系统包括:Correspondingly, sending the target file to the public transportation vehicle-mounted system associated with the management system includes:
    将所述目标文件夹发送至与所述管理系统相关联的公共交通车载系统。Send the target folder to the public transportation vehicle-mounted system associated with the management system.
  16. 如权利要求15所述的终端设备,其特征在于,所述处理器执行所述计算机程序时,所述将所述至少一个目标文件存储至目标文件夹包括:The terminal device according to claim 15, wherein when the processor executes the computer program, the storing the at least one target file to a target folder includes:
    确定每一个所述目标文件的存储层级;Determine the storage level of each of the target files;
    根据每一个所述目标文件的存储层级,分别将每一个所述目标文件存储至所述目标文件夹中所对应的层级结构中。According to the storage level of each of the target files, each of the target files is stored in a corresponding hierarchical structure in the target folder.
  17. 如权利要求15所述的终端设备,其特征在于,在将所述至少一个目标文件存储至目标文件夹之后,所述处理器执行所述计算机程序时还实现如下步骤:The terminal device according to claim 15, wherein after the at least one target file is stored in the target folder, the processor further implements the following steps when executing the computer program:
    对所述目标文件夹进行标识,所述标识指示所述目标文件夹中包含目标文件。The target folder is identified, and the identification indicates that the target folder contains a target file.
  18. 如权利要求11所述的终端设备,其特征在于,所述处理器执行所述计算机程序时,所述获取第二配置文件包括:The terminal device according to claim 11, wherein when the processor executes the computer program, the acquiring the second configuration file includes:
    根据用户对所述线路配置信息的修改操作对所述线路配置信息进行修改;Modify the line configuration information according to the user's modification operation of the line configuration information;
    在接收到修改完成的确认信息后,根据所述修改生成第二配置文件。After receiving the confirmation message that the modification is completed, a second configuration file is generated according to the modification.
  19. 如权利要求11至18任意一项所述的终端设备,其特征在于,在将所述目标文件发送至与所述管理系统相关联的公共交通车载系统之后,所述处理器执行所述计算机程序时还实现如下步骤:The terminal device according to any one of claims 11 to 18, wherein the processor executes the computer program after sending the target file to a public transportation vehicle-mounted system associated with the management system The following steps are also implemented:
    根据所述第一配置文件、所述第二配置文件和所述目标文件生成日志文件。Generate a log file according to the first configuration file, the second configuration file, and the target file.
  20. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至9任一项所述文件更新方法的步骤。A computer-readable storage medium storing a computer program, characterized in that when the computer program is executed by a processor, the steps of the file update method according to any one of claims 1 to 9 are implemented .
PCT/CN2018/123509 2018-12-25 2018-12-25 File update method, file update apparatus and terminal device WO2020132870A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/123509 WO2020132870A1 (en) 2018-12-25 2018-12-25 File update method, file update apparatus and terminal device
CN201880002613.5A CN109792460A (en) 2018-12-25 2018-12-25 A kind of file updating method, file updating device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/123509 WO2020132870A1 (en) 2018-12-25 2018-12-25 File update method, file update apparatus and terminal device

Publications (1)

Publication Number Publication Date
WO2020132870A1 true WO2020132870A1 (en) 2020-07-02

Family

ID=66500773

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/123509 WO2020132870A1 (en) 2018-12-25 2018-12-25 File update method, file update apparatus and terminal device

Country Status (2)

Country Link
CN (1) CN109792460A (en)
WO (1) WO2020132870A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131668A (en) * 2020-09-25 2020-12-25 广州文冲船厂有限责任公司 SPD outer plate database end seam checking analysis method, device, equipment and medium
CN113254033A (en) * 2021-05-28 2021-08-13 浪潮电子信息产业股份有限公司 Master disk file generation method and device, electronic equipment and storage medium
CN114220532A (en) * 2021-12-15 2022-03-22 武汉联影智融医疗科技有限公司 File configuration method, system, computer device and storage medium
CN115843008A (en) * 2023-02-15 2023-03-24 慧铁科技有限公司 Complex data processing method for railway train record carrier
CN116527691A (en) * 2023-06-27 2023-08-01 天津中远海运散运数字科技有限公司 Method, device, equipment and medium for synchronizing ship-shore data

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114900243B (en) * 2022-04-28 2023-09-01 深圳市飞速创新技术股份有限公司 Modification method and device for optical module compatible code
CN115934159A (en) * 2023-03-02 2023-04-07 云账户技术(天津)有限公司 Configuration file validation method and device, electronic equipment and readable storage medium
CN116252305B (en) * 2023-05-05 2024-02-20 苏州视通医疗科技有限公司 Control system reconstruction method, control system, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1623826A (en) * 2003-12-01 2005-06-08 海信集团有限公司 Control system for data monitoring device on bus and its method
CN102542015A (en) * 2011-12-16 2012-07-04 方正国际软件有限公司 Method and system for efficiently transmitting state information of station equipment
CN106708988A (en) * 2016-12-14 2017-05-24 交控科技股份有限公司 Urban rail transit electronic map sharing method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5093562B2 (en) * 2006-12-27 2012-12-12 アイシン・エィ・ダブリュ株式会社 Navigation device
JP4466683B2 (en) * 2007-05-31 2010-05-26 アイシン・エィ・ダブリュ株式会社 Map update system and map update method
CN101741879A (en) * 2008-11-19 2010-06-16 华为技术有限公司 Map updating method, device and system of mobile terminal
CN108600029B (en) * 2018-05-09 2022-11-08 深圳壹账通智能科技有限公司 Configuration file updating method and device, terminal equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1623826A (en) * 2003-12-01 2005-06-08 海信集团有限公司 Control system for data monitoring device on bus and its method
CN102542015A (en) * 2011-12-16 2012-07-04 方正国际软件有限公司 Method and system for efficiently transmitting state information of station equipment
CN106708988A (en) * 2016-12-14 2017-05-24 交控科技股份有限公司 Urban rail transit electronic map sharing method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131668A (en) * 2020-09-25 2020-12-25 广州文冲船厂有限责任公司 SPD outer plate database end seam checking analysis method, device, equipment and medium
CN113254033A (en) * 2021-05-28 2021-08-13 浪潮电子信息产业股份有限公司 Master disk file generation method and device, electronic equipment and storage medium
CN113254033B (en) * 2021-05-28 2023-11-03 浪潮电子信息产业股份有限公司 Method and device for generating master disc file, electronic equipment and storage medium
CN114220532A (en) * 2021-12-15 2022-03-22 武汉联影智融医疗科技有限公司 File configuration method, system, computer device and storage medium
CN115843008A (en) * 2023-02-15 2023-03-24 慧铁科技有限公司 Complex data processing method for railway train record carrier
CN116527691A (en) * 2023-06-27 2023-08-01 天津中远海运散运数字科技有限公司 Method, device, equipment and medium for synchronizing ship-shore data
CN116527691B (en) * 2023-06-27 2023-11-03 天津中远海运散运数字科技有限公司 Method, device, equipment and medium for synchronizing ship-shore data

Also Published As

Publication number Publication date
CN109792460A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
WO2020132870A1 (en) File update method, file update apparatus and terminal device
CN110365491B (en) Service processing method, device, equipment, storage medium and data sharing system
CN108156268B (en) Method for acquiring device identifier, server and terminal device
CN107153961B (en) Payment method, payment server, transaction server and readable storage medium
CN111061678B (en) Service data processing method, device, computer equipment and storage medium
WO2020125134A1 (en) Customized model tamper-proof method and apparatus, terminal device and storage medium
CN112286565B (en) Embedded system differential upgrading method based on storage container
WO2022142153A1 (en) Electricity meter upgrading method and system, smart meter, and storage medium
US11212658B2 (en) Method for providing near filed communication device information for user and system therefor
WO2019174190A1 (en) Method for importing data back, apparatus, computer device and storage medium
CN110633074A (en) Use control method and device of software development kit
CN111324645B (en) Block chain data processing method and device
CN115208671B (en) Firewall configuration method, device, electronic equipment and storage medium
WO2020181819A1 (en) Intelligent scheduling method and apparatus, computer device and storage medium
US20160078469A1 (en) Application Purchasing Method, And Terminal
WO2021097758A1 (en) Incremental package generation method, incremental package generation apparatus, and server
CN112380411B (en) Sensitive word processing method, device, electronic equipment, system and storage medium
CN115328509A (en) Algorithm changing method, device, computer equipment and storage medium
WO2021077862A1 (en) File synchronization method and device
WO2019179392A1 (en) Packet generation method and related device
CN112631623A (en) Chain code deployment method, system, device, equipment and storage medium
WO2021097622A1 (en) File processing method, file processing apparatus and terminal device
CN112052267A (en) Data query method, equipment, server and storage medium
WO2020237879A1 (en) Method and apparatus for revoking group-signed digital certificate, storage medium, and electronic device
CN112114931A (en) Deep learning program configuration method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18944802

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16.11.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18944802

Country of ref document: EP

Kind code of ref document: A1