Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5bce6e49c0 |
76 changed files with 175 additions and 609710 deletions
|
|
@ -1,2 +1 @@
|
||||||
stack-size-threshold = 1024
|
stack-size-threshold = 1024
|
||||||
doc-valid-idents = ["WiFi", "GeoNetworking", "QoS", ".."]
|
|
||||||
|
|
|
||||||
7
.gitignore
vendored
7
.gitignore
vendored
|
|
@ -24,10 +24,3 @@ target/
|
||||||
|
|
||||||
# Ignore .DS_Store file in mac
|
# Ignore .DS_Store file in mac
|
||||||
**/.DS_Store
|
**/.DS_Store
|
||||||
|
|
||||||
# Ignore KiCad backups and lock files
|
|
||||||
hardware/c_its-companion/c_its-companion-backups/
|
|
||||||
*.kicad_pro.lck
|
|
||||||
|
|
||||||
# Ignore FreeCAD backups
|
|
||||||
*.FCBak
|
|
||||||
|
|
|
||||||
1537
Cargo.lock
generated
1537
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
123
Cargo.toml
123
Cargo.toml
|
|
@ -3,149 +3,58 @@ edition = "2024"
|
||||||
name = "esp32-c_its-companion"
|
name = "esp32-c_its-companion"
|
||||||
rust-version = "1.88"
|
rust-version = "1.88"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
default-run = "esp32-c_its-companion"
|
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "esp32-c_its-companion"
|
name = "esp32-c_its-companion"
|
||||||
path = "./src/main.rs"
|
path = "./src/bin/main.rs"
|
||||||
|
|
||||||
[[bin]]
|
|
||||||
name = "test"
|
|
||||||
path = "./src/test.rs"
|
|
||||||
required-features = ["std", "cam"]
|
|
||||||
|
|
||||||
[features]
|
|
||||||
default = ["esp", "spat", "gnss_ubx", "screen"]
|
|
||||||
|
|
||||||
# build for ESP (needed to build test for `host-tuple`)
|
|
||||||
esp = [
|
|
||||||
"dep:esp-hal",
|
|
||||||
"dep:esp-rtos",
|
|
||||||
"dep:esp-bootloader-esp-idf",
|
|
||||||
"dep:embassy-executor",
|
|
||||||
"dep:embassy-futures",
|
|
||||||
"dep:embassy-sync",
|
|
||||||
"dep:embassy-time",
|
|
||||||
"dep:embedded-io",
|
|
||||||
"dep:embedded-io-async",
|
|
||||||
"dep:esp-alloc",
|
|
||||||
"dep:esp-backtrace",
|
|
||||||
"dep:esp-println",
|
|
||||||
"dep:esp-radio",
|
|
||||||
"dep:bt-hci",
|
|
||||||
"esp32-cits-core/esp32c5",
|
|
||||||
"esp32-cits-core/log-04",
|
|
||||||
]
|
|
||||||
std = ["c-its-parser/std", "esp32-cits-core/std"]
|
|
||||||
|
|
||||||
# enable u-blox GNSS module
|
|
||||||
gnss_ubx = ["_gnss", "_uart", "dep:ublox"]
|
|
||||||
# enable L67K GNSS module
|
|
||||||
gnss_l67k = ["_gnss", "dep:embassy_gps"]
|
|
||||||
# echo CAM data on serial
|
|
||||||
cam = ["c-its-parser/cam"]
|
|
||||||
# send CAM autonomously
|
|
||||||
cam_tx = ["c-its-parser/cam"]
|
|
||||||
# echo DENM events on serial and BLE
|
|
||||||
denm = ["c-its-parser/denm"]
|
|
||||||
# evaluate SPAT information
|
|
||||||
spat = ["c-its-parser/spatem", "c-its-parser/mapem"]
|
|
||||||
# enable some debug printing (without enabling debug logging of the ESP RTOS)
|
|
||||||
spat_debug = []
|
|
||||||
# enable ST7789 based display
|
|
||||||
screen = ["dep:mipidsi", "dep:embedded-graphics", "dep:embedded-hal-bus", "dep:profont", "dep:tinytga"]
|
|
||||||
# enable I/O via UART
|
|
||||||
uart = ["_uart", "_gnss"]
|
|
||||||
# enable I/O via BLE
|
|
||||||
ble = ["_gnss"]
|
|
||||||
|
|
||||||
# internal feature, that any UART I/O is enabled
|
|
||||||
_uart = []
|
|
||||||
# internal feature, that any GNSS source is enabled
|
|
||||||
_gnss = []
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
esp-hal = { version = "~1.1.0", optional = true, features = ["esp32c5", "log-04", "unstable"] }
|
esp-hal = { version = "~1.1.0", features = ["esp32c5", "log-04", "unstable"] }
|
||||||
|
|
||||||
esp-rtos = { version = "0.3.0", optional = true, features = [
|
esp-rtos = { version = "0.3.0", features = [
|
||||||
"embassy",
|
|
||||||
"esp-alloc",
|
"esp-alloc",
|
||||||
"esp-radio",
|
"esp-radio",
|
||||||
"embassy",
|
|
||||||
"esp32c5",
|
"esp32c5",
|
||||||
"log-04",
|
"log-04",
|
||||||
] }
|
] }
|
||||||
|
|
||||||
esp-bootloader-esp-idf = { version = "0.5.0", optional = true, features = ["esp32c5", "log-04"] }
|
esp-bootloader-esp-idf = { version = "0.5.0", features = ["esp32c5", "log-04"] }
|
||||||
log = "0.4.27"
|
log = "0.4.27"
|
||||||
|
|
||||||
critical-section = "1.2.0"
|
critical-section = "1.2.0"
|
||||||
bt-hci = { version = "0.8.0", optional = true }
|
embedded-io = "0.7.1"
|
||||||
embassy-executor = { version = "0.10.0", optional = true, features = ["log"] }
|
esp-alloc = "0.10.0"
|
||||||
embassy-futures = { version = "0.1.2", optional = true }
|
esp-backtrace = { version = "0.19.0", features = [
|
||||||
embassy-sync = { version = "0.7", optional = true }
|
|
||||||
embassy-time = { version = "0.5.0", optional = true, features = ["log"] }
|
|
||||||
embedded-io = { version = "0.7.1", optional = true }
|
|
||||||
embedded-io-async = { version = "0.7.0", optional = true }
|
|
||||||
esp-alloc = { version = "0.10.0", optional = true }
|
|
||||||
esp-backtrace = { version = "0.19.0", optional = true, features = [
|
|
||||||
"esp32c5",
|
"esp32c5",
|
||||||
|
"panic-handler",
|
||||||
"println",
|
"println",
|
||||||
] }
|
] }
|
||||||
esp-println = { version = "0.17.0", optional = true, default-features = false, features = ["colors", "critical-section", "jtag-serial", "esp32c5", "log-04"] }
|
esp-println = { version = "0.17.0", features = ["esp32c5", "log-04"] }
|
||||||
esp-radio = { version = "0.18.0", optional = true, features = [
|
esp-radio = { version = "0.18.0", features = [
|
||||||
"esp-alloc",
|
"esp-alloc",
|
||||||
"esp32c5",
|
"esp32c5",
|
||||||
"log-04",
|
"log-04",
|
||||||
"unstable",
|
"unstable",
|
||||||
"wifi",
|
"wifi",
|
||||||
"sniffer",
|
"sniffer",
|
||||||
"ble",
|
|
||||||
] }
|
] }
|
||||||
trouble-host = { version = "0.6.0", features = ["gatt", "central", "derive", "default-packet-pool"] }
|
|
||||||
static_cell = "2"
|
|
||||||
|
|
||||||
embassy_gps = { version = "0.1.0", optional = true, default-features = false, features = ["esp", "log-04"], git = "https://github.com/jbeyerstedt/embassy_gps.git", branch = "feat/rework-gpsfix" }
|
|
||||||
esp32-cits-core = { version = "0.1.0", default-features = false, git = "https://git.hamburg.ccc.de/jtbx/esp32-cits-core", branch = "main" }
|
|
||||||
embedded-hal-bus = { version = "0.3.0", optional = true }
|
|
||||||
embedded-graphics = { version = "0.8.2", optional = true }
|
|
||||||
# needs newer GN with removed bitvec dependency
|
|
||||||
c-its-parser = { version = "2.4.0", default-features = false, features = [
|
|
||||||
"time",
|
|
||||||
"geo",
|
|
||||||
"libm",
|
|
||||||
"transport",
|
|
||||||
] }
|
|
||||||
chrono = { version = "0.4.44", default-features = false, features = ["alloc"] }
|
|
||||||
crossbeam-queue = { version = "0.3.12", default-features = false, features = ["alloc"] }
|
|
||||||
geo-types = { version = "0.7.19", default-features = false }
|
|
||||||
mipidsi = { version = "0.10.0", optional = true }
|
|
||||||
num-traits = { version = "0.2.19", default-features = false, features = ["libm"] }
|
|
||||||
profont = { version = "0.7.0", optional = true }
|
|
||||||
prost = { version = "0.14", default-features = false, features = ["derive"] }
|
|
||||||
tinytga = { version = "0.5.0", optional = true }
|
|
||||||
ublox = { version = "0.10", optional = true, default-features = false, features = ["alloc", "ubx_proto27"] }
|
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
assert_float_eq = "1.2.0"
|
|
||||||
env_logger = "0.11.10"
|
|
||||||
|
|
||||||
[build-dependencies]
|
|
||||||
prost-build = "0.14"
|
|
||||||
|
|
||||||
|
|
||||||
# For fine tuning these settings, please refer to https://doc.rust-lang.org/cargo/reference/profiles.html
|
# For fine tuning these settings, please refer to https://doc.rust-lang.org/cargo/reference/profiles.html
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
# The default debug profile is too slow and too big for resource-constrained devices.
|
# The default debug profile is too slow and too big for resource-constrained devices.
|
||||||
# Always build with some optimizations enabled.
|
# Always build with some optimizations enabled.
|
||||||
opt-level = "s"
|
lto = 'fat'
|
||||||
|
debug = 1 # only limited debug info to save some space
|
||||||
|
#debug = 'line-tables-only' # only basic debug info to save some space
|
||||||
|
opt-level = 's'
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
codegen-units = 1 # LLVM can perform better optimizations using a single thread
|
codegen-units = 1 # LLVM can perform better optimizations using a single thread
|
||||||
debug = 2 # prefer slower builds but better debugging experience
|
debug = 0 # disable debug information in release builds
|
||||||
lto = 'fat'
|
lto = 'fat'
|
||||||
opt-level = 's'
|
opt-level = 's'
|
||||||
strip = "debuginfo"
|
#strip = true # strip all symbols to save even more space
|
||||||
|
|
||||||
[profile.release-dbg]
|
[profile.release-dbg]
|
||||||
inherits = "release"
|
inherits = "release"
|
||||||
|
|
|
||||||
132
Readme.md
132
Readme.md
|
|
@ -1,74 +1,13 @@
|
||||||
# ESP32-C5 C-ITS Companion/ Visualizer
|
# ESP32-C5 C-ITS Visualizer
|
||||||
|
|
||||||
Displays different C-ITS receive-only use cases for cheap.
|
Displays different C-ITS receive-only use cases for cheap.
|
||||||
|
|
||||||
## Hardware Requirements
|
|
||||||
The code is currently tailored to:
|
|
||||||
- Seeed XIAO ESP32-C5 (8MB PSRAM)
|
|
||||||
- U-Blox M10Q GNSS (connected on GPIO12 (RX), GPIO11 (TX), and GPIO25 (reset))
|
|
||||||
or Seeed XIAO L67K (connected on GPIO12 (RX), GPIO11 (TX), GPIO1 (wakeup) and GPIO25 (reset))
|
|
||||||
only available with `gnss_ubx` or `gnss_l67k` feature (which is included in `spat` feature)
|
|
||||||
- Some ST7789 240*280px screen (connected on GPIO8 (SCL/ SCK), GPIO10 (SDA/ MOSI), GPIO7 (reset), GPIO23 (DC), GPIO24 (CS), GPIO0 (BL))
|
|
||||||
only available with `screen` feature (which is included in `spat` feature)
|
|
||||||
|
|
||||||
## Features
|
|
||||||
|
|
||||||
### GNSS
|
|
||||||
Enable u-blox or L67K GNSS module and in main application logic/ state.
|
|
||||||
|
|
||||||
### SPAT
|
|
||||||
Takes the current position and heading from the GNSS receiver and displays the signal phases of the upcoming intersection.
|
|
||||||
The upcoming intersection is selected when the own position is "inside" some ingress approach of the intersection.
|
|
||||||
The display will show the current phase and remaining time for all signal groups of the bike-able lanes in the approach.
|
|
||||||
|
|
||||||
### DENM
|
|
||||||
TODO: Not implemented yet!
|
|
||||||
|
|
||||||
Shall "publish" the most relevant information of a DENMs via BLE
|
|
||||||
|
|
||||||
### CAM
|
|
||||||
Just prints a line for each received CAM.
|
|
||||||
|
|
||||||
### CAM-TX
|
|
||||||
Generates and transmits a CAM when a GNSS update was received.
|
|
||||||
Depends on the `gnss` feature.
|
|
||||||
|
|
||||||
Note: In germany, using the 5875 to 5915 MHz frequency band is only permitted for C-ITS use cases which implement transmit power reduction measures with at least 30 dB reduction range (or equivalent measures) and have a maximum EIRP of 33 dBm.
|
|
||||||
This is based on EU regulation 2014/53/EU, so it applies to other EU countries in similar ways.
|
|
||||||
The relevant harmonized standard is ETSI EN 302 571 which mandates (excerpt of most relevant points):
|
|
||||||
|
|
||||||
- a maximum power spectral density of 23 dBm/Mhz EIRP
|
|
||||||
- transmit power control (TCP) in a range from 3 dBm up to the maximum output power of the equipment
|
|
||||||
* used for CEN DSRC and HDR DSRC interference mitigation by implementing measures from ETSI TS 102 792
|
|
||||||
+ Mode A or B: Output power less than 10 dBm EIRP and less than -65 or -45 dBm/MHz EIRP in CEN DSRC band -> **needs to be measured**
|
|
||||||
+ Mode C: Maximum transmission time of less than 1 ms and at least a few 100 ms between transmission (realistically) -> **can't be ensured with big messages**
|
|
||||||
+ Mode D: "any" realistically possible transmission time, but at least 500 ms between transmissions for ~5 ITS stations/ 1000ms for 10 ITS stations -> **safe to assume when we only send CAMs at 1 Hz**
|
|
||||||
+ But modes C and D also need to:
|
|
||||||
- use protected zone information from CAM messages
|
|
||||||
- use a protected zone database, e.g. from www.asecap-pzdb.com
|
|
||||||
* used for dynamic congestion control (DCC)
|
|
||||||
+ mandatory mechanism described in ETSI EN 302 571, chapter 4.2.10
|
|
||||||
|
|
||||||
This is **not** implemented in this application!
|
|
||||||
**So legally, you're not allowed to send with this.**
|
|
||||||
|
|
||||||
### UART
|
|
||||||
Enable UART I/O protocol according to [docs/uart-protocol.md](./docs/uart-protocol.md).
|
|
||||||
|
|
||||||
### BLE
|
|
||||||
Enable BLE I/O protocol according to [docs/ble-protocol.md](./docs/ble-protocol.md).
|
|
||||||
Enabling `denm` feature or `cam` feature is recommended, otherwise no data will be received.
|
|
||||||
|
|
||||||
Note: When changing the set of supported messages on the BLE interface, you may need to turn bluetooth off and on again on your client device.
|
|
||||||
Otherwise the client may not re-scan the service's characteristics and still use the previous set of characteristics.
|
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### Toolchain Installation
|
### Toolchain Installation
|
||||||
Install the toolchain, targe and tools like this:
|
Install the toolchain, targe and tools like this:
|
||||||
|
|
||||||
```shell
|
```
|
||||||
rustup toolchain install nightly --component rust-src
|
rustup toolchain install nightly --component rust-src
|
||||||
rustup target add riscv32imac-unknown-none-elf
|
rustup target add riscv32imac-unknown-none-elf
|
||||||
|
|
||||||
|
|
@ -77,76 +16,11 @@ rustup target add riscv32imac-unknown-none-elf
|
||||||
cargo install espflash --locked
|
cargo install espflash --locked
|
||||||
```
|
```
|
||||||
|
|
||||||
(Project was setup using esp-generate with the options `--chip esp32c5 -o esp32c5-wroom-1-psram -o alloc -o log -o unstable-hal -o wifi -o esp-backtrace -o embassy -o ble-trouble`.)
|
(Project was setup using esp-generate with the options `--chip esp32c5 -o esp32c5-wroom-1 -o alloc -o vscode -o log -o unstable-hal -o wifi -o esp-backtrace`.)
|
||||||
|
|
||||||
To use the proper rustfmt features, enable the nightly toolchain:
|
|
||||||
```shell
|
|
||||||
rustup component add --toolchain nightly rustfmt
|
|
||||||
```
|
|
||||||
|
|
||||||
### Build and Flash
|
### Build and Flash
|
||||||
In default configuration only signal phases (SPAT) data is displayed for the upcoming intersection.
|
|
||||||
Additional features are available through feature flags:
|
|
||||||
|
|
||||||
- `esp`: Run on ESP (required as feature flag to enable unit tests on host)
|
|
||||||
- `std`: Run on system with `std` library
|
|
||||||
- `spat`: Enable signal phase (and intersection map) data
|
|
||||||
- `spat_debug`: Enable additional debug information for the SPAT/ GLOSA use case
|
|
||||||
- `denm`: Enable DENMs
|
|
||||||
- `cam`: Enable CAMs
|
|
||||||
- `cam_tx`: Enable CAM generation and transmission (needs time and position source)
|
|
||||||
|
|
||||||
Officially supported feature combinations are:
|
|
||||||
- `esp,spat,gnss_ubx,screen` (default features, "standalone")
|
|
||||||
- `esp,spat,gnss_ubx,screen,ble` ("standalone with BLE")
|
|
||||||
- `esp,spat,gnss_ubx,screen,cam_tx,ble` ("standalone with CAM")
|
|
||||||
- `esp,spat,gnss_ubx,screen,cam_tx,cam,denm`
|
|
||||||
- `esp,uart,cam,denm` ("smartphone companion with UART")
|
|
||||||
- `esp,ble,cam,denm,cam_tx` ("smartphone companion with BLE")
|
|
||||||
|
|
||||||
Connect your ESP32-C5 and run:
|
Connect your ESP32-C5 and run:
|
||||||
|
|
||||||
```
|
```
|
||||||
# default configuration
|
|
||||||
cargo run --release
|
cargo run --release
|
||||||
|
|
||||||
# for e.g. also enable DENM feature
|
|
||||||
cargo run --release -F denm
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Run Unit Tests on Host
|
|
||||||
The unit tests in this project are meant to be run on the host:
|
|
||||||
|
|
||||||
```
|
|
||||||
cargo test --target host-tuple --bin test --no-default-features -F std,spat
|
|
||||||
```
|
|
||||||
|
|
||||||
## PCB and Housing
|
|
||||||
A simple PCB to combine the u-blox SAM-M10Q, a XIAO ESP32-C5 and the screen can be found in [hardware/c_its-companion/](./hardware/c_its-companion/) including finished gerber files.
|
|
||||||
Additional hardware:
|
|
||||||
|
|
||||||
- SMD Pin-Header 8 pos.: Amphenol 10129380-908001BLF
|
|
||||||
- Snap-in stand-off 8mm: WE 702910000
|
|
||||||
|
|
||||||
(You may try to put the display lower with header Samtech TSM-108-04-T-SV and stand-off WE 702917000, but antenna needs to be plugged in before putting the display on then.)
|
|
||||||
|
|
||||||
The housing is a FreeCAD model at [hardware/housing/c_its-companion-housing.FCStd](./hardware/housing/c_its-companion-housing.FCStd), but the same folder also contains finished 3mf models that can be loaded into a 3D printer slicer.
|
|
||||||
Exports are available for:
|
|
||||||
|
|
||||||
- 7mm: EREMIT 654060 (6.5x40x60 mm) LiPo battery
|
|
||||||
- 9mm: Some 9x40x60 mm LiPo battery, e.g. LP803860 (2000 mAh)
|
|
||||||
|
|
||||||
The display is expected to be soldered to the pin header directly to save height.
|
|
||||||
|
|
||||||
## Tips and Tricks
|
|
||||||
|
|
||||||
### Create TGA Assets
|
|
||||||
|
|
||||||
Images are loaded as TGA assets, but shall not have an alpha channel.
|
|
||||||
You can convert them using [ImageMagick](https://imagemagick.org) like this:
|
|
||||||
```shell
|
|
||||||
# resize to 25px height, adding a black background to the white symbol and vice versa
|
|
||||||
magick Sinnbild_Radfahrer_StVO_1992-200px-white.png -resize x25 -background black -alpha background -flatten -alpha off -verbose Sinnbild_Radfahrer_StVO_1992-25px-white.tga
|
|
||||||
magick Sinnbild_Radfahrer_StVO_1992-200px-black.png -resize x25 -background white -alpha background -flatten -alpha off -verbose Sinnbild_Radfahrer_StVO_1992-25px-black.tga
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
|
||||||
40
build.rs
40
build.rs
|
|
@ -1,45 +1,7 @@
|
||||||
use std::env;
|
fn main() {
|
||||||
|
|
||||||
fn main() -> std::io::Result<()> {
|
|
||||||
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
|
|
||||||
|
|
||||||
if target_arch == "riscv32" {
|
|
||||||
linker_be_nice();
|
linker_be_nice();
|
||||||
// make sure linkall.x is the last linker script (otherwise might cause problems with flip-link)
|
// make sure linkall.x is the last linker script (otherwise might cause problems with flip-link)
|
||||||
println!("cargo:rustc-link-arg=-Tlinkall.x");
|
println!("cargo:rustc-link-arg=-Tlinkall.x");
|
||||||
}
|
|
||||||
|
|
||||||
// compile protobuf definition to rust code
|
|
||||||
let descriptor_path =
|
|
||||||
std::path::PathBuf::from(env::var("OUT_DIR").unwrap()).join("proto_descriptor.bin");
|
|
||||||
|
|
||||||
prost_build::Config::new()
|
|
||||||
.file_descriptor_set_path(&descriptor_path)
|
|
||||||
.compile_well_known_types()
|
|
||||||
.compile_protos(&["docs/c_its-messages.proto"], &["docs/"])?;
|
|
||||||
|
|
||||||
// get git revision
|
|
||||||
println!("cargo:rustc-rerun-if-changed=.git/HEAD");
|
|
||||||
|
|
||||||
// length:
|
|
||||||
// - tag name: 6-8 chars (v0.1.0 to v1.23.42)
|
|
||||||
// - offset+hash: 0-12 chars (up to 99 commits from tag + 8 char hash)
|
|
||||||
// - SUM: 6-20
|
|
||||||
let git_output = std::process::Command::new("git")
|
|
||||||
.args(["describe", "--tags", "--match", "v*", "--always"])
|
|
||||||
.output()
|
|
||||||
.unwrap();
|
|
||||||
assert!(
|
|
||||||
git_output.stderr.is_empty(),
|
|
||||||
"{}",
|
|
||||||
String::from_utf8(git_output.stderr).unwrap()
|
|
||||||
);
|
|
||||||
println!(
|
|
||||||
"cargo:rustc-env=GIT_REVISION={}",
|
|
||||||
String::from_utf8(git_output.stdout).unwrap()
|
|
||||||
);
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn linker_be_nice() {
|
fn linker_be_nice() {
|
||||||
|
|
|
||||||
|
|
@ -1,124 +0,0 @@
|
||||||
# Bluetooth LE Protocol
|
|
||||||
|
|
||||||
Some data is made available via BLE so that a smartphone app can be used to display it in other use cases.
|
|
||||||
|
|
||||||
## General
|
|
||||||
|
|
||||||
The BLE protocol contains some standardized services, but can also transport custom services.
|
|
||||||
Each service is compromised of a set of characteristics which can be read or clients can even subscribe for changes.
|
|
||||||
|
|
||||||
Sadly we can't use any of the standardized service/ profiles to transmit V2X data.
|
|
||||||
Even notifications about DENMs can't be transmitted since the Alert Notification Profile is only meant for the companion device to query notifications from the phone, but not the other way around.
|
|
||||||
|
|
||||||
So we will only use the Device Information Service to announce ourselves and use a custom service for everything else.
|
|
||||||
|
|
||||||
## V2X BLE Service
|
|
||||||
|
|
||||||
V2X data is exposed via the service UUID `c0b70000-d4f4-4000-ada8-f99a02ee315c` (randomly generated UUID, with byte 3 and 4 set to zero) using the following characteristics:
|
|
||||||
|
|
||||||
UUID | Type | Description
|
|
||||||
------------------------------------- | --------------- | -----------
|
|
||||||
c0b70001-d4f4-4001-ada8-f99a02ee315c | `PositionState` | Set position from external source
|
|
||||||
c0b70001-d4f4-4002-ada8-f99a02ee315c | `RawNotify` | Raw message notification
|
|
||||||
c0b70001-d4f4-4003-ada8-f99a02ee315c | `RawMsgRx` | Raw CAM message (de-duplicated/ rate-limited)
|
|
||||||
c0b70001-d4f4-4004-ada8-f99a02ee315c | `CamEvent` | Latest received CAM
|
|
||||||
c0b70001-d4f4-4005-ada8-f99a02ee315c | `RawMsgRx` | Raw DENM message (de-duplicated/ rate-limited)
|
|
||||||
c0b70001-d4f4-4006-ada8-f99a02ee315c | `DenmEvent` | Latest received DENM
|
|
||||||
c0b70001-d4f4-4007-ada8-f99a02ee315c | `RawMsgRx` | Raw MAPEM message (de-duplicated/ rate-limited)
|
|
||||||
c0b70001-d4f4-4008-ada8-f99a02ee315c | `RawMsgRx` | Raw SPATEM message (de-duplicated/ rate-limited)
|
|
||||||
|
|
||||||
Since a modern BLE notification can only fit up tp 251 bytes of payload, the raw messages can only be polled.
|
|
||||||
Please subscribe to `c0b70001-d4f4-4002-ada8-f99a02ee315c` and use the message ID to determine from which service to read the incoming value.
|
|
||||||
|
|
||||||
## Message Format
|
|
||||||
|
|
||||||
Messages are encoded according to the [Protocol Buffers](https://protobuf.dev/) specification since it provides decent binary size and has parser libraries for many programming languages.
|
|
||||||
All data types are defined in one `.proto` file: [c_its-messages.proto](./c_its-messages.proto).
|
|
||||||
|
|
||||||
### Position State Input
|
|
||||||
|
|
||||||
When there's no GNSS receiver connected to the ESP, position, heading and speed information can be set using a `PositionState` message (see [c_its-messages.proto](./c_its-messages.proto)).
|
|
||||||
|
|
||||||
Maximum message size (assuming realistic value ranges):
|
|
||||||
|
|
||||||
field name | tag size | (max.) data size
|
|
||||||
----------------- | -------- | ---------
|
|
||||||
timestamp_ms | 1 | 8 (I64)
|
|
||||||
position | 1 | 1 (LEN(10)) + sub-fields below
|
|
||||||
\+ latitude_deg | 1 | 4 (I32)
|
|
||||||
\+ longitude_deg | 1 | 4 (I32)
|
|
||||||
heading | 1 | 2 (VARINT(3600))
|
|
||||||
speed | 1 | 2 (VARINT(~163 m/s))
|
|
||||||
**SUM** | 6 + | 21 = 27 byte
|
|
||||||
|
|
||||||
|
|
||||||
### DENM Event
|
|
||||||
|
|
||||||
Each received DENM will be "published" as a `DenmEvent` message (see [c_its-messages.proto](./c_its-messages.proto)).
|
|
||||||
Repetitions of the same message (e.g. no changes to the validity timeframe and location) may be dropped by the BLE server.
|
|
||||||
|
|
||||||
Maximum message size (assuming realistic value ranges):
|
|
||||||
|
|
||||||
field name | tag size | (max.) data size
|
|
||||||
----------------- | -------- | ---------
|
|
||||||
timestamp | 1 | 8 (I64)
|
|
||||||
validity_end_ts | 1 | 8 (I64)
|
|
||||||
station_id | 1 | 8 (I64)
|
|
||||||
seq_num | 1 | 3 (VARINT(65535))
|
|
||||||
event_position | 1 | 1 (LEN(10)) + sub-fields below
|
|
||||||
\+ latitude_deg | 1 | 4 (I32)
|
|
||||||
\+ longitude_deg | 1 | 4 (I32)
|
|
||||||
event_heading_deg | 1 | 1 (VARINT(360))
|
|
||||||
direction | 1 | 1 (VARINT(3))
|
|
||||||
cause_code | 1 | 1 (VARINT(127))
|
|
||||||
sub_cause_code | 1 | 1 (VARINT(127))
|
|
||||||
**SUM** | 11 + | 40 = 51 byte
|
|
||||||
|
|
||||||
Note: Cause code and sub-cause code are technically 0..255 in the ASN.1 spec, but that's mainly to ensure backwards-compatibility of the CHOICE with the old wire format.
|
|
||||||
Realistically only cause codes up to 100 are defined and common sub-cause codes use values up to 22.
|
|
||||||
|
|
||||||
### CAM Event
|
|
||||||
|
|
||||||
Each received (low-frequency) CAM will be "published" as a `CamEvent` message (see [c_its-messages.proto](./c_its-messages.proto)).
|
|
||||||
|
|
||||||
Maximum message size (assuming realistic value ranges):
|
|
||||||
|
|
||||||
field name | tag size | (max.) data size
|
|
||||||
--------------------- | -------- | ---------
|
|
||||||
station_id | 1 | 8 (I64)
|
|
||||||
station_type | 1 | 1 (VARINT(15))
|
|
||||||
position | 1 | 1 (LEN(10)) + sub-fields below
|
|
||||||
\+ latitude_deg | 1 | 4 (I32)
|
|
||||||
\+ longitude_deg | 1 | 4 (I32)
|
|
||||||
vehicle_role | 1 | 1 (VARINT(15))
|
|
||||||
vehicle_data | 1 | 1 (LEN(11)) + sub-fields below
|
|
||||||
\+ heading_deg | 1 | 2 (VARINT(360))
|
|
||||||
\+ speed | 1 | 2 (VARINT(~163 m/s))
|
|
||||||
\+ vehicle_length_dm | 1 | 2 (VARINT(1023))
|
|
||||||
\+ vehicle_width_dm | 1 | 1 (VARINT(62))
|
|
||||||
**SUM** | 11 + | 27 = 38 byte
|
|
||||||
|
|
||||||
### Raw Received Message
|
|
||||||
|
|
||||||
Received V2X messages will be "published" as a `RawMsgRx` message (see [c_its-messages.proto](./c_its-messages.proto)).
|
|
||||||
Repetitions of the same message should be dropped by the BLE server.
|
|
||||||
Consecutive messages with no relevant changes may be dropped by the BLE server while keeping some minimal publishing rate, e.g.:
|
|
||||||
- only publish MAPEMs every 10 seconds (since content doesn't change, but client may be restarted after first MAPEM from an intersection was received)
|
|
||||||
- drop high-frequency CAMs (only publish "full" CAMs which include the low-frequency container)
|
|
||||||
|
|
||||||
Maximum message size (assuming realistic value ranges):
|
|
||||||
|
|
||||||
field name | tag size | (max.) data size
|
|
||||||
--------------------- | -------- | ---------
|
|
||||||
msg_type | 1 | 1 (VARINT(21))
|
|
||||||
payload | 1 | 2+1394 (LEN(1394) + payload)
|
|
||||||
**SUM** | 2 + | 1397 = 1399 byte
|
|
||||||
|
|
||||||
### Raw Message Notification
|
|
||||||
|
|
||||||
Maximum message size (assuming realistic value ranges):
|
|
||||||
|
|
||||||
field name | tag size | (max.) data size
|
|
||||||
--------------------- | -------- | ---------
|
|
||||||
msg_type | 1 | 1 (VARINT(21))
|
|
||||||
**SUM** | 1 + | 1 = 2 byte
|
|
||||||
|
|
@ -1,126 +0,0 @@
|
||||||
syntax = "proto2";
|
|
||||||
|
|
||||||
package c_its_io;
|
|
||||||
|
|
||||||
// ------------------------------
|
|
||||||
// Data Types
|
|
||||||
// ------------------------------
|
|
||||||
|
|
||||||
message Position {
|
|
||||||
required float latitude_deg = 1;
|
|
||||||
required float longitude_deg = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum TrafficDir {
|
|
||||||
// for all directions of traffic
|
|
||||||
ALL_DIRECTIONS = 0;
|
|
||||||
// for the direction of traffic according to the reference direction, and the portion of traffic upstream of the reference position
|
|
||||||
UPSTREAM = 1;
|
|
||||||
// for the direction of traffic according to the reference direction, and the portion of traffic downstream of the reference position
|
|
||||||
DOWNSTREAM = 2;
|
|
||||||
// for the direction of traffic opposite to the reference direction
|
|
||||||
OPPOSITE = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message VehicleContainer {
|
|
||||||
optional uint32 heading_deg = 1; // vehicle heading in degrees, if not "unavailable"
|
|
||||||
optional uint32 speed = 2; // vehicle speed in 1/100 m/s, if not "unavailable"
|
|
||||||
optional uint32 vehicle_length_dm = 3; // vehicle length in 1/10 m, if not "unavailable"
|
|
||||||
optional uint32 vehicle_width_dm = 4; // vehicle width in 1/10 m, if not "unavailable"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// GeoNetworking Destination Area Shape
|
|
||||||
enum GNAreaShape {
|
|
||||||
ETSI_AREASHAPE_CIRCLE = 0;
|
|
||||||
ETSI_AREASHAPE_RECTANGLE = 1;
|
|
||||||
ETSI_AREASHAPE_ELLIPSIS = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// GeoNetworking Destination Area/ Source Position
|
|
||||||
message ITSPosition {
|
|
||||||
required int32 latitude = 1; // Latitude in 1/10th of micro degrees
|
|
||||||
required int32 longitude = 2; // Longitude in 1/10th of micro degrees
|
|
||||||
}
|
|
||||||
|
|
||||||
// GeoNetworking Destination Area
|
|
||||||
message GNArea {
|
|
||||||
optional GNAreaShape area = 1;
|
|
||||||
optional ITSPosition position = 2;
|
|
||||||
optional int32 distA = 3; // Distance A of the geometric shape in meters
|
|
||||||
optional int32 distB = 4; // Distance B of the geometric shape in meters, mandatory for rectangle and ellipsis
|
|
||||||
optional int32 angle = 5; // Angle of the geometric shape in degrees, mandatory for rectangle and ellipsis
|
|
||||||
}
|
|
||||||
|
|
||||||
// GeoNetworking Transport
|
|
||||||
enum GNTransport {
|
|
||||||
GN_TRANSPORT_GAC = 3; // Geographically-Scoped Anycast
|
|
||||||
GN_TRANSPORT_GBC = 4; // Geographically-Scoped broadcast
|
|
||||||
GN_TRANSPORT_TSB = 5; // Topologically-scoped broadcast
|
|
||||||
GN_TRANSPORT_SHB = 7; // Single hop broadcast
|
|
||||||
}
|
|
||||||
|
|
||||||
message RawMsgTx {
|
|
||||||
required bytes payload = 1; // as UPER
|
|
||||||
required uint32 message_type = 2; // ITS `MessageId` integer value
|
|
||||||
|
|
||||||
required GNTransport gnTransport = 3;
|
|
||||||
required GNArea gnArea = 4;
|
|
||||||
required uint32 hopLimit = 5;
|
|
||||||
|
|
||||||
optional uint32 stationType = 6; // for source position vector
|
|
||||||
}
|
|
||||||
|
|
||||||
message RawNotify {
|
|
||||||
required uint32 message_type = 1; // ITS `MessageId` integer value
|
|
||||||
}
|
|
||||||
|
|
||||||
// ------------------------------
|
|
||||||
// Messages
|
|
||||||
// ------------------------------
|
|
||||||
|
|
||||||
message PositionState {
|
|
||||||
required sfixed64 timestamp_ms = 1; // current UNIX time in milliseconds
|
|
||||||
required Position position = 2;
|
|
||||||
optional uint32 heading = 3; // heading in 1/10 deg
|
|
||||||
optional uint32 speed = 4; // speed in 1/100 m/s
|
|
||||||
}
|
|
||||||
|
|
||||||
message DenmEvent {
|
|
||||||
required fixed64 timestamp = 1; // DENM reference time as UNIX time (in seconds)
|
|
||||||
required fixed64 validity_end_ts = 2; // UNIX time when event validity ends (from denm.management.validityDuration)
|
|
||||||
required fixed32 station_id = 3; // unique ID of the event when combined with `seq_num`
|
|
||||||
required uint32 seq_num = 4; // unique ID of the event when combined with `station_id`
|
|
||||||
optional Position event_position = 5; // event location (from denm.management.eventPosition)
|
|
||||||
optional uint32 event_heading_deg = 6; // event heading (from denm.location.eventPositionHeading)
|
|
||||||
optional TrafficDir direction = 7; // relevance traffic direction (from denm.management.trafficDirection)
|
|
||||||
optional uint32 cause_code = 8;
|
|
||||||
optional uint32 sub_cause_code = 9;
|
|
||||||
}
|
|
||||||
|
|
||||||
message CamEvent {
|
|
||||||
required fixed32 station_id = 1; // Station ID of the vehicle
|
|
||||||
required uint32 station_type = 2; // ITS `StationType`
|
|
||||||
required Position position = 3; // vehicle position
|
|
||||||
optional uint32 vehicle_role = 4; // ITS `VehicleRole`
|
|
||||||
optional VehicleContainer vehicle_data = 5; // speed, etc unless CAM contains an RSU container
|
|
||||||
}
|
|
||||||
|
|
||||||
message RawMsgRx {
|
|
||||||
required uint32 msg_type = 1; // ITS message type (`MessageId` from PDU header)
|
|
||||||
required bytes payload = 2; // UPER message with Geonetworking and BTP headers
|
|
||||||
}
|
|
||||||
|
|
||||||
message SerialOutputMsg {
|
|
||||||
oneof payload {
|
|
||||||
DenmEvent denm = 1;
|
|
||||||
RawMsgRx rx_msg = 2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
message SerialInputMsg {
|
|
||||||
oneof payload {
|
|
||||||
PositionState position = 1;
|
|
||||||
RawMsgTx tx_msg = 2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
# UART Protocol
|
|
||||||
|
|
||||||
If enabled using the `TODO` feature flag, all received messages are transmitted on UART using the protocol described in this document.
|
|
||||||
The serial communication can also be used to send V2X data.
|
|
||||||
|
|
||||||
## Message Format
|
|
||||||
|
|
||||||
The UART communication is using a custom framing protocol to encapsulate binary messages.
|
|
||||||
The payload is:
|
|
||||||
|
|
||||||
- a `SerialOutputMsg` for transmissions from the ESP to the host or
|
|
||||||
- a `SerialInputMsg` for transmissions from the host to the ESP
|
|
||||||
|
|
||||||
in binary [Proto](https://protobuf.dev/) serialization according to the [c_its-messages.proto](./c_its-messages.proto) definition.
|
|
||||||
|
|
||||||
Each transmission:
|
|
||||||
- starts with a Start of Frame (SOF) sequence: `0x56, 0x32, 0x58, 0x2B` ("V2X+")
|
|
||||||
- followed by a 16-bit big-endian length field
|
|
||||||
- followed by the payload
|
|
||||||
- followed by an End of Frame (EOF) sequence `0x0d, 0x0a`
|
|
||||||
|
|
@ -1,75 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
## Build/ Test/ Clippy all supported feature permutations
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
mode=${1:-help}
|
|
||||||
extended=${2:-false}
|
|
||||||
|
|
||||||
|
|
||||||
features_base=(
|
|
||||||
spat,gnss_ubx,screen # "standalone" simple
|
|
||||||
spat,gnss_ubx,screen,ble # "standalone" with BLE
|
|
||||||
spat,gnss_ubx,screen,ble,cam_tx # "standalone" with CAM
|
|
||||||
spat,gnss_ubx,screen,cam_tx,cam,denm
|
|
||||||
uart,cam,denm # "smartphone companion with UART"
|
|
||||||
ble,cam,denm,cam_tx # "smartphone companion with BLE"
|
|
||||||
)
|
|
||||||
features_more=(
|
|
||||||
uart,ble,cam,denm
|
|
||||||
spat,gnss_ubx,screen,cam_tx
|
|
||||||
spat,gnss_ubx,screen,cam,denm
|
|
||||||
spat,gnss_ubx,screen,cam_tx,cam,denm
|
|
||||||
gnss_ubx,screen,cam_tx,cam,denm
|
|
||||||
)
|
|
||||||
features_test=(
|
|
||||||
spat,cam,denm,uart
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
runBuild () {
|
|
||||||
for feat in "${features[@]}"; do
|
|
||||||
echo "cargo build for $feat ..."
|
|
||||||
cargo build --release --no-default-features -F esp,$feat
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
runTest () {
|
|
||||||
for feat in "${features_test[@]}"; do
|
|
||||||
echo "cargo test for $feat ..."
|
|
||||||
cargo test --target host-tuple --bin test --no-default-features -F std,$feat
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
runClippy () {
|
|
||||||
for feat in "${features[@]}"; do
|
|
||||||
echo "clippy for $feat ..."
|
|
||||||
cargo clippy --no-default-features -F esp,$feat -- -Wclippy::pedantic
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ $extended == "--more" ]; then
|
|
||||||
echo "running with extended feature list"
|
|
||||||
features=( "${features_base[@]}" "${features_more[@]}" )
|
|
||||||
else
|
|
||||||
echo "running standard feature list"
|
|
||||||
features=( "${features_base[@]}" )
|
|
||||||
fi
|
|
||||||
|
|
||||||
case $mode in
|
|
||||||
build)
|
|
||||||
runBuild
|
|
||||||
;;
|
|
||||||
clippy)
|
|
||||||
runClippy
|
|
||||||
;;
|
|
||||||
test)
|
|
||||||
runTest
|
|
||||||
;;
|
|
||||||
all)
|
|
||||||
runBuild
|
|
||||||
runClippy
|
|
||||||
runTest
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Usage: $0 [build | clippy | test | all] [--more]"
|
|
||||||
esac
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 145 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 142 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 117 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 147 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 122 KiB |
File diff suppressed because it is too large
Load diff
|
|
@ -1,138 +0,0 @@
|
||||||
{
|
|
||||||
"board": {
|
|
||||||
"active_layer": 0,
|
|
||||||
"active_layer_preset": "",
|
|
||||||
"auto_track_width": true,
|
|
||||||
"hidden_netclasses": [],
|
|
||||||
"hidden_nets": [],
|
|
||||||
"high_contrast_mode": 0,
|
|
||||||
"net_color_mode": 1,
|
|
||||||
"opacity": {
|
|
||||||
"images": 0.6,
|
|
||||||
"pads": 1.0,
|
|
||||||
"shapes": 1.0,
|
|
||||||
"tracks": 1.0,
|
|
||||||
"vias": 1.0,
|
|
||||||
"zones": 0.6
|
|
||||||
},
|
|
||||||
"prototype_zone_fills": false,
|
|
||||||
"selection_filter": {
|
|
||||||
"dimensions": true,
|
|
||||||
"footprints": true,
|
|
||||||
"graphics": true,
|
|
||||||
"keepouts": true,
|
|
||||||
"lockedItems": false,
|
|
||||||
"otherItems": true,
|
|
||||||
"pads": true,
|
|
||||||
"text": true,
|
|
||||||
"tracks": true,
|
|
||||||
"vias": true,
|
|
||||||
"zones": true
|
|
||||||
},
|
|
||||||
"visible_items": [
|
|
||||||
"vias",
|
|
||||||
"footprint_text",
|
|
||||||
"footprint_anchors",
|
|
||||||
"ratsnest",
|
|
||||||
"grid",
|
|
||||||
"footprints_front",
|
|
||||||
"footprints_back",
|
|
||||||
"footprint_values",
|
|
||||||
"footprint_references",
|
|
||||||
"tracks",
|
|
||||||
"drc_errors",
|
|
||||||
"drawing_sheet",
|
|
||||||
"bitmaps",
|
|
||||||
"pads",
|
|
||||||
"zones",
|
|
||||||
"drc_warnings",
|
|
||||||
"drc_exclusions",
|
|
||||||
"locked_item_shadows",
|
|
||||||
"conflict_shadows",
|
|
||||||
"shapes",
|
|
||||||
"board_outline_area",
|
|
||||||
"ly_points"
|
|
||||||
],
|
|
||||||
"visible_layers": "ffffffff_ffffffff_ffffffff_ffffffff",
|
|
||||||
"zone_display_mode": 0
|
|
||||||
},
|
|
||||||
"git": {
|
|
||||||
"integration_disabled": false,
|
|
||||||
"repo_type": "",
|
|
||||||
"repo_username": "",
|
|
||||||
"ssh_key": ""
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"filename": "c_its-companion.kicad_prl",
|
|
||||||
"version": 5
|
|
||||||
},
|
|
||||||
"net_inspector_panel": {
|
|
||||||
"col_hidden": [
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
false
|
|
||||||
],
|
|
||||||
"col_order": [
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
2,
|
|
||||||
3,
|
|
||||||
4,
|
|
||||||
5,
|
|
||||||
6,
|
|
||||||
7,
|
|
||||||
8,
|
|
||||||
9
|
|
||||||
],
|
|
||||||
"col_widths": [
|
|
||||||
156,
|
|
||||||
141,
|
|
||||||
103,
|
|
||||||
71,
|
|
||||||
103,
|
|
||||||
103,
|
|
||||||
103,
|
|
||||||
74,
|
|
||||||
103,
|
|
||||||
103
|
|
||||||
],
|
|
||||||
"custom_group_rules": [],
|
|
||||||
"expanded_rows": [],
|
|
||||||
"filter_by_net_name": true,
|
|
||||||
"filter_by_netclass": true,
|
|
||||||
"filter_text": "",
|
|
||||||
"group_by_constraint": false,
|
|
||||||
"group_by_netclass": false,
|
|
||||||
"show_time_domain_details": false,
|
|
||||||
"show_unconnected_nets": false,
|
|
||||||
"show_zero_pad_nets": false,
|
|
||||||
"sort_ascending": true,
|
|
||||||
"sorting_column": 0
|
|
||||||
},
|
|
||||||
"open_jobsets": [],
|
|
||||||
"project": {
|
|
||||||
"files": []
|
|
||||||
},
|
|
||||||
"schematic": {
|
|
||||||
"hierarchy_collapsed": [],
|
|
||||||
"selection_filter": {
|
|
||||||
"graphics": true,
|
|
||||||
"images": true,
|
|
||||||
"labels": true,
|
|
||||||
"lockedItems": false,
|
|
||||||
"otherItems": true,
|
|
||||||
"pins": true,
|
|
||||||
"ruleAreas": true,
|
|
||||||
"symbols": true,
|
|
||||||
"text": true,
|
|
||||||
"wires": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,780 +0,0 @@
|
||||||
{
|
|
||||||
"board": {
|
|
||||||
"3dviewports": [
|
|
||||||
{
|
|
||||||
"name": "ISO-back",
|
|
||||||
"ww": 1.0,
|
|
||||||
"wx": 23.768348693847656,
|
|
||||||
"wy": 1.82621169090271,
|
|
||||||
"wz": -13.010103225708008,
|
|
||||||
"xw": 0.0,
|
|
||||||
"xx": -0.6424655318260193,
|
|
||||||
"xy": 0.5901128053665161,
|
|
||||||
"xz": -0.4888812303543091,
|
|
||||||
"yw": 0.0,
|
|
||||||
"yx": 0.7663145065307617,
|
|
||||||
"yy": 0.49455612897872925,
|
|
||||||
"yz": -0.41009292006492615,
|
|
||||||
"zw": 0.0,
|
|
||||||
"zx": -0.00022190232994034886,
|
|
||||||
"zy": -0.638107419013977,
|
|
||||||
"zz": -0.7699472904205322
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "ISO-front",
|
|
||||||
"ww": 1.0,
|
|
||||||
"wx": 4.608643054962158,
|
|
||||||
"wy": 18.730253219604492,
|
|
||||||
"wz": -27.170215606689453,
|
|
||||||
"xw": 0.0,
|
|
||||||
"xx": 0.6427879333496094,
|
|
||||||
"xy": -0.5868241190910339,
|
|
||||||
"xz": 0.49240362644195557,
|
|
||||||
"yw": 0.0,
|
|
||||||
"yx": 0.7660443186759949,
|
|
||||||
"yy": 0.4924042820930481,
|
|
||||||
"yz": -0.4131760001182556,
|
|
||||||
"zw": 0.0,
|
|
||||||
"zx": -2.1759660739917308e-08,
|
|
||||||
"zy": 0.6427874565124512,
|
|
||||||
"zz": 0.7660446763038635
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "ISO-front-sideways",
|
|
||||||
"ww": 1.0,
|
|
||||||
"wx": 12.766021728515625,
|
|
||||||
"wy": 18.745622634887695,
|
|
||||||
"wz": -19.07516098022461,
|
|
||||||
"xw": 0.0,
|
|
||||||
"xx": 0.3144621253013611,
|
|
||||||
"xy": -0.9000988006591797,
|
|
||||||
"xz": 0.30155274271965027,
|
|
||||||
"yw": 0.0,
|
|
||||||
"yx": 0.9491636157035828,
|
|
||||||
"yy": 0.29337260127067566,
|
|
||||||
"yz": -0.11412015557289124,
|
|
||||||
"zw": 0.0,
|
|
||||||
"zx": 0.014252186752855778,
|
|
||||||
"zy": 0.32210931181907654,
|
|
||||||
"zz": 0.9465939402580261
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"design_settings": {
|
|
||||||
"defaults": {
|
|
||||||
"apply_defaults_to_fp_barcodes": false,
|
|
||||||
"apply_defaults_to_fp_dimensions": false,
|
|
||||||
"apply_defaults_to_fp_fields": false,
|
|
||||||
"apply_defaults_to_fp_shapes": false,
|
|
||||||
"apply_defaults_to_fp_text": false,
|
|
||||||
"board_outline_line_width": 0.05,
|
|
||||||
"copper_line_width": 0.2,
|
|
||||||
"copper_text_italic": false,
|
|
||||||
"copper_text_size_h": 1.5,
|
|
||||||
"copper_text_size_v": 1.5,
|
|
||||||
"copper_text_thickness": 0.3,
|
|
||||||
"copper_text_upright": false,
|
|
||||||
"courtyard_line_width": 0.05,
|
|
||||||
"dimension_precision": 4,
|
|
||||||
"dimension_units": 3,
|
|
||||||
"dimensions": {
|
|
||||||
"arrow_length": 1270000,
|
|
||||||
"extension_offset": 500000,
|
|
||||||
"keep_text_aligned": true,
|
|
||||||
"suppress_zeroes": true,
|
|
||||||
"text_position": 0,
|
|
||||||
"units_format": 0
|
|
||||||
},
|
|
||||||
"fab_line_width": 0.1,
|
|
||||||
"fab_text_italic": false,
|
|
||||||
"fab_text_size_h": 1.0,
|
|
||||||
"fab_text_size_v": 1.0,
|
|
||||||
"fab_text_thickness": 0.15,
|
|
||||||
"fab_text_upright": false,
|
|
||||||
"other_line_width": 0.1,
|
|
||||||
"other_text_italic": false,
|
|
||||||
"other_text_size_h": 1.0,
|
|
||||||
"other_text_size_v": 1.0,
|
|
||||||
"other_text_thickness": 0.15,
|
|
||||||
"other_text_upright": false,
|
|
||||||
"pads": {
|
|
||||||
"drill": 0.8,
|
|
||||||
"height": 1.27,
|
|
||||||
"width": 1.27
|
|
||||||
},
|
|
||||||
"silk_line_width": 0.1,
|
|
||||||
"silk_text_italic": false,
|
|
||||||
"silk_text_size_h": 1.0,
|
|
||||||
"silk_text_size_v": 1.0,
|
|
||||||
"silk_text_thickness": 0.1,
|
|
||||||
"silk_text_upright": false,
|
|
||||||
"zones": {
|
|
||||||
"border_display_style": 2,
|
|
||||||
"border_hatch_pitch": 0.5,
|
|
||||||
"corner_radius": 0.0,
|
|
||||||
"corner_smoothing": 0,
|
|
||||||
"fill_mode": 0,
|
|
||||||
"hatch_gap": 1.5,
|
|
||||||
"hatch_orientation": 0.0,
|
|
||||||
"hatch_smoothing_level": 0,
|
|
||||||
"hatch_smoothing_value": 0.1,
|
|
||||||
"hatch_thickness": 1.0,
|
|
||||||
"min_clearance": 0.5,
|
|
||||||
"min_island_area": 10.0,
|
|
||||||
"min_thickness": 0.25,
|
|
||||||
"pad_connection": 1,
|
|
||||||
"remove_islands": 0,
|
|
||||||
"thermal_relief_gap": 0.5,
|
|
||||||
"thermal_relief_spoke_width": 0.5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"diff_pair_dimensions": [
|
|
||||||
{
|
|
||||||
"gap": 0.0,
|
|
||||||
"via_gap": 0.0,
|
|
||||||
"width": 0.0
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"drc_exclusions": [],
|
|
||||||
"meta": {
|
|
||||||
"version": 2
|
|
||||||
},
|
|
||||||
"rule_severities": {
|
|
||||||
"annular_width": "error",
|
|
||||||
"clearance": "error",
|
|
||||||
"connection_width": "warning",
|
|
||||||
"copper_edge_clearance": "error",
|
|
||||||
"copper_sliver": "warning",
|
|
||||||
"courtyards_overlap": "error",
|
|
||||||
"creepage": "error",
|
|
||||||
"diff_pair_gap_out_of_range": "error",
|
|
||||||
"diff_pair_uncoupled_length_too_long": "error",
|
|
||||||
"drill_out_of_range": "error",
|
|
||||||
"duplicate_footprints": "warning",
|
|
||||||
"extra_footprint": "warning",
|
|
||||||
"footprint": "error",
|
|
||||||
"footprint_filters_mismatch": "ignore",
|
|
||||||
"footprint_symbol_field_mismatch": "warning",
|
|
||||||
"footprint_symbol_mismatch": "warning",
|
|
||||||
"footprint_type_mismatch": "ignore",
|
|
||||||
"hole_clearance": "error",
|
|
||||||
"hole_to_hole": "warning",
|
|
||||||
"holes_co_located": "warning",
|
|
||||||
"invalid_outline": "error",
|
|
||||||
"isolated_copper": "warning",
|
|
||||||
"item_on_disabled_layer": "error",
|
|
||||||
"items_not_allowed": "error",
|
|
||||||
"length_out_of_range": "error",
|
|
||||||
"lib_footprint_issues": "warning",
|
|
||||||
"lib_footprint_mismatch": "warning",
|
|
||||||
"malformed_courtyard": "error",
|
|
||||||
"microvia_drill_out_of_range": "error",
|
|
||||||
"mirrored_text_on_front_layer": "warning",
|
|
||||||
"missing_courtyard": "ignore",
|
|
||||||
"missing_footprint": "warning",
|
|
||||||
"missing_tuning_profile": "warning",
|
|
||||||
"net_conflict": "warning",
|
|
||||||
"nonmirrored_text_on_back_layer": "warning",
|
|
||||||
"npth_inside_courtyard": "error",
|
|
||||||
"padstack": "warning",
|
|
||||||
"pth_inside_courtyard": "error",
|
|
||||||
"shorting_items": "error",
|
|
||||||
"silk_edge_clearance": "warning",
|
|
||||||
"silk_over_copper": "warning",
|
|
||||||
"silk_overlap": "warning",
|
|
||||||
"skew_out_of_range": "error",
|
|
||||||
"solder_mask_bridge": "error",
|
|
||||||
"starved_thermal": "error",
|
|
||||||
"text_height": "warning",
|
|
||||||
"text_on_edge_cuts": "error",
|
|
||||||
"text_thickness": "warning",
|
|
||||||
"through_hole_pad_without_hole": "error",
|
|
||||||
"too_many_vias": "error",
|
|
||||||
"track_angle": "error",
|
|
||||||
"track_dangling": "warning",
|
|
||||||
"track_not_centered_on_via": "ignore",
|
|
||||||
"track_on_post_machined_layer": "error",
|
|
||||||
"track_segment_length": "error",
|
|
||||||
"track_width": "error",
|
|
||||||
"tracks_crossing": "error",
|
|
||||||
"tuning_profile_track_geometries": "ignore",
|
|
||||||
"unconnected_items": "error",
|
|
||||||
"unresolved_variable": "error",
|
|
||||||
"via_dangling": "warning",
|
|
||||||
"zones_intersect": "error"
|
|
||||||
},
|
|
||||||
"rules": {
|
|
||||||
"max_error": 0.005,
|
|
||||||
"min_clearance": 0.0,
|
|
||||||
"min_connection": 0.0,
|
|
||||||
"min_copper_edge_clearance": 0.5,
|
|
||||||
"min_groove_width": 0.0,
|
|
||||||
"min_hole_clearance": 0.25,
|
|
||||||
"min_hole_to_hole": 0.25,
|
|
||||||
"min_microvia_diameter": 0.2,
|
|
||||||
"min_microvia_drill": 0.1,
|
|
||||||
"min_resolved_spokes": 2,
|
|
||||||
"min_silk_clearance": 0.0,
|
|
||||||
"min_text_height": 0.8,
|
|
||||||
"min_text_thickness": 0.08,
|
|
||||||
"min_through_hole_diameter": 0.3,
|
|
||||||
"min_track_width": 0.2,
|
|
||||||
"min_via_annular_width": 0.1,
|
|
||||||
"min_via_diameter": 0.5,
|
|
||||||
"solder_mask_to_copper_clearance": 0.005,
|
|
||||||
"use_height_for_length_calcs": true
|
|
||||||
},
|
|
||||||
"teardrop_options": [
|
|
||||||
{
|
|
||||||
"td_onpthpad": true,
|
|
||||||
"td_onroundshapesonly": false,
|
|
||||||
"td_onsmdpad": true,
|
|
||||||
"td_ontrackend": false,
|
|
||||||
"td_onvia": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"teardrop_parameters": [
|
|
||||||
{
|
|
||||||
"td_allow_use_two_tracks": true,
|
|
||||||
"td_curve_segcount": 0,
|
|
||||||
"td_enabled": false,
|
|
||||||
"td_height_ratio": 1.0,
|
|
||||||
"td_length_ratio": 0.5,
|
|
||||||
"td_maxheight": 2.0,
|
|
||||||
"td_maxlen": 1.0,
|
|
||||||
"td_on_pad_in_zone": false,
|
|
||||||
"td_target_name": "td_round_shape",
|
|
||||||
"td_width_to_size_filter_ratio": 0.9
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"td_allow_use_two_tracks": true,
|
|
||||||
"td_curve_segcount": 0,
|
|
||||||
"td_enabled": false,
|
|
||||||
"td_height_ratio": 1.0,
|
|
||||||
"td_length_ratio": 0.5,
|
|
||||||
"td_maxheight": 2.0,
|
|
||||||
"td_maxlen": 1.0,
|
|
||||||
"td_on_pad_in_zone": false,
|
|
||||||
"td_target_name": "td_rect_shape",
|
|
||||||
"td_width_to_size_filter_ratio": 0.9
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"td_allow_use_two_tracks": true,
|
|
||||||
"td_curve_segcount": 0,
|
|
||||||
"td_enabled": false,
|
|
||||||
"td_height_ratio": 1.0,
|
|
||||||
"td_length_ratio": 0.5,
|
|
||||||
"td_maxheight": 2.0,
|
|
||||||
"td_maxlen": 1.0,
|
|
||||||
"td_on_pad_in_zone": false,
|
|
||||||
"td_target_name": "td_track_end",
|
|
||||||
"td_width_to_size_filter_ratio": 0.9
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"track_widths": [
|
|
||||||
0.0
|
|
||||||
],
|
|
||||||
"tuning_pattern_settings": {
|
|
||||||
"diff_pair_defaults": {
|
|
||||||
"corner_radius_percentage": 80,
|
|
||||||
"corner_style": 1,
|
|
||||||
"max_amplitude": 1.0,
|
|
||||||
"min_amplitude": 0.2,
|
|
||||||
"single_sided": false,
|
|
||||||
"spacing": 1.0
|
|
||||||
},
|
|
||||||
"diff_pair_skew_defaults": {
|
|
||||||
"corner_radius_percentage": 80,
|
|
||||||
"corner_style": 1,
|
|
||||||
"max_amplitude": 1.0,
|
|
||||||
"min_amplitude": 0.2,
|
|
||||||
"single_sided": false,
|
|
||||||
"spacing": 0.6
|
|
||||||
},
|
|
||||||
"single_track_defaults": {
|
|
||||||
"corner_radius_percentage": 80,
|
|
||||||
"corner_style": 1,
|
|
||||||
"max_amplitude": 1.0,
|
|
||||||
"min_amplitude": 0.2,
|
|
||||||
"single_sided": false,
|
|
||||||
"spacing": 0.6
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"via_dimensions": [
|
|
||||||
{
|
|
||||||
"diameter": 0.0,
|
|
||||||
"drill": 0.0
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"zones_allow_external_fillets": false
|
|
||||||
},
|
|
||||||
"ipc2581": {
|
|
||||||
"bom_rev": "",
|
|
||||||
"dist": "",
|
|
||||||
"distpn": "",
|
|
||||||
"internal_id": "",
|
|
||||||
"mfg": "",
|
|
||||||
"mpn": "",
|
|
||||||
"sch_revision": "v1.1"
|
|
||||||
},
|
|
||||||
"layer_pairs": [],
|
|
||||||
"layer_presets": [],
|
|
||||||
"viewports": []
|
|
||||||
},
|
|
||||||
"boards": [],
|
|
||||||
"component_class_settings": {
|
|
||||||
"assignments": [],
|
|
||||||
"meta": {
|
|
||||||
"version": 0
|
|
||||||
},
|
|
||||||
"sheet_component_classes": {
|
|
||||||
"enabled": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"cvpcb": {
|
|
||||||
"equivalence_files": []
|
|
||||||
},
|
|
||||||
"erc": {
|
|
||||||
"erc_exclusions": [],
|
|
||||||
"meta": {
|
|
||||||
"version": 0
|
|
||||||
},
|
|
||||||
"pin_map": [
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
2
|
|
||||||
],
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
2,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2
|
|
||||||
],
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
2
|
|
||||||
],
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
2,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
2
|
|
||||||
],
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
2
|
|
||||||
],
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
2
|
|
||||||
],
|
|
||||||
[
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
2
|
|
||||||
],
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
2
|
|
||||||
],
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
2,
|
|
||||||
1,
|
|
||||||
2,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2
|
|
||||||
],
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
2,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
2,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
2
|
|
||||||
],
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
2,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
0,
|
|
||||||
2,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
2
|
|
||||||
],
|
|
||||||
[
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"rule_severities": {
|
|
||||||
"bus_definition_conflict": "error",
|
|
||||||
"bus_entry_needed": "error",
|
|
||||||
"bus_to_bus_conflict": "error",
|
|
||||||
"bus_to_net_conflict": "error",
|
|
||||||
"different_unit_footprint": "error",
|
|
||||||
"different_unit_net": "error",
|
|
||||||
"duplicate_reference": "error",
|
|
||||||
"duplicate_sheet_names": "error",
|
|
||||||
"endpoint_off_grid": "warning",
|
|
||||||
"extra_units": "error",
|
|
||||||
"field_name_whitespace": "warning",
|
|
||||||
"footprint_filter": "ignore",
|
|
||||||
"footprint_link_issues": "warning",
|
|
||||||
"four_way_junction": "ignore",
|
|
||||||
"ground_pin_not_ground": "warning",
|
|
||||||
"hier_label_mismatch": "error",
|
|
||||||
"isolated_pin_label": "warning",
|
|
||||||
"label_dangling": "error",
|
|
||||||
"label_multiple_wires": "warning",
|
|
||||||
"lib_symbol_issues": "warning",
|
|
||||||
"lib_symbol_mismatch": "warning",
|
|
||||||
"missing_bidi_pin": "warning",
|
|
||||||
"missing_input_pin": "warning",
|
|
||||||
"missing_power_pin": "error",
|
|
||||||
"missing_unit": "warning",
|
|
||||||
"multiple_net_names": "warning",
|
|
||||||
"net_not_bus_member": "warning",
|
|
||||||
"no_connect_connected": "warning",
|
|
||||||
"no_connect_dangling": "warning",
|
|
||||||
"pin_not_connected": "error",
|
|
||||||
"pin_not_driven": "error",
|
|
||||||
"pin_to_pin": "warning",
|
|
||||||
"power_pin_not_driven": "error",
|
|
||||||
"same_local_global_label": "warning",
|
|
||||||
"same_local_global_power": "warning",
|
|
||||||
"similar_label_and_power": "warning",
|
|
||||||
"similar_labels": "warning",
|
|
||||||
"similar_power": "warning",
|
|
||||||
"simulation_model_issue": "ignore",
|
|
||||||
"single_global_label": "ignore",
|
|
||||||
"stacked_pin_name": "warning",
|
|
||||||
"unannotated": "error",
|
|
||||||
"unconnected_wire_endpoint": "warning",
|
|
||||||
"undefined_netclass": "error",
|
|
||||||
"unit_value_mismatch": "error",
|
|
||||||
"unresolved_variable": "error",
|
|
||||||
"wire_dangling": "error"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"libraries": {
|
|
||||||
"pinned_footprint_libs": [],
|
|
||||||
"pinned_symbol_libs": []
|
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"filename": "c_its-companion.kicad_pro",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"net_settings": {
|
|
||||||
"classes": [
|
|
||||||
{
|
|
||||||
"bus_width": 12,
|
|
||||||
"clearance": 0.2,
|
|
||||||
"diff_pair_gap": 0.25,
|
|
||||||
"diff_pair_via_gap": 0.25,
|
|
||||||
"diff_pair_width": 0.2,
|
|
||||||
"line_style": 0,
|
|
||||||
"microvia_diameter": 0.3,
|
|
||||||
"microvia_drill": 0.1,
|
|
||||||
"name": "Default",
|
|
||||||
"pcb_color": "rgba(0, 0, 0, 0.000)",
|
|
||||||
"priority": 2147483647,
|
|
||||||
"schematic_color": "rgba(0, 0, 0, 0.000)",
|
|
||||||
"track_width": 0.2,
|
|
||||||
"tuning_profile": "",
|
|
||||||
"via_diameter": 0.6,
|
|
||||||
"via_drill": 0.3,
|
|
||||||
"wire_width": 6
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Power",
|
|
||||||
"pcb_color": "rgba(0, 0, 0, 0.000)",
|
|
||||||
"priority": 0,
|
|
||||||
"schematic_color": "rgba(0, 0, 0, 0.000)",
|
|
||||||
"track_width": 0.5,
|
|
||||||
"tuning_profile": ""
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"meta": {
|
|
||||||
"version": 5
|
|
||||||
},
|
|
||||||
"net_colors": {},
|
|
||||||
"netclass_assignments": {},
|
|
||||||
"netclass_patterns": [
|
|
||||||
{
|
|
||||||
"netclass": "Power",
|
|
||||||
"pattern": "GND"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"netclass": "Power",
|
|
||||||
"pattern": "+3V3"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"netclass": "Power",
|
|
||||||
"pattern": "/BAT*"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"netclass": "Power",
|
|
||||||
"pattern": "/V_*"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"pcbnew": {
|
|
||||||
"last_paths": {
|
|
||||||
"idf": "",
|
|
||||||
"netlist": "",
|
|
||||||
"plot": "",
|
|
||||||
"specctra_dsn": "",
|
|
||||||
"step": "../housing/c_its-companion-v1.1.step",
|
|
||||||
"vrml": ""
|
|
||||||
},
|
|
||||||
"page_layout_descr_file": ""
|
|
||||||
},
|
|
||||||
"schematic": {
|
|
||||||
"annotate_start_num": 0,
|
|
||||||
"annotation": {
|
|
||||||
"method": 0,
|
|
||||||
"sort_order": 0
|
|
||||||
},
|
|
||||||
"bom_export_filename": "${PROJECTNAME}.csv",
|
|
||||||
"bom_fmt_presets": [],
|
|
||||||
"bom_fmt_settings": {
|
|
||||||
"field_delimiter": ",",
|
|
||||||
"keep_line_breaks": false,
|
|
||||||
"keep_tabs": false,
|
|
||||||
"name": "CSV",
|
|
||||||
"ref_delimiter": ",",
|
|
||||||
"ref_range_delimiter": "",
|
|
||||||
"string_delimiter": "\""
|
|
||||||
},
|
|
||||||
"bom_presets": [],
|
|
||||||
"bom_settings": {
|
|
||||||
"exclude_dnp": false,
|
|
||||||
"fields_ordered": [
|
|
||||||
{
|
|
||||||
"group_by": false,
|
|
||||||
"label": "Reference",
|
|
||||||
"name": "Reference",
|
|
||||||
"show": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"group_by": false,
|
|
||||||
"label": "Qty",
|
|
||||||
"name": "${QUANTITY}",
|
|
||||||
"show": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"group_by": true,
|
|
||||||
"label": "Value",
|
|
||||||
"name": "Value",
|
|
||||||
"show": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"group_by": true,
|
|
||||||
"label": "DNP",
|
|
||||||
"name": "${DNP}",
|
|
||||||
"show": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"group_by": true,
|
|
||||||
"label": "Exclude from BOM",
|
|
||||||
"name": "${EXCLUDE_FROM_BOM}",
|
|
||||||
"show": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"group_by": true,
|
|
||||||
"label": "Exclude from Board",
|
|
||||||
"name": "${EXCLUDE_FROM_BOARD}",
|
|
||||||
"show": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"group_by": true,
|
|
||||||
"label": "Footprint",
|
|
||||||
"name": "Footprint",
|
|
||||||
"show": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"group_by": false,
|
|
||||||
"label": "Datasheet",
|
|
||||||
"name": "Datasheet",
|
|
||||||
"show": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"group_by": false,
|
|
||||||
"label": "Description",
|
|
||||||
"name": "Description",
|
|
||||||
"show": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"group_by": false,
|
|
||||||
"label": "#",
|
|
||||||
"name": "${ITEM_NUMBER}",
|
|
||||||
"show": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"filter_string": "",
|
|
||||||
"group_symbols": true,
|
|
||||||
"include_excluded_from_bom": true,
|
|
||||||
"name": "",
|
|
||||||
"sort_asc": true,
|
|
||||||
"sort_field": "Reference"
|
|
||||||
},
|
|
||||||
"bus_aliases": {},
|
|
||||||
"connection_grid_size": 50.0,
|
|
||||||
"drawing": {
|
|
||||||
"dashed_lines_dash_length_ratio": 12.0,
|
|
||||||
"dashed_lines_gap_length_ratio": 3.0,
|
|
||||||
"default_line_thickness": 6.0,
|
|
||||||
"default_text_size": 50.0,
|
|
||||||
"field_names": [],
|
|
||||||
"hop_over_size_choice": 0,
|
|
||||||
"intersheets_ref_own_page": false,
|
|
||||||
"intersheets_ref_prefix": "",
|
|
||||||
"intersheets_ref_short": false,
|
|
||||||
"intersheets_ref_show": false,
|
|
||||||
"intersheets_ref_suffix": "",
|
|
||||||
"junction_size_choice": 3,
|
|
||||||
"label_size_ratio": 0.375,
|
|
||||||
"operating_point_overlay_i_precision": 3,
|
|
||||||
"operating_point_overlay_i_range": "~A",
|
|
||||||
"operating_point_overlay_v_precision": 3,
|
|
||||||
"operating_point_overlay_v_range": "~V",
|
|
||||||
"overbar_offset_ratio": 1.23,
|
|
||||||
"pin_symbol_size": 25.0,
|
|
||||||
"text_offset_ratio": 0.15
|
|
||||||
},
|
|
||||||
"legacy_lib_dir": "",
|
|
||||||
"legacy_lib_list": [],
|
|
||||||
"meta": {
|
|
||||||
"version": 1
|
|
||||||
},
|
|
||||||
"page_layout_descr_file": "",
|
|
||||||
"plot_directory": "",
|
|
||||||
"reuse_designators": true,
|
|
||||||
"subpart_first_id": 65,
|
|
||||||
"subpart_id_separator": 0,
|
|
||||||
"top_level_sheets": [
|
|
||||||
{
|
|
||||||
"filename": "c_its-companion.kicad_sch",
|
|
||||||
"name": "Root",
|
|
||||||
"uuid": "9ad468b0-d7e4-4d4a-b652-c4a81a952e30"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"used_designators": "#FLG1-3,#PWR1-11,C1,H1-4,J1-2,SW1,TP1-5,U1-2",
|
|
||||||
"variants": []
|
|
||||||
},
|
|
||||||
"sheets": [
|
|
||||||
[
|
|
||||||
"9ad468b0-d7e4-4d4a-b652-c4a81a952e30",
|
|
||||||
"Root"
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"text_variables": {},
|
|
||||||
"tuning_profiles": {
|
|
||||||
"meta": {
|
|
||||||
"version": 0
|
|
||||||
},
|
|
||||||
"tuning_profiles_impedance_geometric": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue