Hello,
I'm working with NUS service and the nRF Toolbox app. I need to send multiple messages from mobile app to DK. How can I do that?. Is there a macro/script example?.
Best regards,
Fernando.
Hello,
I'm working with NUS service and the nRF Toolbox app. I need to send multiple messages from mobile app to DK. How can I do that?. Is there a macro/script example?.
Best regards,
Fernando.
Hello Fernando,
I don't think this is possible using the nRF Toolbox App. However, if you have an Android, it is possible using the nRF Connect App.
Simply select a device and press the Floating Action Button (red circle bottom right). There you will also find a handy tutorial on how to use it.
Here is a blog post with a bit more info if you need it. Let me know if you have any issues with it.
Regards,
Elfving
Thanks Elfving. I was able to record a macro. Now I want to send an echo of the value received in the TX Characteristic, but i don't know how to copy this value. So I'm trying to modify the XML file, here is my code.
<macro name="Response" icon="MAGIC"> <!-- Assert Nordic UART Service--> <assert-service description="Ensure Nordic UART Service" uuid="6e400001-b5a3-f393-e0a9-e50e24dcca9e"> <!-- Assert TX Characteristic--> <assert-characteristic description="Ensure TX Characteristic" uuid="6e400003-b5a3-f393-e0a9-e50e24dcca9e"> <property name="NOTIFY" requirement="MANDATORY" /> </assert-characteristic> <!-- Assert RX Characteristic--> <assert-characteristic description="Ensure RX Characteristic" uuid="6e400002-b5a3-f393-e0a9-e50e24dcca9e"> <property name="WRITE" requirement="MANDATORY" /> </assert-characteristic> </assert-service> <!-- Wait for notification --> <wait-for-notification description="Wait for notification to TX Characteristic" characteristic-uuid="6e400003-b5a3-f393-e0a9-e50e24dcca9e" service-uuid="6e400001-b5a3-f393-e0a9-e50e24dcca9e"> <!-- Assert or not--> </wait-for-notification> <!-- Send and echo of TX Characteristic Value --> <write description="Write echo to RX Characteristic" characteristic-uuid="6e400002-b5a3-f393-e0a9-e50e24dcca9e" service-uuid="6e400001-b5a3-f393-e0a9-e50e24dcca9e" value="9999999999999999999999" type="WRITE_REQUEST" /> </macro>
Hi!
Unfortunately, the macros only allow you to record and reply, they don't allow you to add any logic / conditional operations / reusing values. You can find a better overview over what you can use it for here.
You would have to create this yourself if you need this echo functionality.
Regards,
Elfving
Hi!
Unfortunately, the macros only allow you to record and reply, they don't allow you to add any logic / conditional operations / reusing values. You can find a better overview over what you can use it for here.
You would have to create this yourself if you need this echo functionality.
Regards,
Elfving