+ struct dev_context *devc;
+ struct sr_dev_inst *sdi;
+ struct sr_scpi_hw_info *hw_info;
+ const struct scpi_command *cmdset = fluke_45_cmdset;
+ unsigned int i;
+ const struct fluke_scpi_dmm_model *model = NULL;
+ gchar *channel_name;
+#if ECHO_TEST
+ char *response;
+#endif
+
+#if ECHO_TEST
+ /* Test for serial port ECHO enabled. */
+ response = NULL;
+ sr_scpi_get_string(scpi, "ECHO-TEST", &response);
+ if (response && strcmp(response, "ECHO-TEST") == 0) {
+ sr_err("Serial port ECHO is ON. Please turn it OFF!");
+ g_free(response);
+ return NULL;
+ }
+ g_free(response);
+#endif
+
+ /* Get device IDN. */
+ if (sr_scpi_get_hw_id(scpi, &hw_info) != SR_OK) {
+ sr_scpi_hw_info_free(hw_info);
+ sr_info("Couldn't get IDN response, retrying.");
+ sr_scpi_close(scpi);
+ sr_scpi_open(scpi);
+ if (sr_scpi_get_hw_id(scpi, &hw_info) != SR_OK) {
+ sr_scpi_hw_info_free(hw_info);
+ sr_info("Couldn't get IDN response.");
+ return NULL;
+ }
+ }