Loading…

Method Name: master_reset

Method ID: 0x400B

Method Label: Master reset

Method Help: Resets the AS800 electronics.


  • {
  • int number_of_tries;
  • int control;
  • char status[3];
  • char xmtr_status[25];
  • char disp_string1[60];
  • int slen1;
  • long ids[2];
  • slen1 = 60;
  • number_of_tries = 0;
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_comm_status(0xFF,0);
  • _set_comm_status(127,0);
  • _set_xmtr_comm_status(0xFF,0);
  • _set_xmtr_comm_status(127,0);
  • _set_no_device(2);
  • _set_xmtr_no_device(2);
  • SET_NUMBER_OF_RETRIES(10);
  • do {
  • send(42,status);
  • }
  • while (status[0] == 32);
  • SET_NUMBER_OF_RETRIES(0);
  • if (status[0] == 7)
  • {


Please login for more