Skip to content
Claus Näveke edited this page Dec 1, 2023 · 2 revisions

The PC AutoBackup mode is used to automatically copy images from the camera over Wifi to a local Windows/Mac computer.

The camera is first announcing itself by sending UDP broadcast frames to 255.255.255.255.5681:

NX_REMOTE|0.9|NX300|1.45|a0:21:95:**:**:**|\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00

The UDP payload format is apparently:

  • NX_REMOTE
  • protocol version (0.9)
  • camera model (NX300)
  • camera firmware version (1.45)
  • MAC address of the camera
  • a bunch of NULs to get to 64 bytes

Meanwhile, PC AutoBackup is advertising itself as a UPNP media server via SSDP:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age = 1800
EXT:
LOCATION: http://192.168.0.108:52235/DMS/SamsungDmsDesc.xml
SERVER: MS-Windows/XP UPnP/1.0 PROTOTYPE/1.0
ST: urn:schemas-upnp-org:device:MediaServer:1
USN: uuid:4a682b0b-0361-dbae-6155-eb5163ae01ca::urn:schemas-upnp-org:device:MediaServer:1
Content-Length: 0

The UPNP API is queried by the camera (with User-Agent Samsung User-Agent DLNADOC/1.50 to pass "authentication"):

  1. /DMS/SamsungDmsDesc.xml
  2. /DMS/ContentDirectory1.xml
  3. /DMS/ConnectionManager1.xml

Then, the camera issues a long series of API calls to configure the auto-shutdown and to upload all pictures.

There is also a open source Python implementation available: https://github.com/warwickh/pc-autobackup

Clone this wiki locally