reboot复位ipcam,为何不可靠?

在用TI DM365平台开发时,发现reboot不起作用了。

真是奇怪。经过反复测试发现,是下面这个后台进程:

mount -t cifs //1.2.3.4/www /web/html/cifs -o user=tan,pa

它umount的timeout时间太长了,因为原本这个就是cifs server就是不正确的。cifs超时是很长的,估计是5min左右。

因此,看上去似乎reboot就无效。

在重启ipcam后,又会去mount这个错误的cifs server,所以,reboot也是不起作用的。

解决办法:

1、首先,kill 掉feed watchdog的进程sysmonitor。

2、然后再用定制的ipcam_restart()来复位ipcam。

这就是双保险,reboot如果在watchdog timeout的时间内不起作用,那watchdog也会将其复位。为了缩短这个时间,将watchdog timeout时间由60s改为30s。如果某个AP需要超过30s的等待,就必须自行feed watchdog。

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
GM8136 数据手册 The MPEG4/JPEG codec includes the hardware engines to accelerate the computation-intensive tasks, such as the motion estimation, DCT/IDCT, quantization/inverse quantization, and motion compensation. By initializing the control registers of this codec, MPEG4/JPEG codec will automatically perform the motion estimation calculation task for 16x16 or 8x8 block. MPEG4/JPEG codec will also automatically perform the DCT/quantization, IDCT/inverse quantization, AC/DC prediction, zigzag scan, and VLC/VLD calculation task for a macro-block. Therefore, CPU loading can be released from the timing critical tasks in the video encoding process. The features of the MPEG4/JPEG engine include:  Compliant with MPEG4 (ISO/IEC 14496-2) simple profile L0 ~ L3 standards with resolutions of subQCIF, QCIF, CIF, VGA, D1, and 720p with steps of 16 units  Compliant with JPEG (ISO/IEC 10918-1) baseline standard  Includes hardware engines for motion estimation/motion compensation, DCT/IDCT, quantization/inverse quantization, AC/DC prediction, and coding/decoding with variable length  Uses local memory controller to control local memory shared by CPU, MPEG4/JPEG codec, and DMA master  Uses DMA controller to control data transfers between system memory and local memory  Supports automatic power-down mechanism to reduce power consumption  Motion estimation search range: -16 ~ +15.5 (Optionally -32 ~ +31) with half-pixel accuracy  Supports short video header (H.263 baseline)  Supports H.263/MPEG/JPEG quantization methods
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

草根大哥

进军大神程序员路上,谢谢支持!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值