Loading…

方法名称: ejx_method_chg_univ_rev

方法ID: 0x4007

方法标签: Chg universal rev

方法描述: Chg universal rev- Change the universal command revision.


  • {
  • long var_id[5];
  • long next_universal_rev;
  • long next_device_rev;
  • long object_universal_rev;
  • int cancel_flg;
  • int i;
  • char status[3];
  • char disp_string1[60];
  • int slen1;
  • slen1 = 60;
  • { _set_all_resp_code(0); _set_device_status(0xFF,0); _set_xmtr_device_status(0xFF,0); _set_xmtr_all_resp_code(0); };
  • _iassign(16385,(0x5255));
  • _iassign(16386,(0x01));
  • send( 188, status );
  • if( status[0] ) {
  • display_response_status( 188, status[0] );
  • process_abort();
  • }
  • send( 188, status );
  • send_command( 187 );
  • if ( _ivar_value(16387) != 1 ) {
  • ACKNOWLEDGE("|en|This function is not supported." );
  • process_abort();
  • }
  • _get_dictionary_string(19726337,(disp_string1),(slen1));
  • ACKNOWLEDGE(disp_string1);
  • ACKNOWLEDGE("|en|Confirm that the configuration tool supports \nnew universal rev.\nAfter the universal rev is changed, \nthe following operations are required.\n 1 Exit the configuration tool.\n 2 Power OFF and ON the device.\n 3 Restart the configuration tool.\n" );
  • _iassign(16385,(0x5255));
  • _iassign(16386,(0x02));
  • send( 188, status );
  • if( status[0] ) {
  • display_response_status( 188, status[0] );
  • process_abort();
  • }
  • send( 188, status );
  • send_command( 187 );


请登录以获得完整内容