Failed to connect SenseCAP M2 (Basics Station) - CUPS 400 Bad Request

Failed to connect SenseCAP M2 (Basics Station) - CUPS 400 Bad Request

Hello,

I am trying to connect a Seeed Studio SenseCAP M2 gateway to the ThingPark Community platform and am consistently receiving a "400 Bad Request" error in my gateway logs.

Gateway Details:

  • Model: Seeed Studio SenseCAP M2

  • Packet Forwarder: LoRa Basics Station

Configuration:

Troubleshooting Steps Already Taken:

  1. Confirmed the LRR-UUID on ThingPark exactly matches the Gateway EUI with a prefix of 0016C0.

  2. Verified there are no hyphens or typos in the EUI.

  3. Deleted and re-created the Base Station entry on ThingPark multiple times.

  4. Rebooted the gateway after each configuration change.

  5. Confirmed the gateway connects successfully to the server, but the server rejects the CUPS request.

I have attached a snippet of my gateway's log file showing the connection attempt and the "400 Bad Request" error. Could you please investigate on your end why the server is rejecting this valid CUPS request?

Tue Sep 23 11:30:08 2025 daemon.info station[4603]: [CUP:INFO] Starting a CUPS session in 60 seconds.
Tue Sep 23 11:30:45 2025 daemon.info station[4603]: {"state":1,"temperature":0,"rx_sum":0,"report_time":1758627045,"tx_sum":0}
Tue Sep 23 11:30:45 2025 daemon.info station[4603]: [SYS:INFO] lora info statistics: rx:0 (+0), tx:0 (+0)
Tue Sep 23 11:30:45 2025 daemon.info station[4603]: [SYS:INFO] ubus: ubus -S call sensecap lora '{"rx_sum":0,"tx_sum":0,"report_time":1758627045, "state":1}'
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: [CUP:INFO] Starting a CUPS session now.
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: [CUP:INFO] Connecting to CUPS ... https://community.thingpark.io:443 (try #61)
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: [AIO:INFO] /var/etc/station/cups.trust:
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: cert. version     : 3
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: serial number     : 06:6C:9F:CF:99:BF:8C:0A:39:E2:F0:78:8A:43:E6:96:36:5B:CA
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: issuer name       : C=US, O=Amazon, CN=Amazon Root CA 1
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: subject name      : C=US, O=Amazon, CN=Amazon Root CA 1
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: issued  on        : 2015-05-26 00:00:00
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: expires on        : 2038-01-17 00:00:00
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: signed using      : RSA with SHA-256
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: RSA key size      : 2048 bits
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: basic constraints : CA=true
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: key usage         : Digital Signature, Key Cert Sign, CRL Sign
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: [AIO:INFO] cups has no key+cert configured - running server auth only
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: [CUP:VERB] Retrieving update-info from CUPS https://community.thingpark.io:443...
Tue Sep 23 11:31:08 2025 daemon.info station[4603]: [CUP:DEBU] CUPS Request: {"router":"2cf7:f110:6260:2dd","cupsUri":"https://community.thingpark.io:443","tcUri":null,"cupsCredCrc":989310313,"tcCredCrc":2077607535,"station":"2.0.6(corecell/std) 2024-11-05 06:28:31","model":"corecell","package":null,"keys":[]}
Tue Sep 23 11:31:09 2025 daemon.info station[4603]: [CUP:VERB] Failed to retrieve TCURI from CUPS: (400) Bad Request
Tue Sep 23 11:31:09 2025 daemon.info station[4603]: [AIO:DEBU] [3] HTTP connection shutdown...
Tue Sep 23 11:31:09 2025 daemon.info station[4603]: [CUP:INFO] Interaction with CUPS failed - retrying in 1m
Tue Sep 23 11:31:09 2025 daemon.info station[4603]: [TCE:INFO] Starting TC engine
Tue Sep 23 11:31:09 2025 daemon.info station[4603]: [TCE:ERRO] No TC URI configured
Tue Sep 23 11:31:09 2025 daemon.info station[4603]: [TCE:INFO] Router rejected or retry limit reached. Invoking CUPS.
Tue Sep 23 11:31:09 2025 daemon.info station[4603]: [TCE:INFO] Terminating TC engine
Tue Sep 23 11:31:09 2025 daemon.info station[4603]: [CUP:INFO] Starting a CUPS session in 60 seconds.
Tue Sep 23 11:31:45 2025 daemon.info station[4603]: {"state":1,"temperature":0,"rx_sum":0,"report_time":1758627105,"tx_sum":0}
Tue Sep 23 11:31:45 2025 daemon.info station[4603]: [SYS:INFO] lora info statistics: rx:0 (+0), tx:0 (+0)
Tue Sep 23 11:31:45 2025 daemon.info station[4603]: [SYS:INFO] ubus: ubus -S call sensecap lora '{"rx_sum":0,"tx_sum":0,"report_time":1758627105, "state":1}'
Tue Sep 23 11:32:09 2025 daemon.info station[4603]: [CUP:INFO] Starting a CUPS session now.
Tue Sep 23 11:32:09 2025 daemon.info station[4603]: [CUP:ERRO] No CUPS-bak URI configured
Tue Sep 23 11:32:09 2025 daemon.info station[4603]: [TCE:INFO] Starting TC engine
Tue Sep 23 11:32:09 2025 daemon.info station[4603]: [TCE:ERRO] No TC URI configured
Tue Sep 23 11:32:09 2025 daemon.info station[4603]: [TCE:INFO] Router rejected or retry limit reached. Invoking CUPS.
Tue Sep 23 11:32:09 2025 daemon.info station[4603]: [TCE:INFO] Terminating TC engine
Tue Sep 23 11:32:09 2025 daemon.info station[4603]: [CUP:INFO] Starting a CUPS session in 60 seconds.

Thank you.