Loading…
Loading…
方法名称: method_serial_number
方法ID: 0x40F0
方法标签: Read Device S/N
方法描述: Read device and terminal board serial number.
- {
- char status[3];
- long ids[1];
- int nDevId;
- int nYear;
- int nWeek;
- int nProduct;
- int nSerialNumber;
- int nTerminalNumber;
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- nDevId = _ivar_value(161);
- nYear = ((nDevId & 0xFC0000) >> 18) * 1000000;
- nWeek = ((nDevId & 0x03F000) >> 12) * 10000;
- nProduct = nDevId & 0x000FFF;
请登录以获得完整内容