15 #ifndef VISIONTRANSFER_INTERNALINFORMATION_H
16 #define VISIONTRANSFER_INTERNALINFORMATION_H
18 namespace visiontransfer {
25 struct InternalInformation {
27 struct DiscoveryMessageBasic {
28 unsigned char protocolVersion;
31 char firmwareVersion[14];
33 struct DiscoveryMessageWithStatus:
public DiscoveryMessageBasic {
36 unsigned int jumboSize;
37 char currentCaptureSource[8];
39 struct DiscoveryMessageExtensibleV0:
public DiscoveryMessageWithStatus {
41 unsigned char discoveryExtensionVersion;
43 struct DiscoveryMessageExtensibleV1:
public DiscoveryMessageExtensibleV0 {
44 char serialNumber[32];
47 struct DiscoveryMessage:
public DiscoveryMessageExtensibleV1 {
51 static const char DISCOVERY_BROADCAST_MSG_LEGACY[16];
52 static const char DISCOVERY_BROADCAST_MSG[25];
54 static constexpr
int DISCOVERY_BROADCAST_PORT = 7680;
55 static constexpr
int IMAGEDATA_PORT = 7681;
56 static constexpr
int WEBSOCKET_PORT = 7682;
57 static constexpr
int PARAMETER_PORT = 7683;
58 static constexpr
int DATACHANNELSERVICE_PORT = 7684;
59 static constexpr
int PARAMETER_WEBSOCKET_PORT = 7685;
61 static constexpr
unsigned char CURRENT_PROTOCOL_VERSION = 0x06;
62 static constexpr
unsigned char CURRENT_PARAMETER_PROTOCOL_VERSION_MAJOR = 0x07;
63 static constexpr
unsigned char CURRENT_PARAMETER_PROTOCOL_VERSION_MINOR = 0x02;
65 static constexpr
unsigned char CURRENT_DISCOVERY_EXTENSION_VERSION = 0x01;