mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 7772|reply: 3
打印 prevThread nextThread

wz128 infrared leds

[copyURL]

2

主题

4

帖子

30

积分

newBie

Rank: 1

积分
30
jumpTo
owner
poston 2019-10-9 16:15 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
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
reply

使用道具 report

60

主题

1428

帖子

5953

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5953
sofa
poston 2019-10-9 17:33 | authorOnly
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.
reply agree Against

使用道具 report

2

主题

4

帖子

30

积分

newBie

Rank: 1

积分
30
bench
 Owner| poston 2019-10-10 04:36 | authorOnly
I have the WZ128 model, what I need to know is if I can programmatically activate the IR engine via Java/Android

Regards
reply agree Against

使用道具 report

60

主题

1428

帖子

5953

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5953
ground
poston 2019-10-10 09:26 | authorOnly
Dear is above okay for you.?
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-12-22 19:16 , Processed in 0.057614 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList