The invention discloses an upgrade method of IPTV terminal without IP address, which includes the following steps: the terminal is connected to the network line, and the power is switched on; the terminal listens to the Ethernet broadcast frame, parse the frame of the specific format; the terminal receives the upgrade file by parsing the frame; the terminal checks the upgrade file; if the checkout is not passed, the upgrade file is deleted if the check is not passed, Continue to listen and analyze the frames in a specific format; verify passing means that the terminal gets the correct upgrade files and starts the upgrade process. The invention makes the upgrade of the terminal no longer required to configure the IP address to get the upgrade file, making the upgrade process simple and universal, at the same time, this method can be upgraded at the same time in large quantities, greatly improving the speed and efficiency of software upgrading. One
【技术实现步骤摘要】
一种无IP地址的IPTV终端升级方法
本专利技术涉及广电通信领域,尤其涉及一种无IP地址的IPTV终端升级方法。
技术介绍
在IPTV升级过程中,通常需要通过网络进行远程升级。一般情况下,网络升级的必要条件为设备正常的获取到IP地址后,连接服务器请求下载升级文件成功后开始升级。但是在很多场景下,存在以下多种可能,导致升级不成功。1、终端按照省份网络定制要求,加入对dhcpdiscover,dhcpoffer的校验,导致一般的DHCP服务端无法配置设备IP。2、当前环境无DHCP服务器,导致获取IP地址失败。3、升级服务器地址和设备中的地址不一致,导致设备访问升级服务器失败。正是存在以上弊端,导致在某些特点场景下,如,生产工厂,仓库无法通过局域网络对IPTV设备进行1:N(N>100)的快速升级。为了统一通用的解决无法获取IP而需要通过网络进行大批量升级的问题,我方提出了一种只需插入网线到交换机,然后无IP进行网络升级的方法。为了解决上述问题,本专利技术提出一种无IP地址的IPTV终端升级方法。该方法使IPTV终端无需配置IP地址,就能获取到升级文件。同时通过此广播的方法,能够进行大批量的升级,大幅提高了软件升级的速度和效率。文件描述符:文件描述符在形式上是一个非负整数。实际上,它是一个索引值,指向内核为每一个进程所维护的该进程打开文件的记录表。当程序打开一个现有文件或者创建一个新文件时,内核向进程返回一个文件描述符。在程序设计中,一些涉及底层的程序编写往往会围绕着文件描述符展开。文件句柄:在文件I/O中,要从一个文件读取数据,应用程序首先要调 ...
【技术保护点】
1.一种无IP地址的IPTV终端升级方法,其特征在于,包括以下步骤:
【技术特征摘要】
1.一种无IP地址的IPTV终端升级方法,其特征在于,包括以下步骤:S1,终端接入网线,并上电开机;S2,终端监听以太网广播帧,解析特定格式的帧;S3,终端通过解析帧,接收升级文件;S4,终端校验升级文件;若校验不通过,删除升级文件,转S2;校验通过则转下一步;S5,终端获取到正确的升级文件,开始升级流程。2.如权利要求1所述的一种无IP地址的IPTV终端升级方法,其特征在于,S2中所述的特定格式是指所述帧的帧头字段中的“类型”字段为事先选定的特定值。3.如权利要求1所述的一种无IP地址的IPTV终端升级方法,其特征在于,S3中所述接收升级文件包含以下子步骤:S31,终端通过解析帧,收到升级命令请求,创建对应的文件描述符或文件句柄;S32,终端通过解...
【专利技术属性】
技术研发人员:黎明,朱永,唐兴刚,
申请(专利权)人:四川天邑康和通信股份有限公司,
类型:发明
国别省市:四川,51
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。