2020-04-06 09:06 AM
Hi all,
I have a data streaming firmware and to keep the stream alive I must reset a counter before it reaches a fixed value.
Is there a way to perform this operation with CubeMonitor while monitoring other values?
Thank you
Walter
Solved! Go to Solution.
2020-04-06 11:22 AM
Thanks your your answer. I have modified your flow accordingly, please find attached flow.
Here are the updates done in the flow :
There are plenty of good document to read. The first one is the STM32CubeMonitor wiki available at
https://wiki.st.com/stm32mcu/wiki/STM32CubeMonitor:STM32CubeMonitor_overview. It is updated on regular basis with questions/answer coming from the this forum.
If you want more explanation on node-red framework, there is the node-red website which provides plenty of information from beginner to expert : https://nodered.org/docs/
Hope it answers your question
2020-04-06 09:12 AM
Hi Walter,
Yes it should be possible since your know the counter address.
Indeed as STM32CubeMonitor is able to read but also write some values at various addresses, then you can implement a logic in your flow that reset your counter when a condition is reached.
2020-04-06 09:19 AM
I think that I could use the "trigger" function, but I do not know how to use it
2020-04-06 09:27 AM
Not sure the trigger can fit your needs. Could you please explain a bit more what you want to achieve and share your current flow such so that we can better help you ?
2020-04-06 09:37 AM
The FW works in this way:
1) The host sends the "Start data acquisition" command over USB and that sets a variable to 1 to indicate that the stream is started
2) During the data acquisition the host must send a ping before 6 seconds to avoid that the stream stops, the ping resets a counter that is increased at 400Hz
I must simulate this behavior:
1) set the "start stream" variable to 1
2) reset the counter to zero before it reaches the value 2400
The shared flows does exactly what I said, but I must continuously press the "Write" button on the dashboard to keep the stream alive
2020-04-06 09:46 AM
Thanks will have a look and keep you informed.
2020-04-06 10:19 AM
I have few questions / clarification on your current flow/logic :
2020-04-06 10:43 AM
I'm really new to nodered. Is there a good documentation to read about it that is helpful to better understand Stm32CubeMonitor?
Thank you again for your help
Walter
2020-04-06 11:22 AM
Thanks your your answer. I have modified your flow accordingly, please find attached flow.
Here are the updates done in the flow :
There are plenty of good document to read. The first one is the STM32CubeMonitor wiki available at
https://wiki.st.com/stm32mcu/wiki/STM32CubeMonitor:STM32CubeMonitor_overview. It is updated on regular basis with questions/answer coming from the this forum.
If you want more explanation on node-red framework, there is the node-red website which provides plenty of information from beginner to expert : https://nodered.org/docs/
Hope it answers your question
2020-04-06 11:59 PM
Thank you @Thierry
it works as expected =)