|
||
---|---|---|
Core | ||
LoRaWAN | ||
MDK-ARM | ||
.extSettings | ||
.gitignore | ||
decoder.txt | ||
readme.md | ||
readme.txt |
readme.md
/**
- @file Vibration Sensor for Consumer Product Detection and *
-
Industry Level Machine Fault Analysis *
- @author Yunhorn (r) Technology Limited Application Team *
- @brief Yunhorn (r) SmarToilets (r) Product configuration file. *
- @attention
- Copyright (c) 2023 Yunhorn Technology Limited.
- Copyright (c) 2023 Shenzhen Yunhorn Technology Co., Ltd.
- All rights reserved.
- This software is licensed under terms that can be found in the LICENSE file
- in the root directory of this software component.
- If no LICENSE file comes with this software, it is provided AS-IS.
*/
============ STM32WL E5CCUX ======================================= BUT1_PIN PA.0 MEMS-INT1 BUT2_PIN PA.1 MEMS-INT2
#define BUT1_Pin GPIO_PIN_0 //MEMS-INT1-ACTIVITY-NO-ACTIVITY INT #define BUT1_GPIO_Port GPIOA #define BUT1_EXTI_IRQn EXTI0_IRQn
#define BUT2_Pin GPIO_PIN_1 //MEMS-INT2- NOT USED #define BUT2_GPIO_Port GPIOA #define BUT2_EXTI_IRQn EXTI1_IRQn
----- I2C1 --------------------------------------
SCL PB.06
SDA PB.07
----- I2C2 --------------------------------------
SCL PA.12
SDA PA.11
EN-3V3 PB.04
============ STM32WL E5CCUX =======================================
============ STM32WL 55 ======================================== BUT1_PIN PA.0 CN10 Pin nbr 1 [PC.13 CN7 Pin nbr 23] BUT2_PIN PA.1 CN10 Pin nbr 36 BUT3_PIN PC.6 CN10 Pin nbr 12 //// ADXL345-INT2
#define BUT1_Pin GPIO_PIN_0 #define BUT1_GPIO_Port GPIOA #define BUT1_EXTI_IRQn EXTI0_IRQn
#define BUT3_Pin GPIO_PIN_6 #define BUT3_GPIO_Port GPIOC #define BUT3_EXTI_IRQn EXTI9_5_IRQn
#define BUT2_Pin GPIO_PIN_1 #define BUT2_GPIO_Port GPIOA #define BUT2_EXTI_IRQn EXTI1_IRQn ============ STM32WL 55 ========================================
============ STM32WL55JC confirmed =============
===================================
GNG GND=== CN7 PIN 20 VCC 3.3 ====CN7 PIN 16
SSD 1306 STM32WL55JC ----- I2C1 -------------------------------------- SCL PB.08 === CN10 pin 27 SDA PB.07 === CN10 pin 37
----- I2C2 -------------------------------------- SCL PA.12 === CN10 pin 3 SDA PA.15 === CN7 pin 17
----- I2C3 -------------------------------------- SCL PB.13 === CN7 pin 38 SDA PB.4 === CN7 pin 34
--------------------SPI STM32WL55JC --------------------SPI1 ------------------------------- CLK PA.05 ==== CN10 pin 11
MISO PA.06 ====- CN10 pin 13
MOSI PA.07 ==== CN10 pin 15
===================================
===================================
/*!
- LoRaWAN Adaptive Data Rate
- @note Please note that when ADR is enabled the end-device should be static */ #define LORAWAN_ADR_STATE LORAMAC_HANDLER_ADR_OFF //LORAMAC_HANDLER_ADR_ON
=========================================================================================================== sys_sensor.c
Application/User/LoRaWAN/App
LORA_APP.H ===/* Region ------------------------------------*/ //#define ACTIVE_REGION LORAMAC_REGION_EU868 #define ACTIVE_REGION LORAMAC_REGION_AS923
//#define LORAWAN_USER_APP_PORT 2 #define LORAWAN_USER_APP_PORT 11
/*!
- Defines the application data transmission duty cycle. 10s, value in [ms]. */ #define APP_TX_DUTYCYCLE 60000
===========================================================================================================
/LoRaWAN/App/lora_info.c
lorawan_conf.h
=========================================================================================================== /* Region ------------------------------------/ / the region listed here will be linked in the MW code / / the application (on sys_conf.h) shall just configure one region at the time / /#define REGION_AS923*/ /#define REGION_AU915/ /#define REGION_CN470/ /#define REGION_CN779/ /#define REGION_EU433/ #define REGION_EU868 /#define REGION_KR920/ /#define REGION_IN865/ #define REGION_US915 /#define REGION_RU864/
/* SmarToilets Products */