particle-iot / particle-cli

Command Line Interface for Particle Cloud and devices
Apache License 2.0
212 stars 92 forks source link

Feature/replace serial cmds #713

Closed keeramis closed 10 months ago

keeramis commented 10 months ago

TODOs

Description


This PR does the following

  1. Replaces usage of serial commands with control requests
  2. Removes particle setup
  3. Removes particle serial claim
  4. Removes particle device doctor

Serial commands replaced with control requests

The following serial commands are replaced.

  1. m : Device's wifi mac address

    • This command gives the mac address of wifi and ethernet
    • image
  2. i : Device identify

    • Device identity is obtained normally but through control requests
    • image
    • If a cellular device is on an older device-os version which does not support obtaining IMEI through a control requests, a blank is returned
    • image
  3. s: Device inspect

    • A new format for firmware modules is introduced in dvos 5.6.0 which contains extensive info about modules as well as info about assets.
    • image

How to Test

  1. Prepare a device with this branch of device-os https://github.com/particle-iot/device-os/pull/2730

Run the following commands on devices with different platforms

Related Issues / Discussions

https://app.shortcut.com/particle/epic/124394

Device-OS : https://github.com/particle-iot/device-os/pull/2730 Device-os-protobuf : https://github.com/particle-iot/device-os-protobuf/pull/26 Particle-USB : https://github.com/particle-iot/device-os/pull/2730

Completeness