Skip to content

Commit 8c4b688

Browse files
authored
Merge pull request #17 from disk91/devel
Addition of the Sigfox Stack on Murata ABZ module
2 parents 1cc19a0 + a83198b commit 8c4b688

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+4791
-377
lines changed

Doc/drivers/sx1276_sigfox.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# SX1276 / MURATA used as Sigfox
2+
3+
## Pre-requisites
4+
5+
### Hardware configuration (routing):
6+
* TCXO powered is controled by a GPIO => This allows to keept it activ as we want
7+
* PH0-OSC connected to TCXO-OUT => This allows to use TCXO as a HSE clock source. The purpose is to have a synchro between the MCU clock and the generated signal during signal transmission over DMA
8+
* DIO4 connected to a GPIO => DIO4 is an interrupt channel for Sigfox mode it needs to be connected
9+
10+
### Cube Mx configuration
11+
* The SPI pins need to be set including PA15 GPIO_SPEED_FREQ_VERY_HIGH => 32MHz
12+
* PA15
13+
* SPI_NSS pin should be configured PULL_UP with Set as initial state
14+
* Speed is VERY_HIGH
15+
* TIM2 is enable with Inetrnal Clock source / nothing specific it will be setup by the driver code
16+
* SPI1 is enable with
17+
* Soft NSS
18+
* SPI_BAUDRATEPRESCALER_32 (it will be reconfigured by the driver code)
19+
* Data Size 8b (it will be reconfigured by the driver code)
20+
* DMA Settings : Enable SPI_TX DMA Request on default channel (it will be reconfigured by the driver code)
21+
* Enable DMA1 channel2 & 3 interrupt
22+
* Disable SPI1 global interrupt
23+
* Set GPIO as Very High Speed
24+
25+
26+
### CubeMx specific configuration :
27+
__SPI1_TX DMA Channel__ needs to be enable in Cube MX. Go to SPI1, Add a DMA entry, Select SPI1_TX in the DMA windows.
28+
This will generate the necessary IRQ Handler for SPI/DMA transmission.
29+

Doc/nvm.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ The EEPROM is splet into 3 different zone, these zone will exists or not dependi
1212
+----------------------------------+
1313
+ ERROR LOG +
1414
+----------------------------------+
15+
+ SIGFOX NVM AREA +
16+
+----------------------------------+
1517
+ CONFIGURATION +
1618
+----------------------------------+
1719
+ USER FREE +
@@ -26,6 +28,11 @@ The Secure Store allows to store critical informations like credentials. See *se
2628

2729
The Error Log allows to store error code persistantly and access them later to debug you firmware.
2830

31+
### SIGFOX NVM AREA
32+
33+
Used by sigfox lib to store internal information like sequence number
34+
Only activated when sigfox is enable
35+
2936
### Configuration
3037

3138
The configuration is composed into different parts:

Examples/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ The different examples are located in different GitHub projects. This way you ca
33

44
## STM32 platform
55
* Make a led blinking - https://github.com/disk91/stm32-s2lp-sigfox/releases/tag/STEP1
6-
* Communicate over Sigfox Network - https://github.com/disk91/stm32-s2lp-sigfox
6+
* Communicate over Sigfox Network with S2LP - https://github.com/disk91/stm32-s2lp-sigfox
7+
* Communicate over Sigfox Network with SX1276 - https://github.com/disk91/itsdk-example-sigfox-sx1276
78
* Communicate over LoRaWan Network - https://github.com/disk91/itsdk-example-murata-lora
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
By downloading, or attempting to download, the SIGFOX protocol library "SgfxCoreV231_CM0_GCC.a" and/or
2+
"SgfxCoreV231_CM0_IAR.a" and/or "SgfxCoreV231_CM0_Keil" and/or "SgfxAddonV020_CM0_GCC.a" and/or
3+
"SgfxAddonV020_CM0_IAR.a" and/or "SgfxAddonV020_CM0_Keil.lib", you are hereby informed and you acknowledge
4+
and agree that any use of the licensed materials is subject to all terms and conditions required by SIGFOX
5+
and listed below:
6+
� You shall
7+
o respect the Partner Certification Process, described in the SIGFOX developer platform at
8+
http://build.SIGFOX.com to embed applicable authentication keys;
9+
o be in compliance with all applicable laws, regulations (including any applicable
10+
export control law or regulation) and industry standards in connection with the manufacture, sale
11+
and/or distribution of certified products;
12+
� You shall not:
13+
o modify or create without SIGFOX written prior agreement any derivative work of any part of the
14+
SIGFOX protocol library
15+
o market, sell, license, distribute, publish, display, reproduce, rent, lease, loan, assign or otherwise
16+
transfer to a third party the SIGFOX protocol library or any copy thereof, in whole or in part;
17+
o install or otherwise incorporate the SIGFOX protocol library into a product except as set
18+
forth in and in accordance with this document;
19+
o use the SIGFOX protocol library in any way that would not be in compliance with applicable laws;
20+
o except to the extent permitted by law, permit the disassembly, decompilation or reverse engineering
21+
of the SIGFOX protocol library or otherwise attempt to gain access to the source code to the SIGFOX
22+
protocol library (or the underlying ideas, algorithms, structure or organization of the object code
23+
in the SIGFOX protocol library)
24+
o incorporate any open source software into any product, including with respect to certified products
25+
sold or distributed, that creates or purports to create any obligation to disclose to a third party
26+
any source code relating to the SIGFOX protocol library or grants or purports to grant to any third
27+
party any intellectual property of SIGFOX;
28+
o develop, sell or distribute any product that undermines SIGFOX network security and integrity and/or
29+
introduces in any SIGFOX network any viruses, worms, Trojan horses or similar harmful or malicious
30+
code, or otherwise harms any SIGFOX network;
31+
o remove or attempt to remove any SIGFOX authentication keys,
32+
o incorporate the SIGFOX protocol library in any product for connection on another network than SIGFOX
33+
network. You shall inform any of your third party that such infringement to the obligations below
34+
would cause significant harm to SIGFOX.
35+
36+
You shall have no rights to any source code for the SIGFOX protocol library. You agree that only SIGFOX
37+
shall have the right to maintain, enhance or otherwise modify the SIGFOX protocol library.

0 commit comments

Comments
 (0)