CN114461256B - Word stock upgrading system, device and computer equipment - Google Patents

Word stock upgrading system, device and computer equipment Download PDF

Info

Publication number
CN114461256B
CN114461256B CN202210373403.5A CN202210373403A CN114461256B CN 114461256 B CN114461256 B CN 114461256B CN 202210373403 A CN202210373403 A CN 202210373403A CN 114461256 B CN114461256 B CN 114461256B
Authority
CN
China
Prior art keywords
language
byte
information
upgrading
word stock
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210373403.5A
Other languages
Chinese (zh)
Other versions
CN114461256A (en
Inventor
齐冬冬
谭斌
章维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xingka Technology Co ltd
Original Assignee
Shenzhen Xingka Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xingka Technology Co ltd filed Critical Shenzhen Xingka Technology Co ltd
Priority to CN202210373403.5A priority Critical patent/CN114461256B/en
Publication of CN114461256A publication Critical patent/CN114461256A/en
Application granted granted Critical
Publication of CN114461256B publication Critical patent/CN114461256B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application relates to the technical field of automobile diagnostic instruments and discloses a word stock upgrading system, method, device and computer equipment.A first intelligent terminal obtains a packaging protocol of a word stock upgrading packet, so that the word stock upgrading packet can be split according to the packaging protocol to obtain a plurality of language packets, and the memory of the split language packets is decomposed, so that the memory of a file occupied by each language packet is smaller than that of the word stock upgrading packet, and the uploading speed can be increased when the file is uploaded to a server; the second intelligent terminal can acquire second version information of a plurality of languages of the automobile diagnosis instrument, and upload the second version information to the server, so that the server matches the second version information with the first version information, if the matching is consistent, then transmit a plurality of language packages to the mobile phone end, the mobile phone end transmits the plurality of language packages to the automobile diagnosis instrument through Bluetooth or WiFi, the time of character library upgrading of the automobile diagnosis instrument can be greatly shortened, and the character library upgrading efficiency is improved.

Description

Word stock upgrading system, device and computer equipment
Technical Field
The application relates to the technical field of automobile diagnostic instruments, in particular to a word stock upgrading system, a word stock upgrading device and computer equipment.
Background
In the prior art, when a word stock in an automobile diagnostic instrument is upgraded, the automobile diagnostic instrument needs to be connected to a computer, and relevant configuration information is modified to complete the upgrading, so that the operation is difficult to avoid and complicated; under the condition of no computer, the automobile diagnostic instrument can also be connected with a mobile phone through Bluetooth, and the word stock packet is sent to the automobile diagnostic instrument through the mobile phone, but because the memory of the word stock packet is large, the Bluetooth transmission is too slow, for example, an 8M word stock packet can be transmitted in about one hour, so that inconvenience is brought to the upgrading of the word stock of the automobile diagnostic instrument.
Disclosure of Invention
The main purpose of this application is to provide a word stock upgrading system, aims at solving among the prior art long technical problem takes time for the automotive diagnostic instrument to carry out the word stock upgrading.
The application provides a word stock upgrading system, includes: the system comprises a first intelligent terminal, an automobile diagnostic instrument and a second intelligent terminal;
wherein the first intelligent terminal comprises a receiving module, an unpacking module and an uploading module,
the receiving module is used for receiving the word stock upgrading packet;
the unpacking module is used for acquiring a packing protocol of the word stock upgrading packet and splitting the word stock upgrading packet according to the packing protocol to obtain a plurality of language packets, wherein each language packet comprises language information and first version information corresponding to a language;
the uploading module is used for uploading a plurality of language packages to the server;
the second intelligent terminal is wirelessly connected with the automobile diagnostic instrument and is used for acquiring second version information of the automobile diagnostic instrument in multiple languages;
the second intelligent terminal sends the second version information of the multiple languages to a server, and the server is used for judging whether the second version information of the multiple languages is matched with the first version information of the multiple languages;
if the second version information of the multiple languages is matched with the first version information of the multiple languages, the server is used for sending a downloading transmission instruction to the second intelligent terminal so as to transmit the multiple language packages to the second intelligent terminal;
the second intelligent terminal transmits the plurality of language packages to the automobile diagnostic instrument;
the automobile diagnostic instrument is used for receiving the plurality of language packages and upgrading the word stock according to the plurality of language packages.
Preferably, the unpacking module analyzes the word stock upgrade package according to the packing protocol by obtaining the packing protocol of the word stock upgrade package to obtain a plurality of bytes and definition rules of each byte, and splits the word stock upgrade package according to the plurality of bytes and the definition rules of each byte to obtain a plurality of language packages and language information of each language package.
Preferably, the unpacking module intercepts byte information contents from a first preset byte to a second preset byte through definition rules of each byte, analyzes the byte information contents to obtain language byte information of the whole language package, acquires byte information of a third preset byte in the language byte information, and sequentially intercepts starting positions and ending positions corresponding to a plurality of bytes according to the byte information of the third preset byte to obtain a plurality of language packages, wherein the byte information of the third preset byte comprises language information of a first language and the starting position and the ending position of the first language in the language byte information of the whole language package.
Preferably, the unpacking module analyzes the fourth preset byte of each language package according to the language byte information of the plurality of language packages and the language byte information of the plurality of language packages to obtain the first version information of each language package.
Preferably, the second intelligent terminal acquires all byte information corresponding to each language of the automobile diagnostic instrument, and analyzes a fifth preset byte in all byte information to obtain second version information corresponding to each language.
The application also provides a word stock upgrading method, which comprises the following steps:
receiving a word stock upgrading packet;
acquiring a packaging protocol of the word stock upgrading packet, and splitting the word stock upgrading packet according to the packaging protocol to obtain a plurality of language packets, wherein each language packet comprises language information of a language and first version information corresponding to each language;
acquiring second version information corresponding to a plurality of languages of the automobile diagnostic instrument;
judging whether the second version information is matched with the first version information;
and if the second version information is matched with the first version information, sending the plurality of language packages to the automobile diagnostic instrument so that the automobile diagnostic instrument receives the plurality of language packages and carries out font upgrading according to the plurality of language packages.
Preferably, the step of obtaining a packing protocol of the word stock upgrade package, and splitting the word stock upgrade package according to the packing protocol, includes:
acquiring a packaging protocol of the word stock upgrading packet;
analyzing the word stock upgrading packet according to the packaging protocol to obtain a plurality of bytes and a definition rule of each byte;
and splitting the language packet according to the plurality of bytes and the definition rule of each byte to obtain a plurality of language packets and the language information of each language packet.
The present application further provides a word stock upgrading apparatus, including:
the receiving module is used for receiving the word stock upgrading package;
the first acquisition module is used for acquiring a packaging protocol of the word stock upgrading packet and splitting the word stock upgrading packet according to the packaging protocol to obtain a plurality of language packets, wherein each language packet comprises language information of a language and first version information corresponding to each language;
the second acquisition module is used for acquiring second version information corresponding to a plurality of languages of the automobile diagnostic instrument;
the judging module is used for judging whether the second version information is matched with the first version information;
and the sending module is used for sending the plurality of language packages to the automobile diagnostic instrument if the second version information is matched with the first version information, so that the automobile diagnostic instrument receives the plurality of language packages and carries out font upgrading according to the plurality of language packages.
The application also provides computer equipment which comprises a memory and a processor, wherein the memory stores computer programs, and the processor realizes the steps of the word stock upgrading method when executing the computer programs.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described font library upgrading method.
The beneficial effect of this application does: the first intelligent terminal can split the word stock upgrading packet according to the packaging protocol by obtaining the packaging protocol of the word stock upgrading packet to obtain a plurality of language packets, and the memory of the split language packets is decomposed, so that the file memory occupied by each language packet is smaller than that of the word stock upgrading packet, and the uploading speed can be increased when the file memory is uploaded to a server; the second intelligent terminal can acquire second version information of a plurality of languages of the automobile diagnosis instrument, and upload the second version information to the server, so that the server matches the second version information with the first version information, if the matching is consistent, a plurality of language packages are transmitted to the mobile phone end, the mobile phone end transmits the plurality of language packages to the automobile diagnosis instrument through Bluetooth or WiFi, the time for the automobile diagnosis instrument to upgrade the word stock can be greatly shortened, and the word stock upgrading efficiency is improved.
Drawings
Fig. 1 is a schematic structural diagram of a word stock upgrading system according to an embodiment of the present application.
Fig. 2 is a schematic diagram illustrating steps of a font library upgrading method according to an embodiment of the present application.
Fig. 3 is a schematic diagram of an internal structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
As shown in fig. 1 to fig. 3, the present application provides a word stock upgrading system, including: the system comprises a first intelligent terminal, an automobile diagnostic instrument and a second intelligent terminal; the first intelligent terminal comprises a receiving module, an unpacking module and an uploading module, wherein the receiving module is used for receiving a word stock upgrading package; the unpacking module is used for acquiring a packing protocol of the word stock upgrading packet and splitting the word stock upgrading packet according to the packing protocol to obtain a plurality of language packets, wherein each language packet comprises language information and first version information corresponding to a language; the uploading module is used for uploading a plurality of language packages to the server; the second intelligent terminal is wirelessly connected with the automobile diagnostic instrument and is used for acquiring second version information of the automobile diagnostic instrument in multiple languages; the second intelligent terminal sends the second version information of the multiple languages to a server, and the server is used for judging whether the second version information of the multiple languages is matched with the first version information of the multiple languages; if the second version information of the multiple languages is matched with the first version information of the multiple languages, the server is used for sending a downloading transmission instruction to the second intelligent terminal so as to transmit the multiple language packages to the second intelligent terminal; the second intelligent terminal transmits the plurality of language packages to the automobile diagnostic instrument; the automobile diagnostic instrument is used for receiving the plurality of language packages and upgrading the word stock according to the plurality of language packages. The first intelligent terminal can be any computer equipment with an unpacking module, such as a computer, a mobile phone and the like, the first intelligent terminal can split the word stock upgrading packet according to the packing protocol by obtaining the packing protocol of the word stock upgrading packet to obtain a plurality of language packets, and in an actual application scene, the first intelligent terminal can be a remote terminal, namely when the first intelligent terminal is a computer, the word stock upgrading packet can be split at the computer terminal due to the fact that the computer has the programming function required by the unpacking module, then the split plurality of language packets are uploaded to a server, and the memory of the split language packets is decomposed, so that the file memory occupied by each language packet is smaller than the word stock upgrading packet, and the uploading speed can be increased when the file memory is uploaded to the server; the second intelligent terminal can be a mobile phone terminal, the mobile phone terminal establishes wireless connection with the automobile diagnostic instrument through Bluetooth or WiFi, the mobile phone terminal can obtain second version information of multiple languages of the automobile diagnostic instrument and uploads the second version information to the server so that the server matches the second version information with the first version information, if the matching is consistent, the multiple language packages are transmitted to the mobile phone terminal, and the mobile phone terminal transmits the multiple language packages to the automobile diagnostic instrument through Bluetooth or WiFi, so that the time for the automobile diagnostic instrument to upgrade the word stock can be greatly shortened, after actual test, when the file memory of the word stock upgrade package is 8M, if the file memory is transmitted to the automobile diagnostic instrument through Bluetooth directly, the spent time is nearly one hour, after the word stock is split into 8 language packages, the file memory of each language package is less than 1M, and when the 8 language packages are transmitted to the automobile diagnostic instrument, the time for transmission via bluetooth is about 7 minutes. It should be noted that the vehicle diagnostic apparatus in this embodiment is a device with a single function, a small volume, and less hardware, and the device can only perform fault detection or data reading on some basic functions of the vehicle, and when software needs to be upgraded, the software can be completed by using an external computer or a mobile phone.
In an embodiment, the unpacking module obtains a packing protocol of the word stock upgrade package, so as to analyze the word stock upgrade package according to the packing protocol to obtain a plurality of bytes and a definition rule of each byte, and splits the word stock upgrade package according to the plurality of bytes and the definition rule of each byte to obtain a plurality of language packages and language information of each language package. The definition rules generally correspond to the packaging protocols, the packaging protocols generally are general protocols, and can also be well defined by a user in advance according to self requirements.
In one embodiment, the unpacking module intercepts byte information contents from a first preset byte to a second preset byte through definition rules of each byte, analyzes the byte information contents to obtain language byte information of the whole language packet, acquires byte information of a third preset byte, and sequentially intercepts starting positions and ending positions corresponding to a plurality of bytes according to the byte information of the third preset byte to obtain a plurality of language packets, wherein the byte information of the third preset byte includes language information of a first language, and the starting position and the ending position of the first language in the language byte information of the whole language packet. Specifically, in this embodiment, the first 244 bytes of information in the word library upgrade package are defined as the picture and system resource data, the 245 th byte is defined as the number of the language package, and the 246 th byte to 246 th byte are defined as the language byte information of the entire language package, so that the unpacking module can obtain the language package information of the entire language package by intercepting the byte information of the 246 th byte (the first preset byte) to the 444 th byte (the second preset byte), and then obtain the byte information of the third preset byte, for example, the third preset byte is the 19 th byte in the language byte information, so that the language information of the byte and the start position and end position corresponding to the language of the language can be obtained through the byte information contained in the 19 th byte, for example, the language is english, the start position of the corresponding byte is the 246 th byte, and the end position is the 271 th byte, intercepting 246 byte to 271 byte information to obtain an English packet, and continuing to obtain the byte information with the sequence number of 19 th byte, taking 272 th byte as the first bit to obtain the 19 th byte information, namely, the 291 th byte contains the language information of the next language and the starting position and the ending position corresponding to the language, and taking the next byte of the ending position as the first bit to sequentially obtain the starting positions and the ending positions corresponding to a plurality of languages, thus obtaining a plurality of language packets. Specifically, in this embodiment, 8 language packages are obtained by disassembling, and the 8 language packages are english, french, spanish, german, russian, portuguese, polish, and italian, respectively. Preferably, after 8 language packages are obtained, whether the number of the language packages obtained by splitting is the same as the number of the language packages defined by the 245 th byte or not can be judged, if so, the currently obtained language packages are correctly split, and if not, the library upgrade packages are re-split until the number of the language packages is the same as the number of the language packages defined by the 245 th byte; it should be noted that the numbers 244, 245, 246, 19, etc. appearing above are only examples for clearly illustrating the embodiment, and the user may define each language pack information on the bytes in different positions according to the actual requirement, which is not limited herein.
In one embodiment, the unpacking module analyzes the fourth preset byte of each language package according to the language byte information of the plurality of language packages and the language byte information of the plurality of language packages to obtain the first version information of each language package. Specifically, the 20 th byte (the fourth preset byte) in each language package includes the first version information of the language, and the 20 th byte in each language package is acquired, so that the first version information corresponding to each language package can be quickly obtained, and thus, the subsequent server can compare the first version information with the second version information of the vehicle diagnostic instrument through the first version information, and the occurrence of an event that the second intelligent terminal downloads a language package which is not matched with the vehicle diagnostic instrument and the upgrading efficiency of the language package is reduced is avoided.
In one embodiment, the second intelligent terminal obtains all byte information corresponding to each language of the automobile diagnostic instrument, and analyzes a fifth preset byte in all byte information to obtain second version information corresponding to each language. Specifically, when the second version information of the automobile diagnostic apparatus is analyzed, the fifth preset byte in each language packet may also be acquired, and the second version information is acquired according to the byte information of the fifth preset byte.
The application also provides a word stock upgrading method, which comprises the following steps:
s1, receiving a font library upgrading package;
s2, acquiring a packaging protocol of the word stock upgrading packet, and splitting the word stock upgrading packet according to the packaging protocol to obtain a plurality of language packets, wherein each language packet comprises language information of a language and first version information corresponding to each language;
s3, acquiring second version information corresponding to a plurality of languages of the automobile diagnostic instrument;
s4, judging whether the second version information is matched with the first version information;
and S5, if the second version information is matched with the first version information, sending the plurality of language packages to the automobile diagnostic instrument so that the automobile diagnostic instrument receives the plurality of language packages and carries out font upgrading according to the plurality of language packages.
In an embodiment, the step of obtaining a packing protocol of the word stock upgrade package, and splitting the word stock upgrade package according to the packing protocol includes:
acquiring a packaging protocol of the word stock upgrading packet;
analyzing the word stock upgrading packet according to the packaging protocol to obtain a plurality of bytes and a definition rule of each byte;
and splitting the language packet according to the plurality of bytes and the definition rule of each byte to obtain a plurality of language packets and the language information of each language packet.
It should be noted that the above font library upgrading method may be applied to the first intelligent terminal and the second intelligent terminal in the font library upgrading system in a combined manner, that is, steps S1-S2 are applied to the first intelligent terminal, and steps S3-S5 are applied to the second intelligent terminal, or may be applied to the first intelligent terminal or the second intelligent terminal, respectively, that is, steps S1-S5 may be applied to the first intelligent terminal or the second intelligent terminal, respectively.
The present application further provides a word stock upgrading apparatus, including:
the receiving module is used for receiving the word stock upgrading package;
the first acquisition module is used for acquiring a packaging protocol of the word stock upgrading packet and splitting the word stock upgrading packet according to the packaging protocol to obtain a plurality of language packets, wherein each language packet comprises language information of a language and first version information corresponding to each language;
the second acquisition module is used for acquiring second version information corresponding to a plurality of languages of the automobile diagnostic instrument;
the judging module is used for judging whether the second version information is matched with the first version information;
and the sending module is used for sending the plurality of language packages to the automobile diagnostic instrument if the second version information is matched with the first version information, so that the automobile diagnostic instrument receives the plurality of language packages and carries out font upgrading according to the plurality of language packages.
As shown in fig. 3, the present application also provides a computer device, which may be a server, and the internal structure of which may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for storing all data required by the process of upgrading the system by the word stock. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a word stock upgrade method.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is only a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects may be applied.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements any one of the above-mentioned word stock upgrading systems.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware associated with instructions of a computer program, which may be stored on a non-volatile computer-readable storage medium, and when executed, may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), dual data rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and bused dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, apparatus, article or method that comprises the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (7)

1. A word stock upgrade system, comprising: the system comprises a first intelligent terminal, an automobile diagnostic instrument and a second intelligent terminal;
wherein the first intelligent terminal comprises a receiving module, an unpacking module and an uploading module,
the receiving module is used for receiving the word stock upgrading packet;
the unpacking module is used for acquiring a packing protocol of the word stock upgrading packet and splitting the word stock upgrading packet according to the packing protocol to obtain a plurality of language packets, wherein each language packet comprises language information and first version information corresponding to a language;
the uploading module is used for uploading a plurality of language packages to the server;
the second intelligent terminal is wirelessly connected with the automobile diagnostic instrument and is used for acquiring second version information of the automobile diagnostic instrument in multiple languages;
the second intelligent terminal sends the second version information of the multiple languages to a server, and the server is used for judging whether the second version information of the multiple languages is matched with the first version information of the multiple languages;
if the second version information of the multiple languages is matched with the first version information of the multiple languages, the server is used for sending a downloading transmission instruction to the second intelligent terminal so as to transmit the multiple language packages to the second intelligent terminal;
the second intelligent terminal transmits the plurality of language packages to the automobile diagnostic instrument;
the automobile diagnostic instrument is used for receiving the plurality of language packages and upgrading a word stock according to the plurality of language packages;
the unpacking module analyzes the word stock upgrading packet according to the packing protocol by obtaining the packing protocol of the word stock upgrading packet to obtain a plurality of bytes and definition rules of each byte, and splits the word stock upgrading packet according to the plurality of bytes and the definition rules of each byte to obtain a plurality of language packets and language information of each language packet;
the unpacking module intercepts byte information contents from a first preset byte to a second preset byte through definition rules of each byte and analyzes the byte information contents to obtain language byte information of the whole language package, the unpacking module acquires byte information of a third preset byte in the language byte information and sequentially intercepts starting positions and ending positions corresponding to a plurality of bytes according to the byte information of the third preset byte to obtain a plurality of language packages, wherein the byte information of the third preset byte comprises language information of a first language and the starting position and the ending position of the first language in the language byte information of the whole language package;
and the unpacking module judges whether the number of the language packages obtained by splitting is the same as the number of the defined language packages, if so, the language packages obtained by splitting are correct, and if not, the language packages obtained by splitting are re-split.
2. The word stock upgrading system according to claim 1, wherein the unpacking module parses a fourth preset byte of each language pack according to language byte information of a plurality of language packs to obtain the first version information of each language pack.
3. The system for upgrading a word stock according to claim 1, wherein the second intelligent terminal obtains all byte information corresponding to each language of the automobile diagnostic instrument, and analyzes a fifth preset byte in all byte information to obtain second version information corresponding to each language.
4. A method for upgrading a word stock is characterized by comprising the following steps:
receiving a word stock upgrading packet;
acquiring a packaging protocol of the word stock upgrading packet, and splitting the word stock upgrading packet according to the packaging protocol to obtain a plurality of language packets, wherein each language packet comprises language information of a language and first version information corresponding to each language;
acquiring second version information corresponding to a plurality of languages of the automobile diagnostic instrument;
judging whether the second version information is matched with the first version information;
if the second version information is matched with the first version information, sending the plurality of language packages to the automobile diagnostic instrument so that the automobile diagnostic instrument receives the plurality of language packages and carries out font upgrading according to the plurality of language packages;
the step of obtaining the packaging protocol of the word stock upgrading packet and splitting the word stock upgrading packet according to the packaging protocol comprises the following steps:
acquiring a packaging protocol of the word stock upgrading packet;
analyzing the word stock upgrading packet according to the packaging protocol to obtain a plurality of bytes and a definition rule of each byte;
splitting the language package according to the plurality of bytes and the definition rule of each byte to obtain a plurality of language packages and the language information of each language package;
the method for splitting the language packet according to the plurality of bytes and the definition rule of each byte to obtain a plurality of language packets and the language information of each language packet comprises the following steps:
intercepting byte information contents from a first preset byte to a second preset byte through a definition rule of each byte, and analyzing the byte information contents to obtain language byte information of the whole language packet; acquiring byte information of a third preset byte in the language byte information, and sequentially intercepting a starting position and an ending position corresponding to a plurality of bytes according to the byte information of the third preset byte to obtain a plurality of language packets, wherein the byte information of the third preset byte comprises language information of a first language and the starting position and the ending position of the first language in the language byte information of the whole language packet;
and judging whether the number of the language packages obtained by splitting is the same as the number of the defined language packages, if so, representing that the currently obtained language packages are correctly split, and if not, re-splitting the font upgrading packages.
5. A font library upgrading apparatus, comprising:
the receiving module is used for receiving the word stock upgrading package;
the first acquisition module is used for acquiring a packaging protocol of the word stock upgrading packet and splitting the word stock upgrading packet according to the packaging protocol to obtain a plurality of language packets, wherein each language packet comprises language information of a language and first version information corresponding to each language;
the second acquisition module is used for acquiring second version information corresponding to a plurality of languages of the automobile diagnostic instrument;
the judging module is used for judging whether the second version information is matched with the first version information;
the sending module is used for sending the plurality of language packages to the automobile diagnostic instrument if the second version information is matched with the first version information, so that the automobile diagnostic instrument receives the plurality of language packages and carries out word stock upgrading according to the plurality of language packages;
the first obtaining module includes:
the first acquisition unit is used for acquiring a packaging protocol of the word stock upgrading packet;
the parsing unit is used for parsing the word stock upgrading packet according to the packaging protocol to obtain a plurality of bytes and a definition rule of each byte;
the splitting unit is used for splitting the language packet according to the plurality of bytes and the definition rule of each byte to obtain a plurality of language packets and the language information of each language packet;
wherein, split unit includes:
the first interception unit is used for intercepting byte information contents from a first preset byte to a second preset byte through a definition rule of each byte, and analyzing the byte information contents to obtain language byte information of the whole language packet;
the second intercepting unit is used for acquiring byte information of a third preset byte in the language byte information, and sequentially intercepting a starting position and an ending position corresponding to a plurality of bytes according to the byte information of the third preset byte to obtain a plurality of language packages, wherein the byte information of the third preset byte comprises language information of a first language and the starting position and the ending position of the first language in the language byte information of the whole language package;
and the judging unit is used for judging whether the number of the language packages obtained by splitting is the same as the number of the defined language packages, if so, the language packages obtained by splitting are correct, and if not, the language packages obtained by splitting are re-split.
6. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the word stock upgrading method of claim 4.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for upgrading a word stock according to claim 4.
CN202210373403.5A 2022-04-11 2022-04-11 Word stock upgrading system, device and computer equipment Active CN114461256B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210373403.5A CN114461256B (en) 2022-04-11 2022-04-11 Word stock upgrading system, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210373403.5A CN114461256B (en) 2022-04-11 2022-04-11 Word stock upgrading system, device and computer equipment

Publications (2)

Publication Number Publication Date
CN114461256A CN114461256A (en) 2022-05-10
CN114461256B true CN114461256B (en) 2022-08-30

Family

ID=81418139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210373403.5A Active CN114461256B (en) 2022-04-11 2022-04-11 Word stock upgrading system, device and computer equipment

Country Status (1)

Country Link
CN (1) CN114461256B (en)

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7085680B2 (en) * 2004-01-16 2006-08-01 Innova Electronics Corporation Vehicle diagnostic tool
CN101097138B (en) * 2006-06-30 2010-09-22 佛山市顺德区顺达电脑厂有限公司 Real time language switching navigation system and method thereof
CN101930427A (en) * 2009-06-19 2010-12-29 深圳市朗科科技股份有限公司 Word stock expanding device and method for front-mounted recreational navigation system of automobile
CN102087601A (en) * 2009-12-05 2011-06-08 Tcl集团股份有限公司 Method and device for configuring languages of terminal
CN106033453A (en) * 2015-03-17 2016-10-19 北大方正集团有限公司 Character embedding method, character embedding system, browser and client
CN106155036B (en) * 2015-04-07 2019-10-29 深圳市一体数科科技有限公司 A kind of automotive diagnostic system, system and method
CN106066801B (en) * 2015-04-20 2020-02-21 比亚迪股份有限公司 Remote updating method, system and server for vehicle and vehicle
CN106802818A (en) * 2016-12-31 2017-06-06 智车优行科技(北京)有限公司 The upgrade method of mobile unit, business processing device and system, vehicle
CN107423291B (en) * 2017-05-05 2020-12-29 腾讯科技(深圳)有限公司 Data translation method and client device
CN108536480B (en) * 2017-12-28 2021-05-28 Oppo广东移动通信有限公司 Input method configuration method and related product
CN108182080A (en) * 2017-12-28 2018-06-19 重庆德科电子仪表有限公司 A kind of method of automobile instrument software upgrading
CN111104197A (en) * 2019-12-24 2020-05-05 深南电路股份有限公司 Display language switching method and device and storage medium

Also Published As

Publication number Publication date
CN114461256A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
CN109766262B (en) Interface data processing method, automatic testing method, device, equipment and medium
CN108628626B (en) Development environment building method, code updating method and device
CN110597714A (en) Kafka message testing method and device, computer equipment and storage medium
CN110134457A (en) Plug-in loading method and device
CN113064685A (en) H5 page loading method and device
CN114461256B (en) Word stock upgrading system, device and computer equipment
CN113535211B (en) Application program updating method and device, computer equipment and storage medium
CN113301161B (en) Seamless upgrading method, device, equipment and storage medium of application service
CN107918587B (en) Debugging method and system for application program
CN112965732A (en) Resource package obtaining method, intelligent wearable device and storage medium
CN111190629B (en) Embedded terminal upgrading software package and analysis method thereof
CN112770108A (en) Performance test method, device and system and computer readable storage medium
CN113094077B (en) System differential upgrading method and device, intelligent terminal and storage medium
CN112181822A (en) Test method and test method for starting time consumption of application program
CN115396248A (en) Remote equipment control method, device, system, electronic device and storage medium
CN111107100B (en) Equipment for transmitting industrial protocol flow message
CN113672243A (en) Linux system installation method, device, system, computer equipment and storage medium
CN114003486A (en) Plug-in debugging method, client, server and storage medium
CN112800474A (en) Data desensitization method and device, storage medium and electronic device
CN113076126A (en) Remote automobile power calibration method, device, equipment and storage medium
CN112379902A (en) Method, apparatus and computer-readable storage medium for adapting a plurality of end devices
CN111522564A (en) Method and device for identifying system upgrading state and computer readable storage medium
CN112015478B (en) Kernel loading method, server, device, computer device and storage medium
CN113934752B (en) Spark component-based data processing method, device, equipment and medium
CN113051146B (en) Monkey-based testing method, apparatus, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 2606, building 4, phase II, Tian'an Yungu Industrial Park, Gangtou community, Bantian street, Longgang District, Shenzhen, Guangdong

Applicant after: Shenzhen xingka Technology Co.,Ltd.

Address before: 518000 2606, building 4, phase II, Tian'an Yungu Industrial Park, Gangtou community, Bantian street, Longgang District, Shenzhen, Guangdong

Applicant before: Shenzhen Star Card Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant