[GitHub] wes3 commented on issue #793: lora: make the lora driver not dependent on lora node
wes3 commented on issue #793: lora: make the lora driver not dependent on lora node URL: https://github.com/apache/mynewt-core/pull/793#issuecomment-364809388 I am going to merge this now and address the hal_timer_config issue in a different PR as I want to merge this prior to committing sx1272 driver support This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[mynewt-core] branch master updated (86b320e -> 1c204ba)
This is an automated email from the ASF dual-hosted git repository. wes3 pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git. from 86b320e Merge pull request #798 from mkiiskila/oic_client_rsp_ep add 99c229c lora: make the lora driver not dependent on lora node new 1c204ba Merge pull request #793 from wes3/lora_node_ind The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: apps/loraping/pkg.yml| 1 - apps/loraping/src/main.c | 6 +- apps/{lora_app_shell => loraping}/syscfg.yml | 14 +- hw/drivers/lora/sx1276/include/radio/radio.h | 324 - hw/drivers/lora/sx1276/pkg.yml | 3 +- hw/drivers/lora/sx1276/src/sx1276-board.c| 2 +- hw/drivers/lora/sx1276/src/sx1276.c | 40 ++-- hw/drivers/lora/sx1276/src/sx1276.h | 17 +- net/lora/node/include/node/radio.h | 337 --- net/lora/node/src/lora_node.c| 15 -- net/lora/node/src/mac/LoRaMac.c | 9 +- net/lora/node/src/utilities.c| 24 -- 12 files changed, 379 insertions(+), 413 deletions(-) copy apps/{lora_app_shell => loraping}/syscfg.yml (78%) delete mode 100644 net/lora/node/include/node/radio.h -- To stop receiving notification emails like this one, please contact w...@apache.org.
[GitHub] wes3 closed pull request #793: lora: make the lora driver not dependent on lora node
wes3 closed pull request #793: lora: make the lora driver not dependent on lora node URL: https://github.com/apache/mynewt-core/pull/793 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/apps/loraping/pkg.yml b/apps/loraping/pkg.yml index 59924639b..972cafa2a 100644 --- a/apps/loraping/pkg.yml +++ b/apps/loraping/pkg.yml @@ -31,7 +31,6 @@ pkg.deps: - "@apache-mynewt-core/mgmt/imgmgr" - "@apache-mynewt-core/mgmt/newtmgr" - "@apache-mynewt-core/mgmt/newtmgr/transport/nmgr_shell" -- "@apache-mynewt-core/net/lora/node" - "@apache-mynewt-core/sys/config" - "@apache-mynewt-core/sys/console/full" - "@apache-mynewt-core/sys/id" diff --git a/apps/loraping/src/main.c b/apps/loraping/src/main.c index 2f845e457..24dc0e5b4 100644 --- a/apps/loraping/src/main.c +++ b/apps/loraping/src/main.c @@ -34,7 +34,7 @@ Description: Ping-Pong implementation. Adapted to run in the MyNewt OS. #include "hal/hal_spi.h" #include "bsp/bsp.h" #include "os/os.h" -#include "node/radio.h" +#include "radio/radio.h" #include "loraping.h" #define USE_BAND_915 @@ -140,7 +140,7 @@ loraping_tx(struct os_event *ev) /* A master already exists. Become a slave. */ loraping_is_master = 0; -} else { +} else { /* Valid reception but neither a PING nor a PONG message. */ loraping_stats.rx_other++; /* Set device as master and start again. */ @@ -225,6 +225,8 @@ main(void) sysinit(); +hal_timer_config(4, 100); + /* Radio initialization. */ radio_events.TxDone = on_tx_done; radio_events.RxDone = on_rx_done; diff --git a/apps/loraping/syscfg.yml b/apps/loraping/syscfg.yml new file mode 100644 index 0..60d294f48 --- /dev/null +++ b/apps/loraping/syscfg.yml @@ -0,0 +1,34 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +syscfg.defs: +LORA_NODE: +description: > +Used by package management system to include mfrg firmware. +value: 1 + +LORA_MAC_TIMER_NUM: +description: Timer number used for lora mac and radio +value: -1 + +syscfg.vals: +STATS_CLI: 1 +STATS_NAMES: 1 +SHELL_TASK: 1 +SHELL_MAX_COMPAT_COMMANDS: 32 diff --git a/hw/drivers/lora/sx1276/include/radio/radio.h b/hw/drivers/lora/sx1276/include/radio/radio.h index 6f23183be..ccc0ffc98 100644 --- a/hw/drivers/lora/sx1276/include/radio/radio.h +++ b/hw/drivers/lora/sx1276/include/radio/radio.h @@ -6,28 +6,332 @@ (__/|_)_|_|_| \__)_)\)_| |_| (C)2013 Semtech -Description: Generic SX1276 driver implementation +Description: Generic radio driver definition License: Revised BSD License, see LICENSE.TXT file include in the project Maintainer: Miguel Luis and Gregory Cristian */ -#ifndef H_RADIO_RADIO_ -#define H_RADIO_RADIO_ +#ifndef __RADIO_H__ +#define __RADIO_H__ + +#include +#include + +/*! + * Radio driver supported modems + */ +typedef enum +{ +MODEM_FSK = 0, +MODEM_LORA, +}RadioModems_t; /*! - * Radio wakeup time from SLEEP mode + * Radio driver internal state machine states definition */ -#define RADIO_OSC_STARTUP 1 // [ms] +typedef enum +{ +RF_IDLE = 0, +RF_RX_RUNNING, +RF_TX_RUNNING, +RF_CAD, +}RadioState_t; + +/*! + * \brief Radio driver callback functions + */ +typedef struct +{ +/*! + * \brief Tx Done callback prototype. + */ +void( *TxDone )( void ); +/*! + * \brief Tx Timeout callback prototype. + */ +void( *TxTimeout )( void ); +/*! + * \brief Rx Done callback prototype. + * + * \param [IN] payload Received buffer pointer + * \param [IN] sizeReceived buffer size + * \param [IN] rssiRSSI value computed while receiving the frame [dBm] + * \param [IN] snr Raw SNR value given by the radio hardware + * FSK : N/A ( set to 0 ) + * LoRa: SNR value in dB + */ +void( *R
[mynewt-core] 01/01: Merge pull request #793 from wes3/lora_node_ind
This is an automated email from the ASF dual-hosted git repository. wes3 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git commit 1c204baa205ac863c2d1f201e1b0ae6e6b9fe9fa Merge: 86b320e 99c229c Author: wes3 AuthorDate: Sun Feb 11 17:15:30 2018 -0800 Merge pull request #793 from wes3/lora_node_ind lora: make the lora driver not dependent on lora node apps/loraping/pkg.yml | 1 - apps/loraping/src/main.c | 6 +- .../sx1276/pkg.yml => apps/loraping/syscfg.yml | 26 +- hw/drivers/lora/sx1276/include/radio/radio.h | 324 +++- hw/drivers/lora/sx1276/pkg.yml | 3 +- hw/drivers/lora/sx1276/src/sx1276-board.c | 2 +- hw/drivers/lora/sx1276/src/sx1276.c| 40 ++- hw/drivers/lora/sx1276/src/sx1276.h| 17 +- net/lora/node/include/node/radio.h | 337 - net/lora/node/src/lora_node.c | 15 - net/lora/node/src/mac/LoRaMac.c| 9 +- net/lora/node/src/utilities.c | 24 -- 12 files changed, 383 insertions(+), 421 deletions(-) -- To stop receiving notification emails like this one, please contact w...@apache.org.
[GitHub] ryangrimm opened a new pull request #397: Previous link was a 404, updated
ryangrimm opened a new pull request #397: Previous link was a 404, updated URL: https://github.com/apache/mynewt-site/pull/397 Seems as though the bluetooth.com site has seen some changes last year. I used the wayback machine to dig up what the intended page was and found it's new location. If there are any other links to bluetooth.com documentation it wouldn't surprise me if they too are broken. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] ryangrimm opened a new pull request #396: The NimBLE Stack Initialization page no longer exists
ryangrimm opened a new pull request #396: The NimBLE Stack Initialization page no longer exists URL: https://github.com/apache/mynewt-site/pull/396 It appears as though this portion is now all handled via sysinit. Not 100% sure if a new link should be included to somewhere else. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services