技术领域technical field
本发明涉及机顶盒技术领域,特别涉及一种机顶盒烧写序列码的方法及系统。The invention relates to the technical field of set-top boxes, in particular to a method and a system for programming serial codes in a set-top box.
背景技术Background technique
随着机顶盒技术的发展,现有的机顶盒普遍配置有WiFi、CM以及EOC等附加功能。从而,机顶盒在出厂之前除了需要输入SN序列号、MAC(介质访问控制)地址等信息,还需要输入WIFI,CM以及EOC序列码等。目前,机顶盒生产商将机顶盒的SN码、MAC地址、WIFI,CM,EOC等序列号分开烧写入机顶盒,即,机顶盒需要依次通过机顶盒序列码工位、WiFi地址工位、CM工位以及EOC工位并进行多次烧写,已完成机顶盒序列码的烧写。这样使得每个机顶盒的序列的烧写工序多,降低了机顶盒的生产效率。With the development of set-top box technology, existing set-top boxes are generally equipped with additional functions such as WiFi, CM, and EOC. Therefore, before leaving the factory, the set-top box needs to input information such as SN serial number and MAC (Media Access Control) address, as well as WIFI, CM and EOC serial codes. At present, set-top box manufacturers burn the SN code, MAC address, WIFI, CM, EOC and other serial numbers of the set-top box separately into the set-top box, that is, the set-top box needs to pass through the set-top box serial code station, WiFi address station, CM station and EOC in sequence. The station has been programmed several times, and the programming of the serial code of the set-top box has been completed. This makes the sequence of each set-top box more programming procedures, reducing the production efficiency of the set-top box.
因而现有技术还有待改进和提高。Thereby prior art still needs to improve and improve.
发明内容Contents of the invention
本发明要解决的技术问题在于,针对现有技术的不足,提供一种机顶盒烧写序列码的方法及系统,以解决现有机顶盒采用将机顶盒的所有序列码以及MAC地址分开烧写,使得生产效率低的的问题。The technical problem to be solved by the present invention is to provide a method and system for programming serial codes in a set-top box in view of the deficiencies in the prior art, so as to solve the problem that the existing set-top boxes use all the serial codes and MAC addresses of the set-top boxes to be programmed separately, so that production The problem of low efficiency.
为了解决上述技术问题,本发明所采用的技术方案如下:In order to solve the problems of the technologies described above, the technical scheme adopted in the present invention is as follows:
一种机顶盒烧写序列码的方法,其包括:A method for programming a serial code in a set-top box, comprising:
当机顶盒进入序列码烧写工序位时,生产线终端将预设序列码数据组发送至所述机顶盒,其中,所述序列码数据包含多个序列码;When the set-top box enters the sequence code programming position, the terminal of the production line sends the preset sequence code data group to the set-top box, wherein the sequence code data includes a plurality of sequence codes;
所述机顶盒接收并解析所述序列码数据组,获取序列码数据组包含每个序列码及其对应的属性;The set-top box receives and parses the serial code data group, and obtains the serial code data group including each serial code and its corresponding attributes;
根据所述属性将每个序列码烧写入其对应的位置。Burn each sequence code into its corresponding position according to the attribute.
所述机顶盒烧写序列码的方法,其中,所述当机顶盒进入序列码烧写工序位时,生产线终端将预设序列码数据组发送至所述机顶盒,其中,所述序列码数据包含多个序列码之前还包括:The method for programming the serial code of the set-top box, wherein, when the set-top box enters the serial code programming process bit, the terminal of the production line sends the preset serial code data group to the set-top box, wherein the serial code data includes a plurality of Before the serial number also include:
生成线终端根据生产的订单数据,预先配置序列码数据组。The production line terminal pre-configures the serial code data group according to the production order data.
所述机顶盒烧写序列码的方法,其中,所述当机顶盒进入序列码烧写工序位时,生产线终端将预设序列码数据组发送至所述机顶盒,其中,所述序列码数据包含多个序列码具体包括:The method for programming the serial code of the set-top box, wherein, when the set-top box enters the serial code programming process bit, the terminal of the production line sends the preset serial code data group to the set-top box, wherein the serial code data includes a plurality of The serial code specifically includes:
当机顶盒进入序列码烧写工序位时,生产线终端与机顶盒建立有线连接,并读取所述机顶盒的第一SN码和第一MAC地址;When the set-top box enters the serial code burning operation position, the terminal of the production line establishes a wired connection with the set-top box, and reads the first SN code and the first MAC address of the set-top box;
若读取成功,则将预设序列码数据组通过UDP协议发送至所述机顶盒;If the reading is successful, the preset serial code data group is sent to the set-top box through the UDP protocol;
若读取失败,则显示机顶盒未准备就绪。If the reading fails, it indicates that the set-top box is not ready.
所述机顶盒烧写序列码的方法,其中,所述根据所述属性将每个序列码烧写入其对应的位置具体包括:The method for programming the serial code of the set-top box, wherein, according to the attribute, writing each serial code into its corresponding position specifically includes:
根据所述属性确定所述序列码的类型,其中,所述类型包括机顶盒序列码和机顶盒固定组件序列码;Determine the type of the serial code according to the attribute, wherein the type includes a serial code of a set-top box and a serial code of a fixed component of a set-top box;
当所述序列码为机顶盒序列码时,将调用机顶盒的Flash接口,将所序列码保存至Flash;When the serial code is a set-top box serial code, the Flash interface of the set-top box will be called, and the serial code is saved to Flash;
当所述序列码为固定组件序列码,则将所述序列码发送至其对应的固定组件,并写入指定的存储位置。When the serial code is a serial code of a fixed component, the serial code is sent to its corresponding fixed component and written into a designated storage location.
所述机顶盒烧写序列码的方法,其中,所述序列码数据组包括:机顶盒SN码、机顶盒MAC地址、WIFIMAC地址、CMMAC地址、EOCMAC地址中的一种或多种。The method for programming a serial code in a set-top box, wherein the serial code data group includes: one or more of the SN code of the set-top box, the MAC address of the set-top box, the WIFIMAC address, the CMMAC address, and the EOCMAC address.
一种机顶盒烧写序列码的系统,其包括:生产线终端和机顶盒;A system for programming serial codes in a set-top box, comprising: a production line terminal and a set-top box;
所述生产线终端包括发送模块;The production line terminal includes a sending module;
所述发送模块,用于当机顶盒进入序列码烧写工序位时,将预设序列码数据组发送至所述机顶盒,其中,所述序列码数据包含多个序列码;The sending module is used to send the preset serial code data group to the set-top box when the set-top box enters the serial code programming process bit, wherein the serial code data includes a plurality of serial codes;
所述机顶盒包括:The set-top box includes:
获取模块,用于接收并解析所述序列码数据组,获取序列码数据组包含每个序列码及其对应的属性;An acquisition module, configured to receive and parse the serial code data set, the acquired serial code data set includes each serial code and its corresponding attributes;
烧写模块,用于根据所述属性将每个序列码烧写入其对应的位置。The burning module is used for burning each serial code into its corresponding position according to the attribute.
所述机顶盒烧写序列码的系统,其中,所述生产线终端还包括:The system for programming serial codes in the set-top box, wherein the production line terminal also includes:
配置模块,用于根据生产的订单数据,预先配置序列码数据组。The configuration module is configured to pre-configure the serial code data group according to the production order data.
所述机顶盒烧写序列码的系统,其中,所述发送模块具体包括:The system for programming the serial code in the set-top box, wherein the sending module specifically includes:
读取单元,用于当机顶盒进入序列码烧写工序位时,控制生产线终端与机顶盒建立有线连接,并读取所述机顶盒的第一SN码和第一MAC地址;The reading unit is used to control the terminal of the production line to establish a wired connection with the set-top box when the set-top box enters the sequence code burning process position, and read the first SN code and the first MAC address of the set-top box;
第一处理单元,用于当读取成功时,将预设序列码数据组通过UDP协议发送至所述机顶盒;The first processing unit is used to send the preset serial code data group to the set-top box through the UDP protocol when the reading is successful;
第二处理单元,用于当读取失败时,显示机顶盒未准备就绪。The second processing unit is configured to display that the set-top box is not ready when the reading fails.
所述机顶盒烧写序列码的系统,其中,所述烧写模块具体包括:The system for programming the serial code of the set-top box, wherein the programming module specifically includes:
确定单元,用于根据所述属性确定所述序列码的类型,其中,所述类型包括机顶盒序列码和机顶盒固定组件序列码;A determining unit, configured to determine the type of the serial code according to the attribute, wherein the type includes a serial code of a set-top box and a serial code of a fixed component of a set-top box;
调用单元,用于当所述序列码为机顶盒序列码时,将调用机顶盒的Flash接口,将所序列码保存至Flash;The calling unit is used to call the Flash interface of the set-top box when the serial code is the serial code of the set-top box, and save the serial code to the Flash;
发送单元,用于当所述序列码为固定组件序列码,则将所述序列码发送至其对应的固定组件,并写入指定的存储位置。A sending unit, configured to send the serial code to its corresponding fixed component when the serial code is a fixed component serial code, and write it into a specified storage location.
所述机顶盒烧写序列码的系统,其中,所述序列码数据组包括:机顶盒SN码、机顶盒MAC地址、WIFIMAC地址、CMMAC地址、EOCMAC地址中的一种或多种。The set-top box programming serial code system, wherein, the serial code data group includes: one or more of the set-top box SN code, set-top box MAC address, WIFIMAC address, CMMAC address, and EOCMAC address.
有益效果:与现有技术相比,本发明提供了一种机顶盒烧写序列码的方法及系统,所述方法包括:当机顶盒进入序列码烧写工序位时,生产线终端将预设序列码数据组发送至所述机顶盒,其中,所述序列码数据包含多个序列码;所述机顶盒接收并解析所述序列码数据组,获取序列码数据组包含每个序列码及其对应的属性;根据所述属性将每个序列码烧写入其对应的位置。本发明通过将包含多个序列码的序列码数据组发送给机顶盒,机顶盒接收并解析序列码数据组后,根据序列码属性将序列码烧写入对应的位置,解决了现有机顶盒烧写序列码时,将WIFI,CM,EOC和机顶盒进行分开写号,造成生产效率不高,同时容易出现MAC地址管理出错,返修率高的问题。Beneficial effects: Compared with the prior art, the present invention provides a method and system for programming a serial code in a set-top box. The method includes: when the set-top box enters the programming process of the serial code, the terminal of the production line will preset the serial code data The set-top box is sent to the set-top box, wherein the serial code data includes a plurality of serial codes; the set-top box receives and parses the serial code data group, and obtains the serial code data group to include each serial code and its corresponding attributes; The attribute burns each serial code into its corresponding location. The present invention solves the problem of the programming sequence of the existing set-top box by sending the serial code data group containing multiple serial codes to the set-top box. When coding, the WIFI, CM, EOC and set-top box are written separately, resulting in low production efficiency, and at the same time prone to MAC address management errors and high repair rates.
附图说明Description of drawings
图1为本发明提供的机顶盒烧写序列码的方法较佳实施的流程图。FIG. 1 is a flow chart of a preferred implementation of a method for programming a serial code in a set-top box provided by the present invention.
图2为本发明提供的机顶盒烧写序列码的方法实施例一的流程图Fig. 2 is the flow chart of the first embodiment of the method for programming the serial code of the set-top box provided by the present invention
图3为本发明提供的一种机顶盒烧写序列码的系统的结构原理图。Fig. 3 is a structural principle diagram of a system for programming serial codes in a set-top box provided by the present invention.
具体实施方式detailed description
本发明提供一种机顶盒烧写序列码的方法及系统,为使本发明的目的、技术方案及效果更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。The present invention provides a method and system for programming a serial code in a set-top box. In order to make the purpose, technical solution and effect of the present invention clearer and clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,模块”、“部件”或“单元”可以混合地使用。In the present invention, suffixes such as 'module', 'part' or 'unit' used to represent elements are used only to facilitate description of the present invention and have no specific meaning by themselves. Therefore, "module", "part" or "unit" may be used in combination.
下面结合附图,通过对实施例的描述,对发明内容作进一步说明。The content of the invention will be further described below by describing the embodiments in conjunction with the accompanying drawings.
请参照图1,图1为本发明提供的机顶盒烧写序列码的方法的较佳实施例的流程图。所述方法包括:Please refer to FIG. 1 , which is a flow chart of a preferred embodiment of a method for programming a serial code in a set-top box provided by the present invention. The methods include:
S100、当机顶盒进入序列码烧写工序位时,生产线终端将预设序列码数据组发送至所述机顶盒,其中,所述序列码数据组包含多个序列码。S100. When the set-top box enters the serial code programming process, the terminal of the production line sends a preset serial code data group to the set-top box, wherein the serial code data group includes a plurality of serial codes.
具体地,所述生产线终端为用于向机顶盒发送序列码数据组的终端设备,如,PC机、ipod等。所述预设序列码数据组为用于烧写入机顶盒的序列码或MAC地址的构成,例如,机顶盒SN号(Serial Number,产品序列号)、机顶盒MAC地址(Media Access ControlAddress,物理地址)、WIFIMAC地址(WIreless-FIdelity Media Access Control Address,无线局域网络地址)、CMMAC地址(Cable Modem Media Access Control Address,电缆调制调解器)、EOCMAC地址(Ethernet Over Cable Media Access Control Address,同轴电缆传输地址)等。Specifically, the production line terminal is a terminal device for sending the sequence code data group to a set-top box, such as a PC, an ipod, and the like. The preset serial code data group is composed of serial code or MAC address for burning into the set-top box, for example, the SN number (Serial Number, product serial number) of the set-top box, the MAC address (Media Access ControlAddress, physical address) of the set-top box, WIFIMAC address (WIreless-FIdelity Media Access Control Address, wireless LAN address), CMMAC address (Cable Modem Media Access Control Address, cable modem), EOCMAC address (Ethernet Over Cable Media Access Control Address, coaxial cable transmission address) Wait.
所述序列码数据组为根据机顶盒的订单数据需要配置的。也就是说,所述序列码数据组与机顶盒的订单号一一对应,这样可以保证每个机顶盒烧写的序列码是唯一的。在实际应用中,所述序列码数据可以预先配置于生产线终端内,当生产线终端与机顶盒连接后,将所述序列码发送至机顶盒。所述序列码也可以预先配置于服务器内,当需要将序列码数据组发送至机顶盒时,生产线终端根据订单号从服务器获取其对应的序列码数据组,并将所述序列码数据组发送至机顶盒。这样可以对序列码数据进行统一管理,减少了人工对序列码数据管理而导致的错误,降低了机顶盒的返修率。The serial code data group is configured according to the order data of the set-top box. That is to say, the serial code data group is in one-to-one correspondence with the order number of the set-top box, which can ensure that the serial code programmed by each set-top box is unique. In practical applications, the serial code data may be pre-configured in the production line terminal, and the serial code is sent to the set-top box after the production line terminal is connected to the set-top box. The serial code can also be pre-configured in the server. When the serial code data group needs to be sent to the set-top box, the terminal of the production line obtains its corresponding serial code data group from the server according to the order number, and sends the serial code data group to set top box. In this way, the serial code data can be managed uniformly, errors caused by manual management of the serial code data are reduced, and the repair rate of the set-top box is reduced.
示例性的,当所述序列码数据组配置于服务器时,所述当机顶盒进入序列码烧写工序位时,生产线终端将预设序列码数据组发送至所述机顶盒具体可以包括:Exemplarily, when the serial code data group is configured on the server, when the set-top box enters the serial code burning process, the production line terminal sends the preset serial code data group to the set-top box, which may specifically include:
H10、当机顶盒进入序列码烧写工序位时,生产线终端向服务器发送获取序列码数据组的请求信息,其中,所述请求信息包括机顶盒的订单号;H10. When the set-top box enters the serial code burning process position, the production line terminal sends request information to the server to obtain the serial code data group, wherein the request information includes the order number of the set-top box;
H20、服务器接收所述请求信息,并根据所述订单号在预先序列码数据组的数据库内查找其对应的序列码数据组;H20. The server receives the request information, and searches for the corresponding serial code data group in the database of the pre-serial code data group according to the order number;
H30、当查找到序列码数据组时,将所述序列码数据组反馈给生产线终端;H30. When the serial code data group is found, feed back the serial code data group to the production line terminal;
H40、所述生产线终端接收,并将所述序列码数据组发送至所述机顶盒。H40. The production line terminal receives and sends the serial code data group to the set-top box.
在本实施例中,所述生产线终端与机顶盒建立有线连接可以为生产线终端通过机顶盒自带的数据接口建立有线连接,所述数据接口可以为USB接口。这样可以使得生产线终端与机顶盒实现一对一连接,准确的确定当前机顶盒对应的序列码数据组,以保证机顶盒序列码的唯一性。同时,也可以不需要增加其他的接口即可实现机顶盒与生产线终端建立通信,进行数据传输。在实际应用中,所述生产线终端与机顶盒之间的有线连接可以通过手工插接方式实现,也可以通过机器人手臂自动插接方式实现。In this embodiment, the establishment of a wired connection between the production line terminal and the set-top box may be that the production line terminal establishes a wired connection through a data interface provided by the set-top box, and the data interface may be a USB interface. In this way, one-to-one connection between the terminal of the production line and the set-top box can be realized, and the serial code data group corresponding to the current set-top box can be accurately determined, so as to ensure the uniqueness of the serial code of the set-top box. At the same time, it is also possible to establish communication between the set-top box and the terminal of the production line for data transmission without adding other interfaces. In practical application, the wired connection between the terminal of the production line and the set-top box can be realized by manual plugging, and can also be realized by automatic plugging of a robot arm.
进一步,所述生产线终端与机顶盒通过有线连接,那么在生产线终端与机顶盒通过连接线连接后,还需要包括一个验证过程,用于验证生产线终端与机顶盒是否连接成功,以保证序列码数据发送成功。从而,所述当机顶盒进入序列码烧写工序位时,生产线终端将预设序列码数据组发送至所述机顶盒还可以具体包括:Further, the terminal of the production line is connected to the set-top box through a cable, so after the terminal of the production line and the set-top box are connected through a connection line, a verification process needs to be included to verify whether the terminal of the production line and the set-top box are successfully connected to ensure that the serial code data is sent successfully. Thereby, when the set-top box enters the sequence code programming position, the production line terminal sending the preset sequence code data group to the set-top box can also specifically include:
S101、当机顶盒进入序列码烧写工序位时,生产线终端与机顶盒建立有线连接,并读取所述机顶盒的第一SN码和第一MAC地址。S101. When the set-top box enters the serial code programming process, the terminal of the production line establishes a wired connection with the set-top box, and reads the first SN code and the first MAC address of the set-top box.
S102、若读取成功,则将预设序列码数据组通过UDP协议发送至所述机顶盒。S102. If the reading is successful, send the preset serial code data group to the set-top box through the UDP protocol.
S103、若读取失败,则显示机顶盒未准备就绪。S103. If the reading fails, display that the set-top box is not ready.
具体的来说,在所述步骤S101中,所述机顶盒的第一SN码和第一MAC地址指的是在机顶盒进入序列码烧写工序位前,预先统一设置于机顶盒内的SN码和MAC地址,并且生产线上的所有机顶盒内的第一SN码和第一MAC地址完全相同。所述第一SN码和第一MAC地址用于当机顶盒通过数据接口连接于生产线终端时,判断所述机顶盒与所述生产线终端是否成功建立有线连接:若所述生产线终端成功读取机顶盒内的第一SN码和第一MAC地址,则判定所述机顶盒与所述生产线终端成功建立有线连接,二者可以通过网络进行数据传输;若所述生产线终端未成功读取机顶盒内的第一SN码和第一MAC地址,则判定所述机顶盒与所述生产线终端未成功建立有线连接,二者无法通过网络进行数据传输。Specifically, in the step S101, the first SN code and the first MAC address of the set-top box refer to the SN code and MAC address that are uniformly set in the set-top box before the set-top box enters the serial code programming process. address, and the first SN code and first MAC address in all set-top boxes on the production line are exactly the same. The first SN code and the first MAC address are used to determine whether the set-top box and the production line terminal have successfully established a wired connection when the set-top box is connected to the production line terminal through a data interface: if the production line terminal successfully reads the set-top box. The first SN code and the first MAC address determine that the set-top box has successfully established a wired connection with the production line terminal, and the two can carry out data transmission through the network; if the production line terminal fails to read the first SN code in the set-top box successfully and the first MAC address, it is determined that the set-top box has not successfully established a wired connection with the production line terminal, and the two cannot perform data transmission through the network.
在所述步骤S102中,所述UPD协议(User Datagram Protocol,用户数据报协议)为系统广播,也就是说,所述生产线终端以广播的形式将所述预设序列码数据组发送至所述机顶盒。使用UPD协议其具有资源消耗小,处理速度快的优点,能够实现所述预设序列码数据组的快速传输,提高传输效率,从而减小生产的时间成本。当然,在实际生产中,还可以使用其他的传输协议。In the step S102, the UPD protocol (User Datagram Protocol, User Datagram Protocol) is a system broadcast, that is, the production line terminal sends the preset serial code data group to the set top box. Using the UPD protocol has the advantages of low resource consumption and fast processing speed, and can realize fast transmission of the preset sequence code data group, improve transmission efficiency, and thereby reduce production time costs. Of course, in actual production, other transmission protocols can also be used.
在所述步骤S103中,在显示机顶盒未准备就绪之后还可以包括:In the step S103, after it is displayed that the set-top box is not ready, it may further include:
重新读取机顶盒内的第一SN码和第一MAC地址,并记录读取失败的次数;当读取失败的次数大于预设阈值时,则提示烧写失败,并依次读取下一个机顶盒。所述阈值为预先设置的,如,3次,4次等。在实际应用中,可以按照订单号先后顺序依次排列机顶盒进入序列码烧写工序位的顺序,这样准确的对机顶盒进行管理,同时在读取机顶盒失败后,可以准确的确定下一个机顶盒的订单号以及其对应的序列码数据组。Re-read the first SN code and the first MAC address in the set-top box, and record the number of read failures; when the number of read failures is greater than the preset threshold, it will prompt that the programming has failed, and read the next set-top box in turn. The threshold is preset, for example, 3 times, 4 times and so on. In practical applications, the order of the set-top boxes entering the serial code programming process can be arranged in sequence according to the order number, so that the set-top boxes can be managed accurately, and at the same time, after the failure to read the set-top box, the order number of the next set-top box can be accurately determined And its corresponding serial code data group.
S200、所述机顶盒接收并解析所述序列码数据组,获取序列码数据组包含每个序列码及其对应的属性。S200. The set-top box receives and parses the serial code data group, and acquires the serial code data group including each serial code and its corresponding attributes.
具体地,所述机顶盒接收并解析所述序列码数据组指的是所述机顶盒接收所述序列码数据组并解析以获取所述序列码数据组中包含的所有序列码以及每个序列码的属性。Specifically, the set-top box receiving and parsing the serial code data group means that the set-top box receives the serial code data group and parses to obtain all the serial codes contained in the serial code data group and the information of each serial code. Attributes.
S300、根据所述属性将每个序列码烧写入其对应的位置。S300. Burn each serial code into its corresponding position according to the attribute.
具体地,根据所述属性将每个序列码烧写入其对应的位置指的是根据所述属性确定所述序列码对应的位置,并将所述序列码烧写入其对应的位置。在机顶盒中,由于机顶盒自身的SN码和MAC地址以及WIFI、CM等固定组件的MAC地址的烧写方法不同,在烧写序列码时需要判断所述序列码为机顶盒自身的序列码还是其固定组件序列码。因此,所述根据属性将每个序列码烧写入其对应的位置具体可以包括:Specifically, burning each serial code into its corresponding position according to the attribute refers to determining the corresponding position of the serial code according to the attribute, and burning the serial code into its corresponding position. In the set-top box, since the SN code and MAC address of the set-top box itself and the MAC addresses of fixed components such as WIFI and CM are programmed in different ways, it is necessary to judge whether the serial code is the serial code of the set-top box itself or its fixed when programming the serial code. Component serial number. Therefore, said burning each sequence code into its corresponding position according to the attribute may specifically include:
S301、根据所述属性确定所述序列码的类型,其中,所述类型包括机顶盒序列码和机顶盒固定组件序列码。S301. Determine the type of the serial code according to the attribute, where the type includes a serial code of a set-top box and a serial code of a fixed component of a set-top box.
S302、当所述序列码为机顶盒序列码时,调用机顶盒的Flash接口,将所序列码保存至Flash。S302. When the serial code is a set-top box serial code, call the Flash interface of the set-top box, and save the serial code in Flash.
S303、当所述序列码为固定组件序列码,则将所述序列码发送至其对应的固定组件,并写入指定的存储位置S303. When the serial code is a fixed component serial code, send the serial code to its corresponding fixed component and write it into a designated storage location
具体的来说,在所述步骤S301中,所述根据所述属性确定所述序列码的类型指的是根据序列码数据组包含的序列码的属性确定其对应的序列码的类型,所述类型包括机顶盒本身序列码和固定组件序列码。所述固定组件可以为WIFI板、CM板、EOC板等。也就是说,在将序列码保存于相应位置时需要判断序列码数据组内每个序列码的类型,根据序列码类型采用相应的保存方法将序列码保存至相应位置。Specifically, in the step S301, determining the type of the sequence code according to the attribute refers to determining the type of the corresponding sequence code according to the attribute of the sequence code contained in the sequence code data group, the Types include the serial code of the set-top box itself and the serial code of fixed components. The fixing component may be a WIFI board, a CM board, an EOC board, etc. That is to say, when storing the serial code in the corresponding location, it is necessary to determine the type of each serial code in the serial code data group, and use a corresponding storage method to save the serial code to the corresponding location according to the type of the serial code.
在所述步骤S302中,所述将序列码保存至Flash中指的是采用所述SN码和MAC地址替换已有的统一的第一SN码和MAC地址,为机顶盒配置唯一的SN码和MAC地址,使得机顶盒具有唯一性。In said step S302, said storing the serial code in Flash refers to adopting said SN code and MAC address to replace the existing unified first SN code and MAC address, and configuring a unique SN code and MAC address for the set-top box , making the set-top box unique.
在所述步骤S303中,所述机顶盒固定组件对应的序列码可以为WIFIMAC地址,CMMAC地址,EOCMAC地址等。从而在判断所述序列码的类型为固定组件时,还需要根据序列码属性进一步判断所述序列码具有用途。例如,当所述序列码为固件序列码时,判断所述序列码为WIFIMAC地址、CMMAC地址或EOCMAC地址。若所述序列码数据为WIFIMAC地址,则将WIFIMAC地址发送给WIFI板,WIFI板接收到机顶盒发送来的WIFIMAC地址,将WIFIMAC地址写入到指定存储位置;若所述序列码数据为CMMAC地址,则将CMMAC地址发送给CM板,CM板接收到机顶盒发送来的CMMAC地址,将所述CMMAC地址写入到指定存储位置;若所述序列码数据为EOCMAC地址,则将EOCMAC地址发送给EOC板,EOC板接收到机顶盒发送来的EOCMAC地址,将所述EOCMAC地址写入到指定存储位置。这样,通过将获取的WIFIMAC地址,CMMAC地址,EOCMAC地址以及机顶盒本身的SN码和MAC地址进行分类后,写入其各自对应的存储位置,将原本需要多个工位才能完成的操作简化为通过一个工位来完成,提高了生产效率,降低了生产的时间成本。同时,所述序列码数据组由服务器统一管理,减小了人为因素导致的MAC地址出错的几率,降低了机器返修的概率。In the step S303, the serial code corresponding to the fixed component of the set-top box may be WIFIMAC address, CMMAC address, EOCMAC address and so on. Therefore, when judging that the type of the serial code is a fixed component, it is also necessary to further determine that the serial code has a purpose according to the attribute of the serial code. For example, when the serial code is a firmware serial code, it is determined that the serial code is a WIFIMAC address, a CMMAC address or an EOCMAC address. If the serial code data is a WIFIMAC address, then the WIFIMAC address is sent to the WIFI board, and the WIFI board receives the WIFIMAC address sent by the set-top box, and writes the WIFIMAC address to the designated storage location; if the serial code data is a CMMAC address, Then the CMMAC address is sent to the CM board, and the CM board receives the CMMAC address sent by the set-top box, and writes the CMMAC address into the designated storage location; if the serial code data is the EOCMAC address, then the EOCMAC address is sent to the EOC board , the EOC board receives the EOCMAC address sent by the set-top box, and writes the EOCMAC address into a designated storage location. In this way, by classifying the obtained WIFIMAC address, CMMAC address, EOCMAC address, and the SN code and MAC address of the set-top box itself, and writing them into their corresponding storage locations, the operation that originally required multiple stations to complete is simplified to pass It can be completed by one station, which improves the production efficiency and reduces the time cost of production. At the same time, the serial code data group is uniformly managed by the server, which reduces the probability of MAC address error caused by human factors and reduces the probability of machine repair.
在本发明的另一个实施例中,所述根据所述属性将每个序列码烧写入其对应的位置具体还可以包括:In another embodiment of the present invention, the programming of each sequence code into its corresponding position according to the attribute may specifically include:
S1、调用机顶盒的Flash接口,将所有序列码保存至Flash内;S1, call the Flash interface of the set-top box, and save all serial codes in the Flash;
S2、重新启动机顶盒,并根据序列码属性确定所述序列码对应的固定组件;S2. Restart the set-top box, and determine the fixed component corresponding to the serial code according to the serial code attribute;
S30、将所述序列码写入所述固定组件内指定位置。S30. Write the serial code into a specified location in the fixing component.
为了进一步理解本发明提供的机顶盒烧写序列码的方法,下面结合一个具体实施例加以说明。In order to further understand the method for programming a serial code in a set-top box provided by the present invention, it will be described below in conjunction with a specific embodiment.
实施例一Embodiment one
本实施例提供一种机顶盒烧写序列码的方法,如图2所示,其具体包括:This embodiment provides a method for programming a serial code in a set-top box, as shown in Figure 2, which specifically includes:
N10、PC端初始订单数据,配置预设序列码数据组,所述序列码数据组包含机顶盒SN码、机顶盒MAC地址,WIFIMAC地址、CMMAC地址以及EOCMAC地址;N10, PC terminal initial order data, configuration preset serial code data group, described serial code data group includes set-top box SN code, set-top box MAC address, WIFIMAC address, CMMAC address and EOCMAC address;
N20、PC端与机顶盒连接,判断机顶盒是否准备就绪,若机顶盒准备就绪,则执行N30;否则,返回初始订单数据;N20. The PC is connected to the set-top box to determine whether the set-top box is ready. If the set-top box is ready, execute N30; otherwise, return the initial order data;
N30、PC端通过UDP将预设序列码数据组发送至机顶盒;N30, the PC side sends the preset sequence code data group to the set-top box through UDP;
N40、所述机顶盒解析所述序列码数据组,并判定解析得到的每个序列码的属性,当序列码为WIFIMAC地址时,执行步骤N50;当序列码为CMMAC地址时,执行步骤N70;当序列码为EOCMAC地址时,执行步骤N90;当序列码为机顶盒SN码和MAC地址时,执行N110;N40. The set-top box analyzes the serial code data group, and determines the attribute of each serial code obtained by parsing. When the serial code is a WIFIMAC address, perform step N50; when the serial code is a CMMAC address, perform step N70; When the serial code is the EOCMAC address, execute step N90; when the serial code is the set-top box SN code and MAC address, execute N110;
N50、将为WIFIMAC地址的序列码发送至WIFI板,WIFI板接收所述地址并保存;N50, will send the serial code of the WIFIMAC address to the WIFI board, and the WIFI board receives the address and saves it;
N60、判断所述WIFI板是否成功保存序列码,若是,则结束操作;若否,则返回执行N50;N60, judging whether the WIFI board successfully saves the serial code, if so, then end the operation; if not, then return to execute N50;
N70、将为CMMAC地址的序列码发送至CM板,CM板接收CMMAC地址并保存;N70, will send the serial code of the CMMAC address to the CM board, and the CM board receives the CMMAC address and saves it;
N80、判断所述CM板是否成功保存序列码,若是,则结束操作;若否,则返回执行N70;N80, judging whether the CM board successfully saves the sequence code, if so, then end the operation; if not, then return to execute N70;
N90、将为EOCMAC地址的序列码发送至EOC板,EOC板接收EOCMAC地址并保存;N90, will send the serial code of the EOCMAC address to the EOC board, and the EOC board will receive the EOCMAC address and save it;
N100、判断所述EOC板是否成功保存序列码,若是,则结束操作;若否,则返回执行N90;N100, judging whether the EOC board successfully saves the serial code, if so, then end the operation; if not, then return to execute N90;
N110、调用机顶盒本地的Flash接口,将为SN码和MAC地址的序列码保存至Flash;N110, call the local Flash interface of the set-top box, and save the serial code of the SN code and the MAC address to Flash;
N120、判断所述为机顶盒SN码和MAC地址的序列码是否保存成功,若是,则结束操作;若否,则返回执行N110。N120. Judging whether the sequence code of the set-top box SN code and MAC address is saved successfully, if yes, then end the operation; if not, return to N110.
本发明还提供了一种机顶盒烧写序列码的系统,如图3所示,其包括:生产线终端100和机顶盒200;The present invention also provides a system for programming a serial code in a set-top box, as shown in FIG. 3 , which includes: a production line terminal 100 and a set-top box 200;
所述生产线终端100包括发送模块101;The production line terminal 100 includes a sending module 101;
所述发送模块101,用于当机顶盒进入序列码烧写工序位时,将预设序列码数据组发送至所述机顶盒,其中,所述序列码数据包含多个序列码;The sending module 101 is configured to send the preset serial code data group to the set-top box when the set-top box enters the serial code programming process, wherein the serial code data includes a plurality of serial codes;
所述机顶盒200包括:The set-top box 200 includes:
获取模块201,用于接收并解析所述序列码数据组,获取序列码数据组包含每个序列码及其对应的属性;An acquisition module 201, configured to receive and parse the serial code data set, the acquired serial code data set includes each serial code and its corresponding attributes;
烧写模块202,用于根据所述属性将每个序列码烧写入其对应的位置。The burning module 202 is used for burning each sequence code into its corresponding position according to the attribute.
所述机顶盒烧写序列码的系统,其中,所述生产线终端还包括:The system for programming serial codes in the set-top box, wherein the production line terminal also includes:
配置模块,用于根据生产的订单数据,预先配置序列码数据组。The configuration module is configured to pre-configure the serial code data group according to the production order data.
所述机顶盒烧写序列码的系统,其中,所述发送模块具体包括:The system for programming the serial code in the set-top box, wherein the sending module specifically includes:
读取单元,用于当机顶盒进入序列码烧写工序位时,控制生产线终端与机顶盒建立有线连接,并读取所述机顶盒的第一SN码和第一MAC地址;The reading unit is used to control the terminal of the production line to establish a wired connection with the set-top box when the set-top box enters the sequence code burning process position, and read the first SN code and the first MAC address of the set-top box;
第一处理单元,用于当读取成功时,将预设序列码数据组通过UDP协议发送至所述机顶盒;The first processing unit is used to send the preset serial code data group to the set-top box through the UDP protocol when the reading is successful;
第二处理单元,用于当读取失败时,显示机顶盒未准备就绪。The second processing unit is configured to display that the set-top box is not ready when the reading fails.
所述机顶盒烧写序列码的系统,其中,所述烧写模块具体包括:The system for programming the serial code of the set-top box, wherein the programming module specifically includes:
确定单元,用于根据所述属性确定所述序列码的类型,其中,所述类型包括机顶盒序列码和机顶盒固定组件序列码;A determining unit, configured to determine the type of the serial code according to the attribute, wherein the type includes a serial code of a set-top box and a serial code of a fixed component of a set-top box;
调用单元,用于当所述序列码为机顶盒序列码时,将调用机顶盒的Flash接口,将所序列码保存至Flash;The calling unit is used to call the Flash interface of the set-top box when the serial code is the serial code of the set-top box, and save the serial code to the Flash;
发送单元,用于当所述序列码为固定组件序列码,则将所述序列码发送至其对应的固定组件,并写入指定的存储位置。A sending unit, configured to send the serial code to its corresponding fixed component when the serial code is a fixed component serial code, and write it into a specified storage location.
所述机顶盒烧写序列码的系统,其中,所述序列码数据组包括:机顶盒SN号、机顶盒MAC地址、WIFIMAC地址、CMMAC地址、EOCMAC地址中的一种或多种。The system for programming a serial code in a set-top box, wherein the serial code data group includes: one or more of the SN number of the set-top box, the MAC address of the set-top box, the WIFIMAC address, the CMMAC address, and the EOCMAC address.
在本发明所提供的实施例中,应该理解到,所揭露的系统和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, and include several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) or a processor (processor) execute the methods described in various embodiments of the present invention. partial steps. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610844849.6ACN106412657B (en) | 2016-09-23 | 2016-09-23 | A kind of method and system of set-top box programming sequence code |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610844849.6ACN106412657B (en) | 2016-09-23 | 2016-09-23 | A kind of method and system of set-top box programming sequence code |
| Publication Number | Publication Date |
|---|---|
| CN106412657Atrue CN106412657A (en) | 2017-02-15 |
| CN106412657B CN106412657B (en) | 2019-07-30 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610844849.6AExpired - Fee RelatedCN106412657B (en) | 2016-09-23 | 2016-09-23 | A kind of method and system of set-top box programming sequence code |
| Country | Link |
|---|---|
| CN (1) | CN106412657B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109361640A (en)* | 2017-12-28 | 2019-02-19 | 广州Tcl智能家居科技有限公司 | A kind of method and system that washing machine electric-controlled plate quickly produces |
| CN113407199A (en)* | 2021-06-24 | 2021-09-17 | 合肥美菱物联科技有限公司 | Wifi online programming device and method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102014303A (en)* | 2010-12-14 | 2011-04-13 | 康佳集团股份有限公司 | Method for recovering serial number of set-top box and set-top box |
| CN103929670A (en)* | 2014-04-30 | 2014-07-16 | 深圳市九洲电器有限公司 | Set top box programming method and system |
| CN104916327A (en)* | 2015-05-22 | 2015-09-16 | 深圳创维-Rgb电子有限公司 | Method and system of simultaneously burning multiple television KEY codes on line |
| CN105224831A (en)* | 2015-09-29 | 2016-01-06 | 深圳市九洲电器有限公司 | Terminal Equipment Identifier method for writing data and system |
| CN105573792A (en)* | 2015-12-16 | 2016-05-11 | 深圳市创维软件有限公司 | Delivery parameter burning method, equipment to be burnt, burning tool equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102014303A (en)* | 2010-12-14 | 2011-04-13 | 康佳集团股份有限公司 | Method for recovering serial number of set-top box and set-top box |
| CN103929670A (en)* | 2014-04-30 | 2014-07-16 | 深圳市九洲电器有限公司 | Set top box programming method and system |
| CN104916327A (en)* | 2015-05-22 | 2015-09-16 | 深圳创维-Rgb电子有限公司 | Method and system of simultaneously burning multiple television KEY codes on line |
| CN105224831A (en)* | 2015-09-29 | 2016-01-06 | 深圳市九洲电器有限公司 | Terminal Equipment Identifier method for writing data and system |
| CN105573792A (en)* | 2015-12-16 | 2016-05-11 | 深圳市创维软件有限公司 | Delivery parameter burning method, equipment to be burnt, burning tool equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109361640A (en)* | 2017-12-28 | 2019-02-19 | 广州Tcl智能家居科技有限公司 | A kind of method and system that washing machine electric-controlled plate quickly produces |
| CN109361640B (en)* | 2017-12-28 | 2021-06-15 | 深圳Tcl新技术有限公司 | Method and system for quickly producing electric control board of washing machine |
| CN113407199A (en)* | 2021-06-24 | 2021-09-17 | 合肥美菱物联科技有限公司 | Wifi online programming device and method |
| Publication number | Publication date |
|---|---|
| CN106412657B (en) | 2019-07-30 |
| Publication | Publication Date | Title |
|---|---|---|
| CN106406935B (en) | A kind of method and Bluetooth chip of Bluetooth chip OTA upgrading | |
| US12093120B2 (en) | Lighting method and apparatus based on AMD platform, device and readable medium | |
| CN105183675A (en) | USB equipment access method, device and system, terminal and server | |
| CN109976767A (en) | Software burning method and device | |
| CN103279371A (en) | Distributed control system multi-slave-computer program online synchronization upgrading method | |
| CN112732616B (en) | A kind of BMC starting method, device and equipment based on SPI controller | |
| CN114356811B (en) | A communication link update method, device and related equipment | |
| CN103412836B (en) | Hot plug processing method, device and system | |
| CN106020837A (en) | Method and system for loading set top box drive | |
| CN111585697A (en) | Communication method, device and multi-module communication system | |
| CN117648109A (en) | Differential upgrading method, system and medium based on Flash page alignment mode | |
| CN112035145A (en) | Equipment upgrading method and related device | |
| CN106412657B (en) | A kind of method and system of set-top box programming sequence code | |
| CN120086100A (en) | Lighting control system and lighting control method | |
| CN115827543A (en) | Method, system, device and medium for realizing eSIP communication based on FPGA | |
| CN104038550B (en) | Data communications method and its device, storage system | |
| CN104954133B (en) | Method of calibration and device is written in certificate | |
| CN103428560B (en) | A kind of method of KEY code burning and device | |
| CN114546431A (en) | MAC address burning method and device of network equipment and computer readable storage medium | |
| CN113961496A (en) | Communication circuit system, method, chip and storage medium | |
| US20140068108A1 (en) | Electrical device and method of setting address | |
| US12277351B1 (en) | Polarity inversion method and apparatus, storage medium and electronic apparatus | |
| CN104899164B (en) | Address addressing method for integrated circuit bus, integrated circuit bus device and system | |
| CN115565357B (en) | Method, system, equipment and storage medium for wireless debugging of solid state disk | |
| CN107479745B (en) | Method and module for configuring touch screen and operating system |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20190730 | |
| CF01 | Termination of patent right due to non-payment of annual fee |