Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add battery info #14

Open
pauldeng opened this issue Aug 15, 2023 · 1 comment
Open

Add battery info #14

pauldeng opened this issue Aug 15, 2023 · 1 comment

Comments

@pauldeng
Copy link

Hi repo owner,

Appreciate your hard work.

Would be great if battery info can be added into the payload, so I do not need to guess if it is battery dead or no cellular coverage.

The new payload could be like this:

{
  "Timestamp": 1692091468,
  "Battery": {
    "Percentage": 85,
    "Voltage": 3.7
  },
  "Location": {
    "Altitude": 123.456,
    "Latitude": 234.567,
    "Longitude": 345.678,
    "Accuracy": 1.2,
    "Speed": 23.4,
    "UnixTimeStamp": 1692091468
  },
  "CellQuality": {
    "RSRP": "-97",
    "RSRQ": "-12",
    "RSSI": "-63",
    "SNR": "0"
  },
  "CellInfo": {
    "RxQual": "3",
    "CellID": "192",
    "EARFCN": "9410",
    "PLMN": "50501",
    "Operator": "Telstra Mobile"
  }
}

Cheers,
Paul

@philwareublox
Copy link

This would take a little longer to implement as the XPLR device uses the bq27520 device, and not the bq274xx device which Zephyr already has a simple driver for.

Of course, the XPLR-IoT-1-Software repo has the driver for it, which I could re-use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants