From ab75ae4b0792b1e320544b4ddbae1cb7cd09abe4 Mon Sep 17 00:00:00 2001
From: noon92 <40807970+noon92@users.noreply.github.com>
Date: Fri, 6 Dec 2024 17:04:21 +0200
Subject: [PATCH 1/9] README.md updated from https://stackedit.io/
---
README.md | 25 ++++++++++---------------
1 file changed, 10 insertions(+), 15 deletions(-)
diff --git a/README.md b/README.md
index fc04d62..cf6feb8 100644
--- a/README.md
+++ b/README.md
@@ -4,21 +4,17 @@
---
-
Advantages:
Disadvantages:
-Accomplished:
Issues / to do / in progress:
-Advantages:
Accomplished:
Issues / to do / in progress:
-Project goals:
Login for the “fresh” image is root:root or pico:luckfox. Login for the configured BBS images is root:root, bbs:mesh or femto:fox.
The preconfigured images will reboot every 24 hours, and restart the BBS every other hour. In theory, this should happen at 7am UTC (because both the US and Europe are generally inactive at that time). Time is set on boot with the following logic:
+The preconfigured images will reboot every 24 hours. In theory, this should happen at 3am, if the internal clock is accurate. Time is set on boot with the following logic:
sudo luckfox-config. This is not really recommended, but can be used in a pinch.Choosing a MicroSD card: Any reasonably fast MicroSD card of 32gb or higher should work, but ideally use a card that supports UHS-1 or higher, and is rated for high endurance.
GPS: NOT_PRESENT. The Rak does not support GPS and UART simultaneously at this time.Serial: EnabledEcho: offRX: 15 (rak19007 and rak19003 with TX1/RX1), 19 (rak19003 with TX0/RX0)TX: 16 (rak19007 and rak19003 with TX1/RX1), 20 (rak19003 with TX0/RX0)Serial baud rate: 115200Timeout: 0Serial mode: PROTOOverride console serial port: offTo configure some Femtofox settings such as wifi, you can insert a USB flash drive containing a configuration file. The system will automatically recognize, mount and implement the settings you specify.
+Configurable settings are:
The USB drive must be formatted with a single FAT32, exFAT, NTFS (read only - log will not be saved to drive) or ext4 partition. Add a file named femtofox-config.txt and whichever of the the following lines you want to set, keeping in mind this is CaSe sEnSiTiVe:
wifi_ssid="Your SSID name"
+ wifi_psk="wifipassword"
+ wifi_country="US"
+ timezone="America/New_York"
+ meshtastic_lora_radio="ebyte-e22-900m30s"
+ meshtastic_url="https://meshtastic.org/e/#CgMSAQESCAgBOAFAA0gB"
+ meshtastic_admin_key="base64:T/b8EGvi/Nqi6GyGefJt/jOQr+5uWHHZuBavkNcUwWQ="
+ meshtastic_legacy_admin="true"
+
+++[!NOTE]
+
+Enter as many or as few settings as you like.For
+wifi_country, insert your country’s two letter code (such as CA or IN) in capital letters.Use a timezone as it appears in the tz database.
+Meshtastic
+
+Formeshtastic_lora_radio, choose your radio from the supported hardware list.
+Options are:+
+- ebyte-e22-900m30sm
+- ebyte-e22-900m22s
+- e22-900mm22s
+- heltec-ht-ra62
+- seeed-wio-sx1262
+- waveshare-sx126x-xxxm
+- ai-thinker-ra-01sh
+- none (for simradio)
+Important: You cannot set URL and security settings in the same operation - if you must set both, set the URL first, then edit the
+femtofox-config.txtfile on the USB drive to remove the URL and add in your security settings.To add a
+meshtastic_admin_key, copy it from the app and addbase64:to the beginning (meshtastic_admin_key="base64:T/b8EGvi/Nqi6GyGefJt/jOQr+5uWHHZuBavkNcUwWQ=").Clearing the
+meshtastic_admin_keylist: The admin key list can contain up to three keys - if more are added they will be ignored. The USB configuration tool supports clearing the admin key list, after which you will need to re-add your admin key/s in a second operation. To clear the admin key list, entermeshtastic_admin_key="0", withoutbase64:.
++[!CAUTION]
+
+Attempting to set wifi settings via USB configuration tool without a wifi adapter connected will lead to a hard crash - you will need to disconnect and reconnect power to recover.
To apply your configuration, reboot the Femtofox with the USB drive plugged in. No other USB drives can be plugged in at the same time.
+A log (femtofox-config.log) is saved to /home/femto and the USB drive (except on NTFS, which is read only).
+
When the Femtofox is finished booting, it will blink its User LED (see below) in a pattern which can be used to gather info on its status or help diagnose issues.
+
| LED blink pattern | +Meaning | +Possible causes | +Solutions | +
|---|---|---|---|
| ⚠️ 1 very long blink, lasting 4 seconds _____________ |
+Failed to mount USB drive. Ignoring. | +||
| ⚠️ 3 long blinks, each lasting 1.5 seconds _____ _____ _____ |
+USB drive mounted successfully but femtofox-config.txt was not found. Ignoring. | +Config file missing. | +Create configuration file as described above. | +
| ⚠️ 5 long blinks, each lasting 1.5 seconds _____ _____ _____ _____ _____ |
+USB drive mounted successfully and femtofox-config.txt was found but did not contain readable configuration data. Ignoring. | +Configuration file improperly formatted or contains no data. | +Check configuration file contents as described above. | +
| ⚠️ 2 long blinks, each lasting 1 seconds, then 2 short blinks, each lasting 1/4 of a second. Repeats twice ___ ___ _ _ ___ ___ _ _ |
+Error while trying to implement a Meshtastic setting after 3 attempts. Some settings may have been implemented successfully. | +This pattern may flash before other patterns. The pattern will repeat once for each failed setting. |
+|
| ✅ 10 very fast blinks, each lasting 1/8th of a second . . . . . . . . . . |
+USB drive mounted successfully, and femtofox-config.txt was found and contained configuration data which was sent for deployment. Any affected services will now restart. You can disconnect the USB drive. | +This does not mean that the information in the config file is correct - only that it was readable. Note that the “success” boot code will flash if at least one setting is successfully read - even if the setting was not implemented successfully. |
++ |
| ✅ 5 medium blinks, each lasting 0.5 seconds __ __ __ __ __ |
+Boot complete. Appears on every successful boot and always appears last. | ++ | + |
++ From 33a6966a163054ca61693b39ec31fa494a5fe61b Mon Sep 17 00:00:00 2001 From: noon92 <40807970+noon92@users.noreply.github.com> Date: Fri, 6 Dec 2024 20:04:09 +0200 Subject: [PATCH 5/9] Delete usb_config.md --- usb_config.md | 119 -------------------------------------------------- 1 file changed, 119 deletions(-) delete mode 100644 usb_config.md diff --git a/usb_config.md b/usb_config.md deleted file mode 100644 index ce5b79f..0000000 --- a/usb_config.md +++ /dev/null @@ -1,119 +0,0 @@ ---- - - ---- - -[!NOTE]
+
+Boot codes can appear in sequence - for example: one long (4 second) blink, followed by 5 medium (half second) blinks means the attempt to mount the USB drive failed, and that boot is complete.
To configure some Femtofox settings such as wifi, you can insert a USB flash drive containing a configuration file. The system will automatically recognize, mount and implement the settings you specify.
-Configurable settings are:
The USB drive must be formatted with a single FAT32, exFAT, NTFS (read only - log will not be saved to drive) or ext4 partition. Add a file named femtofox-config.txt and whichever of the the following lines you want to set, keeping in mind this is CaSe sEnSiTiVe:
wifi_ssid="Your SSID name"
- wifi_psk="wifipassword"
- wifi_country="US"
- timezone="America/New_York"
- meshtastic_lora_radio="ebyte-e22-900m30s"
- meshtastic_url="https://meshtastic.org/e/#CgMSAQESCAgBOAFAA0gB"
- meshtastic_admin_key="base64:T/b8EGvi/Nqi6GyGefJt/jOQr+5uWHHZuBavkNcUwWQ="
- meshtastic_legacy_admin="true"
-
---[!NOTE]
-
-Enter as many or as few settings as you like.For
-wifi_country, insert your country’s two letter code (such as CA or IN) in capital letters.Use a timezone as it appears in the tz database.
-Meshtastic
-
-Formeshtastic_lora_radio, choose your radio from the supported hardware list.
-Options are:-
-- ebyte-e22-900m30sm
-- ebyte-e22-900m22s
-- e22-900mm22s
-- heltec-ht-ra62
-- seeed-wio-sx1262
-- waveshare-sx126x-xxxm
-- ai-thinker-ra-01sh
-- none (for simradio)
-Important: You cannot set URL and security settings in the same operation - if you must set both, set the URL first, then edit the
-femtofox-config.txtfile on the USB drive to remove the URL and add in your security settings.To add a
-meshtastic_admin_key, copy it from the app and addbase64:to the beginning (meshtastic_admin_key="base64:T/b8EGvi/Nqi6GyGefJt/jOQr+5uWHHZuBavkNcUwWQ=").Clearing the
-meshtastic_admin_keylist: The admin key list can contain up to three keys - if more are added they will be ignored. The USB configuration tool supports clearing the admin key list, after which you will need to re-add your admin key/s in a second operation. To clear the admin key list, entermeshtastic_admin_key="0", withoutbase64:.
--[!CAUTION]
-
-Attempting to set wifi settings via USB configuration tool without a wifi adapter connected will lead to a hard crash - you will need to disconnect and reconnect power to recover.
To apply your configuration, reboot the Femtofox with the USB drive plugged in. No other USB drives can be plugged in at the same time.
-A log (femtofox-config.log) is saved to /home/femto and the USB drive (except on NTFS, which is read only).
-
When the Femtofox is finished booting, it will blink its User LED (see below) in a pattern which can be used to gather info on its status or help diagnose issues.
-
| LED blink pattern | -Meaning | -Possible causes | -Solutions | -
|---|---|---|---|
| ⚠️ 1 very long blink, lasting 4 seconds _____________ |
-Failed to mount USB drive. Ignoring. | -||
| ⚠️ 3 long blinks, each lasting 1.5 seconds _____ _____ _____ |
-USB drive mounted successfully but femtofox-config.txt was not found. Ignoring. | -Config file missing. | -Create configuration file as described above. | -
| ⚠️ 5 long blinks, each lasting 1.5 seconds _____ _____ _____ _____ _____ |
-USB drive mounted successfully and femtofox-config.txt was found but did not contain readable configuration data. Ignoring. | -Configuration file improperly formatted or contains no data. | -Check configuration file contents as described above. | -
| ⚠️ 2 long blinks, each lasting 1 seconds, then 2 short blinks, each lasting 1/4 of a second. Repeats twice ___ ___ _ _ ___ ___ _ _ |
-Error while trying to implement a Meshtastic setting after 3 attempts. Some settings may have been implemented successfully. | -This pattern may flash before other patterns. The pattern will repeat once for each failed setting. |
-|
| ✅ 10 very fast blinks, each lasting 1/8th of a second . . . . . . . . . . |
-USB drive mounted successfully, and femtofox-config.txt was found and contained configuration data which was sent for deployment. Any affected services will now restart. You can disconnect the USB drive. | -This does not mean that the information in the config file is correct - only that it was readable. Note that the “success” boot code will flash if at least one setting is successfully read - even if the setting was not implemented successfully. |
-- |
| ✅ 5 medium blinks, each lasting 0.5 seconds __ __ __ __ __ |
-Boot complete. Appears on every successful boot and always appears last. | -- | - |
-- From 9b724ebb2339f687ec8db1b495e17b8b82eed301 Mon Sep 17 00:00:00 2001 From: noon92 <40807970+noon92@users.noreply.github.com> Date: Fri, 6 Dec 2024 20:04:24 +0200 Subject: [PATCH 6/9] Rename usbconfig.md to usb_config.md --- usbconfig.md => usb_config.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename usbconfig.md => usb_config.md (100%) diff --git a/usbconfig.md b/usb_config.md similarity index 100% rename from usbconfig.md rename to usb_config.md From 024081eb4d12039ea3f6360c2645d3ed0141f600 Mon Sep 17 00:00:00 2001 From: noon92 <40807970+noon92@users.noreply.github.com> Date: Fri, 6 Dec 2024 20:05:20 +0200 Subject: [PATCH 8/9] usb_config.md updated from https://stackedit.io/ --- usb_config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb_config.md b/usb_config.md index ce5b79f..54e2385 100644 --- a/usb_config.md +++ b/usb_config.md @@ -3,7 +3,7 @@ --- -[!NOTE]
-
-Boot codes can appear in sequence - for example: one long (4 second) blink, followed by 5 medium (half second) blinks means the attempt to mount the USB drive failed, and that boot is complete.
To configure some Femtofox settings such as wifi, you can insert a USB flash drive containing a configuration file. The system will automatically recognize, mount and implement the settings you specify.
Configurable settings are:
| LoRa radios (working with Meshtasticd) | -*Waveshare RPi hat is not recommended as it has issues with sending longer messages. | ||||