-
Notifications
You must be signed in to change notification settings - Fork 0
/
stb_identification_data.c
89 lines (74 loc) · 1.64 KB
/
stb_identification_data.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#include "stb_identification_data.h"
#include <sstream>
#include <stido.h>
create_Stb_identification_data()
{
fetch_data();
}
destroy_Stb_identification_data()
{
}
void fetch_data()
{
get_data data;
data.set_method(SERIAL_NUMBER);
serial_number = data.get_method_value_by_array(30);
data.set_method(NAGRA_SERIAL_NUMBER);
nagra_serial_number = data.get_method_value_by_array(30);
data.set_method(MODEL);
model = data.get_method_value_by_string();
data.set_method(STB_MAC_ADDRESS);
stb_mac_address = data.get_method_value_by_array(20);
data.set_method(ETHERNET_MAC_ADDRESS);
ethernet_mac_address = data.get_method_value_by_array(20);
data.set_method(FIRMWARE_VERSION);
firmware_version = data.get_method_value_by_array(40);
data.set_method(STB_MANUFACTURING_DATE);
stb_manufacturing_date = data.get_method_value_by_string();
data.set_method(HARDWARE_VERSION);
hardware_version = data.get_method_value_by_array(10);
data.set_method(NETWORK_ID);
network_id = data.get_method_value_by_array(50);
data.set_method(MANUFACTURER);
manufacturer = data.get_method_value_by_array(26);
}
char* get_serial_number()
{
return serial_number;
}
char* get_nagra_serial_number()
{
return nagra_serial_number;
}
char* get_model()
{
return model;
}
char* get_stb_mac_address()
{
return stb_mac_address;
}
char* get_ethernet_mac_address()
{
return ethernet_mac_address;
}
char* get_firmware_version()
{
return firmware_version;
}
char* get_stb_manufacturing_date()
{
return stb_manufacturing_date;
}
char* get_hardware_version()
{
return hardware_version;
}
char* get_network_id()
{
return network_id;
}
char* get_manufacturer()
{
return manufacturer;
}