Can I make my own “User Defined Commands” to send from Border Router to the Node.
I prefer to do this without any code modifications. Is this possible?
KCC's Quizzes AQQ306 about a fish stick challenge
1. First the quote of the month: " I am so clever that sometimes I don't understand a single word of what I am saying" - Oscar Wilde
2. New quiz AQQ306 about a fish stick challenge:
Here below is a pseudo fish diagram swimming to the right.
Question
View All
October Monthly Blog Quiz! Read the blog, take the quiz, and you could win a gift card
Finding Your Circuit Chi — EMC Quiz!
Think you know EMC? Test your knowledge with our 5-question quiz!
Read the blog first, then take the challenge: Finding Your Circuit Chi
Every current flowing creates electromagnetic fields.
Strong EMC design
View All
Can I make my own “User Defined Commands” to send from Border Router to the Node.
I prefer to do this without any code modifications. Is this possible?
The Config/Commands tab under monitor and control section can be used to send user defined commands.
4274.6404c1c4056855167e65f4da652700a6.jpg
The ADWSN-UI-Tool is equipped to add your own commands without modifying the code. All you need to do is open an XML schema as outlined below and add/modify the command and start using it.
The list of commands and the default command arguments are populated from OTA_CMDS_6LP.xml which is available in the tool installation directory as shown below:
A sample command structure in the XML file is as shown below. It is straightforward to add user defined commands by observing the syntax carefully.
<CMD>
<Descrp>Turn ON Red LED (EV-ADRN-WSN-1Z BUNCH)</Descrp>
<port>1034</port>
<CMDPARMS>
<ParamType>BYTE</ParamType>
<ParamValue>01</ParamValue> //command ID
</CMDPARMS>
<CMDPARMS>
<ParamType>BYTE</ParamType>
<ParamValue>01</ParamValue> //command args
</CMDPARMS>
</CMD>
...
Let say, you wish to add a new command like "Start the EV Motor", then update the following in the XML file
<CMD>
<Descrp>Turn ON Red LED (Start the EV Motor)</Descrp>
....
Once you save the XML, and open the ADWSN-UI-Tool, you will see this new command in the Config/Commands tab of Monitor And Control window. Hope this helps.