Runtime Device OS logging configuration#481
Conversation
|
[ch30129] |
|
From a product perspective here's what I see when I test: When pressing reset or pulling the USB port I get a red message saying I cannot get the feature to work on a Photon, when compiling Device OS from particle-iot/device-os#1748 |
|
I can't figure out how to use |
|
Ah, for the serial not found I see the problem. I use a Photon with this serial echo program as my UART -> USB converter: Maybe just adding another example for Serial1 to show how to select a custom USB port in case the auto-detection doesn't find the right one would be enough? |
|
I'm also not able to get any logs from I get no logs. It opens the same serial port as doing |
monkbroc
left a comment
There was a problem hiding this comment.
👍 to the technical approach on implementing the command. I'll let you work on the improvements based on our conversation earlier and the comments in the PR.
603e5b4 to
0e5fcda
Compare
|
@sergeuz i rebased this branch against latest master. if you have work in-fligth, be sure to |
0e5fcda to
a6aa087
Compare
a6aa087 to
de69249
Compare
|
@monkbroc I fixed the code according to your suggestions and rebased this branch. I had to disable |
I accidentally enabled the new logging requests only on mesh platforms. This is now fixed in particle-iot/device-os#1748 |
de69249 to
15164da
Compare
|
@sergeuz what's the status of this work? are we still waiting for Device OS side updates? |
|
this appears to be orphaned - closing. feel free to re-open when it's actionable 👍 |
|
. |
Note: The feature implemented in this PR relies on a new Device OS functionality that has not been released yet: device-os/#1748.
This PR implements a new command called
logthat allows configuring Device OS logging at runtime. The detailed description of the command can be found in the PRD.Usage:
Serialinterface:Serial1interface:Example output: