Reads device descriptor from binary, uses sample enumeration

Parses this: https://github.com/pioneers/tenshi/blob/master/doc/smartdevice.txt so that the type of channel is described.