-
Notifications
You must be signed in to change notification settings - Fork 241
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
FW-877 Heterogeneous radio settings in the Mesh #508
Draft
minarady1
wants to merge
100
commits into
openwsn-berkeley:develop
Choose a base branch
from
minarady1:develop_FW-877
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
100 commits
Select commit
Hold shift + click to select a range
6ffee84
Initial commit of code compiling and working and synching but not ful…
minarady1 92a27e9
wrote radio_set_modulation and radio_local_bootstrap
minarady1 9035323
some updates
minarady1 9999fe1
open radio working :)
minarady1 ff29667
some updates, mainly trying to debug
minarady1 eebd083
updates
minarady1 133dc1c
radio at86rf files
minarady1 984444a
Integrating cc2538rf into the open radio interface
minarady1 9273ca3
using openradio in openwsn
minarady1 a6468d7
open radio interface finally working and integrated into openwsn
minarady1 1669b80
full radio set added to openradio
minarady1 999f50f
Complete open radio interface for openmote-b tested with 7 modulations.
minarady1 917665d
Restoring default configuration
minarady1 64006b5
restoring default config
minarady1 0de94cb
resorting default configurations and removing unnecessary code used f…
minarady1 185038e
restoring bsp_radio_tx default code
minarady1 ecc3bd2
restoring sniffer code
minarady1 56ed0cf
restoring sniffer code
minarady1 480f1dc
restoring sniffer code
minarady1 9226da2
restoring bsp_radio_rx code
minarady1 6dda3e9
A project for demonstrating the open radio interface on openmote-b:
minarady1 39a1bdc
Merge branch 'develop_FW-866' of https://github.com/minarady1/openwsn…
minarady1 f0d59e5
openradio interface cleaning in progress
minarady1 6bae185
modivided slot 40 for FSK and added slot 41 for ofdm1 mcs3
minarady1 75b7eb1
introduced slot_template instead of slot duration
minarady1 d2b9c40
cleaneing openradio interface + adding comments + using slot template…
minarady1 0166d42
comments+cleaning
minarady1 aa7237b
Merge branch 'develop' into develop_FW-866
minarady1 2464d80
minor fixes
minarady1 f23a799
macpong
minarady1 4882b35
Merge branch 'develop_FW-866' of https://github.com/minarady1/openwsn…
minarady1 c9f560e
changing slot templates to struct variables instead of #def constants
minarady1 e5fdab3
slot_duration struct update
minarady1 4e484f2
adding few helper functions to handle slot info
minarady1 74ca322
quick update
minarady1 48f3080
fixed dynamic slot selection + code formatting
minarady1 6ecca16
Final fixes to the dynamic slot selection at runtime. This feature no…
minarady1 49d565f
cleaning up code for bsp, projacts, MAC, IAR project files and .gitig…
minarady1 a506320
Updated radio drivers for python board + at86rf231 board to be compli…
minarady1 6a8f446
restoring defaults
minarady1 5e6ca11
FW-866 fixed slot template timing references as per PR comments
minarady1 ba85ad8
FW-866 merged board_setSlotType (slotType) and slot_board_vars_t boar…
minarady1 c861218
FW-866 fixing indentation, variable names for openradio + adjusting 2…
minarady1 5110952
FW-866 restoring tx/rx common project
minarady1 5538db7
increased testbed bootload timeout
minarady1 0883865
- EBs are transmitted on 3 cells
minarady1 72b22ef
modifing addactive slot to use cell radio setting
minarady1 3367bd5
EB transmitted on 3 slots with dynamically configured radios and slot…
minarady1 465368e
FW-877 EBs transmitting on het. radios successfully
minarady1 4abc73e
FW-877 radio setting column created for neighbor table. First EB adds…
minarady1 a6b96db
fw-877 three neighbors register successfully with 3 radios(for one mo…
minarady1 df696f7
fw-877 different join priority values are used for each radio and dec…
minarady1 4e89839
fw-877 dummy dagranks used for each radio, neighbor_getjoinproxy is u…
minarady1 03c3689
fw-877 added cemmradiosetting in debugprint
minarady1 fb079ab
fw-877 sixtop add/relocate cells progress
minarady1 6110eeb
fw-877 using neighborKey instead of openaddr in different locations
minarady1 a5ffc10
fw-877 modifying cjon procedure to depend on neighborKey
minarady1 9228205
fw-877 including the cellRadioSetting in the 6p addcells request
minarady1 d3ff4c9
fw-877 integrating cellRadioSetting_t in the schedule
minarady1 079f0a5
fw-877 undoing the neighborKey struct since it lead to more complicat…
minarady1 6c88226
fw-877 updating sixtop to specify the cellRadioSetting in the in the …
minarady1 882c01c
fw-877 updating icmpv6rpl.c to update DIO info in the neighbor table …
minarady1 35fcc2b
fw-877 temp hack for testing parent selection with different DAGRanks…
minarady1 6b8a157
fw-877 adding the cellRadioSetting member to ieee154evars
minarady1 94c0007
fw-877 updating msf housekeeping function and msf helper functions to…
minarady1 18307b8
fw-877 updating neighbors_updateSequenceNumber and neighbors_resetSeq…
minarady1 149056a
fw-877 updating schedule interface and helper functions to include th…
minarady1 3416093
fw-877 updating sixtop to use cellRadioSetting in Clear command and i…
minarady1 4e57791
fw-877 updating the routing algorithm code to include the radio setti…
minarady1 2cc1c38
fw-877 updating the radio setting of packets to be forwarded after pa…
minarady1 a531cab
dummy
minarady1 2103354
fw-877 updating board timings for cc2538 radio
minarady1 0aa22f4
fw-877 updating comments for at86rf215 settings
minarady1 4265dab
fw-877 updating weights for link metric objective function calculatio…
minarady1 ac84804
fw-877 fixes to the ieee54e layer
minarady1 26f4633
fw-877 introducing the new link Metric function
minarady1 a4ada63
fw-877 updating RPL to create 3 DIOs, for the three min. cells, inste…
minarady1 2886182
fw-877 selective uploading feature
minarady1 f452684
fw-877 new weights for PHY layer link metric function
minarady1 a0d112e
fw-877 restoring cjoin timeout
minarady1 dc4322a
fw-877 extended uinject payload
minarady1 fe1e99a
fw-877 extended duty cycle stats in MAC layer
minarady1 969f3d7
fw-877 new schedule helper function schedule_hasNegotiatedCellToNeigh…
minarady1 35293f6
fw-877 using default radiosetting for sixtop requests if dedicated ce…
minarady1 a32486c
fw-877 forwarding sub-layer updated to identify parent as combination…
minarady1 7253599
fw-877 updating parent definition to include radio setting in layer 3
minarady1 76bd1a9
fw-877 updating openqueue to get and reset queue occupancy stats
minarady1 9db91b7
fw-877 restoing opendefs g6tisch parameters
minarady1 6799ad1
fw-877 capturing radio-specific duty cycle measurements in the uinjec…
minarady1 766fad7
fw-877 capturing radio-specific duty cycle measurements in the mac layer
minarady1 a6ae140
fw-877 temporary hack to continue adding cells before cell clearing i…
minarady1 4350c12
fw-877 enhanced join procedure
minarady1 5f7cfbd
fw-877 ignoring the radio setting while getting the number of backup …
minarady1 01d6ad8
FW_877
minarady1 cd8e553
FW-553 simple network relay code.
minarady1 925e8b8
FW-533 String retrieved over serial and transfered to a payload varia…
minarady1 e468bef
FW-533 payload is transferred to packet and periodic transmission starts
minarady1 61a96db
FW-553 tx/rx link established
minarady1 23ad631
FW-553 implements frame validity check and prevents inverse routing a…
minarady1 8d3d678
Update 02drv_relay.c
minarady1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,10 @@ | |
#include "nvic.h" | ||
#include "debugpins.h" | ||
|
||
//=========================== variable ======================================== | ||
//=========================== variables ======================================= | ||
|
||
slot_board_vars_t slot_board_vars [MAX_SLOT_TYPES]; | ||
slotType_t selected_slot_type; | ||
|
||
//=========================== private ========================================= | ||
|
||
|
@@ -25,6 +28,8 @@ void GPIO_Config_ALL_AIN(void); | |
// configure the hard fault exception | ||
void board_enableHardFaultExceptionHandler(void); | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. only one empty line space between codes, please remove the two empty lines here. |
||
|
||
//=========================== main ============================================ | ||
|
||
extern int mote_main(void); | ||
|
@@ -96,6 +101,35 @@ void board_init(void){ | |
debugpins_init(); | ||
//enable nvic for the radio | ||
NVIC_radio(); | ||
board_init_slot_vars(); | ||
} | ||
|
||
|
||
//==== bootstrapping slot info lookup table | ||
void board_init_slot_vars(void){ | ||
|
||
// 20ms slot | ||
slot_board_vars [SLOT_20ms_24GHZ].slotDuration = 655 ; // ms | ||
slot_board_vars [SLOT_20ms_24GHZ].maxTxDataPrepare = 110 ; // 3355us (not measured) | ||
slot_board_vars [SLOT_20ms_24GHZ].maxRxAckPrepare = 20 ; // 610us (not measured) | ||
slot_board_vars [SLOT_20ms_24GHZ].maxRxDataPrepare = 33 ; // 1000us (not measured) | ||
slot_board_vars [SLOT_20ms_24GHZ].maxTxAckPrepare = 50 ; // 1525us (not measured) | ||
slot_board_vars [SLOT_20ms_24GHZ].delayTx = 18 ; // 549us (not measured) | ||
slot_board_vars [SLOT_20ms_24GHZ].delayRx = 0 ; // 0us (can not measure) | ||
} | ||
|
||
// To get the current slotDuration at any time | ||
// used during initialization by sixtop to fire the first sixtop EB | ||
uint16_t board_getSlotDuration (void) | ||
{ | ||
return slot_board_vars [selected_slot_type].slotDuration; | ||
} | ||
|
||
// Setter/Getter function for slot_board_vars | ||
slot_board_vars_t board_selectSlotTemplate (slotType_t slot_type) | ||
{ | ||
selected_slot_type = slot_type; | ||
return slot_board_vars [selected_slot_type]; | ||
} | ||
|
||
void board_sleep(void) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the additional empty lines here