Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network formation issue using the NRF52840-DK #535

Open
kyh-ly opened this issue Dec 1, 2020 · 10 comments
Open

Network formation issue using the NRF52840-DK #535

kyh-ly opened this issue Dec 1, 2020 · 10 comments
Labels
bug NRF52840 Issues related to the NRF52840 platform

Comments

@kyh-ly
Copy link

kyh-ly commented Dec 1, 2020

problem descript

  • last version openwsn-nrf52840DK project can not build by segger embedded studio (have fixed the compile error if you need I can push the branch to you)
  • nrf52840DK can not organize network when root the mote(does not show any information while the num of ASN is growth)
  • port older version openwsn-fw to stm32f103 + CC1101 development board, using openv-server command and terminal show :
    image

development environment description

hardware : stm32f103 + CC1101
I have located the error file--board_info.h. My board uses 32.768KHz clock crystal as the source clock of sctimer, below is my board_info.h context:
#define PORT_TICS_PER_MS 32 //32KHz->RTC->sctimer
#define PORT_US_PER_TICK 30
#define SCHEDULER_WAKEUP() EXTI_GenerateSWInterrupt(EXTI_Line1);
#define SCHEDULER_ENABLE_INTERRUPT()

//======== IEEE802154E timing
#define SLOTDURATION 10 //in miliseconds
//time-slot related
#define PORT_TsSlotDuration 330 //10ms

//execution speed related
#define PORT_maxTxDataPrepare 110
#define PORT_maxRxAckPrepare 20
#define PORT_maxRxDataPrepare 33
#define PORT_maxTxAckPrepare 50

//radio speed related
#define PORT_delayTx 18
#define PORT_delayRx 0

// ==adaptive_sync accuracy
#define SYNC_ACCURACY 1//ticks
My source code link: https://github.com/kyh-ly/openws-fw-stm32

@kyh-ly
Copy link
Author

kyh-ly commented Dec 1, 2020

04-TRAN/sock.h has some error, some variable undeclared. Can not find the errno.h file
-EADDRINUSE
EAFNOSUPPORT
ENOBUFS
ENOTCONN

@christianhopfner
Copy link
Contributor

04-TRAN/sock.h has some error, some variable undeclared. Can not find the errno.h file
-EADDRINUSE
EAFNOSUPPORT
ENOBUFS
ENOTCONN

for that issue I recently opend a PR https://github.com/openwsn-berkeley/openwsn-fw/pull/533/files

@TimothyClaeys
Copy link
Member

@Chris-Ho @kyh-ly Going to move this to a new issue. Sorry I haven't had the time to look at your PR's. I was busy with some other projects. In the following days, I'll probably have time to merge some PRs.

@TimothyClaeys TimothyClaeys added bug NRF52840 Issues related to the NRF52840 platform labels Dec 2, 2020
@TimothyClaeys TimothyClaeys changed the title organize network error Network formation issue using the NRF52840-DK Dec 2, 2020
@kyh-ly
Copy link
Author

kyh-ly commented Dec 2, 2020

@TimothyClaeys
Thanks. I have fixed the sock.c error with your reference and nrf52840-DK project builds successfully. The mote can't organize the network after I register the master mote, it stops a long time.
微信截图_20201202192621

微信截图_20201202192636

@kyh-ly
Copy link
Author

kyh-ly commented Dec 2, 2020

@TimothyClaeys @Chris-Ho Hi, I have ported openwsn to stm32f103VET6+CC1101 development board, and it still can not organize network or join the network. It meets the same problem with nrf52840DK.
How to transmit data between different motes, in uinject.h file I find this file implements the function of sending data from the node to the root. How to implement the receive function. @koalo

@kyh-ly
Copy link
Author

kyh-ly commented Dec 5, 2020

Hi,guys. There has some problem when I use OpenVisulizer to set up RPL server:

hardware description:

nrf52840DK
openwsn version: last version
openvisualizer: last version
reporter:kyh

@kyh-ly
Copy link
Author

kyh-ly commented Dec 7, 2020

Hi, guys. If anyone meets this problem when using OpenVisualizer to connect with the mote (STM32f103)?
image

@fjmolinas @FabianVija

@kyh-ly
Copy link
Author

kyh-ly commented Dec 12, 2020

@changtengfei Even if I increase the value of wdRadioTx , the problem still occurs. I think I should analyze the duration of the TT3 and determine if there is a problem with the timer

@kyh-ly
Copy link
Author

kyh-ly commented Dec 23, 2020

@TimothyClaeys Hi, I find that my CC1101 RF has a long time between finishing loading packet and start to send a packet, I think this value is the delayTx. But set a big value to delayTx the code would die in some time, and why this problem occurs and how to fix it?

@kyh-ly
Copy link
Author

kyh-ly commented Jan 7, 2021

@TimothyClaeys @remyleone How to add the user schedule on the openwsn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug NRF52840 Issues related to the NRF52840 platform
Projects
None yet
Development

No branches or pull requests

3 participants