Chip-dat/SemTech-dat/SX1262-HDK-dat/SX1262-HDK-dat.md
... ...
@@ -1,138 +0,0 @@
1
-
2
-# SX1262-HDK-dat
3
-
4
-- [[rf-switch-dat]] - [[network-dat]]
5
-
6
-- [[lora-HDK-dat]]
7
-
8
-- [[LORA-HDK-dat]] - [[SX1262-MD1-dat]] - [[SX1262-HDK-dat]] - [[SX1262-dat]]
9
-
10
-## wiring while NOT using DIO2 control TXEN / RXEN of RF switch
11
-
12
-(NSS_d + SCK + MOSI + MISO) + BUSY + DIO1_irq + RXEN + TXEN + RESET_optional
13
-
14
-
15
-
16
-## ✅ Required Pins (Basic SPI Communication)
17
-
18
-| Pin | Required | Purpose |
19
-| -------------- | -------- | --------------------------- |
20
-| **NSS_d** (CS) | ✅ Yes | SPI chip select (NSS) |
21
-| **SCK** | ✅ Yes | SPI clock |
22
-| **MOSI** | ✅ Yes | SPI data from MCU to SX1262 |
23
-| **MISO** | ✅ Yes | SPI data from SX1262 to MCU |
24
-| **BUSY** | ✅ Yes | Indicates radio busy status |
25
-
26
-> 🧠 `BUSY` must be monitored before and after sending SPI commands to ensure the radio is ready.
27
-
28
----
29
-
30
-## ⚠️ Conditional / Optional Pins
31
-
32
-| Pin | Required? | When Needed |
33
-| --------- | ---------- | ---------------------------------------------------------------------------------- |
34
-| **RESET** | ⚠️ Optional | Recommended for better stability; allows hard reset |
35
-| **DIO1** | ⚠️ Optional | Required if using interrupt-based handling (e.g., RX done, TX done) |
36
-| **DIO2** | ⚠️ Optional | Required only if using for RF switch/FEM control via `SetDio2AsRfSwitchCtrl(true)` |
37
-| **RXEN** | ❌ No | Not needed if using DIO2 for single-pin FEM control |
38
-| **TXEN** | ❌ No | Same as above |
39
-
40
-
41
-
42
-def in UserConfig.h
43
-
44
- //spi
45
- #define LCC68_NSS_PORT GPIOA
46
- #define LCC68_NSS_PIN GPIO_PIN_4
47
-
48
- #define LCC68_SCK_PORT GPIOA
49
- #define LCC68_SCK_PIN GPIO_PIN_5
50
-
51
- #define LCC68_MOSI_PORT GPIOA
52
- #define LCC68_MOSI_PIN GPIO_PIN_7
53
-
54
- #define LCC68_MISO_PORT GPIOA
55
- #define LCC68_MISO_PIN GPIO_PIN_6
56
-
57
- #define LCC68_NRST_PORT GPIOA
58
- #define LCC68_NRST_PIN GPIO_PIN_3
59
-
60
- #define LCC68_BUSY_PORT GPIOA
61
- #define LCC68_BUSY_PIN GPIO_PIN_2
62
-
63
- #define LCC68_DIO1_PORT GPIOC
64
- #define LCC68_DIO1_PIN GPIO_PIN_15
65
-
66
- #define LCC68_RXEN_PORT GPIOA
67
- #define LCC68_RXEN_PIN GPIO_PIN_1
68
-
69
- #define LCC68_TXEN_PORT GPIOA
70
- #define LCC68_TXEN_PIN GPIO_PIN_0
71
-
72
- //Uart
73
- #define LOG_UART_TX_PORT GPIOA
74
- #define LOG_UART_TX_PIN GPIO_PIN_9
75
- #define LOG_UART_RX_PORT GPIOA
76
- #define LOG_UART_RX_PIN GPIO_PIN_10
77
-
78
-
79
- #define LORA_FRE 915000000 // frequency
80
- #define LORA_PREAMBLE_LENGTH 8 // PREAMBLE LENGTH
81
- #define LORA_SX126x_SYMBOL_TIMEOUT 0 // Symbols(SX126x)
82
- #define LORA_FIX_LENGTH_PAYLOAD_ON false // PAYLOAD FIX LENGTH
83
- #define LORA_IQ_INVERSION_ON false // IQ INVERSION
84
-
85
- #define SIZE_DATA 255
86
-
87
-
88
-
89
-
90
-## wiring while DIO2 control TXEN / RXEN of RF switch
91
-
92
-
93
-NSS_d + SCK + MOSI + MISO + BUSY + DIO2
94
-(Optional: RESET + DIO1)
95
-
96
-
97
-
98
- Microcontroller SX1262 RF Switch / FEM
99
- +-------------------+ +---------------+ +---------------------+
100
- | | | | | |
101
- | MISO <-----+---------+ MISO | | |
102
- | MOSI ----->+---------+ MOSI | | |
103
- | SCK ----->+---------+ SCK | | |
104
- | NSS ----->+---------+ NSS | | |
105
- | RESET ---->+---------+ NRESET | | |
106
- | | | | | |
107
- | GND ------+---------+ GND |---------------+ GND |
108
- | 3.3V ------+---------+ VDD |---------------+ VCC (3.3V) |
109
- | | | | | |
110
- | | | RF_IO ------- +---------------- RF_IO |
111
- | | | | | |
112
- | | | DIO2 ---------+---------------> CTRL (TX/RX EN) |
113
- | | | | | |
114
- +-------------------+ +---------------+ +---------------------+
115
-
116
-wiring in table
117
-
118
-| Pin | Name | Connects To Purpose |
119
-| ------ | ------------------- | ---------------------- |
120
-| NSS | MCU GPIO (CS) | SPI chip select |
121
-| SCK | MCU SPI clock | SPI clock line |
122
-| MOSI | MCU SPI MOSI | SPI data to SX1262 |
123
-| MISO | MCU SPI MISO | SPI data from SX1262 |
124
-| DIO2 | FEM CTRL / TXEN | Auto RF switch control |
125
-| RF_IO | RF switch input | RF path in/out |
126
-| NRESET | MCU GPIO (optional) | SX1262 reset pin |
127
-| VDD | 3.3V | Power supply |
128
-| GND | Ground | Common ground |
129
-
130
-
131
-coding
132
-
133
- // Enable automatic RF switch control on DIO2
134
- Radio.SetDio2AsRfSwitchCtrl(true);
135
-
136
- // Set DIO2 as output (only needed if using raw DIO2 control in some cases)
137
- Radio.SetDioAsOutput(2); // Not always required
138
-
Chip-dat/SemTech-dat/SX1262-dat/SX1262-HDK-dat/SX1262-HDK-dat.md
... ...
@@ -0,0 +1,138 @@
1
+
2
+# SX1262-HDK-dat
3
+
4
+- [[rf-switch-dat]] - [[network-dat]]
5
+
6
+- [[lora-HDK-dat]]
7
+
8
+- [[LORA-HDK-dat]] - [[SX1262-MD1-dat]] - [[SX1262-HDK-dat]] - [[SX1262-dat]]
9
+
10
+## wiring while NOT using DIO2 control TXEN / RXEN of RF switch
11
+
12
+(NSS_d + SCK + MOSI + MISO) + BUSY + DIO1_irq + RXEN + TXEN + RESET_optional
13
+
14
+
15
+
16
+## ✅ Required Pins (Basic SPI Communication)
17
+
18
+| Pin | Required | Purpose |
19
+| -------------- | -------- | --------------------------- |
20
+| **NSS_d** (CS) | ✅ Yes | SPI chip select (NSS) |
21
+| **SCK** | ✅ Yes | SPI clock |
22
+| **MOSI** | ✅ Yes | SPI data from MCU to SX1262 |
23
+| **MISO** | ✅ Yes | SPI data from SX1262 to MCU |
24
+| **BUSY** | ✅ Yes | Indicates radio busy status |
25
+
26
+> 🧠 `BUSY` must be monitored before and after sending SPI commands to ensure the radio is ready.
27
+
28
+---
29
+
30
+## ⚠️ Conditional / Optional Pins
31
+
32
+| Pin | Required? | When Needed |
33
+| --------- | ---------- | ---------------------------------------------------------------------------------- |
34
+| **RESET** | ⚠️ Optional | Recommended for better stability; allows hard reset |
35
+| **DIO1** | ⚠️ Optional | Required if using interrupt-based handling (e.g., RX done, TX done) |
36
+| **DIO2** | ⚠️ Optional | Required only if using for RF switch/FEM control via `SetDio2AsRfSwitchCtrl(true)` |
37
+| **RXEN** | ❌ No | Not needed if using DIO2 for single-pin FEM control |
38
+| **TXEN** | ❌ No | Same as above |
39
+
40
+
41
+
42
+def in UserConfig.h
43
+
44
+ //spi
45
+ #define LCC68_NSS_PORT GPIOA
46
+ #define LCC68_NSS_PIN GPIO_PIN_4
47
+
48
+ #define LCC68_SCK_PORT GPIOA
49
+ #define LCC68_SCK_PIN GPIO_PIN_5
50
+
51
+ #define LCC68_MOSI_PORT GPIOA
52
+ #define LCC68_MOSI_PIN GPIO_PIN_7
53
+
54
+ #define LCC68_MISO_PORT GPIOA
55
+ #define LCC68_MISO_PIN GPIO_PIN_6
56
+
57
+ #define LCC68_NRST_PORT GPIOA
58
+ #define LCC68_NRST_PIN GPIO_PIN_3
59
+
60
+ #define LCC68_BUSY_PORT GPIOA
61
+ #define LCC68_BUSY_PIN GPIO_PIN_2
62
+
63
+ #define LCC68_DIO1_PORT GPIOC
64
+ #define LCC68_DIO1_PIN GPIO_PIN_15
65
+
66
+ #define LCC68_RXEN_PORT GPIOA
67
+ #define LCC68_RXEN_PIN GPIO_PIN_1
68
+
69
+ #define LCC68_TXEN_PORT GPIOA
70
+ #define LCC68_TXEN_PIN GPIO_PIN_0
71
+
72
+ //Uart
73
+ #define LOG_UART_TX_PORT GPIOA
74
+ #define LOG_UART_TX_PIN GPIO_PIN_9
75
+ #define LOG_UART_RX_PORT GPIOA
76
+ #define LOG_UART_RX_PIN GPIO_PIN_10
77
+
78
+
79
+ #define LORA_FRE 915000000 // frequency
80
+ #define LORA_PREAMBLE_LENGTH 8 // PREAMBLE LENGTH
81
+ #define LORA_SX126x_SYMBOL_TIMEOUT 0 // Symbols(SX126x)
82
+ #define LORA_FIX_LENGTH_PAYLOAD_ON false // PAYLOAD FIX LENGTH
83
+ #define LORA_IQ_INVERSION_ON false // IQ INVERSION
84
+
85
+ #define SIZE_DATA 255
86
+
87
+
88
+
89
+
90
+## wiring while DIO2 control TXEN / RXEN of RF switch
91
+
92
+
93
+NSS_d + SCK + MOSI + MISO + BUSY + DIO2
94
+(Optional: RESET + DIO1)
95
+
96
+
97
+
98
+ Microcontroller SX1262 RF Switch / FEM
99
+ +-------------------+ +---------------+ +---------------------+
100
+ | | | | | |
101
+ | MISO <-----+---------+ MISO | | |
102
+ | MOSI ----->+---------+ MOSI | | |
103
+ | SCK ----->+---------+ SCK | | |
104
+ | NSS ----->+---------+ NSS | | |
105
+ | RESET ---->+---------+ NRESET | | |
106
+ | | | | | |
107
+ | GND ------+---------+ GND |---------------+ GND |
108
+ | 3.3V ------+---------+ VDD |---------------+ VCC (3.3V) |
109
+ | | | | | |
110
+ | | | RF_IO ------- +---------------- RF_IO |
111
+ | | | | | |
112
+ | | | DIO2 ---------+---------------> CTRL (TX/RX EN) |
113
+ | | | | | |
114
+ +-------------------+ +---------------+ +---------------------+
115
+
116
+wiring in table
117
+
118
+| Pin | Name | Connects To Purpose |
119
+| ------ | ------------------- | ---------------------- |
120
+| NSS | MCU GPIO (CS) | SPI chip select |
121
+| SCK | MCU SPI clock | SPI clock line |
122
+| MOSI | MCU SPI MOSI | SPI data to SX1262 |
123
+| MISO | MCU SPI MISO | SPI data from SX1262 |
124
+| DIO2 | FEM CTRL / TXEN | Auto RF switch control |
125
+| RF_IO | RF switch input | RF path in/out |
126
+| NRESET | MCU GPIO (optional) | SX1262 reset pin |
127
+| VDD | 3.3V | Power supply |
128
+| GND | Ground | Common ground |
129
+
130
+
131
+coding
132
+
133
+ // Enable automatic RF switch control on DIO2
134
+ Radio.SetDio2AsRfSwitchCtrl(true);
135
+
136
+ // Set DIO2 as output (only needed if using raw DIO2 control in some cases)
137
+ Radio.SetDioAsOutput(2); // Not always required
138
+
Chip-dat/SemTech-dat/SX1262-dat/SX1262-MD1-dat/SX1262-MD1-dat.md
... ...
@@ -85,4 +85,13 @@ Differences between SX1262/SX1268 and LLCC68:
85 85
- Try to stay away from physical layer protocols that are also 2.4GHz, such as USB3.0;
86 86
- The antenna installation structure has a great impact on the module's performance. Be sure to keep the antenna exposed, preferably vertically upwards. When the module is installed inside a case, a high-quality antenna extension cable can be used to extend the antenna to the outside of the case;
87 87
- The antenna must not be installed inside a metal case, as this will greatly reduce the transmission distance;
88
-- It is recommended to add a 200R protection resistor to the RXD/TXD of the external MCU.
... ...
\ No newline at end of file
0
+- It is recommended to add a 200R protection resistor to the RXD/TXD of the external MCU.
1
+
2
+
3
+## ref
4
+
5
+- [[BTB-dat]]
6
+
7
+- [[sx1262-dat]]
8
+
9
+- [[SX1262-MD1]] - [[sx1262]]
... ...
\ No newline at end of file
SDK-dat/arduino-dat/Arduino-IDE-DAT/arduino-IDE-DAT.md
... ...
@@ -1,6 +1,10 @@
1 1
2 2
## arduino-ide-dat
3 3
4
+- [[arduino-boards-dat]] - [[arduino-app-dat]]
5
+
6
+- [[arduino-lib-dat]]
7
+
4 8
## Library list
5 9
6 10
multi-task
... ...
@@ -15,13 +19,7 @@ https://github.com/arkhipenko/TaskScheduler
15 19
- [[arduino-lib]]
16 20
17 21
18
-## Core list
19
-
20
-- [[logicgreen-dat]]
21
-
22
-## Attiny
23 22
24
-- [[attiny-dat]] - [[tinyAVR-dat]]
25 23
26 24
## ESP32
27 25
SDK-dat/arduino-dat/arduino-boards-dat/arduino-boards-dat.md
... ...
@@ -13,34 +13,48 @@
13 13
14 14
- [[arduino-esp32-dat]] - [[arduino-esp8266-dat]]
15 15
16
+https://espressif.github.io/arduino-esp32/package_esp32_index.json
17
+
18
+https://arduino.esp8266.com/stable/package_esp8266com_index.json
19
+
20
+
16 21
- [[arduino-code-v1-dat]] - [[arduino-lib-dat]]
17 22
18 23
- [[usbasp-dat]] - [[avr-dat]] - [[avr-sdk-dat]]
19 24
20 25
21 26
22
-- [[attiny-dat]]
23 27
28
+## Core list
29
+
30
+- [[logicgreen-dat]]
31
+
32
+https://nulllab.coding.net/p/lgt/d/nulllab_lgt_arduino/git/raw/master/package_nulllab_boards_index_zh.json
33
+
34
+## Attiny
35
+
36
+- [[attiny-dat]] - [[attiny13-dat]]
37
+
38
+- [[tinyAVR-dat]] == megaTinyCoremegaTinyCore - [[avr128-dat]] == BXCore == DA / DB
24 39
25 40
41
+megaTinyCore by Spence Konde
42
+http://drazzy.com/package_drazzy.com_index.json
26 43
27 44
## obseleted logs
28 45
29
-https://arduino.esp8266.com/stable/package_esp8266com_index.json
46
+
30 47
https://mcudude.github.io/MegaCoreX/package_MCUdude_MegaCoreX_index.json
31 48
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
32 49
http://drazzy.com/package_drazzy.com_index.json
33
-https://nulllab.coding.net/p/lgt/d/nulllab_lgt_arduino/git/raw/master/package_nulllab_boards_index_zh.json
50
+
34 51
https://cdn.jsdelivr.net/gh/nulllaborg/arduino_nulllab/package_nulllab_boards_index_zh.json
35 52
https://mcudude.github.io/MicroCore/package_MCUdude_MicroCore_index.json
36 53
https://raw.githubusercontent.com/sleemanj/optiboot/master/dists/package_gogo_diy_attiny_index.json
37 54
http://digistump.com/package_digistump_index.json
38 55
39 56
40
-### note
41 57
42
-megaTinyCore by Spence Konde
43
-http://drazzy.com/package_drazzy.com_index.json
44 58
45 59
### removed
46 60
SDK-dat/arduino-dat/arduino-boards-dat/arduino-esp8266-dat/arduino-esp8266-dat.md
... ...
@@ -1,6 +1,7 @@
1 1
2 2
# arduino-esp8266-dat
3 3
4
+https://arduino.esp8266.com/stable/package_esp8266com_index.json
4 5
5 6
## boards
6 7
Tech-dat/BTB-dat/BTB-dat.md
... ...
@@ -72,7 +72,7 @@ rotate to fit physically
72 72
73 73
![](2024-10-02-20-05-52.png)
74 74
75
-## base board
75
+## base board == bottom board
76 76
77 77
- [[ESP32-dat]]
78 78
... ...
@@ -87,13 +87,13 @@ rotate to fit physically
87 87
88 88
89 89
90
-## supported boards
90
+## supported boards == module board == top board
91 91
92 92
93 93
94 94
- [[NGS1128-DAT]] == [[SIM7080-dat]]
95 95
96
-
96
+- [[SX1262-MD1-dat]] - [[SX1262-dat]]
97 97
98 98
## attach board ref
99 99