Searching for S-Link codes for Sony equipment using CDJ

Even if you don't use its jukebox capabilities, CDJ is very useful for determining the codes of new S-Link devices. None of this would be necessary if Sony provided the S-Link commands and responses for their equipment, but unfortunately they don't. The process of creating a new set of device files can be broken down as follows:

Identifying the ID code of the device
Searching for the commands
Creating the device files