mobile CCTV,mobile surveillance,police body worn cameras
标题:
PU端适配SOS报警输入无效,Smarteye客户端无报警提示
[打印本页]
author:
LGL-UM
time:
2019-5-20 15:19
标题:
PU端适配SOS报警输入无效,Smarteye客户端无报警提示
PU端适配SOS报警提示的代码如下,调用如下实现后,Smarteye客户端无报警提示
对比MPU端,长按音量+键(可以开启或关闭SOS报警),Smarteye客户端报警提示功能正常
BVCSP_Command stCommand;
BVCU_PUCFG_AlertIn stAlertIn;
BVCU_PUCFG_AlertIn_Normal stNormal;
BVCU_Result enResult = BVCU_RESULT_S_OK;
if (pParam)
{
bStart = *(HI_BOOL *)pParam;
free(pParam);
pParam = NULL;
}
pthread_detach(pthread_self());
if (HI_NULL != g_hSession)
{
memset(&stCommand, 0, sizeof(stCommand));
stCommand.iSize = sizeof(stCommand);
stCommand.iMethod = BVCU_METHOD_CONTROL;
stCommand.iSubMethod = BVCU_SUBMETHOD_PU_ALERTIN;
stCommand.OnEvent = PUMNG_CUCmdOnEvent;
stAlertIn.iMode = 1;
stAlertIn.iStatus = 1;
sprintf(stAlertIn.szName, "%s", "SOS");
stAlertIn.iAlertInType = BVCU_ALERTIN_TYPE_NORMAL;
stAlertIn.pAlertData = &stNormal;
stAlertIn.iAlertCount = -1;
stAlertIn.iHardwareType = BVCU_ALERTIN_HARDWARE_NORMAL;
stCommand.stMsgContent.iDataCount = 1;
stCommand.stMsgContent.pData = &stAlertIn;
enResult = BVCSP_SendCmd(g_hSession, &stCommand);
if (BVCU_Result_FAILED(enResult))
{
MLOGW("BVCSP_SendCmd fail! %d\n", enResult);
}
谢谢.
欢迎光临 mobile CCTV,mobile surveillance,police body worn cameras (http://bbs.besovideo.com:8067/)
Powered by Discuz! X3.2