Loading…
Loading…
Method Name: method_serial_number
Method ID: 0x40F0
Method Label: Read Device S/N
Method Help: 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;
Please login for more