2020-03-31 06:50 AM
Hi I am trying to use the Write Panel Mode in my flow to inject values into my target device (via the STM link).
I have setup the Write Panel Node (following the nodes instructions) and the Node works as expected, whereby I can enter values into the variable spaces on the dashboard and when I hit the 'write' key it send it to my target and updates the values.
What I wanted to know, is there a way to programatically trigger the 'Write' from the node red flow instead of using the dashboard button??
This is my example flow.
The 'inject vals' node is a basic node red 'inject' node. I was hoping to use this node to write values into the 'Write panel' node and get it tp send the values to the target without havind to press the 'write' button on the bashboard.
Any help is appreciated
Cheers
Michael
Solved! Go to Solution.
2020-03-31 07:03 AM
Dear Michael,
To write data by flow, the following payload must be sent to probe out node ,with the topic “write�? :
{
"variablelist": [
{
"address": "0x20000060",
"type": 4,
"value": "xxxx"
}
],
"accesspoint": 0
}
You can find detailed explanations in this thread :
If you need more support , please come back to me .
Landry
2020-03-31 07:03 AM
Dear Michael,
To write data by flow, the following payload must be sent to probe out node ,with the topic “write�? :
{
"variablelist": [
{
"address": "0x20000060",
"type": 4,
"value": "xxxx"
}
],
"accesspoint": 0
}
You can find detailed explanations in this thread :
If you need more support , please come back to me .
Landry
2020-03-31 07:42 AM
Hi Landry
Yes thats just the ticket :thumbs_up:
Thanks for your support buddy
Just a couple of questions:
Will there be new nodes added to the interface soon?
Can I control the ethernet port on my target board through node red (I take it I would read/write into to the relevant registers associated with the ethernet port?)
Cheers
Michael
2020-04-02 07:26 AM
Hello Michael
New nodes could be added in future releases, but you can already add existing community nodes to make your own flows.
It is possible to write directly in the hardware registers of the STM32. i.e., you can easily control a led by writing in the GPIOx BSRR register.
The control of Ethernet port by accessing the registers through SWD may be possible, but seems to be complex. I don't know what is your goal, but it may be easier for your application to use the embedded software to control the Ethernet.
Best regards
Stephane