Class GatewayMgmt


  • public class GatewayMgmt
    extends BaseOpenMessage
    Author:
    M. Valla - Initial contribution
    • Constructor Detail

      • GatewayMgmt

        protected GatewayMgmt​(String value)
    • Method Detail

      • requestSupervisor

        public static GatewayMgmt requestSupervisor()
        OpenWebNet message request for supervisor mode *13*66*##.
        Returns:
        GatewayMgmt message
      • requestKeepConnect

        public static GatewayMgmt requestKeepConnect()
        OpenWebNet message request keep connect *13*60*##.
        Returns:
        GatewayMgmt message
      • requestMACAddress

        public static GatewayMgmt requestMACAddress()
        OpenWebNet message request for gateway MAC address *#13**12##.
        Returns:
        GatewayMgmt message
      • parseMACAddress

        public static byte[] parseMACAddress​(GatewayMgmt msg)
                                      throws FrameException
        Parse MAC address in the OWN message and return values in byte[]
        Parameters:
        msg - the message to parse
        Returns:
        byte[] MAC address values
        Throws:
        FrameException - in case of error in frame
      • requestModel

        public static GatewayMgmt requestModel()
        OpenWebNet message request for gateway model *#13**15##.
        Returns:
        GatewayMgmt message
      • requestFirmwareVersion

        public static GatewayMgmt requestFirmwareVersion()
        OpenWebNet message request for gateway firmware version *#13**16##.
        Returns:
        GatewayMgmt message
      • requestScanNetwork

        public static GatewayMgmt requestScanNetwork()
        OpenWebNet message request to scan network *13*65*##.
        Returns:
        GatewayMgmt message
      • requestProductInfo

        public static GatewayMgmt requestProductInfo​(int index)
        OpenWebNet message request for product information *#13**66*index##.

        NOTE Due to a bug in the USB gateway, request product info message must use * to separate index instead of #: *#13**66*index## instead of *#13**66#index## as documented in OpenWebNet specs.

        Parameters:
        index - The index of the product inside the gateway products database as returned from network scan. Index starts at 0.
        Returns:
        GatewayMgmt message