| | |
| | | import java.nio.ByteOrder; |
| | | |
| | | public class FBS9100_DeviceInf { |
| | | public static final int Dev_Type_Nomal = 0; |
| | | public static final int Dev_Type_NiBian = 1; |
| | | public static final int Dev_Type_DummyLoad = 2; |
| | | |
| | | public int devType = Dev_Type_Nomal; |
| | | |
| | | private final int BYTE_LEN = 144; |
| | | |
| | | public int DeviceName; //中文名称 |
| | |
| | | |
| | | for(int n=0; n<BATTGROUP_COUNT; n++) { |
| | | double o_v = FBS9100_ComBase.changeShortToDouble(tmpbuf.getShort())/10; |
| | | if((0x08 == dev_type) || (soft_ver >= 35)) { |
| | | if((FBS9100_DeviceInf.Dev_Type_Nomal == dev_type)) { |
| | | o_v /= 10; |
| | | } |
| | | onlinevol[n] = o_v; |
| | | } |
| | | for(int n=0; n<BATTGROUP_COUNT; n++) { |
| | | double g_v = FBS9100_ComBase.changeShortToDouble(tmpbuf.getShort())/10; |
| | | if((0x08 == dev_type) || (soft_ver >= 35)) { |
| | | if((FBS9100_DeviceInf.Dev_Type_Nomal == dev_type)) { |
| | | g_v /= 10; |
| | | } |
| | | groupvol[n] = g_v; |
| | |
| | | //int last_workState = m_FBS_VCData.m_SysState.WorkState; |
| | | if(true == m_FBS_VCData.m_SysState.putByteBuffer(bf)) |
| | | { |
| | | if(true == m_FBS_VCData.putByteBuffer(bf, 0x08, this.dev_stat_version)) { |
| | | if(true == m_FBS_VCData.putByteBuffer(bf, deviceinf.devType, this.dev_stat_version)) { |
| | | comm_res = true; |
| | | } |
| | | } |
| | |
| | | JPanel panel_updatemode1 = new JPanel();
|
| | | panel_updatemode1.setLayout(new BorderLayout(0, 0));
|
| | |
|
| | | tabbedPane_update.addTab("通用升级", null, panel_updatemode1, null);
|
| | | tabbedPane_update.addTab("南网设备专用升级", null, panel_8, null);
|
| | | tabbedPane_update.addTab("通用升级", new ImageIcon(main_form.class.getResource("/png_32x32/update_ico1.png")), panel_updatemode1, null);
|
| | | tabbedPane_update.addTab("南网设备专用升级", new ImageIcon(main_form.class.getResource("/png_32x32/update_ico2.png")), panel_8, null);
|
| | |
|
| | | JPanel panel_26 = new JPanel();
|
| | | panel_updatemode1.add(panel_26, BorderLayout.NORTH);
|