码迷,mamicode.com
首页 > 其他好文 > 详细

VB挂测

时间:2020-01-08 22:42:55      阅读:91      评论:0      收藏:0      [点我收藏+]

标签:bsp   key   bfs   oop   ifconf   contains   als   wan   adc   

1。对TF卡进行挂测

[
    {
        "cmd":"open relay",
        "checkdone":"Hit any key to stop autoboot",
        "checkmethod":"contains",
        "duration":80,
		"sleep":50,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[{"condition":"abfsxdvvc","desc":"启动出现Segmentation"},
        														 {"condition":"aaadcxwer: at kernel","desc":"启动出现WARNING: at kernel"},
       															 {"condition":"cvdwer asterisk","desc":"启动出现Process asterisk"},
       															 {"condition":"fdwxasaw free","desc":"启动出现double free"}]
    },
    {
        "cmd":"\r\n",
        "checkdone":"ROUTER login: ","duration":1,
        "loop":10,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"root",
        "checkdone":": ","duration":20,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"",
        "checkdone":"ROUTER:~#","duration":3,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"df | grep mmcblk0p1 | wc -l",
        "checkdone":"1","duration":3,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"dd if=/dev/zero of=/mnt/mmcblk0p1/gaga bs=8 count=1000000 &",
        "checkdone":"mmcblk0p1","duration":3,
		"checkmethod":"contains",
		"sleep":15,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"close relay",
		"checkmethod":"contains",
        "checkdone":":~# ","duration":500,
        "loop":1
    }
    
]

  2。对Lora的挂测

[
    {
        "cmd":"open relay",
        "checkdone":"Hit any key to stop autoboot",
        "checkmethod":"contains",
        "duration":80,
		"sleep":50,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[{"condition":"abfsxdvvc","desc":"启动出现Segmentation"},
        														 {"condition":"aaadcxwer: at kernel","desc":"启动出现WARNING: at kernel"},
       															 {"condition":"cvdwer asterisk","desc":"启动出现Process asterisk"},
       															 {"condition":"fdwxasaw free","desc":"启动出现double free"}]
    },
    {
        "cmd":"\r\n",
        "checkdone":"ROUTER login: ","duration":1,
        "loop":10,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"root",
        "checkdone":": ","duration":20,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"",
        "checkdone":"root@ROUTER:/mnt/mmcblk0p1/root#","duration":3,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ps |grep hostapd |wc -l",
        "checkdone":"2","duration":3,
		"checkmethod":"contains",
		"msleep":60000,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ps |grep hostapd |wc -l",
        "checkdone":"2","duration":3,
		"msleep":60000,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ps |grep hostapd |wc -l",
        "checkdone":"2","duration":3,
		"msleep":60000,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ps |grep hostapd |wc -l",
        "checkdone":"2","duration":3,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"close relay",
		"checkmethod":"contains",
        "checkdone":":/mnt/mmcblk0p1/root#","duration":500,
        "loop":1
    }
    
]

  3。对蜂窝的移远模块的识别挂测

[
    {
        "cmd":"open relay",
        "checkdone":"Hit any key to stop autoboot",
        "checkmethod":"contains",
        "duration":80,
		"sleep":50,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[{"condition":"abfsxdvvc","desc":"启动出现Segmentation"},
        														 {"condition":"aaadcxwer: at kernel","desc":"启动出现WARNING: at kernel"},
       															 {"condition":"cvdwer asterisk","desc":"启动出现Process asterisk"},
       															 {"condition":"fdwxasaw free","desc":"启动出现double free"}]
    },
    {
        "cmd":"\r\n",
        "checkdone":"ROUTER login: ","duration":1,
        "loop":10,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"root",
        "checkdone":": ","duration":20,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"",
        "checkdone":"ROUTER:~#","duration":3,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"ls /dev | grep ttyUSB | wc -l",
        "checkdone":"4","duration":3,
		"checkmethod":"contains",
		"msleep":60000,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"close relay",
		"checkmethod":"contains",
        "checkdone":":~#","duration":500,
        "loop":1
    }
    
]

  4。接口的识别

[
    {
        "cmd":"open relay",
        "checkdone":"I2C",
        "checkmethod":"contains",
        "duration":10000,
		"sleep":50,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[{"condition":"abfsxdvvc","desc":"启动出现Segmentation"},
        														 {"condition":"aaadcxwer: at kernel","desc":"启动出现WARNING: at kernel"},
       															 {"condition":"cvdwer asterisk","desc":"启动出现Process asterisk"},
       															 {"condition":"fdwxasaw free","desc":"启动出现double free"}]
    },
	{
        "cmd":"",
        "checkdone":"ROUTER login:","duration":300,
		"checkmethod":"contains",
        "loop":10,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"root",
        "checkdone":"Password","duration":300,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"LoRaWAN@2018",
        "checkdone":"root@ROUTER:/mnt/mmcblk0p1/root#","duration":300,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ps |grep ho",
        "checkdone":"hostapd.conf","duration":300,
		"checkmethod":"contains",
		"sleep":60,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ifconfig",
        "checkdone":"wlan0","duration":300,
		"checkmethod":"contains",
		"sleep":60,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ps |grep ho",
        "checkdone":"hostapd.conf","duration":300,
		"checkmethod":"contains",
		"sleep":60,
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
	{
        "cmd":"ls /mnt |wc -l",
        "checkdone":"1","duration":300,
		"checkmethod":"contains",
        "loop":1,
        "usearg":false, "arg":[0],
        "errordetect":false, "error":[]
    },
    {
        "cmd":"close relay",
		"checkmethod":"contains",
        "checkdone":"kernel","duration":500,
        "loop":1
    }
    
]

  

 

VB挂测

标签:bsp   key   bfs   oop   ifconf   contains   als   wan   adc   

原文地址:https://www.cnblogs.com/chenxiaomeng/p/12168874.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!