diff --git a/README.md b/README.md index f6d87b2..1c7dcbd 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ are 4 boards supported so far with more to come: - a Bluemark DB110 (legacy) from https://bluemark.io/ ([product page](https://dronescout.co/dronebeacon-mavlink-remote-id-transponder/)) - a Bluemark DB200 from https://bluemark.io/ ([product page](https://dronescout.co/dronebeacon-mavlink-remote-id-transponder/) | [buy](https://dronescout.co/product/dronebeacon-mavlink-db200-transponder/)) - a Bluemark DB201 from https://bluemark.io/ ([product page](https://dronescout.co/dronebeacon-mavlink-remote-id-transponder/) | [buy](https://dronescout.co/product/dronebeacon-mavlink-db201-transponder/)) + - a Bluemark DB202mav from https://bluemark.io/ ([product page](https://dronescout.co/dronebeacon-mavlink-remote-id-transponder/) | [buy](https://dronescout.co/product/dronebeacon-mavlink-db202mav-transponder/)) Hardware from https://wurzbachelectronics.com/ is expected to be added soon. diff --git a/RemoteIDModule/Makefile b/RemoteIDModule/Makefile index b03391b..df30de2 100644 --- a/RemoteIDModule/Makefile +++ b/RemoteIDModule/Makefile @@ -15,7 +15,7 @@ export PATH := $(HOME)/.local/bin:$(PATH) .PHONY: headers -all: headers esp32s3dev esp32c3dev bluemark-db200 bluemark-db110 jw-tbd mro-rid jwrid-esp32s3 +all: headers esp32s3dev esp32c3dev bluemark-db200 bluemark-db110 jw-tbd mro-rid jwrid-esp32s3 bluemark-db202 esp32s3dev: CHIP=esp32s3 esp32s3dev: ArduRemoteID-ESP32S3_DEV.bin @@ -38,6 +38,9 @@ jwrid-esp32s3: ArduRemoteID-JWRID_ESP32S3.bin mro-rid: CHIP=esp32c3 mro-rid: ArduRemoteID-MRO_RID.bin +bluemark-db202: CHIP=esp32c3 +bluemark-db202: ArduRemoteID-BLUEMARK_DB202.bin + setup: @echo "Installing ESP32 support" $(ARDUINO_CLI) core update-index --config-file arduino-cli.yaml diff --git a/RemoteIDModule/board_config.h b/RemoteIDModule/board_config.h index 4dfac20..dad4dc0 100644 --- a/RemoteIDModule/board_config.h +++ b/RemoteIDModule/board_config.h @@ -91,6 +91,16 @@ #define CAN_APP_NODE_NAME "JWRID_ESP32S3" +#elif defined(BOARD_BLUEMARK_DB202) +#define BOARD_ID 8 + +#define PIN_UART_TX 7 +#define PIN_UART_RX 6 + +#define PIN_STATUS_LED GPIO_NUM_8 // LED to signal the status +// LED off when ready to arm +#define STATUS_LED_OK 0 + #else #error "unsupported board" #endif diff --git a/RemoteIDModule/parameters.cpp b/RemoteIDModule/parameters.cpp index 4464257..cb3bdba 100644 --- a/RemoteIDModule/parameters.cpp +++ b/RemoteIDModule/parameters.cpp @@ -317,7 +317,7 @@ void Parameters::init(void) // setup public keys set_by_name_char64("PUBLIC_KEY1", ROMFS::find_string("public_keys/ArduPilot_public_key1.dat")); set_by_name_char64("PUBLIC_KEY2", ROMFS::find_string("public_keys/ArduPilot_public_key2.dat")); -#if defined(BOARD_BLUEMARK_DB200) || defined(BOARD_BLUEMARK_DB110) +#if defined(BOARD_BLUEMARK_DB200) || defined(BOARD_BLUEMARK_DB110) || defined(BOARD_BLUEMARK_DB202) set_by_name_char64("PUBLIC_KEY3", ROMFS::find_string("public_keys/BlueMark_public_key1.dat")); #else set_by_name_char64("PUBLIC_KEY3", ROMFS::find_string("public_keys/ArduPilot_public_key3.dat"));