Cognex Mobile Barcode Network Discovery SDK
SDK for supporting communication with Cognex Barcode Reader devices
CNMEthernetSystemDiscoverer Class Reference

#import <CNMEthernetSystemDiscoverer.h>

Inheritance diagram for CNMEthernetSystemDiscoverer:

Instance Methods

(BOOL) - openWithNetworkInterface:
 Open CogNamer on the specified interface. More...
 
(void) - close
 Close CogNamer.
 
(BOOL) - startDeviceQueryWithDeviceTypeFilter:
 Start system discovering with the optionally spcified device type filter. More...
 
(BOOL) - startDeviceQueryWithDeviceTypeFilter:discoverMisconfigured:
 Start system discovering with the optionally spcified device type filter. More...
 
(void) - sendNetworkConfigurationToMacAddress:username:password:hostName:useDHCP:ipAddress:subNetMask:gateway:dns:domainName:
 Sending IP Assign packet to a selected device.
 
(void) - sendFlashPacketWithMacAddress:
 Flash device at the specified mac address.
 
(void) - sendRestartPacketToIpAddress:withMacAddress:username:password:
 Sends restart packet to the device with the specified IP. More...
 

Class Methods

(CNMEthernetSystemDiscoverer *) + ethernetSystemDiscovererWithDelegate:
 Constructs a system discoverer with the delegate specified as parameter. More...
 

Method Documentation

◆ ethernetSystemDiscovererWithDelegate:

+ (CNMEthernetSystemDiscoverer *) ethernetSystemDiscovererWithDelegate: (id< CNMSystemDiscoveredDelegate >)  delegate

Constructs a system discoverer with the delegate specified as parameter.

Parameters
delegatedelegate to call back when there is anything to report
Returns
system discoverer over ethernet

◆ openWithNetworkInterface:

- (BOOL) openWithNetworkInterface: (NSString *)  interface

Open CogNamer on the specified interface.

Parameters
interfacethe name of the interface, specify nil to listen on all available interfaces
Returns
YES, if UDP port is opened succesfully, NO otherwise

◆ sendRestartPacketToIpAddress:withMacAddress:username:password:

- (void) sendRestartPacketToIpAddress: (NSString *)  ipAddress
withMacAddress: (NSData *)  macaddress
username: (NSString *)  username
password: (NSString *)  password 

Sends restart packet to the device with the specified IP.

Parameters
ipAddressthe device ip address (use nil for full broadcast)
macaddressthe device MAC address
usernameThe username credential
passwordThe password credential

◆ startDeviceQueryWithDeviceTypeFilter:

- (BOOL) startDeviceQueryWithDeviceTypeFilter: (CNMCogNamerDeviceType)  deviceTypeFilter

Start system discovering with the optionally spcified device type filter.

Parameters
deviceTypeFilterfilters the results for the specified device type, pass nil to bypass filter
Returns
YES, if query is started, NO if port is not available

◆ startDeviceQueryWithDeviceTypeFilter:discoverMisconfigured:

- (BOOL) startDeviceQueryWithDeviceTypeFilter: (CNMCogNamerDeviceType)  deviceTypeFilter
discoverMisconfigured: (BOOL)  misconfigured 

Start system discovering with the optionally spcified device type filter.

Parameters
deviceTypeFilterfilters the results for the specified device type, pass nil to bypass filter
misconfigureddiscovers misconfigured devices too
Returns
YES, if query is started, NO if port is not available

The documentation for this class was generated from the following file: