Loading…

方法名称: master_reset

方法ID: 0x400B

方法标签: Master reset

方法描述: 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)
  • {


请登录以获得完整内容