This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

sending ip packet from thread device to ble device ?

is it possible to send ip packet form thread device with destination of non-thread device like ble (i gave ble device hardcoded ip) without border router ?

if yes i want to know how as when i put destination ip of thread packet of non-thread device , i got error from function otip6send.

  • Thread is designed to do efficient routing within the mesh as well as to and from border routers for connections to the internet. Obviously, if you have other IP interfaces (multi protocol networking on a low energy device), the Openthread stack would not know about them so you cannot use that API and hope that magically it will choose Bluetooth to route your packet. So the answer is NO with respect to what is possible right now.

    On the other hand, I do not even think that unified routing with multiple protocols is a desirable feature for low energy devices. Linux is the right place for that. A border router can have a Thread interface, a bluetooth mesh interface, as well as some other interfaces (Ethernet, Wifi, 3g, ...) and it can do address based packet forwarding.

    If your concern is latency for the communication between end devices, I think they should be in the same mesh network. Otherwise, there are good reasons to keep those networks apart and join them on the level of a border router.

    Hardcoding IP addresses also does not sound like a good idea. Instead, to make low energy devices communicate directly, they should register at some server and obtain the IP address of their peers from that server.

  • thanks for your explanation.

    i have another question about how i could control from the code the devices that could enter my thread network ?

    if there's a way that i can set password to my thread network ?

  • Search for "Thread commissioning", try to understand more about it. Be aware that commissioning is not easy to setup. While the concept is nice, there is not really any app except an android demo app out there and that one is buggy and quite limited.

    https://openthread.io/guides/build/commissioning

    https://openthread.io/guides/border-router/external-commissioning

Related