Files
rockblock9704-zephyr/dts/bindings/rock7,rockblock-9704.yaml
T
scottp a70e933b71 0.3.0: provisioning and messages to Cloudloop work, and P_EN is active low
The M5Stamp-C3 under open sky, driven over WiFi from its shell, found
the modem provisioned with topics 244 and 313 to 317 and sent two
messages on topic 244, 16 and 17 bytes. Each was with the network 6 to
10 s after the modem took it, and both arrived in Cloudloop whole.
docs/CLOUDLOOP.md, "What has run", records how Cloudloop shows one: the
same bytes in Base64 and in hex.

P_EN is the RockBLOCK's supercapacitor charge enable, header pin 6, and
it is active low. The sample's overlays had it GPIO_ACTIVE_HIGH, so every
begin switched the charger off: the modem ran down and went silent 2 to
5 minutes later, four times indoors and out. The overlays, the README
and the binding now say GPIO_ACTIVE_LOW. With P_EN wired again on the
new firmware the modem stayed up past every earlier drop and sent the
second message.

The control pins follow Ground Control's start-up and shutdown
sequence. I_EN starts and stops the modem and is what makes the pins
present (CONFIG_RB9704_POWER follows iridium-enable-gpios); P_EN and
I_BTD are optional beside it. Shutdown drives I_EN low and waits for
I_BTD to go low before anything else, as start-up waits for it to go
high, so I_EN never moves back before I_BTD has followed. P_EN is driven
only while the modem runs and released to an input while it is off.

docs/boards/stamp_c3.md has the header's pin numbers, V_IN+ against
V_BATT, and P_EN as the cause of the drops. The module, the sample and
the Python tools are 0.3.0.
2026-10-25 22:48:11 +11:00

64 lines
2.1 KiB
YAML

# SPDX-License-Identifier: MIT
# Copyright (c) 2026 Scott Penrose <scottp@dd.com.au>
description: |
RockBLOCK 9704, Ground Control's Iridium Certus (IMT) modem board, on a
UART. The modem speaks JSPR, JSON lines over a fixed 230400 8N1; there is
no AT mode. One per system: the library underneath keeps global state.
The control pins are optional. With none, the modem is assumed powered and
enabled, which is how the board behaves with the pins left open: I_EN
has a pull-up and P_EN a pull-down. I_EN is what switches the modem, so
power control needs iridium-enable-gpios; booted-gpios and power-gpios
are each optional beside it.
compatible: "rock7,rockblock-9704"
include:
- uart-device.yaml
properties:
power-gpios:
type: phandle-array
description: |
P_EN, header pin 6: the supercapacitor charge enable. It is active
low on the board, so give GPIO_ACTIVE_LOW. Driven active (charging
on) while the modem runs, and released to an input while it is off,
where the board's pull-down keeps the charger on. Leaving it
unconnected is fine.
iridium-enable-gpios:
type: phandle-array
description: |
I_EN, header pin 3: starts and stops the modem. Driven high to
start it and low to stop it, and never moved back until I_BTD has
followed.
booted-gpios:
type: phandle-array
description: |
I_BTD, header pin 7: high once the modem has booted, low once it has
shut down. When present, start-up and shutdown wait for it instead
of a fixed delay.
boot-delay-ms:
type: int
default: 4000
description: |
How long to wait after moving I_EN, either way, when there is no
booted-gpios to wait on.
examples:
- |
&usart3 {
current-speed = <230400>;
status = "okay";
modem: rockblock {
compatible = "rock7,rockblock-9704";
power-gpios = <&gpiob 0 GPIO_ACTIVE_LOW>;
iridium-enable-gpios = <&gpiob 1 GPIO_ACTIVE_HIGH>;
booted-gpios = <&gpiob 2 GPIO_ACTIVE_HIGH>;
};
};