Code Monkey home page Code Monkey logo

Comments (17)

L1amaGod avatar L1amaGod commented on July 3, 2024 2

openthread_cli_tcat.zip
@canisLupus1313 OK, I have uploaded my firmware. Please have a look. And I also tried to change the name to "Thread BLE" , but the problem still exists.

from ot-nrf528xx.

L1amaGod avatar L1amaGod commented on July 3, 2024

It looks like that it has not been implemented yet.

from ot-nrf528xx.

canisLupus1313 avatar canisLupus1313 commented on July 3, 2024

@L1amaGod Currently the only platform that has the TCAT functionality implemented fully is NCS please refer to https://github.com/nrfconnect/sdk-nrf .

from ot-nrf528xx.

L1amaGod avatar L1amaGod commented on July 3, 2024

@L1amaGod Currently the only platform that has the TCAT functionality implemented fully is NCS please refer to https://github.com/nrfconnect/sdk-nrf .

@canisLupus1313 But I can not update to the newest sdk version which includes TCAT features. I typed west update to update my ncs, but it could only update to "ncs-zephry: v3.4.99-ncs1-1" which didn't have TCAT features.

image

How can I update to the newest version?

from ot-nrf528xx.

canisLupus1313 avatar canisLupus1313 commented on July 3, 2024

@L1amaGod try initialising the west work space from nrf repo
west init -m https://github.com/nrfconnect/sdk-nrf
Then do west update and build the cli sample with:
west build -b nrf52840dk_nrf52840 nrf/samples/openthread/cli/ -p always -S="tcat"

from ot-nrf528xx.

L1amaGod avatar L1amaGod commented on July 3, 2024

@L1amaGod try initialising the west work space from nrf repo west init -m https://github.com/nrfconnect/sdk-nrf Then do west update and build the cli sample with: west build -b nrf52840dk_nrf52840 nrf/samples/openthread/cli/ -p always -S="tcat"

@canisLupus1313 Thank you so much! It works. And then could you teach me how can I make my OTBR commission to this ble_tcat thread device by using this ble_tcat feature?

from ot-nrf528xx.

canisLupus1313 avatar canisLupus1313 commented on July 3, 2024

@L1amaGod On the DK yu should invoke ot tcat start via cli.
And use TCAT commissioner currently we are working on options to deliver but You can look at:

https://github.com/pjasinski990/bbtc
or
https://github.com/arnulfrupp/TcatClient

from ot-nrf528xx.

L1amaGod avatar L1amaGod commented on July 3, 2024

@canisLupus1313 Thank you!So based on current github code, is it possiable for me to do a test about connecting to a tcat device? Because I tried to install bbtc and connected to a tcat device. I succeed in scanning device but failed in connecting. What's wrong with it?
image

from ot-nrf528xx.

canisLupus1313 avatar canisLupus1313 commented on July 3, 2024

@L1amaGod Have you changed the provided certificates? Or anything in the code?

Enter 'help' to see available commands or 'exit' to exit the application.
> scan
Found devices:

1: Thread BLE - E4:08:FD:3E:97:1E

Select the target number to connect to it.
> 1
Selected  E4:08:FD:3E:97:1E: Thread BLE
Connecting to E4:08:FD:3E:97:1E: Thread BLE
Setting up secure channel...

In my original one I can also spot that BLE device is named differently Thread BLE vs NCS DUT.

from ot-nrf528xx.

L1amaGod avatar L1amaGod commented on July 3, 2024

@canisLupus1313 No, I have not changed the provided certificates. The only thing I changed is name = "bbtc client" in file pyproject.toml.
Because I failed in poetry install at the begining. The logs is like below:
image

Then I changed name = "bbtc client" to name = "bbtc" in file pyproject.toml, and it looked installing successfully.
image
So, is that the reason I can not connect device? Or did I forget to do something neccessary, I just run poetry install and then poetry run python3 bbtc.py --scan.

from ot-nrf528xx.

canisLupus1313 avatar canisLupus1313 commented on July 3, 2024

@L1amaGod I was asking about the firmware that you have. Since name of the device is changed there.
And the default certificated are compiled into the device.

from ot-nrf528xx.

canisLupus1313 avatar canisLupus1313 commented on July 3, 2024

@L1amaGod
zephyr.hex.zip
Please try this firmware.
And Can You upload your .config file from zephyr build repo?

from ot-nrf528xx.

L1amaGod avatar L1amaGod commented on July 3, 2024

@L1amaGod zephyr.hex.zip Please try this firmware. And Can You upload your .config file from zephyr build repo?

Of course.

## ../nrf/samples/openthread/cli/prj.conf

#
# Copyright (c) 2020 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Network shell
CONFIG_SHELL=y
CONFIG_OPENTHREAD_SHELL=y
CONFIG_SHELL_ARGC_MAX=26
CONFIG_SHELL_CMD_BUFF_SIZE=416

# Enable OpenThread features set
CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER=y

CONFIG_NET_L2_OPENTHREAD=y

# Generic networking options
CONFIG_NETWORKING=y

CONFIG_MBEDTLS_SHA1_C=n
CONFIG_FPU=y

CONFIG_GPIO_SHELL=y

#Added
CONFIG_OPENTHREAD_BLE_TCAT=y
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2144
CONFIG_BT=y
CONFIG_BT_HCI=y
CONFIG_BT_SHELL=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME="NCS DUT"
CONFIG_BT_DEVICE_APPEARANCE=833

from ot-nrf528xx.

L1amaGod avatar L1amaGod commented on July 3, 2024

@canisLupus1313 Maybe I found the reason. I used to build cli project with west build -b nrf52840dk_nrf52840 after I modified file prj.conf, but it failed in tcat connection.
Now I build project with west build -b nrf52840dk_nrf52840 nrf/samples/openthread/cli/ -p always -S="tcat" as you said without modifying file prj.conf, and now it works normally.
So, if I want to build project with normal command west build -b nrf52840dk_nrf52840, how should I modify the conf file prj.conf?

from ot-nrf528xx.

canisLupus1313 avatar canisLupus1313 commented on July 3, 2024

@L1amaGod
Good reference would be reading about snippets https://docs.zephyrproject.org/latest/build/snippets/index.html

The one that is actually enabling the TCAT is https://github.com/nrfconnect/sdk-nrf/blob/main/samples/openthread/cli/snippets/tcat/

from ot-nrf528xx.

canisLupus1313 avatar canisLupus1313 commented on July 3, 2024

@L1amaGod have You had a chance to read the above docs? do You have any more questions?

from ot-nrf528xx.

jwhui avatar jwhui commented on July 3, 2024

Closing stale issue.

from ot-nrf528xx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.