I unfortunately don't have any specification, I even think that there won't be sent any information about the server during the connection establishment. I solved it by commiting type-specific commands and requested the answers that I get from the device.
e.g.
e.g.
bool flag = false;
writer.WriteLine("root");
while (stream.Length == 0)
{
Thread.Sleep(500);
}
line = reader.ReadLine();
while (line != null)
{
if (line.Contains("unknown keyword"))
{
flag = true;
break;
}
textBox1.Text += "\r\n" + line;
line = reader.ReadLine();
}
if (flag == true)
{
textBox1.Text += "\r\nThis device is a SSG-30M\r\n";
}
else
{
textBox1.Text += "\r\nThis is another device\r\n";
}