43 int main(
int argc,
char** argv)
45 if (argc != 2 || !strcmp(argv[1],
"--help")) {
46 fprintf(stderr,
"Usage: %s <camera URL>\n", argv[0]);
47 fprintf(stderr,
"Sends the camera a PacketReconfigureFPGA packet.\n");
48 fprintf(stderr,
"Note: Currently reconfigure_cam and reset_cam have the same effect.\n");
49 fprintf(stderr,
"In future versions reset_cam may reset the camera without reconfiguring\n");
50 fprintf(stderr,
"the FPGA.\n");
53 char* camera_url = argv[1];
62 fprintf(stderr,
"Matching URL %s : %s\n", camera_url, errmsg);
70 fprintf(stderr,
"Unable to create ARP entry (are you root?), continuing anyway\n");
72 fprintf(stderr,
"IP address configuration failed\n");
78 fprintf(stderr,
"Could not communicate with camera after configuring IP. Is ARP set? Is %s accessible from %s?\n", camera.
ip_str, camera.
ifName);
83 fprintf(stderr,
"Error sending ReconfigureFPGA to camera.\n");
87 fprintf(stderr,
"Success!\n");
#define TRIG_STATE_INTERNAL
int wge100Configure(IpCamList *camInfo, const char *ipAddress, unsigned wait_us)
#define ERR_CONFIG_ARPFAIL
int wge100FindByUrl(const char *url, IpCamList *camera, unsigned wait_us, const char **errmsg)
int wge100TriggerControl(const IpCamList *camInfo, uint32_t triggerType)
int wge100ReconfigureFPGA(IpCamList *camInfo)