This repository has been archived on 2023-06-05. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Yunhorn c4bc2911c4 add MEMS not installed error in seft function testing report S....X 2022-10-30 13:27:30 +08:00
Core add MEMS not installed error in seft function testing report S....X 2022-10-30 13:27:30 +08:00
EWARM M7-0920 2022-09-20 11:49:19 +08:00
LoRaWAN add MEMS not installed error in seft function testing report S....X 2022-10-30 13:27:30 +08:00
MDK-ARM add MEMS not installed error in seft function testing report S....X 2022-10-30 13:27:30 +08:00
STM32CubeIDE renew for cfg 2022-10-26 23:30:00 +08:00
.extSettings 更新 '.extSettings' 2022-09-21 08:15:56 +08:00
.gitignore ignore file change 2022-09-21 08:12:07 +08:00
desktop.ini add MEMS not installed error in seft function testing report S....X 2022-10-30 13:27:30 +08:00
readme.md update responder 2022-10-22 18:17:10 +08:00
readme.txt renew lora_app 2022-10-19 18:55:37 +08:00

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) 2022 Yunhorn Technology Limited.
  • Copyright (c) 2022 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 */