ARMmbed / mbed-os-example-mesh-minimal

Simplest Mesh capable test application for mbed OS
Apache License 2.0
38 stars 42 forks source link

Connection failed #9

Closed maclobdell closed 8 years ago

maclobdell commented 8 years ago

tested with K64F and Atmel RF shield. mbed-os-example-client (6lowpan & thread) works on my same board and wireless network setup.

Result: Connecting... Connection failed!

mbed ls mbed-os-example-mesh-minimal (ff01e1e96411) |- atmel-rf-driver (a16a4ed6f6e8) `- mbed-os (36468c9acbfe)

MarceloSalazar commented 8 years ago

@hasnainvirk could you please have a look?

hasnainvirk commented 8 years ago

@maclobdell This information isn't helping me much.

  1. What channel were you using ?
  2. What type of Border Router you were trying to connect to ?
  3. WHat kind of mesh network you had selected ? Was your border router also using the same mesh config ?

Please share your mbed_app.json

maclobdell commented 8 years ago

@hasnainvirk we are using the 6lowpan border router gateway specified at https://github.com/ARMmbed/mbed-os-example-client#mbed-gateway. We have not changed any channel settings so it is the default. This example is 6lowpan only, so we just used 6lowpan for both this example app and the border router. below is the mbed_app.json. no changes were made.

The exact same boarder router and K64F+Atmel shield were tested with mbed-os-client-example with MESH_LOWPAN_ND network interface selected. it was working fine.

{
    "target_overrides": {
        "*": {
            "target.features_add": ["IPV6", "COMMON_PAL"],
            "mbed-mesh-api.6lowpan-nd-channel": 15,
            "mbed-mesh-api.6lowpan-nd-channel-mask": "(1<<15)"
        }
    }
}
hasnainvirk commented 8 years ago

@maclobdell The default channel set in Gateway Binary available in the repo (GW_Binaries folder) is 12. Please change like this:

"mbed-mesh-api.6lowpan-nd-channel": 12, "mbed-mesh-api.6lowpan-nd-channel-mask": "(1<<12)"

MarceloSalazar commented 8 years ago

@hasnainvirk It would make sense to change the default settings on this example, so it matches with the GW binary. E.g lines: https://github.com/ARMmbed/mbed-os-example-mesh-minimal/blob/mbed-os-5.1.0-rc4/mbed_app.json#L5 https://github.com/ARMmbed/mbed-os-example-mesh-minimal/blob/mbed-os-5.1.0-rc4/mbed_app.json#L6

hasnainvirk commented 8 years ago

@MarceloSalazar Ofcourse. You are right. That makes sense. I will update it

maclobdell commented 8 years ago

I tested the fix in https://github.com/ARMmbed/mbed-os-example-mesh-minimal/pull/11#event-741182225 and it works for me. This issue can be closed.