Loading…

方法名称: read_sw_version_method

方法ID: 0x4041

方法标签: Software Version

方法描述: Software Version- Displays the software version of device.


  • {
  • char status[3];
  • int sw_ver;
  • int real_ver;
  • int decimal_ver;
  • char sw_ver_text[30];
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • ACKNOWLEDGE("|en|Read Software Version");
  • send(216,status);
  • if(status[0])
  • {
  • display_response_status(216,status[0]);
  • DELAY(3,"|en|Aborting method due to last error.");
  • process_abort();
  • }
  • sw_ver = _ivar_value(16436);
  • real_ver = sw_ver >> 4;
  • switch(real_ver)
  • {
  • case 0x00:
  • sw_ver_text[20] = '0';
  • break;
  • case 0x01:
  • sw_ver_text[20] = '1';
  • break;
  • case 0x02:


请登录以获得完整内容