openwsn-berkeley / openwsn-fw Goto Github PK
View Code? Open in Web Editor NEWOpenWSN firmware: stuff that runs on a mote
Home Page: http://www.openwsn.org/
License: BSD 3-Clause "New" or "Revised" License
OpenWSN firmware: stuff that runs on a mote
Home Page: http://www.openwsn.org/
License: BSD 3-Clause "New" or "Revised" License
I'm trying to run this software in simulation mode. According to this documentation it should be easy, but it isn't. Can't pass through this step.
root@a0c4a22bf04d:/home/ubuntu/openwsn/openwsn-fw# scons board=python toolchain=gcc oos_openwsn
scons: Reading SConscript files ...
File "/home/ubuntu/openwsn/openwsn-fw/SConstruct", line 142
print "Unknown switch {0}.".format(key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
root@a0c4a22bf04d:/home/ubuntu/openwsn/openwsn-fw#
The IAR project files for openmote are outdated. They do not include latest folder structure changes. In addition the config options for board, apps, and stack are not supported properly. Further the socket related code parts require slight modifications since errno.h of IAR does not support all relevant errorcodes.
Issue reported by @Chris-Ho
Fix in PR: FW-887
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
Relay code to listen, check packet is from the network, print it to serial and relay it.
It listens on UART and if there is anything new it sends periodically.
Hi.
I have problem during running the final code for openwsn-fw. The code is
scons board=python toolchain=gcc oos_openwsn
The error is:-
scons: *** A shared library should have exactly one target with the suffix: Target(s) are:bsp_bothtimers File "xxx\yyy\zzz\openwsn-fw\SConscript", line 1280, in project_finder
The line 1280 in SConscript is:-
targetAction = localEnv.SharedLibrary(target,source,LIBS=libs,SHLIBPREFIX='',SHLIBSUFFIX=pylib_ext,)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.