WO2019062315A1 - Method and device for set-top box number writing - Google Patents

Method and device for set-top box number writing Download PDF

Info

Publication number
WO2019062315A1
WO2019062315A1 PCT/CN2018/097801 CN2018097801W WO2019062315A1 WO 2019062315 A1 WO2019062315 A1 WO 2019062315A1 CN 2018097801 W CN2018097801 W CN 2018097801W WO 2019062315 A1 WO2019062315 A1 WO 2019062315A1
Authority
WO
WIPO (PCT)
Prior art keywords
top box
write
write number
data
set top
Prior art date
Application number
PCT/CN2018/097801
Other languages
French (fr)
Chinese (zh)
Inventor
陈建辉
Original Assignee
深圳市九洲电器有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市九洲电器有限公司 filed Critical 深圳市九洲电器有限公司
Publication of WO2019062315A1 publication Critical patent/WO2019062315A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/654Transmission by server directed to the client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/654Transmission by server directed to the client
    • H04N21/6547Transmission by server directed to the client comprising parameters, e.g. for client setup

Definitions

  • the present application relates to the field of digital television, and in particular, to a method and system for writing a set top box.
  • Each factory set-top box has some unique data that identifies the identity of the set-top box, such as the set-top box serial number, motherboard number, MAC address, HDCP key, etc. These unique data cannot be obtained from the hardware information, and need to be written and written from the external device.
  • the process of entering data is called the number writing process, and the writing number is an important part of the production process of the set-top box.
  • the writing number needs to be carried out through the production management system, which is responsible for generating the generation and management of the writing number data.
  • the write number data is first configured and saved in the production database through the production management system.
  • the device the writing device as the server
  • the set-top box as the client
  • the service is run. End and client programs, write numbers according to the write number operation.
  • the method for writing a set top box includes the following steps:
  • S10 Control a plurality of set top boxes to establish a connection with the write number server through the wireless network, and connect the successfully controlled write number server to assign a device identifier to each set top box that is successfully connected;
  • S20 Obtain device identifiers of all the set top boxes, and determine whether the write number data that all the set top boxes need to write is continuous data;
  • S50 Write the write number data associated with the set top box to the corresponding set top box at the same time, and complete the writing number.
  • the step S10 further includes: determining whether the set top box establishing the connection with the write number server exceeds the load limit, and if the load limit is exceeded, detecting the batch number of each set top box, according to the batch number of the write number The time is sorted sequentially, and the set-top box enters the queue waiting sequence according to the sorting that exceeds the load limit.
  • the step S10 further includes: creating a first list and a second list to store the device identifier, the first list storing all device identifiers, and the second list storing the device identifiers of the server having the write number;
  • the write number server searches for the corresponding device identifier from the first list and stores it in the second list.
  • the write number server is from the second list. Remove the device ID assigned to the set-top box.
  • the step S10 further includes: the device identifier is displayed on both the write number server and the set top box.
  • the step S30 further includes: adding a write number indicator to the write number server, storing the last write number, the number of lines of the write number data in the write number server database; According to the value of the write number indicator, the number data is automatically associated with the set top box by the write number data of the next line in combination with the number N of the set top boxes.
  • a set top box numbering system provided by the present application includes:
  • the wireless connection module controls a plurality of set top boxes to establish a connection with the write number server through the wireless network, and the connection successfully controls the write number server to respectively assign a device identifier to each set top box that is successfully connected;
  • the data continuous detecting module acquires the device identifiers of all the set top boxes, and determines whether the writing number data that all the set top boxes need to write is continuous data;
  • the automatic association module if it is continuous data, controls the write number server to automatically associate the consecutive N write number data with the set top box device identifier according to the number N of the set top boxes;
  • the wireless connection module determines whether the set top box that establishes the connection with the write number server exceeds the load limit. If the load limit is exceeded, the batch number of each set top box is detected, according to the batch time of the write number. Sorting, according to the sorting of the set-top box that exceeds the load limit, enters the queue waiting sequence.
  • the wireless connection module creates a first list and a second list to store device identifiers, the first list stores all device identifiers, and the second list stores device identifiers that have been connected to the write number server;
  • the writing number server searches for the corresponding device identifier from the first list and stores it in the second list.
  • the organic top box is disconnected from the writing number server, the writing number server is deleted from the second list. The device ID assigned to the set top box.
  • the wireless connection module displays the device identification on both the write number server and the set top box.
  • the automatic association module adds a write number indicator to the write number server, stores the last write number, the number of lines of the write number data in the write number server database, and the automatic associated write number data. According to the value of the write number indicator, the write number data of the next line, combined with the number N of the set top boxes, is automatically associated with the set top box in turn.
  • An electronic device provided by the present application includes:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the methods described above.
  • the method and system for writing a set-top box of the present application simultaneously establishes a connection between a plurality of set-top boxes and a writing number server through a wireless network, and according to the continuity of the data of the plurality of set-top boxes, adopts automatic association or automatic and manual association to cooperate with multiple
  • the set-top box is associated with the write number data, and then the batch number is written, thereby solving the problem that the single write number method takes a lot of time and seriously affects the production efficiency, greatly improving the writing number efficiency and reducing the cost.
  • 1 is a flow chart of a method for writing a set top box in an embodiment
  • FIG. 2 is a structural diagram of a set top box numbering system in an embodiment
  • Fig. 3 is a structural diagram of an electronic device in an embodiment.
  • FIG. 1 is a flow chart of a method for writing a set top box in an embodiment. As shown in FIG. 1, the method includes the following steps:
  • S10 Control multiple set-top boxes to establish a connection with the write number server through the wireless network, and the connection successfully controls the write number server to assign a device identifier to each set top box that is successfully connected.
  • the method of the present application uses the parallel batch write method to perform the write operation on the set top box.
  • a plurality of set-top boxes to be written are connected to the write number server through a networking function of the wireless network. Priority is given to connecting multiple set-top boxes to the write number server over the router's wireless network.
  • the step further includes: determining whether the set top box connected with the write number server is out of load. Limit, if the load limit is exceeded, the batch number of each set-top box is detected, sorted according to the batch time of the write number, and the set-top box according to the sorting exceeding the load limit enters the queue waiting sequence.
  • the device identification is displayed in both the write number server and the set-top box.
  • the step further includes: creating a first list and a second list to store the device identifier, the first list storing all the device identifiers, and the second list storing the device identifiers of the server that has been connected to the write number;
  • the write number server searches for the corresponding device identifier from the first list and stores it in the second list.
  • the write number server is from the second list. Remove the device ID assigned to the set-top box. This makes it clear to manage the set-top box.
  • S20 Obtain the device identifiers of all the set top boxes, and determine whether the write number data that all the set top boxes need to write is continuous data.
  • the write number server When the set-top box performs the write number operation, if the write number data of the set-top box is continuous data, the write number server performs a write operation on the set-top box, and can directly allocate a continuous write number data to automatically associate with the set-top box. However, it is also possible that the write number data of some set top boxes is non-contiguous on the write number server, then the write number server cannot directly allocate a continuous write number data to automatically associate with the set top box, so the first set of boxes needs to be judged when writing the set top box. Whether the write number data to be written is continuous data, so that different write numbers are used.
  • the method of the present application can adopt the automatic association mode, and the write number server automatically associates the stored consecutive N number of write data according to the number N of the set top boxes, so that each time the number operation is performed, it is not necessary to do each time Both correspond to the correspondence between different devices and write number data, which greatly improves the efficiency of writing numbers.
  • this step adds a write number indicator to the write number server, stores the last write number, and writes the number of lines in the database of the write number server.
  • the write number data is automatically associated, according to the value of the write number indicator, the write number data of the next line, combined with the number N of the set top boxes, is automatically associated with the set top box in turn, thus effectively avoiding the omission of the write number data.
  • the automatic association method cannot be used for the write number operation.
  • the step of the write number data is manually connected. After the non-continuous data is manually associated, the remaining M set-top boxes are automatically associated with the write number data, so that the assignment of the write number data is completed by manual association and automatic association.
  • S50 Write the write number data associated with the set top box to the corresponding set top box at the same time, and complete the writing number.
  • the associated writing number data can be simultaneously written into the corresponding set-top box, and the batch writing number is completed, which is fast and convenient, saves a lot of time, greatly improves production efficiency and reduces Cost of production.
  • the application also provides a set top box numbering system, as shown in FIG. 2, the system includes:
  • the wireless connection module 100 controls a plurality of set top boxes to establish a connection with the write number server through the wireless network, and the connection successfully controls the write number server to respectively assign a device identifier to each set top box that is successfully connected.
  • the system of the present application uses the parallel batch write method to write the number of the set-top box.
  • the wireless connection module 100 establishes a connection between the plurality of to-be-written number set-top boxes and the write number server through the networking function of the wireless network. Priority is given to connecting multiple set-top boxes to the write number server over the router's wireless network.
  • the step further includes: the wireless connection module 100 determines that the connection with the write number server is established. Whether the set-top box exceeds the load limit. If the load limit is exceeded, the batch number of each set-top box is detected, and the batch number is sorted according to the batch time of the write number. The set-top box that sorts out the load limit enters the queue waiting sequence.
  • the wireless connection module 100 displays the device identification on both the write number server and the set top box.
  • the wireless connection module 100 creates a first list and a second list to store the device identifier, the first list stores all device identifiers, and the second list stores the device identifiers that have been connected to the write number server;
  • the write number server searches for the corresponding device identifier from the first list and stores it in the second list.
  • the write number server is from the second list. Delete the device ID assigned to the set-top box. This makes it clear to manage the set-top box.
  • the data continuous detecting module 200 obtains the device identifiers of all the set top boxes, and determines whether the writing number data that all the set top boxes need to write is continuous data.
  • the write-number server controls the write-number operation of the set-top box, and can directly allocate a continuous write number data to automatically associate with the set-top box.
  • the write number data of some set top boxes is non-continuous on the write number server, and the control write number server cannot directly allocate a continuous write number data to automatically associate with the set top box, so the first set of boxes needs to be judged when writing the set top box. Whether the write number data to be written is continuous data, so that different write numbers are used.
  • the automatic association module 300 if it is continuous data, controls the write number server to automatically associate the consecutive N write number data with the set top box device identifier according to the number N of the set top boxes.
  • the method of the present application can adopt the automatic association mode, and the automatic association module 300 controls the write number server to automatically associate the stored consecutive N number of write data according to the number N of the set top boxes, so that the number is written each time. It is not necessary to configure the correspondence between different devices and write number data each time during operation, which greatly improves the efficiency of writing numbers.
  • the auto-association module 300 adds a write number indicator to the write number server, stores the last write number, and writes the number of lines in the database of the write number server.
  • the write number data is automatically associated, according to the value of the write number indicator, the write number data of the next line, combined with the number N of the set top boxes, is automatically associated with the set top box in turn, thus effectively avoiding the omission of the write number data.
  • the manual association module 400 if not continuous data, finds the set-top box of the non-contiguous data for manual association, and then controls the write number server to sequentially perform the M number of write number data with the M set-top box device identifiers according to the number M of the remaining set-top boxes. Automatic association.
  • the automatic number association mode cannot be used for the write number operation, and the set top box of the non-continuous data is associated with the write number data by manual association. After the non-continuous data is manually associated, the remaining M set-top boxes are automatically associated with the write number data, so that the assignment of the write number data is completed by manual association and automatic association.
  • the write number operation module 500 simultaneously writes the write number data associated with the set top box to the corresponding set top box to complete the write number.
  • the associated writing number data can be simultaneously written into the corresponding set-top box, and the batch writing number is completed, which is fast and convenient, saves a lot of time, greatly improves production efficiency and reduces Cost of production.
  • the method and system for writing a set-top box of the present application simultaneously establishes a connection between a plurality of set-top boxes and a writing number server through a wireless network, and according to the continuity of the data of the plurality of set-top boxes, adopts automatic association or automatic and manual association to cooperate with multiple
  • the set-top box is associated with the write number data, and then the batch number is written, thereby solving the problem that the single write number method takes a lot of time and seriously affects the production efficiency, greatly improving the writing number efficiency and reducing the cost.
  • the present application further provides an electronic device, where the electronic device 600 includes:
  • One or more processors 61 and memory 62 are taken as an example in FIG.
  • the processor 61 and the memory 62 can be connected by a bus or other means, as exemplified by the bus connection in FIG.
  • the memory 62 is a non-volatile computer readable storage medium, and can be used for storing a non-volatile software program, a non-volatile computer executable program, and a module unit, such as a set-top box number in the above embodiment of the present application.
  • the program corresponding to the program instruction and a set top box number system (for example, the wireless connection module 100, the data continuous detection module 200, the automatic association module 300, the manual association module 400, the write number operation module 500, etc.).
  • the processor 61 executes various functional applications and data processing of a set top box writing method by running non-volatile software programs, instructions, and module units stored in the memory 62, that is, implementing one of the above method embodiments.
  • the memory 62 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of a set top box number system, etc. .
  • the memory 62 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device.
  • memory 62 may optionally include memory remotely located relative to processor 61, which may be coupled to processor 61 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the program instructions and one or more modules are stored in the memory 62, and when executed by the one or more processors 61, perform various steps of a set top box numbering method in any of the above method embodiments, Alternatively, the functions of the various modular units of a set top box writing system in any of the above embodiments are implemented.
  • the embodiment of the present application further provides a non-transitory computer readable storage medium storing computer executable instructions executed by one or more processors, such as FIG. A processor 61 for causing a computer to perform the steps of a set top box numbering method in any of the above method embodiments, or to implement the functions of each module unit of a set top box writing number system in any of the above apparatus embodiments .
  • the embodiment of the present application further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instruction is Or a plurality of processors executing, for example, a processor 61 in FIG. 3, which may cause the computer to perform the steps of a set top box numbering method in any of the above method embodiments, or to implement one of the foregoing apparatus embodiments.
  • the function of each module unit of the set-top box writing system comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instruction is Or a plurality of processors executing, for example, a processor 61 in FIG. 3, which may cause the computer to perform the steps of a set top box numbering method in any of the above method embodiments, or to implement one of the foregoing apparatus embodiments.
  • the function of each module unit of the set-top box writing system comprising a computer program stored on a
  • module units described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, ie Located in one place, or distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • the embodiments can be implemented by means of software plus a general hardware platform, and of course, by hardware.
  • a person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by computer program related hardware, and the program can be stored in a computer readable storage medium, and the program is executed.
  • the flow of the method of implementation of each of the above methods may be included.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

The present application relates to a method and system for set-top box number writing. Multiple set-top boxes are simultaneously connected to a number writing server via a wireless network, and an automatic association scheme or a combined automatic and manual association scheme is employed on the basis of the continuity of multiple pieces of set-top box number writing data to associate number writing data with the multiple set-top boxes, then, numbers are written in batch, thus solving the problem of individual number writing being time consuming and severely affecting production efficiency, greatly increasing the efficiency of number writing, and reducing costs.

Description

一种机顶盒写号方法及系统Method and system for writing number of set top box
本申请要求于2017年9月27日提交中国专利局,申请号为2017108905960,发明名称为“一种机顶盒写号方法及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese Patent Application, filed on Sep. 27, 2017, the entire disclosure of which is hereby incorporated by reference. in.
技术领域Technical field
本申请涉及数字电视领域,尤其涉及一种机顶盒写号方法及系统。The present application relates to the field of digital television, and in particular, to a method and system for writing a set top box.
背景技术Background technique
每台出厂的机顶盒都有一些标识该机顶盒身份的唯一数据,例如机顶盒序列号、主板编号、MAC地址、HDCP key等等,这些唯一数据无法从硬件信息中获取,需要从外部设备写入,写入数据的过程则称为写号过程,写号是机顶盒生产过程的重要环节。Each factory set-top box has some unique data that identifies the identity of the set-top box, such as the set-top box serial number, motherboard number, MAC address, HDCP key, etc. These unique data cannot be obtained from the hardware information, and need to be written and written from the external device. The process of entering data is called the number writing process, and the writing number is an important part of the production process of the set-top box.
写号需要通过生产管理系统来进行,生产管理系统负责产生写号数据的生成与管理。写号数据首先通过生产管理系统配置并保存在生产数据库中,当要写号时,将生产管理系统所在的设备(写号设备,作为服务端)与机顶盒(作为客户端)连接起来,运行服务端及客户端程序,根据写号操作进行写号。The writing number needs to be carried out through the production management system, which is responsible for generating the generation and management of the writing number data. The write number data is first configured and saved in the production database through the production management system. When the number is to be written, the device (the writing device as the server) where the production management system is located is connected with the set-top box (as the client), and the service is run. End and client programs, write numbers according to the write number operation.
目前,连接服务端和客户端主要有两种方式:通过串口连接或者通过网络连接,所以写号也分为通过串口写号或者通过网络写号。但是,现在这两种写号方式均为单一写号方式,即一次写号操作只能给一台机顶盒写号,然而在生产过程中需要写号的机顶盒数量巨大,单一写号方式需要耗费大量时间,严重影响生产效率,增加生产成本。Currently, there are two main ways to connect the server to the client: through a serial port connection or through a network connection, so the write number is also divided into a serial number or a network number. However, now both types of writing are single-numbering, that is, one writing operation can only write a number to a set-top box. However, the number of set-top boxes that need to be written in the production process is huge, and the single writing method requires a lot of processing. Time, seriously affecting production efficiency and increasing production costs.
发明内容Summary of the invention
有鉴于此,有必要针对上述写号方式为单一写号方式耗费大量时间、影响生产效率的问题,提供一种机顶盒写号方法及系统。In view of this, it is necessary to provide a set-top box writing method and system for the problem that the above-mentioned writing method is a single writing method that consumes a lot of time and affects production efficiency.
本申请提供的一种机顶盒写号方法,包括如下步骤:The method for writing a set top box provided by the application includes the following steps:
S10:控制多个机顶盒通过无线网与写号服务器建立连接,连接成 功控制写号服务器为连接成功的每个机顶盒分别分配一个设备标识;S10: Control a plurality of set top boxes to establish a connection with the write number server through the wireless network, and connect the successfully controlled write number server to assign a device identifier to each set top box that is successfully connected;
S20:获取所有机顶盒的设备标识,判断所有机顶盒所需要写入的写号数据是否为连续数据;S20: Obtain device identifiers of all the set top boxes, and determine whether the write number data that all the set top boxes need to write is continuous data;
S30:若是连续数据,则根据机顶盒的个数N控制写号服务器将连续的N个写号数据依次与机顶盒设备标识进行自动关联;S30: If the data is continuous, controlling the write number server according to the number N of the set top boxes to automatically associate the consecutive N write number data with the set top box device identifier;
S40:若不是连续数据,则查找出非连续数据的机顶盒进行手动关联,然后根据剩余机顶盒的个数M控制写号服务器将连续的M个写号数据依次与M个机顶盒设备标识进行自动关联;S40: if it is not continuous data, the set-top box that finds the non-contiguous data is manually associated, and then controls the write number server to automatically associate the consecutive M number-of-write data with the M set-top box device identifiers according to the number M of the remaining set-top boxes;
S50:将与机顶盒关联的写号数据同时写入对应的机顶盒,完成写号。S50: Write the write number data associated with the set top box to the corresponding set top box at the same time, and complete the writing number.
在其中的一个实施例中,所述步骤S10还包括:判断与写号服务器建立连接的机顶盒是否超出负载限制,若超出负载限制,则检测每台机顶盒的写号批次,按照写号批次时间先后进行排序,根据排序超出负载限制的机顶盒进入排队等候序列。In one embodiment, the step S10 further includes: determining whether the set top box establishing the connection with the write number server exceeds the load limit, and if the load limit is exceeded, detecting the batch number of each set top box, according to the batch number of the write number The time is sorted sequentially, and the set-top box enters the queue waiting sequence according to the sorting that exceeds the load limit.
在其中的一个实施例中,所述步骤S10还包括:创建第一列表和第二列表来存放设备标识,第一列表存放所有设备标识,第二列表存放已经连接上写号服务器的设备标识;当机顶盒与写号服务器建立连接时,写号服务器从第一列表中寻找对应的设备标识存储到第二列表中,当有机顶盒与写号服务器断开连接时,写号服务器则从第二列表中删除分配给该机顶盒的设备标识。In an embodiment, the step S10 further includes: creating a first list and a second list to store the device identifier, the first list storing all device identifiers, and the second list storing the device identifiers of the server having the write number; When the set top box establishes a connection with the write number server, the write number server searches for the corresponding device identifier from the first list and stores it in the second list. When the set top box is disconnected from the write number server, the write number server is from the second list. Remove the device ID assigned to the set-top box.
在其中的一个实施例中,所述步骤S10还包括:设备标识在写号服务器和机顶盒均显示出来。In one embodiment, the step S10 further includes: the device identifier is displayed on both the write number server and the set top box.
在其中的一个实施例中,所述步骤S30还包括:在写号服务器中增加一个写号指示符,存储最后一次写号,写号数据在写号服务器数据库中的行数;在自动关联写号数据时根据写号指示符的值,由下一行的写号数据,结合机顶盒的个数N,依次与机顶盒自动关联起来。In one embodiment, the step S30 further includes: adding a write number indicator to the write number server, storing the last write number, the number of lines of the write number data in the write number server database; According to the value of the write number indicator, the number data is automatically associated with the set top box by the write number data of the next line in combination with the number N of the set top boxes.
本申请提供的一种机顶盒写号系统,包括:A set top box numbering system provided by the present application includes:
无线连接模块,控制多个机顶盒通过无线网与写号服务器建立连接,连接成功控制写号服务器为连接成功的每个机顶盒分别分配一个设备标识;The wireless connection module controls a plurality of set top boxes to establish a connection with the write number server through the wireless network, and the connection successfully controls the write number server to respectively assign a device identifier to each set top box that is successfully connected;
数据连续检测模块,获取所有机顶盒的设备标识,判断所有机顶盒所需要写入的写号数据是否为连续数据;The data continuous detecting module acquires the device identifiers of all the set top boxes, and determines whether the writing number data that all the set top boxes need to write is continuous data;
自动关联模块,若是连续数据,则根据机顶盒的个数N控制写号服务器将连续的N个写号数据依次与机顶盒设备标识进行自动关联;The automatic association module, if it is continuous data, controls the write number server to automatically associate the consecutive N write number data with the set top box device identifier according to the number N of the set top boxes;
手动关联模块,若不是连续数据,则查找出非连续数据的机顶盒进行手动关联,然后根据剩余机顶盒的个数M控制写号服务器将连续的M个写号数据依次与M个机顶盒设备标识进行自动关联;Manually associate the module, if it is not continuous data, find the set-top box with non-contiguous data for manual association, and then control the write number server according to the number M of the remaining set-top boxes to sequentially and continuously record the M number of write data with the M set-top box device identifiers. Association
写号操作模块,将与机顶盒关联的写号数据同时写入对应的机顶盒,完成写号。Write the operation module, and write the write number data associated with the set-top box to the corresponding set-top box at the same time to complete the write number.
在其中的一个实施例中,所述无线连接模块判断与写号服务器建立连接的机顶盒是否超出负载限制,若超出负载限制,则检测每台机顶盒的写号批次,按照写号批次时间先后进行排序,根据排序超出负载限制的机顶盒进入排队等候序列。In one embodiment, the wireless connection module determines whether the set top box that establishes the connection with the write number server exceeds the load limit. If the load limit is exceeded, the batch number of each set top box is detected, according to the batch time of the write number. Sorting, according to the sorting of the set-top box that exceeds the load limit, enters the queue waiting sequence.
在其中的一个实施例中,所述无线连接模块创建第一列表和第二列表来存放设备标识,第一列表存放所有设备标识,第二列表存放已经连接上写号服务器的设备标识;当机顶盒与写号服务器建立连接时,写号服务器从第一列表中寻找对应的设备标识存储到第二列表中,当有机顶盒与写号服务器断开连接时,写号服务器则从第二列表中删除分配给该机顶盒的设备标识。In one embodiment, the wireless connection module creates a first list and a second list to store device identifiers, the first list stores all device identifiers, and the second list stores device identifiers that have been connected to the write number server; When establishing a connection with the writing number server, the writing number server searches for the corresponding device identifier from the first list and stores it in the second list. When the organic top box is disconnected from the writing number server, the writing number server is deleted from the second list. The device ID assigned to the set top box.
在其中的一个实施例中,所述无线连接模块将设备标识在写号服务器和机顶盒均显示出来。In one of the embodiments, the wireless connection module displays the device identification on both the write number server and the set top box.
在其中的一个实施例中,所述自动关联模块在写号服务器中增加一个写号指示符,存储最后一次写号,写号数据在写号服务器数据库中的行数;在自动关联写号数据时根据写号指示符的值,由下一行的写号数 据,结合机顶盒的个数N,依次与机顶盒自动关联起来。In one of the embodiments, the automatic association module adds a write number indicator to the write number server, stores the last write number, the number of lines of the write number data in the write number server database, and the automatic associated write number data. According to the value of the write number indicator, the write number data of the next line, combined with the number N of the set top boxes, is automatically associated with the set top box in turn.
本申请提供的一种电子设备,包括:An electronic device provided by the present application includes:
至少一个处理器;以及At least one processor;
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行以上所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the methods described above.
本申请机顶盒写号方法及系统,将多个机顶盒与写号服务器通过无线网同时建立连接,并且根据多个机顶盒写号数据的连续性,采用自动关联或者自动和手动关联配合的方式为多个机顶盒关联好写号数据,然后进行批量写号,从而解决单一写号方式耗费大量时间、严重影响生产效率的问题,大大提高写号效率,降低了成本。The method and system for writing a set-top box of the present application simultaneously establishes a connection between a plurality of set-top boxes and a writing number server through a wireless network, and according to the continuity of the data of the plurality of set-top boxes, adopts automatic association or automatic and manual association to cooperate with multiple The set-top box is associated with the write number data, and then the batch number is written, thereby solving the problem that the single write number method takes a lot of time and seriously affects the production efficiency, greatly improving the writing number efficiency and reducing the cost.
附图说明DRAWINGS
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。The one or more embodiments are exemplified by the accompanying drawings in the accompanying drawings, and FIG. The figures in the drawings do not constitute a scale limitation unless otherwise stated.
图1是一个实施例中的机顶盒写号方法的流程图;1 is a flow chart of a method for writing a set top box in an embodiment;
图2是一个实施例中的机顶盒写号系统的结构图;2 is a structural diagram of a set top box numbering system in an embodiment;
图3是一个实施例中的电子设备的结构图。Fig. 3 is a structural diagram of an electronic device in an embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
图1是一个实施例中的机顶盒写号方法的流程图,如图1所示,该 方法包括以下步骤:1 is a flow chart of a method for writing a set top box in an embodiment. As shown in FIG. 1, the method includes the following steps:
S10:控制多个机顶盒通过无线网与写号服务器建立连接,连接成功控制写号服务器为连接成功的每个机顶盒分别分配一个设备标识。S10: Control multiple set-top boxes to establish a connection with the write number server through the wireless network, and the connection successfully controls the write number server to assign a device identifier to each set top box that is successfully connected.
由于单一写号方式,一次写号操作只能给一台机顶盒写号,每台机顶盒串联方式写号将耗费大量时间,故本申请方法采用并联批量写号方式来对机顶盒进行写号操作。具体的,通过无线网的组网功能,将多个待写号机顶盒与写号服务器建立连接。优先的,可通过路由器的无线网络将多个机顶盒与写号服务器进行连接。Due to the single write number mode, one write operation can only write a number to a set top box. Each set top box will take a lot of time to write the serial number in series. Therefore, the method of the present application uses the parallel batch write method to perform the write operation on the set top box. Specifically, a plurality of set-top boxes to be written are connected to the write number server through a networking function of the wireless network. Priority is given to connecting multiple set-top boxes to the write number server over the router's wireless network.
由于写号服务器的负载能力有限,同时连接的机顶盒数量需要进行限制,否则超出写号服务器的负载将造成写号服务器瘫痪,故该步骤还包括:判断与写号服务器建立连接的机顶盒是否超出负载限制,若超出负载限制,则检测每台机顶盒的写号批次,按照写号批次时间先后进行排序,根据排序超出负载限制的机顶盒进入排队等候序列。Since the load capacity of the write number server is limited, the number of connected set top boxes needs to be limited. Otherwise, the load exceeding the write number server will cause the write number server to be defective. Therefore, the step further includes: determining whether the set top box connected with the write number server is out of load. Limit, if the load limit is exceeded, the batch number of each set-top box is detected, sorted according to the batch time of the write number, and the set-top box according to the sorting exceeding the load limit enters the queue waiting sequence.
为能够清楚的对每台机顶盒进行管理,设备标识在写号服务器和机顶盒均显示出来。In order to be able to clearly manage each set-top box, the device identification is displayed in both the write number server and the set-top box.
为更好的对设备标识进行管理,该步骤还包括:创建第一列表和第二列表来存放设备标识,第一列表存放所有设备标识,第二列表存放已经连接上写号服务器的设备标识;当机顶盒与写号服务器建立连接时,写号服务器从第一列表中寻找对应的设备标识存储到第二列表中,当有机顶盒与写号服务器断开连接时,写号服务器则从第二列表中删除分配给该机顶盒的设备标识。这样就清楚的对机顶盒进行管理。In order to manage the device identifier, the step further includes: creating a first list and a second list to store the device identifier, the first list storing all the device identifiers, and the second list storing the device identifiers of the server that has been connected to the write number; When the set top box establishes a connection with the write number server, the write number server searches for the corresponding device identifier from the first list and stores it in the second list. When the set top box is disconnected from the write number server, the write number server is from the second list. Remove the device ID assigned to the set-top box. This makes it clear to manage the set-top box.
S20:获取所有机顶盒的设备标识,判断所有机顶盒所需要写入的写号数据是否为连续数据。S20: Obtain the device identifiers of all the set top boxes, and determine whether the write number data that all the set top boxes need to write is continuous data.
机顶盒在进行写号操作时,如果机顶盒的写号数据是连续数据,则写号服务器对机顶盒进行写号操作,可以直接分配一段连续的写号数据与机顶盒进行自动关联。但是也有可能部分机顶盒的写号数据在写号服务器上是非连续的,那么写号服务器则不能直接分配一段连续的写号数 据与机顶盒进行自动关联,故在对机顶盒进行写号时需要首先判断机顶盒所需要写入的写号数据是否为连续数据,以便采用不同的写号方式。When the set-top box performs the write number operation, if the write number data of the set-top box is continuous data, the write number server performs a write operation on the set-top box, and can directly allocate a continuous write number data to automatically associate with the set-top box. However, it is also possible that the write number data of some set top boxes is non-contiguous on the write number server, then the write number server cannot directly allocate a continuous write number data to automatically associate with the set top box, so the first set of boxes needs to be judged when writing the set top box. Whether the write number data to be written is continuous data, so that different write numbers are used.
S30:若是连续数据,则根据机顶盒的个数N控制写号服务器将连续的N个写号数据依次与机顶盒设备标识进行自动关联。S30: If the data is continuous, the server is controlled according to the number N of the set top boxes, and the consecutive N number data is sequentially associated with the set top box device identifier.
如果是连续数据则本申请方法可采用自动关联方式,则由写号服务器根据机顶盒的个数N将存储的连续的N个写号数据进行自动关联,这样在每次写号操作时不必每次都配置不同设备与写号数据的对应关系,大大提高写号效率。If it is continuous data, the method of the present application can adopt the automatic association mode, and the write number server automatically associates the stored consecutive N number of write data according to the number N of the set top boxes, so that each time the number operation is performed, it is not necessary to do each time Both correspond to the correspondence between different devices and write number data, which greatly improves the efficiency of writing numbers.
为防止写号服务器自动关联写号数据时发生遗漏,该步骤在写号服务器中增加一个写号指示符,存储最后一次写号,写号数据在写号服务器数据库中的行数。在自动关联写号数据时根据写号指示符的值,由下一行的写号数据,结合机顶盒的个数N,依次与机顶盒自动关联起来,这样就有效避免写号数据发生遗漏。To prevent omission when the write number server automatically associates the write number data, this step adds a write number indicator to the write number server, stores the last write number, and writes the number of lines in the database of the write number server. When the write number data is automatically associated, according to the value of the write number indicator, the write number data of the next line, combined with the number N of the set top boxes, is automatically associated with the set top box in turn, thus effectively avoiding the omission of the write number data.
S40:若不是连续数据,则查找出非连续数据的机顶盒进行手动关联,然后根据剩余机顶盒的个数M控制写号服务器将连续的M个写号数据依次与M个机顶盒设备标识进行自动关联。S40: If it is not continuous data, the set-top box that finds the non-contiguous data is manually associated, and then controls the write number server to automatically associate the consecutive M number-of-write data with the M set-top box device identifiers according to the number M of the remaining set-top boxes.
如果机顶盒的写号数据不是连续数据,则不能全部采用自动关联方式进行写号操作,对于非连续数据的机顶盒本步骤采用手动关联的方式进行写号数据的关联。在手动关联完非连续数据后,对于剩余的M个机顶盒再采用自动关联方式进行写号数据的关联,从而通过手动关联和自动关联想配合的方式,完成写号数据的分配。If the write number data of the set top box is not continuous data, the automatic association method cannot be used for the write number operation. For the set top box of the non-continuous data, the step of the write number data is manually connected. After the non-continuous data is manually associated, the remaining M set-top boxes are automatically associated with the write number data, so that the assignment of the write number data is completed by manual association and automatic association.
S50:将与机顶盒关联的写号数据同时写入对应的机顶盒,完成写号。S50: Write the write number data associated with the set top box to the corresponding set top box at the same time, and complete the writing number.
在通过自动关联或者手动关联为机顶盒关联好写号数据后,即可将关联的写号数据同时写入对应的机顶盒中,完成批量写号,快速便捷,节约大量时间,大大提高生产效率,降低生产成本。After the automatic writing or manual association is associated with the set-top box, the associated writing number data can be simultaneously written into the corresponding set-top box, and the batch writing number is completed, which is fast and convenient, saves a lot of time, greatly improves production efficiency and reduces Cost of production.
同时,本申请还提供一种机顶盒写号系统,如图2所示,该系统包 括:Meanwhile, the application also provides a set top box numbering system, as shown in FIG. 2, the system includes:
无线连接模块100,控制多个机顶盒通过无线网与写号服务器建立连接,连接成功控制写号服务器为连接成功的每个机顶盒分别分配一个设备标识。The wireless connection module 100 controls a plurality of set top boxes to establish a connection with the write number server through the wireless network, and the connection successfully controls the write number server to respectively assign a device identifier to each set top box that is successfully connected.
由于单一写号方式,一次写号操作只能给一台机顶盒写号,每台机顶盒串联方式写号将耗费大量时间,故本申请系统采用并联批量写号方式来对机顶盒进行写号操作。具体的,无线连接模块100通过无线网的组网功能,将多个待写号机顶盒与写号服务器建立连接。优先的,可通过路由器的无线网络将多个机顶盒与写号服务器进行连接。Due to the single write number mode, one write operation can only write a number to a set-top box. Each set-top box will take a lot of time to write the serial number in series. Therefore, the system of the present application uses the parallel batch write method to write the number of the set-top box. Specifically, the wireless connection module 100 establishes a connection between the plurality of to-be-written number set-top boxes and the write number server through the networking function of the wireless network. Priority is given to connecting multiple set-top boxes to the write number server over the router's wireless network.
由于写号服务器的负载能力有限,同时连接的机顶盒数量需要进行限制,否则超出写号服务器的负载将造成写号服务器瘫痪,故该步骤还包括:无线连接模块100判断与写号服务器建立连接的机顶盒是否超出负载限制,若超出负载限制,则检测每台机顶盒的写号批次,按照写号批次时间先后进行排序,根据排序超出负载限制的机顶盒进入排队等候序列。Because the load capacity of the write number server is limited, the number of connected set top boxes needs to be limited. Otherwise, the load exceeding the write number server will cause the write number server to be defective. Therefore, the step further includes: the wireless connection module 100 determines that the connection with the write number server is established. Whether the set-top box exceeds the load limit. If the load limit is exceeded, the batch number of each set-top box is detected, and the batch number is sorted according to the batch time of the write number. The set-top box that sorts out the load limit enters the queue waiting sequence.
为能够清楚的对每台机顶盒进行管理,无线连接模块100将设备标识在写号服务器和机顶盒均显示出来。In order to be able to clearly manage each set top box, the wireless connection module 100 displays the device identification on both the write number server and the set top box.
为更好的对设备标识进行管理,无线连接模块100创建第一列表和第二列表来存放设备标识,第一列表存放所有设备标识,第二列表存放已经连接上写号服务器的设备标识;当机顶盒与写号服务器建立连接时,写号服务器从第一列表中寻找对应的设备标识存储到第二列表中,当有机顶盒与写号服务器断开连接时,写号服务器则从第二列表中删除分配给该机顶盒的设备标识。这样就清楚的对机顶盒进行管理。To better manage the device identifier, the wireless connection module 100 creates a first list and a second list to store the device identifier, the first list stores all device identifiers, and the second list stores the device identifiers that have been connected to the write number server; When the set top box establishes a connection with the write number server, the write number server searches for the corresponding device identifier from the first list and stores it in the second list. When the top set box is disconnected from the write number server, the write number server is from the second list. Delete the device ID assigned to the set-top box. This makes it clear to manage the set-top box.
数据连续检测模块200,获取所有机顶盒的设备标识,判断所有机顶盒所需要写入的写号数据是否为连续数据。The data continuous detecting module 200 obtains the device identifiers of all the set top boxes, and determines whether the writing number data that all the set top boxes need to write is continuous data.
机顶盒在进行写号操作时,如果机顶盒的写号数据是连续数据,则控制写号服务器对机顶盒进行写号操作,可以直接分配一段连续的写号 数据与机顶盒进行自动关联。但是也有可能部分机顶盒的写号数据在写号服务器上是非连续的,控制写号服务器则不能直接分配一段连续的写号数据与机顶盒进行自动关联,故在对机顶盒进行写号时需要首先判断机顶盒所需要写入的写号数据是否为连续数据,以便采用不同的写号方式。When the set-top box performs the write number operation, if the write number data of the set-top box is continuous data, the write-number server controls the write-number operation of the set-top box, and can directly allocate a continuous write number data to automatically associate with the set-top box. However, it is also possible that the write number data of some set top boxes is non-continuous on the write number server, and the control write number server cannot directly allocate a continuous write number data to automatically associate with the set top box, so the first set of boxes needs to be judged when writing the set top box. Whether the write number data to be written is continuous data, so that different write numbers are used.
自动关联模块300,若是连续数据,则根据机顶盒的个数N控制写号服务器将连续的N个写号数据依次与机顶盒设备标识进行自动关联。The automatic association module 300, if it is continuous data, controls the write number server to automatically associate the consecutive N write number data with the set top box device identifier according to the number N of the set top boxes.
如果是连续数据则本申请方法可采用自动关联方式,则由自动关联模块300控制写号服务器根据机顶盒的个数N将存储的连续的N个写号数据进行自动关联,这样在每次写号操作时不必每次都配置不同设备与写号数据的对应关系,大大提高写号效率。If it is continuous data, the method of the present application can adopt the automatic association mode, and the automatic association module 300 controls the write number server to automatically associate the stored consecutive N number of write data according to the number N of the set top boxes, so that the number is written each time. It is not necessary to configure the correspondence between different devices and write number data each time during operation, which greatly improves the efficiency of writing numbers.
为防止写号服务器自动关联写号数据时发生遗漏,自动关联模块300在写号服务器中增加一个写号指示符,存储最后一次写号,写号数据在写号服务器数据库中的行数。在自动关联写号数据时根据写号指示符的值,由下一行的写号数据,结合机顶盒的个数N,依次与机顶盒自动关联起来,这样就有效避免写号数据发生遗漏。In order to prevent omission when the write number server automatically associates the write number data, the auto-association module 300 adds a write number indicator to the write number server, stores the last write number, and writes the number of lines in the database of the write number server. When the write number data is automatically associated, according to the value of the write number indicator, the write number data of the next line, combined with the number N of the set top boxes, is automatically associated with the set top box in turn, thus effectively avoiding the omission of the write number data.
手动关联模块400,若不是连续数据,则查找出非连续数据的机顶盒进行手动关联,然后根据剩余机顶盒的个数M控制写号服务器将连续的M个写号数据依次与M个机顶盒设备标识进行自动关联。The manual association module 400, if not continuous data, finds the set-top box of the non-contiguous data for manual association, and then controls the write number server to sequentially perform the M number of write number data with the M set-top box device identifiers according to the number M of the remaining set-top boxes. Automatic association.
如果机顶盒的写号数据不是连续数据,则不能全部采用自动关联方式进行写号操作,对于非连续数据的机顶盒采用手动关联的方式进行写号数据的关联。在手动关联完非连续数据后,对于剩余的M个机顶盒再采用自动关联方式进行写号数据的关联,从而通过手动关联和自动关联想配合的方式,完成写号数据的分配。If the write number data of the set top box is not continuous data, the automatic number association mode cannot be used for the write number operation, and the set top box of the non-continuous data is associated with the write number data by manual association. After the non-continuous data is manually associated, the remaining M set-top boxes are automatically associated with the write number data, so that the assignment of the write number data is completed by manual association and automatic association.
写号操作模块500,将与机顶盒关联的写号数据同时写入对应的机顶盒,完成写号。The write number operation module 500 simultaneously writes the write number data associated with the set top box to the corresponding set top box to complete the write number.
在通过自动关联或者手动关联为机顶盒关联好写号数据后,即可将 关联的写号数据同时写入对应的机顶盒中,完成批量写号,快速便捷,节约大量时间,大大提高生产效率,降低生产成本。After the automatic writing or manual association is associated with the set-top box, the associated writing number data can be simultaneously written into the corresponding set-top box, and the batch writing number is completed, which is fast and convenient, saves a lot of time, greatly improves production efficiency and reduces Cost of production.
本申请机顶盒写号方法及系统,将多个机顶盒与写号服务器通过无线网同时建立连接,并且根据多个机顶盒写号数据的连续性,采用自动关联或者自动和手动关联配合的方式为多个机顶盒关联好写号数据,然后进行批量写号,从而解决单一写号方式耗费大量时间、严重影响生产效率的问题,大大提高写号效率,降低了成本。The method and system for writing a set-top box of the present application simultaneously establishes a connection between a plurality of set-top boxes and a writing number server through a wireless network, and according to the continuity of the data of the plurality of set-top boxes, adopts automatic association or automatic and manual association to cooperate with multiple The set-top box is associated with the write number data, and then the batch number is written, thereby solving the problem that the single write number method takes a lot of time and seriously affects the production efficiency, greatly improving the writing number efficiency and reducing the cost.
进一步地,请参阅图3,本申请还提供一种电子设备,所述电子设备600包括:Further, referring to FIG. 3, the present application further provides an electronic device, where the electronic device 600 includes:
一个或多个处理器61以及存储器62。其中,图3中以一个处理器61为例。One or more processors 61 and memory 62. Here, one processor 61 is taken as an example in FIG.
处理器61和存储器62可以通过总线或者其他方式连接,图3中以通过总线连接为例。The processor 61 and the memory 62 can be connected by a bus or other means, as exemplified by the bus connection in FIG.
存储器62作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块单元,如本申请上述实施例中的一种机顶盒写号方法对应的程序指令以及一种机顶盒写号系统(例如,无线连接模块100、数据连续检测模块200、自动关联模块300、手动关联模块400、写号操作模块500等)。处理器61通过运行存储在存储器62中的非易失性软件程序、指令以及模块单元,从而执行一种机顶盒写号方法的各种功能应用以及数据处理,即实现上述方法实施例中的一种机顶盒写号方法以及上述装置实施例的各个模块单元的功能。The memory 62 is a non-volatile computer readable storage medium, and can be used for storing a non-volatile software program, a non-volatile computer executable program, and a module unit, such as a set-top box number in the above embodiment of the present application. The program corresponding to the program instruction and a set top box number system (for example, the wireless connection module 100, the data continuous detection module 200, the automatic association module 300, the manual association module 400, the write number operation module 500, etc.). The processor 61 executes various functional applications and data processing of a set top box writing method by running non-volatile software programs, instructions, and module units stored in the memory 62, that is, implementing one of the above method embodiments. The set-top box writing method and the functions of the respective module units of the above device embodiments.
存储器62可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据一种机顶盒写号系统的使用所创建的数据等。The memory 62 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of a set top box number system, etc. .
此外,存储器62可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性 固态存储器件。在一些实施例中,存储器62可选包括相对于处理器61远程设置的存储器,这些远程存储器可以通过网络连接至处理器61。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。Further, the memory 62 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some embodiments, memory 62 may optionally include memory remotely located relative to processor 61, which may be coupled to processor 61 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
所述程序指令以及一个或多个模块存储在所述存储器62中,当被所述一个或者多个处理器61执行时,执行上述任意方法实施例中的一种机顶盒写号方法的各个步骤,或者,实现上述任意装置实施例中的一种机顶盒写号系统的各个模块单元的功能。The program instructions and one or more modules are stored in the memory 62, and when executed by the one or more processors 61, perform various steps of a set top box numbering method in any of the above method embodiments, Alternatively, the functions of the various modular units of a set top box writing system in any of the above embodiments are implemented.
上述产品可执行本申请上述实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请上述实施例所提供的方法。The above products can perform the methods provided by the above embodiments of the present application, and have the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the above embodiments of the present application.
本申请实施例还提供了一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器执行,例如图3中的一个处理器61,可使得计算机执行上述任意方法实施例中的一种机顶盒写号方法的各个步骤,或者,实现上述任意装置实施例中的一种机顶盒写号系统的各个模块单元的功能。The embodiment of the present application further provides a non-transitory computer readable storage medium storing computer executable instructions executed by one or more processors, such as FIG. A processor 61 for causing a computer to perform the steps of a set top box numbering method in any of the above method embodiments, or to implement the functions of each module unit of a set top box writing number system in any of the above apparatus embodiments .
本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被一个或多个处理器执行,例如图3中的一个处理器61,可使得计算机执行上述任意方法实施例中的一种机顶盒写号方法的各个步骤,或者,实现上述任意装置实施例中的一种机顶盒写号系统的各个模块单元的功能。The embodiment of the present application further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instruction is Or a plurality of processors executing, for example, a processor 61 in FIG. 3, which may cause the computer to perform the steps of a set top box numbering method in any of the above method embodiments, or to implement one of the foregoing apparatus embodiments. The function of each module unit of the set-top box writing system.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块单元可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are merely illustrative, wherein the module units described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, ie Located in one place, or distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
通过以上的实施例的描述,本领域普通技术人员可以清楚地了解到 各实施例可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施方法的流程。其中,所述存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Through the description of the above embodiments, those skilled in the art can clearly understand that the embodiments can be implemented by means of software plus a general hardware platform, and of course, by hardware. A person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by computer program related hardware, and the program can be stored in a computer readable storage medium, and the program is executed. The flow of the method of implementation of each of the above methods may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本申请的保护范围之内。The above is only the preferred embodiment of the present application, and is not intended to limit the application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are included in the scope of the present application. Inside.

Claims (11)

  1. 一种机顶盒写号方法,其特征在于,包括如下步骤:A method for writing a set top box, characterized in that the method comprises the following steps:
    S10:控制多个机顶盒通过无线网与写号服务器建立连接,连接成功控制写号服务器为连接成功的每个机顶盒分别分配一个设备标识;S10: Control a plurality of set top boxes to establish a connection with the write number server through the wireless network, and the connection successfully controls the write number server to respectively allocate a device identifier for each set top box that is successfully connected;
    S20:获取所有机顶盒的设备标识,判断所有机顶盒所需要写入的写号数据是否为连续数据;S20: Obtain device identifiers of all the set top boxes, and determine whether the write number data that all the set top boxes need to write is continuous data;
    S30:若是连续数据,则根据机顶盒的个数N控制写号服务器将连续的N个写号数据依次与机顶盒设备标识进行自动关联;S30: If the data is continuous, controlling the write number server according to the number N of the set top boxes to automatically associate the consecutive N write number data with the set top box device identifier;
    S40:若不是连续数据,则查找出非连续数据的机顶盒进行手动关联,然后根据剩余机顶盒的个数M控制写号服务器将连续的M个写号数据依次与M个机顶盒设备标识进行自动关联;S40: if it is not continuous data, the set-top box that finds the non-contiguous data is manually associated, and then controls the write number server to automatically associate the consecutive M number-of-write data with the M set-top box device identifiers according to the number M of the remaining set-top boxes;
    S50:将与机顶盒关联的写号数据同时写入对应的机顶盒,完成写号。S50: Write the write number data associated with the set top box to the corresponding set top box at the same time, and complete the writing number.
  2. 根据权利要求1所述的机顶盒写号方法,其特征在于,所述步骤S10还包括:判断与写号服务器建立连接的机顶盒是否超出负载限制,若超出负载限制,则检测每台机顶盒的写号批次,按照写号批次时间先后进行排序,根据排序超出负载限制的机顶盒进入排队等候序列。The method according to claim 1, wherein the step S10 further comprises: determining whether the set top box connected to the write number server exceeds a load limit, and if the load limit is exceeded, detecting a write number of each set top box. The batches are sorted according to the batch time of the write number, and the set-top boxes that are sorted beyond the load limit enter the queue waiting sequence.
  3. 根据权利要求1所述的机顶盒写号方法,其特征在于,所述步骤S10还包括:创建第一列表和第二列表来存放设备标识,第一列表存放所有设备标识,第二列表存放已经连接上写号服务器的设备标识;当机顶盒与写号服务器建立连接时,写号服务器从第一列表中寻找对应的设备标识存储到第二列表中,当有机顶盒与写号服务器断开连接时,写号服务器则从第二列表中删除分配给该机顶盒的设备标识。The method for writing a set-top box according to claim 1, wherein the step S10 further comprises: creating a first list and a second list to store device identifiers, the first list storing all device identifiers, and the second list storing connections The device identifier of the server is written; when the set top box establishes a connection with the write number server, the write number server searches for the corresponding device identifier from the first list and stores it in the second list. When the top set box is disconnected from the write number server, The write number server deletes the device identification assigned to the set top box from the second list.
  4. 根据权利要求3所述的机顶盒写号方法,其特征在于,所述步骤S10还包括:设备标识在写号服务器和机顶盒均显示出来。The method for writing a set-top box according to claim 3, wherein the step S10 further comprises: the device identifier is displayed on both the write number server and the set top box.
  5. 根据权利要求1所述的机顶盒写号方法,其特征在于,所述步 骤S30还包括:在写号服务器中增加一个写号指示符,存储最后一次写号,写号数据在写号服务器数据库中的行数;在自动关联写号数据时根据写号指示符的值,由下一行的写号数据,结合机顶盒的个数N,依次与机顶盒自动关联起来。The set-top box writing method according to claim 1, wherein the step S30 further comprises: adding a write number indicator to the write number server, storing the last write number, and writing the number data in the write number server database. The number of lines; according to the value of the write number indicator when automatically writing the number data, the write number data of the next line, combined with the number N of the set top boxes, is automatically associated with the set top box in turn.
  6. 一种机顶盒写号系统,其特征在于,包括:A set top box numbering system, comprising:
    无线连接模块,控制多个机顶盒通过无线网与写号服务器建立连接,连接成功控制写号服务器为连接成功的每个机顶盒分别分配一个设备标识;The wireless connection module controls a plurality of set top boxes to establish a connection with the write number server through the wireless network, and the connection successfully controls the write number server to respectively assign a device identifier to each set top box that is successfully connected;
    数据连续检测模块,获取所有机顶盒的设备标识,判断所有机顶盒所需要写入的写号数据是否为连续数据;The data continuous detecting module acquires the device identifiers of all the set top boxes, and determines whether the writing number data that all the set top boxes need to write is continuous data;
    自动关联模块,若是连续数据,则根据机顶盒的个数N控制写号服务器将连续的N个写号数据依次与机顶盒设备标识进行自动关联;The automatic association module, if it is continuous data, controls the write number server to automatically associate the consecutive N write number data with the set top box device identifier according to the number N of the set top boxes;
    手动关联模块,若不是连续数据,则查找出非连续数据的机顶盒进行手动关联,然后根据剩余机顶盒的个数M控制写号服务器将连续的M个写号数据依次与M个机顶盒设备标识进行自动关联;Manually associate the module, if it is not continuous data, find the set-top box with non-contiguous data for manual association, and then control the write number server according to the number M of the remaining set-top boxes to sequentially and continuously record the M number of write data with the M set-top box device identifiers. Association
    写号操作模块,将与机顶盒关联的写号数据同时写入对应的机顶盒,完成写号。Write the operation module, and write the write number data associated with the set-top box to the corresponding set-top box at the same time to complete the write number.
  7. 根据权利要求6所述的机顶盒写号系统,其特征在于,所述无线连接模块判断与写号服务器建立连接的机顶盒是否超出负载限制,若超出负载限制,则检测每台机顶盒的写号批次,按照写号批次时间先后进行排序,根据排序超出负载限制的机顶盒进入排队等候序列。The set top box numbering system according to claim 6, wherein the wireless connection module determines whether the set top box connected to the write number server exceeds a load limit, and if the load limit is exceeded, detecting a batch number of each set top box According to the batch time of the write number, the set-top box according to the sorting exceeds the load limit enters the queue waiting sequence.
  8. 根据权利要求6所述的机顶盒写号系统,其特征在于,所述无线连接模块创建第一列表和第二列表来存放设备标识,第一列表存放所有设备标识,第二列表存放已经连接上写号服务器的设备标识;当机顶盒与写号服务器建立连接时,写号服务器从第一列表中寻找对应的设备标识存储到第二列表中,当有机顶盒与写号服务器断开连接时,写号服务器则从第二列表中删除分配给该机顶盒的设备标识。The set-top box numbering system according to claim 6, wherein the wireless connection module creates a first list and a second list to store device identifiers, the first list stores all device identifiers, and the second list stores connections. The device identifier of the server; when the set-top box establishes a connection with the write number server, the write number server searches for the corresponding device identifier from the first list and stores it in the second list. When the set-top box is disconnected from the write number server, the write number is The server then removes the device identification assigned to the set top box from the second list.
  9. 根据权利要求8所述的机顶盒写号系统,其特征在于,所述无线连接模块将设备标识在写号服务器和机顶盒均显示出来。The set-top box numbering system according to claim 8, wherein the wireless connection module displays the device identification in both the write number server and the set top box.
  10. 根据权利要求6所述的机顶盒写号系统,其特征在于,所述自动关联模块在写号服务器中增加一个写号指示符,存储最后一次写号,写号数据在写号服务器数据库中的行数;在自动关联写号数据时根据写号指示符的值,由下一行的写号数据,结合机顶盒的个数N,依次与机顶盒自动关联起来。The set-top box numbering system according to claim 6, wherein said automatic association module adds a write number indicator to the write number server, stores the last write number, and writes the number of write data in the database of the write number server. In the automatic association of the write number data, according to the value of the write number indicator, the write number data of the next line, combined with the number N of the set top boxes, is automatically associated with the set top box in turn.
  11. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    至少一个处理器;以及At least one processor;
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-5任意一项所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of any of claims 1-5 method.
PCT/CN2018/097801 2017-09-27 2018-07-31 Method and device for set-top box number writing WO2019062315A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710890596.0A CN107613406A (en) 2017-09-27 2017-09-27 A kind of set top box number of writing method and system
CN201710890596.0 2017-09-27

Publications (1)

Publication Number Publication Date
WO2019062315A1 true WO2019062315A1 (en) 2019-04-04

Family

ID=61058870

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/097801 WO2019062315A1 (en) 2017-09-27 2018-07-31 Method and device for set-top box number writing

Country Status (2)

Country Link
CN (1) CN107613406A (en)
WO (1) WO2019062315A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613406A (en) * 2017-09-27 2018-01-19 深圳市九洲电器有限公司 A kind of set top box number of writing method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153711A1 (en) * 2008-12-11 2010-06-17 Electronics And Telecommunications Research Institute Downloadable conditional access system efficiently detecting duplicated dcas host
CN102164312A (en) * 2010-12-31 2011-08-24 青岛海信传媒网络技术有限公司 Set-top box configuration method and system for Internet protocol television
CN104965738A (en) * 2015-06-26 2015-10-07 深圳市九洲电器有限公司 Set top box data writing-in method and system
CN105611408A (en) * 2015-12-23 2016-05-25 深圳创维数字技术有限公司 Set top box number writing method, set top box and set top box number writing server
CN107613406A (en) * 2017-09-27 2018-01-19 深圳市九洲电器有限公司 A kind of set top box number of writing method and system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588583A (en) * 2008-05-21 2009-11-25 比亚迪股份有限公司 Mobile testing system and mobile testing method
US9094578B2 (en) * 2008-07-16 2015-07-28 Echostar Technologies L.L.C. Pay-per-view sharing
CN102045591B (en) * 2009-10-10 2012-08-29 上海广联电子有限公司 Method for recording media access control (MAC) address and K code of set top box of disposable recorder
CN101790027A (en) * 2010-02-05 2010-07-28 广东九联科技股份有限公司 Writing method of sequence number of set top box
CN102231852B (en) * 2011-05-06 2014-05-28 深圳市九洲电器有限公司 Method and device for programming serial number of set-top box
CN103067415B (en) * 2011-10-18 2017-04-26 康佳集团股份有限公司 Server and software upgrade method thereof, and IP set top box and software upgrade method thereof
CN102665093B (en) * 2012-03-13 2014-05-28 深圳市九洲电器有限公司 Test method for set top box and test system thereof
CN102932685A (en) * 2012-07-20 2013-02-13 四川九州电子科技股份有限公司 Device and method for inputting serial number and media access control (MAC) address of digital set-top box
CN103929670A (en) * 2014-04-30 2014-07-16 深圳市九洲电器有限公司 Set top box programming method and system
CN104156796A (en) * 2014-06-23 2014-11-19 福建二菱电子有限公司 Method and system for managing production line of MAC (Media Access Control) address on Internet set top box

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153711A1 (en) * 2008-12-11 2010-06-17 Electronics And Telecommunications Research Institute Downloadable conditional access system efficiently detecting duplicated dcas host
CN102164312A (en) * 2010-12-31 2011-08-24 青岛海信传媒网络技术有限公司 Set-top box configuration method and system for Internet protocol television
CN104965738A (en) * 2015-06-26 2015-10-07 深圳市九洲电器有限公司 Set top box data writing-in method and system
CN105611408A (en) * 2015-12-23 2016-05-25 深圳创维数字技术有限公司 Set top box number writing method, set top box and set top box number writing server
CN107613406A (en) * 2017-09-27 2018-01-19 深圳市九洲电器有限公司 A kind of set top box number of writing method and system

Also Published As

Publication number Publication date
CN107613406A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
US8726045B2 (en) Automated power topology discovery by detecting communication over power line and associating PDU port identifier to computing device
US9219644B2 (en) Automated configuration of new racks and other computing assets in a data center
CN104834688B (en) A kind of secondary index method for building up and device
US10754869B2 (en) Managing data format of data received from devices in an internet of things network
CN105511936B (en) Test system, method and device
CN110287696B (en) Detection method, device and equipment for rebound shell process
CN109284140B (en) Configuration method and related equipment
CN106713042B (en) Method and device for determining network topology
US9684684B2 (en) Index updates using parallel and hybrid execution
US11063901B2 (en) Manufacturing line computer system and network setup method of the same
WO2016124105A1 (en) Media access control address learning method, device and system
CN110290166B (en) Cross-cluster data interaction method, system and device and readable storage medium
CN106708573B (en) System and method for Hadoop cluster automatic installation
US11050661B2 (en) Creating an aggregation group
CN103164309A (en) SOL functional test method and system
CN106293842B (en) Software installation method and device
CN113127150A (en) Rapid deployment method and device of cloud native system, electronic equipment and storage medium
CN107707690A (en) A kind of non-ageing method, apparatus of dynamic address and medium
WO2019062315A1 (en) Method and device for set-top box number writing
CN112764874B (en) Virtual machine server information acquisition method based on CMDB configuration management system
CN106612213B (en) Equipment testing method and device
US10833990B2 (en) Transmitting packet
WO2022179513A1 (en) Method for automatically upgrading smart devices, and cloud server
CN113162782B (en) Data center network configuration method and device
US10050887B2 (en) Load balancing method, device and storage medium

Legal Events

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

Ref document number: 18861217

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 18861217

Country of ref document: EP

Kind code of ref document: A1