CMSV6Help Center
/
839 DOCS · 213 VIDEOS中文

API-Obtain Device Status (GPS Status) Negative Return Value Parsing Description

Author 谢周轩Updated 2025-10-14 16:35:05Doc ID 236376 words · 1 min readView original ↗

1. function description

API- Obtain Device Status (GPS Status) Negative Return Value Parsing Description

2. analysis description

  • Badecimal conversion:
    Negative decimal conversion to binary, the original code to get the inverse code, on the basis of the inverse code, plus 1 to get the complement, that is, the final result

  • Conversion process:
    Assume S1 returns:- 2147469949
    Original code: 01111111111111111100101001111101
    Inverse code: 10000000000000000011010110000010
    complement: 10000000000000000011010110000011 **(final result) **

  • Parse example:
    Bit 0 is calculated from the right

Source help.cmsv7.com
839 documents · 213 videos · docs.alwaycare.com