mobile CCTV,mobile surveillance,police body worn cameras

标题: wz128 infrared leds [打印本页]

author: CarlosM    time: 2019-10-9 16:15
标题: wz128 infrared leds
Greetings, I wanted to ask for your help to know how I can programmatically in Java/Android activate the infrared lights on the bodycam wz128, thank you very much in advance

author: besovideo    time: 2019-10-9 17:33
dear sir, do you have WZ128 at hand? I remember you have BC310+VM780.
below is for WZ128,

Acess to hardware parts in WZ128 body camera

keys
video record
DOWN:  android.intent.action.ACTION_VIDEO_DOWN
UP:        android.intent.action.ACTION_VIDEO_UP
longpress:   android.intent.action.ACTION_VIDEO_LONG_PRESS

audio rec
DOWN:  android.intent.action.ACTION_RECORD_DOWN
UP:        android.intent.action.ACTION_RECORD_UP
longpress:   android.intent.action.ACTION_RECORD_LONG_PRESS

snapshot
DOWN:  android.intent.action.ACTION_CAMERA_DOWN
UP:        android.intent.action.ACTION_CAMERA_UP
longpress:   android.intent.action.ACTION_CAMERA_LONG_PRESS

SOS
DOWN:  android.intent.action.ACTION_SOS_DOWN
UP:        android.intent.action.ACTION_SOS_UP
longpress:   android.intent.action.ACTION_SOS_LONG_PRESS

PTT
DOWN:  android.intent.action.ACTION_PTTKEY_DOWN
UP:        android.intent.action.ACTION_PTTKEY_UP
longpress:   android.intent.action.ACTION_PTT_LONG_PRESS

LED
Write to below dev node,
red on the right
sys/class/leds/aw2013_right_red/brightness
green on the right
sys/class/leds/aw2013_right_green/brightness
red on the right blinks
sys/class/leds/aw2013_right_red/blink

refer to below ref code,


device ID

        private String getMacAddress() {
                try {
                        WifiManager wifi = (WifiManager) context
                                        .getSystemService(Context.WIFI_SERVICE);
                        WifiInfo info = wifi.getConnectionInfo();
                        return info.getMacAddress().replace(":", "");
                } catch (Exception e) {
                        Log.e("MPUDefaultDevice", "getMacAddress--->" + e.getMessage());
                }
                return null;
        }
       
        private String getImeiInfo() {
                TelephonyManager telephonyMgr = (TelephonyManager) context
                                .getSystemService(Context.TELEPHONY_SERVICE);
                return telephonyMgr.getDeviceId();
               
        }
       
        /*get devID*/
        public String getStringDefaultDevice() {
                String stringDevice = null;
                try {
                        // stringDevice = getImeiInfo().subSequence(
                        // getImeiInfo().length() - 7, getImeiInfo().length())
                        // .toString();
                        stringDevice = getImeiInfo().subSequence(
                                        getImeiInfo().length() - 7, getImeiInfo().length())
                                        .toString();

                } catch (Exception e) {
                        Log.e("MPUDefaultDevice", "e--->" + e.getMessage());
                }
                try {
                        if (stringDevice == null) {
                                stringDevice = getMacAddress().subSequence(
                                                getMacAddress().length() - 7, getMacAddress().length())
                                                .toString();
                        }
                } catch (Exception e) {
                        Log.e("MPUDefaultDevice", "e--->" + e.getMessage());
                }
                if (stringDevice == null || stringDevice.equals("0000000")) {
                        stringDevice = "aff8866";
                }
                return "2" + stringDevice;
        }

may reach me by wechat for .doc file.

author: CarlosM    time: 2019-10-10 04:36
I have the WZ128 model, what I need to know is if I can programmatically activate the IR engine via Java/Android

Regards
author: besovideo    time: 2019-10-10 09:26
Dear is above okay for you.?




欢迎光临 mobile CCTV,mobile surveillance,police body worn cameras (http://bbs.besovideo.com:8067/) Powered by Discuz! X3.2