Manual: Create console/serial access to Hikvision DS-2CD2032F-I

Discussion in 'Hikvision' started by snikinl, Oct 30, 2015.

Share This Page

  1. snikinl

    snikinl n3wb

    Joined:
    Oct 8, 2015
    Messages:
    8
    Likes Received:
    13
    Needed hardware:
    - Micro Mini. 1.25 4-Pin JST Connector with Wire x 10 sets (arround 6 dollar) - http://www.ebay.nl/itm/Micro-Mini-1-25-4-Pin-JST-Connector-with-Wire-x-10-sets-/111386693168?
    - USB To RS232 TTL UART PL2303HX Auto Converter USB to COM Cable Adapter Module (arround 1,5 dollar) - http://www.ebay.com/itm/310676792112
    - soldering iron with a little point
    Software:
    - A serial terminal client like Tera Term or Putty to connect to the serial port

    Camera <-> USB serial converter
    1. 3.3vdc (not needed) red (near the other connector) <-> red
    2. Camera Tx -yellow <-> Rx adapter White
    3. Camera Rx black <-> Tx adapter Green
    4. Gnd green <-> black

    See picture below:
    [​IMG]



    Serial port settings:
    baud rate= 115,200
    stop bits=1
    parity=none
    flow control=none
     

    Attached Files:

    marku2, TopITCompany, kozmo2k and 7 others like this.
  2. alaford

    alaford n3wb

    Joined:
    Mar 7, 2016
    Messages:
    3
    Likes Received:
    0
    You are a legend mate. I was searching everywhere for the name of the type of the serial connector on the hikvision camera and now I've found it thanks to you.
     
  3. AliJ

    AliJ n3wb

    Joined:
    Feb 13, 2018
    Messages:
    5
    Likes Received:
    0

    Attached Files:

  4. alastairstevenson

    alastairstevenson Known around here

    Joined:
    Oct 28, 2014
    Messages:
    8,855
    Likes Received:
    2,496
    Location:
    Scotland
    Did you use the 4-pin white connector at the middle of the image, to the far left of the battery, about in line with it?
    Did you connect like this :
    IMG_20180221_115548.jpg
     
    marku2 likes this.
  5. AliJ

    AliJ n3wb

    Joined:
    Feb 13, 2018
    Messages:
    5
    Likes Received:
    0
    Thanks for your attention
    Fortunately the problem has been resolved
    the problem was with Putty and solved with securecrt IMG_20180222_202335_797.jpg
     
  6. Sunilsyed

    Sunilsyed n3wb

    Joined:
    Jun 24, 2018
    Messages:
    4
    Likes Received:
    0
    Location:
    kerala
    20180702_185619.jpg 20180702_185626.jpg I have USB to TTL converter. how will connect it with hikvision dvr jft interface
     
  7. alastairstevenson

    alastairstevenson Known around here

    Joined:
    Oct 28, 2014
    Messages:
    8,855
    Likes Received:
    2,496
    Location:
    Scotland
    The connection is the same as above.
     
  8. Sunilsyed

    Sunilsyed n3wb

    Joined:
    Jun 24, 2018
    Messages:
    4
    Likes Received:
    0
    Location:
    kerala
    hi last night I fix my dvr with lan cable. but now also same problem. there is no HDD only netHDD. how to set up
     
  9. _Strannik_

    _Strannik_ n3wb

    Joined:
    Jul 2, 2018
    Messages:
    4
    Likes Received:
    0
    Location:
    Ukraine
    Hi!
    I have a problem with DS-7204HUHI-F1/N firmware not set up to dvr

    Use:
    Putty + TFTPD32 + USB->TTL
    192.0.0.128 address to PC adapter
    also 192.168.1.128
    if I use tftp by Hikvision then the firmware is successful, but only if it is less than 32Mb
    Any ideas?
     

    Attached Files:

    Last edited: Jul 7, 2018
  10. afddwfadwfadwf

    afddwfadwfadwf Young grasshopper

    Joined:
    Mar 28, 2016
    Messages:
    57
    Likes Received:
    6
    Can this method be used to flash English firmware to Chinese cameras with hacked English firmware (G0 platform)?
     
  11. alastairstevenson

    alastairstevenson Known around here

    Joined:
    Oct 28, 2014
    Messages:
    8,855
    Likes Received:
    2,496
    Location:
    Scotland
    Not as simple as 'flashing English firmware' but with serial console access you 'own' the camera and can trash the 'hacked to English' firmware and convert to English. Needs Linux capabilities though.
    As examples I posted a couple of threads on the topic a while back - the search should find them.
     
  12. _Strannik_

    _Strannik_ n3wb

    Joined:
    Jul 2, 2018
    Messages:
    4
    Likes Received:
    0
    Location:
    Ukraine
    This issue for tftpd32 by jouninPointnet ONLY 64bit (i have OS Win10 64 bit) - after changing the client to 32 bit everything works :facepalm:
     
  13. Ansarmehmood1986

    Ansarmehmood1986 n3wb

    Joined:
    Aug 3, 2018
    Messages:
    4
    Likes Received:
    0
    Location:
    England
  14. alastairstevenson

    alastairstevenson Known around here

    Joined:
    Oct 28, 2014
    Messages:
    8,855
    Likes Received:
    2,496
    Location:
    Scotland
  15. Ansarmehmood1986

    Ansarmehmood1986 n3wb

    Joined:
    Aug 3, 2018
    Messages:
    4
    Likes Received:
    0
    Location:
    England
    hi guys i've tried using the serial console but having hard time finding the right commands, this is what im doing
    as soon as it boots i press 'ctrl + u'
    it stops the boot but cant go any further
    on screen it has 'HKVS $' written,
    tried a few different commands but keeps going to next line with same 'HKVS $' and thats it
    if some one can help that would be much appreciated
     
  16. Blitz1986

    Blitz1986 n3wb

    Joined:
    Aug 24, 2018
    Messages:
    5
    Likes Received:
    0
    Location:
    US
    I have a DS-2CD2032-I that I bricked. Read these instructions and have the connectors but there is no connection the camera board that I can find. There are setting in the camera configuration for RS232.? Any suggestions?
     
  17. alastairstevenson

    alastairstevenson Known around here

    Joined:
    Oct 28, 2014
    Messages:
    8,855
    Likes Received:
    2,496
    Location:
    Scotland
    On the DS-2CD2032-I the serial console connection is on the underside of the system board.
    Just to confirm - the serial console is not 'classic RS232' but serial TTL, different signal levels.
    So you need a serial TTL to USB convertor to connect to it.

    How was the camera bricked?
    You should be able to unbrick using the brickfixV2 tool here :
    Unbrick and fully upgrade your R0 / DS-2CD2x32 IP cameras -
    R0 / DS-2CD2x32 BrickfixV2 brick recovery and full upgrade tool - enhanced.
     
  18. Blitz1986

    Blitz1986 n3wb

    Joined:
    Aug 24, 2018
    Messages:
    5
    Likes Received:
    0
    Location:
    US
    I took the camera apart and there is one connector with several wires and a small that connects to the lens portion and the flat ribbon cable. I will get pictures later. I have the USB to TTL cable just don't see the Micro Mini. 1.25 4-Pin JST Connector as shown above on the camera. I'm new to cameras but familiar with computer repair. I've tried the Brickfix and a bunch of other instructions to unbrick. The camera responds to ping and shows up activated and online with IP but doesn't respond to the many tftp servers/firmware revisions I've tried. See pic's. I got 3 of them cheap and using two of them but without due diligence I tried to upgrade the firmware on this one and it reverted back to 4.0.8.
    Thanks for any help I can get.
     

    Attached Files:

  19. alastairstevenson

    alastairstevenson Known around here

    Joined:
    Oct 28, 2014
    Messages:
    8,855
    Likes Received:
    2,496
    Location:
    Scotland
    You have the wrong PC IP address for the Hikvision tftp updater.
    The PC IP address needs to be set to 192.0.0.128 not 192.168.1.128
    The camera on startup probes for the tftp updater tool on 192.0.0.128

    That will be the IR LED power and the light sensor, and the ribbon to the image sensor.
    The 4-pin 1.5mm serial console connector is on the underside of the system board on the 2032.
     
  20. Blitz1986

    Blitz1986 n3wb

    Joined:
    Aug 24, 2018
    Messages:
    5
    Likes Received:
    0
    Location:
    US
    I will try that but it won't be on the subnet as the camera. Notice the camera is on 192.168.1.64 and I'm unable to change it.

    I will look again tonight and take pictures.

    Thanks again!
     
  21. alastairstevenson

    alastairstevenson Known around here

    Joined:
    Oct 28, 2014
    Messages:
    8,855
    Likes Received:
    2,496
    Location:
    Scotland
    It will be on the same subnet that the camera uses when the bootloader starts, and takes a probe around to see if there is a Hikvision tftp server listening.
    When it does this, the camera by default is using IP address 192.0.0.64, set by a bootloader environment variable.
    That's fixed within the bootloader, and is not related to the configurable IP address that the Linux kernel uses after it boots.

    Your Batch Configuration Utility screenshot shows the firmware version of 4.0.8 which indicates that the camera is running in the 'min-system recovery mode' which is entered for fault conditions such as incorrect firmware loaded or other failures.
    In this mode there are no web services, and limited SADP services.
     
  22. Blitz1986

    Blitz1986 n3wb

    Joined:
    Aug 24, 2018
    Messages:
    5
    Likes Received:
    0
    Location:
    US
     
  23. alastairstevenson

    alastairstevenson Known around here

    Joined:
    Oct 28, 2014
    Messages:
    8,855
    Likes Received:
    2,496
    Location:
    Scotland
    This will only work using the Hikvision tftp updater.
    The camera probes for it at startup and they do a handshake before proceeding.
    What showed on the tftp updater status screen when you powered on the camera?
     
  24. Blitz1986

    Blitz1986 n3wb

    Joined:
    Aug 24, 2018
    Messages:
    5
    Likes Received:
    0
    Location:
    US
    Thanks,got it to take and update and now working. Didn't have to use the serial. I had been trying unsuccessfully using a Esxi VM and the camera on its own Vlan and tried with switch. When I used a physical computer as the tftp server I was able to load the brickfix.
     
  25. alastairstevenson

    alastairstevenson Known around here

    Joined:
    Oct 28, 2014
    Messages:
    8,855
    Likes Received:
    2,496
    Location:
    Scotland
    Excellent, well done for getting there!