BOM-DAT/CONN-DAT/2026-01-17-20-01-35.png
... ...
Binary files /dev/null and b/BOM-DAT/CONN-DAT/2026-01-17-20-01-35.png differ
BOM-DAT/CONN-DAT/2026-01-17-20-10-41.png
... ...
Binary files /dev/null and b/BOM-DAT/CONN-DAT/2026-01-17-20-10-41.png differ
BOM-DAT/CONN-DAT/2026-01-17-20-11-07.png
... ...
Binary files /dev/null and b/BOM-DAT/CONN-DAT/2026-01-17-20-11-07.png differ
BOM-DAT/CONN-DAT/conn-SMA-dat.md
... ...
@@ -1,5 +1,42 @@
1 1
2
-# Connector SMA
2
+# conn-SMA-dat
3
+
4
+Connector SMA
3 5
4 6
- more suitable to install on the plastic panel or wall by drilling a installation hole
5 7
8
+
9
+## product
10
+
11
+- [[NAN1001-dat]]
12
+
13
+
14
+## male pin == normally cable
15
+
16
+on the cable of [[NAN1001-dat]]
17
+
18
+![](2026-01-17-20-01-35.png)
19
+
20
+
21
+
22
+
23
+## female pin == normally PCB connector
24
+
25
+Vertical CONN
26
+
27
+![](2026-01-17-20-10-41.png)
28
+
29
+Flat CONN
30
+
31
+![](2026-01-17-20-11-07.png)
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+## ref
41
+
42
+- [[CONN-dat]]
... ...
\ No newline at end of file
Board-dat/MPC/MPC1056-dat/MPC1056-dat.md
... ...
@@ -6,10 +6,35 @@ https://www.electrodragon.com/product/gps-addon-shield-for-raspberry-pi-b2/
6 6
legacy wiki page - https://www.electrodragon.com/w/GPS_Addon_Shield_for_Raspberry_Pi_B2
7 7
8 8
9
+
10
+## tech
11
+
12
+- [[GPS-dat]] - [[location-dat]]
13
+
14
+- [[NEO-6-dat]] - [[NEO-7-dat]] - [[NEO-8-dat]] - [[u-blox-dat]]
15
+
16
+- [[location-dat]] - [[GNSS-dat]]
17
+
18
+- [[SX1278-dat]] - [[lora-dat]] - [[SPI-CMD-dat]]
19
+
20
+- [[SD-dat]]
21
+
22
+- [[location-dat]] - [[GNSS-dat]] - [[GPS-dat]] - [[nema-dat]]
23
+
24
+
25
+
9 26
## Dimension
10 27
11 28
![](2024-08-05-16-48-14.png)
12 29
30
+## default pin setup
31
+
32
+- 1PPS == LED / optional 27
33
+- GPS_INT == 22
34
+- SD_CS == IO8
35
+- LORA_CS == IO7
36
+- LORA_INT == DIO0 == RPI_IO4
37
+- LORA_RESET == RPI_IO17
13 38
14 39
## lora
15 40
... ...
@@ -24,8 +49,14 @@ Update Logs:
24 49
- On board jumper change to SMD soldering jumper. To ease the soldering for Lora module.
25 50
26 51
52
+
53
+
54
+
55
+
27 56
## ref
28 57
29 58
- [[lora-dat]] - [[gps-dat]] - [[memory-dat]]
30 59
31
-- [[NEO-7-dat]]
... ...
\ No newline at end of file
0
+- [[NEO-7-dat]]
1
+
2
+- [[RPI-SBC-dat]]
... ...
\ No newline at end of file
Board-dat/NAN/NAN1001-dat/NAN1001-dat.md
... ...
@@ -3,6 +3,10 @@
3 3
4 4
[GPS Magnetic Active External Antenna 3M 5Dbi](https://www.electrodragon.com/product/gps-magenatic-active-external-antenna-3m/)
5 5
6
+- [[CONN-SMA-dat]]
7
+
8
+
9
+
6 10
## Board Map
7 11
8 12
- 1575.42Mhz
Board-dat/NGS/NGS1052-dat/NGS1052-dat.md
... ...
@@ -20,8 +20,11 @@ https://www.electrodragon.com/product/neo-6m-gps-module-r2/
20 20
| 5 | PPS | clock pulse output pin |
21 21
22 22
23
+
24
+
25
+
23 26
## ref
24 27
25
-- [[GPS-dat]] - [[NEO-6M-dat]] - [[u-blox-dat]]
28
+- [[GPS-dat]] - [[NEO-6-dat]] - [[u-blox-dat]]
26 29
27 30
- [[NGS1052]]
... ...
\ No newline at end of file
Board-dat/NGS/NGS1078-dat/NGS1078-dat.md
... ...
@@ -22,8 +22,10 @@
22 22
23 23
## ref
24 24
25
-- [[ATGM336H-dat]] - [[NEO-6M-dat]] - [[NEO-M8N-dat]] - [[NEO-6N-dat]]
25
+- [[ATGM336H-dat]] - [[NEO-6-dat]] - [[NEO-M8N-dat]] - [[NEO-6N-dat]]
26 26
27 27
- [[GPS-dat]]
28 28
29
-- [[NGS1078]]
... ...
\ No newline at end of file
0
+- [[NGS1078]]
1
+
2
+
Board-dat/NWL/NWL1071-dat/NWL1071-dat.md
... ...
@@ -20,6 +20,13 @@
20 20
- D2 - D4
21 21
- D3 - GND
22 22
23
+
24
+
25
+## Apps
26
+
27
+- [[MPC1056-dat]]
28
+
29
+
23 30
## ref
24 31
25 32
- DS RA-01H - [[ra-01h_product_specification_en.pdf]]
Board-dat/NWL/NWL1074-dat/NWL1074-dat.md
... ...
@@ -1,6 +1,9 @@
1 1
2 2
# NWL1074 dat
3 3
4
+
5
+- [[MPC1056-dat]]
6
+
4 7
## Info
5 8
6 9
* Compatible with RFM95, RFW95W, RFM96W, RFM98, etc. Lead out two extra DIO3 and DIO4
... ...
@@ -9,6 +12,12 @@
9 12
10 13
size 16 x 17
11 14
15
+
16
+
17
+
18
+
19
+
20
+
12 21
## ref
13 22
14 23
- [[lora-dat]]
Chip-cn-dat/ZHONGKEWEI-dat/2026-01-17-19-09-07.png
... ...
Binary files /dev/null and b/Chip-cn-dat/ZHONGKEWEI-dat/2026-01-17-19-09-07.png differ
Chip-cn-dat/ZHONGKEWEI-dat/ATGM336H-dat.md
... ...
@@ -1,4 +1,28 @@
1 1
2 2
# ATGM336H-dat.md
3 3
4
-- datasheet == [[ZHONGKEWEI-ATGM336H-5N31.pdf]]
... ...
\ No newline at end of file
0
+
1
+## board
2
+
3
+- [[NGS1078-dat]]
4
+
5
+## info
6
+
7
+- datasheet == [[ZHONGKEWEI-ATGM336H-5N31.pdf]]
8
+
9
+- [[ZHONGKEWEI-dat]] - [[ATGM336H-dat]]
10
+
11
+- [[GNSS-dat]]
12
+
13
+
14
+## pinout
15
+
16
+![](2026-01-17-19-09-07.png)
17
+
18
+
19
+
20
+
21
+## ref
22
+
23
+- [[zhongkewei-dat]] - [[ATGM336H-dat]] - [[NGS1078-dat]]
24
+
Chip-dat/raspberry-pi-dat/RPI-SBC-dat/RPI-HDK-dat/RPI-HDK-dat.md
... ...
@@ -19,6 +19,9 @@
19 19
- [[BCM2835-dat]] - [[BCM2711-dat]]
20 20
21 21
22
+
23
+
24
+
22 25
## RPI4
23 26
24 27
- BCM2711B0: cortex-A72
... ...
@@ -42,6 +45,26 @@
42 45
- [[RK3588-dat]] - [[rocketchip-dat]]
43 46
44 47
48
+## function pins
49
+
50
+- [[RPI-pin-dat]]
51
+
52
+- [[SPI-dat]]
53
+
54
+- GPIO8 == SPI CE0
55
+- GPIO7 == SPI CE1
56
+- GPIO10 == SPI MOSI
57
+- GPIO9 == SPI MISO
58
+- GPIO11 == SPI SCLK
59
+
60
+GPIO check
61
+
62
+ root@raspberrypi:/home/pi/RPI-SDK# pinctrl get 4
63
+ 4: ip -- | lo // GPIO4 = input
64
+ root@raspberrypi:/home/pi/RPI-SDK# pinctrl get 8
65
+ 8: op -- -- | hi // GPIO8 = output
66
+ root@raspberrypi:/home/pi/RPI-SDK# pinctrl get 7
67
+ 7: op -- -- | hi // GPIO7 = output
45 68
46 69
47 70
Chip-dat/raspberry-pi-dat/RPI-SBC-dat/RPI-SBC-dat.md
... ...
@@ -43,4 +43,5 @@ All Raspberry Pi since the Model B+ can provide quite a bit more, up to 500mA to
43 43
44 44
- [[SBC-dat]]
45 45
46
-- [[RPI]]
... ...
\ No newline at end of file
0
+- [[RPI]] - [[RPI-SBC]]
1
+
Chip-dat/raspberry-pi-dat/RPI-SBC-dat/RPI-SDK-dat/RPI-SDK-dat.md
... ...
@@ -1,9 +0,0 @@
1
-
2
-# RPI-SDK-dat
3
-
4
-- [[led-rgb-panel-chip-log-dat]]
5
-
6
-
7
-- [[servo-dat]]
8
-
9
-
Chip-dat/u-blox-dat/NEO-6-dat/2026-01-17-16-21-06.png
... ...
Binary files /dev/null and b/Chip-dat/u-blox-dat/NEO-6-dat/2026-01-17-16-21-06.png differ
Chip-dat/u-blox-dat/NEO-6-dat/2026-01-17-21-48-32.png
... ...
Binary files /dev/null and b/Chip-dat/u-blox-dat/NEO-6-dat/2026-01-17-21-48-32.png differ
Chip-dat/u-blox-dat/NEO-6-dat/NEO-6-dat.md
... ...
@@ -0,0 +1,45 @@
1
+
2
+# NEO-6-dat.md
3
+
4
+- [[NEO-6-dat]] - [[NEO-7-dat]] - [[NEO-8-dat]] - [[u-blox-dat]]
5
+
6
+- [[location-dat]] - [[GNSS-dat]] - [[GPS-dat]] - [[nema-dat]]
7
+
8
+https://content.u-blox.com/sites/default/files/products/documents/NEO-6_DataSheet_%28GPS.G6-HW-09005%29.pdf
9
+
10
+![](2026-01-17-16-21-06.png)
11
+
12
+
13
+## NEO-6M
14
+
15
+- [[NGS1052-dat]]
16
+
17
+- [[MPC1056-dat]]
18
+
19
+## NEO-6M GPS Module
20
+
21
+The NEO-6M is a compact and efficient GPS receiver module from [[u-blox-dat]]. It's widely used in various applications requiring accurate positioning and navigation.
22
+
23
+**Key Features:**
24
+
25
+* **High Sensitivity:** Excellent performance even in weak signal environments.
26
+* **Low Power Consumption:** Suitable for battery-powered applications.
27
+* **Compact Size:** Easy integration into small devices.
28
+* **UART Interface:** Simple communication with microcontrollers.
29
+* **Accurate Positioning:** Provides precise location data.
30
+* **Easy to Use:** Well-documented and supported.
31
+*
32
+
33
+
34
+
35
+## SCH
36
+
37
+![](2026-01-17-21-48-32.png)
38
+
39
+- [[MAX2659-dat]] - [[RF-amplifier-dat]]
40
+
41
+
42
+
43
+## ref
44
+
45
+- [[u-blox-dat]]
... ...
\ No newline at end of file
Chip-dat/u-blox-dat/NEO-6M-dat.md
... ...
@@ -1,17 +0,0 @@
1
-
2
-# NEO-6M-dat.md
3
-
4
-- [[NGS1052-dat]]
5
-
6
-## NEO-6M GPS Module
7
-
8
-The NEO-6M is a compact and efficient GPS receiver module from [[u-blox-dat]]. It's widely used in various applications requiring accurate positioning and navigation.
9
-
10
-**Key Features:**
11
-
12
-* **High Sensitivity:** Excellent performance even in weak signal environments.
13
-* **Low Power Consumption:** Suitable for battery-powered applications.
14
-* **Compact Size:** Easy integration into small devices.
15
-* **UART Interface:** Simple communication with microcontrollers.
16
-* **Accurate Positioning:** Provides precise location data.
17
-* **Easy to Use:** Well-documented and supported.
... ...
\ No newline at end of file
Chip-dat/u-blox-dat/NEO-7-dat/2026-01-17-16-22-19.png
... ...
Binary files /dev/null and b/Chip-dat/u-blox-dat/NEO-7-dat/2026-01-17-16-22-19.png differ
Chip-dat/u-blox-dat/NEO-7-dat/2026-01-17-19-20-22.png
... ...
Binary files /dev/null and b/Chip-dat/u-blox-dat/NEO-7-dat/2026-01-17-19-20-22.png differ
Chip-dat/u-blox-dat/NEO-7-dat/NEO-7-dat.md
... ...
@@ -1,6 +1,40 @@
1 1
2 2
# NEO-7-dat.md
3 3
4
+
5
+## board
6
+
7
+- [[NGS1052-dat]]
8
+
9
+- [[MPC1056-dat]]
10
+
11
+## info
12
+
13
+https://content.u-blox.com/sites/default/files/products/documents/NEO-7_DataSheet_%28UBX-13003830%29.pdf
14
+
15
+- 15.9 x 12.1
16
+
17
+![](2026-01-17-19-20-22.png)
18
+
19
+- DDC Data if D_SEL =1 (or open)
20
+- SPI Chip Select if D_SEL = 0
21
+
22
+
23
+
24
+## function diagram
25
+
26
+![](2026-01-17-16-22-19.png)
27
+
4 28
## wiring with RPI
5 29
6
-![](2024-08-05-16-52-27.png)
... ...
\ No newline at end of file
0
+![](2024-08-05-16-52-27.png)
1
+
2
+
3
+## ref
4
+
5
+- [[NEO-6-dat]] - [[NEO-7-dat]] - [[NEO-8-dat]] - [[u-blox-dat]]
6
+
7
+- [[location-dat]] - [[GNSS-dat]]
8
+
9
+
10
+
Chip-dat/u-blox-dat/u-blox-dat.md
... ...
@@ -1,4 +1,46 @@
1 1
2 2
# u-blox-dat
3 3
4
-- [[NEO-7-dat]]
... ...
\ No newline at end of file
0
+
1
+
2
+
3
+## info
4
+
5
+- [[NEO-6-dat]] - [[NEO-7-dat]] - [[NEO-8-dat]] - [[u-blox-dat]]
6
+
7
+- [[location-dat]] - [[GNSS-dat]]
8
+
9
+- NEO-6M-001
10
+- NEO-7M-000
11
+- NEO-7N-002
12
+- NEO-M8N
13
+- NEO-M9N
14
+- NEO-M10
15
+
16
+| Feature | NEO-7M-000 | NEO-7N-002 |
17
+| ------------------------------ | ------------------------- | ------------------------- |
18
+| u-blox Series | u-blox 7 | u-blox 7 |
19
+| GNSS Support | GPS (L1 C/A) | GPS + GLONASS |
20
+| Concurrent GNSS | ❌ GPS only | ✅ GPS + GLONASS |
21
+| Time To First Fix (TTFF, cold) | ~30 s | ~29 s |
22
+| Tracking Sensitivity | −161 dBm | −161 dBm |
23
+| Navigation Sensitivity | −160 dBm | −160 dBm |
24
+| Position Accuracy | ~2.5 m CEP | ~2.0 m CEP |
25
+| Update Rate | Up to 10 Hz | Up to 10 Hz |
26
+| Channels | 56 | 56 |
27
+| Power Supply | 2.7–3.6 V | 2.7–3.6 V |
28
+| Typical Power | ~48 mW | ~52 mW |
29
+| RTC / Backup | Supported | Supported |
30
+| Antenna | Active or Passive | Active or Passive |
31
+| Interfaces | UART, USB, I²C (DDC), SPI | UART, USB, I²C (DDC), SPI |
32
+| Package | 24-pin LGA | 24-pin LGA |
33
+| Operating Temp | −40 to +85 °C | −40 to +85 °C |
34
+| Status | Older / cost-optimized | Higher performance |
35
+
36
+
37
+
38
+
39
+- [[NEO-7-dat]]
40
+
41
+
42
+
Network-dat/RF-dat/LORA-DAT/Lora-SDK-dat/Lora-SDK-dat.md
... ...
@@ -2,6 +2,10 @@
2 2
3 3
- [[Lora-HDK-dat]] - [[12P-BTB-dat]]
4 4
5
+- [[SPI-dat]] - [[SPI-CMD-dat]]
6
+
7
+
8
+
5 9
## network ID and address
6 10
7 11
For LoRa coding, the network ID and address (often called device address or node address) are typically set in the software/firmware of the device, not in the data payload or by hardware switches.
Network-dat/RF-dat/LORA-DAT/Lora-dat.md
... ...
@@ -2,6 +2,8 @@
2 2
3 3
- [[lora-hdk-dat]] - [[Lora-SDK-dat]]
4 4
5
+
6
+
5 7
legacy wiki page
6 8
- https://w.electrodragon.com/w/Lora_Tech
7 9
- https://www.electrodragon.com/w/Category:Wireless
... ...
@@ -30,6 +32,10 @@ AIT lora
30 32
31 33
- [[NWL1074-dat]] - [[NWL1075-dat]] - [[NWL1077-dat]]
32 34
35
+
36
+
37
+
38
+
33 39
## Info
34 40
35 41
- LoRa is the physical layer or in simple words is the modulation, the modem or radio, the hardware.
Network-dat/RF-dat/LORA-DAT/lora-hdk-dat/lora-hdk-dat.md
... ...
@@ -30,6 +30,26 @@
30 30
![](2025-06-23-18-19-02.png)
31 31
32 32
33
+## wiring to RPI
34
+
35
+- [[MPC1056-dat]]
36
+
37
+table
38
+
39
+ Raspberry Pi 3 (BCM) SX1278
40
+ --------------------------------
41
+ 3.3V → VCC
42
+ GND → GND
43
+ GPIO10 (MOSI) → MOSI
44
+ GPIO9 (MISO) → MISO
45
+ GPIO11 (SCLK) → SCK
46
+ GPIO7 (CS / NSS) → NSS
47
+ GPIO17 (RESET) → RESET
48
+ GPIO4 (DIO0 / INT) → DIO0
49
+
50
+
51
+
52
+
33 53
## wiring to ESP32
34 54
35 55
| Lora Module | ESP32 |
Network-dat/location-dat/GNSS-dat/GNSS-dat.md
... ...
@@ -1,6 +1,11 @@
1 1
2 2
# GNSS-dat
3 3
4
+
5
+- [[location-dat]] - [[GNSS-dat]] - [[GPS-dat]] - [[nema-dat]]
6
+
7
+## info
8
+
4 9
- [[simcom-at-sscom-location-dat]]
5 10
6 11
- [[beidou-dat]] - [[GPS-dat]] - [[GLONASS-dat]]
... ...
@@ -80,6 +85,26 @@ WARM start GNSS:
80 85
![](2025-05-20-17-08-11.png)
81 86
82 87
88
+## board
89
+
90
+- [[NGS1078-dat]] - [[NGS1052-dat]]
91
+
92
+- [[MPC1056-dat]]
93
+
94
+- [[antenna-dat]]
95
+
96
+
97
+## chip
98
+
99
+- [[GPS-dat]] - [[location-dat]]
100
+
101
+- [[NEO-6-dat]] - [[NEO-7-dat]] - [[NEO-8-dat]] - [[u-blox-dat]]
102
+
103
+- [[location-dat]] - [[GNSS-dat]]
104
+
105
+- [[ZHONGKEWEI-dat]] - [[ATGM336H-dat]] - [[NGS1078-dat]]
106
+
107
+
83 108
## commands examples
84 109
85 110
Search GPS + GLONASS:
Network-dat/location-dat/GPS-dat/GPS-dat.md
... ...
@@ -3,6 +3,10 @@
3 3
4 4
- legacy wiki page - https://w.electrodragon.com/w/Category:Location#GNSS
5 5
6
+
7
+- [[location-dat]] - [[GNSS-dat]] - [[GPS-dat]] - [[nema-dat]]
8
+
9
+
6 10
## Functions
7 11
8 12
- [[GNSS-dat]]
Network-dat/location-dat/NEMA-dat/NEMA-dat.md
... ...
@@ -1,6 +1,43 @@
1 1
2 2
# NEMA-dat
3 3
4
+
5
+
6
+## data 2
7
+
8
+- [[MPC1056-dat]]
9
+
10
+
11
+- [[location-dat]] - [[GNSS-dat]] - [[GPS-dat]] - [[nema-dat]]
12
+
13
+
14
+ $GPRMC,140037.00,A,2234.27140,N,11353.24961,E,0.455,,170126,,,D79
15
+ $GPVTG,,T,,M,0.455,N,0.844,K,D2A
16
+ $GPGGA,140037.00,2234.27140,N,11353.24961,E,2,04,1.86,80.5,M,-2.9,M,,000074
17
+ $GPGSA,A,3,05,11,12,13,,,,,,,,,6.80,1.86,6.5400
18
+ $GPGSV,3,1,09,05,51,274,43,09,09,040,,11,49,006,20,12,32,252,227F
19
+ $GPGSV,3,2,09,13,28,177,16,29,06,321,19,30,04,114,16,42,53,228,387D
20
+ $GPGSV,3,3,09,50,60,149,4F
21
+ $GPGLL,2234.27140,N,11353.24961,E,140037.00,A,D67
22
+ $GPTXT,01,01,01,NMEA unknown msg*58
23
+
24
+
25
+$GPRMC,140037.00,A,2234.27140,N,11353.24961,E,0.455,,170126,,,D*79
26
+
27
+- UTC Time: **14:00:37**
28
+- Status: **A (Valid fix)**
29
+- Latitude: **22°34.27140′ N**
30
+- Longitude: **113°53.24961′ E**
31
+- Speed: **0.455 knots ≈ 0.84 km/h**
32
+- Date: **2026-01-17**
33
+- Mode: **D (Differential GPS)**
34
+
35
+
36
+
37
+
38
+## data
39
+
40
+
4 41
AT+QGNSSRD?
5 42
+QGNSSRD: $GNRMC,075620.000,A,2234.2809,N,11353.2465,E,0.20,253.84,140525,,,A*7F
6 43
$GNVTG,253.84,T,,M,0.20,N,0.38,K,A*22
Network-dat/location-dat/location-dat.md
... ...
@@ -13,7 +13,7 @@
13 13
14 14
## companies
15 15
16
-- [[u-blox-dat]] - [[NEO-7-dat]] - [[NEO-6M-dat]]
16
+- [[u-blox-dat]] - [[NEO-7-dat]] - [[NEO-6-dat]]
17 17
18 18
- [[quectel-dat]] - [[quectel-gps-dat]] - [[quectel-GNSS-AT-dat]] - [[L86-dat]] - [[L76-dat]] - [[ED20-dat]] - [[EC20-dat]] - [[BC20-dat]]
19 19
SDK-dat/RPI-SDK-dat/RPI-SDK-dat.md
... ...
@@ -1,6 +1,18 @@
1 1
2 2
# RPI-SDK-dat
3 3
4
+
5
+# RPI-SDK-dat
6
+
7
+- [[led-rgb-panel-chip-log-dat]]
8
+
9
+
10
+- [[servo-dat]]
11
+
12
+
13
+
14
+
15
+
4 16
- [[RPI-OS-dat]]
5 17
6 18
- [[python-dat]] - [[python-error-dat]]
... ...
@@ -15,6 +27,15 @@
15 27
16 28
- [[interface-SDK-dat]] - [[SDK-dat]]
17 29
30
+
31
+## UART
32
+
33
+- [[serial-dat]]
34
+
35
+
36
+
37
+
38
+
18 39
## Usage and Software
19 40
20 41
copy file to /boot/myfiles
SDK-dat/RPI-SDK-dat/code-RPI-dat/code-RPI-dat.md
... ...
@@ -0,0 +1,3 @@
1
+
2
+# code-RPI-dat
3
+
SDK-dat/RPI-SDK-dat/code-RPI-dat/rpi-py-uart.py
... ...
@@ -0,0 +1,19 @@
1
+import serial
2
+import time
3
+
4
+# Configure the serial port for UART1 on Raspberry Pi 3
5
+# Note: Ensure UART1 is enabled in /boot/config.txt by adding dtoverlay=pi3-miniuart-bt or similar
6
+# Port: /dev/ttyS0 (UART1), Baud rate: 9600 (change as needed)
7
+ser = serial.Serial('/dev/ttyS0', 9600, timeout=1)
8
+
9
+try:
10
+ print("Reading UART data. Press Ctrl+C to stop.")
11
+ while True:
12
+ if ser.in_waiting > 0:
13
+ data = ser.readline().decode('utf-8').rstrip()
14
+ print(f"Received: {data}")
15
+ time.sleep(0.1)
16
+except KeyboardInterrupt:
17
+ print("Stopping UART read.")
18
+finally:
19
+ ser.close()
... ...
\ No newline at end of file
SDK-dat/RPI-SDK-dat/raspi-config-dat/raspi-config-dat.md
... ...
@@ -5,4 +5,14 @@ cmd: raspi-config
5 5
6 6
- enable [[SPI-dat]] for [[MPC1091-dat]], [[CAN-dat]]
7 7
8
+- [[I2C-dat]]
8 9
10
+- [[1-wire-dat]]
11
+
12
+
13
+- [[serial-dat]]
14
+
15
+
16
+## ref
17
+
18
+- [[RPI-SDK-dat]]
Tech-dat/Interface-dat/SPI-dat/SPI-CMD-dat.md
... ...
@@ -0,0 +1,53 @@
1
+
2
+# SPI-CMD-dat.md
3
+
4
+- [[raspi-config-dat]] - [[RPI-HDK-dat]]
5
+
6
+- [[lora-HDK-dat]]
7
+
8
+
9
+## demo code
10
+
11
+- [[spi-cmd-1.py]]
12
+
13
+Uses SPI (spidev)
14
+
15
+Resets SX1278
16
+
17
+Reads Version register (0x42) to verify communication
18
+
19
+Does not transmit RF (safe, non-invasive)
20
+
21
+
22
+
23
+
24
+## disable CE1
25
+
26
+
27
+When SPI is enabled:
28
+
29
+Kernel configures:
30
+
31
+GPIO8 → CE0
32
+
33
+GPIO7 → CE1
34
+
35
+
36
+
37
+Disable CE1 in device tree
38
+
39
+ sudo nano /boot/config.txt
40
+
41
+ Add: dtoverlay=spi0-1cs
42
+
43
+ Reboot.
44
+
45
+ This disables CE1 → GPIO7 becomes free.
46
+
47
+ ✔ Safe to use GPIO7 manually
48
+
49
+
50
+
51
+## ref
52
+
53
+- [[spi-dat]]
... ...
\ No newline at end of file
Tech-dat/Interface-dat/SPI-dat/SPI-dat.md
... ...
@@ -4,6 +4,8 @@
4 4
- [[74HC125-dat]] == [[logic-level-shifter-dat]]
5 5
6 6
7
+- [[RPI-HDK-dat]]
8
+
7 9
| pin | active | function | note |
8 10
| ---- | ------ | -------- | ---------- |
9 11
| CLK | | | 3-wire SPI |
Tech-dat/Interface-dat/SPI-dat/spi-cmd-1.py
... ...
@@ -0,0 +1,151 @@
1
+#!/usr/bin/env python3
2
+"""
3
+SX1278 SPI Demo - Raspberry Pi 3
4
+Pin mapping:
5
+ LORA_CS = GPIO8
6
+ LORA_INT = GPIO4 (DIO0)
7
+ LORA_RESET = GPIO17
8
+"""
9
+
10
+import spidev
11
+import time
12
+import RPi.GPIO as GPIO
13
+
14
+# =========================
15
+# PIN DEFINITIONS (BCM)
16
+# =========================
17
+LORA_CS = 8
18
+LORA_INT = 4
19
+LORA_RESET = 17
20
+
21
+# =========================
22
+# SPI CONFIG
23
+# =========================
24
+SPI_BUS = 0
25
+SPI_DEV = 0 # ignored when no_cs=True
26
+SPI_SPEED = 500000
27
+SPI_MODE = 0
28
+
29
+# =========================
30
+# SX1278 REGISTERS
31
+# =========================
32
+REG_OP_MODE = 0x01
33
+REG_VERSION = 0x42
34
+REG_IRQ_FLAGS = 0x12
35
+REG_DIO_MAPPING1 = 0x40
36
+
37
+# =========================
38
+# GPIO SETUP
39
+# =========================
40
+GPIO.setwarnings(False)
41
+GPIO.setmode(GPIO.BCM)
42
+
43
+GPIO.setup(LORA_CS, GPIO.OUT, initial=GPIO.HIGH)
44
+GPIO.setup(LORA_RESET, GPIO.OUT, initial=GPIO.HIGH)
45
+GPIO.setup(LORA_INT, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
46
+
47
+# =========================
48
+# SPI SETUP
49
+# =========================
50
+spi = spidev.SpiDev()
51
+spi.open(SPI_BUS, SPI_DEV)
52
+spi.max_speed_hz = SPI_SPEED
53
+spi.mode = SPI_MODE
54
+spi.no_cs = True # IMPORTANT: software CS
55
+
56
+# =========================
57
+# LOW LEVEL SPI
58
+# =========================
59
+def cs_low():
60
+ GPIO.output(LORA_CS, GPIO.LOW)
61
+
62
+def cs_high():
63
+ GPIO.output(LORA_CS, GPIO.HIGH)
64
+
65
+def read_reg(addr):
66
+ cs_low()
67
+ resp = spi.xfer2([addr & 0x7F, 0x00])
68
+ cs_high()
69
+ return resp[1]
70
+
71
+def write_reg(addr, val):
72
+ cs_low()
73
+ spi.xfer2([addr | 0x80, val])
74
+ cs_high()
75
+
76
+# =========================
77
+# SX1278 CONTROL
78
+# =========================
79
+def lora_reset():
80
+ GPIO.output(LORA_RESET, GPIO.LOW)
81
+ time.sleep(0.05)
82
+ GPIO.output(LORA_RESET, GPIO.HIGH)
83
+ time.sleep(0.1)
84
+
85
+def lora_set_lora_mode():
86
+ # Sleep + LoRa
87
+ write_reg(REG_OP_MODE, 0x80)
88
+ time.sleep(0.01)
89
+ # Standby + LoRa
90
+ write_reg(REG_OP_MODE, 0x81)
91
+ time.sleep(0.01)
92
+
93
+def lora_clear_irq():
94
+ write_reg(REG_IRQ_FLAGS, 0xFF)
95
+
96
+# =========================
97
+# INTERRUPT HANDLER
98
+# =========================
99
+def dio0_handler(channel):
100
+ irq = read_reg(REG_IRQ_FLAGS)
101
+ print(f"[DIO0] IRQ FLAGS = 0x{irq:02X}")
102
+ lora_clear_irq()
103
+
104
+try:
105
+ GPIO.add_event_detect(
106
+ LORA_INT,
107
+ GPIO.RISING,
108
+ callback=dio0_handler,
109
+ bouncetime=10
110
+ )
111
+ print("Interrupt detection enabled on GPIO4")
112
+except RuntimeError as e:
113
+ print(f"Warning: Failed to add edge detection: {e}")
114
+ print("Note: GPIO interrupts may require running the script with sudo")
115
+
116
+# =========================
117
+# MAIN
118
+# =========================
119
+def main():
120
+ print("SX1278 LoRa SPI Demo Start")
121
+
122
+ lora_reset()
123
+
124
+ version = read_reg(REG_VERSION)
125
+ print(f"SX1278 VERSION = 0x{version:02X}")
126
+
127
+ if version != 0x12:
128
+ print("ERROR: SX1278 not detected")
129
+ return
130
+
131
+ print("SX1278 detected successfully")
132
+
133
+ lora_set_lora_mode()
134
+ lora_clear_irq()
135
+
136
+ print("LoRa mode enabled")
137
+ print("Waiting for DIO0 interrupt (Ctrl+C to exit)")
138
+
139
+ while True:
140
+ time.sleep(1)
141
+
142
+# =========================
143
+# CLEANUP
144
+# =========================
145
+try:
146
+ main()
147
+except KeyboardInterrupt:
148
+ print("\nExit")
149
+finally:
150
+ spi.close()
151
+ GPIO.cleanup()
Tech-dat/Interface-dat/Serial-dat/Serial-dat.md
... ...
@@ -5,7 +5,7 @@
5 5
6 6
- [[serial-circuits-dat]] - [[auto-serial-dat]]
7 7
8
-
8
+- [[serial-cmd-dat]]
9 9
10 10
11 11
- [legacy wiki page](https://w.electrodragon.com/w/Serial)
... ...
@@ -142,6 +142,9 @@ Booting Mode select
142 142
143 143
144 144
145
+
146
+
147
+
145 148
## ref
146 149
software [[com-monitor-dat]]
147 150
Tech-dat/Interface-dat/Serial-dat/serial-cmd-dat/serial-cmd-dat.md
... ...
@@ -0,0 +1,35 @@
1
+
2
+# serial-cmd-dat
3
+
4
+
5
+
6
+## CMD
7
+
8
+serial output
9
+
10
+ cat /dev/serial0
11
+ cat /dev/ttyAMA0
12
+
13
+
14
+## dmesg
15
+
16
+
17
+root@raspberrypi:/home/pi/RPI-SDK# dmesg | grep -E "ttyAMA|ttyS"
18
+
19
+ [ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_hdmi=0 snd_bcm2835.enable_hdmi=0 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=06a61d06-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles cfg80211.ieee80211_regdom=GB isolcpus=3
20
+ [ 3.103080] 3f201000.serial: ttyAMA1 at MMIO 0x3f201000 (irq = 114, base_baud = 0) is a PL011 rev2
21
+ [ 3.103429] serial serial0: tty port ttyAMA1 registered
22
+
23
+
24
+
25
+Verify mapping (recommended) == ls -l /dev/serial0
26
+
27
+How to read UART now
28
+
29
+ stty -F /dev/serial0 115200 cs8 -cstopb -parenb
30
+ cat /dev/serial0
31
+
32
+
33
+## ref
34
+
35
+- [[serial-cmd-dat]]
... ...
\ No newline at end of file
Tech-dat/antenna-dat/antenna-DAT.md
... ...
@@ -1,6 +1,10 @@
1 1
2 2
# antenna-dat
3 3
4
+
5
+
6
+
7
+
4 8
- [[antenna-type-dat]] - [[antenna-design-dat]]
5 9
6 10
type of antennas by shape == [[antenna-T-dat]] - [[antenna-Whip-dat]]
Tech-dat/antenna-dat/antenna-location-dat/antenna-GNSS-dat/antenna-GNSS-dat.md
... ...
@@ -1,6 +1,14 @@
1 1
2 2
# antenna-GNSS-dat.md
3 3
4
+
5
+
6
+## product
7
+
8
+- [[NAN1001-dat]]
9
+
10
+## info
11
+
4 12
GNSS antenna are commonly using [[antenna-active-dat]]
5 13
6 14
GNSS antenna of [[A7670-dat]]
Tech-dat/memory-dat/sd-dat/2026-01-17-15-04-57.png
... ...
Binary files /dev/null and b/Tech-dat/memory-dat/sd-dat/2026-01-17-15-04-57.png differ
Tech-dat/memory-dat/sd-dat/sd-dat.md
... ...
@@ -222,7 +222,9 @@ D0~D3: 数据通过这些数据线传输。
222 222
223 223
SHELL引脚为SDMMC连接器固定引脚,此处接地处理,CD引脚用于探测SD卡是否插入,这一块悬空未使用。
224 224
225
+## SCH 5
225 226
227
+![](2026-01-17-15-04-57.png)
226 228
227 229
228 230
## test tools