I recently updated my cli tool and now some of my automated onboarding scripts have broken. After updating the CLI tool, when I try to call the particle identify command i get the below error:
Could not get device info, ensure the device is in listening mode: No data returned from serial port for device info
Has anyone come across this or does anyone have any advice on how to troubleshoot further?
Yes, it was changed. In 3.21.0 it wasn't necessary to put the device in listening mode to use particle identify however this caused other issues. In 3.23.5 it was changed to use the old method unless the device is running 6.0.0 or later, in which case it uses the control request method and does not require listening mode.
The only time I've seen that occur is if you are in the process of connecting (blinking green), which sometimes prevents control requests from being handled in a timely fashion. Thus start-listening doesn't take effect immediately. Once the device actually starts blinking dark blue, then the identify works.
If that's not what's happening, I'm not sure what would cause that.
Yes, the latest release notes for the CLI are in the releases section on Github.
Is there an easy way to get the installer for 3.21.0 again? I found a link to old installer files in the documentation but they just returned 404 errors.
It doesn't seem to be a connecting issue, because if I wait for the device to be breathing cyan before particle start listening I still see the same intermittent behavior.
Is my best bet to try and revert the cli tool or to upgrade to 6.1.0 device os?
It would be interesting to know if the problem goes away with the old CLI, because the change that reverted the serial identify behavior should just have changed the code back to the way it was.
6.1.0 should be safe. It's basically 5.8.0 with some additional support for device protection. It should be stable on Gen 3.
There isn't a good way to get older installers for Windows. There is for versions 3.23.0 and later, on the versions page but not for versions prior to that.