Give the NAS device an unique ID and create QR code with it.

Set up an API server with a public server.

Send requests automatically to register the device when NAS access to the Internet.

QR code of the NAS is an URL for request device infomation, it will return after scanning.