salut @Jezza34000,
J’ai constaté un problème sur la récupération des informations de mes cameras (commandes envoyés par le « Payload multiple GetSetting » via un Refresh). Quelques commandes, celles positionnés en fin du payload multiple, répondent avec l’erreur rspcode -16 et les données de ces commandes ne se mettent pas à jour.
exemple:
[2022-03-22 21:06:27][DEBUG] : Payload multiple GetSetting = {"cmd":"GetPush"},{"cmd":"GetRec","action":0,"param":{"channel":0}},{"cmd":"GetEmail","action":0},{"cmd":"GetHddInfo"},{"cmd":"GetFtp","action":0},{"cmd":"GetEnc","action":0,"param":{"channel":0}},{"cmd":"GetAutoMaint","action":0,"param":{"channel":0}},{"cmd":"GetPerformance","param":{"channel":0}},{"cmd":"GetIsp","action":0,"param":{"channel":0}},{"cmd":"GetMask","action":0,"param":{"channel":0}},{"cmd":"GetImage","action":0,"param":{"channel":0}},{"cmd":"GetOsd","action":0,"param":{"channel":0}}
[2022-03-22 21:06:27][DEBUG] : URL de requête => https://192.168.1.60:443/cgi-bin/api.cgi?user=admin&password=******
[2022-03-22 21:06:27][DEBUG] : Payload => [{"cmd":"GetPush"},{"cmd":"GetRec","action":0,"param":{"channel":0}},{"cmd":"GetEmail","action":0},{"cmd":"GetHddInfo"},{"cmd":"GetFtp","action":0},{"cmd":"GetEnc","action":0,"param":{"channel":0}},{"cmd":"GetAutoMaint","action":0,"param":{"channel":0}},{"cmd":"GetPerformance","param":{"channel":0}},{"cmd":"GetIsp","action":0,"param":{"channel":0}},{"cmd":"GetMask","action":0,"param":{"channel":0}},{"cmd":"GetImage","action":0,"param":{"channel":0}},{"cmd":"GetOsd","action":0,"param":{"channel":0}}]
[2022-03-22 21:06:27][DEBUG] : HTTP code 200 OK
[2022-03-22 21:06:27][DEBUG] : Réponse caméra >> [{"cmd":"GetPush","code":0,"value":{"Push":{"schedule":{"enable":1,"table":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"}}}},{"cmd":"GetRec","code":0,"value":{"Rec":{"channel":0,"overwrite":1,"postRec":"15Seconds","preRec":1,"schedule":{"enable":0,"table":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"}}}},{"cmd":"GetEmail","code":0,"value":{"Email":{"addr1":"","addr2":"","addr3":"","attachmentType":1,"interval":"5Minutes","nickName":"","password":"","schedule":{"enable":0,"table":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"},"smtpPort":465,"smtpServer":"smtp.gmail.com","ssl":1,"supportTextType":1,"supportVideo":1,"textType":1,"userName":""}}},{"cmd":"GetHddInfo","code":0,"value":{"HddInfo":[]}},{"cmd":"GetFtp","code":0,"value":{"Ftp":{"anonymous":0,"interval":30,"maxSize":100,"mode":0,"password":"","port":21,"remoteDir":"","schedule":{"enable":0,"table":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"},"server":"","streamType":0,"userName":""}}},{"cmd":"GetEnc","code":0,"value":{"Enc":{"audio":0,"channel":0,"mainStream":{"bitRate":6144,"frameRate":30,"height":1920,"profile":"High","resolution":54,"size":"2560*1920","width":2560},"subStream":{"bitRate":160,"frameRate":7,"height":480,"profile":"High","resolution":28,"size":"640*480","width":640}}}},{"cmd":"GetAutoMaint","code":0,"value":{"AutoMaint":{"enable":1,"hour":2,"min":0,"sec":0,"weekDay":"Everyday"}}},{"cmd":"GetPerformance","code":0,"value":{"Performance":{"codecRate":2632,"cpuUsed":38,"netThroughput":144}}},{"cmd":"GetIsp","code":0,"value":{"Isp":{"antiFlicker":"Off","backLight":"Off","blc":128,"blueGain":128,"channel":0,"dayNight":"Auto","drc":128,"exposure":"Auto","gain":{"max":62,"min":1},"mirroring":0,"nr3d":1,"redGain":128,"rotation":0,"shutter":{"max":125,"min":0},"whiteBalance":"Auto"}}},{"cmd":"GetMask","code":0,"value":{"Mask":{"area":[{"block":{"height":453,"width":274,"x":529,"y":0},"screen":{"height":1920,"width":2560}},{"block":{"height":265,"width":1833,"x":727,"y":0},"screen":{"height":1920,"width":2560}},{"block":{"height":274,"width":589,"x":1971,"y":91},"screen":{"height":1920,"width":2560}},{"block":{"height":540,"width":87,"x":788,"y":0},"screen":{"height":1920,"width":2560}}],"channel":0,"enable":1}}},{"cmd":"GetImage","code":1,"error":{"detail":"sendfailed","rspCode":-16}},{"cmd":"GetOsd","code":1,"error":{"detail":"sendfailed","rspCode":-16}}]
[2022-03-22 21:06:28][DEBUG] : Lecture info > Array([cmd]=>GetPush[code]=>0[value]=>Array([Push]=>Array([schedule]=>Array([enable]=>1[table]=>111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111))))
....
[2022-03-22 21:06:28][DEBUG] : Lecture info > Array([cmd]=>GetIsp[code]=>0[value]=>Array([Isp]=>Array([antiFlicker]=>Off[backLight]=>Off[blc]=>128[blueGain]=>128[channel]=>0[dayNight]=>Auto[drc]=>128[exposure]=>Auto[gain]=>Array([max]=>62[min]=>1)[mirroring]=>0[nr3d]=>1[redGain]=>128[rotation]=>0[shutter]=>Array([max]=>125[min]=>0)[whiteBalance]=>Auto)))
[2022-03-22 21:06:28][DEBUG] : Lecture info > Array([cmd]=>GetMask[code]=>0[value]=>Array([Mask]=>Array([area]=>Array([0]=>Array([block]=>Array([height]=>453[width]=>274[x]=>529[y]=>0)[screen]=>Array([height]=>1920[width]=>2560))[1]=>Array([block]=>Array([height]=>265[width]=>1833[x]=>727[y]=>0)[screen]=>Array([height]=>1920[width]=>2560))[2]=>Array([block]=>Array([height]=>274[width]=>589[x]=>1971[y]=>91)[screen]=>Array([height]=>1920[width]=>2560))[3]=>Array([block]=>Array([height]=>540[width]=>87[x]=>788[y]=>0)[screen]=>Array([height]=>1920[width]=>2560)))[channel]=>0[enable]=>1)))
[2022-03-22 21:06:28][DEBUG] : Lecture info > Array([cmd]=>GetImage[code]=>1[error]=>Array([detail]=>sendfailed[rspCode]=>-16))
[2022-03-22 21:06:28][DEBUG] : Lecture info > Array([cmd]=>GetOsd[code]=>1[error]=>Array([detail]=>sendfailed[rspCode]=>-16))
UPDATE :
c’est comme si la camera ne pouvait répondre à un certain nombre de commandes simultanées, envoyées dans un même payload, mais pas plus