Hello all,
I have a question concerning the SPINEL_PROP_THREAD_UDP_FORWARD_STREAM property in spinel. I tried to send an udp message using the spinel protocol but it didn't work.
During investigation of this I also debugged the ncp to see what happens but everything looks fine; as far as I can see the message is created correctly.
Is there something else that has to be activated before it is possible to send a udp message?
What I also saw is that one must choose a port that was already allocated because otherwise the message gets dropped immediately.
Is it possible to open/bind a udp socket over Spinel protocol? I didn't find a suitable property.
What I did was:
- send SPINEL_CMD_PROP_VALUE_SET - SPINEL_PROP_NET_IF_UP - true
- send SPINEL_CMD_PROP_VALUE_SET - SPINEL_PROP_MAC_15_4_PANID - 0xABCD
- send SPINEL_CMD_PROP_VALUE_SET - SPINEL_PROP_NET_STACK_UP - true
- send SPINEL_CMD_PROP_VALUE_SET - SPINEL_PROP_THREAD_UDP_FORWARD_STREAM - payload [0x04, 0x00, 0x01, 0x02, 0x03, 0x04 ], remUdpPort [0x00, 0xc0], remIPv6Addr [ 0xFF, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01], localUdpPort [0x00, 0xc0]
Am I doing something wrong?
Or do I have to add a Vendor Specific Property for this kind of stuff?
Thanks, Regards
Armin