Hi everyone!
I'm really new to the openthread world, so I'm having some troubles with the openthread command line
currently I am working in a mqtt-sn and openthread project using a nrf52840 dongle and DK.
What I'm trying to do right now is to send udp message via openthread CLI to simply search for the gateway, because i don't want the mqttsn client to stay at the nrf dongle, but in a stm uC so I'm trying to
interface both with CLI.
the UDP sent in hex should look like this:
03 01 01
and the border router should respond something like this:
03 02 XX << where XX is the GW ID.
those are the basic commands to join the thread and send a udp message:
panid 0xabcd
channel 15
ifconfig up
thread start
udp open
udp bind :: 0xabcd
udp send fd03::1 0xabcd 311
but when i send this mesage with the CLI the borderrouter interprets those 311 as ascii characters 33 31 31
and since i cannot format the message.... i'm stuck
ah! almost forgot to mention... looks like the library files for the cli code are encrypted (they are .a files), so I can't do much there...
finally my question is:
- How am i supposed to send hex values with this CLI?
- Is there another way to interface with openthread besides CLI? (using nrf52840 dongle if possible ;D)
Thanks for all the help you can send :D