Movatterモバイル変換


[0]ホーム

URL:


CN107423099B - Key code programming method, server, terminal, key code programming system and storage medium - Google Patents

Key code programming method, server, terminal, key code programming system and storage medium
Download PDF

Info

Publication number
CN107423099B
CN107423099BCN201710641027.2ACN201710641027ACN107423099BCN 107423099 BCN107423099 BCN 107423099BCN 201710641027 ACN201710641027 ACN 201710641027ACN 107423099 BCN107423099 BCN 107423099B
Authority
CN
China
Prior art keywords
key code
terminal
code
server
scanning device
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
CN201710641027.2A
Other languages
Chinese (zh)
Other versions
CN107423099A (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.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group 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 BOE Technology Group Co LtdfiledCriticalBOE Technology Group Co Ltd
Priority to CN201710641027.2ApriorityCriticalpatent/CN107423099B/en
Publication of CN107423099ApublicationCriticalpatent/CN107423099A/en
Application grantedgrantedCritical
Publication of CN107423099BpublicationCriticalpatent/CN107423099B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a key code programming method, a key code programming server, a key code programming system and a storage medium, and belongs to the field of key code programming. The method comprises the following steps: receiving a key code acquisition request sent by a terminal to be programmed with a key code, wherein the key code acquisition request carries a first key code type identifier; acquiring a first target key code from a plurality of key codes stored in a key code database, wherein the type of the first target key code is the same as the type indicated by the first key code type identifier; sending the first target key code to the terminal; acquiring identification information of a terminal; and correspondingly storing the first target key code and the identification information in a programming log file. The key code programming method provided by the invention has the advantages of simpler overall process and higher security of the key code.

Description

Translated fromChinese
键码烧写方法、服务器、终端、键码烧写系统及存储介质Key code programming method, server, terminal, key code programming system and storage medium

技术领域technical field

本发明涉及键码烧写领域,特别涉及一种键码烧写方法、键码烧写服务器、键码烧写系统及存储介质。The invention relates to the field of key code programming, in particular to a key code programming method, a key code programming server, a key code programming system and a storage medium.

背景技术Background technique

键码(也可称为key码)是存储于终端中,用于标识终端或者用于保证终端能够实现某些功能的数据,例如,在实际应用中,键码可以包括用于唯一标识终端的物理地址、保证终端能够解码高清视频的HDCP(High-bandwidth Digital Content Protection,高带宽数码内容保护)码、终端接入某些网络服务所需的密钥等。通常情况下,在终端出厂前需要在终端中烧写上述键码,其中,所谓烧写键码指的是将键码存储至终端的预设存储位置中。A key code (also called a key code) is data stored in the terminal and used to identify the terminal or to ensure that the terminal can implement certain functions. The physical address, the HDCP (High-bandwidth Digital Content Protection) code that ensures that the terminal can decode high-definition video, and the key required for the terminal to access certain network services, etc. Usually, the above-mentioned key codes need to be programmed in the terminal before the terminal leaves the factory, wherein the so-called programming of the key codes refers to storing the key codes in the preset storage location of the terminal.

相关技术中,在烧写键码前,可以将待烧写至某一终端的多个键码对应存储于存储卡中的一个文件中,并在该文件中配置上述多个键码中的每一个键码在终端中的存储位置,在烧写过程中,可以将上述文件从存储卡转移至该某一终端中,并由该终端根据文件中的数据完成键码的烧写。In the related art, before writing the key code, a plurality of key codes to be written to a certain terminal can be stored in a file in the memory card correspondingly, and each of the above-mentioned key codes can be configured in the file. The storage location of a key code in the terminal. During the programming process, the above-mentioned file can be transferred from the memory card to the certain terminal, and the terminal can complete the programming of the key code according to the data in the file.

在实现本发明的过程中,发明人发现现有技术至少存在以下不足之处:In the process of realizing the present invention, the inventor found that the prior art has at least the following shortcomings:

现有技术中,烧写键码前需要将多个键码对应存储于文件中,且在该文件中配置多个键码分别在终端中的存储位置,这会导致键码的烧写准备工作复杂,同时,将键码存储于存储卡中还增加了键码损坏及丢失的风险,安全性较低。In the prior art, it is necessary to store a plurality of key codes in a file correspondingly before programming the key codes, and configure the storage positions of the plurality of key codes in the terminal respectively in the file, which will lead to the preparation work for programming the key codes. At the same time, storing the key code in the memory card also increases the risk of damage and loss of the key code, and the security is low.

发明内容SUMMARY OF THE INVENTION

为了解决现有技术键码烧写整体流程复杂,安全性较低的问题,本发明实施例提供了一种键码烧写方法、键码烧写服务器、键码烧写系统及存储介质。所述技术方案如下:In order to solve the problems of complex key code programming process and low security in the prior art, embodiments of the present invention provide a key code programming method, a key code programming server, a key code programming system and a storage medium. The technical solution is as follows:

第一方面,提供了一种键码烧写方法,用于键码烧写系统中的服务器,所述方法包括:A first aspect provides a key code programming method for a server in a key code programming system, the method comprising:

接收待烧写键码的终端发送的键码获取请求,所述键码获取请求携带第一键码类型标识;receiving a key code acquisition request sent by a terminal to be programmed with a key code, where the key code acquisition request carries a first key code type identifier;

从键码数据库中存储的多个键码中获取第一目标键码,所述第一目标键码的类型与所述第一键码类型标识所指示的类型相同;Obtain a first target key code from a plurality of key codes stored in the key code database, and the type of the first target key code is the same as the type indicated by the first key code type identifier;

将所述第一目标键码发送至所述终端中;sending the first target key code to the terminal;

获取所述终端的标识信息;obtaining the identification information of the terminal;

将所述第一目标键码与所述标识信息对应存储于烧写日志文件中。The first target key code and the identification information are correspondingly stored in the programming log file.

可选的,所述键码烧写系统还包括扫码装置,所述获取所述终端的标识信息,包括:Optionally, the key code programming system further includes a code scanning device, and the acquiring the identification information of the terminal includes:

接收扫码装置发送的所述终端的标识信息,所述扫码装置用于通过扫描所述终端上张贴的条码贴获取所述终端的标识信息,所述扫码装置与所述终端在同一时间段通过同一路由设备与所述服务器进行通信。Receive the identification information of the terminal sent by the code scanning device, the code scanning device is used to obtain the identification information of the terminal by scanning the barcode posted on the terminal, and the code scanning device and the terminal are at the same time The segment communicates with the server through the same routing device.

可选的,所述将所述第一目标键码发送至所述终端中,包括:Optionally, the sending the first target key code to the terminal includes:

将所述第一目标键码进行加密处理得到加密后的第一目标键码;Encrypting the first target key code to obtain the encrypted first target key code;

将所述加密后的第一目标键码发送至所述终端中。Send the encrypted first target key code to the terminal.

可选的,所述方法还包括:Optionally, the method further includes:

接收所述终端发送的重新烧写键码请求,所述重新烧写键码请求是所述终端在已经烧写的键码损坏后发送的,所述重新烧写键码请求携带用于指示损坏的键码的类型的第二键码类型标识;Receive a reprogramming keycode request sent by the terminal, the reprogramming keycode request is sent by the terminal after the programmed keycode is damaged, and the reprogramming keycode request is carried to indicate the damage The second key code type identifier of the type of the key code;

从所述烧写日志文件中查找与所述终端的标识信息对应的至少一个键码;Find at least one key code corresponding to the identification information of the terminal from the programming log file;

从所述至少一个键码中获取第二目标键码,所述第二目标键码的类型与所述第二键码类型标识所指示的类型相同;Obtain a second target key code from the at least one key code, the type of the second target key code is the same as the type indicated by the second key code type identifier;

将所述第二目标键码发送至所述终端中。Send the second target key code to the terminal.

第二方面,提供了一种键码烧写方法,用于待烧写键码的终端,所述方法包括:In a second aspect, a key code programming method is provided, which is used for a terminal to be programmed with a key code, and the method includes:

向键码烧写系统中的服务器发送键码获取请求,所述键码获取请求携带第一键码类型标识;sending a key code acquisition request to the server in the key code programming system, where the key code acquisition request carries the first key code type identifier;

接收所述服务器发送的第一目标键码,所述第一目标键码是所述服务器从键码数据库中存储的多个键码中获取的,所述第一目标键码的类型与所述第一键码类型标识所指示的类型相同;Receive the first target key code sent by the server, the first target key code is obtained by the server from a plurality of key codes stored in the key code database, and the type of the first target key code is the same as that of the The type indicated by the first key code type identifier is the same;

将所述第一目标键码存储至所述终端的预设存储位置。The first target key code is stored in a preset storage location of the terminal.

第三方面,提供了一种服务器,所述服务器为键码烧写系统中的服务器,所述服务器包括:In a third aspect, a server is provided, the server is a server in a key code programming system, and the server includes:

接收模块,用于接收待烧写键码的终端发送的键码获取请求,所述键码获取请求携带第一键码类型标识;a receiving module, configured to receive a key code acquisition request sent by a terminal to be programmed with a key code, where the key code acquisition request carries a first key code type identifier;

第一获取模块,用于从键码数据库中存储的多个键码中获取第一目标键码,所述第一目标键码的类型与所述第一键码类型标识所指示的类型相同;The first acquisition module is used to acquire the first target key code from a plurality of key codes stored in the key code database, and the type of the first target key code is the same as the type indicated by the first key code type identifier;

发送模块,用于将所述第一目标键码发送至所述终端中;a sending module, configured to send the first target key code to the terminal;

第二获取模块,用于获取所述终端的标识信息;a second obtaining module, configured to obtain the identification information of the terminal;

存储模块,用于将所述第一目标键码与所述标识信息对应存储于烧写日志文件中。A storage module, configured to store the first target key code and the identification information in the programming log file correspondingly.

可选的,所述键码烧写系统还包括扫码装置,所述第二获取模块,用于:Optionally, the key code programming system further includes a code scanning device, and the second acquisition module is used for:

接收扫码装置发送的所述终端的标识信息,所述扫码装置用于通过扫描所述终端上张贴的条码贴获取所述终端的标识信息,所述扫码装置与所述终端在同一时间段通过同一路由设备与所述服务器进行通信。Receive the identification information of the terminal sent by the code scanning device, the code scanning device is used to obtain the identification information of the terminal by scanning the barcode posted on the terminal, and the code scanning device and the terminal are at the same time The segment communicates with the server through the same routing device.

第四方面,提供了一种终端,所述终端包括:In a fourth aspect, a terminal is provided, and the terminal includes:

发送模块,用于向键码烧写系统中的服务器发送键码获取请求,所述键码获取请求携带第一键码类型标识;a sending module, configured to send a key code acquisition request to the server in the key code programming system, where the key code acquisition request carries a first key code type identifier;

接收模块,用于接收所述服务器发送的第一目标键码,所述第一目标键码是所述服务器从键码数据库中存储的多个键码中获取的,所述第一目标键码的类型与所述第一键码类型标识所指示的类型相同;A receiving module, configured to receive the first target key code sent by the server, the first target key code is obtained by the server from a plurality of key codes stored in the key code database, the first target key code The type is the same as the type indicated by the first key code type identifier;

存储模块,用于将所述第一目标键码存储至所述终端的预设存储位置。A storage module, configured to store the first target key code in a preset storage location of the terminal.

第五方面,提供了一种键码烧写系统,所述键码烧写系统包括服务器和扫码装置;In a fifth aspect, a key code programming system is provided, and the key code programming system includes a server and a code scanning device;

所述服务器,用于执行上述第一方面和第二方面任一所述的键码烧写方法中服务器所执行的方法;The server is configured to execute the method performed by the server in the key code programming method described in any of the first aspect and the second aspect;

所述扫码装置,用于执行上述第一方面和第二方面任一所述的键码烧写方法中扫码装置所执行的方法。The code scanning device is configured to execute the method executed by the code scanning device in the key code programming method described in any one of the first aspect and the second aspect.

第六方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,存储的所述计算机程序被服务器执行时能够实现上述第一方面任一所述的键码烧写方法;In a sixth aspect, a computer-readable storage medium is provided, and a computer program is stored in the computer-readable storage medium, and the stored computer program can realize the key code described in any one of the first aspect above when the stored computer program is executed by the server. programming method;

或者,存储的所述计算机程序被终端执行时能够实现上述第二方面所述的键码烧写方法。Alternatively, when the stored computer program is executed by the terminal, the method for writing a key code described in the second aspect can be implemented.

本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solutions provided in the embodiments of the present invention are:

通过服务器接收待烧写键码的终端发送的键码获取请求,并根据该键码获取请求获取第一目标键码,而后服务器可以将第一目标键码发送至终端中,同时在终端烧写了该第一目标键码后服务器可以将该第一目标键码与终端的标识信息对应存储于烧写日志文件中,这样,终端可以根据自身需要烧写的键码的类型向服务器请求键码,同时服务器可以响应终端的请求向终端发送键码从而完成键码的烧写,因此,本发明实施例在向终端烧写键码之前不需要执行将待烧写至终端的多个键码对应存储于一个文件的技术过程,也不需要执行为每个键码配置存储位置的技术过程,所以键码烧写的整体流程较为简单,同时,本发明实施例中键码存储于服务器中,这可以有效规避键码损坏和丢失的风险,因此提高了键码的安全性。Receive the key code acquisition request sent by the terminal to be programmed with the key code through the server, and obtain the first target key code according to the key code acquisition request, and then the server can send the first target key code to the terminal, and at the same time write the key code in the terminal After the first target key code is obtained, the server can store the first target key code and the identification information of the terminal in the programming log file, so that the terminal can request the key code from the server according to the type of the key code that needs to be programmed. , at the same time, the server can send key codes to the terminal in response to the request of the terminal to complete the programming of the key codes. Therefore, in this embodiment of the present invention, before programming the key codes to the terminal, it is not necessary to execute the corresponding key codes to be programmed into the terminal. The technical process of storing in a file does not need to perform the technical process of configuring a storage location for each key code, so the overall process of key code programming is relatively simple. Meanwhile, in the embodiment of the present invention, the key code is stored in the server, which The risk of damage and loss of the key code can be effectively avoided, thus improving the security of the key code.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本发明实施例提供的一种键码烧写方法的实施环境的示意图。FIG. 1 is a schematic diagram of an implementation environment of a key code programming method provided by an embodiment of the present invention.

图2是本发明实施例提供的一种键码烧写方法的流程图。FIG. 2 is a flowchart of a key code programming method provided by an embodiment of the present invention.

图3是本发明实施例提供的一种键码烧写方法的流程图。FIG. 3 is a flowchart of a key code programming method provided by an embodiment of the present invention.

图4是本发明实施例提供的一种键码烧写方法的流程图。FIG. 4 is a flowchart of a key code programming method provided by an embodiment of the present invention.

图5是本发明实施例提供的一种服务器的框图。FIG. 5 is a block diagram of a server provided by an embodiment of the present invention.

图6是本发明实施例提供的一种终端的框图。FIG. 6 is a block diagram of a terminal provided by an embodiment of the present invention.

图7是本发明实施例提供的另一种终端的框图。FIG. 7 is a block diagram of another terminal provided by an embodiment of the present invention.

图8是本发明实施例提供的另一种服务器的框图。FIG. 8 is a block diagram of another server provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

通常情况下,在终端出厂前需要为终端烧写键码,其中,键码也可以称为key码,是一种用于标识终端或者用于保证终端能够实现某些功能的数据,例如,键码可以为物理地址(用于唯一标识终端)、也可以为保证终端能够解码高清视频的HDCP(High-bandwidthDigital Content Protection,高带宽数码内容保护)码、还可以为终端接入某些网络服务所需的密钥等。Usually, the terminal needs to be programmed with a key code before it leaves the factory. The key code can also be called a key code, which is a kind of data used to identify the terminal or to ensure that the terminal can implement certain functions. For example, the key The code can be a physical address (used to uniquely identify the terminal), or an HDCP (High-bandwidth Digital Content Protection) code to ensure that the terminal can decode high-definition video, or it can be used for the terminal to access some network services. required key, etc.

在实际应用中,通常需要为一个终端烧写多个不同类型的键码,例如,在某一终端出厂前可以为该终端烧写物理地址、HDCP码和接入某一网络服务所需的密钥这三种类型的键码。In practical applications, it is usually necessary to program a terminal with multiple key codes of different types. For example, the physical address, HDCP code and password required to access a network service can be programmed for a terminal before it leaves the factory. key These three types of key codes.

现有技术中,在为终端烧写键码之前,可以将需要烧写至终端的多个不同类型的键码对应存储于存储卡中的一个文件中,并在该文件中配置每个类型的键码在终端中的存储位置。而后,在为终端烧写键码时,可以利用烧录器将上述文件中的多个不同类型的键码按照预先配置的存储位置烧写至终端中。In the prior art, before writing the key codes for the terminal, a plurality of different types of key codes that need to be written to the terminal can be stored in a file in the memory card correspondingly, and each type of key codes can be configured in the file. Where the keycode is stored in the terminal. Then, when programming the key code for the terminal, a programmer can be used to program a plurality of different types of key codes in the above file into the terminal according to the preconfigured storage location.

由于现有技术中,在为终端烧写键码之前需要执行将多个不同类型的键码对应存储于存储卡中的一个文件中,并为每个类型的键码配置在终端中的存储位置的技术过程,因此,现有技术中键码烧写的整体流程较为复杂,同时,将键码存储于存储卡中还增加了键码损坏及丢失的风险,安全性较低。Because in the prior art, before programming the key codes for the terminal, it is necessary to store a plurality of different types of key codes in a file in the memory card, and configure the storage location in the terminal for each type of key codes Therefore, the overall process of key code programming in the prior art is relatively complicated, and at the same time, storing the key code in the memory card also increases the risk of damage and loss of the key code, and the security is low.

为了解决上述问题,本发明实施例提供了一种键码烧写方法,图1所示为该键码烧写方法所涉及到的实施环境的示意图。如图1所示,该实施环境可以包括服务器101、扫码装置102和待烧写键码的终端103,在实际应用中,扫码装置102和终端103可以通过同一路由设备L与服务器101进行通信,其中,终端103可以为手机、电脑、电视机、平板电脑、电子书阅读器、音响、电视机等设备。In order to solve the above problem, an embodiment of the present invention provides a key code programming method, and FIG. 1 is a schematic diagram of an implementation environment involved in the key code programming method. As shown in FIG. 1 , the implementation environment may include aserver 101, acode scanning device 102, and a terminal 103 to be programmed with a key code. In practical applications, thecode scanning device 102 and the terminal 103 may communicate with theserver 101 through the same routing device L. For communication, the terminal 103 may be a mobile phone, a computer, a television, a tablet computer, an e-book reader, an audio system, a television, or other devices.

扫码装置102可以扫描终端103上张贴的条码贴以获取终端103的标识信息,通常情况下,该标识信息可以为终端103的序列号或物理地址等,扫码装置102可以将获取到的上述标识信息通过路由设备L发送至服务器101。此外,终端103可以通过路由设备L向服务器101发送键码获取请求。Thecode scanning device 102 can scan the barcode posted on the terminal 103 to obtain the identification information of the terminal 103. Usually, the identification information can be the serial number or physical address of the terminal 103. The identification information is sent to theserver 101 through the routing device L. In addition, the terminal 103 may send a key code acquisition request to theserver 101 through the routing device L.

服务器101可以在确定发送键码获取请求的终端103的路由路径与发送上述标识信息的扫码装置102的路由路径相同时,将扫码装置102发送的标识信息与终端103建立关联,并在建立上述关联后响应终端103发送的键码获取请求,为终端103分配键码以由终端103将该分配的键码存储于终端103的指定存储位置,而后服务器101可以将为终端103分配的键码和与终端103建立关联的标识信息对应存储起来,以方便后续导出进行统计或授权。When determining that the routing path of the terminal 103 that sends the key code acquisition request is the same as the routing path of thecode scanning device 102 that sends the above identification information, theserver 101 can associate the identification information sent by thescanning device 102 with the terminal 103, and after establishing the identification information After the above association, in response to the key code acquisition request sent by the terminal 103, a key code is allocated to the terminal 103 so that the terminal 103 stores the allocated key code in the designated storage location of the terminal 103, and then theserver 101 can allocate the key code for the terminal 103. It is stored corresponding to the identification information associated with the terminal 103 to facilitate subsequent export for statistics or authorization.

图2所示为本发明实施例提供的键码烧写方法的流程图,该键码烧写方法用于图1所示的服务器101中,如图2所示,该键码烧写方法可以包括以下步骤:FIG. 2 is a flowchart of a key code programming method provided by an embodiment of the present invention. The key code programming method is used in theserver 101 shown in FIG. 1 . As shown in FIG. 2 , the key code programming method can be Include the following steps:

步骤201、服务器接收待烧写键码的终端发送的键码获取请求,该键码获取请求携带第一键码类型标识。Step 201: The server receives a key code acquisition request sent by the terminal to be programmed with the key code, where the key code acquisition request carries a first key code type identifier.

步骤202、服务器从键码数据库中存储的多个键码中获取第一目标键码,该第一目标键码的类型与上述第一键码类型标识所指示的类型相同。Step 202: The server obtains a first target key code from a plurality of key codes stored in the key code database, and the type of the first target key code is the same as that indicated by the above-mentioned first key code type identifier.

步骤203、服务器将该第一目标键码发送至上述终端中。Step 203: The server sends the first target key code to the above-mentioned terminal.

步骤204、服务器获取上述终端的标识信息。Step 204: The server obtains the identification information of the above-mentioned terminal.

步骤205、服务器将第一目标键码与上述标识信息对应存储于烧写日志文件中。Step 205: The server stores the first target key code and the above-mentioned identification information in the programming log file correspondingly.

综上所述,本发明实施例提供的键码烧写方法,通过服务器接收待烧写键码的终端发送的键码获取请求,并根据该键码获取请求获取第一目标键码,而后服务器可以将第一目标键码发送至终端中,同时在终端烧写了该第一目标键码后服务器可以将该第一目标键码与终端的标识信息对应存储于烧写日志文件中,这样,终端可以根据自身需要烧写的键码的类型向服务器请求键码,同时服务器可以响应终端的请求向终端发送键码从而完成键码的烧写,因此,本发明实施例在向终端烧写键码之前不需要执行将待烧写至终端的多个键码对应存储于一个文件的技术过程,也不需要执行为每个键码配置存储位置的技术过程,所以键码烧写的整体流程较为简单,同时,本发明实施例中键码存储于服务器中,这可以有效规避键码损坏和丢失的风险,因此提高了键码的安全性。To sum up, in the key code programming method provided by the embodiment of the present invention, the server receives the key code acquisition request sent by the terminal to be programmed with the key code, and acquires the first target key code according to the key code acquisition request, and then the server The first target key code can be sent to the terminal, and at the same time, after the terminal has programmed the first target key code, the server can store the first target key code and the identification information of the terminal in the programming log file, so that, The terminal can request the key code from the server according to the type of the key code that needs to be programmed, and the server can send the key code to the terminal in response to the request of the terminal to complete the programming of the key code. There is no need to perform the technical process of storing multiple keycodes to be programmed to the terminal in one file before coding, nor the technical process of configuring the storage location for each keycode, so the overall process of keycode programming is relatively Simultaneously, in the embodiment of the present invention, the key code is stored in the server, which can effectively avoid the risk of damage and loss of the key code, thus improving the security of the key code.

图3所示为本发明实施例提供的键码烧写方法的流程图,该键码烧写方法用于图1所示的终端103中,如图3所示,该键码烧写方法可以包括以下步骤:FIG. 3 is a flowchart of a key code programming method provided by an embodiment of the present invention. The key code programming method is used in the terminal 103 shown in FIG. 1 . As shown in FIG. 3 , the key code programming method can be Include the following steps:

步骤301、终端向键码烧写系统中的服务器发送键码获取请求,该键码获取请求携带第一键码类型标识。Step 301: The terminal sends a key code acquisition request to the server in the key code programming system, where the key code acquisition request carries a first key code type identifier.

步骤302、终端接收该服务器发送的第一目标键码,该第一目标键码是该服务器从键码数据库中存储的多个键码中获取的,该第一目标键码的类型与该第一键码类型标识所指示的类型相同。Step 302, the terminal receives the first target key code sent by the server, the first target key code is obtained by the server from a plurality of key codes stored in the key code database, and the type of the first target key code is the same as that of the first target key code. The type indicated by the one-key code type identifier is the same.

步骤303、终端将该第一目标键码存储至终端的预设存储位置。Step 303: The terminal stores the first target key code in a preset storage location of the terminal.

综上所述,本发明实施例提供的键码烧写方法,通过待烧写键码的终端向服务器发送键码获取请求,使得服务器根据该键码获取请求获取第一目标键码,并将第一目标键码发送至终端中,同时在终端烧写了该第一目标键码后服务器可以将该第一目标键码与终端的标识信息对应存储于烧写日志文件中,这样,终端可以根据自身需要烧写的键码的类型向服务器请求键码,同时服务器可以响应终端的请求向终端发送键码从而完成键码的烧写,因此,本发明实施例在向终端烧写键码之前不需要执行将待烧写至终端的多个键码对应存储于一个文件的技术过程,也不需要执行为每个键码配置存储位置的技术过程,所以键码烧写的整体流程较为简单,同时,本发明实施例中键码存储于服务器中,这可以有效规避键码损坏和丢失的风险,因此提高了键码的安全性。To sum up, in the key code programming method provided by the embodiments of the present invention, a key code acquisition request is sent to the server through the terminal to be programmed with the key code, so that the server acquires the first target key code according to the key code acquisition request, and sends the key code to the server. The first target key code is sent to the terminal, and at the same time, after the terminal has programmed the first target key code, the server may store the first target key code and the identification information of the terminal in the programming log file, so that the terminal can Request the key code from the server according to the type of the key code that needs to be programmed. At the same time, the server can send the key code to the terminal in response to the request of the terminal to complete the programming of the key code. Therefore, in this embodiment of the present invention, before programming the key code to the terminal There is no need to perform the technical process of storing multiple keycodes to be written to the terminal in one file, nor to perform the technical process of configuring the storage location for each keycode, so the overall process of keycode programming is relatively simple. Meanwhile, in the embodiment of the present invention, the key code is stored in the server, which can effectively avoid the risk of damage and loss of the key code, thus improving the security of the key code.

图4所示为本发明实施例提供的键码烧写方法的流程图,该键码烧写方法用于图1所示实施环境中,如图4所示,该键码烧写方法可以包括以下步骤:FIG. 4 is a flowchart of a key code programming method provided by an embodiment of the present invention. The key code programming method is used in the implementation environment shown in FIG. 1 . As shown in FIG. 4 , the key code programming method may include: The following steps:

步骤401、终端通过指定路由设备与服务器建立通信连接。Step 401: The terminal establishes a communication connection with the server through a designated routing device.

在实际应用中,终端生产厂商可以配置多条产线同时生产终端,其中,每一条产线均可以配置一个扫码装置,该扫码装置可以与路由设备建立连接,并通过该路由设备与服务器进行通信。通常情况下,不同产线上的扫码装置与不同的路由设备建立连接,并通过该不同的路由设备与服务器进行通信。In practical applications, a terminal manufacturer can configure multiple production lines to produce terminals at the same time. Each production line can be configured with a code scanning device, which can establish a connection with a routing device and communicate with the server through the routing device. to communicate. Usually, barcode scanning devices on different production lines establish connections with different routing devices, and communicate with the server through the different routing devices.

在为某一条产线上的终端烧写键码时,可以令该终端与指定路由设备建立连接,并通过该指定路由设备与服务器进行通信,其中,上述指定路由设备和与该某一产线上配置的扫码装置建立连接的路由设备为同一路由设备。需要指出的是,通常情况下,一条产线上同时只能有一台终端与上述指定路由器建立连接。When programming a key code for a terminal on a production line, the terminal can be connected to a designated routing device and communicate with the server through the designated routing device. The routing device to which the barcode scanning device configured above establishes a connection is the same routing device. It should be pointed out that, under normal circumstances, only one terminal on a production line can establish a connection with the above designated router at the same time.

实际应用中,在终端通过上述指定路由设备与服务器建立通信连接的过程中,还可以测试终端的网络功能是否正常,可选地,当终端与服务器建立了通信连接之后,服务器可以向终端发送连接成功信息,若终端在预设时间内接收到该连接成功信息,则说明终端的网络功能正常,若终端在预设时间内没有接收到该连接成功信息,则说明终端的网络功能不正常。这样,本发明实施例就可以同时进行测试终端网络功能和为终端烧写键码的技术过程,从而可以提高终端的生产效率。In practical applications, in the process of establishing a communication connection between the terminal and the server through the above-mentioned designated routing device, it is also possible to test whether the network function of the terminal is normal. Success information. If the terminal receives the connection success information within the preset time, it means that the network function of the terminal is normal. If the terminal does not receive the connection success information within the preset time, it means that the network function of the terminal is abnormal. In this way, the embodiment of the present invention can simultaneously perform the technical process of testing the network function of the terminal and programming the key code for the terminal, thereby improving the production efficiency of the terminal.

步骤402、终端通过指定路由设备向服务器发送键码获取请求,该键码获取请求携带第一键码类型标识。Step 402: The terminal sends a key code acquisition request to the server through the designated routing device, where the key code acquisition request carries the first key code type identifier.

在终端通过指定路由设备与服务器建立通信连接之后,终端可以向服务器发送键码获取请求,该键码获取请求可以携带第一键码类型标识,其中,该第一键码类型标识用于指示需要烧写至终端的键码的类型,例如,该第一键码类型标识可以包括物理地址标识、HDCP码标识和密钥标识。After the terminal establishes a communication connection with the server through the designated routing device, the terminal may send a key code acquisition request to the server, where the key code acquisition request may carry a first key code type identifier, where the first key code type identifier is used to indicate the need for The type of the key code programmed into the terminal, for example, the first key code type identifier may include a physical address identifier, an HDCP code identifier, and a key identifier.

步骤403、扫码装置扫描张贴于终端上的条码贴获取终端的标识信息,并将该标识信息通过指定路由设备发送至服务器。Step 403: The scanning device scans the barcode posted on the terminal to obtain identification information of the terminal, and sends the identification information to the server through the designated routing device.

在实际应用中,终端上一般可以张贴有条码贴,该条码贴上可以印制有一维码、二维码等图案,扫码装置可以扫描条码贴上的图案,并基于扫描到的图案获取终端的标识信息。在本发明的一个实施例中,该标识信息可以为终端的序列号、终端的物理地址等用于标识终端的信息。扫码装置在获取到终端的标识信息后,可以通过指定路由设备将该标识信息发送至服务器。In practical applications, a barcode sticker can generally be posted on the terminal. The barcode sticker can be printed with patterns such as one-dimensional code and two-dimensional code. The barcode scanning device can scan the pattern on the barcode sticker and obtain the terminal based on the scanned pattern. identification information. In an embodiment of the present invention, the identification information may be information used to identify the terminal, such as the serial number of the terminal, the physical address of the terminal, and the like. After acquiring the identification information of the terminal, the scanning device can send the identification information to the server through the designated routing device.

在实际应用中,扫码装置扫描终端上张贴的条码贴除了可以获取终端的标识信息外,还可以获取条码贴的标签,该条码贴的标签用于指示条码贴上承载的终端的标识信息的类型,例如,条码贴的标签可以指示条码贴上承载的终端的标识信息的类型为物理地址类型,或者,条码贴的标签可以指示条码贴上承载的终端的标识信息的类型为序列号类型。在这种情况下,扫码装置可以通过制定路由设备将终端的标识信息和条码贴的标签一起发送至服务器。In practical applications, the barcode scanning device scans the barcode posted on the terminal to obtain the identification information of the terminal, as well as the label of the barcode. The label of the barcode is used to indicate the identification information of the terminal carried on the barcode. Type, for example, the label of the barcode sticker may indicate that the type of identification information of the terminal carried on the barcode sticker is the physical address type, or the label of the barcode sticker may indicate that the type of identification information of the terminal carried on the barcode sticker is the serial number type. In this case, the barcode scanning device can send the identification information of the terminal together with the label attached to the barcode to the server through the routing device.

需要指出的是,上述步骤403可以在步骤401之前执行,也可以在步骤401之后执行,还可以与步骤401同时执行,同样地,步骤403可以在步骤402之前执行,也可以在步骤402之后执行,还可以与步骤402同时执行,本发明实施例对此不做具体限定。It should be pointed out that the above step 403 can be executed before step 401, can also be executed after step 401, and can also be executed at the same time as step 401. Similarly, step 403 can be executed before step 402 or after step 402. , may also be performed simultaneously with step 402, which is not specifically limited in this embodiment of the present invention.

步骤404、服务器接收键码获取请求和标识信息,并判断发送该键码获取请求的终端的路由路径与发送该标识信息的扫码装置的路由路径是否相同。Step 404: The server receives the key code acquisition request and the identification information, and determines whether the routing path of the terminal sending the key code acquisition request is the same as the routing path of the code scanning device sending the identification information.

服务器在接收到上述键码获取请求和标识信息后,可以获取发送该键码获取请求的终端的路由路径(以下简称终端的路由路径),并可以获取发送该标识信息的扫码装置的路由路径(以下简称扫码装置的路由路径)。而后,服务器可以判断这二者是否相同,也即是,服务器可以判断发送该键码获取请求的终端和发送该标识信息的扫码装置是否与同一路由设备建立连接,并通过该同一路由设备与服务器进行通信。After receiving the above key code acquisition request and identification information, the server can acquire the routing path of the terminal that sends the key code acquisition request (hereinafter referred to as the routing path of the terminal), and can acquire the routing path of the code scanning device that sends the identification information (hereinafter referred to as the routing path of the scanning device). Then, the server can judge whether the two are the same, that is, the server can judge whether the terminal sending the key code acquisition request and the scanning device sending the identification information are connected to the same routing device, and communicate with the same routing device through the same routing device. server to communicate.

步骤405、在终端的路由路径与扫码装置的路由路径相同时,服务器从键码数据库中存储的多个键码中获取第一目标键码,该第一目标键码的类型与第一键码类型标识所指示的类型相同。Step 405: When the routing path of the terminal is the same as the routing path of the scanning device, the server obtains the first target key code from a plurality of key codes stored in the key code database, and the type of the first target key code is the same as that of the first key. The type indicated by the code type identifier is the same.

在确定终端的路由路径与扫码装置路由路径相同时,服务器可以确定发送键码获取请求的终端和发送标识信息的扫码装置与同一路由设备建立连接,并通过同一路由设备与服务器进行通信,也即是,服务器可以确定发送键码获取请求的终端和发送标识信息的扫码装置位于同一产线上。在这种情况下,服务器可以将接收到的标识信息与发送键码获取请求的终端关联起来,而后,服务器可以响应终端发送的键码获取请求。When it is determined that the routing path of the terminal is the same as the routing path of the scanning device, the server can determine that the terminal sending the key code acquisition request and the scanning device sending the identification information are connected to the same routing device, and communicate with the server through the same routing device, That is, the server can determine that the terminal that sends the key code acquisition request and the code scanning device that sends the identification information are located on the same production line. In this case, the server may associate the received identification information with the terminal sending the key code obtaining request, and then the server may respond to the key code obtaining request sent by the terminal.

可选的,服务器中可以存储有键码数据库,其中,该键码数据库中可以存储有不同类型的多个键码,其中,某些类型的键码可以为离散型的键码,例如,HDCP码通常为离散型的键码,对于这些类型的键码,可以针对每一个键码类型创建一个文件,并在该文件中存储该键码类型对应的所有键码,而某些类型的键码可以为连续型的键码,例如,物理地址通常为连续型的键码,对于这些类型的键码,可以在服务器中存储起始键码和键码个数,或者,可以在服务器中存储起始键码和结尾键码,从而可以节省服务器的存储空间。Optionally, a key code database may be stored in the server, where multiple key codes of different types may be stored in the key code database, and some types of key codes may be discrete key codes, for example, HDCP The code is usually a discrete key code. For these types of key codes, a file can be created for each key code type, and all the key codes corresponding to the key code type are stored in the file. It can be a continuous key code. For example, the physical address is usually a continuous key code. For these types of key codes, the starting key code and the number of key codes can be stored in the server, or the starting key code can be stored in the server. Start key code and end key code, which can save the storage space of the server.

则服务器响应终端发送的键码获取请求的技术过程可以为:Then the technical process for the server to respond to the key code acquisition request sent by the terminal may be:

服务器从接收到的键码获取请求中提取第一键码类型标识,并获取该第一键码类型标识所指示的键码类型。当第一键码类型标识所指示的键码类型为离散型键码类型时,服务器可以从该键码类型对应的文件中获取任一键码作为上述第一目标键码,当第一键码类型标识所指示的键码类型为连续型键码类型时,服务器可以获取该键码类型对应的起始键码作为上述第一目标键码,或,服务器可以获取该键码类型对应的起始键码和结尾键码之间的任一键码作为上述第一目标键码。The server extracts the first key code type identifier from the received key code obtaining request, and obtains the key code type indicated by the first key code type identifier. When the key code type indicated by the first key code type identifier is a discrete key code type, the server can obtain any key code from the file corresponding to the key code type as the above-mentioned first target key code, when the first key code type identifier When the indicated key code type is a continuous key code type, the server can obtain the starting key code corresponding to the key code type as the above-mentioned first target key code, or the server can obtain the starting key code corresponding to the key code type. Any key code between the key code and the end key code is used as the above-mentioned first target key code.

需要指出的是,在上述终端的路由路径与上述扫码装置的路由路径不相同时,服务器可以确定发送键码获取请求的终端与发送标识信息的扫码装置并不位于同一产线上,在这种情况下,服务器可以不响应终端发送的键码获取请求,直至服务器接收到与发送上述键码获取请求的终端的路由路径相同的扫码装置发送的终端的标识信息为止。It should be pointed out that, when the routing path of the above-mentioned terminal is different from that of the above-mentioned code scanning device, the server can determine that the terminal that sends the key code acquisition request and the code scanning device that sends the identification information are not located on the same production line. In this case, the server may not respond to the key code obtaining request sent by the terminal until the server receives the identification information of the terminal sent by the code scanning device with the same routing path as the terminal sending the key code obtaining request.

步骤406、服务器向终端发送第一目标键码。Step 406: The server sends the first target key code to the terminal.

服务器在获取到上述第一目标键码之后,可以直接将该第一目标键码通过指定路由设备发送至上述终端,也可以对该第一目标键码进行加密,例如,在实际应用中可以使用DES(Data Encryption Standard,数据加密标准)算法对第一目标键码进行加密,服务器可以将加密后的第一目标键码通过指定路由设备发送至上述终端中。对第一目标键码进行加密可以保证第一目标键码在传输过程中的安全性。After acquiring the first target key code, the server can directly send the first target key code to the terminal through the designated routing device, or encrypt the first target key code. For example, it can be used in practical applications. The DES (Data Encryption Standard, Data Encryption Standard) algorithm encrypts the first target key, and the server may send the encrypted first target key to the above-mentioned terminal through a designated routing device. Encrypting the first target key can ensure the security of the first target key during transmission.

步骤407、终端在接收到第一目标键码后,将该第一目标键码存储至终端的预设存储位置。Step 407: After receiving the first target key code, the terminal stores the first target key code in a preset storage location of the terminal.

终端在接收到第一目标键码后,可以将该第一目标键码存储至终端的预设存储位置,从而完成对第一目标键码的烧写,其中,终端接收到的第一目标键码可以为经过服务器加密后的第一目标键码,也可以为未经过加密的第一目标键码。终端将经过加密后的第一目标键码存储于预设存储位置可以保证第一目标键码在存储时的安全性。After the terminal receives the first target key code, it can store the first target key code in the preset storage location of the terminal, thereby completing the programming of the first target key code, wherein the first target key received by the terminal is The code can be the first target key code encrypted by the server, or the first target key code that has not been encrypted. The terminal stores the encrypted first target key code in the preset storage location to ensure the security of the first target key code during storage.

在出厂后,终端可以在需要使用该第一目标键码时,从该预设存储位置获取该第一目标键码,当终端从预设存储位置获取到的是加密后的第一目标键码时,终端可以对该加密后的第一目标键码进行解密后使用。After leaving the factory, the terminal can obtain the first target key code from the preset storage location when it needs to use the first target key code, and when the terminal obtains the encrypted first target key code from the preset storage location When the encrypted first target key code is decrypted, the terminal can use it.

步骤408、终端向服务器发送烧写成功信息。Step 408: The terminal sends the programming success information to the server.

终端在将上述第一目标键码存储至预设存储位置后,可以生成烧写成功信息,并向服务器发送该烧写成功信息。After the terminal stores the above-mentioned first target key code in the preset storage location, the terminal may generate programming success information, and send the programming success information to the server.

步骤409、服务器在接收到烧写成功信息后,将第一目标键码与终端的标识信息对应存储于烧写日志文件中。Step 409: After receiving the successful programming information, the server stores the first target key code and the identification information of the terminal in the programming log file correspondingly.

服务器在接收到终端发送的烧写成功信息之后,可以将在步骤405中与终端关联起来的标识信息和第一目标键码对应存储于烧写日志文件中。这样,在后续技术过程中就可以方便地从烧写日志文件中导出终端的键码,从而可以统计生产的每一终端的键码,也可以根据生产的终端中的键码对终端接入某些网络服务进行授权,例如,终端生产厂商可以将自身生产的终端的物理地址发送至网络服务提供厂商,以由网络服务提供厂商根据终端的物理地址对终端生产厂商生产的终端进行接入网络服务的授权。同时,在服务器将第一目标键码存储于烧写日志文件中之后,服务器可以将该第一目标键码从服务器的数据库中删除,以避免服务器将该第一目标键码重复分配给其他终端。After receiving the successful programming information sent by the terminal, the server may store the identification information associated with the terminal in step 405 and the first target key code in the programming log file correspondingly. In this way, in the subsequent technical process, the key code of the terminal can be easily derived from the programming log file, so that the key code of each terminal produced can be counted, and the terminal access to a certain terminal can be accessed according to the key code in the produced terminal. For example, the terminal manufacturer can send the physical address of the terminal produced by itself to the network service provider, so that the network service provider can access the network service to the terminal produced by the terminal manufacturer according to the physical address of the terminal. authorization. Meanwhile, after the server stores the first target key code in the programming log file, the server can delete the first target key code from the database of the server, so as to avoid the server from repeatedly assigning the first target key code to other terminals .

下面,本发明实施例将以一个实例对上述步骤401至409的技术过程进行说明:Below, the embodiment of the present invention will use an example to describe the technical process of the above steps 401 to 409:

生产终端的产线b上配置有扫码装置z,该扫码装置z与路由设备s建立连接,并能够通过路由设备s与服务器f进行通信。A code scanning device z is configured on the production line b of the production terminal, the code scanning device z establishes a connection with the routing device s, and can communicate with the server f through the routing device s.

在为产线b上的终端a烧写键码时,可以使用扫码装置z扫描终端a上张贴的条码贴以获取终端a的标识信息“001000”,而后扫码装置z可以通过路由设备s向服务器f发送该“001000”,服务器f在接收到该“001000”后可以获取扫码装置z的路由路径(与扫码装置z连接的路由设备s的网际互联协议IP地址)。When programming the key code for the terminal a on the production line b, you can use the scanning device z to scan the barcode posted on the terminal a to obtain the identification information "001000" of the terminal a, and then the scanning device z can pass the routing device s. Send the "001000" to the server f. After receiving the "001000", the server f can obtain the routing path of the scanning device z (Internet Protocol IP address of the routing device s connected to the scanning device z).

同时,可以令终端a与路由设备s建立连接,而后终端a可以通过路由设备s向服务器f发送键码获取请求,该键码获取请求中携带第一键码类型标识,该第一键码类型标识包括HDCP码标识和物理地址标识,服务器f在接收到键码获取请求后,可以获取终端a的路由路径(与终端a连接的路由设备s的网际互联协议IP地址)。At the same time, a connection can be established between terminal a and routing device s, and then terminal a can send a key code acquisition request to server f through routing device s, where the key code acquisition request carries a first key code type identifier, the first key code type The identifiers include HDCP code identifiers and physical address identifiers. After receiving the key code acquisition request, server f can acquire the routing path of terminal a (Internet Protocol IP address of routing device s connected to terminal a).

服务器f可以判断终端a的路由路径与扫码装置z的路由路径是否相同,当服务器f确定终端a的路由路径与扫码装置z的路由路径相同时,说明终端a与扫码装置z位于同一产线上,由于一条产线上同时只能有一个终端与路由设备建立连接,因此,终端a与扫码装置z位于同一产线上说明扫码装置z发送的“001000”为终端a的标识。在这种情况下,服务器f可以将“001000”与终端a建立关联。The server f can determine whether the routing path of the terminal a is the same as the routing path of the scanning device z. When the server f determines that the routing path of the terminal a is the same as that of the scanning device z, it means that the terminal a and the scanning device z are located in the same On the production line, since only one terminal can establish a connection with the routing device at the same time, the terminal a and the scanning device z are located on the same production line, indicating that the "001000" sent by the scanning device z is the identification of the terminal a. . In this case, the server f can associate "001000" with the terminal a.

而后,服务器f可以响应终端a发送键码获取请求,也即是服务器f可以根据键码获取请求中携带的第一键码类型标识的指示从键码数据库中获取一个物理地址M和一个HDCP码H,并将其发送至终端a。终端a接收到服务器f发送的物理地址M和HDCP码H后,可以将物理地址M和HDCP码H存储至预设存储位置,并向服务器f发送烧写成功信息,服务器f在接收到烧写成功信息后可以将物理地址M和HDCP码H与“001000”对应存储于烧写日志文件中。Then, the server f can respond to the key code acquisition request sent by the terminal a, that is, the server f can acquire a physical address M and an HDCP code from the key code database according to the indication of the first key code type identifier carried in the key code acquisition request. H, and send it to terminal a. After receiving thephysical address M and HDCP code H sent by the server f, the terminal a can store the physicaladdress M and the HDCP code H in the preset storage location, and send the programming success information to the server f, and the server f receives the programming success information. After the successful information, the physical address M and HDCP code H can bestored in the programming log file corresponding to "001000".

在实际应用中,终端中的键码很可能会出现损坏,例如,在烧写键码的过程中终端出现掉电现象,或者,终端与服务器的通信连接在传输键码时出现中断等都会导致终端中的键码出现损坏,在键码出现损坏时,本发明实施例可以执行下述技术过程:In practical applications, the key code in the terminal is likely to be damaged. For example, the terminal is powered off during the process of writing the key code, or the communication connection between the terminal and the server is interrupted when the key code is transmitted, etc. The key code in the terminal is damaged, and when the key code is damaged, the embodiment of the present invention can perform the following technical process:

A、终端向服务器发送重新烧写键码请求,该重新烧写键码请求携带用于指示损坏的键码的类型的第二键码类型标识。A. The terminal sends a reprogramming keycode request to the server, where the reprogramming keycode request carries a second keycode type identifier used to indicate the type of the damaged keycode.

B、服务器在接收到上述重新烧写键码请求后,从烧写日志文件中查找与终端的标识信息对应的至少一个键码。B. After receiving the above-mentioned re-programming key code request, the server searches for at least one key code corresponding to the identification information of the terminal from the programming log file.

C、服务器从该至少一个键码中获取第二目标键码,该第二目标键码的类型与第二键码类型标识所指示的类型相同。C. The server obtains a second target key code from the at least one key code, and the type of the second target key code is the same as the type indicated by the second key code type identifier.

需要说明的是,当上述至少一个键码中不存在与第二键码类型标识所指示的类型相同的键码时,服务器可以从数据库中获取上述第二目标键码,服务器从数据库中获取第二目标键码的技术过程与上述服务器从数据库中获取第一目标键码的技术过程同理,本发明实施例在此不做具体限定。It should be noted that when there is no key code of the same type as the type indicated by the second key code type identifier in the at least one key code, the server can obtain the second target key code from the database, and the server obtains the first target key code from the database. The technical process of the second target key code is the same as the above-mentioned technical process of the server acquiring the first target key code from the database, which is not specifically limited in this embodiment of the present invention.

D、服务器将第二目标键码发送至终端中。D. The server sends the second target key code to the terminal.

E、终端接收该第二目标键码,并将该第二目标键码存储至终端中。E. The terminal receives the second target key code, and stores the second target key code in the terminal.

若该第二目标键码是服务器从数据库中获取的,则服务器在终端接收该第二目标键码并将该第二目标键码存储至终端中之后,可以将该第二目标键码与终端的标识信息对应存储于烧写日志文件中。If the second target key code is obtained by the server from the database, after the terminal receives the second target key code and stores the second target key code in the terminal, the server may associate the second target key code with the terminal The identification information of the corresponding is stored in the programming log file.

如上述举例,当终端a存储物理地址M时出现掉电现象,此时物理地址M中的某些数据很可能会丢失,从而导致物理地址M出现损坏。在这种情况下,终端a可以向服务器f发送重新烧写键码请求,该重新烧写键码请求携带第二键码类型标识,该第二键码类型标识包括物理地址标识。服务器f接收到重新烧写键码请求后,可以从烧写日志文件中获取“001000”对应的多个键码,并从该多个键码中获取物理地址M,而后服务器f可以将该物理地址M发送至终端a。As shown in the above example, when the terminal a stores the physical address M, a power failure occurs. At this time, some data in the physical address M is likely to be lost, thus causing the physical address M to be damaged. In this case, terminal a may send a key code re-programming request to server f, where the key code re-writing request carries a second key code type identifier, where the second key code type identifier includes a physical address identifier. After the server f receives the key code re-programming request, it can obtain multiple key codes corresponding to "001000" from the programming log file, and obtain the physical address M from the multiple key codes, and then the server f can obtain the physical address M from the multiple key codes. Address M is sent to terminal a.

综上所述,本发明实施例提供的键码烧写方法,通过服务器接收待烧写键码的终端发送的键码获取请求,并根据该键码获取请求获取第一目标键码,而后服务器可以将第一目标键码发送至终端中,同时在终端烧写了该第一目标键码后服务器可以将该第一目标键码与终端的标识信息对应存储于烧写日志文件中,这样,终端可以根据自身需要烧写的键码的类型向服务器请求键码,同时服务器可以响应终端的请求向终端发送键码从而完成键码的烧写,因此,本发明实施例在向终端烧写键码之前不需要执行将待烧写至终端的多个键码对应存储于一个文件的技术过程,也不需要执行为每个键码配置存储位置的技术过程,所以键码烧写的整体流程较为简单,同时,本发明实施例中键码存储于服务器中,这可以有效规避键码损坏和丢失的风险,因此提高了键码的安全性。To sum up, in the key code programming method provided by the embodiment of the present invention, the server receives the key code acquisition request sent by the terminal to be programmed with the key code, and acquires the first target key code according to the key code acquisition request, and then the server The first target key code can be sent to the terminal, and at the same time, after the terminal has programmed the first target key code, the server can store the first target key code and the identification information of the terminal in the programming log file, so that, The terminal can request the key code from the server according to the type of the key code that needs to be programmed, and the server can send the key code to the terminal in response to the request of the terminal to complete the programming of the key code. There is no need to perform the technical process of storing multiple keycodes to be programmed to the terminal in one file before coding, nor the technical process of configuring the storage location for each keycode, so the overall process of keycode programming is relatively Simultaneously, in the embodiment of the present invention, the key code is stored in the server, which can effectively avoid the risk of damage and loss of the key code, thus improving the security of the key code.

图5所示为本发明实施例提供的一种服务器500的框图,该服务器500可以为图1所示的服务器101,如图5所示,该服务器500包括接收模块501、第一获取模块502、发送模块503、第二获取模块504和存储模块505。FIG. 5 is a block diagram of aserver 500 according to an embodiment of the present invention. Theserver 500 may be theserver 101 shown in FIG. 1 . As shown in FIG. 5 , theserver 500 includes a receivingmodule 501 and a first obtainingmodule 502 , a sendingmodule 503 , a second obtainingmodule 504 and astorage module 505 .

该接收模块501,用于接收待烧写键码的终端发送的键码获取请求,该键码获取请求携带第一键码类型标识。The receivingmodule 501 is configured to receive a key code acquisition request sent by a terminal to be programmed with a key code, where the key code acquisition request carries a first key code type identifier.

该第一获取模块502,用于从键码数据库中存储的多个键码中获取第一目标键码,该第一目标键码的类型与该第一键码类型标识所指示的类型相同。The first obtainingmodule 502 is configured to obtain a first target key code from a plurality of key codes stored in the key code database, where the type of the first target key code is the same as the type indicated by the first key code type identifier.

该发送模块503,用于将该第一目标键码发送至该终端中。The sendingmodule 503 is configured to send the first target key code to the terminal.

该第二获取模块504,用于获取该终端的标识信息。The second obtainingmodule 504 is configured to obtain the identification information of the terminal.

该存储模块505,用于将该第一目标键码与该标识信息对应存储于烧写日志文件中。Thestorage module 505 is configured to store the first target key code and the identification information in the programming log file correspondingly.

在本发明的一个实施例中,键码烧写系统还包括扫码装置,该第二获取模块504,用于:接收扫码装置发送的该终端的标识信息,该扫码装置用于通过扫描该终端上张贴的条码贴获取该终端的标识信息,该扫码装置与该终端在同一时间段通过同一路由设备与该服务器进行通信。In an embodiment of the present invention, the key code programming system further includes a code scanning device, and thesecond acquisition module 504 is configured to: receive the identification information of the terminal sent by the code scanning device, and the code scanning device is used for scanning The barcode sticker posted on the terminal acquires the identification information of the terminal, and the code scanning device and the terminal communicate with the server through the same routing device in the same time period.

综上所述,本发明实施例提供的服务器,通过接收待烧写键码的终端发送的键码获取请求,并根据该键码获取请求获取第一目标键码,而后将第一目标键码发送至终端中,同时在终端烧写了该第一目标键码后将该第一目标键码与终端的标识信息对应存储于烧写日志文件中,这样,终端可以根据自身需要烧写的键码的类型向服务器请求键码,同时服务器可以响应终端的请求向终端发送键码从而完成键码的烧写,因此,本发明实施例在向终端烧写键码之前不需要执行将待烧写至终端的多个键码对应存储于一个文件的技术过程,也不需要执行为每个键码配置存储位置的技术过程,所以键码烧写的整体流程较为简单,同时,本发明实施例中键码存储于服务器中,这可以有效规避键码损坏和丢失的风险,因此提高了键码的安全性。To sum up, the server provided by the embodiment of the present invention obtains the first target key code by receiving the key code obtaining request sent by the terminal to be programmed with the key code, and then obtains the first target key code according to the key code obtaining request. It is sent to the terminal, and at the same time, after the terminal has programmed the first target key code, the first target key code and the identification information of the terminal are stored in the programming log file correspondingly, so that the terminal can program the keys according to its own needs. The type of the code requests the server for the key code, and the server can respond to the request of the terminal by sending the key code to the terminal to complete the programming of the key code. Multiple key codes to the terminal correspond to the technical process of being stored in a file, and there is no need to perform the technical process of configuring a storage location for each key code, so the overall process of key code programming is relatively simple. The key code is stored in the server, which can effectively avoid the risk of damage and loss of the key code, thus improving the security of the key code.

图6所示为本发明实施例提供的一种终端600的框图,该终端500可以为图1所示的终端103,如图6所示,该终端600包括发送模块601、接收模块602和存储模块603。FIG. 6 is a block diagram of a terminal 600 according to an embodiment of the present invention. The terminal 500 may be the terminal 103 shown in FIG. 1 . As shown in FIG. 6 , the terminal 600 includes a sendingmodule 601 , a receivingmodule 602 and astorage Module 603.

该发送模块601,用于向键码烧写系统中的服务器发送键码获取请求,该键码获取请求携带第一键码类型标识。The sendingmodule 601 is configured to send a key code acquisition request to the server in the key code programming system, where the key code acquisition request carries a first key code type identifier.

该接收模块602,用于接收该服务器发送的第一目标键码,该第一目标键码是该服务器从键码数据库中存储的多个键码中获取的,该第一目标键码的类型与该第一键码类型标识所指示的类型相同。The receivingmodule 602 is configured to receive a first target key code sent by the server, where the first target key code is obtained by the server from a plurality of key codes stored in a key code database, and the type of the first target key code is It is the same as the type indicated by the first key code type identifier.

该存储模块603,用于将该第一目标键码存储至该终端的预设存储位置。Thestorage module 603 is configured to store the first target key code in a preset storage location of the terminal.

综上所述,本发明实施例提供的终端,通过向服务器发送键码获取请求,使得服务器根据该键码获取请求获取第一目标键码,并将第一目标键码发送至终端中,同时在终端烧写了该第一目标键码后服务器可以将该第一目标键码与终端的标识信息对应存储于烧写日志文件中,这样,终端可以根据自身需要烧写的键码的类型向服务器请求键码,同时服务器可以响应终端的请求向终端发送键码从而完成键码的烧写,因此,本发明实施例在向终端烧写键码之前不需要执行将待烧写至终端的多个键码对应存储于一个文件的技术过程,也不需要执行为每个键码配置存储位置的技术过程,所以键码烧写的整体流程较为简单,同时,本发明实施例中键码存储于服务器中,这可以有效规避键码损坏和丢失的风险,因此提高了键码的安全性。To sum up, the terminal provided by the embodiment of the present invention sends a key code acquisition request to the server, so that the server acquires the first target key code according to the key code acquisition request, sends the first target key code to the terminal, and at the same time After the terminal has programmed the first target key code, the server may store the first target key code and the identification information of the terminal in the programming log file. The server requests the key code, and the server can send the key code to the terminal in response to the request of the terminal to complete the programming of the key code. Therefore, in this embodiment of the present invention, before programming the key code to the terminal, it is not necessary to perform the multi-step process of programming to the terminal. Each key code corresponds to the technical process of storing in one file, and there is no need to perform the technical process of configuring the storage location for each key code, so the overall process of key code programming is relatively simple. Meanwhile, in the embodiment of the present invention, the key code is stored in the In the server, this can effectively avoid the risk of key code damage and loss, thus improving the security of the key code.

本发明实施例还提供了一种键码烧写系统,该键码烧写系统包括如上文所述的服务器和如上文所述的扫码装置。An embodiment of the present invention further provides a key code programming system, where the key code programming system includes the server described above and the code scanning device described above.

需要说明的是:上述实施例提供的服务器和终端在烧写键码时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的服务器、终端与键码烧写方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the server and terminal provided in the above embodiments are programming the key codes, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated by different functional modules as required. , that is, dividing the internal structure of the device into different functional modules to complete all or part of the functions described above. In addition, the server, the terminal, and the key code programming method provided in the above embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

本实施例提供了一种终端700,该终端700可以用于执行上述实施例中提供的键码烧写方法。参见图7,该终端700包括:This embodiment provides a terminal 700, and the terminal 700 can be used to execute the key code programming method provided in the foregoing embodiment. Referring to FIG. 7, the terminal 700 includes:

终端700可以包括RF(Radio Frequency,射频)电路710、包括有一个或一个以上计算机可读存储介质的存储器720、输入单元730、显示单元740、传感器750、音频电路760、WiFi(Wireless Fidelity,无线保真)模块770、包括有一个或者一个以上处理核心的处理器780、以及电源790等部件。本领域技术人员可以理解,图7中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The terminal 700 may include an RF (Radio Frequency, radio frequency)circuit 710, amemory 720 including one or more computer-readable storage media, aninput unit 730, adisplay unit 740, asensor 750, anaudio circuit 760, WiFi (Wireless Fidelity, wireless Fidelity)module 770, aprocessor 780 including one or more processing cores, apower supply 790 and other components. Those skilled in the art can understand that the terminal structure shown in FIG. 7 does not constitute a limitation to the terminal, and may include more or less components than the one shown, or combine some components, or arrange different components. in:

RF电路710可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器780处理;另外,将涉及上行的数据发送给基站。通常,RF电路710包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路710还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(CodeDivision Multiple Access,码分多址)、WCDMA(Wideband Code Division MultipleAccess,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(ShortMessaging Service,短消息服务)等。TheRF circuit 710 can be used for receiving and sending signals during the process of sending and receiving information or talking. In particular, after receiving the downlink information of the base station, it is processed by one ormore processors 780; in addition, it sends the data related to the uplink to the base station. . Typically, theRF circuit 710 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier) , duplexer, etc. In addition,RF circuitry 710 may also communicate with networks and other devices via wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, Global System for Mobile Communication), GPRS (General Packet Radio Service, General Packet Radio Service), CDMA (CodeDivision Multiple Access, Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access), LTE (Long Term Evolution, Long Term Evolution), email, SMS (Short Messaging Service, Short Message Service), etc.

存储器720可用于存储软件程序以及模块,处理器780通过运行存储在存储器720的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器720可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端700的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器720可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器720还可以包括存储器控制器,以提供处理器780和输入单元730对存储器720的访问。Thememory 720 may be used to store software programs and modules, and theprocessor 780 executes various functional applications and data processing by running the software programs and modules stored in thememory 720 . Thememory 720 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; The use of the terminal 700 creates data (such as audio data, phone book, etc.) and the like. Additionally,memory 720 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, thememory 720 may also include a memory controller to provide access to thememory 720 by theprocessor 780 and theinput unit 730 .

输入单元730可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元730可包括触敏表面731以及其他输入设备732。触敏表面731,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面731上或在触敏表面731附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面731可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器780,并能接收处理器780发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面731。除了触敏表面731,输入单元730还可以包括其他输入设备732。具体地,其他输入设备732可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Theinput unit 730 may be used to receive input numerical or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, theinput unit 730 may include a touch-sensitive surface 731 as well asother input devices 732 . Touch-sensitive surface 731, also known as a touch display or trackpad, can collect user touch operations on or near it (such as a user using a finger, stylus, etc., any suitable object or accessory on or on touch-sensitive surface 731). operation near the touch-sensitive surface 731), and drive the corresponding connection device according to a preset program. Optionally, the touch-sensitive surface 731 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To theprocessor 780, and can receive the command sent by theprocessor 780 and execute it. In addition, the touch-sensitive surface 731 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 731 , theinput unit 730 may also includeother input devices 732 . Specifically,other input devices 732 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元740可用于显示由用户输入的信息或提供给用户的信息以及终端700的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元740可包括显示面板741,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板741。进一步的,触敏表面731可覆盖显示面板741,当触敏表面731检测到在其上或附近的触摸操作后,传送给处理器780以确定触摸事件的类型,随后处理器780根据触摸事件的类型在显示面板741上提供相应的视觉输出。虽然在图7中,触敏表面731与显示面板741是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面731与显示面板741集成而实现输入和输出功能。Thedisplay unit 740 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal 700, which may be composed of graphics, text, icons, videos, and any combination thereof. Thedisplay unit 740 may include adisplay panel 741, and optionally, thedisplay panel 741 may be configured in the form of an LCD (Liquid Crystal Display, liquid crystal display), an OLED (Organic Light-Emitting Diode, organic light emitting diode), and the like. Further, the touch-sensitive surface 731 may cover thedisplay panel 741. When the touch-sensitive surface 731 detects a touch operation on or near it, it transmits it to theprocessor 780 to determine the type of the touch event, and then theprocessor 780 determines the type of the touch event according to the touch event. Type provides corresponding visual output ondisplay panel 741 . Although in FIG. 7, the touch-sensitive surface 731 and thedisplay panel 741 are implemented as two separate components to realize the input and input functions, in some embodiments, the touch-sensitive surface 731 and thedisplay panel 741 may be integrated to realize the input and output functions.

终端700还可包括至少一种传感器750,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板741的亮度,接近传感器可在终端700移动到耳边时,关闭显示面板741和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端700还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The terminal 700 may also include at least onesensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of thedisplay panel 741 according to the brightness of the ambient light, and the proximity sensor may turn off thedisplay panel 741 and thedisplay panel 741 when the terminal 700 is moved to the ear. / or backlight. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the attitude of mobile phones (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can be configured on the terminal 700 Repeat.

音频电路760、扬声器761,传声器762可提供用户与终端700之间的音频接口。音频电路760可将接收到的音频数据转换后的电信号,传输到扬声器761,由扬声器761转换为声音信号输出;另一方面,传声器762将收集的声音信号转换为电信号,由音频电路760接收后转换为音频数据,再将音频数据输出处理器780处理后,经RF电路710以发送给比如另一终端,或者将音频数据输出至存储器720以便进一步处理。音频电路760还可能包括耳塞插孔,以提供外设耳机与终端700的通信。Theaudio circuit 760 , thespeaker 761 , and themicrophone 762 may provide an audio interface between the user and the terminal 700 . Theaudio circuit 760 can convert the received audio data into an electrical signal, and transmit it to thespeaker 761, and thespeaker 761 converts it into a sound signal for output; on the other hand, themicrophone 762 converts the collected sound signal into an electrical signal, which is converted by theaudio circuit 760 After receiving, it is converted into audio data, and then the audio data is output to theprocessor 780 for processing, and then sent to, for example, another terminal through theRF circuit 710, or the audio data is output to thememory 720 for further processing. Theaudio circuit 760 may also include an earphone jack to provide communication between peripheral headphones and the terminal 700 .

WiFi属于短距离无线传输技术,终端700通过WiFi模块770可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图7示出了WiFi模块770,但是可以理解的是,其并不属于终端700的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology, and the terminal 700 can help users to send and receive emails, browse web pages, access streaming media, etc. through theWiFi module 770, which provides users with wireless broadband Internet access. Although FIG. 7 shows theWiFi module 770, it can be understood that it is not a necessary component of the terminal 700, and can be completely omitted as required within the scope of not changing the essence of the invention.

处理器780是终端700的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器720内的软件程序和/或模块,以及调用存储在存储器720内的数据,执行终端700的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器780可包括一个或多个处理核心;优选的,处理器780可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器780中。Theprocessor 780 is the control center of the terminal 700, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in thememory 720, and calling the data stored in thememory 720, Execute various functions of the terminal 700 and process data, so as to monitor the mobile phone as a whole. Optionally, theprocessor 780 may include one or more processing cores; preferably, theprocessor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into theprocessor 780 .

终端700还包括给各个部件供电的电源790(比如电池),优选的,电源可以通过电源管理系统与处理器780逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源790还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。尽管未示出,终端700还可以包括摄像头、蓝牙模块等,在此不再赘述。The terminal 700 also includes a power supply 790 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to theprocessor 780 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.Power supply 790 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components. Although not shown, the terminal 700 may also include a camera, a Bluetooth module, and the like, which will not be repeated here.

图8是根据一示例性实施例示出的一种服务器800的框图。参照图8,装置800包括处理组件822,其进一步包括一个或多个处理器,以及由存储器832所代表的存储器资源,用于存储可由处理组件822的执行的指令,例如应用程序。存储器832中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件822被配置为执行指令,以执行上述键码烧写方法。FIG. 8 is a block diagram of aserver 800 according to an exemplary embodiment. 8,apparatus 800 includes aprocessing component 822, which further includes one or more processors, and a memory resource, represented bymemory 832, for storing instructions executable by processingcomponent 822, such as an application program. An application program stored inmemory 832 may include one or more modules, each corresponding to a set of instructions. In addition, theprocessing component 822 is configured to execute the instructions to perform the key code programming method described above.

服务器800还可以包括一个电源组件826被配置为执行服务器800的电源管理,一个有线或无线网络接口850被配置为将服务器800连接到网络,和一个输入输出(I/O)接口858。服务器800可以操作基于存储在存储器832的操作系统,例如Windows ServerTM,Mac OSXTM,UnixTM,LinuxTM,FreeBSDTM或类似。Theserver 800 may also include apower component 826 configured to perform power management of theserver 800, a wired orwireless network interface 850 configured to connect theserver 800 to a network, and an input output (I/O)interface 858.Server 800 may operate based on an operating system stored inmemory 832, such as Windows Server , Mac OSX , Unix , Linux , FreeBSD or the like.

本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,存储的计算机程序被上文所述的服务器执行时能够实现上述键码烧写方法中服务器所执行的技术过程,例如,该技术过程可以为:服务器接收待烧写键码的终端发送的键码获取请求,该键码获取请求携带第一键码类型标识,服务器从键码数据库中存储的多个键码中获取第一目标键码,该第一目标键码的类型与上述第一键码类型标识所指示的类型相同,服务器将该第一目标键码发送至上述终端中,服务器获取上述终端的标识信息,服务器将第一目标键码与上述标识信息对应存储于烧写日志文件中。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the stored computer program is executed by the above-mentioned server, the server in the above-mentioned key code programming method can be implemented The technical process performed, for example, the technical process may be: the server receives a key code acquisition request sent by the terminal to be programmed with the key code, the key code acquisition request carries the first key code type identifier, and the server stores the key code from the key code database. The first target key code is obtained from the plurality of key codes in After acquiring the identification information of the terminal, the server stores the first target key code and the identification information in the programming log file correspondingly.

或者,存储的计算机程序被上文所述的终端执行时能够实现上述键码烧写方法中终端所执行的技术过程,例如,该技术过程可以为:终端向键码烧写系统中的服务器发送键码获取请求,该键码获取请求携带第一键码类型标识,终端接收该服务器发送的第一目标键码,该第一目标键码是该服务器从键码数据库中存储的多个键码中获取的,该第一目标键码的类型与该第一键码类型标识所指示的类型相同,终端将该第一目标键码存储至终端的预设存储位置。Or, when the stored computer program is executed by the above-mentioned terminal, the technical process performed by the terminal in the above-mentioned key code programming method can be realized. For example, the technical process may be: the terminal sends a message to the server in the key code programming system A key code acquisition request, the key code acquisition request carries a first key code type identifier, the terminal receives the first target key code sent by the server, and the first target key code is a plurality of key codes stored by the server from the key code database The type of the first target key code is the same as the type indicated by the first key code type identifier, and the terminal stores the first target key code in the preset storage location of the terminal.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, etc.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.

Claims (8)

Translated fromChinese
1.一种键码烧写方法,其特征在于,用于键码烧写系统中的服务器,所述键码烧写系统包括扫码装置,所述方法包括:1. a key code burning method, is characterized in that, is used for the server in the key code burning system, and described key code burning system comprises scanning code device, and described method comprises:接收待烧写键码的终端发送的键码获取请求,所述键码获取请求携带第一键码类型标识;receiving a key code acquisition request sent by a terminal to be programmed with a key code, where the key code acquisition request carries a first key code type identifier;接收所述扫码装置发送的所述终端的标识信息,所述扫码装置用于通过扫描所述终端上张贴的条码贴获取所述终端的标识信息,所述扫码装置与所述终端在同一时间段通过同一路由设备与所述服务器进行通信;Receive the identification information of the terminal sent by the code scanning device, the code scanning device is used to obtain the identification information of the terminal by scanning the barcode posted on the terminal, and the code scanning device and the terminal are in the same location. communicate with the server through the same routing device in the same time period;判断发送所述键码获取请求的终端的路由路径与发送所述标识信息的扫码装置的路由路径是否相同,在所述终端的路由路径与所述扫码装置的路由路径不相同时,不响应所述终端发送的键码获取请求;Determine whether the routing path of the terminal that sends the key code acquisition request is the same as the routing path of the code scanning device that sends the identification information, and when the routing path of the terminal is different from the routing path of the code scanning device, do not responding to the key code acquisition request sent by the terminal;在所述终端的路由路径与所述扫码装置的路由路径相同时,从键码数据库中存储的多个键码中获取第一目标键码,所述第一目标键码的类型与所述第一键码类型标识所指示的类型相同;When the routing path of the terminal is the same as the routing path of the code scanning device, a first target key code is obtained from a plurality of key codes stored in the key code database, and the type of the first target key code is the same as that of the The type indicated by the first key code type identifier is the same;将所述第一目标键码发送至所述终端中;sending the first target key code to the terminal;将所述第一目标键码与所述标识信息对应存储于烧写日志文件中。The first target key code and the identification information are correspondingly stored in the programming log file.2.根据权利要求1所述的方法,其特征在于,所述将所述第一目标键码发送至所述终端中,包括:2. The method according to claim 1, wherein the sending the first target key code to the terminal comprises:将所述第一目标键码进行加密处理得到加密后的第一目标键码;Encrypting the first target key code to obtain the encrypted first target key code;将所述加密后的第一目标键码发送至所述终端中。Send the encrypted first target key code to the terminal.3.根据权利要求1所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1, wherein the method further comprises:接收所述终端发送的重新烧写键码请求,所述重新烧写键码请求是所述终端在已经烧写的键码损坏后发送的,所述重新烧写键码请求携带用于指示损坏的键码的类型的第二键码类型标识;Receive a reprogramming keycode request sent by the terminal, the reprogramming keycode request is sent by the terminal after the programmed keycode is damaged, and the reprogramming keycode request is carried to indicate the damage The second key code type identifier of the type of the key code;从所述烧写日志文件中查找与所述终端的标识信息对应的至少一个键码;Find at least one key code corresponding to the identification information of the terminal from the programming log file;从所述至少一个键码中获取第二目标键码,所述第二目标键码的类型与所述第二键码类型标识所指示的类型相同;Obtain a second target key code from the at least one key code, the type of the second target key code is the same as the type indicated by the second key code type identifier;将所述第二目标键码发送至所述终端中。Send the second target key code to the terminal.4.一种键码烧写方法,其特征在于,用于待烧写键码的终端,所述方法包括:4. a key code programming method, is characterized in that, for the terminal to be programmed key code, the method comprises:向键码烧写系统中的服务器发送键码获取请求,所述键码获取请求携带第一键码类型标识,所述服务器用于接收扫码装置发送的所述终端的标识信息,并判断所述终端的路由路径与所述扫码装置的路由路径是否相同,在所述终端的路由路径与所述扫码装置的路由路径不相同时,不响应所述终端发送的键码获取请求,在所述终端的路由路径与所述扫码装置的路由路径相同时,从键码数据库中存储的多个键码中获取第一目标键码,所述第一目标键码的类型与所述第一键码类型标识所指示的类型相同;Send a key code acquisition request to the server in the key code programming system, where the key code acquisition request carries the first key code type identification, and the server is used to receive the identification information of the terminal sent by the code scanning device, and determine the identification information of the terminal. Whether the routing path of the terminal is the same as the routing path of the code scanning device, when the routing path of the terminal is not the same as the routing path of the scanning device, do not respond to the key code acquisition request sent by the terminal. When the routing path of the terminal is the same as the routing path of the code scanning device, the first target key code is obtained from a plurality of key codes stored in the key code database, and the type of the first target key code is the same as that of the first target key code. The type indicated by the one-key code type identifier is the same;接收所述服务器发送的所述第一目标键码,所述第一目标键码是所述服务器从键码数据库中存储的多个键码中获取的,所述第一目标键码的类型与所述第一键码类型标识所指示的类型相同;Receive the first target key code sent by the server, the first target key code is obtained by the server from a plurality of key codes stored in the key code database, and the type of the first target key code is the same as The type indicated by the first key code type identifier is the same;将所述第一目标键码存储至所述终端的预设存储位置。The first target key code is stored in a preset storage location of the terminal.5.一种服务器,其特征在于,所述服务器为键码烧写系统中的服务器,所述键码烧写系统还包括扫码装置,所述服务器包括:5. A server, characterized in that the server is a server in a key code burning system, the key code burning system further comprises a code scanning device, and the server comprises:接收模块,用于接收待烧写键码的终端发送的键码获取请求,所述键码获取请求携带第一键码类型标识;a receiving module, configured to receive a key code acquisition request sent by a terminal to be programmed with a key code, where the key code acquisition request carries a first key code type identifier;第二获取模块,用于接收扫码装置发送的所述终端的标识信息,所述扫码装置用于通过扫描所述终端上张贴的条码贴获取所述终端的标识信息,所述扫码装置与所述终端在同一时间段通过同一路由设备与所述服务器进行通信;The second obtaining module is configured to receive the identification information of the terminal sent by the code scanning device, and the code scanning device is configured to obtain the identification information of the terminal by scanning the barcode posted on the terminal, and the code scanning device communicate with the server through the same routing device in the same time period as the terminal;判断模块,用于判断发送所述键码获取请求的终端的路由路径与发送所述标识信息的扫码装置的路由路径是否相同,在所述终端的路由路径与所述扫码装置的路由路径不相同时,不响应所述终端发送的键码获取请求;A judging module for judging whether the routing path of the terminal that sends the key code acquisition request is the same as the routing path of the code scanning device that sends the identification information, and the routing path of the terminal is the same as the routing path of the code scanning device. When they are not the same, do not respond to the key code acquisition request sent by the terminal;第一获取模块,用于在所述终端的路由路径与所述扫码装置的路由路径相同时,从键码数据库中存储的多个键码中获取第一目标键码,所述第一目标键码的类型与所述第一键码类型标识所指示的类型相同;The first obtaining module is used to obtain the first target key code from a plurality of key codes stored in the key code database when the routing path of the terminal is the same as the routing path of the code scanning device. The type of the key code is the same as the type indicated by the first key code type identifier;发送模块,用于将所述第一目标键码发送至所述终端中;a sending module, configured to send the first target key code to the terminal;存储模块,用于将所述第一目标键码与所述标识信息对应存储于烧写日志文件中。A storage module, configured to store the first target key code and the identification information in the programming log file correspondingly.6.一种终端,其特征在于,所述终端包括:6. A terminal, wherein the terminal comprises:发送模块,用于向键码烧写系统中的服务器发送键码获取请求,所述键码获取请求携带第一键码类型标识,所述服务器用于接收扫码装置发送的所述终端的标识信息,并判断所述终端的路由路径与所述扫码装置的路由路径是否相同,在所述终端的路由路径与所述扫码装置的路由路径不相同时,不响应所述终端发送的键码获取请求,在所述终端的路由路径与所述扫码装置的路由路径相同时,从键码数据库中存储的多个键码中获取第一目标键码,所述第一目标键码的类型与所述第一键码类型标识所指示的类型相同;A sending module, configured to send a key code acquisition request to a server in the key code programming system, where the key code acquisition request carries a first key code type identifier, and the server is configured to receive the terminal identifier sent by the code scanning device information, and determine whether the routing path of the terminal is the same as the routing path of the code scanning device. When the routing path of the terminal is the same as the routing path of the code scanning device, the first target key code is obtained from a plurality of key codes stored in the key code database. The type is the same as the type indicated by the first key code type identifier;接收模块,用于接收所述服务器发送的所述第一目标键码,所述第一目标键码是所述服务器从键码数据库中存储的多个键码中获取的,所述第一目标键码的类型与所述第一键码类型标识所指示的类型相同;a receiving module, configured to receive the first target key code sent by the server, the first target key code is obtained by the server from a plurality of key codes stored in the key code database, the first target key code The type of the key code is the same as the type indicated by the first key code type identifier;存储模块,用于将所述第一目标键码存储至所述终端的预设存储位置。A storage module, configured to store the first target key code in a preset storage location of the terminal.7.一种键码烧写系统,其特征在于,所述键码烧写系统包括服务器和扫码装置;7. A key code burning and writing system, characterized in that, the key code burning and writing system comprises a server and a code scanning device;所述服务器,用于执行权利要求1-4任一所述的键码烧写方法中服务器所执行的方法;The server is used to execute the method performed by the server in the key code burning method described in any one of claims 1-4;所述扫码装置,用于执行权利要求1所述的键码烧写方法中扫码装置所执行的方法。The code scanning device is configured to execute the method executed by the code scanning device in the key code programming method of claim 1 .8.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,存储的所述计算机程序被服务器执行时能够实现上述权利要求1-3任一所述的键码烧写方法;8. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the stored computer program is executed by a server, any one of the above claims 1-3 can be implemented. Key code programming method;或者,存储的所述计算机程序被终端执行时能够实现上述权利要求4所述的键码烧写方法。Or, when the stored computer program is executed by the terminal, the method for writing a key code as claimed in claim 4 can be implemented.
CN201710641027.2A2017-07-312017-07-31 Key code programming method, server, terminal, key code programming system and storage mediumActiveCN107423099B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710641027.2ACN107423099B (en)2017-07-312017-07-31 Key code programming method, server, terminal, key code programming system and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710641027.2ACN107423099B (en)2017-07-312017-07-31 Key code programming method, server, terminal, key code programming system and storage medium

Publications (2)

Publication NumberPublication Date
CN107423099A CN107423099A (en)2017-12-01
CN107423099Btrue CN107423099B (en)2020-12-01

Family

ID=60431503

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710641027.2AActiveCN107423099B (en)2017-07-312017-07-31 Key code programming method, server, terminal, key code programming system and storage medium

Country Status (1)

CountryLink
CN (1)CN107423099B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109032624A (en)*2018-08-082018-12-18上海庆科信息技术有限公司A kind of test method and its device based on programming system
CN109582320B (en)*2018-08-082022-05-10深圳市飞速创新技术股份有限公司Code writing method and terminal equipment
CN110675894B (en)*2019-09-252021-07-23北京四达时代软件技术股份有限公司HDCP key online burning method and device and electronic equipment
CN111405366B (en)*2020-03-092022-09-16深圳创维-Rgb电子有限公司Key file synthesis method and device and computer readable storage medium
CN111797646B (en)*2020-07-082021-06-29北京京东振世信息技术有限公司Bar code identification method and terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1924906A (en)*2005-08-292007-03-07富港电子(东莞)有限公司 Product data statistics and management methods of streamlined production line
CN1959576A (en)*2005-11-042007-05-09群康科技(深圳)有限公司Production system, and control method
CN103336696A (en)*2013-05-272013-10-02摩比天线技术(深圳)有限公司Software updating method and system for testing instrument
EP2749417A1 (en)*2012-12-282014-07-02P. Dimitropoulos - Electronic Systems and Software Applications S.A. Trading Name: SENSAP SAQuality control, method and device in production lines of solid and corrugated carton boxes, and advertising displays made of paper
CN204203980U (en)*2014-10-102015-03-11华立仪表集团股份有限公司A kind of electrical measuring device bar code information comparison equipment
CN106595681A (en)*2016-12-162017-04-26上海博泰悦臻网络技术服务有限公司Differential updating method for path data, system and server

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7599976B1 (en)*2002-11-132009-10-06Metrowerks CorporationSystem and method for cryptographic key generation
US7359931B2 (en)*2003-08-152008-04-15Saudi Arabian Oil CompanySystem to facilitate pipeline management, software, and related methods
CN1937745B (en)*2006-10-192011-01-26深圳创维-Rgb电子有限公司 A method and device for programming HDCP codes of an HDMI interface machine
US20130191879A1 (en)*2012-01-232013-07-25Dell Products L.P.Methods and systems for information assurance and supply chain security
WO2016018979A1 (en)*2014-07-302016-02-04Wal-Mart Stores, Inc.System and method for supply chain management
CN105142024B (en)*2015-08-202019-05-10深圳Tcl数字技术有限公司 Method and device for burning TV data
US9916453B2 (en)*2015-12-222018-03-13Qualcomm IncorporatedDerived keys for execution environments in a boot chain
CN106229007B (en)*2016-08-092019-11-05广州视源电子科技股份有限公司 HDCP KEY sending method, burning method and device
CN106469322B (en)*2016-08-312019-07-05广州小百合信息技术有限公司CI PLus certificate method for burn-recording, system and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1924906A (en)*2005-08-292007-03-07富港电子(东莞)有限公司 Product data statistics and management methods of streamlined production line
CN1959576A (en)*2005-11-042007-05-09群康科技(深圳)有限公司Production system, and control method
EP2749417A1 (en)*2012-12-282014-07-02P. Dimitropoulos - Electronic Systems and Software Applications S.A. Trading Name: SENSAP SAQuality control, method and device in production lines of solid and corrugated carton boxes, and advertising displays made of paper
CN103336696A (en)*2013-05-272013-10-02摩比天线技术(深圳)有限公司Software updating method and system for testing instrument
CN204203980U (en)*2014-10-102015-03-11华立仪表集团股份有限公司A kind of electrical measuring device bar code information comparison equipment
CN106595681A (en)*2016-12-162017-04-26上海博泰悦臻网络技术服务有限公司Differential updating method for path data, system and server

Also Published As

Publication numberPublication date
CN107423099A (en)2017-12-01

Similar Documents

PublicationPublication DateTitle
US12041165B2 (en)Key updating method, apparatus, and system
US10880746B2 (en)Network connection method, apparatus, storage medium and terminal
US11057376B2 (en)Method, apparatus, and system for controlling intelligent device, and storage medium
CN104125216B (en)A kind of method, system and terminal for lifting credible performing environment security
US10069818B2 (en)Method, system, device, and terminal for network initialization of multimedia playback device
CN107423099B (en) Key code programming method, server, terminal, key code programming system and storage medium
CN104852885B (en)Method, device and system for verifying verification code
CN104518875A (en) A method for identity verification and account acquisition, and a mobile terminal
CN104580167A (en)Data transmission method, device and system
CN103607713A (en)Method, apparatus, device and system for network access
CN106341809B (en)Data transmission method and equipment
CN106658354B (en)Data transmission method and equipment
WO2018049886A1 (en)Hotspot establishment method and terminal device
CN106550361B (en)Data transmission method, equipment and computer readable storage medium
CN104852802B (en) Authentication method, device and system
WO2018006841A1 (en)Qr code information transmission method, device and apparatus
CN104965722A (en)Method and apparatus for displaying information
CN106534324A (en)Data sharing method and cloud server
WO2019128179A1 (en)Method and apparatus for data transmission between mobile terminals, and mobile terminal
CN108270764B (en)Application login method, server and mobile terminal
CN113923005B (en)Method and system for writing data
CN106714279A (en) A hotspot network switching method and terminal equipment
CN105703808A (en)Method and device for transmitting data
CN107102913A (en)Data backup method and device and computer equipment
CN106658360A (en) A data transmission method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp