Jump to content
Lars_G

Finding a firmware for a Dahua based system.

Recommended Posts

Hello all.

 

We have 2 DVRs of what looks to be a Dahua based system, The vendor name has been overriden for a local vendor (NGSVISION). These vendors know nothing about SDK or new firmwares. I'm trying to use the Dahua SDK to make a few programs for linux as our main workstations are linux based (and I've not managed to make the suse PPS work yet), but none of the demo programs in the SDK connect to the device, so I'm wondering if the firmware version is too old.

 

Saddly the local vendors know nothing about SDKs, or firmwares, they just sell, and drool.

 

This is my /mnt/custom/ProductDefinition in the device:

 

{

"Vendor" : "General",

"Hardware" : "BLOCK5008",

"PackSize" : 20480,

"LogoArea" : {"Begin": "0x80770000", "End": "0x80780000"}

}

 

And this is the output of the main binary file: /var/Sofia :

/var/Sofia

LIBDVR : 78

LIBDVR : GetFrontDecodeDeviceID Succssed!

device error no:0!

device error no:1!

device error no:7!

xxval : 12

env_init: mtd0,start:80000000,size:30000,esize:10000 name:boot"

LIBDVR : 78

**********************************************************************

| SYSTEM INFO

| libdvr version: 2.4.4 - Complie time Aug 22 2012 17:08:18

| product type: DVR_HI3000D-S

| slave_num: 0

| mast video channel: 8

| mast audio channel: 8

|slave video channel: 0

|slave audio channel: 0

| alarm mode: Com in-4 out-1

| forward video chip: NVP1114

| master chip: unknow: 4

| back video chip: nvp1114

| store interface: SATA

| network interface: RJ45

**********************************************************************

===================================

| LIBHICAP Compiled at Aug 22 2012 13:34:23

===================================

GENERATION: 1, PRODUCTION: 1, MAIN_SERIES: 3, HYPO_SERIES: 2, OEM_TYPE: 0

SLAVE_CHIP_NUM is 0

VI_CHN_NUM_HOST_CHIP is 8

VI_CHN_NUM_PER_SLAVE_CHIP is 0

AI_CHN_NUM_HOST_CHIP is 8

AI_CHN_NUM_PER_SLAVE_CHIP is 0

======================

LIBDVR : 78

LIBDVR : 78

VIDEO_SAMPLE_CHIP_1 = 3,VIDEO_SAMPLE_CHIP_2 = 1,

HWID_MAIN_SERIES_TYPE = 3

DVR/MVR info: TOTAL_VI_CHN_NUM: 8, HDEC_CHN_NUM: 8, HVR_TOTAL_CHN_NUM: 8, VDEC_CHN_NUM: 8

open /dev/hi3520_boot error

SampleSysInit enter, Aug 22 2012, 13:34:23

 

 

Sofia: $Rev: 1053 $, Build in:Nov 1 2012, 16:56:45, 0

 

 

Infra: $Rev: 921 $, Build in:Oct 10 2012, 14:50:47

CInfra::start()>>>>>>>>>>

CTimerManager::CTimerManager()>>>>>>>>>

CThreadManager::CThreadManager()>>>>>>>>>

CConfigManager::start()...

parse custom config:/mnt/custom/CustomConfig/NetWork.custom failed!

parse custom config:/mnt/custom/CustomConfig/fVideo.custom failed!

CVerifyConfig::Start()...

CDefaultConfig::Start()...

onVerifyNetIPFilter() ../../Manager/VerifyConfig.cpp 782

onVerifyNetDHCP() ../../Manager/VerifyConfig.cpp 787

onVerifyNetDDNS() ../../Manager/VerifyConfig.cpp 792

onVerifyNetEmail() ../../Manager/VerifyConfig.cpp 797

custom config NetWork.RemoteDevice verify failed with ret:20!

GUITheme List:General

ethMac:00:12:00:00:bc:b8

@CDevAbility::start()>>>>>>>>>>m_nVTotalChns: 8, m_nVCapChns: 8, m_nVPlayChns: 8, m_nVDigitChns: 0

CFrontboard::CFrontboard()>>>>

BLOCK AS

LIBDVR : FrontboardCreate Successful

 

 

Manager: $Rev: 1008 $, Build in:Nov 1 2012, 16:56:38

CManager::start()>>>>>>>>>>

CConsole::start()...

CMagicBox::start()...

Log Manager starting....!

=======Shut Down at 2013-7-22 09:24:47 with m_exitState[1], SerialNo:

CAutoMaintain::Start()...

CDaylight::start()...

 

Launched at Local Time 2013/7/22 09:24:47!

CUserManager::start......

onVerifyNetIPFilter() ../../Manager/VerifyConfig.cpp 782

login(default, ******, GUI, address:)

CPacketManagerImp::CPacketManagerImp()>>>>>>>>>

sm_packetBuf null use self heap memory!

CPacketManagerImp::CPacketManagerImp() new buffer[20480] failed!!!!

======= pre record buf 4096

=====================================

| LIBFVIDEO: Compiled at Oct 22 2012 19:41:35

=====================================

LIBDVR : 78

LIBDVR : 78

BLOCK AS

DVRProID=4

>>>>>>>>FVIDEO_TYPE_1=3

>>>>>>>>FVIDEO_TYPE_2=1

#################################################################

[reg] = 0x200f0070,[val]= 0x00000001

#################################################################

>>>>>>>>>FVIDEO_TYPE=9

>>>>>>>>>VI_CHN_NUM_HOST_CHIP=8

>>>>>>>>>SLAVE_CHIP_NUM=0

>>>>>>>>>VI_CHN_NUM_PER_SLAVE_CHIP=0

>>>>>>>>Open fd_bvideo faild!

>>>>>>>>>Open fd_vga faild!

>>>>>nvp1108_id=0x78

Video Decoder NTSC Mode

>>>>>>LAN8710

>>>>>nvp1108_id=0xff

nvp1108/nvp1104b error: chip address 0x62,id 0xff

HI3120_SET_VSTD reset error

open /dev/mdin240 failed

fd_240 ioctl failed !

VideoOut SetInit Resolution:800x600

Graphics - HiVideoSetResolution: Open mdin240 failed!

Graphics - HiVideoSetResolution: fd_240 ioctl failed !

 

 

GDI: $Rev: 923 $, Build in:Jul 30 2012, 20:14:25

CGDI::start()>>>>>>>>

Graphics - GraphicsCreate: GraphicsCreate enter

Graphics - GraphicsSetVstd: enter

Graphics - GraphicsSetVstd: mem0:0x40209000,len:1572864

mem1:(nil),len:0

Graphics - GraphicsSetVstd: mapped_mem:0x40389000

Graphics - GraphicsSetVstd: mem0:0x4038a000,len:831488

mem1:(nil),len:0

Graphics - GraphicsCreate: GraphicsCreate enter

Graphics - GraphicsSetVstd: enter

Graphics - GraphicsSetVstd: enter

 

@=================================

@mem = 0x40209000 0x40209000 0x00000000

@pitch = 1600

@width = 800

@height = 600

@foramt = 0

@===================================

 

@=================================

@mem = 0x40389000 0x40389000 0x00000000

@pitch = 64

@width = 32

@height = 32

@foramt = 0

@===================================

CLocales::CLocales()>>>>>>>>>

CFontManager::CFontManager()>>>>>>>>>

CFontManager::CFontManager Open FontSmallEn.bin File Failed!

SuportLang:Arabic

SuportLang:Brazilian

SuportLang:Bulgarian

SuportLang:Czech

SuportLang:Dansk

SuportLang:Dutch

SuportLang:English

SuportLang:Farsi

SuportLang:Finnish

SuportLang:French

SuportLang:German

SuportLang:Greek

SuportLang:Hebrew

SuportLang:Hungarian

SuportLang:Indonesian

SuportLang:Italian

SuportLang:Japanese

SuportLang:Poland

SuportLang:Portugal

SuportLang:Romanian

SuportLang:Russian

SuportLang:SimpChinese

SuportLang:Slovakia

SuportLang:Spanish

SuportLang:Swedish

SuportLang:Thai

SuportLang:TradChinese

SuportLang:Turkey

SuportLang:Vietnamese

CMOS ExitTime:2013-07-22 09:24:48

CurrentTime:2013-07-22 09:24:48

Save SysTime to Flash:2013-07-22 09:24:48, Time:30638 Min, Trail:30638 Min

CConfigManager::getConfig 'General', but default config is not set yet!

GUI Use Theme:default

PageRecord

PageConfigRecord

PageConfigSnapshot

PagePlay

PageBackup

PageAlarm

PageConfigMotionDetect

PageConfigBlindDetect

PageConfigLossDetect

PageConfigAlarm

PageAlarmOut

PageConfigAbnormal

PageConfigVideoAnalyze

PageConfigCarStatus

PageConfig

PageConfigGeneral

PageConfigEncode

PageConfigNetCommon

PageConfigNetService

PageConfigDisplay

PageUserManager

PageConfigPtz

PageConfigComm

PageConfigTour

PageConfigSpot

PageConfigDigiCh

PageDigitalConfig

PageDigitStatus

PageDigitalInfo

PageTool

PageHddManager

PageUpgrade

PageDeviceDesc

PageAutoMaintain

PageConfigDefault

PageImExport

PageExit

PageInfo

PageInfoHdd

PageInfoBps

PageInfoLog

PageInfoVersion

Logo Path:/mnt/logo/bmp_logo.jpg

CBackupManager::CBackupManager()>>>>>>>>>>>>>>>>

CDriverManager::CDriverManager()>>>>>>>>>

 

 

Storage: $Rev: 922 $, $Author: liwj $, Build in:Oct 26 2012, 10:11:40

CStorage::start()>>>>>>>>>>

==>CPacketManagerImp: allocate buffer:0x406662D4 size:167936

CPacketManagerImp::GetPacket none free node!!!!!! 1

Segmentation fault

 

(I'm guessing the segmentation fault is due to another copy of Sofia already running), I entered the device with the user root, and password xc3511 which I found here.... Do you think this is actually a Dahua device? Do you think I can find an older SDK that will work with this, or a compatible "plain" firmware that will work for this device?

 

Here's an lsmod to see what is the hardware being used:

 

lsmod

Module Size Used by Tainted: P

hi_ir 10240 0

hi3515_aenc 17640 2

hi3515_adec 12496 2

hi3515_ao 94088 2

hi3515_ai 90344 1

hi3515_sio 9372 1

hi3515_h264d 121312 1

hi3515_h264e 117868 1

hi3515_vpp 88568 2

hi3515_group 326088 9

hi3515_venc 48488 17

hi3515_vdec 78336 9

hi3515_chnl 36296 1

hi3515_viu 91352 9

hi3515_vou 168452 33

hi3515_vd 67212 1

hi3515_dsu 52676 1

hi3515_sys 11972 2

hi3515_base 40072 17 hi3515_aenc,hi3515_adec,hi3515_ao,hi3515_ai,hi3515_sio,hi3515_h264d,hi3515_h264e,hi3515_vpp,hi3515_group,hi3515_venc,hi3515_vdec,hi3515_chnl,hi3515_viu,hi3515_vou,hi3515_dsu,hi3515_sys

tde 152100 2 hi3515_dsu

hifb 43820 5

hismi 2404 0

hiether 76148 1

fvideo 3744 1

hiwdt 3140 0

hirtc 2272 2

gpio 3620 0

gpioi2c 5344 2 fvideo,hirtc

alp 5944 0

at88sc 20737 1

fb 43984 11 hifb

mmz 21668 24

 

P.s.: The model labeled on the box is: NGSV-SDB2008 (Another rebrand it seems)

 

P.s. I've been using linux for years, so I might become with luck an asset in this forum

Share this post


Link to post
Share on other sites

I there!

 

Some rebrands change the default port and the SDK uses the stnd port to connect, in the PCB what is the model printed there?

Share this post


Link to post
Share on other sites
Hello all.

 

We have 2 DVRs of what looks to be a Dahua based system

 

If you want to know for sure if it is a Dahua unit, it will help if you post pic of the unit, the back of the unit, and the menu system.

Share this post


Link to post
Share on other sites

I have this same DVR, and I forgot the admin password, any idea on how to reset it if I'm able to login trough telnet with the root account?

 

Thanks

Share this post


Link to post
Share on other sites

Ok, I've gotten some pictures to show you guys...

 

First, this is the UI (In spanish, sorry), http://flickr.com/gp/awenanam/vPYJ5U

This is the front of the unit: http://flickr.com/gp/awenanam/YBt7Q2

And this is the back of the unit: http://flickr.com/gp/awenanam/H66jMY

 

Now a new detail I've found while checking out the program for windows (CMS, no other names on it) that came with the unit, is the fact that there are both hcnetsdk.dll (HIK Vision SDK apparently), AND dhnetsdk.dll (Dahua SDK it seems), on the program directory... which could mean this is a hybrid dvr? that would make coding my own client a little difficult. Also I've not been able to make any of the demo programs on either SDK for linux (newets HIK Vision, and newest Dahua) work with the device, not sure wether due to problems with settings/compiling the programs, or wether due to a hybrid nature of the device.

 

I would need to see linking to see what calls in each dll are used by the cms.exe app. :/ this is going to be a long fight it seems.

Share this post


Link to post
Share on other sites

Thank you so much Tom.

 

Now from what I am seeying around, there is no SDK available for TVTs, much less so for linux? This is a big big hit for me. Unless someone can help me find a working sdk, or one CAN be concocted from mixing in hik vision and dahua ones somehow :/.

 

Anyhow thanks so far for all the help.

 

P.s. How did you recognize the dvr? just the menu interface? or is there something in the front/back planes that helped you identify it?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×