From 2f8046204b58ad6421755832a3d41a4017458708 Mon Sep 17 00:00:00 2001 From: Mike Szczys Date: Wed, 22 Jan 2025 17:32:24 -0600 Subject: [PATCH] zephyr: hello_nrf91_offloaded: document hexstring Clarify how sending credentials to the nrf91 modem: - Add double quotes around PSK-ID and PSK - Add sample command to illustrate how to hex-encode an ASCII string Signed-off-by: Mike Szczys --- examples/zephyr/hello_nrf91_offloaded/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/zephyr/hello_nrf91_offloaded/README.md b/examples/zephyr/hello_nrf91_offloaded/README.md index cba65dae5..3f527d973 100644 --- a/examples/zephyr/hello_nrf91_offloaded/README.md +++ b/examples/zephyr/hello_nrf91_offloaded/README.md @@ -53,6 +53,14 @@ AT%CMNG=0,515765868,4,my-psk-id AT%CMNG=0,515765868,3,my-psk-encoded-as-hexstring ``` +Note: the PSK *must* be encoded as hexadecimal values. One way to +convert your ASCII-encoded PSK is to use the following Linux command: + +``` +$ echo "my-golioth-psk" | tr -d '\n' | xxd -ps -c 200 +6d792d676f6c696f74682d70736b +``` + ##### Using `nrf_modem_at` application specific shell command This application comes with `nrf_modem_at` Zephyr shell command. It can