Dahua Direct camera setup
Dahua Direct connects a Dahua camera to CleverCam with no hub and no other hardware on site. The camera reaches out to CleverCam over the internet, using its own Auto Register setting, and that one connection carries everything: detections, photos, event clips, live view and the camera's status. There is no port forwarding and no fixed IP to arrange.
The camera does the first detection and CleverCam verifies it before anything reaches you. A detection that CleverCam will not confirm is dropped rather than raised.
This works on Dahua cameras that support Auto Register. For Hikvision use Hikvision Direct, and for other brands use a CleverCam hub or CleverMail.
A Dahua recorder (XVR or NVR) can connect the same way and bring every camera on it, including analog cameras, which have no connection of their own. That has its own section below.
What you need
- A Dahua camera that can reach the internet.
- A working DNS server in the camera's network settings. The server address is a name, and the camera looks it up every time it connects. A camera on DHCP normally has one already, but a camera given a fixed IP by hand often does not.
- The camera's admin login.
- Access to the camera's own web page on site, once, to enter three values.
1. Create the hub
The easiest way is from the site. Open the site, go to Hardware, click Add hub and pick the Dahua Direct tile. That creates the hub and links it to the site. You can also click Add Dahua Direct on the Hubs tab of the Hubs page, but a hub made there is not on a site yet, and you can only add its cameras once it is.
- Under How do the cameras connect?, leave Each camera itself selected. Choose Through a recorder (XVR / NVR) for a recorder. See below.
- Read the Dahua Direct Billing Agreement and click Continue. Dahua Direct is billed per camera channel, with a minimum of one.
CleverCam creates the hub and opens its camera picker, the same panel you can reach later from the hub (see Where to find the camera picker). Keep it open for the next steps, and click Done when you have finished.
2. Save the device login
Under Device login, enter the admin Username and Password of the cameras and click Save login. CleverCam signs in to every device on this hub with that login, so cameras that connect by themselves need the same login.
The password is never shown again once saved. To change only the username, leave the password blank and the saved password is kept. Use Change to edit the login later.
3. Point each camera at CleverCam
On each camera, open its own web page and go to Setting → Network → Auto Register. Switch it on and enter the values shown under How to connect a camera in the picker:
| Field | Value |
|---|---|
| Server address | shown in the picker (with a Copy button) |
| Port | shown in the picker |
| Device ID | a different one for each camera: the picker suggests free ones such as a1b2c3d4-cam1 and a1b2c3d4-cam2 |
Never give two cameras the same Device ID. A shared Device ID causes repeated failed sign-ins, and the camera locks its own admin account within about a minute, after which nothing can reach it until the lock clears. Use the IDs the picker lists. They start with the hub's serial, which is how CleverCam knows which hub a camera belongs to.
Save. The camera connects within a few seconds and appears in the picker.
The server address is a name, not an IP address, so that CleverCam can move the service without anyone visiting the site. If CleverCam's main server goes down, a camera on the name reconnects to a standby server by itself, and returns once the main server is back; a camera on the fallback IP address cannot. Most cameras accept the name. Some older firmware does not: it either refuses the name when you save, or accepts it and then never connects. If the camera has not appeared a minute after saving, enter the fallback IP address shown in the picker as the server address instead. The same applies to a recorder.
4. Choose the cameras to monitor
Each device that connects is listed in the picker with its model, LAN address, Device ID, serial number and firmware, plus one of these labels:
- Online
- Offline · seen … (with how long ago)
- Needs its login: it connected, but no login is saved on the hub yet.
- Login refused: it rejected the saved login. The picker says why (wrong username or password, no such user, or a locked account).
A camera is not monitored until you add it:
- Tick the camera. Fields appear for its name in CleverCam, its group and what it detects, People or People and vehicles. Select every camera not monitored yet ticks them all.
- Click Add N cameras in the bar at the bottom.
CleverCam starts monitoring within a minute, and nothing needs doing on the camera. A site with no camera group yet gets one called Cameras.
To change a monitored camera's settings, click Edit next to it. The picker closes and the camera's Edit Video Stream settings open: its name, group and detection. Edit sits beside Remove in the picker on the site and in the hub's Edit dialog, for everyone who can add or remove cameras. It is not in the list shown straight after the hub is created.
To stop monitoring a camera, click Remove next to it in the picker (or delete the camera anywhere else in CleverOps or CleverAlert). The camera is deleted with its settings, but it stays connected and can be added again. Refresh asks every device on the hub to report again at once, and the picker also updates by itself every few seconds while it is open.
A camera listed under Cameras no connected device reports is a monitored camera whose device has not connected since, or has stopped offering that channel. Use Remove to clear it.
Anyone who can add a hub can set this one up. Adding or removing cameras and changing the login takes the same permission as Add hub: Claim, add & release hubs or Edit sites on the control room the hub belongs to. Site admins and company admins of a control room serving the site can too. Everyone else sees the list without the controls.
The camera's settings
A Dahua Direct camera's Edit Video Stream shows only what Dahua Direct uses:
- Device: the camera's model, the device's Serial and the Channel, read-only, with Save stream settings under it. CleverCam matches the camera's alarms by its device and channel, so there is no RTSP stream URL to change. To monitor another channel, add it in the camera picker.
- High sensitivity sets the sensitivity of the camera's own detection rules.
- Detection profile also sets the targets on the camera's own rules.
- Arm mode, Animals on site, Guard Tours, Video specs and Camera onboard analytics are not shown: nothing on Dahua Direct uses them.
Where to find the camera picker
- CleverOps: on the site's Hardware tab, the Dahua Direct hub's + Add Camera button, or the hub's Edit dialog under Cameras.
- CleverAlert: the Dahua Direct hub's page, under Cameras on this device.
5. Turn on recording (for event clips)
On each camera, go to Setting → Storage → Schedule and make sure recording is on. The camera records to its own memory card, and CleverCam pulls a short clip from it around each event.
Without this, events still arrive with a photo but no clip. The camera's Device health shows No SD card or Recording: Stopped when this is the case.
What raises an event
Cameras report detections in different ways, and CleverCam handles each without any setting from you:
- Cameras that send their own smart events with a picture (most current Dahua models): the camera's person or vehicle event arrives with its photo, and CleverCam verifies that photo. Plain motion is checked too: a camera's smart detection can fire late or miss someone, so while the camera is armed or on chime, motion also triggers a frame from the camera, which CleverCam checks. One person raises one event, whichever of the two saw them first.
- Cameras that only raise an alarm (some models, for example the IPC-HDW2449T, IPC-HDW2439 and IPC-HDW2230, detect people but send no picture): CleverCam looks at the camera itself. The camera's own alarm, or plain motion if the camera has no smart detection, triggers a frame from the camera, which CleverCam checks.
A late frame is not a false alarm. If the first frame shows nobody, CleverCam takes a couple more frames before calling it a miss. If the camera has an SD card, it also checks the recording around the alarm, so a fast walker is still caught. If that check only finishes more than 2 minutes after the alarm, nothing is raised: an old picture arriving as a new event would read as someone on site now.
A half-seen person gets four more frames. Plain motion normally gets one frame. When that frame shows what may be a person but not clearly enough to raise (someone crouching, or blurred by movement), CleverCam checks four more: about 1 and 2 seconds after it from the camera, and about 1 and 2 seconds before it from the recording, when the camera or recorder records. The first one that clearly shows the person raises the event, with that frame as its photo. A frame from the recording that only arrives more than 30 seconds after the alarm raises nothing. Each camera gets this at most once every 30 seconds, so a statue or lamp post that half-looks like a person cannot keep pulling the recording.
What you will and will not see:
- Only something new raises. Whatever is already in view when CleverCam starts looking, such as a parked car, is treated as parked, and arming with a vehicle in frame does not raise it. A vehicle that arrives, or leaves the spot it was parked in, does raise.
- A person who stays where they are is raised once, and again when they move. An object mistaken for a person, such as a coat stand or a poster, raises once and is then ignored.
- Someone who stays in view keeps raising. After an event CleverCam keeps looking at that camera about once a second, and each look that still shows a moving person or vehicle raises another event with its own photo. This is capped (at most 8 more events or 40 seconds), so a busy area cannot raise without end.
What an event's photo and clip show
Every event arrives with a photo. When the camera records, an event can also get an automatic clip of about 20 seconds around it, within a budget:
- A site whose type is Street camera pole gets no automatic clips. A pole films a public road all night, and its clips used to queue up and delay alarms everywhere else.
- Every other site gets at most one automatic clip an hour, for the first event in that hour.
- For any event without a clip, open Scroll back on the camera to fetch the minute around it.
The clip comes off the recorder over the site's own internet connection, so a slow connection makes for a slow clip. CleverCam measures every download and adjusts each recorder by itself, one step at a time:
- The full clip from the main stream (the normal case).
- The same clip from the recorder's sub stream, a lower resolution that is quicker to send. This step is skipped for a recorder that keeps no sub-stream recording.
- A short clip of about 8 seconds.
- Photos only for 30 minutes, after which a short clip is tried again.
A download that is still arriving after 45 seconds is stopped, and whatever came is attached as a shorter clip. Once its downloads are quick again, the recorder steps back up towards the full clip.
Every event records what happened to its clip and why: attached, short, partial, from the sub stream, or none. A "none" record says why: a street camera pole, the site's clip for the hour already taken, too slow, or no recording at that moment.
The apps show the reason quietly, for whoever looks. Nothing changes for an event with a full clip, or while its clip is still being fetched:
- CleverCommand: a small grey line on the left of the Prev / Next strip under the event picture. Hover over it to read all of it. See Media & Evidence.
- CleverAlert: a small grey line under the date and duration on the event's summary card. See Event Details.
When an earlier event's clip already shows this moment, the line opens that event. The reason is kept for 35 days. Once an event is archived, it no longer has one.
On the photo and in the clip:
- Whatever raised the event gets a corner-bracket box: red when armed, green in chime mode. When two or more people or vehicles raised it, each gets a small numbered badge.
- Things that were already there, such as a parked vehicle, get a light aqua box. They are shown so you can see them, but they did not raise the event.
- In the clip, boxes follow the subject smoothly, and the rest of the picture is dimmed slightly while someone is in view.
Recorders (XVR / NVR)
A recorder connects once, and every camera on the hub is one of its channels. This is the only way to bring analog cameras onto Dahua Direct, and it means one Device ID for the whole site instead of one per camera.
Setting it up
- Create the hub as in step 1 and choose Through a recorder (XVR / NVR).
- In the camera picker, save the recorder's admin login under Device login.
- On the recorder (not the cameras), open Network → Auto Register. Some recorders call it Register. Switch it on and enter the server address, port and the single Device ID from How to connect a recorder. It ends in
-rec. - The recorder appears in the picker with every channel it has. Each channel shows the name the recorder gives it, whether a camera is on it (Camera connected, Connecting, Camera not connected, No camera or Disabled on the recorder), and whether it is Analog or an IP camera (with the camera's address and model). Tick the channels to monitor (Select every channel with a camera ticks them all), name them and click Add N cameras.
The recorder lists its channels as soon as its login is saved, before any camera is added. Cameras added to or removed from the recorder later are picked up within a minute. A camera plugged in later appears after Refresh, or by itself within half an hour.
A camera that connects by itself can join a recorder's hub too, with its own Device ID from the picker's list. It is listed under Cameras connecting by themselves.
How detection works on a recorder
A recorder sends no picture with what it detects, and most do not classify their IP channels. So CleverCam looks at the channel itself: whenever the recorder reports motion on a camera, CleverCam takes one frame of that channel and checks it. Only a person or vehicle that CleverCam's own check confirms is raised, for the classes selected on the camera.
- Motion detection must be switched on for each channel on the recorder, and recording must be on for event clips.
- Nothing is fetched while a camera is disarmed. Chime mode counts as active.
- A camera whose motion keeps turning out to be nothing (a tree in the wind) is looked at less often.
- The picture is as large as the recorder's snapshot setting for that channel, and CleverCam raises it for you. Analog channels on an XVR ship with a very small snapshot (352×288), in which a garden table or a shrub can pass for a person and real people are missed. When a recorder channel first connects, CleverCam sets its snapshot size, for the scheduled snapshot and the event snapshots (motion and alarm) alike, to the largest the recorder takes: 960×576 on every XVR tried so far (XVR1B04, XVR1B08 and XVR1B16), or 704×576 where a recorder will not go higher. It reads the size back to confirm the recorder took it, and shows the result under Device health as Still size. The new size shows on the next event's photo. A recorder on a slow connection is left at its smaller size, and the check says so. To change it by hand instead: Setting → Camera → Encode → Snapshot, per channel, for the event snapshots as well as the scheduled one, then read the size back after saving, because a size the recorder will not take is silently kept at the old value.
What is different from a camera connecting itself
| Detection settings | Not pushed to the recorder, whose detection settings belong to the owner's own recording setup. The classes you select still decide what is raised. |
| Snapshot size | Raised once, at setup, to the largest the recorder takes. See Setup puts the settings right. |
| Timed snapshots | Switched off on every channel. See Timed snapshots are switched off. |
| Live view | Shows the channel's sub stream at whatever size the recorder encodes it. |
| Internet use | Each look takes one full frame over the site's connection (roughly 150 to 300 KB for a 1080p channel), only while the camera is armed or on chime. |
Privacy areas
A privacy area drawn on a camera does two things on Dahua Direct, the same as on other cameras:
- It is blurred in every event photo and clip. A clip that cannot be blurred is not attached, and the event keeps its photo.
- Anything inside it is not a detection. It is never raised or shown. Whether something is inside is judged at a person's feet or a vehicle's wheels, so a person on your property whose head merely overlaps a privacy area behind them is still raised, and is shown whole.
A camera that sees an uncovered public road sees new vehicles all day. Draw a privacy area over the road, leave vehicles off for that camera, or aim it away.
Live view is not blurred. It is the camera's own stream passed straight through, so a privacy area does not appear on it.
Device health
CleverCam asks every Dahua Direct camera, and every recorder channel, about its own setup when it connects and then regularly, and shows the answers in CleverOps. The checks include:
| Check | What it flags |
|---|---|
| Motion detection | Problem when it is switched off in the camera. A camera with motion detection off can never raise anything. |
| Storage | Warning when there is no SD card: events get a photo but no clip. Problem when the card reports a fault. A full card is normal, since it records over the oldest footage. |
| Recording | Warning when storage is fitted but recording is stopped or has an empty schedule. |
| Resolution | Warning when the camera streams far fewer pixels than its sensor can give, for example 1280×720 on a 4 MP camera. |
| Still size | Recorder channels only. The size of the channel's snapshot, which every alarm photo, thumbnail and check of that channel is taken at. Warning when it is smaller than the recorder takes (a factory XVR channel snaps 352×288). Shown as information instead on a recorder whose connection is too slow for a bigger picture, or where CleverCam support has left it smaller on purpose. |
| Clock | CleverCam also sets every device's clock to South African time once a day by itself (five minutes after it connects, then every 24 hours). A camera that keeps its own network time keeps that time. Warning when the camera's clock is out or daylight saving is on. Many Dahua cameras ship on the Beijing time zone with network time off, so the picture overlay and recordings are stamped hours wrong. |
| Detection path | How this camera reports: smart events with a picture, its own smart alarm, or motion only. |
| Firmware | The model and firmware version, for reference. |
Where to see it:
- Camera Edit dialog: a Device health panel lists every check, with what is wrong and how to fix it. It says when the camera was last checked, and notes when it has not been re-checked because the camera may be offline.
- Site Hardware tab: a red ✖ or amber ⚠ badge on the camera's row when it has a problem or a warning.
- Performance & Reports → Sites → Cameras: such cameras are listed even when online, with a Device setup count. See Site Quality: Device setup problems.
Setup puts the settings right
The first check after a camera connects is its setup. CleverCam changes the settings it can on the camera itself, reads each one back to confirm the camera took it, and lists what it did at the bottom of the Device health panel (Setup, date: …). Typically that means: motion detection switched on, the clock set to South African time with network time on and daylight saving off, the main stream raised to the largest size the sensor gives, and recording switched on when an SD card is fitted. A recorder's channels are left as the owner set them, with two exceptions. The first is the channel's snapshot size (the Still size check): at setup CleverCam raises it once to the largest the recorder takes, 960×576 on most XVRs or 704×576 where a recorder will not go higher, reads it back, and lists the outcome under Setup. A recorder that connected before this check existed gets the same once, listed under Last fix. A recorder on a slow connection, or one CleverCam support has set smaller on purpose, is left as it is. The second exception, on cameras and recorders alike, is timed snapshots (next section).
Timed snapshots are switched off
When a camera or recorder connects, and every half hour after that, CleverCam switches off the device's scheduled (timed) snapshots on every channel. Snapshots on motion and on alarm are left as they were.
A Dahua device sends each timed snapshot to CleverCam several times over, whether or not anything happened. On a mobile connection that came to tens of gigabytes a day, and it held up the frames CleverCam takes when something moves. CleverCam's own snapshots do not depend on this schedule.
- Switching timed snapshots back on, on the device, does not last: CleverCam switches them off again within half an hour.
- A device that refuses the change is left as it is and tried again the next day.
- The device's original snapshot schedule is kept, so it can be put back if ever needed.
When a setting is wrong after setup
If a setting is changed back on the camera, or was not something setup could fix, the camera is flagged and the Device health panel says how to put it right:
- Fix on camera (N): shown when CleverCam can make the change remotely (motion detection, clock, resolution, recording, and a recorder channel's snapshot size). One button applies every remotely fixable item. It usually takes under 30 seconds, and the panel shows the outcome under Last fix. If the camera is offline, the fix runs as soon as it reconnects.
- How to fix: the steps to do it by hand on the camera's own web page, under every flagged item. Items CleverCam cannot change remotely, such as fitting an SD card, only have these steps.
A Problem (red ✖, for example motion detection off) means the camera cannot work until it is fixed. The flag clears on the next check after the fix.
What CleverCam sets for you
You do not need to configure detection on the camera. CleverCam pushes these from the camera's settings in CleverAlert or CleverOps, and pushes them again whenever you change them:
- What to detect: people, vehicles, animals. Anything not selected is switched off on the camera. New cameras detect people only. To add vehicles, switch on Vehicle detection in the camera's detection settings in CleverAlert, or in CleverOps open the camera's Edit dialog and set Detection profile to People and vehicles.
- Sensitivity: follows the camera's high-sensitivity setting.
- Snapshot interval: the reference image refreshes on every arm and disarm, and otherwise on the interval you set.
Live view
Live view plays the camera's sub stream over the same connection, so there is nothing to set up. You do not need to switch the camera to H.264 for live view.
Scroll back
A camera with a memory card, or a recorder with a disk, offers Scroll back in CleverAlert and CleverCommand exactly as a camera on a CleverCam hub does: the day's clips listed and drawn on a strip, any clip fetched on request (up to 60 seconds, kept 7 days), and the minute around an event fetched and attached to it. CleverCam's server reads the recordings over the camera's own connection, so there is nothing to set up beyond recording being on (step 5). A camera with privacy areas has them masked on the clip before it leaves the server.
The camera indexes its recordings in its own clock. CleverCam measures the camera's clock against UTC and translates, so every time shown in the apps is the viewer's own even on a camera still on the factory zone (UTC+8). The time stamp burnt into the picture stays in the camera's zone.
The first time a camera is opened the storage is checked, which takes about 20 seconds; after that the answer is kept for a day. A camera with no card says This camera has no memory card, so there is nothing to scroll back; a recorder with no disk says the same of its disk.
Siren, strobe and relays
A verified alarm on an armed camera whose detection routing has Sound siren on (CleverAlert → camera → Detection → High confidence) sounds the site's siren for the site's siren time, as it does on a CleverCam hub. On a Dahua Direct site the siren is the devices themselves:
- A camera connected on its own sounds its speaker and flashes its strobe (TiOC and other active-deterrence models).
- A recorder does the same on every armed camera on it, so a site with two households on one recorder only sounds the armed side. If none of its cameras is armed, for example when the siren is started by hand, every enabled camera on it sounds.
- Both also close the alarm-output relays CleverCam support has named as the siren for that device, which is where an installer wires an external siren or strobe. An output that has not been named is never switched, because an output can drive a gate: ask support to name the output your siren is wired to.
A plain camera with no speaker or light, and no named output, does nothing. Stop siren in CleverAlert, a disarm, or the siren time running out releases them all, and the relays return to the device's own automatic control.
A control room's Talk down (CleverCommand) can sound the siren and flash the light of a camera that reports a speaker and light. Dahua Direct has no audio path, so custom spoken messages are not offered on these cameras.
A camera that sounds on every movement
A TiOC camera can also sound and flash by itself whenever its motion detection fires, armed or not, because the device's own motion settings have its sound, strobe and white light on by default. This is separate from CleverCam's siren, which does not use those settings.
When CleverCam switches motion detection on (at setup or with Fix on camera), it switches those three off on that channel and says so under Last fix. If motion detection was already on, CleverCam leaves them as they are, so a camera that sounds on every movement needs them switched off on the device: Setting → Event → Video Detection → Motion Detection.
What is not available
| Tamper detection | Not supported. These cameras have no blur, darkness, obstruction or scene-change detector to drive. |
| Guard tour | Not supported. These are fixed cameras with no pan or tilt. Use the snapshot interval instead. |
| Talk-down audio | The camera's speaker cannot play a spoken message over this connection. The siren and strobe work (see above). |
Troubleshooting
The camera never appears. Check the Device ID starts with the hub's serial exactly as the picker shows it, that no other camera uses the same Device ID, and that Auto Register is enabled and saved. If the camera has been rejecting logins, wait for the admin lock to clear before trying again. If all of that is right, the camera may be unable to use the server name: check it has a DNS server in its network settings, and if it still does not connect, enter the fallback IP address from the picker instead (see the note under step 3).
The camera shows Needs its login. It connected, but no login is saved on the hub. Save the camera's admin username and password under Device login, and it signs in within a minute.
The camera shows Login refused. It rejected the saved login, and the picker says why. Correct the login under Device login. CleverCam only tries a refused login again when the saved login changes or you click Refresh, so it never locks the camera's account by trying over and over. A camera whose password differs from the others on the hub cannot use the hub's login, so give it the same password.
Events arrive but no clips. Recording is off on the camera. See step 5.
A detection class you turned off still arrives. CleverCam drops it before raising anything, so you will not be alerted. The camera is reconfigured on its next connection.
The camera shows Device Offline. It has stopped connecting. Check its power and internet. When every camera of the hub, or its recorder, has been gone for about 5 minutes, the hub turns Offline and a Hub Offline event is raised on its site. See Offline supervision.
Every camera came back after an internet drop except one or two. Some older firmware that registered by name gives up after a failed lookup during an outage and does not try again until it is rebooted. Enter the fallback IP address from the picker as that camera's server address. It reconnects within seconds and stays reliable.
A camera never raises anything. Open its Edit dialog and read the Device health panel. The usual cause is Motion detection: OFF on the camera. Click Fix on camera, or switch it on in the camera under Event → Video Detection → Motion Detection.
A camera shows "Registered to a camera record that no longer exists". The camera's Device ID was tied to a camera record that has been deleted. Give it a new Device ID from the picker's list, then add it again.
A recorder connected but one camera shows nothing. Open the picker and check which channel that camera sits on, and that the recorder shows Camera connected for it. A camera listed under Cameras no connected device reports names a channel the recorder does not report, or its recorder has not connected since. Remove it and add the right channel. Two cameras on the same channel cannot both be served, and the first one wins.
A recorder camera never raises anything. Motion detection is off for that channel on the recorder, or the camera is disarmed.