Giter Club home page Giter Club logo

Comments (8)

tim-ist avatar tim-ist commented on June 12, 2024 1

Hi, you should write only one of the addresses to the dst and flash both the devices with the same code!

So, write, for example:
linkaddr_t dst = {{0xd4, 0x1f}}

Flash both the devices and you'll see that device 0x16AE will start ranging with 0xD41F.
Let us know how it goes!

from contiki-uwb.

tim-ist avatar tim-ist commented on June 12, 2024 1

Did it work? Can I close the issue?

from contiki-uwb.

tim-ist avatar tim-ist commented on June 12, 2024

Hi, can you copy and paste here several first lines of the serial output of a node after you reset it?

from contiki-uwb.

jordanmsn12 avatar jordanmsn12 commented on June 12, 2024

from contiki-uwb.

jordanmsn12 avatar jordanmsn12 commented on June 12, 2024

Sorry, rebuild the program with the new file you upload, and get new information.
Here is the output shows on Tera Tern after I push the reset button.
Device1:
DW1000 Radio Configuration:
Channel: 4
PRF: 2
PLEN: 20
PAC Size: 0
TX Pre Code: 17
RX Pre Code: 17
Non-std SFD: 0
Data Rate: 2
PHR Mode: 0
SFD Timeout: 129
Smart TX power: 1
PG Delay: 95
TX Power: 3a5a7a9a
RX ant delay: 16455
TX ant delay: 16455
Short address: 0x16ae
I am 16ae dst 16ae

Device2:
Starting Contiki-3.x-3345-g32b5b17
Network stack: Rime over UWB
DW1000 Radio Configuration:
Channel: 4
PRF: 2
PLEN: 20
PAC Size: 0
TX Pre Code: 17
RX Pre Code: 17
Non-std SFD: 0
Data Rate: 2
PHR Mode: 0
SFD Timeout: 129
Smart TX power: 1
PG Delay: 95
TX Power: 3a5a7a9a
RX ant delay: 16455
TX ant delay: 16455
Short address: 0xd41f
I am d41f dst d41f

My new question is about the short address, should I edit Device1's code, on 'rng.c' , linkaddr_t dst = {{0xdd, 0x37}}; to linkaddr_t dst = {{0xd4, 0x1f}};
And Device2's code, on 'rng.c', to linkaddr_t dst = {{0x16, 0xae}};
Or I misunderstand the information. Sorry to bother you, and thanks again!!
image

from contiki-uwb.

jordanmsn12 avatar jordanmsn12 commented on June 12, 2024

Sorry, because it’s Chinese New Year now, I will try it as soon as possible(Maybe 1/27), and tell you the result!

from contiki-uwb.

jordanmsn12 avatar jordanmsn12 commented on June 12, 2024

Thanks, it work!
success3

from contiki-uwb.

tim-ist avatar tim-ist commented on June 12, 2024

Great!

from contiki-uwb.

Related Issues (6)

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.