Tool/software:
We would like to know what is raw serial command to ping or get version of ot-rcp running on Cc2652P. We don’t want to run otbr-agent to check this when doing production test. Thanks.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
We would like to know what is raw serial command to ping or get version of ot-rcp running on Cc2652P. We don’t want to run otbr-agent to check this when doing production test. Thanks.
Hello Yikai,
By "ping", do you mean:
I can setup an otbr-agent and monitor the RCP UART RX/TX lines.
Will provide an update for that within 5 business days.
Thanks,
Toby
For some reason I don't see any UART activity when I run "rcp version".
It seems this value is being cached somehow to reduce overall serial traffic.
Attached is the UART capture between OTBR and RCP (OTBR is running on RPi).
One of those transactions may be handling the "rcp version" command.
Do you have an OTBR setup, and if yes, can you observe the same thing when you try to run "rcp version" between your OTBR and RCP?
Alternatively could make sense to look into how the RCP RX side (to see how it handles commands sent).
Agreed, it is a bit tricky... appreciate the patience.
I'm checking with someone internally if they can help.
Will update within 5 business days.
Hi Yikai,
I investigated further.
It seems default otbr will cache some info at the start, so not every "version" will cause a serial transaction.
So I tried a test script, pyspinel: https://github.com/openthread/pyspinel
Using this, I was able to capture the "version" command well, and parsing the RCP TX line, I could see the exact same info printed by the host.
After pyspinel README set, I set interface to the RCP like this: " spinel-cli.py -u "/dev/ttyACM0" -n 1"
Logic analyzer shot with parsed signals:
2577.pyspinel_version_parsed.sal
RCP UART RX (sent from host):
Setting for UART parsing in the logic analyzer:
Output from the host side (pyspinel):
Thanks,
Toby