Spaces:
Runtime error
Runtime error
|
Download docs/DEVICE_REGISTRATION_PROCESS.md from Atomio/hikvision-isup: direct link, hf CLI and curl.
- Browser
- Download file 4.15 kB
-
https://huggingface.co/spaces/Atomio/hikvision-isup/resolve/main/docs/DEVICE_REGISTRATION_PROCESS.md
- Command line
-
hf download hf://spaces/Atomio/hikvision-isup/docs/DEVICE_REGISTRATION_PROCESS.md
-
curl -L -o DEVICE_REGISTRATION_PROCESS.md https://huggingface.co/spaces/Atomio/hikvision-isup/resolve/main/docs/DEVICE_REGISTRATION_PROCESS.md
4.15 kB
Hikvision Device Registration Process
Based on the ISUP SDK documentation, here's how Hikvision devices should register with your server:
Registration Flow Overview
According to the documentation, the device registration follows this sequence:
- Device connects to your ISUP server (TCP port 7660)
- Device sends REGISTER_REQ (0x01) with device information
- Server responds with REGISTER_RSP (0x81) - success/failure
- Authentication phase (if required):
- Device sends AUTH_REQ (0x03) with credentials
- Server responds with AUTH_RSP (0x83)
- Session key exchange (for ISUP 5.0):
- Device sends SESSIONKEY_REQ (0x04)
- Server responds with SESSIONKEY_RSP (0x84)
- Heartbeat maintenance:
- Device sends periodic HEARTBEAT_REQ (0x02)
- Server responds with HEARTBEAT_RSP (0x82)
Device Configuration Requirements
On the Hikvision Device:
Enable ISUP Protocol:
- Go to Configuration → Network → Advanced Settings → Platform
- Select "ISUP" from platform access mode
- Check "Enable"
Set ISUP Version:
- Choose "5.0" for ISUP 5.0 protocol
- This requires setting an ISUP key (8-32 characters)
Configure Server Settings:
- Server IP: Your server's IP address
- Port: 7660 (your ISUP server port)
- Device ID: Unique identifier for the device
- ISUP Key: Authentication key (for ISUP 5.0)
Example Device Settings:
ISUP Version: 5.0
Server IP: your-server-ip
Port: 7660
Device ID: 255
ISUP Key: hikvision123
Registration Message Format
REGISTER_REQ (0x01) Structure:
ISUP Header (20 bytes):
- Version: 0x50 (ISUP 5.0)
- Message Type: 0x01 (REGISTER_REQ)
- Sequence: 2 bytes
- Device ID Length: 1 byte
- Device ID: 32 bytes (padded)
- Data Length: 2 bytes
- Reserved: 2 bytes
Registration Data:
- Serial Number
- Device Type
- Firmware Version
- MAC Address
- Capabilities
- Other device-specific information
Troubleshooting Connection Issues
1. Check Network Connectivity
# Test if device can reach your server
ping your-server-ip
# Test if port is accessible
telnet your-server-ip 7660
2. Verify Server Configuration
- Ensure ISUP server is running on port 7660
- Check firewall settings
- Verify server logs for connection attempts
3. Device Configuration Checklist
- ISUP protocol enabled
- Correct server IP and port
- Valid device ID set
- ISUP key configured (for v5.0)
- Network connectivity working
4. Common Issues
Device not connecting:
- Check network connectivity
- Verify server IP/port settings
- Ensure ISUP is enabled on device
Connection established but no registration:
- Check ISUP version compatibility
- Verify device ID format
- Check authentication credentials
Registration fails:
- Verify device is in authorized devices list
- Check ISUP key matches
- Review server logs for error details
Debug Information
Your enhanced server now logs:
- Connection Attempts: All TCP connections to port 7660
- Registration Attempts: Device registration requests with details
- Raw ISUP Messages: All protocol messages with hex data
Access the debug information at: http://your-server/debug
Expected Device Behavior
When properly configured, a Hikvision device should:
- Establish TCP connection to your server
- Send registration request within seconds of connection
- Maintain heartbeat every 30-60 seconds
- Send events (access control, alarms) as they occur
- Respond to commands sent from server
Next Steps
- Configure your device with the correct ISUP settings
- Monitor the Debug tab to see if connection attempts are being made
- Check registration attempts to see if device is sending proper data
- Review raw messages to understand what the device is actually sending
If you see connection attempts but no registration, the device may be:
- Using a different ISUP version
- Sending malformed registration data
- Using different authentication method
The debug logging will help identify exactly what's happening!